/* Jahres-Check simply switch: mobil zuerst, Farben aus Logo und Website (#0253ee) */
:root {
  --blau: #0253ee;
  --blau-dunkel: #0019ae;
  --blau-hell: #0076d6;
  --blau-zart: #eaf1ff;
  --text: #14213d;
  --leise: #5b6782;
  --linie: #dbe3f3;
  --grund: #f6f8fd;
  --weiss: #ffffff;
  --gruen: #12a150;
  --rot: #d93a3a;
  --radius: 16px;
  --schatten: 0 10px 30px rgba(2, 37, 120, .08), 0 2px 6px rgba(2, 37, 120, .05);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); background: var(--grund);
  background-image: radial-gradient(1200px 500px at 110% -10%, #dce7ff 0%, transparent 60%),
                    radial-gradient(900px 400px at -20% 110%, #e7f3ff 0%, transparent 60%);
  min-height: 100vh; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: var(--blau); }
.seite { max-width: 680px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; padding: 0 16px; }

/* Kopf mit Fortschritt */
.kopf { display: flex; align-items: center; gap: 14px; padding: 16px 0 8px; position: sticky; top: 0; z-index: 5;
        background: linear-gradient(var(--grund) 75%, transparent); }
.marke img { display: block; width: 88px; height: auto; }
.fortschritt { flex: 1; height: 6px; background: var(--linie); border-radius: 6px; overflow: hidden; }
.balken { height: 100%; width: 0; background: linear-gradient(90deg, var(--blau-hell), var(--blau)); border-radius: 6px;
          transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.schritt-nr { font-size: 12px; color: var(--leise); min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; }

/* Bühne mit Karte je Schritt */
.buehne { flex: 1; padding: 8px 0 120px; outline: none; }
.karte { background: var(--weiss); border-radius: 22px; box-shadow: var(--schatten); padding: 26px 20px; margin-top: 8px;
         animation: rein .45s cubic-bezier(.2, .8, .2, 1); }
.karte.zurueck-anim { animation-name: rein-links; }
@keyframes rein { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes rein-links { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .karte, .balken, .klappe { animation: none !important; transition: none !important; } }

.uebertitel { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blau); margin: 0 0 6px; }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; }
h2 { font-size: 21px; line-height: 1.25; margin: 0 0 6px; }
.unter { color: var(--leise); margin: 0 0 18px; }

/* Begrüßung */
.hallo { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.foto { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--weiss), 0 0 0 5px var(--blau-zart); }
.pluspunkte { list-style: none; padding: 0; margin: 16px 0 6px; display: grid; gap: 10px; }
.pluspunkte li { display: flex; gap: 10px; align-items: flex-start; }
.pluspunkte li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--blau-zart) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230253ee' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Felder */
.feld { display: block; margin-bottom: 14px; }
.feld span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.feld small { font-weight: 400; color: var(--leise); }
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%; font: inherit; color: var(--text); background: var(--weiss);
  border: 1.5px solid var(--linie); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 84px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 4px rgba(2, 83, 238, .12); }
.feld.fehler input, .feld.fehler textarea { border-color: var(--rot); }
.fehlertext { color: var(--rot); font-size: 13px; margin-top: 4px; }
.zwei { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .zwei { grid-template-columns: 1fr 1fr; } }

/* Große Auswahl (Beamter ja/nein) */
.auswahl { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: 6px 0 14px; }
.wahl { border: 2px solid var(--linie); background: var(--weiss); border-radius: var(--radius); padding: 18px 14px; text-align: center;
        font: inherit; font-weight: 600; color: var(--text); cursor: pointer; transition: transform .15s, border-color .2s, background .2s; }
.wahl .symbol { display: block; font-size: 28px; margin-bottom: 6px; }
.wahl small { display: block; font-weight: 400; color: var(--leise); font-size: 13px; margin-top: 2px; }
.wahl:hover { transform: translateY(-2px); border-color: #b9cbf3; }
.wahl[aria-pressed=true] { border-color: var(--blau); background: var(--blau-zart); box-shadow: 0 0 0 4px rgba(2, 83, 238, .10); }

/* Fragen mit Ja/Nein-Schalter */
.fragen { display: grid; gap: 10px; }
.frage { border: 1.5px solid var(--linie); border-radius: var(--radius); padding: 14px; background: var(--weiss); transition: border-color .2s, background .2s; }
.frage.ja { border-color: #9ab8f6; background: #fbfcff; }
.frage-zeile { display: flex; align-items: center; gap: 12px; }
.frage-text { flex: 1; }
.frage-text strong { display: block; font-size: 15px; }
.frage-text small { color: var(--leise); font-size: 13px; }
.janein { display: inline-flex; background: var(--grund); border: 1.5px solid var(--linie); border-radius: 999px; padding: 3px; flex: none; }
.janein button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: transparent; color: var(--leise);
                 padding: 7px 14px; border-radius: 999px; cursor: pointer; min-width: 52px; transition: background .2s, color .2s; }
.janein button[aria-pressed=true].nein { background: var(--weiss); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.janein button[aria-pressed=true].ja-k { background: var(--blau); color: #fff; }
.klappe { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease, margin .3s ease; }
.klappe > div { overflow: hidden; }
.frage.ja .klappe { grid-template-rows: 1fr; margin-top: 12px; }
.klappe textarea { min-height: 70px; }

/* Rentenalter */
.alter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0 10px; }
.chip { font: inherit; font-weight: 700; border: 1.5px solid var(--linie); background: var(--weiss); color: var(--text);
        border-radius: 12px; padding: 12px 0; cursor: pointer; transition: all .15s; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: #b9cbf3; }
.chip[aria-pressed=true] { background: var(--blau); border-color: var(--blau); color: #fff; transform: scale(1.04); }
.chip.breit { grid-column: span 5; font-weight: 600; }
@media (min-width: 520px) { .alter { grid-template-columns: repeat(7, 1fr); } .chip.breit { grid-column: span 7; } }
.alter-anzeige { text-align: center; margin: 4px 0 0; color: var(--leise); min-height: 24px; }
.alter-anzeige b { color: var(--blau); font-size: 20px; }

/* Zusammenfassung */
.zusammenfassung { border: 1.5px solid var(--linie); border-radius: var(--radius); overflow: hidden; margin: 8px 0 16px; }
.zusammenfassung h3 { margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--leise);
                     background: var(--grund); padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; }
.zusammenfassung h3 button { font: inherit; font-size: 13px; text-transform: none; letter-spacing: 0; border: 0; background: none; color: var(--blau); cursor: pointer; padding: 0; }
.zusammenfassung ul { list-style: none; margin: 0; padding: 6px 14px 12px; }
.zusammenfassung li { padding: 6px 0; border-bottom: 1px dashed var(--linie); font-size: 15px; }
.zusammenfassung li:last-child { border-bottom: 0; }
.zusammenfassung li em { display: block; font-style: normal; color: var(--leise); font-size: 14px; }
.nichts { color: var(--leise); }
.einwilligung { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--leise); margin: 10px 0; }
.einwilligung input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blau); }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Knöpfe unten */
.steuerung { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; gap: 10px; justify-content: center;
             padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
             background: linear-gradient(transparent, rgba(246, 248, 253, .96) 30%); }
.steuerung .knopf { max-width: 324px; flex: 1; }
.knopf { font: inherit; font-weight: 700; font-size: 16px; border-radius: 14px; padding: 15px 18px; cursor: pointer; border: 0; transition: transform .15s, box-shadow .2s, opacity .2s; }
.knopf.weiter { background: linear-gradient(135deg, var(--blau), var(--blau-dunkel)); color: #fff; box-shadow: 0 8px 20px rgba(2, 83, 238, .28); }
.knopf.weiter:hover { transform: translateY(-1px); }
.knopf.zurueck { background: var(--weiss); color: var(--text); border: 1.5px solid var(--linie); flex: 0 0 auto; max-width: 120px; }
.knopf:disabled { opacity: .55; cursor: default; transform: none; }
.knopf.sekundaer { background: var(--weiss); color: var(--blau); border: 1.5px solid #b9cbf3; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
.versteckt { visibility: hidden; }

/* Danke */
.danke { text-align: center; }
.haken { width: 86px; height: 86px; margin: 4px auto 14px; border-radius: 50%; background: #e8f7ee; display: grid; place-items: center; }
.haken svg { width: 46px; height: 46px; }
.haken path { stroke: var(--gruen); stroke-width: 3; fill: none; stroke-dasharray: 40; stroke-dashoffset: 40; animation: zeichnen .6s .2s ease forwards; }
@keyframes zeichnen { to { stroke-dashoffset: 0; } }
.konfetti { position: fixed; inset: 0; pointer-events: none; z-index: 20; }

.fuss { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; font-size: 12px; color: var(--leise); padding: 0 0 96px; }
.fuss a { color: var(--leise); }
.hinweis { background: #fff8e6; border: 1px solid #f3d98b; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.laed { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: dreh .8s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes dreh { to { transform: rotate(360deg); } }
