:root {
  --bg: #0b0f19;
  --card: #161f30;
  --card2: #1c2740;
  --input: #0f1624;
  --line: rgba(255, 255, 255, 0.09);
  --line2: rgba(255, 255, 255, 0.16);
  --accent: #f59e0b;
  --accent2: #fbbf24;
  --accent-soft: rgba(245, 158, 11, 0.16);
  --text: #f3f4f6;
  --sub: #b3bccb;
  --muted: #8f99aa;
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.16);
  --green: #10b981;
  --green-soft: rgba(16, 185, 129, 0.16);
  --blue: #3b82f6;
  --blue-soft: rgba(59, 130, 246, 0.16);
  --display: "Arial Black", "Segoe UI Black", "Helvetica Neue", system-ui, sans-serif;
  --radius: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.4; min-height: 100vh; }
a { color: var(--accent2); }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 800; }
.hidden { display: none !important; }
.muted { color: var(--sub); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; }
.row { display: flex; gap: 8px; align-items: center; }
.row > .grow { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ---------- Buttons & Inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 16px; border-radius: 12px; border: 1px solid transparent; font-weight: 800; font-size: 0.98rem; cursor: pointer; text-decoration: none; text-align: center; line-height: 1.2; transition: transform 0.1s, opacity 0.2s; min-height: 46px; }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--accent); color: #111; box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25); }
.btn-ghost { background: rgba(255, 255, 255, 0.07); border-color: var(--line2); color: var(--text); }
.btn-blue { background: #2563eb; color: #fff; }
.btn-green { background: var(--green); color: #051b12; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger-soft { background: var(--red-soft); border-color: rgba(239, 68, 68, 0.6); color: #fca5a5; }
.btn-wa { background: #22c55e; color: #04220f; }
.btn-ig { background: #e1306c; color: #fff; }
.btn-snap { background: #fffc00; color: #111; }
.btn-sm { padding: 8px 12px; min-height: 36px; font-size: 0.88rem; border-radius: 10px; }
.btn-xs { padding: 6px 10px; min-height: 32px; font-size: 0.82rem; border-radius: 8px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1; min-width: 0; }
.icon-btn { background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; cursor: pointer; text-decoration: none; color: var(--text); }
.lbl { display: block; font-size: 0.8rem; color: var(--sub); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 700; margin: 12px 0 6px; }
.input, select.input, textarea.input { width: 100%; padding: 12px 13px; border-radius: 10px; background: var(--input); border: 1px solid var(--line2); color: #fff; font-size: 1rem; font-family: inherit; }
.input:focus { outline: 2px solid rgba(245, 158, 11, 0.55); outline-offset: 1px; }
textarea.input { min-height: 84px; resize: vertical; }
.input.saving { border-color: rgba(245, 158, 11, 0.6); }
.input.saved { border-color: rgba(16, 185, 129, 0.8); }
.input.error { border-color: var(--red); }
.row-form { display: flex; gap: 8px; margin-top: 10px; }
.row-form .input { flex: 1; min-width: 0; }
.form-error { color: #fca5a5; font-weight: 700; margin: 8px 0; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
.hint { font-size: 0.85rem; color: var(--sub); margin-top: 4px; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.card-h { font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.card-sub { font-size: 0.9rem; color: var(--sub); margin-bottom: 10px; }
.card.accent-amber { border-color: rgba(245, 158, 11, 0.45); }
.card.accent-blue { border-color: rgba(59, 130, 246, 0.45); }
.card.accent-red { border-color: rgba(239, 68, 68, 0.5); }
.card.accent-green { border-color: rgba(16, 185, 129, 0.45); }
.tag { display: inline-block; background: var(--accent-soft); color: var(--accent2); padding: 2px 8px; border-radius: 6px; font-weight: 800; font-size: 0.8rem; margin-right: 4px; }
.pill { display: inline-block; font-size: 0.8rem; background: rgba(255, 255, 255, 0.08); padding: 3px 8px; border-radius: 999px; color: #dde3ec; font-weight: 700; white-space: nowrap; }
.pill-green { background: var(--green-soft); color: #6ee7b7; }
.pill-red { background: var(--red-soft); color: #fca5a5; }
.pill-amber { background: var(--accent-soft); color: var(--accent2); }
.pill-blue { background: var(--blue-soft); color: #93c5fd; }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; font-size: 0.95rem; }

/* ---------- Simple pages (Public, FAQ, Fehler) ---------- */
.page-simple { display: flex; justify-content: center; padding: calc(20px + var(--safe-t)) 16px 40px; }
.simple-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 20px; max-width: 440px; width: 100%; text-align: center; margin-top: 8vh; }
.simple-card h1 { font-family: var(--display); font-size: 1.5rem; margin: 6px 0 10px; }
.simple-card p { color: var(--sub); margin-bottom: 16px; }
.simple-card form { text-align: left; }
.simple-card form .btn { width: 100%; margin-top: 12px; }
.simple-emoji { font-size: 2.4rem; }
.pub-wrap { width: 100%; max-width: 520px; }
.brand-head { text-align: center; margin: 6px 0 16px; }
.brand-title { font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.02em; font-size: 1.75rem; line-height: 1.05; background: linear-gradient(90deg, #fbbf24, #f97316 55%, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-motto { color: var(--sub); font-size: 0.92rem; margin-top: 4px; }
.night-badge { display: inline-block; background: #dc2626; color: #fff; font-size: 0.75rem; font-weight: 900; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; margin-bottom: 6px; animation: pulse 1.5s infinite; }
.pub-list { list-style: none; }
.pub-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pub-row:last-child { border-bottom: 0; }
.pub-rank { width: 26px; text-align: center; font-weight: 900; color: var(--accent2); }
.pub-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #2a374f; }
.pub-name { flex: 1; font-weight: 800; }
.pub-score { text-align: right; min-width: 52px; }
.pub-score b { display: block; color: var(--accent2); font-size: 1.1rem; }
.pub-score small { color: var(--muted); font-size: 0.75rem; }
.pub-score.dim b { color: #93c5fd; }
.link-muted { display: block; text-align: center; color: var(--sub); margin-top: 8px; text-decoration: none; }
.faq p { color: #d6dce6; margin-bottom: 8px; }
.faq p:last-child { margin-bottom: 0; }

/* ---------- App-Rahmen ---------- */
body.app { padding: 0; }
.boot-loader { text-align: center; padding: 30vh 20px; color: var(--sub); font-weight: 700; }
.app-top { position: sticky; top: 0; z-index: 50; background: rgba(11, 15, 25, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: calc(8px + var(--safe-t)) 16px 8px; border-bottom: 1px solid var(--line); }
.app-top-inner { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.app-top .brand-title { font-size: 1.25rem; text-align: left; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-top .night-badge { margin: 0; font-size: 0.7rem; }
.sun-stripe { height: 3px; background: linear-gradient(90deg, #fbbf24, #f97316, #ec4899, #8b5cf6); }
.app-main { max-width: 560px; margin: 0 auto; padding: 12px 16px calc(96px + var(--safe-b)); }
.view { display: none; }
.view.active { display: block; animation: fadeIn 0.18s ease-out; }
.view-title { font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: 1.2rem; margin: 6px 0 12px; letter-spacing: -0.01em; }

/* ---------- Banner ---------- */
.banners:empty { display: none; }
.banner { border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.banner .b-ico { font-size: 1.4rem; line-height: 1; }
.banner .b-body { flex: 1; min-width: 0; }
.banner .b-title { font-weight: 900; }
.banner .b-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.banner-sos { background: linear-gradient(135deg, rgba(220, 38, 38, 0.35), rgba(127, 29, 29, 0.55)); border: 2px solid #ef4444; animation: sosPulse 1.2s infinite; }
.banner-meet { background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(120, 53, 15, 0.35)); border: 1px solid rgba(245, 158, 11, 0.7); }
.banner-offline { background: rgba(59, 130, 246, 0.14); border: 1px solid rgba(59, 130, 246, 0.5); font-size: 0.88rem; }

/* ---------- Bottom-Nav ---------- */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: rgba(11, 15, 25, 0.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b)); }
.bottom-nav-inner { max-width: 560px; margin: 0 auto; display: flex; }
.nav-item { flex: 1; background: none; border: 0; color: #8d97a8; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0; cursor: pointer; position: relative; min-width: 0; }
.nav-item .n-ico { font-size: 1.35rem; line-height: 1.2; }
.nav-item .n-lbl { font-size: 0.72rem; font-weight: 800; }
.nav-item.active { color: var(--accent); }
.nav-item.active::before { content: ""; position: absolute; top: -6px; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.nav-dot { position: absolute; top: 2px; right: calc(50% - 20px); background: var(--red); color: #fff; font-size: 0.65rem; font-weight: 900; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px; line-height: 16px; }

/* ---------- Segmented ---------- */
.seg { display: flex; background: var(--card); padding: 4px; border-radius: 12px; margin-bottom: 14px; border: 1px solid var(--line); gap: 2px; }
.seg button { flex: 1; padding: 9px 4px; border: 0; background: transparent; color: var(--sub); font-weight: 800; font-size: 0.9rem; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.seg button.active { background: var(--accent); color: #111; }

/* ---------- HUD ---------- */
.hud { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(30, 41, 59, 0.9)); border: 1px solid rgba(245, 158, 11, 0.65); border-radius: 16px; padding: 10px 12px; margin-bottom: 14px; }
.hud-av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); background: #2a374f; flex-shrink: 0; }
.hud-t { font-weight: 900; font-size: 1rem; }
.hud-s { font-size: 0.86rem; font-weight: 700; color: var(--accent2); }

/* ---------- Podium ---------- */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin: 4px 0 16px; }
.pod { flex: 1; display: flex; flex-direction: column; align-items: center; cursor: pointer; min-width: 0; background: none; border: 0; }
.pod-av { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid #6b7280; margin-bottom: 6px; background: #2a374f; }
.pod-1 .pod-av { width: 70px; height: 70px; border-color: var(--accent); box-shadow: 0 0 18px rgba(245, 158, 11, 0.45); }
.pod-2 .pod-av { border-color: #94a3b8; }
.pod-3 .pod-av { border-color: #b45309; }
.pod-crown { font-size: 1.5rem; margin-bottom: -6px; z-index: 2; }
.pod-block { width: 100%; border-radius: 12px 12px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 2px; }
.pod-1 .pod-block { height: 100px; background: linear-gradient(180deg, #f59e0b, #b45309); color: #111; }
.pod-2 .pod-block { height: 78px; background: linear-gradient(180deg, #94a3b8, #475569); color: #fff; }
.pod-3 .pod-block { height: 62px; background: linear-gradient(180deg, #d97706, #78350f); color: #fff; }
.pod-name { font-size: 0.88rem; font-weight: 900; max-width: 100%; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-score { font-size: 1.35rem; font-weight: 900; line-height: 1.1; }
.pod.is-me .pod-av { outline: 3px solid var(--accent2); outline-offset: 2px; }

/* ---------- Ranking-Liste ---------- */
.rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-row { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; cursor: pointer; width: 100%; text-align: left; }
.rank-row:active { transform: scale(0.99); }
.rank-row.is-me { border: 2px solid var(--accent); background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), var(--card)); }
.rank-row.is-last { border-color: rgba(239, 68, 68, 0.6); }
.rank-num { width: 28px; text-align: center; font-weight: 900; color: var(--sub); font-size: 1.05rem; flex-shrink: 0; }
.rank-av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #2a374f; flex-shrink: 0; }
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-weight: 800; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-sub { font-size: 0.84rem; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-sub.penalty { color: #fca5a5; font-weight: 700; }
.rank-score { font-size: 1.4rem; font-weight: 900; color: var(--accent2); min-width: 44px; text-align: right; }
.me-bar { height: 6px; background: rgba(0, 0, 0, 0.4); border-radius: 4px; overflow: hidden; margin-top: 5px; }
.me-bar > div { height: 100%; background: linear-gradient(90deg, #f59e0b, #fbbf24); border-radius: 4px; }
.you { background: var(--accent); color: #111; font-size: 0.7rem; font-weight: 900; padding: 1px 6px; border-radius: 6px; margin-left: 4px; vertical-align: 2px; }

/* ---------- Historie ---------- */
.hof-day { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hof-day:last-child { border-bottom: 0; }
.hof-badge { background: var(--accent-soft); color: var(--accent2); font-weight: 900; border-radius: 10px; padding: 6px 8px; text-align: center; min-width: 60px; font-size: 0.85rem; line-height: 1.15; }
.recap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.recap { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.recap .r-ico { font-size: 1.3rem; }
.recap .r-t { font-size: 0.8rem; color: var(--sub); font-weight: 700; text-transform: uppercase; }
.recap .r-v { font-weight: 900; font-size: 1rem; }

/* ---------- Feed ---------- */
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.thumb { position: relative; padding-bottom: 100%; border-radius: 10px; overflow: hidden; background: var(--card); cursor: pointer; border: 1px solid var(--line); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .t-badge { position: absolute; background: rgba(0, 0, 0, 0.72); font-size: 0.75rem; padding: 2px 6px; border-radius: 6px; color: #fff; font-weight: 700; }
.thumb .t-br { bottom: 4px; right: 4px; } .thumb .t-tr { top: 4px; right: 4px; } .thumb .t-tl { top: 4px; left: 4px; }
.fab { position: fixed; right: 18px; bottom: calc(84px + var(--safe-b)); z-index: 90; background: var(--accent); color: #111; border: 0; border-radius: 999px; padding: 14px 18px; font-weight: 900; font-size: 1rem; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5); cursor: pointer; }

/* ---------- Sheets / Modals ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8); z-index: 200; display: flex; align-items: flex-end; justify-content: center; animation: fadeIn 0.15s; }
.overlay.center { align-items: center; padding: 14px; }
.sheet { width: 100%; max-width: 560px; background: var(--card); border-radius: 22px 22px 0 0; border: 1px solid var(--line2); padding: 12px 18px calc(22px + var(--safe-b)); max-height: 90vh; overflow-y: auto; animation: slideUp 0.22s ease-out; position: relative; }
.sheet-grip { width: 44px; height: 5px; background: rgba(255, 255, 255, 0.25); border-radius: 3px; margin: 0 auto 12px; }
.sheet-close { position: absolute; top: 10px; right: 12px; }
.sheet h2 { font-size: 1.25rem; margin-bottom: 6px; padding-right: 44px; }
.dialog { background: var(--card); border: 1px solid var(--line2); border-radius: 18px; padding: 20px; max-width: 400px; width: 100%; animation: popIn 0.15s ease-out; }
.dialog p { color: var(--sub); margin: 6px 0 16px; }
.toast-wrap { position: fixed; left: 0; right: 0; bottom: calc(92px + var(--safe-b)); z-index: 400; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; padding: 0 16px; }
.toast { background: #111827; color: #fff; border: 1px solid var(--line2); padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 0.95rem; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); animation: popIn 0.15s; max-width: 100%; }
.toast.ok { border-color: rgba(16, 185, 129, 0.7); }
.toast.err { border-color: rgba(239, 68, 68, 0.8); }

/* ---------- User-Sheet ---------- */
.u-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.u-av { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); background: #2a374f; flex-shrink: 0; }
.stat-row { display: flex; gap: 8px; margin-bottom: 12px; }
.stat { flex: 1; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-radius: 12px; padding: 9px 6px; text-align: center; }
.stat .v { display: block; font-size: 1.35rem; font-weight: 900; color: var(--accent2); }
.stat .l { font-size: 0.75rem; color: var(--sub); text-transform: uppercase; font-weight: 700; }
.info-box { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; margin-bottom: 10px; font-size: 0.95rem; }
.info-box.clickable { cursor: pointer; }
.info-box.green { border-color: rgba(16, 185, 129, 0.5); background: var(--green-soft); }
.info-box.amber { border-color: rgba(245, 158, 11, 0.5); background: var(--accent-soft); }
.info-box.red { border-color: rgba(239, 68, 68, 0.6); background: var(--red-soft); }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.95); z-index: 250; display: flex; flex-direction: column; }
.lb-img-wrap { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #000; touch-action: pan-y; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.55); color: #fff; border: 0; font-size: 1.8rem; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.lb-left { left: 8px; } .lb-right { right: 8px; }
.lb-close { position: absolute; top: calc(10px + var(--safe-t)); right: 10px; z-index: 2; }
.lb-panel { background: var(--card); border-top: 1px solid var(--line2); padding: 12px 16px calc(14px + var(--safe-b)); max-height: 46vh; overflow-y: auto; }
.lb-meta { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--sub); }
.lb-cap { font-size: 1rem; font-weight: 700; margin: 4px 0 10px; }
.comments { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.comment { background: rgba(0, 0, 0, 0.28); padding: 7px 10px; border-radius: 10px; font-size: 0.93rem; }
.comment .c-a { font-weight: 800; color: var(--accent2); margin-right: 6px; }
.comment .c-t { float: right; font-size: 0.78rem; color: var(--muted); margin-left: 6px; }

/* ---------- Cockpit ---------- */
.hero { background: linear-gradient(135deg, #1e293b, #161f30); border: 1px solid rgba(245, 158, 11, 0.45); border-radius: 20px; padding: 16px; margin-bottom: 14px; }
.hero-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.hero-av { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 3px solid var(--blue); background: #2a374f; flex-shrink: 0; }
.hero-av.leader { border-color: var(--accent); }
.hero-av.last { border-color: var(--red); }
.hero-name { font-size: 1.4rem; font-weight: 900; line-height: 1.15; }
.hero-badge { font-size: 0.88rem; font-weight: 800; padding: 6px 10px; border-radius: 10px; text-align: center; margin-bottom: 12px; }
.badge-leader { background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent2); }
.badge-penalty { background: var(--red-soft); border: 1px solid var(--red); color: #fca5a5; }
.badge-chaser { background: var(--blue-soft); border: 1px solid var(--blue); color: #93c5fd; }
.safety-row { display: flex; gap: 8px; margin-bottom: 14px; }
.safety-row .btn { flex: 1; }
.btn-sos { background: #dc2626; color: #fff; font-size: 1.05rem; box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35); }
details.acc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
details.acc > summary { list-style: none; cursor: pointer; padding: 15px 16px; font-weight: 800; font-size: 1.02rem; display: flex; align-items: center; gap: 10px; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: "›"; margin-left: auto; font-size: 1.4rem; color: var(--muted); transition: transform 0.2s; }
details.acc[open] > summary::after { transform: rotate(90deg); }
details.acc > summary .s-sub { font-weight: 600; font-size: 0.85rem; color: var(--sub); }
.acc-body { padding: 0 16px 16px; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.status-btn { background: var(--input); border: 1px solid var(--line2); color: #fff; padding: 14px 8px; border-radius: 12px; font-size: 0.98rem; font-weight: 800; cursor: pointer; }
.status-btn.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent2); }
.switch { display: inline-flex; background: #1e293b; padding: 3px; border-radius: 10px; gap: 3px; }
.switch button { border: 0; background: transparent; color: var(--sub); font-weight: 900; font-size: 0.85rem; padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.switch button.on { background: var(--green); color: #04150e; }
.switch button.off { background: var(--red); color: #fff; }
.beacon-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--input); border: 1px solid var(--line2); border-radius: 12px; padding: 12px; }
.vote-card { background: var(--input); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.preview-box { background: rgba(0, 0, 0, 0.45); border: 1px dashed rgba(245, 158, 11, 0.5); border-radius: 12px; padding: 12px; margin-top: 8px; }
.preview-btn { background: #222d44; padding: 10px 12px; border-radius: 10px; font-weight: 800; text-align: center; border: 1px solid var(--line2); margin-top: 6px; font-size: 0.95rem; }
.upload-preview { width: 100%; max-height: 280px; object-fit: cover; border-radius: 12px; margin: 10px 0 4px; }

/* ---------- Crew / Map / Buddy ---------- */
#crew-map { height: 330px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); background: #0f1624; }
.map-ph { height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: var(--sub); padding: 20px; text-align: center; }
.map-marker { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--green); background: #2a374f center/cover; color: var(--accent2); font-weight: 900; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.map-marker.stale { border-color: var(--accent); }
.map-marker.old { border-color: #6b7280; filter: grayscale(0.6); }
.map-marker.sos { border-color: var(--red); animation: sosPulse 1s infinite; }
.map-meet { font-size: 30px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7)); }
.leaflet-popup-content { font-weight: 700; color: #111; }
.buddy-group { margin-bottom: 12px; }
.buddy-group h3 { font-size: 0.86rem; text-transform: uppercase; color: var(--sub); margin-bottom: 6px; letter-spacing: 0.03em; }
.buddy { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.buddy:last-child { border-bottom: 0; }
.buddy img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #2a374f; }
.buddy .b-n { font-weight: 800; }
.buddy .b-s { font-size: 0.84rem; color: var(--sub); }

/* ---------- Taxi ---------- */
.taxi-box { background: linear-gradient(135deg, #1e293b, #0f1624); border: 2px solid var(--accent); border-radius: 20px; padding: 20px 16px; text-align: center; margin-bottom: 14px; }
.taxi-tag { display: inline-block; background: var(--accent); color: #111; font-weight: 900; font-size: 0.82rem; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; margin-bottom: 10px; }
.taxi-es { color: #fff; font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; }
.taxi-hotel { font-size: 1.85rem; font-weight: 900; line-height: 1.12; margin-bottom: 12px; word-break: break-word; }
.taxi-addr { background: rgba(0, 0, 0, 0.5); border: 2px dashed rgba(245, 158, 11, 0.65); padding: 14px; border-radius: 14px; margin-bottom: 12px; font-size: 1.4rem; font-weight: 800; color: var(--accent2); line-height: 1.3; word-break: break-word; }
.taxi-room { display: inline-block; font-size: 1.15rem; font-weight: 900; color: #93c5fd; background: var(--blue-soft); padding: 6px 14px; border-radius: 10px; margin-bottom: 14px; border: 1px solid rgba(59, 130, 246, 0.35); }
.taxi-full { position: fixed; inset: 0; z-index: 300; background: #000; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: calc(20px + var(--safe-t)) 20px calc(20px + var(--safe-b)); text-align: center; }
.taxi-full .tf-es { color: #fff; font-size: 1.6rem; font-weight: 800; margin-bottom: 18px; }
.taxi-full .tf-hotel { color: #fff; font-size: 2.4rem; font-weight: 900; line-height: 1.1; margin-bottom: 18px; word-break: break-word; }
.taxi-full .tf-addr { color: #fde047; font-size: 2rem; font-weight: 900; line-height: 1.2; word-break: break-word; }
.taxi-full .tf-room { color: #93c5fd; font-size: 1.6rem; font-weight: 900; margin-top: 18px; }
.taxi-full .tf-actions { position: absolute; bottom: calc(18px + var(--safe-b)); left: 16px; right: 16px; display: flex; gap: 8px; }
.taxi-full .tf-actions .btn { flex: 1; }
.crew-hotel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 8px; cursor: pointer; }
.loc-chip { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; font-size: 0.88rem; font-weight: 800; }
.loc-live { background: var(--green-soft); border: 1px solid var(--green); color: #6ee7b7; }
.loc-old { background: var(--accent-soft); border: 1px solid rgba(245, 158, 11, 0.4); color: var(--accent2); }

/* ---------- Tour ---------- */
.ch-item { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ch-item:last-child { border-bottom: 0; }
.ch-pts { background: var(--accent); color: #111; font-weight: 900; border-radius: 10px; padding: 6px 8px; min-width: 50px; text-align: center; font-size: 0.9rem; }
.bal-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.bal-row:last-child { border-bottom: 0; }
.pos { color: #6ee7b7; } .neg { color: #fca5a5; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line2); color: var(--text); border-radius: 999px; padding: 7px 12px; font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent2); }
.ledger-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ledger-item:last-child { border-bottom: 0; }
.info-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-item .ii-ico { font-size: 1.5rem; }
.info-item .ii-when { color: var(--accent2); font-weight: 800; font-size: 0.9rem; }
.info-item .ii-det { color: var(--sub); font-size: 0.92rem; white-space: pre-wrap; margin-top: 2px; }
.em-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.em-row:last-child { border-bottom: 0; }

/* ---------- QR Vollbild ---------- */
.qr-full { position: fixed; inset: 0; background: #fff; z-index: 300; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; color: #111; }
.qr-full h2 { font-size: 1.4rem; font-weight: 900; }
.qr-full canvas { width: min(78vw, 360px); height: auto; margin: 16px 0; image-rendering: pixelated; }
.qr-full .btn { width: 100%; max-width: 300px; margin-top: 8px; }

/* ---------- Admin ---------- */
.admin .app-main { padding-bottom: 40px; }
.adm-user { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.adm-user:last-child { border-bottom: 0; }
.adm-user img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #2a374f; }
.sys-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.sys-row:last-child { border-bottom: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sub-box { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 12px; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes sosPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); } 50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 420px) { .feed-grid { gap: 8px; } }

/* Fixes: Textüberlauf in Ranking & Podium */
.rank-info { display: block; overflow: hidden; }
.rank-name, .rank-sub { display: block; }
.pod-block > span { display: block; max-width: 100%; text-align: center; }
.pod-3 .pod-block { height: 70px; }
.grow { flex: 1; min-width: 0; }

/* ---------- Urlaubs-Countdown ---------- */
.cd-wrap { margin-bottom: 14px; }
.cd-card { position: relative; overflow: hidden; border-radius: 20px; padding: 16px 14px 14px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #f97316 0%, #ec4899 55%, #7c3aed 100%); box-shadow: 0 10px 30px rgba(236, 72, 153, 0.25); }
.cd-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.28), transparent 55%); pointer-events: none; }
.cd-deco { position: absolute; font-size: 2rem; opacity: 0.9; animation: cdFloat 3.5s ease-in-out infinite; }
.cd-deco-l { left: 8px; top: 6px; }
.cd-deco-r { right: 10px; top: 8px; animation-delay: 1.2s; animation-name: cdSpin; animation-duration: 12s; animation-timing-function: linear; }
.cd-label { position: relative; font-family: var(--display); font-style: italic; text-transform: uppercase; font-weight: 900; font-size: clamp(1rem, 4.6vw, 1.3rem); letter-spacing: -0.01em; margin: 2px 34px 12px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.cd-tiles { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd-tile { background: rgba(11, 15, 25, 0.38); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 14px; padding: 10px 2px 8px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.cd-num { display: block; font-size: clamp(1.9rem, 9vw, 2.6rem); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.cd-num.flip { animation: cdFlip 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
.cd-unit { display: block; margin-top: 4px; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.9; }
.cd-big { position: relative; font-size: clamp(2rem, 10vw, 2.8rem); font-weight: 900; margin: 4px 0 6px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
.cd-track { position: relative; height: 10px; background: rgba(11, 15, 25, 0.35); border-radius: 999px; margin: 18px 22px 6px 6px; }
.cd-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #fde047, #fff); transition: width 1s linear; }
.cd-plane { position: absolute; top: -13px; left: -14px; font-size: 1.5rem; transition: left 1s linear; animation: cdBob 1.6s ease-in-out infinite; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); }
.cd-dest { position: absolute; right: -22px; top: -12px; font-size: 1.4rem; }
.cd-sub { position: relative; font-size: 0.9rem; font-weight: 700; margin-top: 8px; opacity: 0.95; }
.cd-soon { animation: cdGlow 1.6s ease-in-out infinite; }
.cd-live { background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #f59e0b 100%); }
.cd-done { background: linear-gradient(135deg, #334155, #1e293b); }
.cd-confetti { position: absolute; top: -40px; animation-name: cdFall; animation-timing-function: linear; animation-fill-mode: forwards; pointer-events: none; }
.pub-wrap .cd-wrap { margin-bottom: 14px; }
@keyframes cdFlip { 0% { transform: translateY(-35%) scale(0.85); opacity: 0.2; } 100% { transform: none; opacity: 1; } }
@keyframes cdFloat { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-5px) rotate(6deg); } }
@keyframes cdSpin { to { transform: rotate(360deg); } }
@keyframes cdBob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-4px) rotate(4deg); } }
@keyframes cdGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(253, 224, 71, 0.55); } 50% { box-shadow: 0 0 0 10px rgba(253, 224, 71, 0); } }
@keyframes cdFall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(420px) rotate(540deg); opacity: 0; } }
.cd-card [hidden] { display: none !important; }
