/* Dunkle Fläche, Limette als Signalfarbe, Violett für Hervorhebungen. */
@font-face {
  font-family: Archivo;
  src: url(fonts/archivo.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --grund: #121218; --karte: #1D1D27; --linie: #3A3A4C; --trenner: #2C2C3A;
  --text: #FFFFFF; --leise: #B4B4C6; --limette: #C6F432; --violett: #8B7CFF; --rot: #FF8A80;
}
* { box-sizing: border-box; }
html { background: var(--grund); }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font-family: Archivo, system-ui, sans-serif; font-size: 16px; line-height: 1.35;
  -webkit-text-size-adjust: 100%;
}
#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.lade { padding: 80px 20px; text-align: center; color: var(--leise); }
h1 { margin: 4px 0 0; font-size: 30px; font-weight: 900; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
h2 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); }
p { margin: 0; }
a { color: var(--limette); }
.kopf { padding: calc(20px + env(safe-area-inset-top)) 20px 14px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.marke { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--limette); }
.kopf .rechts { text-align: right; flex-shrink: 0; }
.kopf .rechts small { display: block; font-size: 11px; color: var(--leise); }
.kopf .rechts b { font-size: 22px; font-weight: 900; color: var(--limette); }
.inhalt { flex: 1; padding: 0 16px 24px; display: flex; flex-direction: column; gap: 10px; }
.karte { background: var(--karte); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.karte.violett { background: var(--violett); color: var(--grund); }
.zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.zeile > :first-child { min-width: 0; overflow-wrap: anywhere; }
.titel { font-size: 16px; font-weight: 800; }
.wert { font-size: 13px; font-weight: 800; color: var(--limette); white-space: nowrap; }
.leise { font-size: 12px; color: var(--leise); }
.gross { font-size: 18px; font-weight: 900; }
.reihe { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.reihe > .dehnt { flex: 1 1 0; min-width: 0; }

button, .knopf {
  font: 800 15px Archivo, system-ui, sans-serif; min-height: 48px; padding: 0 16px;
  border: 2px solid var(--linie); border-radius: 12px; background: var(--grund); color: var(--text);
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
button:focus-visible, .knopf:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--violett); outline-offset: 2px; }
button.an, button.haupt, .knopf.haupt { background: var(--limette); color: var(--grund); border-color: var(--limette); }
button.dunkel, .knopf.dunkel { background: var(--grund); color: var(--text); border-color: var(--grund); }
button.schlicht { border-color: transparent; background: transparent; color: var(--limette); padding: 0 8px; }
button.gefahr { color: var(--rot); }
button.eck { width: 48px; padding: 0; font-size: 20px; font-weight: 900; flex-shrink: 0; }
button:disabled { opacity: .5; cursor: default; }
.wahl { display: flex; gap: 8px; flex-wrap: wrap; }
.wahl button { flex: 1 1 30%; min-width: 0; padding: 4px 8px; line-height: 1.15; }

label { font-size: 13px; font-weight: 700; color: var(--leise); display: flex; flex-direction: column; gap: 6px; }
input {
  font: 800 17px Archivo, system-ui, sans-serif; min-height: 48px; width: 100%; padding: 0 14px;
  border: 2px solid var(--linie); border-radius: 12px; background: var(--grund); color: var(--text);
  color-scheme: dark;
}
select {
  font: 700 15px Archivo, system-ui, sans-serif; min-height: 48px; width: 100%; padding: 0 36px 0 14px;
  border: 2px solid var(--linie); border-radius: 12px; color: var(--text); color-scheme: dark;
  appearance: none; -webkit-appearance: none;
  background: var(--grund) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C6F432' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
}
select:focus-visible { outline: 3px solid var(--violett); outline-offset: 2px; }
.liste .person { padding: 8px 0; }
.liste .person > span { min-width: 0; overflow-wrap: anywhere; }
.liste .person small { display: block; font-size: 12px; font-weight: 400; color: var(--leise); }
.liste .person select { width: 170px; flex-shrink: 0; min-height: 44px; font-size: 14px; }
.tabelle .name small { display: block; font-size: 12px; font-weight: 400; color: var(--leise); }
input.gesetzt { border-color: var(--limette); }
input.mitte { text-align: center; }
.einheit { font-size: 13px; font-weight: 700; color: var(--leise); }

.marke-punkte { font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 999px; background: var(--limette); color: var(--grund); white-space: nowrap; }
.marke-punkte.null { background: var(--trenner); color: var(--leise); }
.liste { display: flex; flex-direction: column; }
.liste > div { display: flex; justify-content: space-between; gap: 10px; min-height: 40px; align-items: center; border-top: 1px solid var(--trenner); font-size: 14px; }
.liste .ich { color: var(--limette); font-weight: 800; }
details summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--limette); min-height: 44px; display: flex; align-items: center; }

.balken { position: sticky; bottom: 60px; background: var(--limette); color: var(--grund); border-radius: 20px 20px 0 0; padding: 14px 20px; display: flex; align-items: center; gap: 14px; }
.balken small { display: block; font-size: 12px; font-weight: 700; }
.balken b { font-size: 18px; display: block; font-weight: 900; }
.balken > div { flex: 1; }
nav.unten { position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--karte); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
nav.unten a { min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--leise); text-decoration: none; }
nav.unten a.an { color: var(--limette); font-weight: 900; }

.podest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; }
.podest > div { border-radius: 14px; padding: 12px 6px; text-align: center; background: var(--karte); overflow-wrap: anywhere; }
.podest .eins { background: var(--limette); color: var(--grund); padding-top: 22px; padding-bottom: 22px; }
.podest .drei { padding-top: 8px; padding-bottom: 8px; }
.podest small { display: block; font-size: 12px; opacity: .85; }
.podest b { display: block; font-size: 16px; font-weight: 900; }
.tabelle > div { display: grid; grid-template-columns: 26px 1fr 62px 52px; column-gap: 8px; padding: 6px 0; align-items: center; min-height: 44px; border-top: 1px solid var(--trenner); font-size: 15px; }
.tabelle > div.kopfzeile { border: 0; min-height: 32px; font-size: 11px; font-weight: 700; color: var(--leise); text-transform: uppercase; letter-spacing: .06em; }
.tabelle .r { text-align: right; }
.tabelle .name { font-weight: 600; min-width: 0; overflow-wrap: break-word; }
.tabelle .ich { color: var(--limette); font-weight: 900; }
.tabelle .ich .name { font-weight: 900; }
.tabelle b { font-weight: 900; }

#meldung { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); max-width: 90vw; z-index: 10; pointer-events: none; }
#meldung div { background: var(--violett); color: var(--grund); font-weight: 800; font-size: 14px; padding: 10px 16px; border-radius: 12px; }
#meldung div.fehler { background: var(--rot); }
.fehlertext { color: var(--rot); font-size: 14px; font-weight: 700; }
.held { padding: calc(36px + env(safe-area-inset-top)) 20px 18px; }
.held h1 { font-size: 40px; margin-top: 8px; }
.held p { margin-top: 12px; color: var(--leise); font-size: 15px; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Kalle, der Liga-Storch */
.kalle { width: 64px; height: auto; flex-shrink: 0; }
.held { position: relative; }
.kalle.gross { position: absolute; right: 14px; top: calc(26px + env(safe-area-inset-top)); width: 100px; }
.held h1 { font-size: 34px; padding-right: 100px; overflow-wrap: normal; }
@media (max-width: 350px) { .kalle.gross { width: 76px; } .held h1 { font-size: 28px; padding-right: 76px; } }
.karte.mit-kalle { flex-direction: row; align-items: center; gap: 14px; }
.karte.mit-kalle > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

/* Einladungstor: erst die App holen */
button.riesig { min-height: 60px; font-size: 18px; font-weight: 900; }
.schritte { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.schritte li::marker { color: var(--limette); font-weight: 900; }
.mittig { text-align: center; }

/* Ausbau 25.11.: Haken, Fragen einstellen, Reveal */
[hidden] { display: none !important; }
input[type=checkbox] { width: 22px; height: 22px; min-height: 22px; padding: 0; flex-shrink: 0; accent-color: var(--limette); }
label.hakenzeile { flex-direction: row; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; color: var(--text); }
.haken { display: flex; flex-direction: column; }
details summary > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
details.aus summary > span:first-child { color: var(--leise); text-decoration: line-through; }
details > summary { gap: 10px; }
.einstellen { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 14px; }
.liste .person { flex-wrap: wrap; }
.liste .person .aktionen { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 2px 6px; }
.liste .person .aktionen button { min-height: 36px; font-size: 13px; padding: 0 6px; }
/* Gender-Reveal: Bühne im Hochformat, mittig auf dunklem Grund */
.reveal-huelle { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: #0b0a16; }
.reveal-kasten { width: min(100vw, calc(100dvh * 9 / 16)); height: min(100dvh, calc(100vw * 16 / 9)); }


/* Tarife, Google, Passwort (27.11.2026) */
.knopf.google { gap: 10px; background: #fff; color: #1f1f1f; border-color: #fff; }
.knopf.google .g { font: 900 18px Arial, sans-serif; color: #4285F4; }
.oder { display: flex; align-items: center; gap: 10px; color: var(--leise); font-size: 12px; }
.oder::before, .oder::after { content: ""; flex: 1; height: 1px; background: var(--linie); }
.stufen { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.stufe { overflow-wrap: anywhere; }
.stufe { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border: 2px solid var(--linie); border-radius: 12px; background: var(--grund); text-align: left; min-height: 0; }
.stufe b { font-size: 15px; font-weight: 900; }
.stufe .preis { font-size: 18px; font-weight: 900; color: var(--limette); margin-top: 4px; }
button.stufe.kauf { cursor: pointer; }
button.stufe.kauf:hover { border-color: var(--limette); }
.fuellstand { height: 8px; border-radius: 99px; background: var(--trenner); overflow: hidden; }
.fuellstand > div { height: 100%; background: var(--limette); border-radius: 99px; }
.karte.warnung { box-shadow: inset 0 0 0 2px var(--rot); }
.karte.warnung .fuellstand > div { background: var(--rot); }
label.hakenzeile.klein { align-items: flex-start; font-size: 12px; font-weight: 400; color: var(--leise); line-height: 1.4; }
label.hakenzeile.klein input { margin-top: 2px; }
button.schlicht.klein { font-size: 13px; font-weight: 700; color: var(--leise); text-decoration: underline; min-height: 44px; }
