/* SmartN-1: gemeinsames Aussehen aller Seiten. Dunkel ist Standard, Hell per Umschalter (html[data-theme="light"]).
   Schriften wie die bisherige smartn-1.com: Figtree für Überschriften, Montserrat für Text, Orbitron für technische Etiketten,
   IBM Plex Mono für Messwerte. Phasenfarben L1/L2/L3 als Kennzeichen. */
:root {
  --bg: #030505; --flaeche: #0C1311; --flaeche-2: #111A18; --tief: #070C0B; --linie: #1E2A28; --linie-stark: #2E403C;
  --text: #EEF3F0; --mittel: #C9D3CF; --leise: #8B9893;
  --knopf: #31FF3F; --knopf-hover: #87FA70; --knopf-text: #020303;
  --akzent: #87FA70; --netz: #39F6CA; --haupt: #FF8A1F; --warn: #FF5A4E; --gelb: #FFC21A;
  --l1: #87FA70; --l2: #F59E0B; --l3: #39F6CA; --nl: #6E7C78;
  --glas: rgba(12, 19, 17, .72); --kopf-bg: rgba(3, 5, 5, .82);
  --schatten: 0 40px 120px rgba(0, 0, 0, .6); --schein: rgba(57, 246, 202, .16);
  --band: radial-gradient(120% 140% at 0% 0%, #10261E, #0A1110 60%);
  --verlauf-wort: linear-gradient(90deg, #87FA70, #39F6CA);
  color-scheme: dark;
  --geraet: #0B100F;
  --geraet-rand: #26302E;
  --f-anzeige: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-tech: "Orbitron", "Figtree", sans-serif;
  --f-zahl: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --rand: max(16px, env(safe-area-inset-left, 0px));
  --rand-r: max(16px, env(safe-area-inset-right, 0px));
  --breite: 1240px;
  --grund: 17px;
}
:root[data-theme="light"] {
  --bg: #F6FAF7;
  --flaeche: #FFFFFF;
  --flaeche-2: #EFF5F1;
  --tief: #EAF1ED;
  --linie: #DAE4DF;
  --linie-stark: #BFCFC7;
  --text: #0A1411;
  --mittel: #33423C;
  --leise: #5B6A64;
  --knopf: #7CEE5C;
  --knopf-hover: #98F47E;
  --knopf-text: #052010;
  --akzent: #0B7A27;
  --netz: #08786A;
  --haupt: #A64F00;
  --warn: #B42A20;
  --gelb: #8A6300;
  --l1: #4DC93B;
  --l2: #E3920A;
  --l3: #16B99A;
  --nl: #8C9994;
  --glas: rgba(255, 255, 255, .78);
  --kopf-bg: rgba(246, 250, 247, .86);
  --schatten: 0 24px 70px rgba(18, 52, 38, .12);
  --schein: rgba(124, 238, 92, .22);
  --band: radial-gradient(120% 140% at 0% 0%, #E3F6E7, #F6FAF7 62%);
  --verlauf-wort: linear-gradient(90deg, #0B7A27, #08786A);  /* großer Text: mindestens 3:1 auf hellem Grund */
  color-scheme: light;
}
/* Barrierefreiheit: Schrift größer, hoher Kontrast, Links unterstreichen, Bewegung aus */
:root[data-schrift="115"] { --grund: 19.5px; }
:root[data-schrift="135"] { --grund: 23px; }
:root[data-kontrast="hoch"] { --mittel: var(--text); --leise: var(--text); --linie: var(--linie-stark); }
:root[data-kontrast="hoch"]:not([data-theme="light"]) { --text: #FFFFFF; --linie-stark: #6F8A82; }
:root[data-links="unterstrichen"] main a, :root[data-links="unterstrichen"] footer a { text-decoration: underline !important; text-underline-offset: 3px; }

@font-face { font-family: "Figtree"; font-weight: 400 900; font-display: swap; src: url(fonts/Figtree_var.woff2?v=8330490a01) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400 700; font-display: swap; src: url(fonts/Montserrat_var.woff2?v=6438d7b8ea) format("woff2"); }
@font-face { font-family: "Orbitron"; font-weight: 500 800; font-display: swap; src: url(fonts/Orbitron_var.woff2?v=967b3909a7) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(fonts/IBMPlexMono_400Regular.woff2?v=8d6f171438) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(fonts/IBMPlexMono_500Medium.woff2?v=e53e850720) format("woff2"); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--grund)/1.65 var(--f-text); overflow-x: clip; transition: background .3s ease, color .3s ease; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
img, video, canvas, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--netz); outline-offset: 3px; border-radius: 6px; }
.innen { width: 100%; max-width: calc(var(--breite) + 32px); margin-inline: auto; padding-left: var(--rand); padding-right: var(--rand-r); }
.schmal { max-width: calc(860px + 32px); }
.marke { font: 600 11.5px/1.4 var(--f-tech); letter-spacing: .16em; text-transform: uppercase; color: var(--leise); margin: 0; }
.marke.gruen { color: var(--akzent); }
h1, h2, h3 { font-family: var(--f-anzeige); font-weight: 900; margin: 0; text-wrap: balance; letter-spacing: -.035em; }
h1 { font-size: clamp(42px, 7vw, 100px); line-height: .95; }
h2 { font-size: clamp(34px, 4.6vw, 62px); line-height: 1; }
h3 { font-size: 21px; line-height: 1.22; font-weight: 800; letter-spacing: -.015em; }
p { margin: 0; }
.leise { color: var(--leise); }
.mittel { color: var(--mittel); }
.zahl { font-family: var(--f-zahl); font-variant-numeric: tabular-nums; }
.wort-verlauf { background: var(--verlauf-wort); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gross-text { font-size: clamp(17px, 1.6vw, 20px); color: var(--mittel); max-width: 36em; }
.kopf-block { display: grid; gap: 18px; max-width: 780px; margin-bottom: clamp(32px, 5vw, 64px); }
.abschnitt { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.abschnitt.rand-oben { border-top: 1px solid var(--linie); }
.quelle { font-size: 13px; color: var(--leise); line-height: 1.55; }
.quelle a { color: var(--leise); }
.versteckt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprunglink { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none; }
.sprunglink:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 14px;
  font: 700 15.5px/1 var(--f-text); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.knopf:hover { transform: translateY(-1px); }
.knopf.voll { background: var(--knopf); color: var(--knopf-text); box-shadow: 0 8px 24px var(--schein); }
.knopf.voll:hover { background: var(--knopf-hover); }
.knopf.zweit { border-color: var(--linie-stark); color: var(--text); background: var(--glas); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.knopf.zweit:hover { border-color: var(--akzent); }
.knopf.klein { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.knopf svg { width: 18px; height: 18px; flex: none; }
.knoepfe-zeile { display: flex; flex-wrap: wrap; gap: 12px; }
.rund-knopf { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--linie-stark); background: var(--flaeche); color: var(--text); cursor: pointer; }
.rund-knopf:hover { border-color: var(--akzent); }
.rund-knopf svg { width: 18px; height: 18px; }
.rund-knopf .sonne { display: none; }
:root:not([data-theme="light"]) .rund-knopf .mond { display: none; }
:root:not([data-theme="light"]) .rund-knopf .sonne { display: block; }

/* Status-Kennzeichen: gibt es / bald / kommt */
.status { display: inline-flex; align-items: center; gap: 7px; font: 600 11px/1 var(--f-tech); letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--linie); color: var(--leise); white-space: nowrap; background: var(--flaeche); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.gibt-es { color: var(--akzent); border-color: color-mix(in srgb, var(--akzent) 40%, transparent); }
.status.bald { color: var(--haupt); border-color: color-mix(in srgb, var(--haupt) 40%, transparent); }
.status.kommt { color: var(--netz); border-color: color-mix(in srgb, var(--netz) 40%, transparent); }

/* Kopf */
.kopf { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--kopf-bg); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--linie); }
.kopf .innen { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.wortmarke { font: 900 23px/1 var(--f-anzeige); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; color: var(--text); }
.wortmarke span { color: var(--knopf); -webkit-text-stroke: .6px color-mix(in srgb, var(--akzent) 50%, transparent); }
:root[data-theme="light"] .wortmarke span { color: var(--akzent); -webkit-text-stroke: 0; }
.kopf nav { display: flex; gap: 24px; margin-left: auto; }
.kopf nav a { text-decoration: none; color: var(--mittel); font-size: 14.5px; font-weight: 500; }
.kopf nav a:hover, .kopf nav a[aria-current] { color: var(--text); }
.kopf nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--knopf); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.kopf .knoepfe { display: flex; gap: 10px; align-items: center; }
.menue-knopf { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--linie-stark); background: var(--flaeche); cursor: pointer; place-content: center; gap: 5px; padding: 0 11px; }
.menue-knopf i { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s ease, opacity .2s ease; }
.menue-knopf[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menue-knopf[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menue-knopf[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.handy-menue { position: fixed; z-index: 19; inset: calc(env(safe-area-inset-top, 0px) + 66px) 0 0 0; background: var(--bg); padding: 22px var(--rand-r) calc(28px + env(safe-area-inset-bottom, 0px)) var(--rand);
  display: grid; align-content: start; gap: 22px; overflow-y: auto; animation: menue-rein .25s ease; }
.handy-menue .handy-links { display: grid; }
.handy-menue .handy-links a { font: 800 30px/1.1 var(--f-anzeige); letter-spacing: -.02em; text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.handy-menue .knopf { justify-self: stretch; min-height: 54px; font-size: 17px; }
@keyframes menue-rein { from { opacity: 0; transform: translateY(-8px); } }
body.menue-offen { overflow: hidden; }
@media (max-width: 1080px) { .kopf nav { display: none; } .kopf .knoepfe { margin-left: auto; } .menue-knopf { display: grid; } }
@media (max-width: 560px) { .kopf .zweit { display: none; } .kopf .innen { gap: 8px; } .kopf .knopf.voll { padding: 0 12px; } .kopf .knopf.voll svg { display: none; } }
@media (min-width: 1081px) { .handy-menue { display: none !important; } }

/* Seitenleiste rechts: Nach oben, Hell/Dunkel, Darstellung (auch am Handy rechts) */
.seiten-leiste { position: fixed; z-index: 25; right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: grid; justify-items: end; gap: 10px; }
.leiste-knoepfe { display: grid; gap: 8px; padding: 6px; border-radius: 999px; background: var(--glas); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--linie); box-shadow: var(--schatten); }
.leiste-knoepfe .rund-knopf { width: 42px; height: 42px; font: 800 15px/1 var(--f-anzeige); }
.nach-oben { animation: menue-rein .25s ease; }
.hilfe-feld { width: min(300px, calc(100vw - 32px)); display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten); }
.hilfe-feld h2 { font-size: 16px; letter-spacing: 0; }
.hilfe-feld .reihe { display: flex; gap: 6px; flex-wrap: wrap; }
.hilfe-feld button { flex: 1; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--linie-stark); background: var(--flaeche); color: var(--text); font: 600 13px/1.2 var(--f-text); cursor: pointer; }
.hilfe-feld button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.hilfe-feld a { font-size: 13px; color: var(--leise); }
@media (max-width: 560px) { .leiste-knoepfe .rund-knopf { width: 38px; height: 38px; } }
/* Touch-Breiten: Leiste weicht beim Herunterscrollen und beim Tippen aus, damit sie keine Knöpfe verdeckt */
.seiten-leiste { transition: transform .25s ease, opacity .25s ease; }
.seiten-leiste.weg { transform: translateX(calc(100% + 24px)); opacity: 0; pointer-events: none; }

/* Funktionsseiten: Kopf mit echter App, drei Karten, Beispiel */
.funktion-held { position: relative; padding-block: clamp(28px, 5vw, 64px) clamp(36px, 6vw, 80px); border-bottom: 1px solid var(--linie);
  background: radial-gradient(50% 60% at 82% 30%, var(--schein), transparent 70%); }
.held-raster { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.held-text { display: grid; gap: 20px; min-width: 0; }
.held-text .pfad { margin-bottom: 0; }
.held-text h1 { font-size: clamp(38px, 5.2vw, 72px); overflow-wrap: break-word; hyphens: auto; }
.held-marke { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.held-geraet { display: grid; justify-items: center; gap: 12px; }
.held-geraet .live-geraet { width: min(300px, 70vw); }
.geraet-notiz { font: 500 12px/1 var(--f-zahl); letter-spacing: .08em; text-transform: uppercase; color: var(--leise); }
.held-anschluss { width: 100%; max-width: 520px; border-radius: 20px; border: 1px solid var(--linie); }
.drei-karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(28px, 4vw, 48px); }
.karte.gross { padding: 26px 24px 28px; gap: 12px; }
.karte.gross h2 { font-size: 24px; letter-spacing: -.02em; }
.karte.gross p, .karte.gross li { color: var(--mittel); font-size: calc(var(--grund) - .5px); }
.karten-zahl { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 17px/1 var(--f-anzeige); background: var(--knopf); color: var(--knopf-text); }
.haken { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.haken li { display: flex; gap: 10px; align-items: baseline; }
.haken li::before { content: "✓"; color: var(--akzent); font-weight: 800; }
.beispiel-band { margin-block: 14px clamp(36px, 5vw, 64px); padding: clamp(22px, 3vw, 34px); border-radius: 22px; background: var(--band); border: 1px solid var(--linie); display: grid; gap: 10px; }
.beispiel-band p:not(.marke) { font: 600 clamp(18px, 1.8vw, 23px)/1.45 var(--f-anzeige); max-width: 46em; }
@media (max-width: 900px) { .held-raster { grid-template-columns: minmax(0, 1fr); } .held-geraet { order: 2; } .drei-karten { grid-template-columns: minmax(0, 1fr); } }

/* Fuß */
.fuss { padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--linie); background: var(--flaeche-2); }
.fuss .innen { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.fuss p, .fuss a { font-size: 14.5px; color: var(--mittel); }
.fuss a { text-decoration: none; display: block; padding: 4px 0; }
.fuss a:hover { color: var(--text); text-decoration: underline; }
.fuss .wortmarke { font-size: 22px; margin-bottom: 12px; display: inline-block; }
.fuss .marke { margin-bottom: 8px; }
.fuss-knoepfe { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid var(--linie); }
.fuss-knoepfe a { display: inline-flex; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--linie-stark); background: var(--flaeche); font-weight: 600; font-size: 13.5px; color: var(--text); }
.fuss-knoepfe a:hover { border-color: var(--akzent); text-decoration: none; }
.fuss-knoepfe a.wichtig { border-color: var(--text); }
.fuss-unten { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 800px) { .fuss .innen { grid-template-columns: 1fr 1fr; } .fuss .innen > :first-child { grid-column: 1 / -1; } }

/* Fragen */
details.frage { border-bottom: 1px solid var(--linie); }
details.frage:first-of-type { border-top: 1px solid var(--linie); }
details.frage summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 700 17.5px/1.4 var(--f-anzeige); }
details.frage summary::-webkit-details-marker { display: none; }
details.frage summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 26px/1 var(--f-zahl); color: var(--leise); transition: transform .2s; }
details.frage[open] summary::after { transform: rotate(45deg); }
details.frage p { padding: 0 0 22px; color: var(--mittel); max-width: 42em; }
.fragen-raster { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); }
@media (max-width: 900px) { .fragen-raster { grid-template-columns: 1fr; } }

/* Karten */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.karte { display: grid; align-content: start; gap: 10px; padding: 22px 20px 24px; border-radius: 18px; background: var(--flaeche); border: 1px solid var(--linie); min-width: 0; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
a.karte:hover { border-color: var(--akzent); transform: translateY(-2px); box-shadow: var(--schatten); }
.karte p { color: var(--mittel); font-size: 15.5px; }
.karte .kopfzeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Unterseiten */
.seitenkopf { padding-block: clamp(40px, 7vw, 96px) clamp(28px, 4vw, 48px); }
.seitenkopf h1 { font-size: clamp(38px, 6vw, 76px); }
.pfad { display: flex; flex-wrap: wrap; gap: 8px; font: 500 13px/1.4 var(--f-zahl); color: var(--leise); margin-bottom: 22px; }
.pfad a { text-decoration: none; color: var(--leise); }
.pfad a:hover { color: var(--text); }
.inhalt { display: grid; gap: 44px; padding-bottom: clamp(56px, 8vw, 110px); }
.inhalt section { display: grid; gap: 14px; min-width: 0; }
.inhalt h1, .inhalt h2, .inhalt h3, .inhalt p, .inhalt li, .seitenkopf h1 { overflow-wrap: break-word; hyphens: auto; }
.inhalt h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.12; letter-spacing: -.02em; }
.inhalt h3 { font-size: 19px; }
.inhalt p, .inhalt li { color: var(--mittel); font-size: calc(var(--grund) + 0.5px); max-width: 42em; }
.inhalt ul, .inhalt ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.inhalt a { color: var(--akzent); }
.recht p, .recht li { font-size: var(--grund); }
.recht h2 { font-size: clamp(21px, 2.4vw, 26px); }
.recht .ziffer { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 10px; }
.recht .ziffer b { font-family: var(--f-zahl); font-weight: 500; color: var(--leise); }
.beispiel { padding: 22px 24px; border-radius: 18px; background: var(--band); border: 1px solid var(--linie); }
.beispiel p { color: var(--text); }
.gruppe { display: grid; gap: 18px; padding-block: 34px; border-top: 1px solid var(--linie); }
.gruppe-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.funktion-voll { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px 26px; padding: 26px 0; border-bottom: 1px solid var(--linie); }
.funktion-voll .titel { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.funktion-voll h3 a { text-decoration: none; }
.funktion-voll h3 a:hover { color: var(--akzent); }
.funktion-voll h4 { margin: 0 0 6px; font: 600 11px/1.4 var(--f-tech); letter-spacing: .12em; text-transform: uppercase; color: var(--leise); }
.funktion-voll p { color: var(--mittel); font-size: 15.5px; }
.funktion-voll a { color: var(--akzent); }
@media (max-width: 860px) { .funktion-voll { grid-template-columns: 1fr; } }
.sprung { display: flex; flex-wrap: wrap; gap: 8px; }
.sprung a { font: 600 14px/1 var(--f-text); text-decoration: none; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--linie-stark); color: var(--mittel); background: var(--flaeche); }
.sprung a:hover { border-color: var(--akzent); color: var(--text); }

/* Datenblatt */
.datenblatt { display: grid; border-top: 1px solid var(--linie); margin: 0; }
.zeile { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.zeile dt { color: var(--leise); }
.zeile dd { margin: 0; font-weight: 600; }
@media (max-width: 600px) { .zeile { grid-template-columns: 1fr; gap: 2px; } }

/* Formulare */
.formular { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten); }
.felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.felder .breit { grid-column: 1 / -1; }
.formular label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--mittel); }
.formular input, .formular textarea, .formular select { width: 100%; min-width: 0; font: 500 16px/1.4 var(--f-text); color: var(--text); background: var(--bg); border: 1px solid var(--linie-stark); border-radius: 12px; padding: 12px 14px; }
.formular textarea { min-height: 110px; resize: vertical; }
.formular input:focus, .formular textarea:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px var(--schein); }
.formular .pflicht::after { content: " *"; color: var(--warn); }
.formular .honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rueckmeldung { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--linie-stark); background: var(--flaeche-2); }
.rueckmeldung.gut { border-color: var(--akzent); }
.rueckmeldung.schlecht { border-color: var(--warn); }
.rueckmeldung pre { white-space: pre-wrap; font: 500 13px/1.5 var(--f-zahl); margin: 10px 0 0; }
@media (max-width: 640px) { .felder { grid-template-columns: 1fr; } }

/* Preise: Staffel, Zähler, Umschalter (Startseite und /mieten/) */
.staffel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.staffel .stufe button { position: relative; width: 100%; height: 100%; display: grid; align-content: start; gap: 6px; text-align: left; padding: 22px 20px 20px; border-radius: 20px; background: var(--flaeche); border: 1px solid var(--linie); color: var(--text); font: inherit; cursor: pointer; transition: border-color .25s, transform .25s, box-shadow .25s; }
.staffel .stufe button:hover { border-color: var(--linie-stark); transform: translateY(-2px); }
.staffel .stufe.an button { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent), var(--schatten); }
.staffel .marke { display: block; }
.stufe-anzahl { display: block; font: 800 19px/1.2 var(--f-anzeige); }
.stufe-preis { display: grid; gap: 2px; margin-top: 8px; }
.stufe-preis b { font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.stufe-preis span, .stufe-eigen { color: var(--mittel); font-size: 14px; }
.stufe-zeichen { position: absolute; top: -11px; right: 14px; padding: 3px 10px; border-radius: 999px; background: var(--knopf); color: var(--knopf-text); font: 700 12px/1.4 var(--f-text); }
@media (max-width: 900px) { .staffel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stufe-zeichen { position: static; justify-self: start; margin: -4px 0 2px; } }
@media (max-width: 420px) { .staffel .stufe button { padding: 18px 14px 16px; } .stufe-preis b { font-size: 28px; } }
/* Große Preise in der Anzeigeschrift (Monospace lässt vor dem € eine Lücke) */
.stufe-preis b, .rechner-summe b, .zf-summe b, .pp-summe b { font-family: var(--f-anzeige); font-weight: 800; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.025em; }
.stepper { display: inline-flex; align-items: center; gap: 4px; justify-self: start; border: 1px solid var(--linie-stark); border-radius: 16px; padding: 4px; background: var(--bg); }
.stepper button { width: 48px; height: 48px; border-radius: 12px; border: 0; background: var(--flaeche-2); color: var(--text); font: 600 24px/1 var(--f-anzeige); cursor: pointer; }
.stepper button:hover { background: var(--linie); }
.stepper input { width: 4.2ch; min-width: 0; text-align: center; font-size: 28px; color: var(--text); background: transparent; border: 0; padding: 4px 0; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline: 3px solid var(--netz); outline-offset: 2px; border-radius: 8px; }
.umschalter { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.umschalter legend { width: 100%; margin-bottom: 8px; padding: 0; }
.umschalter label { position: relative; }
.umschalter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.umschalter label > span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--linie-stark); background: var(--bg); color: var(--mittel); font-weight: 600; cursor: pointer; }
.umschalter input:checked + span { border-color: var(--akzent); color: var(--text); box-shadow: inset 0 0 0 1px var(--akzent); }
.umschalter input:focus-visible + span { outline: 3px solid var(--netz); outline-offset: 2px; }

/* Abschluss-Band */
.band { padding: clamp(28px, 4vw, 48px); border-radius: 26px; background: var(--band); border: 1px solid var(--linie); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }

:root[data-ruhig="1"] *, :root[data-ruhig="1"] *::before, :root[data-ruhig="1"] *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
