/* Marketing-Startseite – Aufbau: schwebende Navigation, Hero mit Kennzahlen, Leitsatz, 3 Schritte,
   Funktionsblöcke mit Mockups, Fakten, Datenschutz, Pilot, Preise, FAQ, Abschluss, Footer.
   Alle Farben, Radien und Abstände kommen aus den Tokens in site.css. */

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { background: var(--st-surface); }
section { padding-block: 88px; }
@media (max-width: 767.98px) { section { padding-block: 56px; } }

.eyebrow { display: inline-block; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--st-petrol); margin-bottom: var(--st-space-2); }
.section-title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
.section-lead { font-size: 18px; line-height: 28px; color: var(--st-ink-muted); max-width: 44rem; }
.mx-auto.section-lead { margin-inline: auto; }

/* ---------- Schwebende Navigation ---------- */
.nav-float { position: sticky; top: 12px; z-index: 1030; padding-inline: 12px; }
.nav-float .navbar {
    max-width: 1200px; margin-inline: auto; border: 1px solid var(--st-line) !important;
    border-radius: var(--st-radius-md); box-shadow: var(--st-shadow-card) !important; padding: 8px 12px;
}
.nav-float .nav-link { padding-inline: 12px !important; }
/* Inhalt so breit wie die schwebende Navigation (Bootstrap xl/xxl wäre 1140/1320px) */
@media (min-width: 1200px) { .container { max-width: min(1200px, 100% - 24px); } }
.nav-float .dropdown-menu { border-radius: var(--st-radius-md); padding: 8px; min-width: 18rem; }
.nav-float .dropdown-item { border-radius: var(--st-radius-sm); padding: 10px 12px; white-space: normal; }
.nav-float .dropdown-item small { display: block; color: var(--st-ink-muted); font-size: 13px; }

/* Sicherheitsnetz: nichts darf die Seite seitlich verschieben (clip statt hidden, damit sticky/fixed weiter funktionieren) */
body { overflow-x: clip; }

/* ---------- Hero ---------- */
.hero {
    margin: -64px 12px 0; padding: 152px 0 72px; border-radius: 0 0 24px 24px;
    background: var(--st-petrol); color: var(--st-on-petrol);
}
.hero h1 { color: var(--st-on-petrol); font-size: clamp(36px, 5vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; }
.hero .lead { color: var(--st-on-petrol); opacity: .9; font-size: 19px; line-height: 30px; max-width: 34rem; }
/* Langes Etikett darf auf dem Handy umbrechen, sonst wird die Seite breiter als der Bildschirm */
.hero .pill { display: inline-block; white-space: normal; max-width: 100%; line-height: 1.35; }
.btn-on-petrol { --bs-btn-color: var(--st-petrol); --bs-btn-bg: var(--st-on-petrol); --bs-btn-border-color: var(--st-on-petrol);
    --bs-btn-hover-color: var(--st-petrol); --bs-btn-hover-bg: var(--st-petrol-soft); --bs-btn-hover-border-color: var(--st-petrol-soft);
    --bs-btn-active-color: var(--st-petrol); --bs-btn-active-bg: var(--st-petrol-soft); }
.btn-ghost-petrol { --bs-btn-color: var(--st-on-petrol); --bs-btn-border-color: var(--st-on-petrol); --bs-btn-bg: transparent;
    --bs-btn-hover-color: var(--st-petrol); --bs-btn-hover-bg: var(--st-on-petrol); --bs-btn-hover-border-color: var(--st-on-petrol);
    --bs-btn-active-color: var(--st-petrol); --bs-btn-active-bg: var(--st-on-petrol); }
.hero :focus-visible { outline-color: var(--st-on-petrol) !important; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--st-on-petrol) 30%, transparent); }
.hero-facts .num { font-size: 32px; line-height: 36px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-facts .txt { font-size: 14px; line-height: 20px; opacity: .85; }

/* Smartphone-Mockup */
.phone {
    width: 300px; max-width: 100%; margin-inline: auto; padding: 12px; border-radius: 36px;
    background: var(--st-ink); box-shadow: 0 24px 48px rgba(0,0,0,.25);
}
[data-bs-theme="dark"] .phone { background: #0b1416; border: 1px solid var(--st-line); }
.phone-screen { border-radius: 26px; background: var(--st-surface); color: var(--st-ink); padding: 20px 16px 24px; overflow: hidden; }
.phone-screen .mini-label { font-size: 12px; line-height: 16px; color: var(--st-ink-muted); }
.phone-screen .mini-title { font-size: 17px; line-height: 22px; font-weight: 700; }
.phone .slot { min-height: 40px; font-size: 14px; cursor: default; }
.phone .slot:hover { background: var(--st-petrol-soft); color: var(--st-ink); }
.phone .slot-mine:hover, .phone .slot-mine { background: var(--st-apricot); color: var(--st-on-apricot); }
.phone .slot-taken:hover, .phone .slot-taken { background: var(--st-line); color: var(--st-ink-muted); }
.phone .slot-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- Leitsatz ---------- */
.vision blockquote { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; max-width: 48rem; margin-inline: auto; }
.vision .quote-mark { font-size: 56px; line-height: 1; color: var(--st-apricot); font-weight: 700; }

/* ---------- 3 Schritte ---------- */
.steps-card { background: var(--st-surface-raised); border: 1px solid var(--st-line); border-radius: 24px; padding: 56px 40px; }
@media (max-width: 767.98px) { .steps-card { padding: 32px 20px; } }
.step-num { font-size: 40px; line-height: 1; font-weight: 700; color: var(--st-petrol); font-variant-numeric: tabular-nums; }
.step-arrow { color: var(--st-line-strong); font-size: 24px; }
.step-visual { height: 148px; border-radius: var(--st-radius-md); background: var(--st-surface); border: 1px solid var(--st-line); padding: 16px; margin-top: 20px; overflow: hidden; }

/* ---------- Funktionsblöcke ---------- */
.feature + .feature { margin-top: 96px; }
@media (max-width: 991.98px) { .feature + .feature { margin-top: 64px; } }
/* g-5-Gutter wäre auf schmalen Schirmen breiter als der Containerrand → seitliches Scrollen */
@media (max-width: 575.98px) { main .g-5 { --bs-gutter-x: 1.5rem; } }
.checklist { list-style: none; padding: 0; margin: 20px 0 24px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding-block: 6px; }
.checklist i { color: var(--st-moss); font-size: 18px; line-height: 24px; }
.mock {
    background: var(--st-surface-raised); border: 1px solid var(--st-line); border-radius: 16px;
    box-shadow: var(--st-shadow-card); overflow: hidden;
}
.mock-bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--st-line); background: var(--st-surface); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--st-line); }
.mock-bar .url { width: auto; height: auto; border-radius: var(--st-radius-sm); background: var(--st-surface-raised); border: 1px solid var(--st-line); font-size: 12px; color: var(--st-ink-muted); padding: 2px 10px; margin-left: 8px; }
.mock .grid-table { font-size: 12px; }
.mock .grid-table td.cell-free, .mock .grid-table td.cell-booked { min-width: 2.6rem; }
.mock-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--st-line); font-size: 14px; }
.mock-list li:last-child { border-bottom: 0; }

/* Integrations-Diagramm */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; padding: 32px 24px; }
.flow-col { display: grid; gap: 10px; }
.flow-chip { background: var(--st-surface); border: 1px solid var(--st-line); border-radius: var(--st-radius-sm); padding: 8px 12px; font-size: 14px; font-weight: 600; text-align: center; }
.flow-core { background: var(--st-petrol); color: var(--st-on-petrol); border-radius: var(--st-radius-md); padding: 20px 12px; text-align: center; font-weight: 700; }
.flow-core img { width: 40px; height: 40px; display: block; margin: 0 auto 8px; }
.flow-arrow { color: var(--st-line-strong); font-size: 22px; }
@media (max-width: 575.98px) {
    .flow { grid-template-columns: 1fr; }
    .flow-arrow { transform: rotate(90deg); justify-self: center; }
}

/* ---------- Buchungsverfahren ---------- */
.mode-card { height: 100%; display: flex; flex-direction: column; padding: 32px; background: var(--st-surface-raised); border: 1px solid var(--st-line); border-radius: 16px; }
.mode-card .checklist { flex-grow: 1; margin-bottom: 0; }
.mode-visual { height: auto; min-height: 112px; }
.mode-slots { grid-template-columns: repeat(4, 1fr); }
.mode-slots .slot { min-height: 36px; font-size: 13px; cursor: default; }
.mode-slots .slot:not(.slot-taken):not(.slot-mine):hover { background: var(--st-surface-raised); color: var(--st-ink); }
@media (max-width: 575.98px) { .mode-card { padding: 24px 20px; } .mode-slots { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Am Sprechtag ---------- */
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--st-moss); background: var(--st-moss-soft); border-radius: 999px; padding: 2px 10px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-moss); animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.mock-list li.is-done > span:first-child { color: var(--st-ink-muted); text-decoration: line-through; }
.live-turn { border: 1px solid var(--st-line); border-radius: var(--st-radius-md); padding: 12px; background: var(--st-surface-raised); }
/* Foyer-Monitor – Nachbau von src/Sprechtag.Web/wwwroot/css/monitor.css (immer dunkel wie das Original) */
.fmon { --m-surface: #121a1c; --m-raised: #1b2528; --m-line: #2f3c40; --m-ink: #edf2f1; --m-muted: #a2b3b6;
        --m-petrol: #5cc3cf; --m-petrol-soft: #0e3439; --m-moss: #7ccf8c; --m-alert: #f97066; --m-delay: #e8c46a;
        background: var(--m-surface); color: var(--m-ink); border-radius: 16px; overflow: hidden; box-shadow: var(--st-shadow-card); font-size: 13px; }
.fmon-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--m-line); }
.fmon-school { color: var(--m-muted); font-size: 12px; }
.fmon-title { color: var(--m-petrol); font-size: 20px; font-weight: 700; line-height: 1.2; }
.fmon-title span { color: var(--m-ink); font-weight: 600; }
.fmon-clock { margin-left: auto; text-align: right; }
.fmon-clock div { font-size: 26px; font-weight: 700; line-height: 1; }
.fmon-clock small { color: var(--m-muted); font-size: 11px; }
.fmon-board { padding: 12px 18px 6px; }
.fmon-group { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--m-muted);
              border-bottom: 2px solid var(--m-line); padding-bottom: 4px; margin: 8px 0 6px; }
.fmon-group:first-child { margin-top: 0; }
.fmon-row { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 10px; padding: 7px 10px; margin-bottom: 5px;
            background: var(--m-raised); border-radius: 8px; border-left: 5px solid var(--m-line); }
.fmon-room { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fmon-name { font-size: 14px; font-weight: 600; }
.fmon-way { color: var(--m-muted); font-size: 11px; }
.fmon-state { display: flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.fmon-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--m-muted); margin-right: 2px; vertical-align: middle; }
.fmon-row.is-talk { border-left-color: var(--m-petrol); }
.fmon-row.is-talk .fmon-state { color: var(--m-petrol); }
.fmon-row.is-talk .fmon-dot, .fmon-dot.is-talk { background: var(--m-petrol); box-shadow: 0 0 0 3px var(--m-petrol-soft); }
.fmon-row.is-free { border-left-color: var(--m-moss); }
.fmon-row.is-free .fmon-state { color: var(--m-moss); }
.fmon-row.is-free .fmon-dot, .fmon-dot.is-free { background: var(--m-moss); }
.fmon-row.is-pause { border-left-color: var(--m-muted); background: repeating-linear-gradient(135deg, var(--m-raised) 0 10px, #222e31 10px 14px); }
.fmon-row.is-pause .fmon-state { color: var(--m-muted); }
.fmon-row.is-pause .fmon-dot, .fmon-dot.is-pause { background: transparent; border: 2px solid var(--m-muted); }
.fmon-row.is-done { opacity: .55; }
.fmon-row.is-done .fmon-state { color: var(--m-muted); font-weight: 400; }
.fmon-delay { padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--m-surface); background: var(--m-delay); }
.fmon-delay.is-high { background: var(--m-alert); }
.fmon-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 18px; border-top: 1px solid var(--m-line); color: var(--m-muted); font-size: 11px; }
@media (max-width: 575.98px) {
    .fmon-head, .fmon-board, .fmon-foot { padding-inline: 12px; }
    .fmon-row { grid-template-columns: 52px 1fr; row-gap: 2px; }
    .fmon-room { font-size: 15px; }
    .fmon-state { grid-column: 2; white-space: normal; }
    .fmon-title { font-size: 17px; }
    .fmon-clock div { font-size: 22px; }
    .fmon-foot .ms-auto { margin-left: 0 !important; }
}
.report-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.report-stats > div { border: 1px solid var(--st-line); border-radius: var(--st-radius-md); padding: 12px; background: var(--st-surface); }
.report-num { font-size: 22px; line-height: 28px; font-weight: 700; color: var(--st-petrol); }
.report-num small { font-size: 13px; font-weight: 400; color: var(--st-ink-muted); }
.report-hint { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--st-radius-md); background: var(--st-apricot-soft); color: var(--st-ink); }
.report-hint i { color: var(--st-apricot-ink); }
@media (max-width: 575.98px) { .report-stats { grid-template-columns: 1fr; } }

/* ---------- Fakten & Rollen ---------- */
.facts { border-block: 1px solid var(--st-line); background: var(--st-surface-raised); }
.fact-num { font-size: clamp(36px, 4vw, 48px); line-height: 1; font-weight: 700; color: var(--st-petrol); font-variant-numeric: tabular-nums; }
.role-card { height: 100%; padding: 28px; background: var(--st-surface); border: 1px solid var(--st-line); border-radius: var(--st-radius-md); }
.role-card .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--st-line); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--st-petrol-soft); color: var(--st-petrol); font-size: 18px; }
.trust-line { font-size: 14px; color: var(--st-ink-muted); }
.trust-line i { color: var(--st-moss); }

/* ---------- Demo-CTA ---------- */
.cta-strip { background: var(--st-surface-raised); border: 1px solid var(--st-line); border-radius: 24px; padding: 40px; }

/* ---------- Datenschutz ---------- */
.reason { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--st-surface-raised); border: 1px solid var(--st-line); border-radius: var(--st-radius-md); height: 100%; }
.icon { flex: none; width: 44px; height: 44px; border-radius: var(--st-radius-md); background: var(--st-petrol-soft); color: var(--st-petrol); display: grid; place-items: center; font-size: 20px; }

/* ---------- Pilot ---------- */
.pilot { background: var(--st-apricot-soft); border-radius: 24px; padding: 48px 40px; }
.pilot .eyebrow { color: var(--st-apricot-ink); }
@media (max-width: 767.98px) { .pilot { padding: 32px 20px; } }

/* ---------- Preise ---------- */
.price-card { height: 100%; display: flex; flex-direction: column; padding: 32px; background: var(--st-surface-raised); border: 1px solid var(--st-line); border-radius: 16px; }
.price-card.featured { border: 2px solid var(--st-petrol); }
.price { font-size: 36px; line-height: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price small { font-size: 15px; font-weight: 400; color: var(--st-ink-muted); }
.price-card .checklist { flex-grow: 1; }

/* ---------- FAQ ---------- */
.accordion { --bs-accordion-bg: var(--st-surface-raised); --bs-accordion-border-color: var(--st-line); --bs-accordion-border-radius: var(--st-radius-md);
    --bs-accordion-inner-border-radius: var(--st-radius-md); --bs-accordion-active-bg: var(--st-surface-raised); --bs-accordion-active-color: var(--st-petrol);
    --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-btn-color: var(--st-ink); --bs-accordion-color: var(--st-ink); }
.accordion-item { margin-bottom: 12px; border: 1px solid var(--st-line) !important; border-radius: var(--st-radius-md) !important; overflow: hidden; }
.accordion-button { font-weight: 600; font-size: 17px; padding: 20px 24px; }
.accordion-body { color: var(--st-ink-muted); padding: 0 24px 20px; }
.faq-aside { position: sticky; top: 112px; }

/* ---------- Abschluss & Footer ---------- */
.final { background: var(--st-petrol); color: var(--st-on-petrol); border-radius: 24px; padding: 64px 32px; text-align: center; }
.final h2 { color: var(--st-on-petrol); }
.site-footer { background: var(--st-surface-raised); border-top: 1px solid var(--st-line); padding: 64px 0 32px; margin-top: 88px; }
.site-footer h3 { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--st-ink-muted); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding-block: 4px; }
.site-footer a { color: var(--st-ink); text-decoration: none; }
.site-footer a:hover { color: var(--st-petrol); text-decoration: underline; }
.site-footer .legal { border-top: 1px solid var(--st-line); margin-top: 48px; padding-top: 24px; font-size: 14px; color: var(--st-ink-muted); }

/* Dunkelmodus: große Markenflächen in Petrol-soft statt grellem Petrol */
[data-bs-theme="dark"] .hero, [data-bs-theme="dark"] .final { background: var(--st-petrol-soft); color: var(--st-ink); }
[data-bs-theme="dark"] .hero h1, [data-bs-theme="dark"] .hero .lead, [data-bs-theme="dark"] .final h2 { color: var(--st-ink); }
[data-bs-theme="dark"] .hero-facts { border-top-color: var(--st-line); }
[data-bs-theme="dark"] .hero .pill { background: var(--st-surface-raised) !important; color: var(--st-petrol) !important; }
[data-bs-theme="dark"] .btn-on-petrol { --bs-btn-color: var(--st-on-petrol); --bs-btn-bg: var(--st-petrol); --bs-btn-border-color: var(--st-petrol);
    --bs-btn-hover-color: var(--st-on-petrol); --bs-btn-hover-bg: var(--st-ink); --bs-btn-hover-border-color: var(--st-ink); }
[data-bs-theme="dark"] .btn-ghost-petrol { --bs-btn-color: var(--st-ink); --bs-btn-border-color: var(--st-line-strong);
    --bs-btn-hover-color: var(--st-on-petrol); --bs-btn-hover-bg: var(--st-petrol); --bs-btn-hover-border-color: var(--st-petrol); }
[data-bs-theme="dark"] .hero :focus-visible, [data-bs-theme="dark"] .final :focus-visible { outline-color: var(--st-petrol) !important; }

/* visavio-Wortmarke im Footer */
.site-footer .logo-light, .site-footer .logo-dark { height: 36px; width: auto; }

/* ---------- Unterseiten (Themen & Ratgeber) ---------- */
.crumbs { font-size: 14px; margin-bottom: 20px; color: var(--st-on-petrol); }
.crumbs a { color: inherit; opacity: .85; }
.crumbs i { font-size: 11px; opacity: .7; margin-inline: 4px; }
[data-bs-theme="dark"] .crumbs { color: var(--st-ink-muted); }
.topic-link { color: inherit; text-decoration: none; transition: border-color .15s; }
.topic-link:hover { color: inherit; border-color: var(--st-petrol); }
.topic-link:hover h3 { color: var(--st-petrol); }
.prose { font-size: 17px; line-height: 28px; }
.prose h2 { font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; margin: 56px 0 16px; scroll-margin-top: 96px; }
.prose h2:first-of-type { margin-top: 40px; }
.prose-num { color: var(--st-petrol); font-variant-numeric: tabular-nums; margin-right: 6px; }
.prose p { color: var(--st-ink-muted); }
.prose .checklist { margin-block: 12px 8px; }
.prose-toc { padding-left: 1.25rem; font-size: 15px; }
.prose-toc li { padding-block: 4px; }
.prose-toc a { color: var(--st-ink); text-decoration: none; }
.prose-toc a:hover { color: var(--st-petrol); text-decoration: underline; }
.vorlage { border: 1px solid var(--st-line); border-radius: var(--st-radius-md); background: var(--st-surface-raised); margin: 20px 0 8px; overflow: hidden; }
.vorlage-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--st-line); font-size: 15px; }
.vorlage-text { white-space: pre-line; padding: 16px; font-size: 15px; line-height: 24px; color: var(--st-ink); overflow-wrap: anywhere; }
