/* =========================================
   LOUS WM-TIPP-SPIEL — style.css
   Mobile-first, große Touch-Targets, Spaß!
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800;900&display=swap');

/* --- Variablen (die "Farbkisten" 🎨) --- */
:root {
  --orange:    #FF6B35;
  --orange-shadow: #cc4400;
  --gruen:     #2ECC71;
  --gruen-shadow: #1a9952;
  --gelb:      #F9D423;
  --dunkel:    #1A1A2E;
  --dunkel2:   #16213E;
  --hell:      #FAFAFA;
  --grau:      #8899AA;
  --grau-hell: #C8D6E5;
  --rot:       #FF4757;
  --weiss-glas: rgba(255, 255, 255, 0.08);
  --weiss-rand: rgba(255, 255, 255, 0.15);
}

/* --- Reset & Grundeinstellungen --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Nunito', 'Comic Sans MS', 'Helvetica Neue', sans-serif;
  background: linear-gradient(160deg, var(--dunkel) 0%, var(--dunkel2) 100%);
  color: var(--hell);
  min-height: 100vh;
  min-height: 100dvh; /* modernes iOS */
  overscroll-behavior: none;
}

/* Allgemeine Helfer-Klasse zum Verstecken */
.versteckt { display: none !important; }

/* =========================================
   SCREEN-SYSTEM: Zimmer auf-/zumachen 🚪
   ========================================= */

.screen {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
}

.screen.aktiv {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Oben: Platz für den Datums-Simulator-Balken (~44px) */
  padding: calc(44px + env(safe-area-inset-top, 0px) + 16px) 20px calc(80px + env(safe-area-inset-bottom, 0px));
  animation: einblenden 0.25s ease;
}

@keyframes einblenden {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.screen-inner {
  width: 100%;
  max-width: 440px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =========================================
   TYPOGRAPHIE
   ========================================= */

h1 {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--hell);
}

h2 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--hell);
  margin-top: 4px;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--grau-hell);
  line-height: 1.5;
}

.wm-info {
  font-size: 0.85rem;
  color: var(--gelb);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-top: 4px;
}

.hinweis {
  font-size: 0.9rem;
  color: var(--grau-hell);
  margin-top: -4px;
}

.frage {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gelb);
  margin-top: 8px;
}

/* =========================================
   GROSSES EMOJI (Tipp-Illustration)
   ========================================= */

.big-emoji {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 4px;
}

/* =========================================
   SCHRITT-ANZEIGE ("Tipp 1 von 6")
   ========================================= */

.schritt-anzeige {
  display: inline-block;
  background: var(--gelb);
  color: var(--dunkel);
  padding: 5px 16px;
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-self: center;
}

/* =========================================
   BUTTONS — mindestens 56px hoch (Daumen!)
   ========================================= */

.btn {
  display: block;
  width: 100%;
  padding: 17px 24px;
  min-height: 56px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97) translateY(2px);
}

.btn-orange {
  background: var(--orange);
  color: var(--hell);
  box-shadow: 0 5px 0 var(--orange-shadow);
}

.btn-orange:active {
  box-shadow: 0 2px 0 var(--orange-shadow);
}

.btn-gruen {
  background: var(--gruen);
  color: var(--dunkel);
  box-shadow: 0 5px 0 var(--gruen-shadow);
}

.btn-gruen:active {
  box-shadow: 0 2px 0 var(--gruen-shadow);
}

.btn-grau {
  background: transparent;
  color: var(--grau-hell);
  border: 2px solid var(--weiss-rand);
  box-shadow: none;
}

/* =========================================
   DROPDOWN-AUSWAHL (Team-Listen)
   ========================================= */

.auswahl-feld {
  width: 100%;
  padding: 16px;
  min-height: 56px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--hell);
  background: var(--weiss-glas);
  border: 2px solid var(--weiss-rand);
  border-radius: 14px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23FAFAFA' d='M5 7l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

.auswahl-feld:focus {
  outline: none;
  border-color: var(--gelb);
}

.auswahl-feld option {
  background: var(--dunkel2);
  color: var(--hell);
}

/* =========================================
   TEXTFELD (Spieler-Freitext)
   ========================================= */

.text-feld {
  width: 100%;
  padding: 16px;
  min-height: 56px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--hell);
  background: var(--weiss-glas);
  border: 2px solid var(--weiss-rand);
  border-radius: 14px;
  caret-color: var(--gelb);
}

.text-feld::placeholder {
  color: var(--grau);
  font-weight: 400;
}

.text-feld:focus {
  outline: none;
  border-color: var(--gelb);
}

/* =========================================
   SPIELER-SCHNELLWAHL-KARTEN
   ========================================= */

.spieler-karten {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.spieler-karte {
  padding: 9px 16px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--hell);
  background: var(--weiss-glas);
  border: 2px solid var(--weiss-rand);
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.spieler-karte:active,
.spieler-karte.ausgewaehlt {
  background: var(--gelb);
  border-color: var(--gelb);
  color: var(--dunkel);
  transform: scale(1.05);
}

/* =========================================
   FORTSCHRITTSLEISTE (Checkpoints für Lou!)
   ========================================= */

.fortschritt {
  width: 100%;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fortschritt-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grau-hell);
}

.fortschritt-punkte {
  display: flex;
  gap: 8px;
  align-items: center;
}

.punkt {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--weiss-rand);
  display: inline-block;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.punkt.aktiv {
  background: var(--gelb);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(249, 212, 35, 0.6);
}

.punkt.erledigt {
  background: var(--gruen);
}

/* =========================================
   TIPP-NUMMER-BADGE ("Tipp 1 / 6")
   ========================================= */

.tipp-nummer-badge {
  display: inline-block;
  background: var(--weiss-glas);
  border: 1px solid var(--weiss-rand);
  color: var(--hell);
  padding: 5px 16px;
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  align-self: center;
}

/* =========================================
   TOGGLE: "Aus der Liste" / "Selbst schreiben"
   ========================================= */

.eingabe-toggle {
  display: flex;
  gap: 6px;
  background: var(--weiss-glas);
  border: 1px solid var(--weiss-rand);
  border-radius: 12px;
  padding: 4px;
}

.toggle-btn {
  flex: 1;
  padding: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  background: transparent;
  color: var(--grau-hell);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.toggle-btn.toggle-aktiv {
  background: var(--orange);
  color: var(--hell);
}

/* =========================================
   GROSSES TEXTFELD (Name-Eingabe)
   ========================================= */

.text-feld-gross {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
}

/* =========================================
   FEHLERMELDUNG
   ========================================= */

.fehler-meldung {
  background: rgba(255, 71, 87, 0.15);
  border: 1px solid var(--rot);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ff8fa0;
  text-align: left;
  animation: wackeln 0.3s ease;
}

.fehler-meldung.versteckt {
  display: none;
}

@keyframes wackeln {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  75%       { transform: translateX(6px); }
}

/* =========================================
   ZUSAMMENFASSUNG — Tipp-Boxen
   ========================================= */

.tipp-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--weiss-glas);
  border: 1px solid var(--weiss-rand);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
}

.tipp-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tipp-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.tipp-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grau-hell);
}

.tipp-wert {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gelb);
}

/* =========================================
   GESPEICHERT-SCREEN
   ========================================= */

.gespeichert-liste {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.gespeichert-datum {
  font-size: 0.75rem;
  color: var(--grau);
  margin-top: 8px;
}

/* =========================================
   RESPONSIVE: größere Bildschirme
   ========================================= */

@media (min-width: 480px) {
  h1      { font-size: 3rem; }
  h2      { font-size: 1.8rem; }
  .screen.aktiv { padding: calc(44px + env(safe-area-inset-top, 0px) + 24px) 24px calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* =========================================
   BOTTOM NAVIGATION
   ========================================= */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(22, 33, 62, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--weiss-rand);
  display: flex;
  align-items: stretch;
  z-index: 100;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--grau);
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.bottom-nav-item.aktiv {
  color: var(--orange);
}

/* Aktiv-Indikator: kleine Linie oben */
.bottom-nav-item.aktiv::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 3px;
  background: var(--orange);
  border-radius: 0 0 3px 3px;
}

.nav-emoji {
  font-size: 1.4rem;
  line-height: 1;
}

.nav-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =========================================
   SPIELTAG-MODUS — neue CSS-Regeln
   ========================================= */

/* --- Spieltag-Badge (orange Pill) --- */
.spieltag-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--hell);
  padding: 5px 16px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  align-self: center;
}

/* --- Countdown unter dem Titel --- */
.spieltag-countdown {
  font-size: 1rem;
  color: var(--grau-hell);
  font-weight: 700;
}

.spieltag-countdown.countdown-gesperrt {
  color: var(--rot);
}

/* --- Status-Chips --- */
.tipp-status-ok {
  display: inline-block;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid var(--gruen);
  color: var(--gruen);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 800;
  align-self: center;
}

.tipp-status-offen {
  display: inline-block;
  background: rgba(249, 212, 35, 0.15);
  border: 1px solid var(--gelb);
  color: var(--gelb);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 800;
  align-self: center;
}

.tipp-status-gesperrt {
  display: inline-block;
  background: rgba(255, 71, 87, 0.15);
  border: 1px solid var(--rot);
  color: #ff8fa0;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 800;
  align-self: center;
}

/* --- Spiel-Paarung: "Mexiko – Kanada" --- */
.spiel-paarung {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--hell);
  flex-wrap: wrap;
  line-height: 1.3;
}

.vs-trenner {
  color: var(--grau);
  font-weight: 700;
}

/* --- Anpfiff-Uhrzeit --- */
.spiel-uhrzeit {
  font-size: 0.85rem;
  color: var(--gelb);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-top: -4px;
}

/* --- Score-Eingabe: zwei Zahlenfelder mit ":" --- */
.score-input-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 4px 0;
}

.score-feld {
  width: 88px;
  height: 88px;
  font-family: inherit;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--hell);
  background: var(--weiss-glas);
  border: 2px solid var(--weiss-rand);
  border-radius: 16px;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
  caret-color: var(--gelb);
  -moz-appearance: textfield;
}

.score-feld::-webkit-inner-spin-button,
.score-feld::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.score-feld:focus {
  outline: none;
  border-color: var(--gelb);
  background: rgba(249, 212, 35, 0.08);
}

.ereignis-buttons-wrap {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 8px 0 16px;
}
.ereignis-btn {
  flex: 1;
  padding: 14px 8px;
  border: 2px solid var(--weiss-rand);
  border-radius: 14px;
  background: var(--weiss-glas);
  color: var(--hell);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ereignis-btn.ausgewaehlt {
  border-color: var(--gruen);
  background: rgba(46, 204, 113, 0.15);
  font-weight: 700;
}

.score-doppelpunkt {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--grau-hell);
  line-height: 1;
}

/* --- "Spiel 1 von 3" Anzeige --- */
.spiel-fortschritt {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grau-hell);
  text-align: center;
}

/* --- Zusammenfassung: eine Tipp-Zeile --- */
.spieltag-tipp-zeile {
  background: var(--weiss-glas);
  border: 1px solid var(--weiss-rand);
  border-radius: 14px;
  padding: 12px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.st-tipp-teams {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--hell);
}

.st-tipp-ergebnis {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gelb);
  line-height: 1.2;
}

.st-tipp-skip {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--grau);
}

.st-tipp-ereignis {
  font-size: 0.82rem;
  color: var(--grau-hell);
  font-weight: 700;
}

/* =========================================
   DATUMS-SIMULATOR 🕐
   Kleiner Balken oben zum Testen
   ========================================= */

.datum-simulator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  padding-top: calc(6px + env(safe-area-inset-top, 0px));
  height: calc(44px + env(safe-area-inset-top, 0px));
  background: rgba(22, 33, 62, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--weiss-rand);
}

.sim-label {
  font-size: 1rem;
  flex-shrink: 0;
  cursor: default;
  line-height: 1;
}

.sim-datum-feld {
  flex: 1;
  max-width: 160px;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--grau-hell);
  background: var(--weiss-glas);
  border: 1px solid var(--weiss-rand);
  border-radius: 8px;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
}

.sim-datum-feld:focus {
  outline: none;
  border-color: var(--gelb);
}

.sim-heute-btn {
  padding: 5px 12px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--grau-hell);
  background: var(--weiss-glas);
  border: 1px solid var(--weiss-rand);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.sim-heute-btn:active {
  background: var(--weiss-rand);
}

/* Wenn Simulation aktiv: gelber Rand als Hinweis */
.datum-simulator.simuliert-aktiv {
  border-bottom-color: var(--gelb);
}

.datum-simulator.simuliert-aktiv .sim-datum-feld {
  color: var(--gelb);
  border-color: var(--gelb);
}

/* ================================ */
/* SPIELER-SLIDESHOW                */
/* ================================ */

#screen-welcome {
  position: relative;
}

.spieler-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.spieler-slideshow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(22, 33, 62, 0.65);
  z-index: 1;
}

.spieler-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.spieler-slide.aktiv {
  opacity: 1;
}

#screen-welcome .screen-inner {
  position: relative;
  z-index: 2;
}

/* =============================== */
/* MEINE TIPPS SCREEN              */
/* =============================== */
.meine-tipps-wrapper {
  padding: 1.5rem 1rem 6rem;
  max-width: 480px;
  margin: 0 auto;
}
.mt-titel {
  text-align: center;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

/* Vor-Turnier-Sektion */
.mt-sektion {
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.2rem;
}
.mt-sektion-titel {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--grau);
  margin-bottom: 0.7rem;
}
.mt-vorturnier-liste {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mt-vt-zeile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mt-vt-icon { font-size: 1.1rem; flex-shrink: 0; }
.mt-vt-label {
  flex: 1;
  font-size: 0.85rem;
  color: var(--grau-hell);
}
.mt-vt-wert {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--weiss);
}

/* Stat-Karten */
.mt-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.mt-stat-karte {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.mt-stat-zahl {
  font-size: 2rem;
  font-weight: 900;
  color: var(--orange);
}
.mt-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grau);
}

/* Spiele-Tabelle */
.mt-tabelle-wrapper { overflow-x: auto; }
.mt-tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.mt-tabelle th {
  text-align: left;
  padding: 0.5rem 0.4rem;
  color: var(--grau);
  font-size: 0.7rem;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mt-tabelle td {
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}
.mt-tipp, .mt-ergebnis, .mt-punkte-zelle, .mt-ereignis-zelle {
  text-align: center;
  white-space: nowrap;
}
.mt-ereignis-zelle {
  font-size: 0.8rem;
  color: var(--grau-hell);
}
.mt-leer {
  text-align: center;
  color: var(--grau);
  padding: 2rem;
}
.mt-zeile-nicht-getippt td {
  opacity: 0.45;
}
.mt-nicht-getippt-label {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--grau-hell);
}


/* =============================================
   TEAMPUNKTE-SCREEN
   ============================================= */

.tp-wrapper {
  width: 100%;
  max-width: 440px;
  padding: 1.2rem 1.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  overflow-y: auto;
}

/* --- Header mit Gesamt-Punkte --- */
.tp-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.tp-emoji {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.tp-gesamt-zahl {
  font-size: 4rem;
  font-weight: 900;
  color: var(--gelb);
  line-height: 1;
  text-shadow: 0 2px 12px rgba(249, 212, 35, 0.4);
}

.tp-gesamt-label {
  font-size: 0.85rem;
  color: var(--grau);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tp-max-punkte {
  font-size: 0.78rem;
  color: var(--grau);
  margin-top: 0.15rem;
}

.tp-level-badge {
  margin-top: 0.5rem;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.45rem 1.1rem;
  border-radius: 99px;
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.45);
}

/* --- Fortschrittsbalken --- */
.tp-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tp-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--grau);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tp-progress-track {
  width: 100%;
  height: 18px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
}

.tp-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #ffab40);
  border-radius: 99px;
  transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.tp-next-level {
  font-size: 0.8rem;
  color: var(--grau);
  text-align: center;
  margin: 0;
}

/* --- Level-Liste --- */
.tp-level-liste {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tp-level-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  opacity: 0.5;
}

.tp-level-item.erreicht {
  border-color: var(--gruen);
  opacity: 0.8;
}

.tp-level-item.aktuell {
  border-color: var(--orange);
  background: rgba(255, 107, 53, 0.12);
  opacity: 1;
  animation: tp-puls 2s ease-in-out infinite;
}

@keyframes tp-puls {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
  50%       { box-shadow: 0 0 0 5px rgba(255, 107, 53, 0.2); }
}

.tp-level-item.preis {
  border-color: gold;
  background: rgba(255, 215, 0, 0.07);
}

.tp-level-item.preis .tp-level-text::before {
  content: "🎁 ";
}

.tp-level-num {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grau);
  min-width: 3.5rem;
}

.tp-level-item.aktuell .tp-level-num { color: var(--orange); }
.tp-level-item.erreicht .tp-level-num { color: var(--gruen); }

.tp-level-text {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hell);
}

.tp-level-ab {
  font-size: 0.72rem;
  color: var(--grau);
  white-space: nowrap;
}

.tp-level-check {
  font-size: 1.1rem;
  min-width: 1.4rem;
  text-align: right;
}

/* =========================================
   TIPPRUNDEN-LISTE
   ========================================= */

.trl-inner { align-items: flex-start; }

.trl-hinweis {
  width: 100%;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin: -4px 0 8px;
}

.trl-aktuell-card {
  width: 100%;
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  -webkit-tap-highlight-color: transparent;
}

.trl-aktuell-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.trl-aktuell-titel {
  font-size: 1.15rem;
  font-weight: 800;
}

.trl-aktuell-countdown {
  font-size: 0.85rem;
  opacity: 0.9;
}

.trl-aktuell-status {
  font-size: 0.8rem;
  margin-top: 4px;
}

.trl-liste {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.trl-abschnitt-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grau);
  padding: 4px 2px 2px;
}

.trl-tag {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.trl-tag-header {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--orange);
}

.trl-spiel {
  display: flex;
  align-items: center;
  padding: 9px 16px;
  border-top: 1px solid var(--weiss-rand);
  gap: 8px;
}

.trl-paarung {
  font-size: 0.85rem;
  font-weight: 600;
  flex: 1;
}

.ko-platzhalter {
  font-style: italic;
  opacity: 0.55;
  font-size: 0.9em;
}

.trl-uhrzeit {
  font-size: 0.75rem;
  color: var(--grau);
  white-space: nowrap;
}

.trl-ergebnis {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gelb);
  white-space: nowrap;
}

.trl-tipp-status {
  font-size: 0.85rem;
}

.trl-tipp-btn {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
  background: rgba(255, 107, 0, 0.12);
  border-radius: 20px;
  padding: 3px 10px;
}

.trl-tipp-ok {
  color: var(--gruen);
  background: rgba(39, 174, 96, 0.12);
}

/* =============================================
   LOGIN-SCREEN
   ============================================= */

/* screen-name wird durch Login ersetzt */
#screen-name { display: none !important; }

.login-spieler-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin: 8px 0 4px;
}

.login-spieler-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 8px;
  background: var(--weiss-glas);
  border: 2px solid var(--weiss-rand);
  border-radius: 16px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--hell);
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.login-spieler-btn:active,
.login-spieler-btn.ausgewaehlt {
  background: rgba(255, 107, 53, 0.2);
  border-color: var(--orange);
  color: var(--orange);
  transform: scale(1.05);
}

.login-name-anzeige {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gelb);
  margin: 12px 0 4px;
  text-align: center;
}

.btn-abmelden {
  position: absolute;
  top: calc(50px + env(safe-area-inset-top, 0px));
  right: 16px;
  z-index: 10;
  background: var(--weiss-glas);
  border: 1px solid var(--weiss-rand);
  border-radius: 20px;
  color: var(--grau-hell);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* =============================================
   TEAMPUNKTE — neue Rangliste
   ============================================= */

.teampunkte-liste {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.teampunkte-zeile {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--weiss-glas);
  border: 1px solid var(--weiss-rand);
  border-radius: 14px;
  padding: 14px 16px;
}

.teampunkte-ich {
  border-color: var(--orange);
  background: rgba(255, 107, 53, 0.12);
}

.tp-rang {
  font-size: 1.4rem;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.tp-name {
  flex: 1;
  font-weight: 800;
  color: var(--hell);
  font-size: 1rem;
}

.tp-punkte {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gelb);
  min-width: 48px;
  text-align: right;
}

.teampunkte-laden {
  text-align: center;
  color: var(--grau);
  padding: 2rem 0;
  font-weight: 700;
}
