/* WasteWarrior — Styles. Mobile-first, Dark-Eco-Theme, game-artig. */

:root {
  --bg: #0b1a12;
  --bg-2: #0f2418;
  --card: #14311f;
  --card-2: #1b3d28;
  --accent: #38e07b;
  --accent-2: #2bb35f;
  --gold: #ffce4d;
  --text: #eaf5ee;
  --muted: #8fb39c;
  --danger: #ff6b6b;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }

/* ---------- Buttons ---------- */
.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background: var(--card-2);
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #062012;
}
.btn.primary:disabled { filter: grayscale(0.7) brightness(0.7); cursor: not-allowed; }
.btn.big { width: 100%; padding: 16px; font-size: 1.08rem; }
.btn.tiny { padding: 6px 10px; font-size: 0.8rem; }

/* ---------- Onboarding ---------- */
.screen {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(56, 224, 123, 0.18), transparent 60%),
    var(--bg);
  display: flex;
  align-items: flex-start; /* zentriert per margin-block:auto, ohne oben abzuschneiden */
  justify-content: center;
  padding: 24px;
}
.onboard-inner { width: 100%; max-width: 420px; text-align: center; margin-block: auto; }
.logo { font-size: 4rem; filter: drop-shadow(0 0 18px rgba(56, 224, 123, 0.5)); }
.onboard-inner h1 { font-size: 2.4rem; margin: 8px 0 4px; letter-spacing: -0.5px; }
.onboard-inner h1 span { color: var(--accent); }
.tagline { color: var(--muted); line-height: 1.5; margin: 0 0 22px; }
.how { list-style: none; padding: 0; margin: 0 0 22px; text-align: left; }
.how li {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px;
}
.how li span {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #062012;
  display: grid; place-items: center; font-weight: 800;
}
.field { display: block; text-align: left; margin-bottom: 16px; }
.field span { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--card-2); background: var(--card); color: var(--text);
  font-size: 1rem;
}
.field input:focus { outline: none; border-color: var(--accent); }
.hint { color: var(--muted); font-size: 0.78rem; margin-top: 14px; }
.how-extra { text-align: left; color: var(--muted); font-size: 0.85rem; line-height: 1.45; margin: -10px 0 16px; }
.how-extra + .how-extra { margin-top: -8px; }
.onboard-inner .field-hint { display: block; margin-top: 4px; font-size: 0.76rem; color: var(--muted); font-weight: 400; line-height: 1.35; text-align: left; }

/* Social-Login (Demo) */
.social-login { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.btn.social {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px; font-size: 0.98rem; font-weight: 600;
}
.btn.social .mark {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 0.9rem;
}
.btn.social.google { background: #fff; color: #1f1f1f; }
.btn.social.google .mark { background: #fff; color: #4285f4; font-family: Georgia, serif; }
.btn.social.facebook { background: #1877f2; color: #fff; }
.btn.social.apple { background: #000; color: #fff; }
.divider {
  display: flex; align-items: center; gap: 12px; color: var(--muted);
  font-size: 0.82rem; margin: 16px 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--card-2);
}

/* Auth-Views (Start / Login / Registrieren) */
.auth-view .btn.big + .btn.big { margin-top: 10px; }
.auth-title { font-size: 1.5rem; margin: 4px 0 18px; }

.community-badge {
  display: inline-block; margin: 0 auto 18px; padding: 8px 16px;
  background: rgba(56, 224, 123, 0.12); border: 1px solid rgba(56, 224, 123, 0.35);
  border-radius: 999px; font-size: 0.9rem; color: var(--text);
}
.community-badge b { color: var(--accent); }
.community-badge { transition: opacity 0.3s ease; }
.community-badge.is-loading { opacity: 0; }
/* Einzeilig, damit sich die Höhe beim Nachladen nicht ändert */
.community-badge { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  font-size: clamp(0.78rem, 3.7vw, 0.9rem); }

.guest-input {
  width: 100%; padding: 13px 14px; margin-bottom: 10px;
  border-radius: 12px; border: 1px solid var(--card-2);
  background: var(--card); color: var(--text); font-size: 1rem; text-align: center;
}
.guest-input:focus { outline: none; border-color: var(--accent); }
.guest-input::placeholder { color: var(--muted); }

.auth-links { color: var(--muted); font-size: 0.9rem; margin-top: 16px; }
.linkbtn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--accent); font-weight: 700; font-size: 0.9rem; text-decoration: underline;
}
.legal-link { text-align: center; font-size: 0.78rem; margin-top: 18px; }
.legal-link a { color: var(--muted); }
.auth-back.small {
  align-self: flex-start; width: auto; margin: 0 0 6px; padding: 6px 4px;
  font-size: 0.9rem;
}
#auth-login, #auth-register { display: flex; flex-direction: column; }
.btn.secondary { background: transparent; border: 1px solid var(--card-2); color: var(--text); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:active { color: var(--text); }
.auth-error {
  color: #ffd9d9; background: rgba(255, 107, 107, 0.12);
  border: 1px solid var(--danger); border-radius: 10px;
  padding: 9px 12px; font-size: 0.85rem; text-align: left; margin: 2px 0 12px;
}
#login-btn, #register-btn { margin-top: 4px; }

/* ---------- AR-Sammelmodus ---------- */
.cap-mode { margin: 4px 0 12px; }

/* AR-Ansicht: Unteransicht des Sammeln-Reiters (über der Karte, unter HUD/Umschalter/Nav) */
#ar-view { position: absolute; inset: 0; z-index: 2; background: #000; overflow: hidden; }
#ar-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#ar-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%); }
#ar-scanlines { position: absolute; inset: 0; pointer-events: none; z-index: 4; opacity: 0.05;
  background: repeating-linear-gradient(0deg, #fff 0, #fff 1px, transparent 1px, transparent 3px); }
/* Wurf-Fläche (Fadenkreuz + Kugel, js/ar-throw-engine.js). touch-action: none
   verhindert Scrollen/Pull-to-refresh beim Wischen. */
#ar-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5;
  touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
#ar-canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }

/* Hinweis direkt über dem Fadenkreuz (Fadenkreuz-Radius = 11,25 % der Höhe) */
#ar-hint {
  position: absolute; bottom: calc(61.25% + 16px); left: 16px; right: 16px; z-index: 9;
  text-align: center; color: #eaf5ee; font-size: 0.9rem; font-weight: 600; pointer-events: none;
  transition: opacity 0.5s ease; text-shadow: 0 1px 4px rgba(0,0,0,0.75);
}

/* Wurf-Feedback („Perfekt!", „Zu schwach" …) über dem Fadenkreuz, an der
   Stelle des Hinweises (der beim ersten Wurf ausgeblendet wird) */
#ar-feedback {
  position: absolute; left: 50%; bottom: calc(61.25% + 10px); z-index: 9; pointer-events: none;
  transform: translate(-50%, 0); text-align: center; white-space: nowrap; opacity: 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.75);
}
#ar-feedback b { display: block; font-size: 1.6rem; font-weight: 900; color: var(--text); }
#ar-feedback small { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-top: 2px; }
#ar-feedback.hit b { color: var(--accent); }
#ar-feedback.miss b { color: var(--danger); }
#ar-feedback.show { animation: arFeedback 1.3s ease forwards; }
@keyframes arFeedback {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.7); }
  15% { opacity: 1; transform: translate(-50%, 0) scale(1.08); }
  25% { transform: translate(-50%, 0) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -24px); }
}

#ar-error {
  position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; padding: 32px; text-align: center;
  background: var(--bg); color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  #ar-feedback.show { animation: arFeedbackFade 1.3s linear forwards; }
}
@keyframes arFeedbackFade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* Bestätigungs-Modal */
#confirm-modal { align-items: center; }
.confirm-card { max-width: 360px; text-align: center; border-radius: 20px; }
.confirm-card h2 { margin: 0 0 8px; }
.confirm-actions { display: flex; gap: 10px; margin-top: 20px; }
.confirm-actions .btn { flex: 1; }
.btn.danger { background: var(--danger); color: #fff; }

/* ---------- App / Map ---------- */
#app { position: fixed; inset: 0; }
#map { position: absolute; inset: 0; z-index: 1; background: var(--bg-2); }

/* Leaflet-Marker */
.ww-player-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: #2f9bff; border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(47, 155, 255, 0.35), 0 2px 6px rgba(0,0,0,0.5);
}
.ww-cleanup-pin {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: rotate(-45deg);
  display: grid; place-items: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
}
.ww-cleanup-pin { font-size: 16px; }
.ww-cleanup-pin::first-line { line-height: 1; }
.ww-cleanup-icon > .ww-cleanup-pin > * { transform: rotate(45deg); }
.ww-cleanup-pin.report {
  background: linear-gradient(135deg, #ffb302, #ff8a00);
}
.ww-cleanup-pin.done { position: relative; }
.ww-cleanup-pin .pin-done { position: absolute; top: -5px; right: -5px; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; color: #128a43; font-size: 10px; font-weight: 900; line-height: 15px; text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.ww-player-icon.approx .ww-player-dot { background: #8a948f; box-shadow: 0 0 0 4px rgba(138,148,143,0.3), 0 2px 6px rgba(0,0,0,0.5); }
.player-approx-tip { background: rgba(11,26,18,0.92); color: #eaf5ee; border: 1px solid #8a948f; font-weight: 700; font-size: 0.75rem; }
.player-approx-tip::before { border-top-color: #8a948f !important; }
.map-pick-hint { font-size: 0.75rem; color: #3b4a40; margin-top: 6px; max-width: 190px; }
/* GPS-Hinweis mit Kartenwahl */
#demo-badge { display: flex; align-items: center; gap: 8px; cursor: pointer; }
#demo-badge.hidden { display: none; }
#demo-badge .gb-pick { border: none; border-radius: 999px; background: #3a2c00; color: #ffce4d; font: inherit;
  font-weight: 800; font-size: 0.75rem; padding: 5px 10px; cursor: pointer; white-space: nowrap; }
@media (max-width: 899px) {
  #demo-badge.with-pick { left: 58px; right: 14px; max-width: none; white-space: normal; justify-content: space-between;
    border-radius: 14px; padding: 6px 6px 6px 12px; top: calc(env(safe-area-inset-top, 8px) + 112px); }
}
/* Kamera fehlt: Vorschau einklappen */
#cap-photo-step.cam-failed .cam-wrap, #cap-photo-step.cam-failed #cap-live-actions { display: none; }
.cam-error .btn.big { width: 100%; margin-bottom: 8px; }
.cap-publish { margin: 10px 0 8px; line-height: 1.4; }
.log-add-btn { margin-top: 12px; }
.ri-cond { font-size: 0.8rem; color: var(--text); margin-top: 4px; line-height: 1.35; }
.ri-why { font-size: 0.78rem; color: var(--gold); margin-top: 2px; line-height: 1.35; }
.ri-why:empty { display: none; }

/* HUD */
#hud {
  position: absolute; top: 0; left: 0; right: 0; z-index: 400;
  display: flex; justify-content: space-between; gap: 12px;
  padding: calc(env(safe-area-inset-top, 8px) + 8px) 14px 10px;
  background: linear-gradient(180deg, rgba(11,26,18,0.92), rgba(11,26,18,0));
  pointer-events: none;
}
.hud-left, .hud-right { pointer-events: auto; }
.hud-credits {
  display: flex; align-items: center; gap: 6px;
  font-size: 1.5rem; font-weight: 800;
  background: rgba(20,49,31,0.85); border-radius: 12px; padding: 6px 12px;
  backdrop-filter: blur(6px);
}
.hud-credits .coin { color: var(--gold); }
.hud-today { font-size: 0.75rem; color: var(--muted); margin-top: 4px; text-align: center; }
.hud-rank {
  margin-top: 6px; align-self: flex-start; cursor: pointer;
  background: rgba(20, 49, 31, 0.85); backdrop-filter: blur(6px);
  border-radius: 10px; padding: 5px 10px; font-size: 0.8rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
}
.hud-rank .rk { color: var(--gold); }
.hud-right { min-width: 130px; }
.hud-level-box { background: rgba(20,49,31,0.85); border-radius: 10px; padding: 6px 10px 7px; backdrop-filter: blur(6px); }
.hud-level-row { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 0.9rem; }
.hud-level-box .progress { margin-top: 5px; height: 6px; }
.hud-level-row .muted { font-weight: 500; }
.progress { height: 7px; border-radius: 6px; background: rgba(255,255,255,0.12); overflow: hidden; margin-top: 6px; }
.progress.big { height: 10px; margin: 12px 0 4px; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width 0.5s ease; }

#demo-badge {
  position: absolute; top: calc(env(safe-area-inset-top, 8px) + 74px); left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  z-index: 400; background: rgba(255,206,77,0.95); color: #3a2c00;
  font-size: 0.72rem; font-weight: 700; padding: 5px 12px; border-radius: 20px;
}

@media (max-width: 899px) {
  /* Handy: rechts unter der Level-Box, damit der Rang-Knopf frei bleibt */
  #demo-badge { left: auto; right: 14px; transform: none; max-width: calc(100vw - 140px);
    overflow: hidden; text-overflow: ellipsis; }
  #demo-badge .desk-only { display: none; }
}
/* Breite Screens: Hinweis-Pille auf Höhe des Battle-Buttons */
@media (min-width: 900px) {
  #demo-badge { top: calc(env(safe-area-inset-top, 8px) + 8px); height: 40px; display: flex; align-items: center;
    border-radius: 12px; font-size: 0.85rem; padding: 0 14px; }
}

/* Erfassungs-Umschalter (Karte | AR) – ersetzt den FAB */
#capture-switch {
  position: absolute; z-index: 450;
  left: 50%; transform: translateX(-50%);
  bottom: calc(78px + var(--safe-b));
  display: flex; gap: 6px; padding: 6px;
  background: rgba(11, 26, 18, 0.9); border: 1px solid var(--card-2);
  border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); backdrop-filter: blur(6px);
}
.cap-sw {
  border: none; background: transparent; color: var(--muted);
  font-weight: 800; font-size: 1rem; padding: 13px 24px; border-radius: 999px;
  cursor: pointer; transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.cap-sw:active { transform: scale(0.97); }
.cap-sw.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #062012; box-shadow: 0 3px 12px rgba(56, 224, 123, 0.4);
}

/* Panels (Log / Profil) */
.panel {
  position: absolute; z-index: 420;
  top: 0; left: 0; right: 0;
  bottom: calc(64px + var(--safe-b));
  overflow-y: auto;
  background: var(--bg);
  /* extra unten, damit der schwebende Karte/AR-Umschalter Inhalte nicht verdeckt */
  padding: calc(env(safe-area-inset-top, 8px) + 16px) 16px 96px;
}
.panel h2 { margin: 0 0 14px; }
.panel h3 { margin: 22px 0 10px; }

/* Log */
.log-group {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  margin: 18px 2px 8px; font-weight: 700; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent);
}
.log-group:first-child { margin-top: 0; }
.log-group-meta {
  color: var(--muted); font-weight: 500; font-size: 0.78rem;
  text-transform: none; letter-spacing: 0;
}
.log-row {
  display: flex; gap: 12px; align-items: center;
  background: var(--card); border-radius: 12px; padding: 8px; margin-bottom: 10px;
}
.log-thumb {
  width: 56px; height: 56px; border-radius: 10px; object-fit: cover;
  background: var(--card-2); flex: none;
}
.log-thumb.placeholder { display: grid; place-items: center; font-size: 1.6rem; }
.log-name { font-weight: 700; }
.log-sub { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.empty { color: var(--muted); text-align: center; margin-top: 40px; line-height: 1.5; }

/* Profil */
.profil-head { display: flex; align-items: center; gap: 14px; }
.profil-avatar {
  width: 60px; height: 60px; border-radius: 50%; flex: none;
  background: var(--card-2); display: grid; place-items: center; font-size: 2rem;
}
.profil-name { font-size: 1.3rem; font-weight: 800; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.stat { background: var(--card); border-radius: 12px; padding: 14px 8px; text-align: center; }
.stat-val { font-size: 1.3rem; font-weight: 800; }
.stat-lbl { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

.badge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.badge {
  background: var(--card); border-radius: 12px; padding: 12px;
  display: flex; flex-direction: column; gap: 3px;
  border: 1px solid transparent;
}
.badge.earned { border-color: var(--accent); }
.badge.locked { opacity: 0.5; }
.btn.logout {
  width: 100%; margin: 22px 0 8px; background: transparent;
  border: 1px solid var(--danger); color: var(--danger); font-weight: 700;
}
.btn.logout:active { background: rgba(255, 107, 107, 0.12); }

.badge-icon { font-size: 1.6rem; }
.badge-name { font-weight: 700; font-size: 0.9rem; }
.badge-desc { font-size: 0.74rem; color: var(--muted); }

/* Segment-Tabs (regionale Bestenliste) */
.seg {
  display: flex; gap: 6px; margin: 16px 0 8px;
  background: var(--card); border: 1px solid var(--card-2);
  border-radius: 999px; padding: 5px;
}
.seg-btn {
  flex: 1; border: none; background: transparent; color: var(--muted);
  padding: 10px 8px; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 0.9rem; white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #062012; box-shadow: 0 3px 12px rgba(56, 224, 123, 0.35);
}

/* Bestenliste */
.leaderboard { margin-top: 14px; }
.lb-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
  border: 1px solid transparent;
}
.lb-row.me { border-color: var(--accent); background: var(--card-2); }
.lb-rank { width: 30px; text-align: center; font-weight: 800; font-size: 1.1rem; flex: none; }
.lb-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--bg-2); display: grid; place-items: center; font-size: 1.3rem;
}
.lb-meta { flex: 1; min-width: 0; }
.lb-name { font-weight: 700; }
.lb-you {
  background: var(--accent); color: #062012; font-size: 0.68rem; font-weight: 800;
  padding: 1px 7px; border-radius: 10px; margin-left: 6px; vertical-align: middle;
}
.lb-sub { font-size: 0.78rem; }
.lb-credits { font-weight: 800; color: var(--gold); flex: none; }

/* Prämien */
.praemien-balance {
  background: var(--card-2); border-radius: 12px; padding: 12px 14px;
  margin: 14px 0; font-size: 1rem;
}
.praemien-balance b { color: var(--gold); font-size: 1.15rem; }
.rewards { display: flex; flex-direction: column; gap: 10px; }
.reward-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: 14px; padding: 12px;
  border: 1px solid transparent;
}
.reward-item.unlocked { border-color: var(--accent); }
.reward-item.locked { opacity: 0.7; }
.ri-icon {
  width: 48px; height: 48px; border-radius: 12px; flex: none;
  background: var(--bg-2); display: grid; place-items: center; font-size: 1.6rem;
}
.ri-meta { flex: 1; min-width: 0; }
.ri-name { font-weight: 700; }
.ri-partner { font-size: 0.78rem; }
.ri-action { flex: none; text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.ri-cost { font-weight: 800; color: var(--gold); font-size: 0.85rem; }

.voucher-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.35rem; font-weight: 800; letter-spacing: 1px;
  background: var(--bg-2); border: 1px dashed var(--accent);
  border-radius: 10px; padding: 12px; margin: 14px 0;
}

/* Bottom-Nav */
#nav {
  position: absolute; z-index: 460; left: 0; right: 0; bottom: 0;
  height: calc(64px + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: flex; background: var(--bg-2); border-top: 1px solid var(--card-2);
}
.nav-btn {
  flex: 1; border: none; background: none; color: var(--muted);
  font-size: 1.4rem; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; gap: 2px; padding-top: 8px;
}
.nav-btn span { font-size: 0.68rem; }
.nav-btn.active { color: var(--accent); }

/* ---------- Modal (Sammel-Dialog) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(4, 12, 8, 0.85);
  display: flex; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(3px);
}
.modal-card {
  width: 100%; max-width: 520px; max-height: 94vh; overflow-y: auto;
  background: var(--bg); border-radius: 20px 20px 0 0;
  padding: 20px 18px calc(20px + var(--safe-b));
  position: relative; box-shadow: var(--shadow);
}
@media (min-width: 560px) {
  .modal { align-items: center; }
  .modal-card { border-radius: 20px; }
}
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: var(--card-2); color: var(--text); font-size: 1rem; cursor: pointer;
}
.step h2, .step h3 { margin: 4px 0 14px; }

.cam-wrap {
  border-radius: 14px; overflow: hidden; background: #000;
  width: 100%; height: min(52vh, 480px); margin-bottom: 14px;
  display: grid; place-items: center;
}
#cap-video, .cam-shot { width: 100%; height: 100%; object-fit: cover; }

/* 2-Foto-Erfassung (capture.js) */
.cap-progress {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 2px 40px 12px;
}
.cap-dot {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 800;
  background: var(--card-2); color: var(--muted);
}
.cap-dot.active { background: var(--accent); color: #062312; }
.cap-dot.done { background: rgba(56,224,123,0.25); color: var(--accent); }
.cap-line { flex: 1; max-width: 48px; height: 2px; background: var(--card-2); }
.cap-back { margin-bottom: 6px; }
.cap-hint { margin: -8px 0 12px; }
.cap-shot-actions { display: flex; gap: 10px; }
.cap-shot-actions .btn { flex: 1; min-width: 0; height: 54px; padding: 0 12px; }
.cap-shot-actions .btn.upload { margin-top: 0; }

.cap-thumbs { position: relative; display: flex; align-items: flex-start; justify-content: center; gap: 10px; margin: 0 0 12px; }
#cap-edit-photos { position: absolute; left: 0; top: 0; }
.cap-thumb { margin: 0; text-align: center; font-size: 0.72rem; color: var(--muted); }
.cap-thumb img {
  display: block; width: 88px; height: 88px; border-radius: 12px;
  object-fit: cover; background: var(--card-2); margin-bottom: 4px;
}
.cap-type-fixed {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: var(--card); border-radius: 12px; padding: 10px 12px;
}
.cap-type-fixed .type-icon { font-size: 1.4rem; }

.cap-verify {
  border-radius: 12px; padding: 10px 12px; margin: 14px 0;
  background: var(--card); border: 1px solid var(--card-2);
}
.cap-verify.ok { background: rgba(56,224,123,0.12); border-color: var(--accent); }
.cap-verify.warn { background: rgba(255,107,107,0.12); border-color: var(--danger); }
.cap-verify.loading { opacity: 0.8; }
.cap-verify-head { font-weight: 700; }
.cap-verify-list { list-style: none; margin: 6px 0 0; padding: 0; font-size: 0.88rem; line-height: 1.5; }
.cap-verify-note { margin-top: 6px; color: var(--muted); }
.btn.upload {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 10px; background: var(--card-2); cursor: pointer;
}
.cam-error { background: rgba(255,107,107,0.12); border: 1px solid var(--danger);
  border-radius: 12px; padding: 12px; margin-bottom: 12px; color: #ffd9d9; }
.cam-error p { margin: 0 0 10px; }

.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.type-card {
  --rarity: var(--muted);
  border: 2px solid transparent; border-radius: 12px;
  background: var(--card); color: var(--text);
  padding: 10px 6px; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: border-color 0.12s ease, transform 0.08s ease;
}
.type-card:active { transform: scale(0.96); }
.type-card.selected { border-color: var(--rarity); background: var(--card-2); }
.type-icon { font-size: 1.7rem; }
.type-name { font-size: 0.72rem; line-height: 1.15; }
.type-credits { font-size: 0.72rem; font-weight: 800; color: var(--gold); }

.loc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border-radius: 12px; padding: 10px 12px; margin-top: 14px;
}
.loc-info { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; min-width: 0; }
.loc-info #loc-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-icon { flex: none; }

.loc-card { display: flex; flex-direction: column; }
#loc-map {
  height: 46vh; min-height: 260px; border-radius: 14px; margin: 12px 0;
  background: var(--bg-2);
}
.loc-actions { display: flex; gap: 10px; }
.loc-actions .btn { flex: 1; }

.btn.report {
  margin-top: 10px;
  background: linear-gradient(135deg, #ffb302, #ff8a00); color: #3a2600;
}
.btn.report:disabled { filter: grayscale(0.7) brightness(0.7); cursor: not-allowed; }
.report-hint { margin: 8px 2px 0; text-align: center; }

/* Melde-Anleitung im Overlay */
.report-steps { text-align: left; margin: 14px 0; padding-left: 20px; line-height: 1.5; }
.report-steps li { margin-bottom: 6px; }
.report-text {
  width: 100%; background: var(--bg-2); color: var(--muted);
  border: 1px solid var(--card-2); border-radius: 10px; padding: 10px;
  font-size: 0.82rem; resize: none; margin-bottom: 14px;
}
.report-actions { display: flex; gap: 10px; }
.report-actions .btn { flex: 1; text-decoration: none; text-align: center; }

/* ---------- Reward-Overlay ---------- */
.reward-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(4, 12, 8, 0.9);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.reward-card {
  width: 100%; max-width: 380px; text-align: center;
  background: var(--card); border-radius: 20px; padding: 26px 22px;
  border: 1px solid var(--accent); box-shadow: 0 0 40px rgba(56,224,123,0.3);
}
.reward-icon { font-size: 3.4rem; }
.reward-title { font-size: 1.2rem; font-weight: 700; margin-top: 6px; }
.reward-credits { font-size: 1.8rem; font-weight: 900; color: var(--gold); margin: 8px 0; }
.reward-levelup {
  background: var(--gold); color: #3a2c00; font-weight: 800;
  border-radius: 10px; padding: 8px; margin: 10px 0;
}
.reward-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; }
.reward-badge { background: var(--card-2); border-radius: 20px; padding: 6px 12px; font-size: 0.85rem; }
.reward-fact { color: var(--muted); font-size: 0.9rem; line-height: 1.5; margin: 14px 0 18px; }
.celebrate .reward-card { animation: pop 0.35s ease; }
/* Einlösen an der Theke */
.redeem-cost { color: var(--gold); font-weight: 800; margin: 10px 0 4px; }
.redeem-handover { font-weight: 700; margin: 14px 0; }
.redeem-hold { position: relative; overflow: hidden; width: 100%; min-height: 64px; border: none; border-radius: 16px;
  background: var(--card-2); color: var(--text); font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; margin-bottom: 10px; }
.redeem-hold-fill { position: absolute; inset: 0; width: 0; background: var(--accent); }
.redeem-hold.holding .redeem-hold-fill { width: 100%; transition: width 1s linear; }
.redeem-hold.busy .redeem-hold-fill { width: 100%; }
.redeem-hold-label { position: relative; }
.redeem-hold.holding .redeem-hold-label, .redeem-hold.busy .redeem-hold-label { color: #062312; }
.reward-overlay.redeem-ok { background: #1f9d55; }
.redeem-done { border-color: #fff; }
.redeem-check { width: 96px; height: 96px; margin: 0 auto 6px; border-radius: 50%; background: var(--accent); color: #062312;
  display: grid; place-items: center; font-size: 3.4rem; font-weight: 900; animation: redeem-pulse 1.6s ease-in-out infinite; }
.redeem-done-title { font-size: 1.6rem; font-weight: 900; }
.redeem-clock { font-size: 2.4rem; font-weight: 900; font-variant-numeric: tabular-nums; margin-top: 14px; }
.redeem-ago { color: var(--accent); font-weight: 700; }
@keyframes redeem-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(56,224,123,0.6); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(56,224,123,0); } }
@keyframes pop { 0% { transform: scale(0.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 950; left: 50%; bottom: 140px; transform: translateX(-50%) translateY(20px);
  background: var(--card-2); color: var(--text); padding: 12px 18px; border-radius: 24px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: all 0.25s ease;
  max-width: 90vw; text-align: center; font-weight: 600;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.snackbar {
  position: fixed; z-index: 960; left: 50%; bottom: 140px; transform: translateX(-50%) translateY(20px);
  background: var(--accent); color: #062312; border: none; padding: 12px 18px; border-radius: 24px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: all 0.25s ease;
  max-width: 90vw; font: inherit; font-weight: 700; cursor: pointer;
}
.snackbar.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }

/* Prämien-Orte auf der Karte */
.offer-pin { background: none; border: none; }
.offer-pin-inner { display: flex; flex-direction: column; align-items: center; gap: 1px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.offer-emoji { font-size: 26px; line-height: 36px; }
.offer-radius { font-size: 10px; font-weight: 800; line-height: 1; padding: 2px 5px; border-radius: 8px;
  background: #f5c542; color: #3a2a00; white-space: nowrap; }
.offer-pop-meta { font-size: 0.8rem; margin: 4px 0 8px; opacity: 0.8; }

.push-box { margin: 18px 0 6px; }
.push-box .btn { width: 100%; }
.push-box p { margin: 6px 2px 0; }

/* ---------- Battle ---------- */
.hud-battle { margin-left: auto; align-self: flex-start; pointer-events: auto;
  height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(245, 197, 66, 0.5);
  background: rgba(245, 197, 66, 0.15); color: #f5c542; font: inherit; font-weight: 800;
  font-size: 0.95rem; line-height: 1; white-space: nowrap; cursor: pointer; }
.hud-battle:active { transform: scale(0.94); }
.battle-banner {
  position: fixed; z-index: 470; left: 50%; transform: translateX(-50%);
  top: calc(env(safe-area-inset-top, 8px) + 76px);
  background: #f5c542; color: #3a2a00; border: none; border-radius: 999px;
  padding: 8px 16px; font: inherit; font-weight: 800; box-shadow: var(--shadow); cursor: pointer;
  white-space: nowrap;
}
.battle-durations { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.chip-btn { flex: 1; min-width: 64px; padding: 10px 8px; border-radius: 12px; border: 1px solid var(--card-2);
  background: var(--card); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.chip-btn.active { background: var(--accent); color: #062312; border-color: var(--accent); }
.battle-qr { background: #fff; border-radius: 14px; padding: 10px; width: min(260px, 70vw); margin: 6px auto 10px; }
.battle-qr svg { display: block; width: 100%; height: auto; }
.battle-code { text-align: center; margin-bottom: 12px; }
.battle-code b { letter-spacing: 0.15em; font-size: 1.15rem; }
.battle-members, .battle-ranking { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.battle-members li, .battle-ranking li { background: var(--card); border-radius: 10px; padding: 10px 12px;
  display: flex; justify-content: space-between; gap: 10px; }
.battle-ranking { counter-reset: rk; }
.battle-ranking li::before { counter-increment: rk; content: counter(rk) "."; font-weight: 800; color: var(--muted); margin-right: 4px; }
.battle-ranking li span { flex: 1; }
.battle-ranking li.me { outline: 2px solid var(--accent); }
.battle-card .btn.big + .btn.big { margin-top: 10px; }
.battle-scan-wrap { position: relative; border-radius: 14px; overflow: hidden; background: #000;
  width: 100%; height: min(42vh, 360px); margin: 6px 0 10px; }
.battle-scan-wrap video { width: 100%; height: 100%; object-fit: cover; }
.battle-scan-frame { position: absolute; inset: 18%; border: 3px solid rgba(245, 197, 66, 0.9); border-radius: 16px; pointer-events: none; }
.battle-code-form { display: flex; gap: 8px; margin-top: 8px; }
.battle-code-form input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 0.1em; }
.battle-card .btn.ghost.small { margin-bottom: 6px; }
.battle-code-form input { background: var(--card); color: var(--text); border: 1px solid var(--card-2);
  border-radius: 12px; padding: 12px; font: inherit; }

/* Direkt melden (1 Foto) + bestehende Stadt-Meldungen */
.cap-report-direct { margin-top: 10px; width: 100%; }
.cap-dupes { border: 1px solid #f5c542; background: rgba(245, 197, 66, 0.1); border-radius: 12px;
  padding: 10px 12px; margin: 0 0 12px; font-size: 0.88rem; }
.cap-dupes b { display: block; margin-bottom: 4px; }
.cap-dupes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cap-dupes a { color: #f5c542; }
.city-pin { font-size: 18px; line-height: 26px; text-align: center; opacity: 0.9;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }

/* Karte: Fadenkreuz statt Greifhand (Tipp = Fund-Ort wählen), beim Ziehen Hand */
#map.leaflet-container { cursor: crosshair; }
#map.leaflet-container.leaflet-dragging,
#map.leaflet-dragging .leaflet-grab { cursor: grabbing; }
#map .leaflet-marker-icon.leaflet-interactive { cursor: pointer; }
.map-pick-pin { font-size: 24px; line-height: 28px; text-align: center; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.map-pick-popup .leaflet-popup-content { margin: 8px 10px; }
.map-pick-btn { white-space: nowrap; }
/* Einträge anderer Spieler:innen: kleiner, gedämpft */
.ww-cleanup-pin.other { transform: scale(0.75); opacity: 0.75; filter: saturate(0.6); }
.ww-locate-btn { width: 34px; height: 34px; background: #fff; border: none; font-size: 16px; line-height: 34px;
  cursor: pointer; padding: 0; }
.ww-locate-btn:hover { background: #f4f4f4; }
/* Karten-Steuerung (Zoom, 📍) unter die Kopfzeile schieben */
#map .leaflet-top { top: calc(env(safe-area-inset-top, 0px) + 112px); }

/* ---------- Battle-Dialog im Illustrations-Look ---------- */
.battle-card {
  --bc-lime: #b6f25a;
  --bc-green: #4fe06a;
  --bc-ink: #0d2a17;
  max-width: 640px;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(120, 230, 90, 0.18), transparent 55%),
    linear-gradient(160deg, #135a2e 0%, #0e3f22 55%, #0b3019 100%);
  border: 2px solid rgba(140, 240, 110, 0.55);
  box-shadow:
    0 0 0 1px rgba(20, 60, 30, 0.6),
    0 0 28px rgba(110, 230, 90, 0.35),
    inset 0 0 40px rgba(120, 240, 100, 0.12),
    var(--shadow);
}
.battle-card .modal-close {
  background: #0f4a27; color: #fff; width: 40px; height: 40px; font-size: 1.1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.battle-card.is-choice { overflow: hidden; padding-bottom: calc(34px + var(--safe-b)); }

.battle-choice { position: relative; }
.bc-head { position: relative; }
.bc-head::after { content: ""; display: block; clear: both; }
.bc-text { position: relative; z-index: 1; padding-top: 6px; }
.bc-hero {
  float: right; position: relative; z-index: 0; pointer-events: none;
  width: min(44%, 270px); height: auto; margin: -26px -26px -10px 8px;
  shape-outside: inset(10% 0 0 12%);
}
.bc-title {
  display: flex; align-items: center; gap: 10px; margin: 0 0 10px !important;
  font-size: clamp(2.1rem, 8vw, 2.9rem); font-weight: 900; letter-spacing: -0.01em; color: #fff;
  line-height: 1;
}
.bc-swords { width: 1.25em; height: auto; flex: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)); }
.bc-word { position: relative; display: inline-block; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.bc-brush {
  position: absolute; z-index: -1; left: -4%; bottom: -0.2em; width: 108%; height: 0.32em;
  object-fit: fill;
}
.bc-spark-green { width: 0.8em; height: auto; align-self: flex-start; margin-left: -2px; margin-top: -0.35em; }
.bc-lead {
  margin: 0; color: #e7f6ea; font-size: 1.02rem; line-height: 1.5;
}
.bc-pill {
  background: var(--bc-green); color: var(--bc-ink); font-weight: 800;
  padding: 1px 9px 2px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 0 12px rgba(80, 224, 106, 0.45);
}

.bc-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.bc-spark-yellow { position: absolute; left: -16px; top: -28px; width: 34px; pointer-events: none; }
.bc-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 58px; padding: 14px 22px; border-radius: 999px;
  font: inherit; font-size: 1.15rem; font-weight: 800; cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}
.bc-btn:active { transform: scale(0.98); }
.bc-btn svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bc-ico { width: 26px; height: 26px; }
.bc-btn-primary {
  position: relative; color: var(--bc-ink);
  background: linear-gradient(180deg, #c3f566 0%, #8fec5c 50%, #5fe06a 100%);
  border: none;
  box-shadow: 0 6px 20px rgba(110, 230, 90, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.bc-btn-primary:hover { filter: brightness(1.05); }
.bc-btn-primary .bc-arrow { position: absolute; right: 22px; width: 26px; height: 26px; }
.bc-btn-ghost {
  color: #fff; background: rgba(8, 40, 20, 0.55);
  border: 2px solid rgba(110, 220, 120, 0.45);
}
.bc-emoji { font-size: 1.3rem; line-height: 1; width: auto; }
.battle-durations .chip-btn.event-only { display: none; }
.battle-durations.is-event .chip-btn.event-only { display: block; }
.battle-team-total { margin: 6px 0 10px; padding: 12px 14px; border-radius: 14px; text-align: center;
  background: rgba(56, 224, 123, 0.12); border: 1px solid rgba(56, 224, 123, 0.35); font-weight: 800; font-size: 1.1rem; }
.battle-team-total small { display: block; font-weight: 500; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.bc-btn-ghost:hover { border-color: rgba(150, 240, 140, 0.75); }

.bc-grass {
  position: absolute; z-index: 0; pointer-events: none; left: -18px; right: -18px;
  bottom: calc(-34px - var(--safe-b)); width: calc(100% + 36px); height: 46px; object-fit: fill; opacity: 0.85;
}

@media (max-width: 480px) {
  .bc-hero { width: 46%; margin: -16px -14px -6px 4px; }
  .bc-title { font-size: 2.1rem; }
  .bc-lead { font-size: 0.98rem; }
  .bc-btn { font-size: 1.05rem; min-height: 54px; padding: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) { .bc-btn { transition: none; } }

/* Heimatstadt + Bestenliste nach Städten */
.home-city-row { display: flex; gap: 8px; }
.home-city-row input { flex: 1; min-width: 0; background: var(--card); color: var(--text);
  border: 1px solid var(--card-2); border-radius: 12px; padding: 10px 12px; font: inherit; }
.lb-group { margin: 16px 0 6px; font-weight: 800; font-size: 0.92rem; color: var(--muted); }
.lb-group.mine { color: var(--accent); }
#rang-mode { margin-bottom: 10px; }
.home-city-row { align-items: stretch; }
.home-city-row input { flex: 1 1 auto; width: auto; }
.push-box .home-city-row .btn { width: auto; flex: 0 0 auto; padding: 10px 16px; }

/* Profil in Abschnitte gegliedert */
.profil-section { background: var(--card); border: 1px solid var(--card-2); border-radius: 16px;
  padding: 14px 14px 10px; margin-top: 8px; }
.profil-section-title { display: flex; align-items: center; gap: 10px; margin: 28px 2px 0;
  font-size: 1.08rem; font-weight: 800; color: var(--text); }
.profil-section-title::after { content: ''; flex: 1; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent); opacity: 0.6; }
.profil-divider { height: 1px; background: var(--card-2); margin: 6px 0 14px; }
.profil-section .stats-grid { margin-top: 0; }
.profil-section .push-box { margin: 0 0 12px; }
.profil-section .push-box:last-child { margin-bottom: 4px; }
.profil-section .logout { width: 100%; }
.profil-section .home-city-row input { background: var(--bg); }

/* Einstellungen als Zeilenliste: Text links, Schalter/Pfeil rechts */
.profil-section.settings { padding: 2px 16px 10px; }
.set-row { display: flex; align-items: center; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--card-2); color: var(--text); text-decoration: none; }
.set-row-stack { flex-direction: column; align-items: stretch; gap: 10px; }
.set-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.set-text b { font-size: 0.98rem; font-weight: 700; }
.set-text .small { line-height: 1.4; }
.set-link { cursor: pointer; }
.set-link:hover .set-chevron, .set-link:focus-visible .set-chevron { color: var(--accent); transform: translateX(2px); }
.set-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.set-chevron { flex: 0 0 auto; font-size: 1.7rem; line-height: 1; color: var(--muted); transition: transform 0.15s, color 0.15s; }
.set-row .home-city-row .btn { width: auto; flex: 0 0 auto; padding: 10px 16px; }
.set-switch { flex: 0 0 auto; position: relative; width: 52px; height: 32px; padding: 0;
  border: none; border-radius: 999px; background: var(--card-2); cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); transition: background 0.2s; }
.set-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease; }
.set-switch[aria-checked="true"] { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.set-switch[aria-checked="true"]::after { transform: translateX(20px); }
.set-switch:disabled { opacity: 0.4; cursor: not-allowed; }
.set-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn.set-logout { width: 100%; margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .set-switch, .set-switch::after, .set-chevron { transition: none; } }

/* Haupt-Aktion „＋ Müll" rechts im Karte/AR-Umschalter, abgesetzt + grün */
.add-trash-btn {
  margin-left: 6px; border: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #ffb302, #ff8a00); color: #2a1500; font: inherit; font-weight: 800;
  display: flex; align-items: center; gap: 4px; padding: 8px 14px 8px 12px;
  box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.28);
}
.add-trash-btn .plus { font-size: 1.25rem; line-height: 1; }
.add-trash-btn .lbl { font-size: 0.92rem; }
.add-trash-btn:active { transform: scale(0.95); }
#capture-switch .add-trash-btn { position: relative; }
#capture-switch .add-trash-btn::before { content: ''; position: absolute; left: -6px; top: 18%; bottom: 18%;
  width: 1px; background: var(--card-2); }

/* Einmalige Erklärung der Kartensymbole */
.map-hint {
  position: absolute; z-index: 460; left: 12px; right: 12px;
  top: calc(env(safe-area-inset-top, 8px) + 120px);
  background: rgba(11, 26, 18, 0.96); border: 1px solid var(--accent); border-radius: 16px;
  padding: 14px; box-shadow: var(--shadow); font-size: 0.9rem; max-width: 460px; margin: 0 auto;
}
.map-hint ul { margin: 8px 0 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.map-hint li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 400px) { .map-hint { font-size: 0.82rem; } }
.cap-count-row { display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; }
.cap-count-row b { min-width: 28px; text-align: center; font-size: 1.15rem; }
.cap-count-row .btn.tiny { width: 38px; height: 38px; padding: 0; font-size: 1.2rem; }

/* Einfacher Modus: Spiel-Elemente ausblenden */
html.ww-simple #battle-btn,
html.ww-simple #capture-switch .cap-sw,
html.ww-simple #capture-switch .add-trash-btn::before,
html.ww-simple .hud-right,
html.ww-simple #hud-rank,
html.ww-simple .hud-credits,
html.ww-simple .nav-btn[data-view="rang"],
html.ww-simple #battle-banner,
html.ww-simple #profil-level,
html.ww-simple .progress.big,
html.ww-simple #profil-progress-label { display: none !important; }
html.ww-simple .add-trash-btn { margin-left: 0; padding: 12px 22px; font-size: 1.1rem; }
/* 1-Foto-Erfassung: Vorschau antippen = Foto, Selbstauslöser */
.cam-wrap { position: relative; }
#cap-video { cursor: pointer; }
.cap-countdown { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 5rem; font-weight: 900; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.7); pointer-events: none; }
.cap-shot-actions .btn { width: auto; margin: 0; white-space: nowrap; padding: 0 8px; font-size: clamp(0.85rem, 3.9vw, 1.05rem); }
.cap-shot-actions { gap: 8px; }
.cap-shot-actions #cap-shoot { flex: 1 1 0; }
.cap-shot-actions #cap-timer { flex: 0 0 auto; padding: 0 12px; }
.cap-one-rule { margin-top: 6px; }
/* Battle: Einstieg als Mitmach-Knopf erkennbar */
.hud-battle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 44px; background: #f5c542; color: #3a2a00; border-color: #f5c542; box-shadow: 0 2px 10px rgba(245,197,66,0.45);
  animation: battle-nudge 2.6s ease-in-out 1s 3; }
.hud-battle small { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.85; }
@keyframes battle-nudge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
/* Battle-Dialog: Mitmachen oben, zwei Modi als Karten */
.bc-btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.bc-btn-text small { font-size: 0.78rem; font-weight: 700; opacity: 0.75; }
.bc-or { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.7); font-size: 0.8rem; font-weight: 700; }
.bc-or::before, .bc-or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.25); }
.bc-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bc-mode { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; cursor: pointer;
  padding: 12px; border-radius: 16px; font: inherit; color: #fff; background: rgba(8, 40, 20, 0.6);
  border: 2px solid rgba(110, 220, 120, 0.45); }
.bc-mode:active { transform: scale(0.98); }
.bc-mode b { font-size: 1rem; }
.bc-mode > span:last-child { font-size: 0.78rem; line-height: 1.3; color: rgba(255,255,255,0.85); }
.bc-mode .bc-pill { font-size: 0.75rem; padding: 0 5px; }
.bc-mode-ico { font-size: 1.5rem; line-height: 1; }
/* GPS-Hilfe */
.gps-card .btn { width: 100%; margin-top: 8px; }
.gps-status { padding: 10px 12px; border-radius: 12px; background: rgba(255,206,77,0.15); border: 1px solid rgba(255,206,77,0.45);
  font-weight: 700; font-size: 0.9rem; }
.gps-status.ok { background: rgba(56,224,123,0.15); border-color: rgba(56,224,123,0.45); }
#gps-steps h3 { font-size: 0.95rem; margin: 14px 0 6px; }
#gps-steps ol { margin: 0; padding-left: 20px; font-size: 0.88rem; line-height: 1.45; }
#gps-steps li { margin-bottom: 4px; }
/* Profil: Teilen-Kachel */
.share-tile { margin: 16px 0 6px; padding: 14px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(56,224,123,0.16), rgba(245,197,66,0.12)); border: 1px solid rgba(56,224,123,0.35); }
.share-head { display: flex; gap: 10px; align-items: center; }
.share-ico { font-size: 1.6rem; }
.share-actions { display: flex; gap: 8px; margin-top: 12px; }
.share-actions .btn { flex: 1; margin: 0; }
.share-qr-wrap { text-align: center; margin-top: 10px; }
.battle-choice .bc-title { font-size: clamp(1.7rem, 6.8vw, 2.3rem); }
.battle-choice .bc-word { line-height: 1.05; }
/* GPS-Hinweis: Status + zwei klare Knöpfe */
#demo-badge .gb-text { cursor: default; }
#demo-badge .gb-btns { display: flex; gap: 6px; flex-wrap: wrap; }
#demo-badge .gb-help { border: none; border-radius: 999px; background: #3a2c00; color: #ffce4d; font: inherit;
  font-weight: 800; font-size: 0.75rem; padding: 5px 10px; cursor: pointer; white-space: nowrap; }
#demo-badge .gb-pick { background: rgba(58,44,0,0.15); color: #3a2c00; border: 1.5px solid #3a2c00; }
@media (max-width: 899px) {
  #demo-badge.with-pick { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 10px; }
  #demo-badge .gb-btns > button { flex: 1; }
}
/* ---------- Erklärvideo (Overlay) ---------- */
.film-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 22px; padding: 0; border: none;
  border-radius: 16px; overflow: hidden; cursor: pointer; background: var(--card); box-shadow: var(--shadow); }
.film-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; transition: transform 0.4s ease; }
.film-thumb:hover img { transform: scale(1.04); }
.film-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,0.55)); }
.ft-play { position: absolute; right: 14px; bottom: 12px; z-index: 1; width: 56px; height: 56px;
  border-radius: 50%; display: grid; place-items: center; padding-left: 5px; font-size: 1.6rem; color: #062312;
  background: var(--accent); box-shadow: 0 0 0 8px rgba(56,224,123,0.3), 0 6px 20px rgba(0,0,0,0.45); animation: ft-pulse 2.4s ease-in-out infinite; }
@keyframes ft-pulse { 50% { box-shadow: 0 0 0 14px rgba(56,224,123,0.12), 0 6px 20px rgba(0,0,0,0.45); } }
.ft-label { position: absolute; left: 14px; bottom: 16px; z-index: 1; color: #fff; font-weight: 900; font-size: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.7); }
.ft-label small { font-weight: 700; opacity: 0.85; }
@media (prefers-reduced-motion: reduce) { .ft-play { animation: none; } }
/* Video-Ende: direkt registrieren / einloggen */
.f-end { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 20px 18px 28px; background: linear-gradient(transparent 35%, rgba(6,20,12,0.92) 70%); animation: f-in 0.4s ease-out both; cursor: default; }
.f-end.hidden { display: none; }
.f-end b { color: #fff; font-size: 1.3rem; text-align: center; }
.f-end .btn { width: 100%; margin: 0; }
.f-end .f-end-replay { color: #fff; opacity: 0.8; align-self: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.film-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(3, 10, 6, 0.86); backdrop-filter: blur(6px); animation: f-in 0.25s ease-out both; }
.film-overlay.hidden { display: none; }
.film-pop { position: relative; display: flex; flex-direction: column; align-items: center; }
.film-x { position: absolute; top: -6px; right: -6px; z-index: 10; width: 40px; height: 40px; border-radius: 50%; border: none;
  background: #fff; color: #0b1a12; font-size: 1.1rem; font-weight: 900; cursor: pointer; box-shadow: var(--shadow); }
.film { position: relative; width: min(360px, calc((100dvh - 80px) * 9 / 16), calc(100vw - 32px)); aspect-ratio: 9 / 16;
  border-radius: 22px; overflow: hidden; cursor: pointer; background: #0b1a12; box-shadow: 0 20px 60px rgba(0,0,0,0.6); user-select: none; }
.film .sc { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.film .sc.active { opacity: 1; }
.film .sc > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film.paused .sc.active, .film.paused .sc.active * { animation-play-state: paused !important; }
/* Ken Burns je Szene (4 s) */
.sc.active .kb-in { animation: kb-in 4.6s ease-out both; }
.sc.active .kb-out { animation: kb-out 4.6s ease-out both; }
.sc.active .kb-up { animation: kb-up 4.6s ease-out both; }
.sc.active .kb-pan { animation: kb-pan 4.6s ease-in-out both; }
@keyframes kb-in { from { transform: scale(1.02); } to { transform: scale(1.14); } }
@keyframes kb-out { from { transform: scale(1.16); } to { transform: scale(1.02); } }
@keyframes kb-up { from { transform: scale(1.1) translateY(4%); } to { transform: scale(1.1) translateY(-2%); } }
@keyframes kb-pan { from { transform: scale(1.15) translateX(-5%); } to { transform: scale(1.15) translateX(5%); } }
.f-caption { position: absolute; left: 12px; right: 12px; bottom: 28px; z-index: 5; text-align: center;
  font-weight: 900; font-size: clamp(1rem, 4.6vw, 1.25rem); line-height: 1.2; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.9);
  padding: 10px 12px; border-radius: 14px; background: rgba(0,0,0,0.42); backdrop-filter: blur(4px); }
.f-caption.swap { animation: f-cap 0.5s ease-out both; }
@keyframes f-cap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.f-progress { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.25); z-index: 5; }
.f-progress i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--accent); }
.f-play, .f-mute { position: absolute; top: 10px; z-index: 6; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.5); color: #fff; font-size: 0.85rem; cursor: pointer; }
.f-play { left: 10px; } .f-mute { left: 52px; }
/* Overlays */
.f-viewfinder { position: absolute; inset: 12% 9% 26% 9%; }
.f-viewfinder i { position: absolute; width: 26px; height: 26px; border: 3px solid #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
.f-viewfinder i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.f-viewfinder i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.f-viewfinder i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.f-viewfinder i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.sc-2.active .f-viewfinder { animation: f-focus 0.6s 0.4s ease-out both; }
.f-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.sc-2.active .f-flash { animation: f-flash 0.55s 2.3s ease-out both; }
.f-counter { position: absolute; top: 54px; right: 12px; padding: 6px 12px; border-radius: 12px; background: rgba(11,26,18,0.85);
  color: var(--gold); font-weight: 900; font-size: 1.15rem; }
.f-count { display: inline-grid; } .f-count span { grid-area: 1 / 1; }
.f-count span:last-child { opacity: 0; }
.sc-3.active .f-count span:first-child { animation: f-out 0.2s 1.9s both; }
.sc-3.active .f-count span:last-child { animation: f-in 0.2s 1.9s both, f-pulse 0.4s 1.9s both; }
.f-plus { position: absolute; left: 50%; top: 52%; transform: translateX(-50%); color: var(--gold); font-weight: 900;
  font-size: 2rem; text-shadow: 0 2px 10px rgba(0,0,0,0.7); opacity: 0; }
.sc-3.active .f-plus { animation: f-fly 1s 0.9s ease-in both; }
.f-redeemed { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px;
  background: #38e07b; color: #062312; font-weight: 900; font-size: 1.1rem; box-shadow: 0 6px 20px rgba(0,0,0,0.4); opacity: 0; white-space: nowrap; }
.sc-5.active .f-redeemed { animation: f-pop 0.5s 1.6s ease-out both; }
.f-brand { position: absolute; left: 0; right: 0; top: 13%; text-align: center; color: #fff; text-shadow: 0 3px 14px rgba(0,0,0,0.55); opacity: 0; }
.f-brand .f-logo { display: block; font-size: 3rem; }
.f-brand b { font-size: clamp(1.8rem, 8vw, 2.3rem); font-weight: 900; text-shadow: 0 3px 0 #0b1a12, 0 0 2px #0b1a12, 0 4px 18px rgba(0,0,0,0.6); }
.f-brand b span { color: #7dff5a; }
.sc-6.active .f-brand { animation: f-pop 0.7s 0.5s ease-out both; }
@keyframes f-pop { from { opacity: 0; scale: 0.5; } 70% { scale: 1.08; } to { opacity: 1; scale: 1; } }
@keyframes f-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes f-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes f-flash { 0% { opacity: 0; } 20% { opacity: 0.95; } 100% { opacity: 0; } }
@keyframes f-fly { 0% { opacity: 0; top: 52%; } 15% { opacity: 1; } 100% { opacity: 0.3; top: 8%; left: 80%; scale: 0.5; } }
@keyframes f-pulse { 50% { scale: 1.35; } }
@keyframes f-focus { from { opacity: 0; scale: 1.15; } to { opacity: 1; scale: 1; } }
/* Startseite: „Wer sieht was?“ als kleiner Link + Mini-Modal */
.legal-link { color: var(--muted); }
.legal-btn { font: inherit; font-size: inherit; color: var(--muted); text-decoration: underline; background: none; border: none; padding: 0; cursor: pointer; }
.privacy-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(3, 10, 6, 0.7); }
.privacy-overlay.hidden { display: none; }
.privacy-pop { position: relative; width: min(340px, 100%); text-align: left; padding: 16px 16px 14px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--card-2); box-shadow: var(--shadow); font-size: 0.82rem; color: var(--muted); }
.privacy-pop h3 { margin: 0 28px 8px 0; font-size: 0.95rem; color: var(--text); }
.privacy-pop ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; line-height: 1.4; }
.privacy-pop b { color: var(--text); }
.privacy-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.08); color: var(--text); cursor: pointer; }
.film.ended .f-caption, .film.ended .f-progress, .film.ended .f-play { display: none; }

/* =====================================================================
   Startseite: mobil kompakt (wie bisher) + Desktop-Landingpage ab 960 px
   ===================================================================== */
.ld-nav, .ld-copy, .ld-hero-art, .ld-sections, .d-only { display: none; }
.ld-page, .ld-hero { width: 100%; display: flex; flex-direction: column; align-items: center; margin-block: auto; }

/* Handy: „Jetzt loslegen“ bleibt am unteren Rand erreichbar */
@media (max-width: 959px) {
  #auth-start .auth-start-actions {
    position: sticky; bottom: 0; z-index: 3;
    margin-inline: -24px; padding: 14px 24px calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(transparent, var(--bg) 22%);
  }
  #auth-start .auth-start-actions .auth-links { margin-top: 8px; }
}

@media (min-width: 960px) {
  .m-only { display: none; }
  .d-only { display: inline; }
  #onboarding.screen { display: block; padding: 20px 40px 0; }
  .ld-page { display: block; max-width: 1240px; margin: 0 auto; }

  /* Navigation */
  .ld-nav {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 6px 0 18px; border-bottom: 1px solid rgba(143, 179, 156, 0.18);
  }
  .ld-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 1.35rem; font-weight: 700; }
  .ld-brand img { border-radius: 10px; }
  .ld-brand b { color: var(--accent); font-weight: 700; }
  .ld-links { display: flex; align-items: center; gap: 28px; }
  .ld-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
  .ld-links a:hover { color: var(--text); }
  .ld-links .btn { border: 1px solid rgba(56, 224, 123, 0.5); background: transparent; padding: 9px 18px; }

  /* Hero */
  .ld-hero {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center;
    padding: 48px 0 56px; margin: 0;
  }
  .ld-hero .onboard-inner { max-width: 560px; text-align: left; margin: 0; }
  .ld-hero .onboard-inner > .logo,
  .ld-hero .onboard-inner > h1:not(.ld-title),
  .ld-hero .onboard-inner > .tagline,
  #auth-start .community-badge, #auth-start .how, #auth-start .film-thumb { display: none; }
  #onboarding[data-auth="start"] .ld-copy { display: block; }
  .ld-eyebrow { margin: 0 0 18px; color: var(--accent); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; }
  .ld-title { margin: 0 0 22px; font-size: clamp(2.6rem, 4.2vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; }
  .ld-title span { color: var(--accent); }
  .ld-lead { margin: 0 0 32px; color: var(--muted); font-size: 1.18rem; line-height: 1.6; max-width: 34em; }
  #auth-start .auth-start-actions { display: flex; flex-direction: column; align-items: stretch; gap: 14px; max-width: 460px; }
  #auth-start #go-register { font-size: 1.2rem; padding: 18px; border-radius: 16px; box-shadow: 0 10px 30px rgba(56, 224, 123, 0.25); }
  .ld-video-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; align-self: center;
    background: none; border: none; color: var(--text); font: inherit; font-weight: 500; cursor: pointer; padding: 6px;
  }
  .ld-video-link span {
    display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    background: rgba(143, 179, 156, 0.25); font-size: 0.7rem; padding-left: 2px;
  }
  .ld-video-link:hover span { background: var(--accent); color: #06210f; }
  #auth-start .auth-links { text-align: center; margin-top: 0; }
  .ld-hero .auth-links { text-align: center; }
  /* Footer-Links mittig unten: Startansicht nutzt .ld-footer, Login/Registrieren eine feste Fußzeile */
  #onboarding[data-auth="start"] .ld-hero .legal-link { display: none; }
  #onboarding:not([data-auth="start"]) .ld-hero .legal-link { position: fixed; left: 0; right: 0; bottom: 22px; margin: 0; text-align: center; }
  /* Platz zwischen Inhalt/Bild und der festen Fußzeile */
  #onboarding:not([data-auth="start"]) .ld-page { padding-bottom: 90px; }
  #onboarding:not([data-auth="start"]) .ld-hero-art img { height: min(68vh, 600px); }
  .ld-hero .auth-view:not(#auth-start) { max-width: 440px; }
  .ld-hero-art { display: block; margin: 0; }
  .ld-hero-art img {
    display: block; width: 100%; height: min(76vh, 660px); object-fit: cover; object-position: center 30%;
    border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(143, 179, 156, 0.15);
  }

  /* Abschnitte (nur auf „start“) */
  #onboarding[data-auth="start"] .ld-sections { display: flex; flex-direction: column; gap: 72px; padding-bottom: 32px; }
  .ld-stat {
    text-align: center; padding: 30px 24px; border-radius: 20px;
    background: rgba(20, 49, 31, 0.8); border: 1px solid rgba(143, 179, 156, 0.15);
  }
  .ld-stat.is-loading { display: none; }
  .ld-stat-icon { width: 32px; height: 32px; fill: none; stroke: var(--accent); stroke-width: 1.6; }
  .ld-stat-num { font-size: 3.2rem; font-weight: 800; color: var(--accent); line-height: 1.1; margin: 6px 0; font-variant-numeric: tabular-nums; }
  .ld-stat-label { font-size: 1.2rem; font-weight: 600; }
  .ld-stat-sub { color: var(--muted); margin-top: 6px; }
  .ld-block { scroll-margin-top: 24px; }
  .ld-block h2 { text-align: center; font-size: 2.1rem; margin: 0 0 10px; letter-spacing: -0.01em; }
  .ld-block-sub { text-align: center; color: var(--muted); font-size: 1.1rem; margin: 0 0 32px; }
  #ld-how h2 { margin-bottom: 32px; }
  .ld-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .ld-card {
    text-align: center; padding: 16px 16px 26px; border-radius: 20px;
    background: rgba(20, 49, 31, 0.8); border: 1px solid rgba(143, 179, 156, 0.15);
  }
  .ld-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; display: block; }
  .ld-card h3 { margin: 20px 0 8px; font-size: 1.35rem; }
  .ld-card p { margin: 0 auto; color: var(--muted); line-height: 1.5; max-width: 26em; }
  .ld-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .ld-feature {
    display: flex; flex-direction: column; overflow: hidden; border-radius: 20px;
    background: rgba(20, 49, 31, 0.8); border: 1px solid rgba(143, 179, 156, 0.15);
    transition: transform 0.25s ease, border-color 0.25s ease;
  }
  .ld-feature:hover { transform: translateY(-4px); border-color: rgba(56, 224, 123, 0.45); }
  .ld-feature-gold:hover { border-color: rgba(255, 206, 77, 0.6); }
  .ld-feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
  .ld-feature div { padding: 20px 24px 26px; }
  .ld-feature h3 { margin: 0 0 8px; font-size: 1.3rem; }
  .ld-feature-gold h3 { color: var(--gold); }
  .ld-feature p { margin: 0; color: var(--muted); line-height: 1.55; }
  .ld-cta {
    text-align: center; padding: 48px 24px; border-radius: 24px;
    background: radial-gradient(600px 240px at 50% 0%, rgba(56, 224, 123, 0.22), transparent 70%), rgba(20, 49, 31, 0.8);
    border: 1px solid rgba(56, 224, 123, 0.3);
  }
  .ld-cta h2 { margin: 0 0 8px; font-size: 2rem; }
  .ld-cta p { margin: 0 0 24px; color: var(--muted); }
  .ld-cta .btn { min-width: 280px; width: auto; }
  .ld-partner {
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
    padding: 36px 40px; border-radius: 20px; border: 1px solid rgba(255, 206, 77, 0.35);
    background: linear-gradient(120deg, rgba(255, 206, 77, 0.08), rgba(20, 49, 31, 0.6));
  }
  .ld-partner h2 { text-align: left; font-size: 1.7rem; }
  .ld-partner p { margin: 0; color: var(--muted); line-height: 1.6; max-width: 46em; }
  .ld-partner .btn { flex: none; text-decoration: none; border: 1px solid rgba(255, 206, 77, 0.6); color: var(--gold); background: transparent; padding: 14px 22px; }
  .ld-footer {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 22px 0 28px;
    border-top: 1px solid rgba(143, 179, 156, 0.18); color: var(--muted); font-size: 0.85rem;
  }
  .ld-footer a, .ld-footer .linkbtn { color: var(--muted); }
}

@media (min-width: 960px) and (max-width: 1150px) {
  .ld-steps { gap: 14px; }
  .ld-hero { gap: 36px; }
}
@media (prefers-reduced-motion: reduce) { .ld-feature { transition: none; } .ld-feature:hover { transform: none; } }
.ld-partner-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ld-partner-actions .btn { width: auto; }

/* ---------- Team-Battle („Team gegen Team“) ---------- */
.bc-mode-wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; align-items: center; }
.bc-mode-wide .bc-mode-ico { grid-row: span 2; font-size: 1.6rem; }
.battle-team-names { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; margin: 4px 0 12px; }
.battle-team-names .field { margin: 0; }
.battle-vs { color: var(--muted); font-weight: 800; padding-bottom: 12px; }
.battle-teams { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
.battle-team-col h3 { margin: 0 0 6px; font-size: 0.95rem; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.battle-team-col .battle-members { margin: 0; }
.battle-team-col .battle-members li { align-items: center; padding: 8px 10px; font-size: 0.9rem; }
.battle-team-col .battle-members li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.battle-team-col .btn.small { flex: none; padding: 4px 8px; font-size: 0.75rem; margin: 0; }
.battle-score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin: 6px 0 12px; }
.battle-score-team { background: var(--card); border: 2px solid transparent; border-radius: 14px; padding: 10px 8px; text-align: center; min-width: 0; }
.battle-score-team.lead { border-color: var(--accent); box-shadow: 0 0 18px rgba(56, 224, 123, 0.25); }
.battle-score-name { font-weight: 700; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.battle-score-pts { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.battle-score-team small { color: var(--muted); font-size: 0.75rem; }
.battle-score-vs { font-size: 1.4rem; font-weight: 800; color: var(--muted); }
#battle-certificate { margin-bottom: 10px; }
/* Google Identity Services: offizieller Knopf + alter Weg als Ausweich-Link */
.gsi-holder { display: flex; justify-content: center; min-height: 44px; }
.btn.social.google.gsi-fallback { background: none; color: var(--muted); border: none; box-shadow: none; padding: 4px;
  font-size: 0.78rem; font-weight: 600; text-decoration: underline; width: auto; align-self: center; }
.merchant-pop p { color: var(--text); margin: 0 0 14px; line-height: 1.45; }
.merchant-pop .btn { width: 100%; margin-top: 8px; text-align: center; text-decoration: none; display: block; }
