/* Assistent Ben – Website (ENTWURF bis Bens „Text ok“). Ohne Build-Werkzeug, ohne Webfonts, ohne Fremddienste.
   Aufbau: 1 Farben · 2 Grundlagen · 3 Kopf/Menü · 4 Knöpfe · 5 Nachtband/Hero · 6 Abschnitte · 7 Download-Bauteil
           8 Preise · 9 FAQ · 10 Rechtsseiten · 11 Fuß · 12 Handy-Leiste · 13 Bewegung · 14 Dunkelmodus */

/* 1 Farben (hell = Standard, alle Text/Grund-Kombinationen ≥ 4,5:1 geprüft) */
:root {
  color-scheme: light dark;
  --bg: #FFFFFF; --bg-soft: #F6F8FC; --line: #E4E8F2; --text: #0C1129; --muted: #556079;
  --cyan-ink: #0E7490; --violet-ink: #7E22CE; --orange-ink: #B45309; --green-ink: #15803D;
  --cyan: #22D3EE; --violet: #A855F7; --orange: #FFA94D; --green: #4ADE80;
  --cyan-t: rgba(34, 211, 238, .12); --violet-t: rgba(168, 85, 247, .12); --orange-t: rgba(255, 169, 77, .14); --green-t: rgba(74, 222, 128, .14);
  --night: #070B1A; --night-2: #0C1129; --night-text: #E8ECF8; --night-muted: #9AA3BF;
  --ring: conic-gradient(#22D3EE, #A855F7, #FFA94D, #22D3EE);
  --card: #FFFFFF; --shadow: 0 1px 2px rgba(12, 17, 41, .05), 0 8px 24px rgba(12, 17, 41, .06);
  --focus: #0E7490;
  --rand: 20px; --abschnitt: clamp(56px, 7vw, 96px);
  --sys: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (min-width: 820px) { :root { --rand: 32px; } }
@media (min-width: 1024px) { :root { --rand: 48px; } }

/* 2 Grundlagen */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
/* Silbentrennung nur noch in Rechtstexten (.text), sonst falsche Umbrüche in Karten und Überschriften (11.11.2026) */
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sys); -webkit-hyphens: manual; hyphens: manual; -webkit-font-smoothing: antialiased; }
.text p, .text li, .text td { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; }
p, li { text-wrap: pretty; }
summary, blockquote { text-wrap: balance; }
/* Keine Silbentrennung in Überschriften, Fragen, Links, Fuß und Plaketten (Mailadressen dürfen nie einen Trennstrich bekommen) */
a, h1, h2, h3, summary, .fuss, .chip, .plakette, .knopf, .betrag { -webkit-hyphens: manual; hyphens: manual; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
img { display: block; }
a { color: var(--cyan-ink); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 6vw, 4.25rem); font-weight: 800; letter-spacing: -.025em; }
h1, h2 { overflow-wrap: break-word; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0 0 1em; max-width: 65ch; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--rand); }
.abschnitt { padding: var(--abschnitt) 0; }
.abschnitt--soft { background: var(--bg-soft); }
/* Zwei Abschnitte mit gleichem (weißem) Grund hintereinander: oberen Abstand halbieren, sonst doppelt */
.abschnitt:not(.abschnitt--soft):not(.nacht):not(.kontrolle) + .abschnitt:not(.abschnitt--soft):not(.nacht):not(.kontrolle) { padding-top: calc(var(--abschnitt) / 2); }
.kicker { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--cyan-ink); margin: 0 0 8px; }
.lead { font-size: 1.125rem; color: var(--muted); }
.muted { color: var(--muted); }
.klein { font-size: 15px; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: #fff; padding: 12px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.plakette { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--cyan-t); color: var(--cyan-ink); }
.plakette--orange { background: var(--orange-t); color: var(--orange-ink); }
.plakette--violett { background: var(--violet-t); color: var(--violet-ink); }
.plakette--gruen { background: var(--green-t); color: var(--green-ink); }
ol.liste, ul.liste { padding-left: 1.4em; margin: 0 0 1em; }
ol.liste li, ul.liste li { margin: .35em 0; max-width: 65ch; }
.haken { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.haken li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.haken li::before { content: ""; flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--green-t) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2315803D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Avatar im Leuchtring */
.ring { position: relative; display: inline-grid; place-items: center; border-radius: 50%; flex: none; }
.ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ring); animation: drehen 24s linear infinite; }
.ring::after { content: ""; position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(34, 211, 238, .35), rgba(168, 85, 247, .15), transparent); z-index: -1; }
.ring img { position: relative; border-radius: 50%; background: var(--night-2); }
.ring--mini { width: 36px; height: 36px; } .ring--mini img { width: 30px; height: 30px; }
.ring--mini::after { display: none; }
.ring--hero { width: 88px; height: 88px; isolation: isolate; } .ring--hero img { width: 78px; height: 78px; }
@media (min-width: 1024px) { .ring--hero { width: 112px; height: 112px; } .ring--hero img { width: 100px; height: 100px; } }
@keyframes drehen { to { transform: rotate(1turn); } }

/* 3 Kopf und Menü */
.kopf { position: fixed; inset: 0 0 auto; z-index: 50; height: 64px; color: var(--night-text); background: rgba(7, 11, 26, .97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .2s, color .2s; }
.kopf--hell { background: rgba(255, 255, 255, .96); color: var(--text); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.kopf .wrap { height: 64px; display: flex; align-items: center; gap: 16px; }
.marke { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 750; font-size: 17px; min-height: 44px; }
.kopf nav { display: none; margin: 0 auto; gap: 4px; }
.kopf nav a, .kopf-rechts a.sprache { color: inherit; text-decoration: none; padding: 10px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.kopf nav a:hover, .kopf-rechts a.sprache:hover { background: rgba(127, 140, 180, .16); }
.kopf-rechts a.sprache { min-width: 44px; justify-content: center; } /* „IT“ ist schmaler als „DE“/„EN“ (Tippfläche 44 px) */
/* Runde 9: seit drei Sprachlinks (ES) brach „EN“ bei 390 px in „E/N“ um – Sprachlinks nie umbrechen/schrumpfen */
.kopf-rechts a.sprache { white-space: nowrap; flex-shrink: 0; }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.kopf-rechts .knopf { display: none; }
.kopf a:focus-visible, .kopf button:focus-visible { outline-color: var(--cyan); }
.kopf--hell a:focus-visible, .kopf--hell button:focus-visible { outline-color: var(--cyan-ink); }
.menue-knopf { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; place-items: center; }
.js .menue-knopf { display: inline-grid; }
.menue-knopf svg { width: 24px; height: 24px; }
@media (min-width: 640px) { .kopf-rechts .knopf { display: inline-flex; } }
@media (min-width: 1024px) { .kopf nav { display: flex; } .js .menue-knopf { display: none; } .kopf-rechts { margin-left: 0; } }
/* 14.11.2026 (FR, vier Sprachlinks): unter 480 px passt „Assistent Ben“ nicht mehr neben vier Sprachlinks + Menü
   (Schriftzug brach Buchstabe für Buchstabe um) – dort nur das Ben-Symbol (Name bleibt per aria-label), Tippfläche 44 px.
   Ab 480 px und am Desktop unverändert. */
@media (max-width: 479px) {
  .kopf .marke { font-size: 0; gap: 0; min-width: 44px; justify-content: center; flex-shrink: 0; }
  .kopf .wrap { gap: 8px; }
  .kopf-rechts { gap: 4px; }
}
.menue { position: fixed; inset: 0; z-index: 60; background: var(--night); color: var(--night-text); padding: 16px var(--rand) 32px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.menue[hidden] { display: none; }
.menue-kopf { display: flex; align-items: center; justify-content: space-between; height: 48px; margin-bottom: 16px; }
.menue a { color: inherit; text-decoration: none; font-size: 22px; font-weight: 700; padding: 10px 0; min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid rgba(154, 163, 191, .2); }
.menue .knopf { margin-top: 16px; font-size: 17px; border: 0; justify-content: center; color: #070B1A; }
.menue :focus-visible { outline-color: var(--cyan); }
.menue-zu { width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(154, 163, 191, .16); color: inherit; cursor: pointer; display: grid; place-items: center; }

/* 4 Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 700 16px/1.2 var(--sys); text-decoration: none; text-align: center; cursor: pointer; border: 2px solid transparent; transition: transform .15s, box-shadow .15s; }
.knopf--primaer { background: var(--text); color: #fff; }
.knopf--primaer:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(12, 17, 41, .2); }
.knopf--sek { background: transparent; color: var(--text); border-color: var(--line); }
.knopf--sek:hover { border-color: var(--muted); }
.knopf--klein { min-height: 44px; padding: 0 18px; font-size: 15px; }
/* „Bald …“: kein toter Großknopf, sondern eine dezente Plakette (wird durch js/site.js zum echten Knopf, sobald der Store live ist) */
.knopf--aus { min-height: 36px; padding: 0 14px; font-size: 14px; font-weight: 650; background: transparent; color: var(--muted); border: 1px dashed var(--line); cursor: default; }
.dl .dl-teil .knopf--aus { width: auto; }
.nacht .knopf--primaer, .knopf--nacht { background: linear-gradient(100deg, #22D3EE, #C084FC); color: #070B1A; }
.nacht .knopf--primaer:hover, .knopf--nacht:hover { box-shadow: 0 0 0 4px rgba(34, 211, 238, .18), 0 10px 32px rgba(168, 85, 247, .35); }
.nacht .knopf--sek { color: var(--night-text); border-color: rgba(154, 163, 191, .45); }
.nacht .knopf--aus { color: var(--night-muted); border-color: rgba(154, 163, 191, .45); }

/* 5 Nachtband und Hero */
.nacht { position: relative; overflow: hidden; background: var(--night); color: var(--night-text); }
/* Leuchtflecken als weicher Verlauf statt blur(): kein abgeschnittener Unschärferand an der Bandkante */
.nacht::before, .nacht::after { content: ""; position: absolute; width: 720px; height: 720px; border-radius: 50%; opacity: .2; pointer-events: none; }
.nacht::before { background: radial-gradient(closest-side, #22D3EE, rgba(34, 211, 238, 0)); top: -360px; left: -300px; }
.nacht::after { background: radial-gradient(closest-side, #A855F7, rgba(168, 85, 247, 0)); bottom: -360px; right: -300px; }
.nacht > * { position: relative; z-index: 1; }
.nacht a { color: #22D3EE; }
.nacht .muted, .nacht .lead { color: var(--night-muted); }
.nacht .kicker, .nacht .plakette { color: #22D3EE; }
.nacht .plakette--orange { color: #FFA94D; } .nacht .plakette--gruen { color: #4ADE80; } .nacht .plakette--violett { color: #C084FC; }
.nacht :focus-visible { outline-color: #22D3EE; }
.hero { padding: calc(64px + clamp(32px, 6vw, 80px)) 0 clamp(40px, 6vw, 72px); }
.hero-raster { display: grid; gap: 32px; }
.hero .kicker { margin: 0 0 8px; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); line-height: 1.05; margin: 0 0 16px; }
.hero .lead { font-size: clamp(1.0625rem, 2vw, 1.25rem); line-height: 1.5; max-width: 52ch; margin: 0; }
/* Verlaufsschrift (Cyan → Violett → Orange wie der Leuchtring); ohne background-clip bleibt die Schrift hell */
.verlauf { color: var(--night-text); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .verlauf { background: linear-gradient(100deg, #22D3EE, #C084FC 55%, #FFA94D); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}
@media (min-width: 1024px) { .hero-raster { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); align-items: center; gap: 48px; } .hero-raster:has(.scan) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* Gründer-Zeile im Hero (11.11.2026): Bens Gesicht + kurze Aussage, grüner Punkt = „immer erreichbar“ */
.gruender-zeile { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; align-items: center; margin: 20px 0 0; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(154, 163, 191, .2); max-width: 56ch; }
.gruender-zeile .ring { grid-row: span 2; width: 44px; height: 44px; align-self: start; }
.gruender-zeile .ring img { width: 38px; height: 38px; }
.gruender-zeile .ring::after { display: block; content: ""; inset: auto -1px -1px auto; width: 12px; height: 12px; border-radius: 50%; background: #4ADE80; border: 2px solid var(--night); z-index: 2; }
.gruender-zeile blockquote { margin: 0; }
.gruender-zeile p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--night-text); text-wrap: pretty; }
.gruender-zeile figcaption { grid-column: 2; font-size: 13px; line-height: 1.45; color: var(--night-muted); }
@media (prefers-reduced-motion: no-preference) {
  .gruender-zeile .ring::after { animation: puls 2.4s ease-in-out infinite; }
  @keyframes puls { 50% { transform: scale(1.3); opacity: .7; } }
}
.seitenkopf { padding: calc(64px + 32px) 0 32px; }
.seitenkopf + .abschnitt, .nacht + .abschnitt { padding-top: clamp(28px, 4vw, 48px); }
.text > :first-child { margin-top: 0; }
.seitenkopf h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
.seitenkopf p { color: var(--night-muted); }

/* Chips (Ergebnis-Einträge in der Scan-Animation und in den Funktionskarten) */
.chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(12, 17, 41, .9); border: 1px solid rgba(154, 163, 191, .3); font-size: 13px; font-weight: 650; color: var(--night-text); }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.chip--orange::before { background: #FFA94D; } .chip--cyan::before { background: #22D3EE; } .chip--gruen::before { background: #4ADE80; }
.chip small { color: #4ADE80; font-size: 12px; font-weight: 600; }
@media (min-width: 1024px) { .chip { font-size: 15px; padding: 8px 14px; } }

/* 6 Abschnitte */
.kopfzeile { margin-bottom: 28px; }
.kopfzeile h2 { margin-bottom: 0; }
/* Zeitersparnis-Leiste direkt unter dem Hero (11.11.2026): Beispielwerte, gleiche Skala für alle Balken (100 % = 10 Min) */
.abschnitt.zeit { padding: 32px 0; border-bottom: 1px solid var(--line); }
.zeit-titel { font-size: 1.25rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.zeit-liste { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 1024px) { .zeit-liste { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
/* 12.11.2026 „pro Tag ca. 30 Min.“: fünf Posten, ab Tablet nebeneinander */
@media (min-width: 760px) { .zeit-liste.zeit-tag { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; } }
.zeit-liste li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 12px; line-height: 1.45; }
.zeit-liste b { font-weight: 650; }
.zeit-liste em { font-style: normal; font-variant-numeric: tabular-nums; font-size: 14px; color: var(--muted); text-align: right; max-width: 22ch; }
.zeit-liste .balken { grid-column: 1 / -1; display: grid; gap: 4px; }
.balken .bz { display: flex; align-items: center; gap: 8px; min-width: 0; }
.balken .bz small { display: none; font-size: 13px; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.balken i { display: block; flex: none; height: 8px; border-radius: 999px; width: var(--w); min-width: 8px; transform-origin: left; transition: transform .8s ease-out; }
/* Legende der Balken (11.11.2026): Farbquadrate in den Balkenfarben */
.zeit-legende { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); max-width: none; }
.zeit-legende span { display: inline-flex; align-items: center; gap: 6px; }
.zeit-legende span::before { content: ""; width: 10px; height: 10px; border-radius: 2px; flex: none; }
.zeit-legende .lg-vorher::before { background: var(--orange); opacity: .55; }
.zeit-legende .lg-nachher::before { background: linear-gradient(90deg, #22D3EE, #4ADE80); }
.zeit-legende + .zeit-liste { margin-top: 12px; }
/* Handy: Werte direkt neben den Balken statt in der Titelzeile, damit der kurze Türkis-Balken nicht wie ein Fehler wirkt */
@media (max-width: 759px) {
  .zeit-liste em { display: none; }
  .zeit-liste.zeit-tag em { display: inline; }      /* 12.11.2026: „pro Tag“ zeigt die Minuten auch am Handy */
  .balken .bz small { display: inline; }
  .balken .bz i { width: calc(var(--w) * .72); }
}
.balken .vorher { background: var(--orange); opacity: .55; }
.balken .nachher { background: linear-gradient(90deg, #22D3EE, #4ADE80); transition-delay: .3s; }
.js .zeit-liste.zeig:not(.sichtbar) .balken i { transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) { .balken i { transition: none; } .js .zeit-liste.zeig .balken i { transform: none; } }
.zeit-fuss { margin: 14px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); max-width: none; }
.schritte { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: s; position: relative; }
.schritt { position: relative; padding: 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.schritt .nr { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--text); color: #fff; font-weight: 800; margin-bottom: 12px; }
.schritt p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.schritt .mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
/* Handy: „So geht’s“ als schlanke Zeitleiste statt vier Karten (Nummer im Kreis links, Linie dazwischen) */
@media (max-width: 819px) {
  .schritte { gap: 16px; }
  .schritt { border: 0; background: none; box-shadow: none; border-radius: 0; padding: 0 0 0 52px; }
  .schritt .nr { position: absolute; left: 0; top: 0; margin: 0; }
  .schritt::before { content: ""; position: absolute; left: 17px; top: 40px; bottom: -14px; width: 2px; background: var(--line); }
  .schritt:last-child::before { display: none; }
  .schritt h3 { margin: 6px 0 4px; }
  .schritt .mini { display: none; }
}
@media (min-width: 820px) { .schritte { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .schritte { grid-template-columns: repeat(4, 1fr); }
  .schritte::before { content: ""; position: absolute; left: 10%; right: 10%; top: 38px; height: 2px; background: repeating-linear-gradient(90deg, #22D3EE 0 8px, transparent 8px 16px); opacity: .6; }
}
.karte { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); transition: transform .2s; }
@media (max-width: 819px) { .karte { padding: 20px; } }
.karte p { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0; }
.karte p + p { margin-top: .6em; }
.karte .beispiel { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--text); background: var(--bg-soft); border-radius: 12px; padding: 8px 10px; }
@media (hover: hover) and (min-width: 1024px) { .karte:hover { transform: translateY(-2px); } }
.symbol { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.symbol svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.s-cyan { background: var(--cyan-t); color: var(--cyan-ink); } .s-violett { background: var(--violet-t); color: var(--violet-ink); }
.s-orange { background: var(--orange-t); color: var(--orange-ink); } .s-gruen { background: var(--green-t); color: var(--green-ink); }
.bento { display: grid; gap: 16px; align-items: start; }
.bento .karte { border-radius: 24px; }
.bento .karte h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bento .gross .mini { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mini .chip { background: var(--bg-soft); color: var(--text); border-color: var(--line); }
/* Handy: Funktionskarten als waagrecht wischbare Leiste (in sich scrollend, kein Seitenüberlauf) statt 12 Karten untereinander */
@media (max-width: 819px) {
  .bento { grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin: 0 calc(-1 * var(--rand)); padding: 4px var(--rand) 16px; scroll-padding: 0 var(--rand); }
  .bento .karte { scroll-snap-align: start; }
  .js .bento .zeig { opacity: 1; transform: none; }
  .wisch-hinweis { display: block; margin: -24px 0 12px; font-size: 15px; color: var(--muted); }
}
@media (min-width: 820px) { .wisch-hinweis { display: none; } }
@media (min-width: 820px) { .bento { grid-template-columns: repeat(2, 1fr); } }
/* Desktop: Brief-Karte über zwei Zeilen, Abzocke-Schutz als breite Karte unten (6 Kernkarten ohne Lücke) */
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento .gross { grid-row: span 2; align-self: stretch; }
  .bento .breit { grid-column: span 3; display: grid; grid-template-columns: 44px auto minmax(0, 1fr); align-items: center; gap: 20px; }
  .bento .breit .symbol, .bento .breit h3 { margin: 0; }
}
.weitere { margin: 20px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; line-height: 1.45; max-width: none; }
.weitere .chip { background: var(--card); color: var(--text); border-color: var(--line); }
.weitere .chip::before { display: none; }
.ohne-ki { margin-top: 20px; padding: 16px 20px; border-radius: 20px; background: var(--green-t); }
.ohne-ki strong { display: block; margin-bottom: 8px; }
.ohne-ki ul { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.kontrolle { background: linear-gradient(180deg, var(--cyan-t), transparent); padding-bottom: calc(var(--abschnitt) * .6); }
.kontrolle + .abschnitt:not(.abschnitt--soft):not(.nacht) { padding-top: calc(var(--abschnitt) / 2); }
.kontrolle .haken { gap: 16px; }
@media (min-width: 820px) { .kontrolle .haken { grid-template-columns: repeat(2, 1fr); } }
.datenschutz-kurz { margin-top: 28px; }
.datenschutz-kurz > p { margin: 0; }
.datenschutz-kurz .zeitleiste { margin-top: 12px; }
/* Handy/Tablet: Speicherdauer als 2 × 2 kleine Kacheln statt vier breiter Zeilen */
@media (max-width: 1023px) {
  .datenschutz-kurz .zeitleiste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .datenschutz-kurz .zeitleiste li { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; }
  .datenschutz-kurz .zeitleiste b { min-width: 0; font-size: 15px; line-height: 1.35; }
  .datenschutz-kurz .zeitleiste span { font-size: 14px; line-height: 1.4; }
}
.spalten { display: grid; gap: 16px; }
@media (min-width: 820px) { .spalten { grid-template-columns: repeat(3, 1fr); } }
.zeitleiste { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.zeitleiste li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.zeitleiste b { font-variant-numeric: tabular-nums; min-width: 7.5em; color: var(--text); }
.zeitleiste span { color: var(--muted); font-size: 16px; }
@media (min-width: 1024px) { .zeitleiste { grid-template-columns: repeat(4, 1fr); } .zeitleiste li { flex-direction: column; align-items: flex-start; } }
/* „Für Firmen“ als Band unter den Preisen statt eigener Abschnitt (11.11.2026) */
.firma-band { margin: 24px 0 0; padding: 14px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 16px; line-height: 1.5; max-width: none; }
.firma-band strong { color: var(--text); }

/* 7 Download-Bauteil (Reihenfolge je Gerät per CSS order, nichts wird entfernt) */
.dl { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.dl-teil { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.dl-teil .knopf { width: 100%; }
.dl-titel { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); margin: 0; }
.nacht .dl-titel { color: var(--night-muted); }
.dl-qr { display: none; }
.dl a.textlink { min-height: 44px; display: inline-flex; align-items: center; }
.dl a.apk-verweis { display: none; }
html[data-apk-hero="false"] .dl--hero .apk-knopf, html[data-apk-hero="false"] .dl--hero .apk-zusatz { display: none; }
html[data-apk-hero="false"] .dl--hero .apk-verweis { display: inline-flex; }
html[data-geraet="ios"] .dl-ios { order: -1; }
html[data-geraet="android"] .dl-android { order: -1; }
@media (min-width: 640px) { .dl-teil .knopf { width: auto; } }
@media (min-width: 1024px) {
  html:not([data-geraet="ios"]):not([data-geraet="android"]) .dl--gross { flex-direction: row; align-items: flex-start; gap: 32px; }
  html:not([data-geraet="ios"]):not([data-geraet="android"]) .dl--gross .dl-teil { flex: 1; }
  html:not([data-geraet="ios"]):not([data-geraet="android"]) .dl-qr { display: flex; flex: 0 0 auto; align-items: center; }
}
.dl-qr img { width: 132px; height: 132px; border-radius: 12px; border: 6px solid #fff; }
.android-hilfe { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 0 16px; background: var(--card); color: var(--text); }
.nacht .android-hilfe { background: rgba(12, 17, 41, .7); border-color: rgba(154, 163, 191, .3); color: var(--night-text); }
.android-hilfe summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; }
.android-hilfe ol { margin: 0 0 14px; padding-left: 1.3em; }
html[data-geraet="ios"] .nur-desktop, html[data-geraet="android"] .nur-desktop { display: none; }
.dl a.nur-ios { display: none; }
html[data-geraet="ios"] .dl a.nur-ios { display: inline-flex; }
.dl-hinweis { font-size: 15px; margin: 0; }
.nacht .dl-hinweis { color: var(--night-muted); }
/* Download im Hero und unten als EINE Knopfzeile (11.11.2026): Android-Knopf + gestrichelte iPhone-Plakette, darunter eine Kleinzeile */
.dl--hero { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 24px; }
.dl--hero .knopf--aus { min-height: 44px; cursor: pointer; text-decoration: none; }
.dl--hero a.knopf--aus:hover { border-style: solid; color: var(--night-text); }
.dl-zeile { flex-basis: 100%; margin: 0; font-size: 14px; line-height: 1.45; color: var(--night-muted); max-width: none; }
.dl-unten { display: grid; gap: 24px; }
.dl-unten h2 { margin: 0; }
.dl-unten .dl-qr { flex-direction: column; align-items: center; text-align: center; }
@media (min-width: 1024px) { .dl-unten { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.sprachhinweis { margin: 0 0 20px; font-size: 15px; }
.sprachhinweis a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(34, 211, 238, .14); text-decoration: none; font-weight: 650; }
.geraet { aspect-ratio: 1206 / 2622; width: 260px; border: 10px solid #0C1129; border-radius: 44px; overflow: hidden; position: relative; background: #0C1129; }
.geraet::before { content: ""; position: absolute; top: 10px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); border-radius: 999px; background: #000; z-index: 1; }
.geraet img { width: 100%; height: 100%; object-fit: cover; }

/* 8 Preise */
.preise { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 820px) { .preise { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .preise { grid-template-columns: repeat(4, 1fr); } }
/* Handy: Preise als wischbare Leiste wie die Funktionskarten (js/site.js zentriert Plus) */
@media (max-width: 819px) {
  .preise { grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-left: calc(-1 * var(--rand)); margin-right: calc(-1 * var(--rand)); padding: 16px var(--rand) 16px; scroll-padding: 0 var(--rand); }
  .preis { scroll-snap-align: center; }
  .js .preise .zeig { opacity: 1; transform: none; }
}
.preis { position: relative; display: flex; flex-direction: column; gap: 4px; border-width: 2px; border-color: var(--line); }
.preis p { margin: 0; }
.preis h3 { margin: 0; }
.preis .betrag { color: var(--text); font-size: 2.5rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.preis .zusatz { color: var(--muted); font-size: 14px; line-height: 1.45; white-space: nowrap; }
.preis .fuer { color: var(--text); font-size: 16px; line-height: 1.45; margin-top: 8px; }
.preise-knopf { margin: 20px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; max-width: none; }
.hinweis { display: block; margin: 12px 0 0; font-size: 14px; line-height: 1.5; padding: 10px 14px; border-radius: 12px; background: var(--orange-t); color: var(--orange-ink); font-weight: 600; max-width: 60ch; }
.preis .knopf { margin-top: auto; }
.preis .plakette { position: absolute; top: -12px; right: 16px; display: none; background: var(--text); color: #fff; }
html[data-empfohlen="true"] .preis--empfohlen { border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(120deg, #22D3EE, #A855F7, #FFA94D) border-box; }
html[data-empfohlen="true"] .preis--empfohlen .plakette { display: inline-flex; }
.auftraege { display: none; }
html[data-auftraege="true"] .auftraege { display: block; }
.preis-fakten { margin-top: 24px; display: grid; gap: 8px 24px; }
.preis-fakten .liste { margin-bottom: 0; }
@media (min-width: 1024px) { .preis-fakten { grid-template-columns: 2fr 1fr; } }

/* 9 FAQ */
.faq { display: grid; gap: 8px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; min-height: 44px; font-size: 16px; line-height: 1.4; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--cyan-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 16px 16px; color: var(--muted); line-height: 1.5; }
.faq details > div p { margin: 0; }

/* 10 Rechtsseiten und Fließtextseiten */
.text { max-width: 760px; }
.text h2 { font-size: 1.5rem; margin-top: 1.6em; }
.text h3 { margin-top: 1.4em; }
.text table { border-collapse: collapse; width: 100%; font-size: 16px; }
.text th, .text td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.text th { background: var(--bg-soft); }
/* Preistabellen: Beträge nie umbrechen, Tabelle scrollt in sich; am Handy ohne Spalte „Nr.“ */
.tabelle-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabelle-scroll th, .tabelle-scroll td { overflow-wrap: normal; word-break: normal; -webkit-hyphens: manual; hyphens: manual; }
.tabelle-scroll td { white-space: nowrap; }
.tabelle-scroll td:nth-child(n+3) { font-variant-numeric: tabular-nums; }
@media (max-width: 519px) { .tabelle-scroll td:first-child, .tabelle-scroll th:first-child { display: none; } }
.text .tabelle-scroll + p { margin-top: 12px; font-size: 15px; color: var(--muted); }
.entwurf { display: inline-block; margin-top: 12px; padding: 6px 12px; border-radius: 999px; border: 2px dashed #FFA94D; color: #FFA94D; font-weight: 700; font-size: 14px; }
.adresse { font-style: normal; line-height: 1.6; }
.kontakt { list-style: none; padding: 0; margin: 0 0 1em; }
.kontakt a, .kontakt-liste a { display: inline-flex; align-items: center; min-height: 44px; }

/* 11 Fuß (11.11.2026 kompakt: eine Navigationszeile + eine Rechtliches-Zeile; Inhalt aus tools/fuss-*.html über tools/fuss.py).
   Tippfläche ≥ 24 px (WCAG 2.2, 2.5.8) über padding statt 44 px pro Zeile. */
.fuss { background: var(--night); color: var(--night-text); padding: 32px 0 calc(24px + env(safe-area-inset-bottom)); }
.fuss a { color: var(--night-text); text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss-oben { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.fuss-nav { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 15px; }
.fuss-nav a, .fuss-recht a { display: inline-block; padding: 10px 0; }
.fuss-nav a[href^="mailto:"] { white-space: nowrap; overflow-wrap: normal; }
.fuss-recht { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(154, 163, 191, .2); font-size: 14px; color: var(--night-muted); }
.fuss-recht span { padding: 10px 0; }
.fuss .fuss-recht a { color: var(--night-muted); }
.fuss .fuss-recht a:hover { color: var(--night-text); }
.fuss-recht--zweit { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 639px) {
  .fuss { padding-top: 24px; }
  .fuss-nav { gap: 0 16px; }
  .fuss-nav a, .fuss-recht a, .fuss-recht span { padding: 6px 0; }
  .fuss-recht { gap: 0 14px; margin-top: 10px; padding-top: 8px; font-size: 13px; }
}
.fuss a[aria-current="page"] { text-decoration: underline; text-underline-offset: .25em; }
.fuss :focus-visible { outline-color: #22D3EE; }

/* 12 Feste Handy-Leiste (nur mit JS, nur am Handy) */
.leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 8px 16px max(8px, env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--line); transform: translateY(110%); transition: transform .25s; }
.leiste .knopf { width: 100%; min-height: 48px; }
.leiste--an { transform: none; }
.leiste[hidden] { display: none; }
@media (min-width: 820px) { .leiste { display: none; } }

/* 13 Bewegung (nur transform/opacity, ohne JS ist alles sichtbar) */
.js .zeig { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js .zeig.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ring::before { animation: none; }
  .js .zeig { opacity: 1; transform: none; transition: none; animation: none; }
  html { scroll-behavior: auto; }
}

/* 14 Dunkelmodus: ganze Seite nachtblau */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070B1A; --bg-soft: #0C1129; --line: #232B4A; --text: #E8ECF8; --muted: #9AA3BF; --card: #0E1430;
    --cyan-ink: #22D3EE; --violet-ink: #C084FC; --orange-ink: #FFA94D; --green-ink: #4ADE80; --focus: #22D3EE;
    --shadow: none;
  }
  .knopf--primaer { background: linear-gradient(100deg, #22D3EE, #C084FC); color: #070B1A; }
  .schritt .nr { background: #E8ECF8; color: #070B1A; }
  .kopf--hell { background: rgba(7, 11, 26, .9); color: var(--text); }
  .leiste { background: rgba(7, 11, 26, .94); }
  .preis .plakette { background: #E8ECF8; color: #070B1A; }
  .haken li::before { 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 4 8-9' fill='none' stroke='%234ADE80' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}

/* Scan-Animation im Hero (Ben 03.11.2026): Rechnung fotografieren → Felder erkannt → Einträge.
   Die Rechnung ist ein anonymes Beispiel (Stadtwerke Musterstadt, Max Mustermann, Beispiel-IBAN DE89 …), nachgebaut im
   Aufbau echter deutscher Stromrechnungen. Schrift im Papier in cqw: das Blatt skaliert als Ganzes mit seiner Breite.
   Ohne JS und bei „Bewegung reduzieren“ steht der Endzustand; js/site.js setzt die Schritte s1–s10 im Kreis. */
.scan { display: grid; gap: 18px; justify-items: center; width: 100%; max-width: 460px; margin: 0 auto; }
.scan-blatt { position: relative; width: 100%; aspect-ratio: 210 / 297; display: flex; flex-direction: column; container-type: inline-size; background: #fff; color: #1D2433; border-radius: 3px; box-shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 28px 60px rgba(0, 0, 0, .55); transform: rotate(-1.2deg); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-hyphens: none; hyphens: none; }
.rg { flex: 1; display: flex; flex-direction: column; padding: 24px 22px 16px; padding: 6.5cqw 6.5cqw 4.5cqw; font-size: 8px; font-size: 2.05cqw; line-height: 1.38; }
.rg :where(p, dl) { margin: 0; max-width: none; }
.rg-kopf { display: flex; justify-content: space-between; align-items: flex-start; }
.rg-logo { display: block; width: 36cqw; height: auto; }
.rg-seite { color: #6B7385; font-size: 1.7cqw; }
.rg-oben { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4cqw; margin-top: 6cqw; }
.rg-anschrift { font-size: 2.3cqw; line-height: 1.35; }
.rg-absender { font-size: 1.55cqw; color: #6B7385; border-bottom: 1px solid #C9CED8; padding-bottom: .5cqw; margin-bottom: 1.6cqw; white-space: nowrap; }
.rg-info { display: grid; grid-template-columns: auto auto; column-gap: 2.5cqw; row-gap: .4cqw; font-size: 1.85cqw; align-content: start; }
.rg-info dt { color: #6B7385; } .rg-info dd { margin: 0; font-weight: 700; text-align: right; }
.rg-titel { margin-top: 6cqw; font-size: 3.7cqw; font-weight: 700; color: #0B5F8A; line-height: 1.2; }
.rg-klein { font-size: 1.75cqw; color: #4A5263; margin-top: 1cqw; }
.rg-text { margin-top: 2.6cqw; }
.rg-tab { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; margin-top: 2.4cqw; }
.rg-tab span { padding: .7cqw 0 .7cqw 3.5cqw; border-bottom: 1px solid #E3E6EC; white-space: nowrap; text-align: right; }
.rg-tab span:nth-child(4n + 1), .rg-tab .rg-voll { padding-left: 0; text-align: left; }
.rg-tab .rg-voll { grid-column: 1 / 4; }
.rg-tab span:nth-child(-n + 4) { font-weight: 700; color: #4A5263; font-size: 1.75cqw; border-bottom: 1.5px solid #0B5F8A; }
.rg-tab .rg-sum { border-top: 1px solid #9AA1B0; }
.rg-tab .rg-brutto { font-weight: 700; border-bottom: 2px solid #1D2433; }
.rg-zahlung { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 3cqw; row-gap: 1.2cqw; margin-top: 3.4cqw; padding: 2.6cqw 3cqw; background: #EEF4F8; border-left: 1.2cqw solid #0B5F8A; }
.rg-zahlung > p:first-child { font-size: 2.7cqw; font-weight: 700; }
.rg-hinweis { font-size: 1.75cqw; color: #4A5263; }
.rg-zahlung .f2 { font-size: 5.4cqw; font-weight: 800; line-height: 1.1; color: #0C1129; justify-self: end; }
.rg-zahlung .f3 { font-size: 2.9cqw; font-weight: 700; justify-self: end; white-space: nowrap; }
.rg-fuss { margin-top: auto; padding-top: 2cqw; border-top: 1px solid #C9CED8; display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 2.5cqw; font-size: 1.5cqw; line-height: 1.4; color: #4A5263; }
.rg-fuss b { display: block; color: #1D2433; }
.rg-fuss .f4 { margin-top: .4cqw; font-size: 2.15cqw; font-weight: 700; color: #0C1129; white-space: nowrap; }
.scan-feld { position: relative; border-radius: 3px; transition: box-shadow .3s, background-color .3s; }
.scan-feld em { position: absolute; right: -4px; bottom: calc(100% + 5px); font: 700 10px/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .05em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; background: #0C1129; color: #22D3EE; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); transition: opacity .3s; z-index: 1; }
.rg-kopf .f1 em { right: auto; left: -4px; }
.rg-zahlung .f3 em { bottom: auto; top: calc(100% + 6px); }
.scan-feld { background-color: rgba(34, 211, 238, .16); box-shadow: 0 0 0 3px rgba(34, 211, 238, .25), 0 0 0 4.5px #22D3EE, 0 0 22px rgba(34, 211, 238, .55); }
/* Grün = Frage an dich (Vorschlag), Blau = fest erkannt (Ben 11.11.2026) */
.scan-frage { display: inline-block; white-space: nowrap; margin-left: .5cqw; padding: .15cqw .5cqw; border-radius: 2px; }
.scan-frage em { color: #34D399; text-transform: none; letter-spacing: 0; bottom: auto; top: calc(100% + 4px); }
.rg-mit-frage { margin-bottom: 4.2cqw; }
/* 12.11.2026 (Ben): jedes markierte Feld hat einen farbigen Punkt – derselbe Punkt steht links in der Liste */
.scan .f1, .scan-ergebnis .p1 { --punkt: #22D3EE; } .scan .f2, .scan-ergebnis .p2 { --punkt: #FFA94D; }
.scan .f3, .scan-ergebnis .p3 { --punkt: #F472B6; } .scan .f4, .scan-ergebnis .p4 { --punkt: #A78BFA; }
.scan .f5, .scan-ergebnis .p5 { --punkt: #34D399; }
.scan-feld em::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--punkt); vertical-align: 1px; }
.scan-ergebnis .chip[class*=" p"]::before { background: var(--punkt); }
.scan-ergebnis .chip b { font-weight: 650; color: var(--night-muted); margin-right: 2px; }
/* 12.11.2026 (Ben): deutlich Abstand zu „Testversion · Google Play folgt“, damit die Liste als eigener Block wirkt */
@media (min-width: 760px) { .hero-raster > div:first-child .scan-ergebnis { margin-top: 44px; } }
.scan-frage, .js .scan.s6 .scan-frage { background-color: rgba(52, 211, 153, .14); box-shadow: 0 0 0 1.5px #34D399, 0 0 12px rgba(52, 211, 153, .45); }
.scan-ecken, .scan-blitz, .scan-strahl { position: absolute; pointer-events: none; }
.scan-ecken { inset: 8px; border-radius: 4px; background:
  linear-gradient(#22D3EE, #22D3EE) top left / 18px 2px no-repeat, linear-gradient(#22D3EE, #22D3EE) top left / 2px 18px no-repeat,
  linear-gradient(#22D3EE, #22D3EE) top right / 18px 2px no-repeat, linear-gradient(#22D3EE, #22D3EE) top right / 2px 18px no-repeat,
  linear-gradient(#22D3EE, #22D3EE) bottom left / 18px 2px no-repeat, linear-gradient(#22D3EE, #22D3EE) bottom left / 2px 18px no-repeat,
  linear-gradient(#22D3EE, #22D3EE) bottom right / 18px 2px no-repeat, linear-gradient(#22D3EE, #22D3EE) bottom right / 2px 18px no-repeat; opacity: 0; }
.scan-blitz { inset: 0; background: #fff; opacity: 0; z-index: 2; }
.scan-strahl { left: 0; right: 0; top: 0; height: 10%; background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .28) 70%, #22D3EE); box-shadow: 0 6px 18px rgba(34, 211, 238, .6); opacity: 0; z-index: 2; }
.scan-ben { display: flex; align-items: flex-end; gap: 10px; width: 100%; }
.scan-ben .ring--hero { width: 52px; height: 52px; flex: none; } .scan-ben .ring--hero img { width: 44px; height: 44px; }
.scan-blase { margin: 0; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: rgba(12, 17, 41, .94); border: 1px solid rgba(34, 211, 238, .45); color: var(--night-text); font-size: 15px; line-height: 1.45; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.scan-ergebnis { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; justify-items: center; }
.scan-ergebnis .chip { white-space: normal; flex-wrap: wrap; row-gap: 2px; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.scan-ergebnis .chip small { white-space: nowrap; }
/* Stoppuhr am Blatt und Schluss-Chip „Fertig in ~10 Sek“ (11.11.2026): Ring füllt sich im Takt s1–s11.
   Ohne JS und bei „Bewegung reduzieren“ ist die Uhr voll und der Chip sichtbar (Endzustand). */
.scan-uhr { position: absolute; right: -14px; top: 30%; z-index: 3; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: rgba(12, 17, 41, .94); border: 1px solid rgba(34, 211, 238, .45); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); color: var(--night-text); transform: rotate(2deg); }
.scan-uhr svg { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); transform: rotate(-90deg); }
.scan-uhr circle { fill: none; stroke-width: 3; }
.scan-uhr .spur { stroke: rgba(154, 163, 191, .3); }
.scan-uhr .lauf { stroke: #4ADE80; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.scan-uhr .num { position: relative; font: 800 14px/1 var(--sys); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.scan-ergebnis .scan-fertig { background: linear-gradient(100deg, rgba(34, 211, 238, .22), rgba(74, 222, 128, .22)), rgba(12, 17, 41, .94); border-color: rgba(74, 222, 128, .6); }
.scan-ergebnis .scan-fertig small { color: var(--night-muted); }
/* Handy (schmal): Blatt rechts, Sprechblase oben links und Ergebnis unten links schweben darüber – wie am Desktop, nur kleiner */
@media (max-width: 759px) {
  /* 12.11.2026: Die Ergebnis-Chips stehen im Text-Block (links unter dem Text ab Tablet). Am Handy kommen sie
     trotzdem nach der Rechnung: Text-Block löst sich auf (display: contents), Rechnung und Chips bekommen order. */
  .hero-raster:has(.scan) { gap: 0; }
  .hero-raster:has(.scan) > div:first-child { display: contents; }
  .hero-raster:has(.scan) .scan { order: 1; margin-top: 16px; }
  .hero-raster:has(.scan) .scan-ergebnis { order: 2; }
  .scan { display: block; position: relative; padding: 32px 0 0; }
  .scan-blatt { width: 72%; margin: 0 0 0 auto; transform: rotate(-2deg); }
  .scan-ben { position: absolute; top: 0; left: 0; width: min(80%, 300px); z-index: 3; }
  .scan-ben .ring--hero { width: 40px; height: 40px; } .scan-ben .ring--hero img { width: 34px; height: 34px; }
  .scan-blase { font-size: 14px; padding: 8px 12px; }
  /* 12.11.2026 (Ben: Chips verdeckten die Rechnung): Ergebnis unter dem Blatt statt darüber */
  .scan-ergebnis { position: relative; margin-top: 16px; justify-items: start; z-index: 3; gap: 6px; }
  .scan-ergebnis .chip { font-size: 12px; padding: 5px 9px; }
  .scan-ergebnis .chip small { font-size: 11px; }
  .scan-uhr { right: -8px; width: 50px; height: 50px; }
  .scan-uhr .num { font-size: 12px; }
}
/* Tablet (12.11.2026, Ben: „etwas hoch setzen, im Hintergrund vom Text, schräg rechts hoch – kompakter“):
   Rechnung neben dem Text statt darunter, leicht nach rechts gekippt, schiebt sich etwas hinter die Textspalte */
@media (min-width: 760px) and (max-width: 1023px) {
  .hero-raster:has(.scan) { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; gap: 0; }
  .hero-raster:has(.scan) > :first-child { position: relative; z-index: 2; }
  .scan { display: block; position: relative; max-width: none; margin: 0 0 0 -28px; padding: 44px 0 0; z-index: 1; }
  .scan-blatt { width: 100%; transform: rotate(5deg); transform-origin: 60% 0; }
  .scan-ben { position: absolute; top: 0; right: 0; width: min(100%, 300px); z-index: 3; }
  .scan-ben .ring--hero { width: 44px; height: 44px; } .scan-ben .ring--hero img { width: 38px; height: 38px; }
  .scan-blase { font-size: 14px; padding: 8px 12px; }
  .scan-ergebnis { position: relative; margin-top: 20px; justify-items: start; z-index: 3; gap: 6px; }
  .scan-ergebnis .chip { font-size: 13px; padding: 6px 10px; }
}
/* Desktop: große Rechnung füllt die rechte Spalte, Sprechblase oben rechts und Ergebnis unten rechts schweben darüber */
@media (min-width: 1024px) {
  /* 11.11.2026: Blatt etwas kleiner (420 statt 480 px), weniger Polster oben – damit der Schluss-Chip „Fertig in ~10 Sek“
     bei 1440×900 noch im ersten Bildschirm liegt */
  .hero:has(.scan) { padding-top: calc(64px + 32px); }
  .scan { display: block; position: relative; max-width: none; padding: 48px 0 0; }
  .scan-blatt { width: min(calc(100% - 20px), 380px); transform: rotate(-2deg); }
  .scan-ben { position: absolute; top: 0; right: 0; width: min(80%, 340px); z-index: 3; }
  /* 12.11.2026: Ergebnis-Chips unter dem Blatt (nichts verdeckt, nichts abgeschnitten) */
  .scan-ergebnis { position: relative; margin-top: 18px; justify-items: start; z-index: 3; }
  .scan-ergebnis .chip { font-size: 15px; padding: 8px 14px; }
}

/* Ablauf (nur mit JS und ohne „Bewegung reduzieren“): Ausgangszustand, dann Schritte */
@media (prefers-reduced-motion: no-preference) {
  .js .scan .scan-feld { background-color: transparent; box-shadow: none; }
  .js .scan .scan-feld em, .js .scan .scan-ben, .js .hero-raster .scan-ergebnis li { opacity: 0; }
  .js .scan .scan-ben, .js .hero-raster .scan-ergebnis li { transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
  .js .scan.s1 .scan-ecken { opacity: 1; transition: opacity .2s; }
  .js .scan.s1 .scan-blitz { animation: scan-blitz .45s ease; }
  .js .scan.s2 .scan-strahl { animation: scan-strahl 1.6s ease-in-out forwards; }
  /* 12.11.2026 (Ben): erst Ben mit Sprechblase (s3), dann je Feld Markierung + Punkt links in der Liste (s4–s8), dann „Fertig“ (s9) */
  .js .scan.s4 .f1, .js .scan.s5 .f2, .js .scan.s6 .f3, .js .scan.s7 .f4 { background-color: rgba(34, 211, 238, .16); box-shadow: 0 0 0 3px rgba(34, 211, 238, .25), 0 0 0 4.5px #22D3EE, 0 0 22px rgba(34, 211, 238, .55); }
  .js .scan.s4 .f1 em, .js .scan.s5 .f2 em, .js .scan.s6 .f3 em, .js .scan.s7 .f4 em, .js .scan.s8 .f5 em { opacity: 1; }
  .js .scan.s8 .scan-frage { background-color: rgba(52, 211, 153, .14); box-shadow: 0 0 0 1.5px #34D399, 0 0 12px rgba(52, 211, 153, .45); }
  .js .scan.s3 .scan-ben, .js .hero-raster.s4 .p1, .js .hero-raster.s5 .p2, .js .hero-raster.s6 .p3, .js .hero-raster.s7 .p4, .js .hero-raster.s8 .p5, .js .hero-raster.s9 .e4 { opacity: 1; transform: none; }
  .js .scan .scan-uhr .lauf { stroke-dashoffset: 100; transition: none; }
  .js .scan.s1 .scan-uhr .lauf { stroke-dashoffset: 0; transition: stroke-dashoffset 7.5s linear; }
}
@keyframes scan-blitz { 0% { opacity: 0; } 20% { opacity: .85; } 100% { opacity: 0; } }
@keyframes scan-strahl { 0% { opacity: 1; top: -10%; } 90% { opacity: 1; } 100% { opacity: 0; top: 90%; } }
