/* pdf2e.kom-dat.de – Blue-Dark wie in der Anwendung („Tiefsee“). Keine externen Schriften. */
:root {
  --grund: #050b1c; --kopf: #08122a; --flaeche: #0b1630; --flaeche-hoch: #102044;
  --linie: #22397a; --linie-bedien: #3b5598; --text: #f4f7ff; --leise: #b6c3e4; --mittel: #c7d2ee;
  --akzent: #38c6f4; --akzent-text: #7fd8f8; --primaer: #0e6fd8; --primaer-hover: #1a7deb;
  --ok: #4be0a2; --warn: #ffc85c;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--grund); color: var(--text); font: 17px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: var(--akzent-text); }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
.visuell-versteckt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.leise { color: var(--leise); }

.kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 12px max(16px, calc((100% - 1100px) / 2)); background: var(--kopf); border-bottom: 1px solid var(--linie); }
.marke { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
.marke-zusatz { font-weight: 600; color: var(--gold, #e8b03c); }
@media (max-width: 640px) { .marke-zusatz { display: none; } }
.kopf nav { display: flex; gap: 18px; flex-wrap: wrap; }
.kopf nav a { color: var(--mittel); text-decoration: none; }
.kopf nav a:hover { color: #fff; }
main { max-width: 1100px; margin: 0 auto; padding: 28px 16px 48px; display: flex; flex-direction: column; gap: 28px; }
h1, h2 { line-height: 1.25; margin: 0 0 10px; }
.fuss { border-top: 1px solid var(--linie); padding: 20px 16px 32px; text-align: center; color: var(--leise); font-size: 15px; }
.fuss p { margin: 4px 0; }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 2px solid var(--linie-bedien); background: var(--flaeche); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.knopf:hover { background: var(--flaeche-hoch); }
.knopf--klein { min-height: 40px; padding: 0 14px; font-size: 15px; }
.knopf--gross { min-height: 64px; padding: 0 30px; font-size: 21px; background: var(--primaer); border-color: var(--primaer); box-shadow: 0 10px 30px rgba(14, 111, 216, .35); }
.knopf--gross:hover { background: var(--primaer-hover); }
.knopf svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.download { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 16px 0; text-align: center; scroll-margin-top: 24px; }
.download h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.download p { margin: 0; font-size: 15px; }
.hinweis { border: 1px solid #6a4e12; background: #3a2a06; border-radius: 14px; padding: 14px 18px; color: #ffe2a8; }
.hinweis p { margin: 0; }
.dienst, .text { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 16px; padding: 20px 22px; }
.dienst p { margin: 0; color: var(--mittel); }

/* ---------- Werbeblock ---------- */
.werbung { container: werbung / inline-size; display: flex; flex-direction: column; gap: 12px; width: 100%; margin: 0 auto; }
/* Desktop: Werbeblock so begrenzen, dass der Download-Knopf ohne Scrollen sichtbar bleibt. */
@media (min-width: 700px) { .werbung { width: min(100%, max(540px, calc((100vh - 450px) * 16 / 9))); } }
.buehne { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; border: 1px solid var(--linie);
  background: radial-gradient(120% 90% at 50% 0%, #10275a 0%, #08142f 55%, #050b1c 100%); }
.glanz { position: absolute; inset: -30%; background: radial-gradient(closest-side, rgba(56, 198, 244, .16), transparent 70%); animation: glanz 12s ease-in-out infinite alternate; }
@keyframes glanz { from { transform: translate(-12%, -6%); } to { transform: translate(14%, 8%); } }

.buehne > * { position: absolute; transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1), left 1.1s cubic-bezier(.2, .7, .2, 1), top 1.1s cubic-bezier(.2, .7, .2, 1), width 1.1s cubic-bezier(.2, .7, .2, 1); }
.buehne > :not(.glanz) { opacity: 0; pointer-events: none; }

/* PDF-Beleg */
.beleg { left: 37%; top: 9%; width: 26%; height: 82%; background: #fdfdfb; border-radius: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); padding: 5% 2.4%; color: #1b2433; }
.beleg-kopf { display: flex; align-items: center; gap: 6%; font-size: 1.9cqw; margin-bottom: 8%; }
.pdf-marke { background: #d93a3a; color: #fff; font-weight: 800; font-size: 1.2cqw; padding: 2% 6%; border-radius: 3px; }
.zeilen { display: flex; flex-direction: column; gap: 4.5%; height: 70%; }
.zeilen i { display: block; height: .55cqw; background: #c9d0dc; border-radius: 3px; width: 100%; }
.zeilen i.b62 { width: 62%; } .zeilen i.b48 { width: 48%; } .zeilen i.b70 { width: 70%; } .zeilen i.b40 { width: 40%; } .zeilen i.b46 { width: 46%; }
.zeilen i.rechts { margin-left: auto; background: #9aa6ba; }
.tab { display: grid; grid-template-columns: 3fr 1fr 1fr; gap: 6%; margin: 3% 0; }
.beleg-frage { position: absolute; right: -10%; top: -6%; width: 4.4cqw; height: 4.4cqw; border-radius: 50%; display: grid; place-items: center; background: var(--warn); color: #3a2a06; font-weight: 800; font-size: 2.6cqw; box-shadow: 0 0 0 .5cqw rgba(255, 200, 92, .25); }

/* Programmfenster mit echter Ansicht */
.fenster { left: 18%; top: 16%; width: 64%; border-radius: 12px; overflow: hidden; border: 1px solid var(--linie-bedien); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); background: var(--kopf); transform: scale(.92); }
.fenster-kopf { display: flex; align-items: center; gap: 1.2%; padding: 1% 1.6%; font-size: 1.2cqw; font-weight: 700; background: var(--kopf); border-bottom: 1px solid var(--linie); }
.fenster-kopf img { width: 1.6cqw; height: auto; }
.fenster-kopf i { width: .8cqw; height: .8cqw; border-radius: 50%; background: var(--linie-bedien); }
.fenster-kopf i:first-of-type { margin-left: auto; }
.fenster-bild { display: block; width: 100%; height: auto; }

/* Strukturierte Daten */
.daten { left: 40%; top: 13%; width: 46%; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 1.1cqw; }
.daten li { display: flex; justify-content: space-between; gap: 4%; padding: 1cqw 1.6cqw; border-radius: 1cqw; background: rgba(16, 32, 68, .92); border: 1px solid var(--linie-bedien); font-size: 1.55cqw; opacity: 0; transform: translateX(-30%); transition: opacity .6s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.daten li span { color: var(--leise); }
.daten li b { font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; color: var(--akzent-text); }
.xml { left: 40%; top: 72%; width: 46%; margin: 0; padding: 1.2cqw 1.6cqw; border-radius: 1cqw; background: #030812; border: 1px solid var(--linie); color: var(--ok); font: 1.15cqw/1.5 Consolas, "Cascadia Mono", ui-monospace, monospace; white-space: pre; overflow: hidden; }

/* Ausgabeformate */
.formate { right: 6%; top: 22%; width: 26%; display: flex; flex-direction: column; gap: 2cqw; }
.datei { display: flex; align-items: center; gap: 1.4cqw; padding: 1.4cqw 1.8cqw; border-radius: 1.2cqw; background: linear-gradient(135deg, #0f2350, #0b1630); border: 1px solid var(--akzent); box-shadow: 0 0 2cqw rgba(56, 198, 244, .25); font-size: 1.7cqw; opacity: 0; transform: translateY(30%) scale(.9); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.datei svg { width: 3.4cqw; height: 3.4cqw; flex: none; fill: none; stroke: var(--akzent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Ergebnis, kostenlos */
.ergebnis { left: 12%; top: 8%; width: 24%; border-radius: 1cqw; overflow: hidden; border: 1px solid var(--linie-bedien); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); transform: translateY(6%); }
.ergebnis img { display: block; width: 100%; height: auto; }
.kostenlos { left: 50%; top: 50%; padding: 1.2cqw 3.6cqw; border: .45cqw solid var(--ok); border-radius: 1.4cqw; color: var(--ok); font-weight: 900; font-size: 6.4cqw; letter-spacing: .12em; background: rgba(5, 30, 24, .85); box-shadow: 0 0 4cqw rgba(75, 224, 162, .35); transform: translate(-50%, -50%) rotate(-6deg) scale(1.8); }

/* Logo und Schluss */
.logo { left: 50%; top: 4%; display: flex; align-items: center; gap: 1.2cqw; transform: translateX(-50%) scale(.7); font-weight: 800; font-size: 3cqw; }
.logo img { width: 5.4cqw; height: auto; filter: drop-shadow(0 0 1.6cqw rgba(56, 198, 244, .45)); }
.schluss { left: 8%; right: 8%; top: 52%; text-align: center; transform: translateY(12%); }
.schluss-text { margin: 0; font-size: 3.4cqw; font-weight: 800; }
.schluss-zusatz { margin: .8cqw 0 0; font-size: 1.9cqw; color: var(--mittel); }
.pfeil { width: 4cqw; height: 4cqw; margin-top: 1.4cqw; fill: none; stroke: var(--akzent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: pfeil 1.4s ease-in-out infinite; }
@keyframes pfeil { 50% { transform: translateY(35%); } }

/* ---- Szenen ---- */
/* 1: PDF-Rechnung */
.buehne[data-szene="s1"] .beleg { opacity: 1; }
/* 2: Logo, Dokument wandert ins Programm */
.buehne[data-szene="s2"] .fenster { opacity: 1; transform: none; }
.buehne[data-szene="s2"] .beleg { opacity: 1; left: 21%; top: 34%; width: 13%; height: 41%; transform: rotate(-3deg); }
.buehne[data-szene="s2"] .beleg-frage { opacity: 0; }
.buehne[data-szene="s2"] .logo, .buehne[data-szene="s3"] .logo, .buehne[data-szene="s3b"] .logo, .buehne[data-szene="s4"] .logo, .buehne[data-szene="s4b"] .logo { opacity: 1; transform: translateX(-50%) scale(.6); top: 1.5%; }
.buehne[data-szene="s2"] .logo { animation: logo-ein 1.2s ease both; }
@keyframes logo-ein { from { opacity: 0; transform: translateX(-50%) scale(1.4); } }
/* 3: Daten strukturieren */
.buehne[data-szene="s3"] .fenster { opacity: .18; transform: scale(1.05); }
.buehne[data-szene="s3"] .beleg { opacity: 1; left: 9%; top: 14%; width: 22%; height: 72%; }
.buehne[data-szene="s3"] .beleg-frage { opacity: 0; }
.buehne:is([data-szene="s3"], [data-szene="s3b"]) .daten { opacity: 1; }
.buehne:is([data-szene="s3"], [data-szene="s3b"]) .daten li { opacity: 1; transform: none; }
.daten li:nth-child(2) { transition-delay: .25s; } .daten li:nth-child(3) { transition-delay: .5s; }
.daten li:nth-child(4) { transition-delay: .75s; } .daten li:nth-child(5) { transition-delay: 1s; } .daten li:nth-child(6) { transition-delay: 1.25s; }
/* 3b: Ausgabeformate */
.buehne[data-szene="s3b"] .fenster { opacity: .12; }
.buehne[data-szene="s3b"] .beleg { opacity: .35; left: 4%; top: 18%; width: 15%; height: 50%; }
.buehne[data-szene="s3b"] .daten { left: 22%; top: 12%; width: 40%; }
.buehne[data-szene="s3b"] .xml { opacity: 1; left: 22%; width: 40%; }
.buehne:is([data-szene="s3b"], [data-szene="s4"], [data-szene="s4b"]) .formate { opacity: 1; }
.buehne:is([data-szene="s3b"], [data-szene="s4"], [data-szene="s4b"]) .datei { opacity: 1; transform: none; }
.datei:nth-child(2) { transition-delay: .5s; }
/* 4: Ergebnis */
.buehne:is([data-szene="s4"], [data-szene="s4b"]) .ergebnis { opacity: 1; transform: none; left: 30%; top: 14%; width: 24%; }
.buehne:is([data-szene="s4"], [data-szene="s4b"]) .formate { right: 10%; top: 30%; }
/* 4b: KOSTENLOS */
.buehne[data-szene="s4b"] .ergebnis, .buehne[data-szene="s4b"] .formate { opacity: .35; }
.buehne[data-szene="s4b"] .kostenlos { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(1); }
/* 5: Schluss */
.buehne[data-szene="s5"] .logo { opacity: 1; top: 12%; transform: translateX(-50%) scale(1.6); }
.buehne[data-szene="s5"] .schluss { opacity: 1; transform: none; }

/* Pause: laufende Animationen anhalten */
.werbung.pausiert .buehne *, .werbung.pausiert .glanz { animation-play-state: paused; }

.untertitel { margin: 0; min-height: 2.8em; text-align: center; font-size: clamp(18px, 2.4cqw, 26px); font-weight: 600; }
.steuerung { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.verlauf { flex: 1 1 160px; height: 8px; border-radius: 4px; background: #1a2c5a; overflow: hidden; }
.verlauf span { display: block; height: 100%; width: 0; background: var(--akzent); }
.statisch { display: none; }

/* Smartphone: Hochformat, Elemente untereinander */
@container werbung (max-width: 520px) {
  .buehne { aspect-ratio: 4 / 5; }
  .beleg { left: 25%; top: 10%; width: 50%; height: 70%; }
  .beleg-kopf { font-size: 4cqw; } .pdf-marke { font-size: 2.6cqw; } .zeilen i { height: 1.1cqw; } .beleg-frage { width: 9cqw; height: 9cqw; font-size: 5cqw; }
  .fenster { left: 4%; top: 30%; width: 92%; } .fenster-kopf { font-size: 2.6cqw; } .fenster-kopf img { width: 3.4cqw; }
  .buehne[data-szene="s2"] .beleg { left: 8%; top: 43%; width: 26%; height: 30%; }
  .daten { left: 6%; top: 36%; width: 88%; gap: 1.8cqw; } .daten li { font-size: 3.4cqw; padding: 1.8cqw 3cqw; }
  .buehne[data-szene="s3"] .beleg { left: 36%; top: 13%; width: 28%; height: 19%; }
  .buehne[data-szene="s3b"] .beleg { opacity: 0; }
  .buehne[data-szene="s3b"] .daten { left: 6%; top: 13%; width: 88%; }
  .buehne[data-szene="s3b"] .daten li { font-size: 2.8cqw; padding: 1.2cqw 2.4cqw; }
  .xml, .buehne[data-szene="s3b"] .xml { display: none; }
  .formate { left: 10%; right: auto; top: 66%; width: 80%; gap: 3cqw; } .datei { font-size: 3.8cqw; padding: 2.4cqw 3cqw; } .datei svg { width: 7cqw; height: 7cqw; }
  .ergebnis, .buehne:is([data-szene="s4"], [data-szene="s4b"]) .ergebnis { left: 28%; top: 12%; width: 44%; }
  .buehne:is([data-szene="s4"], [data-szene="s4b"]) .formate { left: 10%; top: 68%; }
  .kostenlos { font-size: 11cqw; }
  .logo { font-size: 6cqw; } .logo img { width: 11cqw; }
  .buehne[data-szene="s5"] .logo { top: 14%; transform: translateX(-50%) scale(1.3); }
  .schluss { top: 48%; } .schluss-text { font-size: 7cqw; } .schluss-zusatz { font-size: 4.2cqw; } .pfeil { width: 9cqw; height: 9cqw; }
  .untertitel { font-size: 18px; }
}

/* Reduzierte Bewegung oder ohne JavaScript: statische Darstellung */
.werbung.ohne-animation .buehne, .werbung.ohne-animation .steuerung, .werbung.ohne-animation .untertitel { display: none; }
.werbung.ohne-animation .statisch { display: flex; gap: 20px; align-items: flex-start; padding: 24px; border-radius: 20px; border: 1px solid var(--linie);
  background: radial-gradient(120% 90% at 50% 0%, #10275a 0%, #08142f 55%, #050b1c 100%); }
.statisch ul { margin: 0 0 10px; padding-left: 20px; }
.statisch p { margin: 0; }
@media (max-width: 560px) { .werbung.ohne-animation .statisch { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .glanz, .pfeil { animation: none; } html { scroll-behavior: auto; } }

/* Rechtstexte */
.text h1 { font-size: 28px; }
.text h2 { font-size: 20px; margin-top: 26px; }
.text p, .text li { color: var(--mittel); }
.text address { font-style: normal; }
.text dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; }
.text dt { color: var(--leise); }
.text dd { margin: 0; }
@media (max-width: 560px) { .text dl { grid-template-columns: 1fr; } .text dd { margin-bottom: 8px; } }

/* Beschreibung (Startseite) */
.beschreibung h2, .funktionen h2 { font-size: 26px; }
.einleitung { margin: 0 0 12px; color: var(--mittel); font-size: 18px; max-width: 900px; }
.einleitung b { color: #fff; }
.kartenraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.funktion { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 16px; padding: 18px; }
.funktion svg { width: 32px; height: 32px; fill: none; stroke: var(--akzent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.funktion h3 { margin: 8px 0 6px; font-size: 18px; }
.funktion p { margin: 0; color: var(--mittel); font-size: 15px; }
.zweispaltig { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.text-kasten { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 16px; padding: 18px 22px; }
.text-kasten h2 { font-size: 20px; }
.text-kasten ul { margin: 0; padding-left: 20px; color: var(--mittel); display: flex; flex-direction: column; gap: 6px; }
.dienst h2 { font-size: 20px; }
.smartscreen { max-width: 640px; text-align: left; font-size: 15px; color: var(--leise); }
.smartscreen summary { cursor: pointer; text-align: center; color: var(--akzent-text); }
.smartscreen p { margin: 8px 0 0; }

/* Statische Darstellung darf die volle Breite nutzen */
.werbung.ohne-animation { width: 100%; }

/* ---------- Einleitung (Seitentitel) und häufige Fragen ---------- */
.intro { text-align: center; margin-bottom: -12px; }
.intro h1 { margin: 0; font-size: clamp(26px, 4.2vw, 40px); line-height: 1.2; }
.intro p { margin: 8px auto 0; max-width: 900px; color: var(--mittel); font-size: 18px; }
.intro b { color: #fff; }
.fragen h2 { font-size: 26px; margin: 0 0 12px; }
.fragen details { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 0 18px; margin-bottom: 8px; }
.fragen summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.fragen details[open] summary { color: var(--akzent-text); }
.fragen details p { margin: 0 0 16px; color: var(--mittel); }
@media (max-width: 480px) { .kopf nav { gap: 6px 14px; font-size: 15px; } .intro h1 { font-size: 25px; } }

/* ---------- Supportbereich (Ticketsystem) ---------- */
.support { display: flex; flex-direction: column; gap: 22px; }
.unternav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 10px 16px; border: 1px solid var(--linie); border-radius: 12px; background: var(--kopf); font-size: 15px; }
.unternav a { color: var(--mittel); text-decoration: none; font-weight: 600; }
.unternav a:hover { color: #fff; }
.unternav .leise { margin-left: auto; }
.inline { display: inline; margin: 0; }
.textknopf { background: none; border: 0; padding: 0; color: var(--akzent-text); font: inherit; font-size: 15px; cursor: pointer; text-decoration: underline; }
.klein { font-size: 14px; }
.text.schmal { max-width: 720px; }
.support-raster { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
@media (max-width: 860px) { .support-raster { grid-template-columns: 1fr; } }
.schritte { margin: 0 0 4px; padding-left: 22px; color: var(--mittel); display: flex; flex-direction: column; gap: 6px; }
.kasten { border-radius: 12px; padding: 12px 16px; border: 1px solid var(--linie); background: var(--flaeche-hoch); }
.kasten p, .kasten ul { margin: 0; }
.kasten ul { padding-left: 20px; margin-top: 6px; }
.kasten--ok { border-color: #1d6a4c; background: #0a2a20; color: #c9f5e2; }
.kasten--warn { border-color: #6a4e12; background: #3a2a06; color: #ffe2a8; }
.kasten--fehler { border-color: #8a2b2b; background: #3a0d0d; color: #ffd0d0; }
.kasten--info { border-color: var(--linie-bedien); background: var(--flaeche-hoch); color: var(--text); }
.hinweistext-klein { font-size: 15px; color: var(--ok); margin: 6px 0; }
.formular { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; align-items: start; }
.formular > :not(.feld), .formular .feld--breit, .formular-gruppe { grid-column: 1 / -1; }
.formular-gruppe { border: 1px solid var(--linie); border-radius: 12px; padding: 14px 16px 16px; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 18px; }
.formular-gruppe legend { padding: 0 6px; font-weight: 700; }
.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feld label, .beschriftung { font-weight: 600; color: var(--mittel); font-size: 15px; }
.feld input:not([type="radio"]):not([type="checkbox"]), .feld select, .feld textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--linie-bedien); background: var(--grund); color: var(--text); font: inherit; font-size: 16px; }
.feld textarea { resize: vertical; line-height: 1.5; }
.feld input[type="file"] { padding: 9px; }
.feld input:focus, .feld select:focus, .feld textarea:focus { border-color: var(--akzent); outline: 2px solid var(--akzent); outline-offset: 0; }
.feldhilfe { margin: 0; font-size: 14px; color: var(--leise); }
.pflicht { color: var(--warn); }
.wahlreihe { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.wahl { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.wahl input { width: 20px; height: 20px; accent-color: var(--akzent); }
.falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.knopf--primaer { background: var(--primaer); border-color: var(--primaer); }
.knopf--primaer:hover { background: var(--primaer-hover); }
.knopf--breit { width: 100%; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; }
.kurzinfo { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 8px 0 14px; }
.kurzinfo dt { color: var(--leise); }
.kurzinfo dd { margin: 0; overflow-wrap: anywhere; }
.plakette { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; border: 1px solid var(--linie-bedien); background: var(--flaeche-hoch); color: var(--text); white-space: nowrap; }
.plakette--info { border-color: var(--akzent); color: var(--akzent-text); }
.plakette--warn { border-color: #a07a1e; color: var(--warn); }
.plakette--neutral { color: var(--leise); }
.plakette--neu { border-color: var(--ok); color: var(--ok); }
.plakette--intern { border-color: #8a5bd6; color: #d3bdfa; background: #1d1236; }
.ticketkopf h1 { margin-bottom: 4px; }
.ticketkopf p { margin: 6px 0; }
.naechster { margin-top: 10px; }
.nachrichtenliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.nachricht { border: 1px solid var(--linie); border-radius: 12px; padding: 12px 16px; background: var(--grund); }
.nachricht--anbieter { border-left: 4px solid var(--akzent); }
.nachricht--kunde { border-left: 4px solid var(--ok); }
.nachricht--system { border-style: dashed; color: var(--leise); }
.nachricht--intern { border: 1px dashed #8a5bd6; background: #140c26; }
.nachricht-kopf { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin-bottom: 6px; }
.nachricht-kopf .leise { margin-left: auto; }
.nachricht-text { overflow-wrap: anywhere; color: var(--mittel); }
.anhaenge { margin: 8px 0 0; padding-left: 20px; font-size: 15px; }
.zweispaltig-klein { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 18px; }
.tabellenrahmen { overflow-x: auto; border: 1px solid var(--linie); border-radius: 12px; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabelle th, .tabelle td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linie); }
.tabelle th { color: var(--leise); font-weight: 600; background: var(--kopf); }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle tr.ungelesen td { background: #0c2340; font-weight: 600; }
.filter { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-bottom: 8px; }
.filter .feld { min-width: 150px; flex: 1 1 150px; }
.filter .feld:first-child { flex: 2 1 260px; }
.inline-formular { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 10px 0; }
.code { white-space: pre-wrap; overflow-wrap: anywhere; padding: 10px 12px; border-radius: 10px; background: var(--grund); border: 1px solid var(--linie); font-family: Consolas, ui-monospace, monospace; }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 18px 0 8px; }
.kennzahl { background: var(--kopf); border: 1px solid var(--linie); border-radius: 12px; padding: 14px 16px; }
.kennzahl b { display: block; font-size: 30px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kennzahl span { color: var(--leise); font-size: 14px; }
.tabelle.zaehler .zahl { width: 90px; text-align: right; font-variant-numeric: tabular-nums; }
.tabelle.zaehler .balken { width: 45%; vertical-align: middle; }
.tabelle.zaehler meter { width: 100%; height: 12px; }
.pruefliste { list-style: none; padding: 0; }
.pruefliste .ok { color: var(--ok); }
.pruefliste .warn { color: var(--warn); }
.fehlertext { color: #ffb3b3; }
.ereignisse { margin-top: 18px; color: var(--leise); font-size: 14px; }
.support-kasten { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.support-kasten p { margin: 0; color: var(--mittel); max-width: 720px; }
@media (max-width: 420px) { .kopf nav { gap: 4px 12px; font-size: 14px; } }

/* Formularfelder zeilenweise ausrichten: Beschriftung, Feld und Hinweis
   liegen in jeder Zeile auf gleicher Höhe, auch wenn eine Beschriftung umbricht. */
@supports (grid-template-rows: subgrid) {
  .formular .feld, .formular-gruppe .feld { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 6px; align-content: start; }
  .formular .feld > label, .formular-gruppe .feld > label, .formular-gruppe .feld > .beschriftung { align-self: end; }
}
/* Vom Browser automatisch ausgefüllte Felder nicht hell einfärben */
.feld input:-webkit-autofill, .feld input:-webkit-autofill:hover, .feld input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 1000px var(--grund) inset; caret-color: var(--text); transition: background-color 9999s; }

/* Kostenlos oder Pro (E35) */
.pro-kasten { margin: 18px 0; }
.pro-kasten p { margin: 8px 0; }

/* Unauffälliger Zugang zur Verwaltung (Startseite, Fußzeile) */
.fuss-verwaltung { display: inline-flex; vertical-align: middle; margin-left: 10px; opacity: .45; }
.fuss-verwaltung svg { width: 14px; height: 14px; fill: none; stroke: #8a94a8; stroke-width: 2; stroke-linecap: round; }
.fuss-verwaltung:hover, .fuss-verwaltung:focus-visible { opacity: .9; }

/* Verwaltung: Version veröffentlichen – Felder untereinander */
.formular-einspaltig { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.formular-einspaltig .feld { display: flex; flex-direction: column; gap: 6px; }
.formular-einspaltig .feld p { margin: 0; }
/* Verwaltung: Upload in Stücken */
.upload-fortschritt { margin: 8px 0 4px; }
.upload-fortschritt progress { width: 100%; height: 12px; accent-color: #4f8cff; }
.upload-fortschritt .upload-fehler { color: #ffb4b4; font-weight: 600; }

/* Custom – individuelle Lösungen */
.custom-bild { margin: 0; }
.custom-bild img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--linie); }
.custom-bild figcaption { margin-top: 6px; text-align: center; }
.referenzen { display: flex; flex-direction: column; gap: 14px; }
.referenz { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 16px; padding: 20px 22px; }
.referenz-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.referenz-kopf h3 { margin: 0; font-size: 22px; }
.referenz-loesung { margin: 6px 0 10px; color: var(--akzent-text); font-weight: 600; }
.referenz p { color: var(--mittel); }
.referenz ul { margin: 0 0 16px; padding-left: 20px; color: var(--mittel); display: flex; flex-direction: column; gap: 4px; }

/* ---------- „Warum aus einer PDF nicht automatisch eine korrekte E-Rechnung wird“ ---------- */
.grenzen { background: linear-gradient(180deg, var(--flaeche) 0%, var(--grund) 100%); border: 1px solid var(--linie); border-radius: 20px; padding: 26px 22px 24px; scroll-margin-top: 24px; }
.grenzen-kopf { text-align: center; max-width: 860px; margin: 0 auto 20px; }
.grenzen-kopf h2 { font-size: clamp(22px, 3vw, 28px); margin: 14px 0 8px; }
.grenzen-lead { margin: 0; color: var(--mittel); font-size: 18px; }
.grenzen-lead b { color: #fff; }

/* PDF → ? → E-Rechnung */
.weg { display: inline-flex; align-items: center; gap: 12px; }
.weg > span:not(.weg-linie) { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; }
.weg svg { width: 40px; height: 40px; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.weg-pdf svg { stroke: #ff8a8a; } .weg-pdf b { color: #ffb3b3; }
.weg-xml svg { stroke: var(--akzent); } .weg-xml b { color: var(--akzent-text); }
.weg-linie { position: relative; width: clamp(90px, 18vw, 180px); height: 4px; border-radius: 2px; background: #1a2c5a; margin-bottom: 18px; }
.weg-linie i { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 2px; background: linear-gradient(90deg, #ff8a8a, var(--warn), var(--akzent)); }
.weg-linie em { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; color: #3a2a06; background: var(--warn); box-shadow: 0 0 0 5px rgba(255, 200, 92, .2); }

.grenzen-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.grenzen-liste li { display: flex; gap: 14px; align-items: flex-start; background: var(--flaeche); border: 1px solid var(--linie); border-left: 4px solid var(--warn); border-radius: 14px; padding: 14px 16px; }
.grenzen-liste li:last-child { grid-column: 1 / -1; border-left-color: var(--akzent); }
.grenze-nr { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--warn); border: 2px solid currentColor; }
.grenzen-liste li:last-child .grenze-nr { color: var(--akzent); }
.grenzen-liste h3 { margin: 2px 0 4px; font-size: 17px; }
.grenzen-liste p { margin: 0; color: var(--mittel); font-size: 15px; }

.grenzen-loesung { margin-top: 20px; text-align: center; }
.grenzen-loesung > p { margin: 0 0 12px; font-weight: 600; }
.kette { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: kette; }
.kette li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-radius: 12px; border: 1px solid var(--akzent); background: linear-gradient(135deg, #0f2350, #0b1630); box-shadow: 0 0 18px rgba(56, 198, 244, .18); }
.kette li b { color: #fff; font-size: 17px; }
.kette li span { color: var(--leise); font-size: 14px; line-height: 1.35; }
.kette li:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--akzent); border-right: 2px solid var(--akzent); transform: translateY(-50%) rotate(45deg); }
@media (max-width: 700px) {
  .kette { grid-template-columns: 1fr 1fr; }
  .kette li:nth-child(2)::after { display: none; }
}
@media (max-width: 420px) { .grenzen { padding: 20px 14px; } .grenzen-liste { grid-template-columns: 1fr; } }

/* Animation: nur wenn JavaScript läuft (Klasse „wartet“), sonst alles sofort sichtbar */
.grenzen.wartet .weg-linie i { width: 0; }
.grenzen.wartet .weg-linie em { transform: scale(0); }
.grenzen.wartet .weg-xml { opacity: .25; }
.grenzen.wartet .grenzen-liste li { opacity: 0; transform: translateY(18px); }
.grenzen.wartet .kette li { opacity: 0; transform: scale(.9); }
.grenzen .weg-linie i { transition: width 1.2s cubic-bezier(.2, .7, .2, 1); }
.grenzen .weg-linie em { transition: transform .5s cubic-bezier(.3, 1.6, .5, 1) .5s; }
.grenzen .weg-xml { transition: opacity .6s ease 1s; }
.grenzen .grenzen-liste li { transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.grenzen .kette li { transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.grenzen-liste li:nth-child(1) { transition-delay: .6s; }  .grenzen-liste li:nth-child(2) { transition-delay: .75s; }
.grenzen-liste li:nth-child(3) { transition-delay: .9s; }  .grenzen-liste li:nth-child(4) { transition-delay: 1.05s; }
.grenzen-liste li:nth-child(5) { transition-delay: 1.2s; } .grenzen-liste li:nth-child(6) { transition-delay: 1.35s; }
.grenzen-liste li:nth-child(7) { transition-delay: 1.5s; }
.kette li:nth-child(1) { transition-delay: 1.9s; } .kette li:nth-child(2) { transition-delay: 2.15s; }
.kette li:nth-child(3) { transition-delay: 2.4s; } .kette li:nth-child(4) { transition-delay: 2.65s; }
.grenzen.sichtbar .weg-linie em { animation: frage 2.4s ease-in-out 1.2s 2; }
@keyframes frage { 50% { box-shadow: 0 0 0 10px rgba(255, 200, 92, 0); } }
.grenzen.sichtbar .kette li { animation: kette 1s ease 3.2s; }
.grenzen.sichtbar .kette li:nth-child(2) { animation-delay: 3.45s; } .grenzen.sichtbar .kette li:nth-child(3) { animation-delay: 3.7s; } .grenzen.sichtbar .kette li:nth-child(4) { animation-delay: 3.95s; }
@keyframes kette { 40% { box-shadow: 0 0 28px rgba(56, 198, 244, .55); border-color: #9be6ff; } }
@media (prefers-reduced-motion: reduce) {
  .grenzen * { transition: none !important; animation: none !important; }
}
.ce-zeichen { vertical-align: -1px; }
