/* Website-Stile. Tokens und Schriften kommen aus der App (eine Quelle). */
@import url("/app/css/core.css");
@import url("/app/css/components.css");

body { display: flex; flex-direction: column; min-height: 100%; }
main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 24px; padding-block: 40px 80px; display: grid; gap: 88px; }
main > section { min-width: 0; }
a { color: inherit; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Navigation */
.site-nav { display: flex; align-items: center; gap: 22px; padding: 12px 24px; border-bottom: 1px solid var(--line);
  position: sticky; top: env(safe-area-inset-top, 0px); background: color-mix(in srgb, var(--ground) 94%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 10; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: var(--fs-xl); text-decoration: none; }
.wordmark img { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a, .nav-anmelden { text-decoration: none; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"], .nav-anmelden:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.btn { text-decoration: none; text-align: center; }
.btn.gross { padding: 11px 20px; font-size: 15px; }
.btn-secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.hinweis { color: var(--faint); font-size: var(--fs-sm); font-family: var(--mono); }

/* Überschriften und Abschnitte */
section > h2, .cta-final h2, .page-header h1 { text-wrap: balance; }
section > h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; margin-bottom: 12px; max-width: 24ch; }
section > .lede { margin-bottom: 24px; }
.mehr { margin: 18px 0 0; }
.mehr a { color: var(--accent); font-weight: 500; text-decoration: none; }
.mehr a:hover { text-decoration: underline; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -.025em; margin-top: 6px; }
.hero h1 em { color: var(--accent); }
.hero .lede { font-size: var(--fs-lg); margin-top: 18px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 14px; }
.hero-bild { margin: 0; }
.hero-bild figcaption, .bild-rahmen figcaption { font-size: var(--fs-sm); color: var(--muted); margin-top: 10px; max-width: 52ch; }
.bild-ringe { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; }

/* Bilder aus der App (Inline-SVG, Farben aus den Tokens) */
.holz-rinde { fill: none; stroke: var(--bark); stroke-width: 9; stroke-linejoin: round; }
.holz-ring { fill: var(--wood-early); stroke: var(--wood-late); stroke-width: 1.1; }
.holz-alt { fill: var(--wood-alt); }
.faden { fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; opacity: .8; }
.faden.fremd { stroke-dasharray: 3 3; opacity: .5; }
.punkt { fill: var(--c); stroke: var(--surface); stroke-width: 1.5; }
.bild-ringe .punkt { stroke: var(--wood-early); }
.heute { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.mark { fill: var(--wood-late); }
.bild-rahmen { margin: 0; }
.bild-scroll { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px; overflow-x: auto; }
.bild-zeitstrahl { display: block; width: 100%; min-width: 760px; height: auto; font-family: var(--sans); }
.bild-zeitstrahl .raster { stroke: var(--line); stroke-width: 1; }
.bild-zeitstrahl .trenn { stroke: var(--line); stroke-width: 1; }
.bild-zeitstrahl .text-jahr { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.bild-zeitstrahl .text-zeile { font-size: 11.5px; font-weight: 500; fill: var(--c, var(--ink)); }
.bild-zeitstrahl .text-zeile.band { fill: var(--muted); font-weight: 400; }
.bild-zeitstrahl .band-kapitel { fill: var(--sunk); }
.bild-zeitstrahl .band-kapitel.alt { fill: var(--accent-soft); }
.bild-zeitstrahl .text-kapitel { font-family: var(--serif); font-style: italic; font-size: 14px; fill: var(--ink); }
.bild-zeitstrahl .band-ort { fill: var(--sunk); stroke: var(--line); }
.bild-zeitstrahl .text-ort { font-size: 10.5px; fill: var(--muted); }
.bild-zeitstrahl .kurve { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: .7; }
.bild-zeitstrahl .kurve-oben { fill: color-mix(in srgb, var(--wettkaempfe) 26%, transparent); }
.bild-zeitstrahl .kurve-unten { fill: color-mix(in srgb, var(--gesundheit) 24%, transparent); }
.bild-zeitstrahl .balken { fill: color-mix(in srgb, var(--c) 22%, var(--surface)); stroke: color-mix(in srgb, var(--c) 60%, transparent); }
.bild-zeitstrahl .balken.fremd { opacity: .55; }
.bild-zeitstrahl .text-balken { font-size: 10.5px; fill: var(--ink); pointer-events: none; }

/* So funktioniert's — echte Abfolge, daher nummeriert */
.schritte ol { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.schritte li { display: grid; gap: 8px; align-content: start; }
.schritt-nr { font-family: var(--mono); font-size: 13px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--accent); background: var(--surface); }
.schritte h3 { font-size: var(--fs-xl); }
.schritte p { margin: 0; color: var(--muted); }

/* Karten */
.feature-grid, .use-case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { display: grid; gap: 6px; align-content: start; }
.card-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.card-title { font-size: var(--fs-lg); margin: 6px 0 0; }
.card-text { margin: 0; color: var(--muted); }
.card-link { color: var(--accent); text-decoration: none; font-weight: 500; font-size: var(--fs-sm); margin-top: 4px; }

/* Preise */
.tarife-kurz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.tarife-kurz div { background: var(--surface); padding: 18px 20px; display: grid; gap: 2px; }
.tarife-kurz b { font-family: var(--serif); font-weight: 500; font-size: var(--fs-xl); }
.tarife-kurz span { font-family: var(--mono); font-size: 14px; }
.tarife-kurz small { color: var(--muted); }
.pricing-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.pricing-plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; display: grid; gap: 10px; align-content: start; }
.pricing-plan.empfohlen { box-shadow: 0 0 0 2px var(--accent); }
.pricing-plan h2 { font-size: var(--fs-2xl); }
.pricing-plan ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.preis { font-family: var(--serif); font-size: 34px; margin: 0; line-height: 1.1; }
.preis small { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.bald { font-size: 11px; font-family: var(--mono); color: var(--lernen); border: 1px solid currentColor; border-radius: 999px; padding: 0 6px; margin-left: 4px; white-space: nowrap; }

/* Seitenkopf, Abschluss, Listen, Formulare */
.page-header h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.08; }
.page-header .lede { font-size: var(--fs-lg); margin-top: 12px; }
.cta-final { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 56px 24px; display: grid; justify-items: center; gap: 14px; }
.cta-final h2 { font-size: clamp(26px, 3.4vw, 36px); max-width: 26ch; }
.cta-final h2 em { color: var(--accent); }
.faq-list { max-width: 760px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-list summary { cursor: pointer; font-weight: 500; font-size: 16px; }
.faq-list details p { margin: 10px 0 0; color: var(--muted); max-width: 64ch; }
.contact-form, .signup-form { display: grid; gap: 14px; max-width: 560px; }
.contact-form label, .signup-form label { display: grid; gap: 5px; font-size: var(--fs-sm); color: var(--muted); }
.contact-form input, .contact-form textarea, .contact-form select, .signup-form input {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-control); padding: 10px 12px; font-size: 15px; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { font-size: var(--fs-sm); padding: 10px 12px; border-radius: 8px; background: var(--sunk); margin: 0; }
.form-status[data-art="fehler"] { color: var(--gesundheit); }
.form-status[data-art="ok"] { border-left: 3px solid var(--wettkaempfe); }
.legal-content { max-width: 72ch; }
.legal-content h2 { font-size: var(--fs-xl); margin: 28px 0 8px; }
.legal-content p, .legal-content li { color: var(--ink); }
.entwurf { border-left: 3px solid var(--lernen); background: var(--surface); padding: 12px 14px; border-radius: 8px; }
.coming-soon, .signup { display: grid; gap: 16px; justify-items: start; max-width: 640px; }
.coming-soon > *, .signup > * { margin: 0; }
.signup .signup-form, .coming-soon .signup-form { width: 100%; max-width: 440px; }
.signup h1, .coming-soon h1 { font-size: clamp(32px, 4.6vw, 44px); line-height: 1.1; }

/* Preise im Detail */
.preise-fuss { margin-top: 14px; }
.tabelle-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.vergleich { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.vergleich th, .vergleich td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.vergleich tr:last-child th, .vergleich tr:last-child td { border-bottom: 0; }
.vergleich th[scope="row"] { text-align: left; font-weight: 400; }
.vergleich thead th { font-family: var(--serif); font-weight: 500; font-size: 16px; background: var(--sunk); }
.vergleich .nein { color: var(--faint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Anwendungsfälle */
.fall-wer { margin: 6px 0 0; font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* Hinweise und Rechtstexte */
.hinweis-text { font-size: var(--fs-sm); color: var(--muted); margin: 0; max-width: 60ch; }
.hinweis-text a, .legal-content a, .faq-list a, .page-header a { color: var(--accent); }
.gross-icon { width: 52px; height: 52px; border-radius: 14px; }
.gross-icon .ic { width: 26px; height: 26px; }
.coming-soon h1 em { color: var(--accent); }
mark.offen { background: color-mix(in srgb, var(--lernen) 22%, transparent); color: var(--ink); border-radius: 3px; padding: 0 3px; }

/* Startseite: Archivblatt, Karten mit Vorschau, App-Fenster (nach design/mockups/01-index) */
.hinweis.mit-icon { display: flex; align-items: center; gap: 8px; }
.hinweis.mit-icon .ic { width: 16px; height: 16px; flex: none; }
.archivblatt { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; box-shadow: 0 18px 40px -28px rgb(0 0 0 / .35); }
.archivblatt-kopf, .archivblatt-fuss { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.archivblatt-kopf { margin-bottom: 10px; }
.archivblatt-kopf span:first-child { border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.archivblatt .bild-ringe { background: var(--wood-early); border-radius: 8px; padding: 14px; box-sizing: border-box; }
.archivblatt-fuss { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.archivblatt-fuss b { color: var(--ink); font-weight: 500; }
.eyebrow + h2 { margin-top: 4px; }
.feature-gross { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card.mit-vorschau { grid-template-rows: auto auto 1fr auto; }
.karten-nr { margin: 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.vorschau { margin-top: 12px; background: var(--ground); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
.bild-mini { display: block; width: 100%; height: auto; font-family: var(--sans); }
.bild-mini .text-jahr { font-family: var(--mono); font-size: 9.5px; fill: var(--faint); }
.bild-mini .text-zeile { font-size: 10.5px; font-weight: 500; fill: var(--c); }
.bild-mini .balken { fill: color-mix(in srgb, var(--c) 30%, var(--surface)); stroke: color-mix(in srgb, var(--c) 70%, transparent); }
.bild-mini .raster { stroke: var(--line); stroke-dasharray: 3 3; }
.bild-mini .kurve { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: .75; }
.bild-mini .kurve-oben { fill: color-mix(in srgb, var(--wettkaempfe) 30%, transparent); }
.bild-mini .kurve-unten { fill: color-mix(in srgb, var(--gesundheit) 26%, transparent); }
.mini-menschen { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mini-menschen li { display: flex; align-items: baseline; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; font-size: 13px; }
.mini-menschen span { color: var(--muted); font-size: 12px; }
.mini-menschen small { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--menschen); background: color-mix(in srgb, var(--menschen) 12%, transparent); border-radius: 4px; padding: 0 6px; }
.feature-grid.klein { margin-top: 14px; }
.feature-grid.klein .card-text { font-size: 14px; }
.app-fenster { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.app-fenster .bild-scroll { border: 0; border-radius: 0; }
.app-fenster figcaption { padding: 0 14px 12px; }
.app-fenster-kopf { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.app-fenster-kopf .punkte { display: flex; gap: 6px; }
.app-fenster-kopf .punkte i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.app-fenster-titel { font-family: var(--serif); font-size: 15px; }
.app-fenster-kopf .zoom { margin-left: auto; display: flex; gap: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.app-fenster-kopf .zoom > * { border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-weight: 400; }
.app-fenster-kopf .zoom b { color: var(--ink); background: var(--sunk); }
.bild-zeitstrahl.kurz .text-kapitel { font-size: 15px; }
.bild-zeitstrahl.kurz .text-ort, .bild-zeitstrahl.kurz .text-balken { font-size: 11.5px; }
.cta-final .eyebrow { margin: 0; }
.cta-final .hinweis { margin: 0; }
.vertrauen > .lede { max-width: 62ch; }

/* Inhaltsseiten (Anwendungsfälle, Sicherheit, Vergleich, Über uns) */
.text-abschnitt { max-width: 72ch; }
.text-abschnitt > p, .text-abschnitt li { color: var(--ink); line-height: 1.6; }
.text-abschnitt a { color: var(--accent); }
.text-abschnitt ul, .schritt-liste { padding-left: 20px; display: grid; gap: 10px; }
.schritt-liste li::marker { font-family: var(--mono); color: var(--accent); }
.fragen-liste li { font-family: var(--serif); font-size: 18px; font-style: italic; }
.vergleich.links th, .vergleich.links td { text-align: left; }
.kurve-rahmen { margin: 18px 0; max-width: 520px; }
.verwandt .card { text-decoration: none; transition: border-color .15s; }
.verwandt .card:hover { border-color: var(--accent); }
.verwandt .card-title::after { content: " →"; color: var(--accent); }

/* Footer */
.site-footer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 36px 24px; border-top: 1px solid var(--line); font-size: var(--fs-sm); max-width: 1120px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.footer-col { display: grid; gap: 6px; align-content: start; }
.footer-col h4 { margin: 0 0 4px; font-weight: 500; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-col p { margin: 0; color: var(--faint); font-family: var(--mono); font-size: 12px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .bild-ringe { max-width: 340px; }
  .schritte ol, .pricing-table, .feature-gross { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-nav { flex-wrap: wrap; padding-inline: 16px; gap: 10px 14px; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin-left: 0; gap: 16px; }
  .nav-anmelden { margin-left: auto; }
  /* Wortmarke, Anmelden und Knopf müssen in eine Zeile passen (375 px) */
  .wordmark { font-size: 19px; gap: 7px; }
  .wordmark img { width: 22px; height: 22px; }
  .nav-cta { padding: 6px 11px; font-size: 13px; }
  .nav-anmelden { font-size: 13.5px; }
  /* Die Links laufen auf dem Handy seitlich weiter; der Verlauf zeigt, dass da noch etwas kommt */
  .nav-links { mask-image: linear-gradient(to right, #000 85%, transparent); -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); padding-right: 24px; }
  .app-fenster-kopf .zoom, .app-fenster-titel { display: none; }
  main { padding-inline: 16px; padding-block: 24px 56px; gap: 64px; }
  .tarife-kurz { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; padding-inline: 16px; }
}

/* Preisseite: Abrechnung und Buchungslinks */
.abrechnung { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-bottom: 16px; background: var(--surface); }
.abrechnung[hidden] { display: none; }
.abrechnung button { all: unset; cursor: pointer; padding: 6px 14px; border-radius: 999px; font-size: var(--fs-sm); color: var(--muted); }
.abrechnung button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.abrechnung button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.abrechnung small { font-size: 11px; opacity: .8; margin-left: 4px; }
.plan-cta { justify-self: start; margin-top: 6px; }

/* Kündigungsseite */
.kuendigen-art { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.kuendigen-art legend { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 4px; }
.kuendigen-art label { display: flex !important; gap: 8px; align-items: center; color: var(--ink) !important; }
.kuendigen-form[hidden], .kuendigen-form label[hidden] { display: none; }
.kuendigen-eingang { max-width: 560px; border-left: 3px solid var(--wettkaempfe); background: var(--surface); padding: 16px 18px; border-radius: 8px; }
.kuendigen-eingang h2 { font-size: var(--fs-xl); margin: 0 0 8px; }
@media print { .site-nav, .site-footer, #announcement-banner { display: none; } }

/* Einwilligung zur Reichweitenmessung (matomo.js) */
.matomo-hinweis { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card, 12px); box-shadow: 0 6px 24px rgb(0 0 0 / .12); padding: 14px 16px; font-size: var(--fs-sm); display: grid; gap: 10px; }
.matomo-hinweis p { margin: 0; }
.matomo-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
