/* Fischerreif — ruhig und klar: Papiergrund, Seegrün, große Schrift für jedes Alter. Handy zuerst. */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/plus-jakarta-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f4f1ea; --surface: #fffdf8; --surface-2: #ece7dc; --ink: #14231f; --muted: #5d6b66; --line: #ddd6c8;
  --see: #0f6b5c; --see-dark: #0a4f44; --see-soft: #dcefe9; --on-see: #ffffff;
  --gut: #1f8a4c; --gut-soft: #def3e6; --schlecht: #c0392b; --schlecht-soft: #fbe3df;
  --gold: #b7791f; --gold-soft: #fbefd9; --on-gold: #2a1a00;
  --schatten: 0 1px 2px rgba(20, 35, 31, .05), 0 10px 24px -16px rgba(20, 35, 31, .25);
  --r: 18px; --spalte: 600px;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1513; --surface: #15201d; --surface-2: #1d2a26; --ink: #e8efe9; --muted: #93a39d; --line: #26342f;
    --see: #3fbfa6; --see-dark: #7fd9c6; --see-soft: #12302a; --on-see: #06231d;
    --gut: #4ade80; --gut-soft: #11291b; --schlecht: #f87171; --schlecht-soft: #2e1515;
    --gold: #f2b84b; --gold-soft: #2a2210; --on-gold: #2a1a00;
    --schatten: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 28px -18px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 10; }
main {
  max-width: var(--spalte); margin: 0 auto; display: flex; flex-direction: column; gap: 14px;
  padding-block: calc(env(safe-area-inset-top, 0px) + 14px) calc(env(safe-area-inset-bottom, 0px) + 40px);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
main:focus { outline: none; }
svg { width: 1.15em; height: 1.15em; flex: none; }
h1, h2 { margin: 0; text-wrap: balance; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 7vw, 34px); font-weight: 800; }
h2 { font-size: 19px; font-weight: 750; }
p { margin: 0; }
a { color: var(--see); }
.klein { font-size: 14px; color: var(--muted); }
.mitte { text-align: center; }

/* Kopf */
.kopf { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--see); }
.logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--see); color: var(--on-see); }
.logo svg { width: 28px; height: 18px; }
.name { color: var(--ink); }
.chip { margin-left: auto; font-size: 13px; padding: 3px 10px; border-radius: 99px; background: var(--see-soft); color: var(--see-dark); }
.chip.gold { background: var(--gold-soft); color: var(--gold); }

.held { display: flex; flex-direction: column; gap: 8px; padding: 10px 2px 4px; }
.held.mitte { align-items: center; padding-top: 28px; }
.vorzeile { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--see); }
.einleitung { color: var(--muted); max-width: 60ch; }
.meldung { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--gut-soft); color: var(--gut); font-weight: 650; }

/* Karten und Knöpfe */
.karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--schatten); display: flex; flex-direction: column; gap: 12px; }
.karte-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
button { font: inherit; color: inherit; }
.aktion { flex-direction: row; align-items: center; gap: 14px; text-align: left; cursor: pointer; transition: transform .15s, border-color .15s; }
.aktion:hover:not(:disabled) { border-color: var(--see); }
.aktion:active:not(:disabled) { transform: scale(.985); }
.aktion:disabled { opacity: .6; cursor: default; }
.aktion > svg { margin-left: auto; color: var(--see); width: 24px; height: 24px; }
.aktion-text { display: flex; flex-direction: column; gap: 2px; }
.aktion-text b { font-size: 19px; }
.aktion-text span { color: var(--muted); font-size: 15px; }
.aktion.haupt { background: var(--see); border-color: var(--see); color: var(--on-see); }
.aktion.haupt .aktion-text span, .aktion.haupt > svg { color: inherit; opacity: .9; }
.aktion.gesperrt > svg { color: var(--muted); }
.verlauf { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-left: 4px; }
.verlauf .gut, .verlauf .schlecht { font-weight: 700; padding: 1px 8px; border-radius: 99px; }
.verlauf .gut { background: var(--gut-soft); color: var(--gut); }
.verlauf .schlecht { background: var(--schlecht-soft); color: var(--schlecht); }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 20px; border: 0; border-radius: 14px; background: var(--see); color: var(--on-see); font-weight: 750; font-size: 17px; cursor: pointer; text-decoration: none; transition: transform .12s, filter .12s; }
.knopf:hover:not(:disabled) { filter: brightness(1.06); }
.knopf:active:not(:disabled) { transform: scale(.98); }
.knopf:disabled { opacity: .45; cursor: default; }
.knopf.breit { width: 100%; }
.knopf.grau { background: var(--surface-2); color: var(--ink); }
.knopf.gold { background: var(--gold); color: var(--on-gold); }
.link { background: none; border: 0; padding: 0; color: var(--see); text-decoration: underline; cursor: pointer; font-size: inherit; }
:focus-visible { outline: 3px solid var(--see); outline-offset: 2px; }

/* Gebiete */
.gebiete { display: flex; flex-direction: column; gap: 8px; }
.gebiet { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); text-align: left; cursor: pointer; transition: border-color .15s; }
.gebiet:hover { border-color: var(--see); }
.gebiet > svg { color: var(--muted); }
.gebiet-nr { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--see-soft); color: var(--see-dark); font-weight: 800; }
.gebiet-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.gebiet-text b { font-size: 16px; line-height: 1.3; }
.gebiet-text > span { font-size: 13px; color: var(--muted); }
.balken { display: block; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.balken > i { display: block; height: 100%; width: var(--w); background: var(--see); border-radius: inherit; transition: width .6s; }

/* Plus */
.plus-karte { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.marke { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; background: var(--gold); color: var(--on-gold); }
.liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.liste li { display: flex; gap: 10px; align-items: flex-start; }
.liste svg { color: var(--gut); margin-top: 4px; }
.hinweis-box { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 15px; }
.code-feld summary { cursor: pointer; color: var(--see); font-size: 15px; font-weight: 650; }
.code-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.code-form input { flex: 1 1 180px; min-width: 0; min-height: 50px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; }

/* Fragen */
.leiste { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 0; background: var(--bg); }
.zurueck-knopf { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.fortschritt { flex: 1; height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.fortschritt > i { display: block; height: 100%; width: var(--w); background: var(--see); border-radius: inherit; transition: width .3s; }
.zeit { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; font-variant-numeric: tabular-nums; padding: 6px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.zeit.knapp { color: var(--schlecht); border-color: var(--schlecht); }
.frage-karte { display: flex; flex-direction: column; gap: 14px; }
.frage-kopf { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); font-weight: 650; }
.frage { font-size: clamp(21px, 5.6vw, 25px); font-weight: 750; }
.optionen { display: flex; flex-direction: column; gap: 10px; }
.option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 12px 14px; text-align: left; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; animation: rein .35s both; animation-delay: calc(var(--i) * 50ms); transition: border-color .15s, background .15s; }
.option:hover:not(:disabled) { border-color: var(--see); }
.buchstabe { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--surface-2); font-weight: 800; font-size: 15px; }
.option.gewaehlt { border-color: var(--see); background: var(--see-soft); }
.option.gewaehlt .buchstabe { background: var(--see); color: var(--on-see); }
.option.richtig { border-color: var(--gut); background: var(--gut-soft); }
.option.richtig .buchstabe { background: var(--gut); color: #fff; }
.option.falsch { border-color: var(--schlecht); background: var(--schlecht-soft); }
.option.falsch .buchstabe { background: var(--schlecht); color: #fff; }
.option:disabled { cursor: default; }
.option:disabled:not(.richtig):not(.falsch) { opacity: .6; }
#rueckmeldung { display: flex; flex-direction: column; gap: 12px; }
#rueckmeldung:empty { display: none; }
.rueck { padding: 14px 16px; border-radius: 14px; display: flex; flex-direction: column; gap: 6px; animation: rein .3s both; }
.rueck b { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.rueck.gut { background: var(--gut-soft); } .rueck.gut b { color: var(--gut); }
.rueck.schlecht { background: var(--schlecht-soft); } .rueck.schlecht b { color: var(--schlecht); }
.nav-reihe { display: flex; gap: 10px; }
.nav-reihe .knopf { flex: 1; }

/* Ergebnis */
.ergebnis { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 22px 4px 6px; }
.stempel { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; animation: stempel .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.stempel svg { width: 44px; height: 44px; }
.ergebnis.gut .stempel { background: var(--gut-soft); color: var(--gut); }
.ergebnis.schlecht .stempel { background: var(--schlecht-soft); color: var(--schlecht); }
.ergebnis.gut h1 { color: var(--gut); } .ergebnis.schlecht h1 { color: var(--schlecht); }
.gebiet-ergebnis { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 15px; }
.gebiet-ergebnis .balken { grid-column: 1 / -1; }
.gebiet-ergebnis.zu-viel b { color: var(--schlecht); }
.gebiet-ergebnis.zu-viel .balken > i { background: var(--schlecht); }
.fehler { border-top: 1px solid var(--line); padding-top: 10px; }
.fehler summary { cursor: pointer; font-weight: 650; }
.fehler p { margin-top: 8px; font-size: 15px; }
.antw { display: flex; flex-direction: column; gap: 2px; }
.antw .gut { color: var(--gut); font-weight: 650; } .antw .schlecht { color: var(--schlecht); }

/* Bestätigung */
.abfrage { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(10, 20, 17, .55); animation: ein .2s both; }
.abfrage-box { width: min(420px, 100%); background: var(--surface); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--schatten); }

.fuss { display: flex; flex-direction: column; gap: 8px; padding: 12px 2px 0; font-size: 13px; color: var(--muted); }

@keyframes rein { from { opacity: 0; transform: translateY(8px); } }
@keyframes ein { from { opacity: 0; } }
@keyframes stempel { from { opacity: 0; transform: scale(.4) rotate(-20deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Impressum */
.recht h2 { margin-top: 12px; } .recht h3 { font-size: 16px; margin: 6px 0 0; } .recht p { max-width: 65ch; font-size: 16px; }
