/* =====================================================================
   DISTRICT LEGENDS – App-Stylesheet (Mobile First, Dark Mode)
   Farben: Dunkelblau, Gold, Anthrazit
   ===================================================================== */

@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('../fonts/manrope-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('../fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('../fonts/manrope-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 600; font-display: swap; src: url('../fonts/big-shoulders-display-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 800; font-display: swap; src: url('../fonts/big-shoulders-display-latin-800-normal.woff2') format('woff2'); }

:root {
  --bg: #0B1424;
  --bg-map: #0E1A2E;
  --header: #101B30;
  --surface: #14213A;
  --anthracite: #1E242E;
  --line: #26344F;
  --text: #EEF2F8;
  --muted: #9AA7BD;
  --gold: #E3B341;
  --gold-hi: #F2CC6B;
  --blue: #4C9BFF;
  --purple: #B07CFF;
  --gray: #6B7689;
  --red: #FF7A7A;
  --green: #5FD39A;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 14px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--gold); }
a:hover { color: var(--gold-hi); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }

.muted { color: var(--muted); }
.gold { color: var(--gold); }
.blue { color: var(--blue); }
.purple { color: var(--purple); }
.display { font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: .5px; }
.label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.icon { flex: none; }

/* ---------- App-Rahmen ---------- */
/* Der App-Rahmen ist fest an den sichtbaren Bildschirm geheftet (position: fixed; inset: 0).
   So passt er sich Adressleiste und Systemleisten an, ohne dass eine Höhe berechnet werden muss,
   und die Seite selbst scrollt nie – nur der Inhaltsbereich. */
html:has(body.app) { overflow: hidden; }
body.app { position: fixed; inset: 0; display: flex; flex-direction: column; min-height: 0; max-width: 560px; margin: 0 auto; overflow: hidden; }
body.app > header, body.app > .tabbar, body.app > .my-rank { flex: none; }
.screen { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.screen > * { flex-shrink: 0; }
.screen-flush { padding: 0; gap: 0; }
.screen-body { padding: 16px; display: flex; flex-direction: column; gap: 16px; flex: 1 0 auto; }
.section { display: flex; flex-direction: column; gap: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

.statbar { display: flex; align-items: center; gap: 12px; padding: calc(12px + var(--safe-t)) 16px 12px; background: var(--header); border-bottom: 1px solid var(--line); }
.statbar-avatar { text-decoration: none; }
.statbar-level { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.statbar-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.statbar-money { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.statbar-points { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05; white-space: nowrap; }
.statbar-points b { font-family: var(--display); font-weight: 800; font-size: 22px; }
.statbar-points span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

.titlebar { display: flex; align-items: center; gap: 12px; padding: calc(12px + var(--safe-t)) 16px 12px; background: var(--header); border-bottom: 1px solid var(--line); min-height: 60px; }
.titlebar h1 { flex: 1; min-width: 0; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: .5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tabbar { display: flex; background: var(--header); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 12px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; min-height: 56px; }
.tabbar a.is-active { color: var(--gold); }

/* ---------- Bausteine ---------- */
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar-lg { height: 8px; border-radius: 4px; }
span.bar, span.bar-fill { display: block; }
.bar-fill { height: 100%; border-radius: inherit; background: var(--gold); transition: width .4s ease; }
.bar-fill.is-blue { background: var(--blue); }

.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--anthracite); color: var(--text); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-gold { border: 2px solid var(--gold); color: var(--gold); }
.avatar-sm { width: 36px; height: 36px; font-size: 12px; background: var(--line); }
.avatar-xl { width: 84px; height: 84px; font-size: 28px; border: 3px solid var(--gold); color: var(--gold); }

.panel { background: var(--surface); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.panel-outline { border: 1px solid var(--line); }
.panel-gold { border: 1px solid var(--gold); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bold { font-weight: 700; }
.small { font-size: 12px; }

.list { background: var(--surface); border-radius: 12px; display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.list-item:last-child { border-bottom: 0; }
.list-item.is-me { background: rgba(227, 179, 65, .08); }
.list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list-main > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-main.wrap > * { white-space: normal; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 12px; border-radius: 16px; background: var(--anthracite); font-size: 12px; font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--text); border-color: var(--muted); }
.btn-gold { border: 0; background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-hi); color: var(--bg); }
.btn-big { min-height: 56px; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: 1px; text-transform: uppercase; }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: 13px; }
.btn[disabled], .btn.is-busy { opacity: .55; cursor: not-allowed; }
.btn-outline-gold { border: 2px solid var(--gold); background: transparent; color: var(--gold); }
.iconbtn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; text-decoration: none; }
.iconbtn:hover { color: var(--gold); }

.notice { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.notice-ok { border-color: var(--green); }
.notice-error { border-color: var(--red); color: #FFD0D0; }
.notice-gold { border-color: var(--gold); }

.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.pill.is-active { border-color: var(--gold); background: var(--gold); color: var(--bg); font-weight: 700; }

.segments { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); }
.segments a { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 10px; color: var(--muted); font-weight: 700; text-decoration: none; font-size: 13px; }
.segments a.is-active { background: var(--gold); color: var(--bg); }

.empty { padding: 28px 16px; text-align: center; color: var(--muted); }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea { min-height: 48px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 16px; font-weight: 400; width: 100%; }
.field textarea { padding: 12px; min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field .error { color: var(--red); font-weight: 600; }
.form { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Login / Registrierung ---------- */
body.auth { display: flex; flex-direction: column; justify-content: center; max-width: 440px; margin: 0 auto; padding: calc(24px + var(--safe-t)) 20px 32px; gap: 24px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.brand img { width: 88px; height: 88px; border-radius: 22px; }
.brand h1 { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: .95; letter-spacing: 1px; text-transform: uppercase; }
.brand h1 span { color: var(--gold); }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.auth-card h2 { font-family: var(--display); font-weight: 800; font-size: 26px; }
.auth-foot { text-align: center; color: var(--muted); }

/* ---------- Karte ---------- */
.mapwrap { flex: 1; min-height: 0; position: relative; background: var(--bg-map); }
#map { position: absolute; inset: 0; background: var(--bg-map); z-index: 0; }
.leaflet-container { font-family: var(--body); background: var(--bg-map); }
/* OpenStreetMap-Kacheln für den Dark Mode einfärben */
/* Kartenhelligkeit: drei Stufen, umschaltbar über den Sonnen-Knopf auf der Karte (Standard: game.map_brightness) */
.leaflet-tile-pane { filter: invert(.9) hue-rotate(185deg) brightness(1.35) contrast(.8) saturate(.6); }
html[data-map="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(190deg) brightness(.82) contrast(.92) saturate(.55); }
html[data-map="light"] .leaflet-tile-pane { filter: brightness(.96) contrast(.96) saturate(.8); }
html[data-map="light"] .leaflet-container { background: #e8e4dc; }
.leaflet-control-attribution { background: rgba(11, 20, 36, .8) !important; color: var(--muted) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-bar a { background: var(--header) !important; color: var(--text) !important; border-color: var(--line) !important; }

.pin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--bg); background: var(--gray); box-shadow: 0 2px 6px rgba(0, 0, 0, .5); display: flex; align-items: center; justify-content: center; color: var(--bg); font-size: 13px; font-weight: 800; }
.pin-new { background: var(--gray); }
.pin-visited { background: var(--blue); }
.pin-mayor { background: var(--gold); }
.pin-legendary { background: var(--purple); }
.pin.is-selected { box-shadow: 0 0 0 3px var(--text), 0 2px 8px rgba(0, 0, 0, .6); }
.pin-me { width: 20px; height: 20px; border-radius: 50%; background: var(--text); border: 4px solid var(--blue); box-shadow: 0 0 0 6px rgba(76, 155, 255, .25); }

.map-legend { position: absolute; left: 12px; top: 12px; z-index: 500; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: rgba(16, 27, 48, .92); border: 1px solid var(--line); font-size: 11px; font-weight: 600; }
.map-legend div { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-new { background: var(--gray); } .dot-visited { background: var(--blue); } .dot-mayor { background: var(--gold); } .dot-legendary { background: var(--purple); }
.map-tools { position: absolute; right: 12px; top: 12px; z-index: 500; display: flex; flex-direction: column; gap: 8px; }
.map-tools .iconbtn { width: 52px; height: 52px; border-radius: 16px; background: var(--header); }
.map-status { position: absolute; left: 12px; right: 76px; top: 128px; z-index: 500; padding: 8px 12px; border-radius: 12px; background: rgba(16, 27, 48, .92); border: 1px solid var(--line); font-size: 11px; font-weight: 600; text-align: center; }

.place-sheet { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 500; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.place-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.place-sheet-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.place-name { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; overflow-wrap: anywhere; }
.place-range { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.place-range.in-range { color: var(--gold); }
.place-details { font-size: 12px; font-weight: 700; padding: 14px 0 14px 8px; white-space: nowrap; }

/* ---------- Ort ---------- */
.hero { position: relative; height: 220px; background: var(--anthracite); flex: none; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 80px; background: radial-gradient(circle at 30% 25%, hsl(var(--hue, 215) 55% 38%), hsl(var(--hue, 215) 50% 14%) 80%); }
.hero .iconbtn { position: absolute; left: 12px; top: calc(12px + var(--safe-t)); background: rgba(16, 27, 48, .9); }
.hero-badge { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 10px; background: rgba(11, 20, 36, .88); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.place-title { font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1; overflow-wrap: anywhere; }
.checkin-box { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding: 12px 0 16px; position: sticky; bottom: 0; margin-bottom: -16px; background: linear-gradient(to bottom, rgba(11, 20, 36, 0), var(--bg) 14px); }
.checkin-row { display: flex; gap: 10px; }
.checkin-row .btn-big { flex: 1; }
.checkin-row .btn-qr { width: 56px; min-height: 56px; padding: 0; }

/* ---------- Quests ---------- */
.streak-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.streak-day { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--muted); }
.streak-day span { width: 100%; aspect-ratio: 1; max-width: 40px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; }
.streak-day.is-done span { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.streak-day.is-today span { border-color: var(--gold); color: var(--gold); }
.streak-num { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--gold); }
.milestones { display: flex; gap: 6px; flex-wrap: wrap; }
.milestone { padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--muted); }
.milestone.is-done { border-color: var(--gold); color: var(--gold); }

/* ---------- Ortskarten und Album ----------
   Rahmen nach Stufe (Bronze/Silber/Gold), lila Leuchten für legendäre Orte.
   Ohne Foto: Farbverlauf je Rubrik (--hue) mit dem Rubrik-Symbol. */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lcard {
  --frame: #B07A4E; --frame-hi: #E2A878;
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 4px; border-radius: 12px;
  background: linear-gradient(160deg, var(--frame-hi), var(--frame) 55%, var(--frame-hi));
  color: var(--text); text-decoration: none; box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.lcard.t-silver { --frame: #8E9BB0; --frame-hi: #E3E9F2; }
.lcard.t-gold { --frame: #B8861C; --frame-hi: #F7D77F; }
.lcard.is-legendary { box-shadow: 0 0 0 2px var(--purple), 0 0 16px rgba(176, 124, 255, .55); }
.lcard-img {
  position: relative; aspect-ratio: 4 / 3; border-radius: 9px 9px 0 0; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 25%, hsl(var(--hue, 215) 55% 38%), hsl(var(--hue, 215) 50% 16%) 75%);
}
.lcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lcard-icon { font-size: 30px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45)); }
.lcard-body { display: flex; flex-direction: column; gap: 2px; padding: 6px 7px 7px; border-radius: 0 0 9px 9px; background: var(--header); flex: 1; min-height: 64px; }
.lcard-cat { font-size: 9.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard-cat b { color: var(--purple); }
.lcard-name { font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1.05; text-transform: uppercase; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.lcard-meta { margin-top: auto; font-size: 10px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard-tier {
  position: absolute; left: 5px; bottom: 5px; padding: 1px 6px; border-radius: 6px; font-size: 9.5px; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; color: #1A1206; background: linear-gradient(160deg, var(--frame-hi), var(--frame));
}
.lcard-marks { position: absolute; right: 5px; top: 5px; display: flex; gap: 1px; padding: 1px 4px; border-radius: 8px; background: rgba(11, 20, 36, .8); font-size: 11px; line-height: 1.35; }
.lcard-lock { position: absolute; right: 6px; top: 6px; font-size: 16px; }
.lcard-compact .lcard-body { min-height: 0; }
.lcard.is-locked { --frame: #3A475E; --frame-hi: #4A5873; box-shadow: none; }
.lcard.is-locked .lcard-img { filter: grayscale(1) brightness(.6); }
.lcard.is-locked .lcard-name { color: var(--muted); }
a.lcard:active { transform: scale(.97); }
.lcard-lg { width: 168px; flex: none; }
.lcard-lg .lcard-icon { font-size: 44px; }
.lcard-name.is-long { font-size: 12.5px; }
.lcard-lg .lcard-name { font-size: 20px; }
.lcard-lg .lcard-name.is-long { font-size: 17px; }
.lcard-lg .lcard-tier { left: 8px; bottom: 8px; padding: 2px 8px; font-size: 10.5px; }
.lcard-lg .lcard-marks { right: 8px; top: 8px; font-size: 13px; }
.lcard-lg .lcard-cat { font-size: 10.5px; }
.lcard-lg .lcard-meta { font-size: 11px; white-space: normal; }
.lcard.is-new { animation: card-in .5s ease; }
@keyframes card-in { from { transform: rotateY(90deg) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }

.album { gap: 18px; }
.pill-n { margin-left: 6px; font-size: 11px; opacity: .7; }
.album-country { display: flex; flex-direction: column; gap: 14px; }
.album-country-h { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; }
.album-city { background: var(--surface); border-radius: 16px; padding: 4px 12px 12px; }
.album-city > summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 10px 0;
}
.album-city > summary::-webkit-details-marker { display: none; }
.album-city-name { font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; line-height: 1; }
.album-city-name .tag { font-family: var(--body); vertical-align: middle; }
.album-progress { font-size: 12px; font-weight: 700; color: var(--gold); }
.album-city > summary .bar { grid-column: 1 / -1; }
.album-city > summary::after { content: '▾'; grid-column: 2; grid-row: 1; justify-self: end; display: none; }
.album-district { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 6px; }
.album-district-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.album-district-h h3 { margin: 0; font-size: 15px; font-weight: 700; }
.album-cat { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.album-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 40px 12px; }
.album-empty h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; text-transform: uppercase; }
.album-empty p { margin: 0 0 8px; max-width: 320px; }
.album-empty-icon { font-size: 56px; }

.loc-card { display: flex; gap: 14px; align-items: flex-start; }
.loc-card-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; padding-top: 4px; }
.result-card { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tier-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #C98B5A; vertical-align: middle; }
.tier-dot.t-silver { background: #C9D3E0; } .tier-dot.t-gold { background: var(--gold); }

/* ---------- Rangliste ---------- */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; }
.podium-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 12px; background: var(--surface); text-align: center; min-width: 0; }
.podium-slot.p1 { border: 1px solid var(--gold); padding-top: 20px; padding-bottom: 20px; order: 2; }
.podium-slot.p2 { order: 1; } .podium-slot.p3 { order: 3; }
.podium-rank { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--muted); }
.podium-slot.p1 .podium-rank { color: var(--gold); font-size: 30px; }
.podium-name { font-weight: 700; font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-num { width: 28px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--muted); flex: none; }
.rank-score { font-weight: 700; white-space: nowrap; }
.my-rank { padding: 12px 16px; background: var(--header); border-top: 1px solid var(--gold); display: flex; align-items: center; gap: 12px; }

/* ---------- Profil ---------- */
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.profile-name { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; overflow-wrap: anywhere; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; }
.kpi { padding: 12px 4px; border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi b { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1; }
.kpi span { font-size: 11px; color: var(--muted); }
.kpi-wide { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(227, 179, 65, .16), var(--surface)); border: 1px solid rgba(227, 179, 65, .35); }
.kpi-wide b { font-size: 34px; color: var(--gold); }
.kpi-wide span { font-size: 12px; font-weight: 700; }
.chip-points { font-size: 15px; padding: 6px 14px; }
.kpi-half { grid-column: span 2; }
.veedel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.veedel-item { padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.veedel-item.b1 { border-color: var(--blue); } .veedel-item.b1 small { color: var(--blue); }
.veedel-item.b2 { border-color: var(--gold); } .veedel-item.b2 small { color: var(--gold); }
.veedel-item.b3 { border-color: var(--purple); } .veedel-item.b3 small { color: var(--purple); }
.veedel-item small { font-size: 11px; font-weight: 700; color: var(--muted); }
details.settings { background: var(--surface); border-radius: 12px; }
details.settings summary { padding: 14px; font-weight: 700; cursor: pointer; min-height: 48px; }
details.settings > div { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- Scanner ---------- */
.scanner { position: relative; flex: 1; min-height: 280px; border-radius: 16px; overflow: hidden; background: #000; }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner-frame { position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 3px solid var(--gold); border-radius: 20px; box-shadow: 0 0 0 2000px rgba(11, 20, 36, .55); }

/* ---------- Ergebnis-Dialog und Toast ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-end; justify-content: center; background: rgba(5, 10, 20, .78); padding: 16px; padding-bottom: calc(16px + var(--safe-b)); }
.modal-card { width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--gold); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 16px; animation: rise .25s ease; }
#se-modal-body { display: flex; flex-direction: column; gap: 14px; }
.modal-title { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; color: var(--gold); text-transform: uppercase; letter-spacing: .5px; }
.result-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-weight: 700; }
.result-line span:last-child { white-space: nowrap; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .modal-card { animation: none; } .bar-fill { transition: none; } }

.toast { position: fixed; left: 50%; bottom: calc(84px + var(--safe-b)); transform: translateX(-50%); z-index: 2100; width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px; background: var(--anthracite); border: 1px solid var(--line); font-weight: 600; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
.toast.is-error { border-color: var(--red); }

@media (min-width: 561px) {
  body.app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
@media (max-width: 359px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-half { grid-column: auto; }
  .map-legend { display: none; }
}

/* ---------- Hinweis-Leiste: App installieren / Benachrichtigungen ---------- */
.prompt { position: fixed; left: 12px; right: 12px; bottom: calc(80px + var(--safe-b)); z-index: 1500; max-width: 536px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--gold); box-shadow: 0 10px 30px rgba(0, 0, 0, .55); animation: rise .25s ease; }
body.auth .prompt, body.plain .prompt { bottom: calc(16px + var(--safe-b)); }
.prompt-main { display: flex; gap: 12px; align-items: flex-start; }
.prompt-main img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.prompt-main strong { display: block; font-size: 15px; }
.prompt-main p { margin-top: 2px; font-size: 13px; color: var(--muted); }
.prompt-actions { display: flex; justify-content: flex-end; gap: 8px; }
.ios-share { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; }

/* ---------- Spielregeln ---------- */
.rules h2 { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; margin-top: 8px; }
.rules p, .rules li { line-height: 1.55; }
.rules ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.rules table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; font-size: 13px; }
.rules th, .rules td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rules th { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.rules tr:last-child td { border-bottom: 0; }
.rules td.num { text-align: right; white-space: nowrap; font-weight: 700; }
.rules-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.rules-toc a { padding: 8px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 12px; font-weight: 700; text-decoration: none; }
.rules section { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 12px; }

/* ---------- Kurzanleitung ---------- */
.onboarding { align-items: center; z-index: 2050; }
.onboarding .modal-card { gap: 14px; }
.onb-slide { display: flex; flex-direction: column; gap: 12px; min-height: 230px; }
.onb-slide p { font-size: 15px; line-height: 1.55; }
.onb-slide b { color: var(--gold); }
.onb-icon { width: 72px; height: 72px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.onb-icon.gold { color: var(--gold); border-color: var(--gold); }
.onb-dots { display: flex; gap: 6px; justify-content: center; }
.onb-dots span { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width .2s; }
.onb-dots span.is-active { width: 22px; background: var(--gold); }
.onb-actions { display: flex; gap: 10px; }
.onb-actions .btn { flex: 1; }
.onboarding a.small { text-align: center; }

.hero-badge-left { right: auto; left: 68px; top: calc(12px + var(--safe-t)); bottom: auto; }
.lang-links { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.lang-links strong { color: var(--text); }

/* ---------- Rechtstexte ---------- */
.legal-text { display: flex; flex-direction: column; gap: 10px; overflow-wrap: anywhere; }
.legal-text h2 { font-family: var(--display); font-weight: 800; font-size: 24px; margin-top: 10px; }
.legal-text h3, .legal-text h4 { font-size: 16px; font-weight: 700; margin-top: 6px; }
.legal-text ul, .legal-text ol { margin: 0; padding-left: 20px; }
.legal-links { font-size: 12px; }
.check-accept { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; }
.check-accept input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--gold); }

details.danger-zone summary { min-height: 44px; display: flex; align-items: center; color: var(--red); font-weight: 700; cursor: pointer; }
details.danger-zone > form { padding-top: 8px; }
.btn-danger { border-color: var(--red); background: transparent; color: var(--red); }

/* ---------- Gutscheine (Spieler) ---------- */
.voucher { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px;
  background: linear-gradient(150deg, #1C2C4A, var(--surface) 60%); border: 1px solid var(--gold); overflow: hidden; }
.voucher::before, .voucher::after { content: ''; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); }
.voucher::before { left: -12px; } .voucher::after { right: -12px; }
.voucher-biz { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.voucher-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.05; text-transform: uppercase; }
.voucher-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; border-radius: 14px; background: #fff; color: var(--bg); text-align: center; }
.voucher-qr [data-voucher-qr] { width: 100%; max-width: 260px; }
.voucher-qr svg { display: block; width: 100%; height: auto; }
.voucher-code { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: 3px; }
.voucher.is-redeemed { border-color: var(--green); }
.voucher-done { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px; text-align: center; }
.voucher-done b { font-family: var(--display); font-size: 34px; color: var(--green); text-transform: uppercase; }
.voucher-check { width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 42px; font-weight: 800; animation: pop .45s ease; }
.vlist-archive .list-item { opacity: .8; }
.progress-row { display: flex; flex-direction: column; gap: 6px; }
/* Treue-Aktion: gelber, umlaufender Strich-Rahmen („Ameisenstraße“) – fällt auf der Ortsseite sofort ins Auge */
.loyalty {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    repeating-linear-gradient(-45deg, var(--gold) 0 7px, transparent 7px 14px) border-box;
  background-size: auto, 19.8px 19.8px;
  animation: ants 1.2s linear infinite;
  box-shadow: 0 0 18px rgba(227, 179, 65, .14);
}
.loyalty.is-ready {
  background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(var(--gold), var(--gold-hi)) border-box;
  animation: glow 1.6s ease-in-out infinite;
}
@keyframes ants { to { background-position: 0 0, 19.8px 0; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 8px rgba(227, 179, 65, .25); } 50% { box-shadow: 0 0 24px rgba(227, 179, 65, .6); } }
@media (prefers-reduced-motion: reduce) { .loyalty, .loyalty.is-ready { animation: none; } }
.loyalty-qr { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; font-weight: 600; color: var(--gold-hi); }
.loyalty-qr svg { flex: none; margin-top: 1px; }
.loyalty-dots { display: flex; flex-wrap: wrap; gap: 5px; }
.loyalty-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); }
.loyalty-dots i.on { background: var(--gold); border-color: var(--gold); }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: none; opacity: 1; } }

/* Feier-Animation, wenn ein Gutschein erreicht wird */
.celebrate { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0; }
.celebrate-icon { font-size: 64px; line-height: 1; animation: pop .6s ease, wiggle 1.2s ease .6s 2; }
.celebrate h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--gold); text-transform: uppercase; line-height: 1; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 2200; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; opacity: .95; animation: fall linear forwards; }
@keyframes fall { to { transform: translate3d(var(--dx, 0), 110vh, 0) rotate(var(--rot, 540deg)); } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } .celebrate-icon, .voucher-check { animation: none; } }

/* ---------- Partnerbereich ---------- */
body.partner { min-height: 100vh; padding-bottom: calc(24px + var(--safe-b)); }
.p-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: calc(12px + var(--safe-t)) 16px 12px; background: var(--header); border-bottom: 1px solid var(--line); }
.p-brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; }
.p-brand b { color: var(--gold); font-weight: 800; }
.p-brand small { font-family: var(--body); font-size: 11px; color: var(--muted); letter-spacing: 1px; margin-left: 4px; }
.p-biz { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.p-biz select { min-height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 0 8px; font: inherit; font-weight: 700; }
.p-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.p-tabs a { flex: none; padding: 10px 14px; border-radius: 10px; color: var(--muted); font-weight: 700; text-decoration: none; }
.p-tabs a.is-active { background: var(--surface); color: var(--gold); }
.p-wrap { max-width: 640px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.p-wrap-notice { max-width: 608px; margin: 12px auto 0; }
.p-h { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; }
.p-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p-scanner { min-height: 300px; aspect-ratio: 1; }
.p-code { font-family: var(--display); font-weight: 800; letter-spacing: 2px; }
.p-code-lg { font-size: 34px; color: var(--gold); }
.p-kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.p-voucher { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; background: var(--surface); border: 2px solid var(--green); }
.p-voucher.is-invalid { border-color: var(--red); }
.p-voucher-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.05; text-transform: uppercase; }
.p-voucher-user { background: var(--bg); border-radius: 12px; border: 0; }
.p-result { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 18px; border-radius: 18px; background: var(--surface); border: 2px solid var(--green); text-align: center; }
.p-result h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--green); text-transform: uppercase; }
.p-result-icon { width: 96px; height: 96px; border-radius: 50%; background: var(--green); color: var(--bg); font-size: 58px; font-weight: 800; display: flex; align-items: center; justify-content: center; animation: pop .45s ease; }
.p-result-title { margin: 0; font-size: 20px; font-weight: 700; }
.p-promo { color: var(--text); text-decoration: none; }
.p-kind { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.p-radio { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.p-radio input { margin-top: 3px; accent-color: var(--gold); }
.p-check { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.p-check input { accent-color: var(--gold); width: 18px; height: 18px; }
.p-loyalty { display: flex; flex-direction: column; gap: 12px; }
.p-loyalty[hidden] { display: none; }
.help { font-size: 12px; font-weight: 500; color: var(--muted); }
@media (max-width: 420px) { .p-two { grid-template-columns: 1fr; } }

/* ---------- Community (1.7.0) ---------- */
.tabbar a { position: relative; }
.nav-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red, #E5534B); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--red, #E5534B); color: #fff; font-size: 11px; font-weight: 800; }
.iconbtn-label { width: auto; padding: 0 12px; gap: 6px; font-size: 13px; font-weight: 700; }
.view-tabs { display: flex; border-bottom: 1px solid var(--line); margin: -4px -16px 0; padding: 0 16px; }
.view-tabs a { flex: 1; text-align: center; padding: 10px 0 12px; color: var(--muted); font-weight: 700; text-decoration: none; border-bottom: 3px solid transparent; }
.view-tabs a.is-active { color: var(--gold); border-bottom-color: var(--gold); }
.segments-5 a { font-size: 11px; padding: 0 2px; }
.inline-form { display: inline-flex; margin: 0; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-col { display: flex; flex-direction: column; gap: 8px; }
.btn-col .inline-form, .btn-col .inline-form .btn { width: 100%; }
.list-item .btn-sm { flex: none; }
.list-item .btn-col { flex: none; width: auto; }
.group-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.search-row { display: flex; gap: 8px; }
.search-row input, .search-row select { flex: 1; min-width: 0; min-height: 48px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 16px; }
.search-row input:focus, .search-row select:focus { outline: none; border-color: var(--gold); }
.invite { gap: 6px; }
.invite-name { font-size: 17px; color: var(--text); text-decoration: none; }
.invite p { margin: 0; }
.follow-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.follow-bar .inline-form { margin-left: auto; }
.group-head p { margin: 0; }
.choice { border: 0; padding: 0; margin: 0; gap: 8px; }
.choice legend { padding: 0; margin-bottom: 4px; }
.choice-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font-size: 14px; font-weight: 400; cursor: pointer; }
.choice-item:has(input:checked) { border-color: var(--gold); }
.choice-item input { margin-top: 3px; accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
a.podium-slot { color: inherit; text-decoration: none; }
a.list-main, a.list-main:hover { color: inherit; text-decoration: none; }
a.panel { color: inherit; text-decoration: none; }
a.panel.row-between { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
a.panel.row-between .icon { vertical-align: -3px; color: var(--gold); }

/* ---------- Vorschläge (1.8.0) ---------- */
.improve .btn-row .btn { flex: 1 1 140px; }
.btn.is-disabled { opacity: .6; pointer-events: none; }
.field-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.sg-map { height: 300px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.sg-current, .sg-preview { width: 100%; max-height: 260px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.sg-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 10px; flex: none; }
.sg-item { align-items: flex-start; }
.sg-item .btn-col { align-items: flex-end; }
.sg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; }
.sg-dot-old, .sg-pin-old { background: #8A94A6; border: 2px solid #fff; }
.sg-dot-new, .sg-pin-new { background: var(--gold, #E3B341); border: 3px solid #fff; }
.sg-pin { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); box-sizing: border-box; }
.sg-pin-new { cursor: grab; }
.sg-pin-dev { background: #4C9AFF; border: 2px solid #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--gold); }

/* ---------- Event-Challenges (1.9.0) ---------- */
.challenge { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--bg); border: 1px solid rgba(155, 123, 255, .45); }
.challenge.is-done { border-color: var(--gold); }
.bar-fill.is-purple { background: #9B7BFF; }
.challenge-places { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.challenge-places a { display: flex; align-items: center; gap: 10px; min-height: 40px; color: var(--text); text-decoration: none; }
.challenge-check { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 14px; }
.challenge-places .is-visited .challenge-check { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 900; }
.challenge-places .is-visited a > span:nth-child(2) { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(227, 179, 65, .6); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Temporäre Orte (1.10.0) ---------- */
.pin.is-temp { outline: 2px dashed var(--gold); outline-offset: 2px; }
.temp-notice { border-style: dashed; }
.temp-notice.temp-live { border-color: var(--gold); }
.temp-notice.temp-upcoming { border-color: var(--blue); }

/* ---------- Einladen und Teilen (1.12.0) ---------- */
.share { display: flex; flex-direction: column; gap: 10px; }
.share-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.share-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; text-decoration: none; }
.share-btn:hover { color: var(--text); border-color: var(--muted); }
.share-btn::before { content: ''; width: 10px; height: 10px; border-radius: 50%; }
.share-wa::before { background: #25D366; } .share-tg::before { background: #2AABEE; } .share-mail::before { background: var(--gold); } .share-sms::before { background: var(--blue); }
.share-copy { display: flex; gap: 8px; }
.share-copy input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: 14px; }
.share-qr summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--gold); min-height: 36px; display: flex; align-items: center; }
.share-qr-box { width: 220px; max-width: 70%; margin: 6px auto; background: #fff; border-radius: 12px; overflow: hidden; }
.share-qr-box svg { width: 100%; height: auto; display: block; }
.invite-section .share { padding: 14px; border-radius: 12px; background: var(--surface); }
.group-link > div { gap: 10px; }
.lp-invited { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 30px; background: var(--surface); border: 1px solid var(--gold); font-weight: 700; margin-bottom: 18px; font-size: 15px; }
.invite-card { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Passwort vergessen (1.13.0) ---------- */
.forgot-link { align-self: center; margin-top: 4px; }
