/* Ausfall-Rechner /rechner (2026-10-23) — nach Design-Übergabe „Ausfall-Rechner“ (README Abschnitte 1–6), eigenständig dunkel.
   Keine Inline-Stile (CSP style-src 'self'). Auch für die Bestätigungs-/Abmeldeseiten des Backends (/api/rechner/…, .r-meldung). */
@font-face{font-family:'Archivo';src:url(../fonts/Archivo.woff2) format('woff2');font-weight:100 900;font-display:swap}
:root{--bg:#111411;--karte:#191a18;--rand:#242623;--in-bg:#1b1c1a;--in-rand:#2c2e2b;--text:#e7e8e5;--ged:#b9bcb6;--ged2:#8a8d87;
  --gruen:#40704d;--gruen-h:#6aa77e;--mint:#d3e6d6;--gelb:#e7c88a;--rot:#e08a7a;--rot-bg:#3a2420;--rot-rand:#6a3a32;--rot-h:#e8b9ae;
  --ok-bg:#1f2a22;--ok-rand:#3c5a45;--ok-text:#a9d3b5}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
html,body{margin:0;background:var(--bg);color:var(--text);font-family:'Archivo',system-ui,sans-serif}
a{color:var(--mint)}a:hover{color:#fff}
h1,h2,p{margin:0}
.r-seite{min-height:100vh;padding:32px 24px 80px;max-width:1168px;margin:0 auto;display:flex;flex-direction:column;gap:40px}
/* 1. Kopf */
.r-kopf{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.r-logo{display:flex;align-items:center;gap:12px;text-decoration:none}
.r-wort{display:flex;align-items:baseline;font-size:30px;line-height:.9;letter-spacing:-.04em}
.r-wort b{font-weight:900;color:#fff}.r-wort i{font-style:normal;font-weight:300;color:var(--mint)}
.r-pille{font-size:10px;font-weight:800;letter-spacing:.18em;color:var(--gruen);background:#fff;border-radius:999px;padding:3px 9px}
.r-badge{font-size:13px;font-weight:700;letter-spacing:.06em;color:#1a1508;background:var(--gelb);border-radius:30px;padding:7px 14px}
/* 2. Hero */
.r-hero{display:flex;flex-direction:column;gap:14px;max-width:820px}
.r-hero h1{font-size:clamp(40px,6vw,76px);font-weight:900;letter-spacing:-.045em;line-height:1;color:#fff;text-wrap:balance}
.r-rot{color:var(--rot)}
.r-hero p{font-size:19px;line-height:1.5;color:var(--ged);text-wrap:pretty}
/* 3. Eingaben + Ergebnis */
.r-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:24px}
.r-grid-start{align-items:start}
.r-karte{background:var(--karte);border:1px solid var(--rand);border-radius:20px}
.r-eingaben{padding:28px;display:flex;flex-direction:column;gap:28px}
.r-label{font-size:15px;font-weight:700;letter-spacing:.06em;color:var(--ged2)}
.r-regler{display:flex;flex-direction:column;gap:10px}
.r-zeile{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.r-name{font-size:17px;font-weight:600}
.r-wert{font-size:30px;font-weight:900;color:#fff;font-variant-numeric:tabular-nums;white-space:nowrap}
.r-regler input[type=range]{width:100%;margin:0;height:28px;accent-color:var(--gruen-h);cursor:pointer;touch-action:pan-y}
.r-hilfe{font-size:14px;line-height:1.4;color:var(--ged2)}
.r-ergebnis{background:var(--rot-bg);border-color:var(--rot-rand);padding:28px;display:flex;flex-direction:column;gap:22px;position:sticky;top:24px}
.r-ergebnis .r-label{color:var(--rot)}
.r-gross{font-size:clamp(56px,9vw,104px);font-weight:900;letter-spacing:-.05em;line-height:.95;color:var(--rot);font-variant-numeric:tabular-nums;white-space:nowrap}
.r-kacheln{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}
.r-kachel{background:rgba(0,0,0,.2);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.r-kachel>span{font-size:13px;color:var(--rot-h)}
.r-kachel b{font-size:26px;font-weight:800;color:#fff;font-variant-numeric:tabular-nums}
.r-rechenweg{font-size:14px;line-height:1.5;color:var(--rot-h)}
/* 4. Lücken füllen */
.r-fuellen{background:var(--gruen);border-radius:20px;padding:32px 28px;display:flex;flex-direction:column;gap:22px}
.r-fuellen-kopf{display:flex;flex-direction:column;gap:8px}
.r-fuellen h2{font-size:clamp(28px,4vw,44px);font-weight:900;letter-spacing:-.035em;line-height:1.05;color:#fff;text-wrap:balance}
.r-fuellen p{font-size:16px;line-height:1.5;color:var(--mint);text-wrap:pretty}
.r-regler-hell .r-name{color:#fff}
.r-regler-hell input[type=range]{accent-color:#fff}
.r-zwei{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px}
.r-k3{border-radius:16px;padding:20px 22px;display:flex;flex-direction:column;gap:6px}
.r-k3>span{font-size:14px;font-weight:700}
.r-k3 b{font-size:40px;font-weight:900;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:#111411}
.r-k3 small{font-size:13px}
.r-k3-weiss{background:#fff}.r-k3-weiss>span{color:var(--gruen)}
.r-k3-glas{background:rgba(255,255,255,.14)}.r-k3-glas>span,.r-k3-glas small{color:var(--mint)}.r-k3-glas b{color:#fff}
.r-break{font-size:17px;line-height:1.5;color:#fff}.r-break b{font-weight:900;font-variant-numeric:tabular-nums}
.r-fuss{font-size:14px;color:var(--mint)}
/* 5. Report-Formular */
.r-report-text{display:flex;flex-direction:column;gap:12px}
.r-report-text h2{font-size:clamp(28px,4vw,40px);font-weight:900;letter-spacing:-.035em;line-height:1.05;color:#fff;text-wrap:balance}
.r-report-text p{font-size:16px;line-height:1.55;color:var(--ged);text-wrap:pretty}
.r-form{padding:24px;display:flex;flex-direction:column;gap:14px}
.r-feld{display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--ged)}
.r-feld input,.r-feld select{height:46px;padding:0 14px;border-radius:10px;border:1px solid var(--in-rand);background:var(--in-bg);color:var(--text);font:inherit;font-size:16px;width:100%}
.r-feld select{padding:0 10px}
.r-feld input:focus,.r-feld select:focus{outline:2px solid var(--gruen-h);outline-offset:1px}
.r-feld input.r-falsch{border-color:var(--rot)}
.r-haken{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.45;color:var(--ged2);cursor:pointer}
.r-haken input{margin:2px 0 0;width:16px;height:16px;flex:none;accent-color:var(--gruen-h)}
.r-senden{height:54px;border-radius:12px;border:0;background:var(--gruen-h);color:#0f1a12;font:inherit;font-size:17px;font-weight:800;cursor:pointer}
.r-senden:hover{background:#79b58c}
.r-senden:disabled{background:#4a5a4e;cursor:wait}
.r-fehler{font-size:14px;color:var(--rot)}.r-fehler:empty{display:none}
.r-klein{font-size:14px;line-height:1.45;color:var(--ged2)}
/* Honeypot: weder sichtbar noch für Screenreader/Tastatur (aria-hidden + inert im HTML) */
.r-versteckt{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;opacity:0;pointer-events:none}
.r-ok{background:var(--ok-bg);border-color:var(--ok-rand);padding:28px;display:flex;flex-direction:column;gap:8px}
.r-ok[hidden],.r-form[hidden],.r-weg{display:none}
.r-ok-titel{font-size:24px;font-weight:800;color:var(--ok-text)}
.r-ok-text{font-size:15px;line-height:1.5;color:var(--mint)}
.r-ohne-js{display:none;padding:20px;font-size:15px;color:var(--ged)}
.ohne-js .r-ohne-js{display:block}
.ohne-js .r-form{display:none}
/* 6. Angebot */
.r-angebot{border:2px solid var(--gelb);border-radius:20px;padding:32px 28px;display:flex;flex-wrap:wrap;gap:24px;align-items:center;justify-content:space-between}
.r-angebot-text{display:flex;flex-direction:column;gap:10px;max-width:620px}
.r-angebot .r-badge{align-self:flex-start;font-weight:800;padding:6px 14px}
.r-angebot-preis{font-size:clamp(28px,4vw,42px);font-weight:900;letter-spacing:-.035em;line-height:1.05;color:#fff}
.r-angebot-plus{font-size:16px;line-height:1.5;color:var(--ged)}
.r-platz{height:58px;padding:0 30px;border-radius:30px;background:#fff;color:var(--gruen);display:inline-flex;align-items:center;font-size:18px;font-weight:800;text-decoration:none;white-space:nowrap}
.r-platz:hover{color:var(--gruen);background:var(--mint)}
/* Ergebnis-Leiste (Handy/schmal, solange die Regler sichtbar sind und die Ergebnis-Zahl nicht; Steuerung rechner.js) */
.r-leiste{position:fixed;left:0;right:0;bottom:0;z-index:10;display:none;justify-content:center;align-items:baseline;gap:0;padding:14px 16px calc(14px + env(safe-area-inset-bottom));background:var(--rot-bg);border-top:1px solid var(--rot-rand);color:var(--rot);font-size:22px;font-weight:900;letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap;transform:translateY(110%);visibility:hidden}
.r-leiste.r-an{transform:none;visibility:visible}
@media (max-width:911px){.r-leiste:not([hidden]){display:flex}.r-ergebnis{position:static}}
/* Fuß */
.r-unten{max-width:1168px;margin:0 auto;padding:0 24px 40px;display:flex;flex-wrap:wrap;gap:12px 24px;justify-content:space-between;font-size:13px;color:var(--ged2)}
.r-unten nav{display:flex;flex-wrap:wrap;gap:8px 18px}
.r-unten a{color:var(--ged2)}.r-unten a:hover{color:#fff}
/* Handy: Seitenrand 16 px, Knopf volle Breite */
@media (max-width:520px){
  .r-seite{padding:24px 16px 64px;gap:32px}
  .r-unten{padding:0 16px 32px}
  .r-eingaben,.r-ergebnis{padding:22px}
  .r-fuellen,.r-angebot{padding:26px 20px}
  .r-form{padding:20px}
  .r-platz{width:100%;justify-content:center}
  .r-k3 b{font-size:36px}
}
/* Bestätigungs-/Abmeldeseiten (Backend) */
.r-seite.r-schmal{max-width:640px}
.r-meldung{padding:28px;display:flex;flex-direction:column;gap:14px}
.r-meldung h1{font-size:28px;font-weight:900;letter-spacing:-.03em;color:#fff}
.r-meldung p{font-size:16px;line-height:1.55;color:var(--ged)}
.r-knopf{height:50px;padding:0 22px;border-radius:12px;border:0;background:var(--gruen-h);color:#0f1a12;font:inherit;font-size:16px;font-weight:800;cursor:pointer}
.r-zurueck{font-size:14px}
@media (prefers-reduced-motion:no-preference){.r-senden,.r-platz{transition:background .15s}.r-leiste{transition:transform .2s,visibility .2s}}
