/* Landingpage – Farben, Maße und Schrift wie in der App (apps/web/src/styles/_tokens.scss). Leitmotiv: der Ideenzettel
   aus dem alten Briefkasten.
   Schrift: Plus Jakarta Sans (variabel 400–800, SIL OFL 1.1 – Lizenz: assets/fonts/OFL.txt), selbst gehostet wie im
   Portal (gleiche Dateien wie apps/web/public/fonts) – keine Anfrage an Dritte; CSP default-src 'self' deckt font-src.
   Bis die Schrift geladen ist (font-display: swap) bzw. als Ersatz die Systemschrift. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-v12-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-v12-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --bg: #f4f6f6;
  --surface: #ffffff;
  --sunken: #eef2f2;
  --border: #dce3e4;
  --text: #132326;
  --muted: #485a5e;
  --subtle: #5a6b70;
  --accent: #0c6b6e;
  --accent-strong: #08565a;
  --accent-text: #0a6366;
  --on-accent: #ffffff;
  --accent-soft: color-mix(in oklab, var(--accent) 10%, var(--surface));
  --accent-border: color-mix(in oklab, var(--accent) 35%, var(--surface));
  --note: #fff1c4;
  --note-ink: #5b4300;
  --ph: #fff3d9;
  --dark-bg: #0e2a2c;
  --dark-surface: #143739;
  --dark-text: #e6f0f0;
  --dark-muted: #a9c4c4;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --shadow: 0 1px 2px rgb(19 35 38 / 6%), 0 8px 24px rgb(19 35 38 / 8%);
  --wrap: 72rem;
  --gutter-l: max(1.25rem, env(safe-area-inset-left, 0px));
  --gutter-r: max(1.25rem, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1214;
    --surface: #131b1e;
    --sunken: #0f1619;
    --border: #273438;
    --text: #e4ebec;
    --muted: #a9b7ba;
    --subtle: #92a3a7;
    --accent: #5cc7c3;
    --accent-strong: #84d8d5;
    --accent-text: #6dd0cc;
    --on-accent: #05292a;
    --note: #3a3115;
    --note-ink: #f3d98b;
    --ph: #3a2f12;
    --dark-bg: #081a1b;
    --dark-surface: #0f2a2b;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; font-kerning: normal; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--surface); padding: 0.5rem 1rem; border-radius: var(--r-md); z-index: 50; }
.skip:focus { left: 0.5rem; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.narrow { max-width: 46rem; }
.center { text-align: center; }
.center.lead, p.center, .center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 0.75rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.fine { font-size: 0.875rem; color: var(--subtle); }

/* Schaltflächen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; padding: 0.6rem 1.15rem; border-radius: var(--r-md); border: 1px solid transparent; font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.15s; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--accent-border); background: var(--accent-soft); color: var(--text); }
.btn--sm { min-height: 38px; padding: 0.4rem 0.9rem; font-size: 0.95rem; }
.btn--lg { min-height: 52px; padding: 0.8rem 1.4rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Kopfleiste */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in oklab, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.bar__inner { max-width: var(--wrap); margin: 0 auto; padding: 0.7rem var(--gutter-r) 0.7rem var(--gutter-l); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: -0.01em; }
.brand__logo { display: block; height: 36px; width: auto; }
.nav { display: flex; gap: 1.25rem; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.nav a:hover { color: var(--text); }
@media (max-width: 52rem) { .nav { display: none; } .bar__cta { margin-left: auto; } }
.bar__cta { white-space: nowrap; }
@media (max-width: 24rem) { .brand__logo { height: 30px; } .bar__inner { gap: 0.75rem; } }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); background: radial-gradient(60rem 30rem at 85% 0%, var(--accent-soft), transparent 70%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 60rem) { .hero__grid { grid-template-columns: 1fr; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1.25rem; }
.hero__actions--center { justify-content: center; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; color: var(--muted); font-size: 0.95rem; }
.ticks li::before { content: '✓'; color: var(--accent); font-weight: 800; margin-right: 0.4rem; }
.hero__shot { position: relative; margin: 0; }
.hero__shot img { border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); }
.slip { position: absolute; left: -1.25rem; bottom: -1.5rem; z-index: 1; width: min(17rem, 70%); display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 1rem 1rem; background: var(--note); color: var(--note-ink); border-radius: 4px 4px 14px 4px; box-shadow: var(--shadow); transform: rotate(-2.5deg); }
.slip__no { font: 600 0.75rem/1.2 var(--mono); opacity: 0.8; }
.slip__title { font-weight: 700; line-height: 1.25; }
.slip__meta { font-size: 0.82rem; }
@media (max-width: 30rem) { .slip { left: 0.5rem; bottom: -1rem; } }

/* Bänder */
.band { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.band--tint { background: var(--sunken); }
.band--steps { padding-top: clamp(3.5rem, 7vw, 5rem); }
.band--dark { background: var(--dark-bg); color: var(--dark-text); }
.band--dark .eyebrow { color: #8fdcd8; }
.band--dark .lead { color: var(--dark-muted); }
.band--cta { background: linear-gradient(180deg, var(--bg), var(--accent-soft)); }

.steps { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: s; }
@media (max-width: 60rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; padding: 1.25rem 1.25rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.steps__no { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; margin-bottom: 0.85rem; }
.steps p { color: var(--muted); font-size: 0.97rem; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 2.5rem; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.features article { background: var(--surface); padding: 1.5rem 1.5rem 1.25rem; }
.features p { color: var(--muted); font-size: 0.97rem; margin: 0; }
@media (max-width: 60rem) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .features { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.checks li { position: relative; padding: 0.95rem 1rem 0.95rem 3rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); color: var(--muted); }
.checks li strong { color: var(--text); }
.checks li::before { content: ''; position: absolute; left: 1rem; top: 1.15rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* Demo-Rollen */
.roles { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 60rem) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .roles { grid-template-columns: 1fr; } }
.role { display: flex; flex-direction: column; gap: 0.3rem; height: 100%; padding: 1.25rem; border-radius: var(--r-lg); background: var(--dark-surface); border: 1px solid color-mix(in oklab, var(--dark-text) 14%, transparent); color: var(--dark-text); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.role:hover { color: var(--dark-text); border-color: #8fdcd8; transform: translateY(-2px); }
.role__label { font-weight: 700; font-size: 1.08rem; }
.role__name { color: #8fdcd8; font-size: 0.92rem; }
.role__text { color: var(--dark-muted); font-size: 0.95rem; flex: 1; }
.role__go { color: #8fdcd8; font-weight: 600; font-size: 0.92rem; margin-top: 0.5rem; }

/* Preise */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 2.5rem 0 1.5rem; align-items: stretch; }
.plans--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 72rem) { .plans--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 52rem) { .plans, .plans--4 { grid-template-columns: 1fr; max-width: 26rem; margin-left: auto; margin-right: auto; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 0.35rem; padding: 1.75rem 1.5rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); }
.plan--featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan__badge { position: absolute; top: -0.8rem; left: 1.5rem; margin: 0; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.78rem; font-weight: 700; }
.plan h3 { margin: 0; font-size: 1.3rem; }
.plan__for { color: var(--muted); margin: 0; }
.plan__price { margin: 0.75rem 0 0; color: var(--muted); }
.plan__price span { font-size: 2.2rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.plan__year { color: var(--subtle); font-size: 0.9rem; margin: 0 0 1.25rem; flex: 1; }

/* FAQ */
.faq { display: grid; gap: 0.75rem; margin-top: 2rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 0 1.25rem; }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-weight: 800; font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); }

/* Formulare */
.form-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 52rem) { .form-grid { grid-template-columns: 1fr; } }
.mini-steps { padding-left: 1.25rem; color: var(--muted); display: grid; gap: 0.35rem; margin: 1.25rem 0 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; }
.field input, .field select { width: 100%; min-height: 46px; padding: 0.55rem 0.75rem; border: 1px solid #7a898d; border-radius: var(--r-md); background: var(--surface); color: var(--text); font: inherit; }
.field input:focus, .field select:focus { outline: 3px solid var(--accent-border); border-color: var(--accent); }
.field input[aria-invalid='true'] { border-color: #b42318; }
.field__hint { margin: 0; font-size: 0.875rem; color: var(--subtle); }
.field__error, .form__error { margin: 0; font-size: 0.9rem; color: #b42318; font-weight: 600; }
@media (prefers-color-scheme: dark) { .field__error, .form__error { color: #ff8a80; } .field input[aria-invalid='true'] { border-color: #ff8a80; } }
.field__status { margin: 0; font-size: 0.9rem; min-height: 1.3em; }
.field__status.is-ok { color: var(--accent-text); }
.field__status.is-bad { color: #b42318; }
.addr { display: flex; align-items: stretch; }
.addr input { border-top-right-radius: 0; border-bottom-right-radius: 0; font-family: var(--mono); }
.addr__suffix { display: flex; align-items: center; padding: 0 0.75rem; border: 1px solid #7a898d; border-left: 0; border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--sunken); color: var(--muted); font-family: var(--mono); font-size: 0.9rem; white-space: nowrap; }
.check { display: flex; gap: 0.65rem; align-items: flex-start; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done h1, .done h2 { margin-top: 0; }

/* Rechtliches */
.legal h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.legal h2 { font-size: 1.2rem; margin-top: 2rem; }
.draft { padding: 0.75rem 1rem; border-radius: var(--r-md); background: var(--ph); border: 1px solid #ecc06a; font-weight: 600; }
mark.ph { background: var(--ph); color: inherit; padding: 0 0.15em; border-radius: 3px; box-shadow: inset 0 -2px 0 #ecc06a; }

/* Fußzeile */
.foot { border-top: 1px solid var(--border); background: var(--surface); }
.foot__inner { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem var(--gutter-r) calc(2.5rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; }
.wordmark { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.015em; }
.wordmark__light { font-weight: 500; color: var(--accent-text); }
.foot__brand p { color: var(--muted); max-width: 30rem; margin: 0.35rem 0 0; font-size: 0.95rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-content: start; font-size: 0.95rem; }
.foot__links a, .foot__links .linklike { color: var(--muted); }
.foot__small { grid-column: 1 / -1; margin: 0; font-size: 0.82rem; color: var(--subtle); }
@media (max-width: 40rem) { .foot__inner { grid-template-columns: 1fr; } }

/* Einwilligung (nur wenn Werbung eingerichtet ist) */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 0 var(--gutter-r) calc(1rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l); pointer-events: none; }
.consent__inner { pointer-events: auto; max-width: 46rem; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: 0 12px 40px rgb(0 0 0 / 22%); padding: 1.25rem 1.35rem; }
.consent h2 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.consent p { font-size: 0.95rem; color: var(--muted); }
.consent__options { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.6rem; font-size: 0.95rem; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.consent__actions .btn { flex: 1 1 10rem; }

/* Tabellen in Rechtstexten (Datenschutz, AVV-Anlagen) */
.legal table { width: 100%; border-collapse: collapse; margin: 0.75rem 0 1.25rem; font-size: 0.92rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border); }
.legal th { font-weight: 600; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4rem; }
@media (max-width: 640px) { .legal table { display: block; overflow-x: auto; } }
