/* /virto-calendar-app-vs-microsoft-365-calendars/ and its German twin
   (layouts/_default/calendar-vs-microsoft-365.html).
   Tokens come from critical.css (:root), as on the kit pages. Brand-coloured
   text uses --color-primary-dark: #5c65f5 is 4.0:1 on the tinted backgrounds,
   below WCAG AA. Sections alternate white and tint, so blocks never touch. */

.cvm { background: #fff; }
.cvm-wrap { max-width: var(--max-width-content, 1200px); margin: 0 auto; padding: 0 24px; }
.cvm .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cvm-link { color: var(--color-primary-dark); font-weight: 700; text-decoration: none; }
.cvm-link:hover { text-decoration: underline; }
.cvm a:focus-visible, .cvm summary:focus-visible { outline: 3px solid #A5ABFF; outline-offset: 2px; }
.cvm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 10px; font-size: 16px; font-weight: 700; text-decoration: none; }
.cvm-btn--primary { background: var(--color-primary-dark); color: #fff; box-shadow: 0 8px 20px rgba(68, 73, 207, .28); }
.cvm-btn--primary:hover { background: var(--color-primary-darker); }
.cvm-btn--ghost { background: #fff; color: var(--color-primary-dark); border: 2px solid var(--color-border); }
.cvm-btn--ghost:hover { border-color: var(--color-primary); }
.cvm-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Hero ── */
.cvm-hero { padding: 40px 0 72px; background: linear-gradient(180deg, #F0F3FF 0%, #fff 100%); }
.cvm-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.cvm-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; font-size: 14px; color: var(--color-text-muted); }
.cvm-crumbs a { color: var(--color-primary-dark); text-decoration: none; }
.cvm-badge { display: inline-block; margin: 0 0 16px; padding: 5px 12px; border-radius: 999px; background: #E0E4FF; color: #2A2F9E; font-size: 13px; font-weight: 700; }
.cvm-title { margin: 0 0 18px; font-size: 42px; line-height: 1.12; font-weight: 800; letter-spacing: -.015em; color: var(--color-text); }
.cvm-lead { margin: 0 0 32px; max-width: 600px; font-size: 18px; line-height: 1.6; color: var(--color-text-secondary); }
.cvm-listing { margin: 16px 0 0; font-size: 14px; color: var(--color-text-muted); }
.cvm-listing a { color: var(--color-primary-dark); font-weight: 600; white-space: nowrap; }

/* The calendars an organization already has, and the one they become. */
.cvm-flow { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--color-border-light); box-shadow: 0 20px 50px rgba(29, 32, 136, .08); }
.cvm-flow__label { align-self: flex-start; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted); }
.cvm-flow__sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin: 0; padding: 0; list-style: none; }
.cvm-flow__sources li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--color-bg-light); font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--color-text); }
.cvm-flow__sources img { flex: none; width: 28px; height: 28px; }
.cvm-flow__arrow { color: var(--color-primary-dark); }
.cvm-flow__result { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border-radius: 14px; background: var(--color-primary-dark); color: #fff; }
.cvm-flow__result img { flex: none; padding: 4px; border-radius: 10px; background: #fff; }
.cvm-flow__result strong { display: block; font-size: 17px; line-height: 1.3; }
.cvm-flow__result span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: #E0E4FF; }

/* ── Short answer ── */
.cvm-answer-band { padding: 0 0 72px; }
.cvm-answer { max-width: 900px; margin: 0 auto; padding: 28px 32px; border-left: 5px solid var(--color-primary-dark); border-radius: 0 16px 16px 0; background: var(--color-bg-light); }
.cvm-answer__title { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: var(--color-text); }
.cvm-answer__list { margin: 0; padding: 0; list-style: none; }
.cvm-answer__list li { position: relative; padding: 0 0 8px 26px; font-size: 17px; line-height: 1.55; color: var(--color-text); }
.cvm-answer__list li:last-child { padding-bottom: 0; }
.cvm-answer__list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary-dark); }

/* ── Sections ── */
.cvm-section { padding: 80px 0; scroll-margin-top: 110px; }
.cvm-section--tint { background: var(--color-bg-section); }
.cvm-h2 { margin: 0 0 16px; font-size: 30px; line-height: 1.25; font-weight: 800; color: var(--color-text); }
.cvm-intro { margin: 0 0 36px; max-width: 780px; font-size: 17px; line-height: 1.6; color: var(--color-text-secondary); }

/* ── Table: five calendars, the buyer's questions as rows ── */
.cvm-table-wrap { border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(29, 32, 136, .06); }
.cvm-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14.5px; line-height: 1.5; }
.cvm-table thead th { padding: 20px 14px 16px; vertical-align: bottom; text-align: left; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--color-text); border-bottom: 2px solid var(--color-border); }
.cvm-table thead th:first-child { width: 17%; }
.cvm-table thead img { display: block; width: 32px; height: 32px; margin-bottom: 10px; }
.cvm-table tbody th { padding: 16px 14px 16px 20px; vertical-align: top; text-align: left; font-weight: 700; color: var(--color-text); }
.cvm-table td { padding: 16px 14px; vertical-align: top; color: var(--color-text-secondary); }
.cvm-table tbody tr + tr > * { border-top: 1px solid var(--color-border-light); }
.cvm-table .is-virto { background: #F0F3FF; color: var(--color-text); }
.cvm-table thead .is-virto { border-radius: 14px 14px 0 0; color: #2A2F9E; }
.cvm-table tbody tr:last-child .is-virto { border-radius: 0 0 14px 0; }
.cvm-table td.is-virto { font-weight: 600; }
.cvm-table a { color: var(--color-primary-dark); }
/* German compounds ("Serienbesprechungen", "Gruppenkalender") are wider than a
   column at 1000 px: they may break, between syllables on the German page. */
.cvm-table th, .cvm-table td, .cvm-flow__sources li, .cvm-tool__head h3 { overflow-wrap: break-word; }
.cvm-table :is(th, td):lang(de), .cvm-flow__sources li:lang(de) { -webkit-hyphens: auto; hyphens: auto; }
/* Verdict chips and tags: the table reads at a glance, the words explain. */
.cvm-v { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 3px 10px 3px 6px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.cvm-v__icon { flex: none; width: 16px; height: 16px; border-radius: 50%; background: currentColor center / 12px no-repeat; }
.cvm-v--yes { background: #DCFCE7; color: #166534; }
.cvm-v--yes .cvm-v__icon { background-color: #16A34A; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cvm-v--no { background: #F1F2F6; color: #4B4B5A; }
.cvm-v--no .cvm-v__icon { background-color: #8A8A99; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cvm-v--part { background: #FEF3C7; color: #854D0E; }
.cvm-v--part .cvm-v__icon { background-color: #D97706; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cvm-cell { display: block; }
.cvm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.cvm-tag { display: inline-block; padding: 4px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--color-border); font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--color-text); }
.cvm-table .is-virto .cvm-tag { border-color: #C7CCFF; }
.cvm-tag--good { padding-left: 28px; background: #F0FDF4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%2316A34A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 9px center / 14px no-repeat; border-color: #BBF7D0; color: #14532D; }
.cvm-footnote { margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: var(--color-text-muted); }

/* ── One section per calendar ── */
.cvm-tool { padding: 32px; border: 1px solid var(--color-border-light); border-radius: 20px; background: #fff; scroll-margin-top: 110px; }
.cvm-tool + .cvm-tool { margin-top: 24px; }
.cvm-tool__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cvm-tool__good { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.cvm-tool__head img { flex: none; width: 40px; height: 40px; }
.cvm-tool__head h3 { margin: 0; font-size: 22px; line-height: 1.3; color: var(--color-text); }
.cvm-tool__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.cvm-tool__col h4 { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted); }
.cvm-tool__col p, .cvm-tool__col li { font-size: 15px; line-height: 1.6; color: var(--color-text-secondary); }
.cvm-tool__col p { margin: 0; }
.cvm-tool__col ul { margin: 0; padding: 0 0 0 18px; list-style: disc; }
.cvm-tool__col li::marker { color: var(--color-text-muted); }
.cvm-tool__col--virto li::marker { color: var(--color-primary-dark); }
.cvm-tool__col li + li { margin-top: 8px; }
.cvm-tool__col--virto { margin: -14px -14px -14px 0; padding: 14px 18px; border-radius: 14px; background: #F0F3FF; }
.cvm-tool__col--virto h4 { color: #2A2F9E; }
.cvm-tool__col--virto li { color: var(--color-text); }
.cvm-tool__note { margin: 24px 0 0; padding: 14px 18px; border-radius: 12px; background: #FFF8E6; font-size: 15px; line-height: 1.6; color: var(--color-text); }
.cvm-tool__note a, .cvm-tool__col a { color: var(--color-primary-dark); font-weight: 600; }
.cvm-sources { margin: 20px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--color-text-muted); }
.cvm-sources > span:first-child { margin-right: 6px; font-weight: 700; }
.cvm-sources a { color: var(--color-primary-dark); }

/* ── Demo ── */
.cvm-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; align-items: center; }
.cvm-demo__text p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--color-text-secondary); }
.cvm-demo__frame .product-storylane__container { width: 100%; }

/* ── When it is enough / when one calendar pays off ── */
.cvm-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0 0 56px; padding: 0; list-style: none; }
.cvm-cards li { padding: 24px; border-radius: 18px; background: var(--color-bg-section); }
.cvm-cards h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.35; color: var(--color-text); }
.cvm-cards p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--color-text-secondary); }
.cvm-cards__use { font-weight: 600; color: var(--color-text) !important; }
.cvm-cards__use > span { color: var(--color-primary-dark); }
.cvm-need { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.cvm-need__main { padding: 32px; border-radius: 20px; border: 2px solid var(--color-border); }
.cvm-checks { margin: 8px 0 28px; padding: 0; list-style: none; }
.cvm-checks li { position: relative; padding: 0 0 12px 32px; font-size: 16px; line-height: 1.55; color: var(--color-text); }
.cvm-checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #2BB062 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.cvm-small { padding: 28px; border-radius: 20px; background: #FFF0F2; }
.cvm-small img { display: block; margin-bottom: 14px; }
.cvm-small h3 { margin: 0 0 8px; font-size: 19px; color: var(--color-text); }
.cvm-small .cvm-tags { margin: 0 0 18px; }
.cvm-small p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--color-text-secondary); }

/* ── Facts ── */
.cvm-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 24px 0 0; }
.cvm-facts > div { padding: 24px; border-radius: 18px; background: #fff; }
.cvm-facts dt { margin-bottom: 6px; font-weight: 700; color: var(--color-text); }
.cvm-facts dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--color-text-secondary); }
.cvm-facts a { color: var(--color-primary-dark); font-weight: 600; }

/* ── FAQ ── */
.cvm-faq .cvm-h2 { margin-bottom: 28px; }
.cvm-faq details { max-width: 900px; margin-bottom: 12px; border: 1px solid var(--color-border-light); border-radius: 12px; background: #fff; }
.cvm-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--color-text); cursor: pointer; list-style: none; }
.cvm-faq summary::-webkit-details-marker { display: none; }
.cvm-faq summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 400; color: var(--color-primary-dark); }
.cvm-faq details[open] summary::after { content: "\2212"; }
.cvm-faq__a { padding: 0 24px 20px; }
.cvm-faq__a p { margin: 0 0 10px; font-size: 15px; line-height: 1.65; color: var(--color-text-secondary); }
.cvm-faq__a p:last-child { margin-bottom: 0; }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .cvm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Below 1100 px the table becomes one card per question, each answer
   labelled with its calendar: six columns no longer fit German compounds,
   and a phone never scrolls sideways. */
@media (max-width: 1100px) {
  .cvm-table-wrap { background: none; box-shadow: none; }
  .cvm-table, .cvm-table tbody, .cvm-table tr, .cvm-table th, .cvm-table td { display: block; width: auto; }
  .cvm-table thead { display: none; }
  .cvm-table tbody tr { margin-bottom: 16px; padding: 4px 0; border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(29, 32, 136, .06); }
  .cvm-table tbody tr + tr > th { border-top: 0; }
  .cvm-table tbody th { padding: 16px 18px 8px; font-size: 17px; }
  .cvm-table tbody td, .cvm-table tbody tr + tr > td { padding: 10px 18px; border-top: 1px solid var(--color-border-light); }
  .cvm-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--color-text-muted); }
  .cvm-table td.is-virto::before { color: #2A2F9E; }
  /* The verdict and its words share a line once each answer has the row's width. */
  .cvm-v { margin: 0 8px 2px 0; vertical-align: 1px; }
  .cvm-cell { display: inline; }
  .cvm-table tbody tr:last-child .is-virto, .cvm-table td.is-virto { border-radius: 0 0 16px 16px; }
}
/* On a tablet the calendar's name stands beside its answer, not above it. */
@media (min-width: 641px) and (max-width: 1100px) {
  /* A float in a flow-root cell: a two-line name keeps the row as tall as it. */
  .cvm-table tbody td, .cvm-table tbody tr + tr > td { display: flow-root; padding-left: 258px; }
  .cvm-table td::before { float: left; width: 216px; margin: 0 0 0 -240px; font-size: 13px; }
}
@media (max-width: 960px) {
  .cvm-hero__grid, .cvm-demo, .cvm-need { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .cvm-wrap { padding: 0 16px; }
  .cvm-hero { padding-bottom: 48px; }
  .cvm-title { font-size: 30px; }
  .cvm-lead { font-size: 16px; }
  .cvm-actions .cvm-btn { width: 100%; }
  .cvm-flow { padding: 18px; }
  .cvm-flow__sources li { padding: 8px 10px; font-size: 13px; }
  .cvm-answer-band { padding-bottom: 48px; }
  .cvm-answer { padding: 20px; }
  .cvm-answer p { font-size: 16px; }
  .cvm-section { padding: 56px 0; }
  .cvm-h2 { font-size: 25px; }
  .cvm-intro { font-size: 16px; margin-bottom: 28px; }
  .cvm-tool { padding: 20px; }
  .cvm-tool__head h3 { font-size: 19px; }
  .cvm-tool__cols { grid-template-columns: 1fr; gap: 20px; }
  .cvm-tool__col--virto { margin: 0; }
  .cvm-cards { grid-template-columns: 1fr; margin-bottom: 40px; }
  .cvm-need__main, .cvm-small { padding: 22px; }
  .cvm-facts { grid-template-columns: 1fr; }
  .cvm-faq summary { padding: 16px 18px; }
  .cvm-faq__a { padding: 0 18px 18px; }
}
