/* 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; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sys); hyphens: auto; -webkit-font-smoothing: antialiased; }
/* 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 12px; }
.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; }
.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; }
.ring--gross { width: 160px; height: 160px; isolation: isolate; } .ring--gross img { width: 146px; height: 146px; }
@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 { 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; } }
.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(40px, 8vw, 96px)) 0 clamp(56px, 8vw, 104px); }
.hero-raster { display: grid; gap: 40px; }
.hero h1 { margin-top: 20px; }
.hero .lead { font-size: clamp(1.0625rem, 2vw, 1.25rem); max-width: 56ch; }
@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); } }
.seitenkopf { padding: calc(64px + 48px) 0 48px; }
.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: 40px; }
.vertrauen { padding: 28px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.vertrauen .haken { gap: 14px; }
@media (min-width: 1024px) { .vertrauen .haken { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.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; }
.schritt .mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
@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; }
.karte p { color: var(--muted); font-size: 16px; margin: 0; }
.karte p + p { margin-top: .6em; }
.karte .beispiel { margin-top: 12px; font-size: 15px; color: var(--text); background: var(--bg-soft); border-radius: 12px; padding: 10px 12px; }
@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; }
.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: 84%; 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); } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento .breit { grid-column: span 1; }
}
.ohne-ki { margin-top: 24px; padding: 18px 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); }
.kontrolle .haken { gap: 16px; }
@media (min-width: 820px) { .kontrolle .haken { grid-template-columns: repeat(2, 1fr); } }
.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; } }
.firma { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1024px) { .firma { grid-template-columns: 1.2fr 1fr; } }
.gruender { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.gruender blockquote { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.45; font-weight: 600; max-width: 40ch; }
.gruender figcaption { color: var(--muted); }

/* 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); }
@media (min-width: 640px) { .dl--hero { flex-direction: row; flex-wrap: wrap; gap: 20px 32px; } }
.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); } }
.preis { position: relative; display: flex; flex-direction: column; gap: 8px; }
.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: 15px; }
.preis .fuer { color: var(--text); font-size: 16px; }
.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: 32px; display: grid; gap: 24px; }
@media (min-width: 1024px) { .preis-fakten { grid-template-columns: 2fr 1fr; } }

/* 9 FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; min-height: 44px; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; 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 20px 18px; color: var(--muted); }
.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); }
.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.7; }
.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ß */
.fuss { background: var(--night); color: var(--night-text); padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); }
.fuss-raster { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .fuss-raster { grid-template-columns: 1.3fr 1fr 1.5fr 1.1fr .8fr; } }
.fuss h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--night-muted); margin: 0 0 10px; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li a { color: var(--night-text); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.fuss li a:hover { text-decoration: underline; }
.fuss .marke { margin-bottom: 8px; }
.fuss-marke { grid-column: 1 / -1; }
@media (min-width: 1024px) { .fuss-marke { grid-column: auto; } }
.fuss-unten { max-width: none; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(154, 163, 191, .2); color: var(--night-muted); font-size: 14px; }
.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); }
.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; }
/* Tablet: Rechnung links, Ben und Ergebnis rechts daneben */
@media (min-width: 760px) and (max-width: 1023px) {
  .scan { max-width: 880px; grid-template-columns: min(56%, 440px) minmax(0, 1fr); grid-template-areas: "blatt ben" "blatt erg"; column-gap: 36px; row-gap: 16px; align-items: center; justify-content: center; }
  .scan-blatt { grid-area: blatt; }
  .scan-ben { grid-area: ben; align-self: end; }
  .scan-ergebnis { grid-area: erg; align-self: start; justify-items: start; }
}
/* Desktop: große Rechnung füllt die rechte Spalte, Sprechblase oben rechts und Ergebnis unten rechts schweben darüber */
@media (min-width: 1024px) {
  .scan { display: block; position: relative; max-width: none; padding: 72px 0 150px; }
  .scan-blatt { width: min(calc(100% - 20px), 480px); transform: rotate(-2deg); }
  .scan-ben { position: absolute; top: 0; right: 0; width: min(80%, 340px); z-index: 3; }
  .scan-ergebnis { position: absolute; right: 0; bottom: 0; justify-items: end; 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 .scan .scan-ergebnis li { opacity: 0; }
  .js .scan .scan-ben, .js .scan .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; }
  .js .scan.s3 .f1, .js .scan.s4 .f2, .js .scan.s5 .f3, .js .scan.s6 .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.s3 .f1 em, .js .scan.s4 .f2 em, .js .scan.s5 .f3 em, .js .scan.s6 .f4 em { opacity: 1; }
  .js .scan.s7 .scan-ben, .js .scan.s8 .e1, .js .scan.s9 .e2, .js .scan.s10 .e3 { opacity: 1; transform: none; }
}
@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%; } }
