/* ===========================================================================
   OceanMind — Website
   Farbwerte 1:1 aus theme/colors.ts der App (Light + Dark), WCAG-AA-geprueft.
   Aenderungen bitte gegen theme/contrastCheck.ts spiegeln, nicht frei anpassen.

   Theme-Logik (drei Zustaende):
     :root                                   -> Light (Standard)
     @media (prefers-color-scheme: dark) auf :root:not([data-theme="light"])
                                             -> Systemwunsch Dark
     :root[data-theme="dark"]                -> explizite Wahl gewinnt in beide Richtungen
   Kein Farbwert darf NUR in einem Media-/[data-theme]-Block stehen.
   =========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter_400Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter_600SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  /* Light — theme/colors.ts light */
  --ground: #F0F6FF;
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --ink: #030A12;
  --ink-muted: #33475A;
  --brand: #10487C;
  --brand-contrast: #FFFFFF;
  --grad-a: #FFFFFF;
  --grad-b: #8ACCFF;
  --border: #5C8CB8;
  --border-soft: #C7DDEF;
  --danger: #C81E1E;
  --success: #15803D;
  --warning: #B45309;
  --shadow: 0 1px 2px rgba(3, 10, 18, .05), 0 12px 34px rgba(16, 72, 124, .09);
  --shadow-lift: 0 2px 6px rgba(3, 10, 18, .07), 0 22px 50px rgba(16, 72, 124, .16);
  --glass: rgba(255, 255, 255, .82);

  --measure: 66ch;
  --radius: 14px;
  --gap: clamp(18px, 3vw, 28px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .55s;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #030A12;
    --surface: #0C2645;
    --surface-2: #0A1E38;
    --ink: #FCFDFF;
    --ink-muted: #B4C4D6;
    --brand: #66BAFF;
    --brand-contrast: #030A12;
    --grad-a: #0C2645;
    --grad-b: #10487C;
    --border: #4A7FB0;
    --border-soft: #1A3A5C;
    --danger: #F87171;
    --success: #22C55E;
    --warning: #F59E0B;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 34px rgba(0, 0, 0, .38);
    --shadow-lift: 0 2px 8px rgba(0, 0, 0, .55), 0 24px 54px rgba(0, 0, 0, .5);
    --glass: rgba(12, 38, 69, .82);
  }
}

:root[data-theme="dark"] {
  --ground: #030A12;
  --surface: #0C2645;
  --surface-2: #0A1E38;
  --ink: #FCFDFF;
  --ink-muted: #B4C4D6;
  --brand: #66BAFF;
  --brand-contrast: #030A12;
  --grad-a: #0C2645;
  --grad-b: #10487C;
  --border: #4A7FB0;
  --border-soft: #1A3A5C;
  --danger: #F87171;
  --success: #22C55E;
  --warning: #F59E0B;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 34px rgba(0, 0, 0, .38);
  --shadow-lift: 0 2px 8px rgba(0, 0, 0, .55), 0 24px 54px rgba(0, 0, 0, .5);
  --glass: rgba(12, 38, 69, .82);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 100%; }
/* Textgroesse setzt das Barrierefreiheits-Panel direkt per style.fontSize (100-140%),
   damit die Stufen frei bleiben und rem-Werte sauber mitskalieren. */

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
  overflow-x: hidden;
}

/* Bewegung aus: Systemwunsch ODER manueller Schalter im Barrierefreiheits-Panel */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
}

/* Hoher Kontrast (Barrierefreiheits-Panel)
   ACHTUNG Spezifitaet: die Theme-Bloecke stehen auf :root[data-theme="dark"] (0,2,0).
   Mit html[data-contrast="high"] (0,1,1) verliert der Schalter im Dunkelmodus und tut
   scheinbar nichts. Deshalb ebenfalls :root[...] verwenden UND weiter unten notieren —
   bei gleicher Spezifitaet gewinnt die spaetere Regel. */
:root[data-contrast="high"] {
  --ink-muted: var(--ink);
  --border-soft: var(--border);
}
:root[data-contrast="high"] .card,
:root[data-contrast="high"] .price,
:root[data-contrast="high"] .form-card,
:root[data-contrast="high"] .a11y { border-width: 2px; }
:root[data-contrast="high"] .field input,
:root[data-contrast="high"] .field textarea,
:root[data-contrast="high"] .field select { border-width: 2px; }

:root[data-underline="on"] a { text-decoration: underline !important; }

/* Lesbare Schrift: breitlaufende Systemschrift + mehr Zeilenabstand.
   Verdana ist auf allen Plattformen vorhanden und hat deutlich offenere Formen
   als Inter — hilft bei Legasthenie und schwacher Sehkraft. */
:root[data-readable="on"] body {
  font-family: Verdana, 'DejaVu Sans', 'Segoe UI', sans-serif;
  line-height: 1.9;
  letter-spacing: .012em;
}
:root[data-readable="on"] h1,
:root[data-readable="on"] h2,
:root[data-readable="on"] h3 { letter-spacing: 0; line-height: 1.3; }

.wrap { width: min(1120px, 100% - 2 * clamp(18px, 5vw, 44px)); margin-inline: auto; }

h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -.022em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(36px, 6.4vw, 66px); }
h2 { font-size: clamp(26px, 3.8vw, 38px); }
h3 { font-size: 19px; letter-spacing: -.012em; }
p { margin: 0; max-width: var(--measure); }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 14px;
}

/* ---------- Tiefenanzeige: Scrollfortschritt als Metermarke ---------- */
.depth {
  position: fixed; inset-inline: 0; top: 0; z-index: 60;
  height: 3px; background: transparent; pointer-events: none;
}
.depth__bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--grad-b));
  transition: width .1s linear;
}
.depth__read {
  position: fixed; top: 12px; inset-inline-end: 16px; z-index: 60;
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  color: var(--ink-muted); background: var(--glass);
  border: 1px solid var(--border-soft); border-radius: 999px;
  padding: 3px 10px; backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none; font-variant-numeric: tabular-nums;
}
.depth__read.is-on { opacity: 1; transform: translateY(0); }

/* ---------- Kopfzeile ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  transition: background-color .3s var(--ease);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -.025em; }
.brand svg { flex: none; overflow: visible; }
.brand svg .wave { transform-origin: center; animation: drift 5.5s ease-in-out infinite; }
@keyframes drift { 0%,100% { transform: translateX(-1px) } 50% { transform: translateX(1px) } }

.head-right { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); }
.site-nav { display: flex; gap: clamp(12px, 2vw, 24px); font-size: 15px; }
.site-nav a { color: var(--ink-muted); text-decoration: none; position: relative; }
.site-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--brand); transition: width .28s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { width: 100%; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); }
@media (max-width: 720px) { .site-nav { display: none; } }

/* Sprachwahl */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--ink); background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 999px; padding: 7px 13px; cursor: pointer; min-height: 40px;
}
.lang__btn:hover { border-color: var(--brand); }
.lang__list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 50;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: 12px;
  box-shadow: var(--shadow-lift); padding: 6px; min-width: 172px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.lang.is-open .lang__list { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.lang__list button {
  font: inherit; font-size: 14.5px; text-align: start; color: var(--ink); background: transparent;
  border: 0; border-radius: 8px; padding: 9px 11px; cursor: pointer; min-height: 40px;
  display: flex; align-items: center; gap: 9px;
}
.lang__list button:hover { background: var(--ground); }
.lang__list button[aria-selected="true"] { color: var(--brand); font-weight: 600; }
.lang__list button[aria-selected="true"]::after { content: '✓'; margin-inline-start: auto; }

/* ---------- Held ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border-soft); padding-block: clamp(64px, 11vw, 132px); }
.hero__bg {
  position: absolute; inset: -25% -10%; z-index: 0;
  background: linear-gradient(135deg, var(--grad-a) 0%, var(--grad-b) 100%);
  animation: swell 15s ease-in-out infinite alternate;
}
@keyframes swell {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-2.5%, 1.5%, 0) scale(1.07); }
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 { margin-top: 20px; }
.hero .lede { font-size: clamp(18px, 2.1vw, 22px); margin-top: 22px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.badge-soon {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  background: var(--surface); color: var(--brand);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px;
}
.badge-soon .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1) } 50% { opacity: .45; transform: scale(.8) } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit;
  min-height: 48px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: var(--brand-contrast); box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lift); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: color-mix(in oklab, var(--brand) 12%, transparent); }

/* ---------- Kennzahlen ---------- */
.stats { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: clamp(38px, 6vw, 60px); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num { font-size: clamp(30px, 4.4vw, 44px); font-weight: 600; letter-spacing: -.03em; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat__lbl { font-size: 14.5px; color: var(--ink-muted); }

/* ---------- Abschnitte ---------- */
section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: var(--gap); }

.cards { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 11px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--border); }
.card::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--grad-b));
  transform: scaleX(0); transform-origin: inline-start; transition: transform .35s var(--ease);
}
.card:hover::before { transform: scaleX(1); }
.card p { font-size: 15.5px; color: var(--ink-muted); }
.card .ico { width: 40px; height: 40px; color: var(--brand); transition: transform .35s var(--ease); }
.card:hover .ico { transform: scale(1.1) rotate(-4deg); }

/* ---------- Sicherheitshinweis (Pflicht) ---------- */
.safety {
  background: var(--surface); border: 2px solid var(--warning); border-radius: var(--radius);
  padding: 26px 28px; display: flex; flex-direction: column; gap: 11px; box-shadow: var(--shadow);
}
.safety strong { color: var(--warning); }

/* ---------- Preise ---------- */
.price-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.price {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 15px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.price:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.price.is-featured { border: 2px solid var(--brand); }
.price .amount { font-size: 40px; font-weight: 600; letter-spacing: -.035em; }
.price .amount span { font-size: 16px; font-weight: 400; color: var(--ink-muted); }
.price ul { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; }
.price li { display: flex; gap: 11px; align-items: flex-start; }
.price li::before { content: "✓"; color: var(--success); font-weight: 600; flex: none; }

/* ---------- Formular ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); max-width: 660px;
}
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 19px; }
.field label { font-size: 14.5px; font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 14px; width: 100%;
  min-height: 48px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 18%, transparent);
}
.field textarea { min-height: 146px; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; margin-bottom: 22px; }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 17px; font-size: 15px; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: var(--success); }
.form-msg.err { color: var(--danger); }

/* ---------- Rechtstexte ---------- */
.legal { padding-block: clamp(42px, 6vw, 72px); }
.legal .doc {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 48px); box-shadow: var(--shadow);
}
.legal h2 { font-size: 22px; margin-top: 40px; }
.legal h3 { font-size: 17px; margin-top: 28px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { font-size: 16px; }
.legal ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal address { font-style: normal; margin: 12px 0; }
.legal .tablewrap { overflow-x: auto; margin: 20px 0; }
.legal table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: 15px; }
.legal th, .legal td { text-align: start; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.legal th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.legal .todo {
  background: color-mix(in oklab, var(--warning) 12%, var(--surface));
  border: 1px solid var(--warning); border-radius: 10px;
  padding: 15px 17px; margin: 20px 0; font-size: 15px;
}
.legal .todo strong { color: var(--warning); }
.updated { font-size: 14px; color: var(--ink-muted); margin-top: 32px; }
.lang-note { font-size: 14.5px; color: var(--ink-muted); border-inline-start: 3px solid var(--border); padding-inline-start: 14px; margin-bottom: 26px; }

/* ---------- Fusszeile ---------- */
.site-foot { background: var(--surface); border-top: 1px solid var(--border-soft); padding-block: 48px; margin-top: 24px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 44px; justify-content: space-between; align-items: flex-start; }
.site-foot .cols { display: flex; flex-wrap: wrap; gap: 22px 40px; }
.site-foot a { color: var(--ink-muted); text-decoration: none; font-size: 15px; }
.site-foot a:hover { color: var(--brand); text-decoration: underline; }
.site-foot .copy { font-size: 14px; color: var(--ink-muted); }

/* ---------- Schwebende Bedienelemente ---------- */
.fab {
  position: fixed; bottom: 24px; z-index: 55;
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--brand);
  border: 1px solid var(--border); box-shadow: var(--shadow-lift);
  cursor: pointer; font-family: inherit;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab--a11y { inset-inline-start: 24px; }
.fab svg { width: 25px; height: 25px; }

/* ---------- Theme-Schalter: Sonne | Schiene | Mond ----------
   Bewusst kein Symbolwechsel mehr: beide Zustände sind sichtbar, der Knopf
   zeigt, wo man steht. Der Track ist das <button role="switch"> — die Symbole
   sind reine Dekoration (aria-hidden), damit Screenreader nur einen Schalter
   melden und nicht drei Elemente.
   Die Trefferfläche ist über ::before auf 44 px Höhe aufgezogen, ohne die
   Optik zu vergrößern (WCAG 2.5.5). */
.themesw {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 55;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.themesw:hover { transform: translateY(-3px); }
.themesw__icon {
  display: inline-flex; color: var(--ink-muted);
  transition: color .25s var(--ease), opacity .25s var(--ease);
  opacity: .5;
}
.themesw__icon svg { width: 18px; height: 18px; }
/* Das Symbol des AKTIVEN Modus leuchtet in der Markenfarbe. */
.themesw__icon--sun { color: var(--brand); opacity: 1; }
.themesw__track {
  position: relative;
  width: 46px; height: 26px; flex: none;
  border-radius: 999px; cursor: pointer;
  background: var(--border-soft);
  border: 1px solid var(--border);
  padding: 0; font-family: inherit;
  transition: background-color .25s var(--ease);
}
.themesw__track::before {
  /* unsichtbare Vergrößerung der Trefferfläche auf 44 px */
  content: ''; position: absolute; inset: -9px -4px;
}
.themesw__knob {
  position: absolute; top: 50%; inset-inline-start: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand);
  transform: translateY(-50%);
  transition: inset-inline-start .25s var(--ease), background-color .25s var(--ease);
}
.themesw__track:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Dunkelmodus aktiv: Knopf rechts, Mond leuchtet, Sonne tritt zurück. */
.themesw__track[aria-checked="true"] { background: var(--brand); }
.themesw__track[aria-checked="true"] .themesw__knob {
  inset-inline-start: 25px; background: var(--surface);
}
.themesw__track[aria-checked="true"] ~ .themesw__icon--moon { color: var(--brand); opacity: 1; }
.themesw:has(.themesw__track[aria-checked="true"]) .themesw__icon--sun {
  color: var(--ink-muted); opacity: .5;
}

@media (prefers-reduced-motion: reduce) {
  .themesw, .themesw__knob, .themesw__icon, .themesw__track { transition: none; }
  .themesw:hover { transform: none; }
}

/* Barrierefreiheits-Panel */
.a11y {
  position: fixed; bottom: 88px; inset-inline-start: 24px; z-index: 56;
  width: min(310px, calc(100vw - 48px));
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-lift); padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.97);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.a11y.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.a11y[hidden] { display: none !important; }
.a11y__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a11y h2 { font-size: 16px; }
.a11y__close {
  width: 34px; height: 34px; flex: none; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--ink-muted); border: 1px solid transparent;
}
.a11y__close:hover { background: var(--ground); color: var(--ink); border-color: var(--border-soft); }
.a11y__close svg { width: 17px; height: 17px; }

.a11y__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.a11y__steps { display: flex; align-items: center; gap: 4px; }
.a11y__steps button {
  font: inherit; font-weight: 600; color: var(--ink); background: var(--ground);
  border: 1px solid var(--border-soft); border-radius: 8px; cursor: pointer;
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
}
.a11y__steps button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.a11y__steps button:disabled { opacity: .4; cursor: default; }
.a11y__steps svg { width: 15px; height: 15px; }
.a11y__scale {
  min-width: 4.2em; text-align: center; font-size: 13.5px; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--ink-muted);
}

.switch {
  position: relative; width: 50px; height: 28px; flex: none;
  background: var(--border-soft); border: 1px solid var(--border); border-radius: 999px;
  cursor: pointer; padding: 0; transition: background-color .25s var(--ease);
}
.switch::after {
  content: ''; position: absolute; top: 2px; inset-inline-start: 2px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform .25s var(--ease);
}
.switch[aria-checked="true"] { background: var(--brand); border-color: var(--brand); }
.switch[aria-checked="true"]::after { transform: translateX(22px); }
:root[dir="rtl"] .switch[aria-checked="true"]::after { transform: translateX(-22px); }

.a11y__reset {
  font: inherit; font-size: 14px; color: var(--brand); background: transparent;
  border: 0; padding: 6px 0; cursor: pointer; text-align: start; text-decoration: underline;
}

/* ---------- Einblend-Animation beim Scrollen ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html[data-motion="off"] .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.skip {
  position: absolute; inset-inline-start: -9999px; background: var(--brand); color: var(--brand-contrast);
  padding: 12px 18px; border-radius: 0 0 8px 0; z-index: 70; text-decoration: none;
}
.skip:focus { inset-inline-start: 0; top: 0; }

[hidden] { display: none !important; }

/* ---------- "Jetzt testen" — die zwei Installationswege ----------
   Zwei gleichrangige Karten statt eines Buttons mit Auswahl: Wer auf dem Handy
   liest, soll seinen Weg sofort sehen, ohne zu entscheiden. Die Karten sind
   ganzflaechig verlinkt (<a class="try-card">), deshalb kein Button darin —
   verschachtelte Interaktionselemente sind nicht bedienbar. */
#testen { position: relative; }
.try-grid {
  display: grid; gap: 18px; margin-top: 34px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.try-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px 24px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border-soft);
  color: inherit; text-decoration: none;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              border-color .22s var(--ease);
}
.try-card:hover, .try-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--brand);
}
.try-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.try-card__logo { width: 30px; height: 30px; color: var(--brand); }
.try-card__kicker {
  font-size: 13px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-muted); margin-top: 6px;
}
.try-card__title { font-size: 21px; font-weight: 600; line-height: 1.25; }
.try-card__note { font-size: 15px; color: var(--ink-muted); line-height: 1.6; }
.try-card__cta {
  margin-top: 10px; font-weight: 600; color: var(--brand);
  display: inline-flex; align-items: center; gap: 6px;
}
.try-card__cta::after {
  content: '→'; transition: transform .22s var(--ease);
}
.try-card:hover .try-card__cta::after { transform: translateX(4px); }

/* Ausklappbare Anleitung */
.howto {
  margin-top: 22px; border-radius: var(--radius);
  border: 1px solid var(--border-soft); background: var(--surface-2);
  overflow: hidden;
}
.howto > summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 600;
}
.howto > summary::-webkit-details-marker { display: none; }
.howto > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.howto > summary svg {
  width: 20px; height: 20px; flex: none; color: var(--ink-muted);
  transition: transform .25s var(--ease);
}
.howto[open] > summary svg { transform: rotate(180deg); }
.howto__body { padding: 0 22px 22px; }
.howto__why {
  font-size: 15px; color: var(--ink-muted); line-height: 1.65;
  padding: 14px 16px; margin-bottom: 16px;
  border-inline-start: 3px solid var(--brand);
  background: color-mix(in srgb, var(--brand) 7%, transparent);
  border-radius: 0 8px 8px 0;
}
.howto__steps { margin: 0; padding-inline-start: 22px; display: grid; gap: 10px; }
.howto__steps li { line-height: 1.65; }
.howto__steps li::marker { color: var(--brand); font-weight: 600; }
.howto__hint { margin-top: 16px; font-size: 15px; color: var(--ink-muted); }

@media (prefers-reduced-motion: reduce) {
  .try-card, .try-card__cta::after, .howto > summary svg { transition: none; }
  .try-card:hover, .try-card:focus-visible { transform: none; }
}

/* ---------- "Jetzt testen" invertiert ----------
   Die Section dreht das Theme um: im Hellmodus dunkel, im Dunkelmodus hell.
   Umgesetzt ueber die Farbtokens statt ueber Einzelregeln — Karten, Anleitung
   und Rahmen lesen dieselben Variablen und kippen dadurch von selbst mit.

   ACHTUNG: Alle drei Theme-Zustaende muessen bedient werden, sonst bleibt die
   Section im unbestimmten Systemmodus auf der falschen Seite:
     :root                              -> hell  => Section dunkel
     @media (prefers-color-scheme:dark) -> dunkel => Section hell
     :root[data-theme="dark"]           -> dunkel => Section hell            */
#testen {
  /* Dunkelblau statt Schwarz: #0C2645 ist der Flaechenton der App und liest sich
     als Marke, nicht als Loch in der Seite. Die Karten liegen mit #143A63 eine
     Spur heller darauf, wirken dadurch angehoben; getragen wird die Abgrenzung
     ohnehin vom Rahmen, weil der Helligkeitsunterschied bewusst klein bleibt.
     Kontraste auf der Karte: Weiss 11,4:1 / gedaempft 6,5:1 / Markenblau 5,5:1. */
  --ground: #0C2645;
  --surface: #143A63;
  --surface-2: #10305A;
  --ink: #FCFDFF;
  --ink-muted: #B4C4D6;
  --brand: #66BAFF;
  --brand-contrast: #0C2645;
  --border: #4A7FB0;
  --border-soft: #2A5486;
  background: var(--ground);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

/* Der Lichtschein macht die Section auffaellig, ohne dass Text darunter leidet:
   er liegt hinter dem Inhalt und ist rein dekorativ. */
#testen::before {
  content: '';
  position: absolute;
  inset-inline-start: 50%;
  top: -40%;
  width: min(900px, 120%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle,
    color-mix(in srgb, var(--brand) 26%, transparent) 0%,
    transparent 62%);
  pointer-events: none;
  z-index: 0;
}
#testen > .wrap { position: relative; z-index: 1; }

/* Umgekehrter Fall: dunkles Umfeld -> Section wird hell. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #testen {
    --ground: #F0F6FF;
    --surface: #FFFFFF;
    --surface-2: #FFFFFF;
    --ink: #030A12;
    --ink-muted: #33475A;
    --brand: #10487C;
    --brand-contrast: #FFFFFF;
    --border: #5C8CB8;
    --border-soft: #C7DDEF;
  }
}
:root[data-theme="dark"] #testen {
  --ground: #F0F6FF;
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --ink: #030A12;
  --ink-muted: #33475A;
  --brand: #10487C;
  --brand-contrast: #FFFFFF;
  --border: #5C8CB8;
  --border-soft: #C7DDEF;
}

/* Die Eyebrow-Zeile ist im invertierten Umfeld sonst zu leise. */
#testen .eyebrow { color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  #testen::before { display: none; }
}
