/* HufiVoice – Gestaltung. Nur Schwarz, Weiß, Orange (#E97824). Schrift Outfit lokal. */
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --orange: #E97824;
  --orange-hover: #D96D1D;
  --hg: #FFFFFF;          /* Hintergrund */
  --hg2: #F5F5F5;         /* Flächen (neutrales Grau aus Schwarz) */
  --karte: #FFFFFF;
  --text: #0A0A0A;
  --text2: #5C5C5C;       /* 6,6:1 auf Weiß */
  --linie: rgba(0, 0, 0, .1);
  --akzent: #0A0A0A;      /* Orange als Schrift ist auf Weiß zu schwach, darum Schwarz */
  --fokus: #0A0A0A;
  --schatten: 0 1px 2px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.08);
  --radius: 28px;
  --weich: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --hg: #000000; --hg2: #0A0A0A; --karte: #111111;
    --text: #FFFFFF; --text2: #A3A3A3;
    --linie: rgba(255, 255, 255, .12);
    --akzent: #E97824; --fokus: #E97824;
    --schatten: 0 0 0 1px rgba(255,255,255,.08), 0 20px 60px rgba(0,0,0,.6);
  }
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--hg); color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--orange-hover); }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 8px; }
code { font-family: ui-monospace, "DejaVu Sans Mono", monospace; font-size: .85em; background: var(--hg2); border: 1px solid var(--linie); padding: 1px 6px; border-radius: 6px; }
.rahmen { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.rahmen.schmal { max-width: 760px; }
.nur-leser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung { position: absolute; left: 12px; top: -60px; background: var(--orange); color: #000; padding: 10px 16px; border-radius: 12px; z-index: 20; font-weight: 600; text-decoration: none; }
.sprung:focus { top: 12px; }

/* Kopf: schwebend, halbdurchsichtig */
header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--hg) 78%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--linie); }
header .rahmen { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.marke { font-weight: 700; font-size: 21px; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.marke span { color: var(--orange); }
nav { display: flex; align-items: center; gap: 4px; }
nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: background .2s; }
nav a:hover { background: var(--hg2); }
nav a.nav-knopf { background: var(--orange); color: #000; padding: 7px 16px; margin-left: 6px; }
nav a.nav-knopf:hover { background: var(--orange-hover); }

/* Knöpfe: Text auf Orange ist Schwarz */
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  background: var(--orange); color: #000; font-weight: 600; font-size: 17px; text-decoration: none;
  padding: 12px 26px; border-radius: 999px; border: 0; transition: background .2s, transform .2s var(--weich);
}
.knopf:hover { background: var(--orange-hover); }
.knopf:active { transform: scale(.97); }
.knopf small { font-weight: 400; font-size: 13px; opacity: .75; }
.knopf.zweit { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.knopf.zweit:hover { background: var(--hg2); }
.knopf.gross { min-height: 56px; font-size: 19px; padding: 14px 34px; }
.link { display: inline-block; font-size: 15px; color: var(--text2); margin-top: 14px; }
.klein, .hinweis { font-size: 15px; color: var(--text2); }

/* Start */
.held { padding: clamp(56px, 10vw, 120px) 0 40px; text-align: center; overflow: hidden; }
.vorzeile { font-size: 17px; color: var(--text2); margin-bottom: 18px; }
.schild-test { display: inline-block; background: var(--orange); color: #000; font-weight: 600; font-size: 13px; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; margin-right: 6px; vertical-align: 2px; }
h1 { font-size: clamp(46px, 9vw, 104px); line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.akzent { color: var(--akzent); white-space: nowrap; }
@media (prefers-color-scheme: light) {
  .akzent { background: linear-gradient(transparent 70%, var(--orange) 70%, var(--orange) 92%, transparent 92%); }
}
.unterzeile { font-size: clamp(19px, 2.4vw, 25px); color: var(--text2); max-width: 640px; margin: 26px auto 34px; line-height: 1.45; }

/* Live-Demo (reines CSS + wenig JS) */
.demo { margin: clamp(48px, 7vw, 80px) auto 0; max-width: 820px; }
.demo-buehne { position: relative; height: 430px; border-radius: 36px; background: var(--hg2); overflow: hidden; border: 1px solid var(--linie); }
.demo-fenster { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); width: min(560px, 86%); height: 170px; background: var(--karte); border-radius: 18px; box-shadow: var(--schatten); text-align: left; }
.demo-leiste { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--linie); font-size: 13px; color: var(--text2); }
.demo-leiste i { width: 11px; height: 11px; border-radius: 50%; background: var(--linie); }
.demo-leiste span { margin-left: 8px; }
.demo-text { padding: 16px 20px; font-size: 19px; min-height: 60px; }
.cursor { display: inline-block; width: 2px; height: 1.15em; background: var(--orange); vertical-align: -3px; margin-left: 1px; animation: blinken 1.1s steps(1) infinite; }
@keyframes blinken { 50% { opacity: 0; } }
.demo-pille { position: absolute; left: 50%; bottom: 102px; width: min(500px, 84%); transform: translate(-50%, 14px) scale(.96); opacity: 0;
  background: rgba(10,10,10,.88); color: #fff; border-radius: 22px; padding: 14px 18px; text-align: left;
  box-shadow: 0 18px 50px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.08);
  transition: opacity .35s var(--weich), transform .45s var(--weich); }
.demo.hoert .demo-pille, .demo.fertig .demo-pille { opacity: 1; transform: translate(-50%, 0) scale(1); }
.pille-kopf { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: #E97824; }
.pille-punkt { width: 10px; height: 10px; border-radius: 50%; background: #E97824; }
.demo.hoert .pille-punkt { animation: puls 1.2s ease-in-out infinite; }
@keyframes puls { 50% { transform: scale(.6); opacity: .5; } }
.pegel { margin-left: auto; display: flex; gap: 3px; align-items: center; height: 18px; }
.pegel b { width: 3px; height: 4px; border-radius: 2px; background: #E97824; transition: height .3s; }
.demo.hoert .pegel b { animation: pegel .9s ease-in-out infinite alternate; }
.pegel b:nth-child(2) { animation-delay: -.3s !important; } .pegel b:nth-child(3) { animation-delay: -.6s !important; }
.pegel b:nth-child(4) { animation-delay: -.15s !important; } .pegel b:nth-child(5) { animation-delay: -.45s !important; }
.pegel b:nth-child(6) { animation-delay: -.75s !important; } .pegel b:nth-child(7) { animation-delay: -.2s !important; }
@keyframes pegel { from { height: 4px; } to { height: 18px; } }
.pille-text { margin-top: 6px; font-size: 17px; line-height: 1.4; min-height: 48px; color: #fff; }
.demo-taste { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: 112px; height: 58px; border-radius: 14px;
  background: var(--karte); box-shadow: 0 5px 0 var(--linie), 0 8px 20px rgba(0,0,0,.08); border: 1px solid var(--linie);
  display: grid; place-items: center; font-size: 15px; font-weight: 600; color: var(--text2); transition: transform .15s, box-shadow .15s, color .15s; }
.demo.hoert .demo-taste { transform: translate(-50%, 4px); box-shadow: 0 1px 0 var(--linie); color: var(--text); border-color: var(--orange); }
.demo figcaption { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; margin-top: 16px; font-size: 14px; color: var(--text2); }
.demo-stopp, .kopier { font: inherit; font-size: 14px; color: var(--text); background: var(--hg2); border: 1px solid var(--linie); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.demo-stopp:hover, .kopier:hover { border-color: var(--text2); }

/* Abschnitte */
.abschnitt { padding: clamp(80px, 11vw, 140px) 0; }
.abschnitt.grau { background: var(--hg2); }
h2 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; text-align: center; }
.einleitung { font-size: clamp(18px, 2vw, 22px); color: var(--text2); text-align: center; max-width: 620px; margin: 18px auto 0; }
h3 { font-size: 23px; letter-spacing: -.015em; font-weight: 600; line-height: 1.2; }

.schritte { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.karte { background: var(--hg2); border-radius: var(--radius); padding: 34px 30px 36px; }
.karte .nr { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #000; font-weight: 700; font-size: 20px; margin-bottom: 26px; }
.karte p { color: var(--text2); margin-top: 10px; }
.hinweis { text-align: center; margin-top: 30px; }

/* Datenschutz-Block: immer dunkel */
.abschnitt.dunkel { background: #000; color: #fff; --text2: #A3A3A3; --linie: rgba(255,255,255,.14); --fokus: #E97824; }
@media (prefers-color-scheme: dark) { .abschnitt.dunkel { background: #0A0A0A; border-block: 1px solid var(--linie); } }
.offline { text-align: center; }
.offline-symbol { display: inline-grid; place-items: center; width: 104px; height: 104px; border-radius: 30px; background: #161616; color: #fff; margin-bottom: 30px; }
.vorteile { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 64px; background: var(--linie); border-radius: var(--radius); overflow: hidden; }
.vorteile li { background: #0E0E0E; padding: 30px 26px; }
.vorteile strong { display: block; font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.vorteile strong::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-bottom: 16px; }
.vorteile span { color: var(--text2); font-size: 16px; }

/* Auswahl lokal / Server / API (Radio, ohne JS bedienbar) */
.wahl { max-width: 760px; margin: 56px auto 0; }
.wahl-schalter { border: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.wahl-schalter > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wahl-schalter > label { padding: 10px 22px; font-weight: 500; font-size: 16px; cursor: pointer; background: var(--hg2); border: 1px solid var(--linie); color: var(--text2); transition: background .25s, color .25s; }
.wahl-schalter > label:first-of-type { border-radius: 999px 0 0 999px; }
.wahl-schalter > label:last-of-type { border-radius: 0 999px 999px 0; }
.wahl-schalter > input:checked + label { background: var(--text); color: var(--hg); border-color: var(--text); }
.wahl-schalter > input:focus-visible + label { outline: 3px solid var(--fokus); outline-offset: 3px; position: relative; z-index: 1; }
.wahl-tafeln { width: 100%; margin-top: 28px; }
.wahl-tafel { display: none; background: var(--hg2); border-radius: var(--radius); padding: 40px; text-align: center; animation: einblenden .45s var(--weich); }
.wahl-tafel p { color: var(--text2); max-width: 560px; margin: 12px auto 0; }
#w-lokal:checked ~ .wahl-tafeln #t-lokal, #w-server:checked ~ .wahl-tafeln #t-server, #w-api:checked ~ .wahl-tafeln #t-api { display: block; }
@keyframes einblenden { from { opacity: 0; transform: translateY(8px); } }
.schild-orange, .schild-bald { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 11px; border-radius: 999px; margin-bottom: 14px; }
.schild-orange { background: var(--orange); color: #000; }
.schild-bald { box-shadow: inset 0 0 0 1px var(--text2); color: var(--text2); }

/* Download-Karten */
.geraete { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 20px; margin-top: 64px; align-items: start; }
.geraet { background: var(--karte); border-radius: var(--radius); padding: 32px 30px; box-shadow: var(--schatten); }
.geraet-kopf { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.geraet-kopf .schild-orange, .geraet-kopf .schild-bald { margin: 0; }
.geraet h3 { font-size: 28px; }
.geraet p { color: var(--text2); margin: 8px 0 24px; font-size: 16px; }
.geraet.fertig { box-shadow: var(--schatten), inset 0 0 0 2px var(--orange); }
.geraet.bald .geraet-kopf svg { color: var(--text2); }
.anleitung { margin-top: 22px; border-top: 1px solid var(--linie); padding-top: 16px; font-size: 16px; }
.anleitung summary { cursor: pointer; font-weight: 600; }
.anleitung ol { margin: 12px 0 0 20px; color: var(--text2); }
.anleitung li { margin-bottom: 4px; }
.anleitung p { margin: 12px 0 0; }

/* Warteliste */
.warte-karte { margin-top: 48px; background: var(--hg2); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); text-align: center; }
.os-wahl { border: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.os-wahl legend { width: 100%; font-weight: 600; margin-bottom: 14px; }
.os-wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.os-wahl label { cursor: pointer; padding: 10px 22px; border-radius: 999px; background: var(--karte); border: 1px solid var(--linie); font-weight: 500; transition: background .2s, color .2s; }
.os-wahl input:checked + label { background: var(--text); color: var(--hg); border-color: var(--text); }
.os-wahl input:focus-visible + label { outline: 3px solid var(--fokus); outline-offset: 3px; }
.warte-karte .klein { margin-top: 18px; }
.datenschutz-kurz { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--linie); font-size: 14px; color: var(--text2); text-align: left; }
.datenschutz-kurz strong { color: var(--text); }

/* Formulare (Warteliste, Kontakt) */
.formular { text-align: left; }
.formular .os-wahl { justify-content: flex-start; }
.formular .os-wahl legend { text-align: left; }
.feld { margin-bottom: 20px; }
.feld label { display: block; font-weight: 600; margin-bottom: 8px; }
.feld small { font-weight: 400; color: var(--text2); }
.feld input, .feld textarea { width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; padding: 14px 16px; transition: border-color .2s, box-shadow .2s; }
.feld textarea { resize: vertical; min-height: 140px; }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 25%, transparent); }
.haken { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 24px; font-size: 15px; color: var(--text2); cursor: pointer; }
.haken input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--orange); }
.falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formular .knopf { width: 100%; cursor: pointer; font-family: inherit; }
.formular .knopf:disabled { opacity: .6; cursor: wait; }
.meldung { min-height: 1.5em; margin-top: 14px; font-size: 16px; font-weight: 500; text-align: center; }
.meldung.gut { color: var(--text); }
.meldung.schlecht { color: var(--text); }
.meldung.schlecht::before { content: "! "; color: var(--orange); font-weight: 700; }

/* Fragen */
.faq { margin-top: 48px; }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text2); border-bottom: 2px solid var(--text2); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--weich); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { color: var(--text2); padding: 0 0 24px; max-width: 640px; }
.faq details[open] p { animation: einblenden .35s var(--weich); }

/* Fuß (auch für Impressum und Datenschutz) */
footer { border-top: 1px solid var(--linie); padding: 48px 0 64px; font-size: 15px; color: var(--text2); }
footer .rahmen { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
footer .marke { font-size: 20px !important; }
footer p { margin-top: 8px; }
footer a { color: var(--text); margin-right: 18px; }
.ki { max-width: 460px; font-size: 14px; }
.ki strong { color: var(--text); }

/* Sanftes Einblenden beim Scrollen (nur mit JS, sonst sofort sichtbar) */
.js .zeige { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--weich), transform .7s var(--weich); }
.js .zeige.da { opacity: 1; transform: none; }
.schritte .zeige:nth-child(2), .geraete .zeige:nth-child(2), .vorteile .zeige:nth-child(2) { transition-delay: .08s; }
.schritte .zeige:nth-child(3), .geraete .zeige:nth-child(3), .vorteile .zeige:nth-child(3) { transition-delay: .16s; }
.vorteile .zeige:nth-child(4) { transition-delay: .24s; }

/* Rechtstexte (Impressum, Datenschutz) – Inhalt unverändert, nur Gestaltung */
.rechtstext { padding: 72px 24px 96px; max-width: 760px; }
.rechtstext h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 12px; }
.rechtstext h1 + p { color: var(--text2); margin-bottom: 36px; font-size: 19px; }
.rechtstext h2 { font-size: 24px; text-align: left; letter-spacing: -.015em; margin: 44px 0 10px; }
.rechtstext p, .rechtstext li { color: var(--text2); font-size: 17px; }
.rechtstext p + p { margin-top: 10px; }
.rechtstext strong { color: var(--text); }
.rechtstext ul { margin: 10px 0 0 22px; }
.rechtstext li { margin-bottom: 4px; }
.zurueck { display: inline-block; margin-bottom: 28px; font-weight: 500; color: var(--text2); text-decoration: none; }
.zurueck:hover { color: var(--text); }
.offen { display: inline-block; background: var(--orange); color: #000; font-weight: 600; font-size: 14px; padding: 1px 10px; border-radius: 999px; }
.entwurf { background: var(--hg2); border-left: 4px solid var(--orange); border-radius: 14px; padding: 14px 18px; margin-bottom: 30px; color: var(--text) !important; font-size: 15px !important; }

/* Handy */
@media (max-width: 900px) {
  .schritte, .geraete { grid-template-columns: 1fr; }
  .vorteile { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  nav a.weg { display: none; }
  .vorteile { grid-template-columns: 1fr; }
  .demo-buehne { height: 420px; border-radius: 26px; }
  .demo-fenster { top: 20px; height: 150px; }
  .demo-text { font-size: 17px; }
  .demo-pille { bottom: 96px; padding: 12px 14px; }
  .pille-text { font-size: 15px; }
  .wahl-schalter > label { padding: 10px 14px; font-size: 15px; }
  .wahl-tafel { padding: 28px 22px; }
  .knoepfe .knopf { width: 100%; }
}

/* Weniger Bewegung, wenn im System so eingestellt */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .zeige { opacity: 1; transform: none; }
}
