/* THE ONE — consumer app. Dark-dominant by design (outdoor readability, broadcast feel),
   not tied to system light/dark preference. Loaded together with app.css (shared primitives
   like .btn/.field/.modal are reused; variables below override them for this app only). */

.theone {
  --bg: #0a0a0c;
  --surface: #141418;
  --surface-2: #1c1d22;
  --border: #2a2b31;
  --text: #f5f5f7;
  --muted: #9a9ca6;
  --primary: #f5c518;
  --primary-ink: #0a0a0c;
  --primary-soft: #2a2410;
  --danger: #ff5a5f;
  --danger-soft: #2c1416;
  --success: #34d399;
  --success-soft: #0f2a20;
  --warning: #f5c518;
  --warning-soft: #2a2410;
  --info: #5ab4ff;
  --info-soft: #12222f;
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh; min-height: 100dvh;
}
.theone .card { box-shadow: none; }
.theone input[type=text], .theone input[type=email], .theone input[type=password],
.theone input[type=tel], .theone input[type=number], .theone input[type=date], .theone input[type=time],
.theone select, .theone textarea {
  background: var(--surface-2);
}
.theone .btn.primary { font-weight: 800; letter-spacing: .3px; }

/* ---------- Brand ---------- */
.theone .wordmark { font-weight: 900; letter-spacing: 4px; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.theone .claim { color: var(--primary); font-weight: 700; font-size: .68rem; letter-spacing: 2px; }
.logo-mark { height: 30px; width: 30px; flex: none; object-fit: contain; }
.topbar-avatar { display: flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; }
.topbar-avatar img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; }

/* ---------- Landing (v2 — bold sportswear-style layout) ---------- */
.landing { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); overflow-x: hidden; }

/* Circular quick-nav icon row */

/* Tile grid (collection-style tiles) */

.tile { position: relative; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: 20px; border: 1px solid var(--border); text-decoration: none; color: #fff; }
.tile h3 { margin: 0 0 4px; font-size: 1.15rem; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; }
.tile p { margin: 0 0 10px; font-size: .82rem; color: color-mix(in srgb, #fff 78%, transparent); min-height: 2.4em; }

/* Feature strip (small icon + label row) */

/* Dark CTA block with bullet list */

/* Showcase / newsletter-style CTA */

/* ---------- Auth ---------- */
.theone.auth-page { background: var(--bg); }
.theone .auth-card { background: var(--surface); border-color: var(--border); }

/* ---------- App shell ----------
   Die Tab-Leiste ist Teil eines dvh-hohen Flex-Layouts mit position:sticky statt fixed:
   `position: fixed; bottom: 0` bezieht sich in iOS Safari auf die "grosse" Viewport-Höhe
   (als wäre die Adressleiste ausgeblendet) und verschwindet dadurch teilweise unter Safaris
   eigener Symbolleiste. Sticky innerhalb eines echten, dvh-grossen Containers respektiert
   die tatsächlich sichtbare Fläche. */
.theone-app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.theone-topbar {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px;
  position: sticky; top: 0; z-index: 15; background: color-mix(in srgb, var(--surface) 97%, var(--bg));
}
.theone-topbar .topbar-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0; color: var(--muted); }
.theone-topbar .topbar-icon:hover, .theone-topbar .topbar-icon.active { color: var(--text); }
.theone-topbar .topbar-icon.active { color: var(--primary); }
.theone-container { max-width: 640px; width: 100%; margin: 0 auto; padding: 0 18px 24px; flex: 1 0 auto; } /* Die Tab-Leiste liegt im Fluss (sticky), der Inhalt braucht darum nur etwas Luft darüber */

.tabbar {
  position: sticky; bottom: 0; z-index: 20; flex: none;
  display: flex; width: 100%; background: color-mix(in srgb, var(--surface) 98%, var(--bg));
  border-top: 1px solid var(--border);
  padding: 6px max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px; text-decoration: none; color: var(--muted); font-size: .68rem; font-weight: 700;
  letter-spacing: .3px; border-radius: 10px; min-height: 48px; justify-content: center;
}
.tabbar a .tabicon { font-size: 1.3rem; line-height: 1; }
.tabbar a.active { color: var(--primary); }

/* Alte Browser ohne overflow: clip: Tab-Leiste wie früher fest am unteren Rand */
@supports not (overflow: clip) {
  .tabbar { position: fixed; left: 0; right: 0; }
  .theone-container { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

.fab-nav {
  position: fixed; z-index: 40; width: 56px; height: 56px; border-radius: 50%; border: none;
  background: var(--primary); color: var(--primary-ink); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 45%, transparent), var(--shadow);
  cursor: grab; touch-action: none; padding: 0; transition: transform .15s ease;
}
.fab-nav svg { width: 28px; height: 28px; }
.fab-nav.dragging { transition: none; cursor: grabbing; transform: scale(.94); }
.fab-nav.open { transform: scale(.92); }
.fab-menu {
  position: fixed; z-index: 41; display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .15s ease, transform .15s ease;
}
.fab-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab-menu a {
  height: 46px; padding: 0 18px 0 14px; border-radius: 23px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); display: flex; align-items: center; gap: 8px; white-space: nowrap; box-shadow: var(--shadow);
  font-size: .85rem; font-weight: 700; text-decoration: none;
}
.fab-menu a:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Onboarding ---------- */
.onb-steps { display: flex; gap: 8px; margin-bottom: 24px; }
.onb-steps .seg { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-2); }
.onb-steps .seg.done, .onb-steps .seg.active { background: var(--primary); }
.onb-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 16px; }
.otp-input { font-size: 1.8rem; letter-spacing: .5em; text-align: center; font-weight: 800; padding-left: .5em; }
.player-id-badge {
  display: inline-block; font-size: 1.9rem; font-weight: 900; letter-spacing: 1px; color: var(--primary);
  background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  border-radius: 12px; padding: 14px 22px; margin: 14px 0;
}

/* ---------- Passport ---------- */
.passport-header { display: flex; gap: 16px; align-items: center; padding: 20px 0; }
.passport-photo {
  width: 84px; height: 84px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border);
  object-fit: cover; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 1.8rem; flex-shrink: 0;
}
.passport-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 17px; }
.passport-number { font-family: var(--mono); color: var(--primary); font-weight: 700; font-size: .85rem; letter-spacing: .5px; }
.passport-name { font-size: 1.3rem; font-weight: 800; }
.section-title { font-size: .78rem; font-weight: 800; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; margin: 22px 0 10px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.stat-tile { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; text-align: center; }
.stat-tile .v { font-size: 1.4rem; font-weight: 800; }
.stat-tile .l { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .5px; }
.stat-tile .v { color: var(--primary); }

.dash-widget { border-top: 2px solid var(--primary); display: flex; flex-direction: column; min-height: 230px; min-width: 0; }
.dash-widget { overflow: hidden; } /* nichts darin darf die Kachel (und damit die Seite) breiter als den Bildschirm machen */
.dash-widget .card-head { flex-wrap: wrap; gap: 6px 10px; }
.dash-widget .card-head h2 { font-size: 1rem; display: flex; align-items: center; gap: 8px; min-width: 0; }
.dash-widget .dash-widget-body { flex: 1; min-width: 0; }
.dash-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 16px; align-items: stretch; }
.dash-grid-2 > .card { margin-top: 0; min-width: 0; }
@media (min-width: 560px) { .dash-grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: 1fr; } }

.dash-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-radius: 10px; min-width: 0;
  text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border);
}
.dash-row:last-child { border-bottom: none; }
.dash-row:hover { background: var(--surface-2); }
.dash-row-avatar {
  width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); color: var(--muted);
  display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden;
}
.dash-row-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-row-title { flex: 1; font-weight: 700; font-size: .9rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-row-meta { color: var(--muted); font-size: .78rem; flex: 0 1 auto; min-width: 0; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.upload-photo-btn { position: relative; overflow: hidden; }
.upload-photo-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- Placeholder (Phase 2+) ---------- */
.placeholder-screen { text-align: center; padding: 60px 20px; color: var(--muted); }
.placeholder-screen .icon { font-size: 2.6rem; margin-bottom: 12px; }
.placeholder-screen h2 { color: var(--text); }

/* ---------- Greeting / Home ---------- */
.home-greeting { padding: 20px 0 6px; }
.home-greeting h1 { font-size: 1.5rem; margin: 0; }

/* ---------- Rankings (Phase 5) ---------- */
.ranking-you { border-color: var(--primary) !important; background: var(--primary-soft); }

/* ---------- Live Match (Phase 4) ---------- */
.live-board { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.live-col {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.live-name { font-weight: 700; font-size: .92rem; min-height: 2.6em; display: flex; align-items: center; justify-content: center; overflow-wrap: anywhere; }
/* Ball-Zeile: immer gleich hoch (auch ohne Ball), damit die Spielstände beider Spalten auf einer Linie stehen */
.live-poss { height: 22px; display: flex; align-items: center; justify-content: center; }
.live-poss .ball-mark { color: var(--primary); }
.live-score { font-size: clamp(3rem, 16vw, 4.2rem); font-weight: 900; line-height: 1; color: var(--primary); }
.live-fouls { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .5px; margin-bottom: 6px; }
.live-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.live-btn { min-height: 60px; font-size: 1.2rem; font-weight: 800; width: 100%; }

/* ---------- Landing: Scroll-Reveal & Feature-Demo ---------- */

@keyframes underline-draw { to { transform: scaleX(1); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
/* Steps are absolutely stacked so switching the visible one never changes the card's height
   (a height change mid-scroll was causing the page to visually "stick" — needed a second scroll gesture). */

@keyframes pop-in { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes card-in { from { opacity: 0; transform: translateY(-10px); } }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px;
  transition: transform .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.feature-card .fi { font-size: 1.8rem; margin-bottom: 10px; }
.feature-card h3 { margin: 0 0 6px; font-size: 1.02rem; }
.feature-card p { color: var(--muted); font-size: .88rem; margin: 0; }
.landing-section { padding: 60px 24px; }
.landing-section > h2 { text-align: center; font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 10px; }
.landing-section > p.section-sub { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 34px; }

@media (max-width: 420px) {
  .otp-input { letter-spacing: .35em; }
  .live-btn { min-height: 54px; font-size: 1.05rem; }
}

/* ---------- Länderauswahl ---------- */
.country-picker { position: relative; }
.country-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; margin: 0; padding: 4px; list-style: none;
  max-height: 260px; overflow-y: auto; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.country-list[hidden] { display: none; }
.country-list li { padding: 9px 10px; border-radius: 6px; cursor: pointer; }
.country-list li:hover, .country-list li.sel { background: var(--primary-soft); color: var(--primary); }
.country-list li.sep { height: 1px; padding: 0; margin: 4px 0; background: var(--border); cursor: default; }
.country-list li.empty { color: var(--muted); cursor: default; }
.autosave-status { min-height: 1.2em; font-size: .78rem; color: var(--muted); text-align: right; }
.autosave-status.ok { color: var(--success); }
.autosave-status.err { color: var(--danger); }

/* ---------- Live-Ticker ---------- */
.ticker .tick-head, .ticker .tick { display: grid; grid-template-columns: 1fr 76px 1fr; align-items: center; gap: 8px; }
.ticker .tick-head { font-weight: 800; font-size: .85rem; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.ticker .tick-head .l { text-align: right; } .ticker .tick-head .r { text-align: left; }
.ticker .tick { padding: 9px 0; border-bottom: 1px solid var(--border); }
.ticker .tick:last-child { border-bottom: 0; }
.ticker .tick-side { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .86rem; }
.ticker .tick-side.l { justify-content: flex-end; text-align: right; }
.ticker .tick-label { min-width: 0; overflow-wrap: anywhere; }
.ticker .tick-mid { text-align: center; }
.ticker .tick-time { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ticker .tick-score { font-weight: 900; font-size: .95rem; font-variant-numeric: tabular-nums; }
.ticker .tick-chip { flex: none; min-width: 34px; padding: 3px 7px; border-radius: 99px; text-align: center; font-weight: 800; font-size: .78rem; background: var(--surface-2); color: var(--text); }
.ticker .tick-chip.score { background: var(--primary); color: var(--primary-ink); }
.ticker .tick-chip.foul { background: var(--warning-soft); color: var(--warning); }
.ticker .tick-chip.foul-hard { background: var(--danger-soft); color: var(--danger); }
.ticker .tick-chip.poss { background: var(--info-soft); color: var(--info); }
.ticker .tick-mark { display: flex; justify-content: center; gap: 10px; align-items: center; font-weight: 800; font-size: .85rem; color: var(--primary); text-align: center; }

/* ---------- Spielzeit-Countdown ---------- */
.match-clock { text-align: center; font-size: clamp(2rem, 11vw, 3rem); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: 2px; margin: 4px 0 12px; }
.match-clock.low { color: var(--warning); }
.match-clock.over { color: var(--danger); }
.match-bonus { text-align: center; color: var(--muted); font-size: .78rem; margin: -6px 0 12px; }
.match-bonus .bonus-flash { display: inline-block; margin-right: 8px; color: var(--success); font-weight: 800; animation: bonus-pop 1.6s ease-out forwards; }
@keyframes bonus-pop { 0% { opacity: 0; transform: translateY(6px) scale(.8); } 15% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; } }
.ticker .tick-bonus { font-size: .68rem; color: var(--success); font-weight: 700; }
.match-overtime { text-align: center; color: var(--danger); font-weight: 800; font-size: .85rem; letter-spacing: 1px; margin: -6px 0 12px; }

.match-bonus { text-align: center; color: var(--muted); font-size: .78rem; margin: -6px 0 12px; }
.match-bonus .bonus-flash { display: inline-block; margin-right: 8px; color: var(--success); font-weight: 800; animation: bonus-pop 1.6s ease-out forwards; }
@keyframes bonus-pop { 0% { opacity: 0; transform: translateY(6px) scale(.8); } 15% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; } }
.ticker .tick-bonus { font-size: .68rem; color: var(--success); font-weight: 700; }
.undo-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.undo-btn .undo-last { color: var(--muted); font-weight: 600; font-size: .85rem; }

/* ---------- Favoriten ---------- */
.fav-btn { flex: none; background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: 50%; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.fav-btn.on { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.fav-btn.on svg { fill: currentColor; }
/* Anfrage offen: Stern gestrichelt in Warnfarbe, nicht gefüllt */
.fav-btn.pending { color: var(--warning, #e0a030); border-style: dashed; border-color: var(--warning, #e0a030); }
.fav-card { margin-bottom: 12px; }
.fav-status { margin-top: 12px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); font-size: .86rem; display: flex; gap: 8px; align-items: center; }
.fav-status.live { background: var(--success-soft); color: var(--success); font-weight: 700; }
.fav-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); animation: fav-pulse 1.4s ease-in-out infinite; flex: none; }
@keyframes fav-pulse { 50% { opacity: .35; } }

/* ---------- Statistiken ---------- */
.stats-card { margin-top: 14px; }
[role=tabpanel][hidden] { display: none; }
.stat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.stat-chip { border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.stat-chip.active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.stat-custom { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.stat-custom[hidden] { display: none; }
.stat-custom input { flex: 1; min-width: 0; }
.stat-chart-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.stat-chart-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .85rem; margin-bottom: 6px; }
.stat-chart-head .legend { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--muted); }
.stat-chart-head .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.stat-chart { width: 100%; height: auto; display: block; }
.stat-chart .grid { stroke: var(--border); stroke-width: 1; }
.stat-chart .axis { fill: var(--muted); font-size: 9px; }
.stat-donut-row { display: flex; align-items: center; gap: 10px; }
.stat-donut { width: 84px; flex: none; }
.stat-donut-row .stat-chart { flex: 1; min-width: 0; }
.stat-donut .donut-text { fill: var(--text); font-size: 17px; font-weight: 800; }

/* ---------- Zähler-Badges (rot) ---------- */
.count-badge { background: #e5484d; color: #fff; border-radius: 99px; min-width: 18px; height: 18px; padding: 0 5px; font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--surface); pointer-events: none; }
.count-badge[hidden] { display: none; }
.tab-icon-wrap { position: relative; display: inline-flex; }
.tab-icon-wrap .count-badge { position: absolute; top: -6px; left: calc(100% - 8px); }
.fab-nav .count-badge { position: absolute; top: -4px; right: -4px; box-shadow: 0 0 0 2px var(--bg); }
.fab-menu a[hidden] { display: none; }
.fab-open-link { border-color: #e5484d !important; }
.rematch-warn { margin: 12px 0 0; }

.btn.disabled { opacity: .45; pointer-events: none; }

/* ---------- Banner: Match läuft ---------- */
.live-banner { display: block; background: var(--success); color: #04150e; font-weight: 800; font-size: .88rem; padding: 10px 18px; text-align: center; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* im Seitenaufbau direkt unter der Kopfzeile (nicht mehr über dem Rand des Bildschirms) */
.live-banner[hidden] { display: none; }
.rematch-banner { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 70; width: min(440px, calc(100% - 24px)); background: var(--card, #17171d); border: 1px solid var(--primary); border-radius: 16px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 10px; }
.rematch-banner[hidden] { display: none; }
.rematch-banner-text { font-weight: 800; }
.rematch-banner-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- Live Games ---------- */
.live-game { display: block; text-decoration: none; color: inherit; margin-bottom: 12px; }
.live-game-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-game-head .live-game-clock { margin-left: auto; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--primary); font-size: 1.1rem; }
.live-game-score { display: flex; align-items: center; justify-content: space-around; gap: 8px; margin-top: 12px; }
.live-game-player { text-align: center; flex: 1; min-width: 0; }
.live-game-name { font-weight: 700; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-game-pts { font-size: 2.6rem; font-weight: 900; color: var(--primary); line-height: 1.1; }
.fab-live-link { border-color: var(--success) !important; }

/* ---------- Landing v3: Bewegung wie auf den Projekt-Webseiten (Reveal, Zähler, Laufband, Szenen) ---------- */

/* Hero: Zeilen fahren nacheinander ein, Ball schwebt */

@keyframes hero-line { to { opacity: 1; transform: none; } }
@keyframes hero-fade { from { transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hero-drift { from { transform: translateY(0) scale(1); } to { transform: translateY(-8px) scale(1.03); } }
@keyframes logo-float { 50% { transform: translateY(-6px); } }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn { transition: transform .15s, box-shadow .2s, background .15s, border-color .15s; }
.landing .btn:hover { transform: translateY(-2px); }
.landing .btn.primary:hover { box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 40%, transparent); }

/* Kennzahlen im Hero */

/* Laufband */

.fact { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-size: .78rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.fact i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Alle Funktionen */

/* Schritte: Zahlen leuchten beim Einblenden, Kacheln heben sich */

@keyframes n-glow { 0% { text-shadow: 0 0 0 transparent; } 40% { text-shadow: 0 0 18px var(--primary); } 100% { text-shadow: 0 0 0 transparent; } }
.tile { transition: transform .25s, box-shadow .25s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); }

/* Showcase mit drei Szenen */

@keyframes tk-in { from { opacity: 0; transform: translateY(-10px) scale(.96); } }

/* ---------- Hero v4: Video-Hintergrund (Poster als Standbild), Text im zentrierten Raster ---------- */

/* Kennzeichnung KI-generierter Inhalte (Art. 50 AI Act): dauerhaft sichtbar, über dem Abdunkeln */

/* ---------- Share-Karte ---------- */
.share-stage { display: flex; justify-content: center; margin-top: 12px; }
.share-preview { max-height: 58vh; max-width: 100%; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); }
.share-preview.story { aspect-ratio: 9 / 16; }
.share-preview.feed { aspect-ratio: 4 / 5; }

.share-exp { margin-left: 6px; padding: 1px 6px; border: 1px solid var(--primary); border-radius: 999px; color: var(--primary); font-size: .62rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; vertical-align: middle; }
canvas.share-preview, video.share-preview { display: block; }

/* Pflichtfelder: Stern hinter der Beschriftung, überall in der App */
.theone .field.is-required > label::after, .theone .measure.is-required label::after { content: " *"; color: var(--primary); }
.theone .field.is-required > label:not(.check), .theone .measure.is-required > .field > label { display: block; }
.theone .field > label.check { display: flex; }
.theone .check:has(input:required)::after { content: "*"; color: var(--primary); } /* Pflicht-Häkchen (z. B. Nutzungsbedingungen) */ /* sonst rutscht der Stern (Grid-Label) in eine eigene Zeile */

/* Siegchance: ein gemeinsamer Balken, links du, rechts der Gegner */
.winchance { margin: 12px 0; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.wc-head { display: flex; justify-content: space-between; gap: 12px; }
.wc-col { display: flex; flex-direction: column; min-width: 0; }
.wc-col.r { text-align: right; align-items: flex-end; }
.wc-col strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.wc-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin: 10px 0 4px; background: var(--border); }
.wc-bar .wc-you { background: var(--primary); }
.wc-bar .wc-opp { background: color-mix(in srgb, var(--muted) 55%, transparent); }
.wc-pcts { display: flex; justify-content: space-between; font-size: .9rem; }
.wc-main { margin: 8px 0 0; font-weight: 700; }
.wc-note { margin: 6px 0 0; }

/* Eingabefelder auf Touch-Geräten mindestens 16 px: sonst zoomt iOS beim Fokus (Tastatur) die Seite, sie wird breiter und die Tab-Leiste sitzt nicht mehr fest */
@media (pointer: coarse) {
  .theone input, .theone select, .theone textarea { font-size: 16px; }
}

.info-btn { font-size: 1.2rem; line-height: 1; padding: 6px 10px; flex: none; }

/* Court-Eckdaten und Kartenmarkierung im App-Stil */
.court-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.court-fact { display: inline-flex; align-items: center; gap: 2px; }
.court-fact .tabicon { vertical-align: -2px; }
.court-pin { background: none; border: 0; }
.court-pin-badge { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); border: 2px solid #0a0a0c; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0, 0, 0, .5); }
.court-pin-badge::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 12px; height: 12px; background: var(--primary); border-right: 2px solid #0a0a0c; border-bottom: 2px solid #0a0a0c; transform: translateX(-50%) rotate(45deg); z-index: -1; }
.court-pin-badge img { width: 26px; height: 26px; object-fit: contain; }

/* Schalter mit sichtbarem Zustand (Standort / Umkreis) */
.toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; }
.toggle b { font-weight: 800; color: var(--muted); min-width: 2.2em; }
.toggle[aria-checked="true"] b { color: var(--primary); }
.toggle-track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--border); transition: background .15s; flex: none; }
.toggle-dot { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.toggle[aria-checked="true"] .toggle-track { background: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.toggle[aria-checked="true"] .toggle-dot { transform: translateX(16px); background: var(--primary); }

/* ---------- Auswahl mit Knöpfen (statt Dropdown), z. B. Belag beim Court ---------- */
.choice-group { display: flex; flex-direction: column; gap: 6px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { border: 1px solid var(--border); background: var(--surface-2, transparent); color: var(--text); border-radius: 99px; padding: 8px 16px; font: inherit; font-weight: 700; cursor: pointer; min-height: 40px; }
.choice.on { border-color: var(--primary); background: var(--primary); color: #1a1400; }
.choice:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.choice-desc { margin: 0; min-height: 1.2em; }

/* Auswahl-Knöpfe: Karten in zwei Spalten (Belag) und eine Linie mit gleich breiten Knöpfen (Linien) */
.choice-group.cards .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-group.cards .choice { border-radius: 14px; padding: 10px 12px; text-align: left; display: flex; flex-direction: column; gap: 2px; min-height: 64px; }
.choice-group.cards .choice:last-child:nth-child(odd) { grid-column: 1 / -1; }
.choice-sub { font-size: .76rem; font-weight: 500; opacity: .85; line-height: 1.25; }
.choice-group.row .choices { display: flex; flex-wrap: nowrap; gap: 6px; }
.choice-group.row .choice { flex: 1 1 0; min-width: 0; padding: 6px 8px; min-height: 34px; font-size: .85rem; text-align: center; }

/* Anzahl mit − und + */
.stepper { display: inline-flex; align-items: center; gap: 16px; }
.stepper-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2, transparent); color: var(--text); font-size: 1.4rem; font-weight: 700; line-height: 1; cursor: pointer; }
.stepper-btn:disabled { opacity: .35; cursor: default; }
.stepper-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.stepper-value { min-width: 2ch; text-align: center; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Foto hochladen und Absenden klar getrennt */
.form-section { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 8px; }
.photo-row { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; min-width: 0; }
.photo-row .muted { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-preview { max-width: 100%; max-height: 140px; border-radius: 10px; margin: 8px 0; display: block; }
.form-submit { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 22px; }

/* Karten (Leaflet) bleiben unter der Navigation: eigene Ebene, damit ihre internen Ebenen (bis 1000) nicht über Tab-Leiste und Kopfzeile ragen */
.leaflet-container { position: relative; z-index: 0; isolation: isolate; }

/* Court-Fotos: Streifen mit Vorschaubildern und Vollbild-Ansicht mit Vor und Zurück */
.photo-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.photo-thumb { flex: none; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.photo-thumb img { height: 120px; display: block; border-radius: 10px; }
.photo-thumb:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.photo-viewer { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.pv-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pv-nav, .pv-close { position: absolute; border: 0; background: rgba(255,255,255,.16); color: #fff; border-radius: 50%; width: 48px; height: 48px; font-size: 2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; }
.pv-nav[hidden] { display: none; }
.pv-prev { left: max(10px, env(safe-area-inset-left)); top: 50%; transform: translateY(-50%); }
.pv-next { right: max(10px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); }
.pv-close { top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); font-size: 1.8rem; }
.pv-count { position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; }
.pv-count[hidden] { display: none; }

/* Schlanke Court-Suche (Liste und Karte): eine Reihe mit Suche und Radius, der Schieber nur bei Bedarf */
.court-search { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; }
.court-search-wrap { position: relative; flex: 1; min-width: 0; }
input.court-search-input[type="search"] { -webkit-appearance: none; appearance: none; width: 100%; box-sizing: border-box; height: 34px; min-height: 0; margin: 0; border: 1px solid var(--border); background: var(--surface-2, transparent); color: var(--text); border-radius: 99px; padding: 0 32px 0 36px; font: inherit; font-size: .9rem; } /* höhere Spezifität: globale Eingabefeld-Regeln überschreiben sonst das Padding und die Lupe liegt über dem Text */
input.court-search-input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.court-search-input:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.court-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: .6; pointer-events: none; display: flex; }
.court-search-clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); width: 28px; height: 28px; font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0; }
.court-search-clear[hidden] { display: none; }
.court-radius-row { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.court-radius-row[hidden], .court-search .toggle[hidden] { display: none; }

/* ---------- Home: Hero, Stand, Abschnitte ---------- */
.hero { margin-top: 14px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); min-width: 0; }
.hero-live { border-left-color: var(--success); }
.hero-pill { font-size: .68rem; font-weight: 800; letter-spacing: .8px; color: var(--primary); }
.hero-live .hero-pill { color: var(--success); }
.hero-title { margin: 6px 0 4px; font-size: 1.25rem; line-height: 1.25; overflow-wrap: anywhere; }
.hero-sub { margin: 0; color: var(--muted); font-size: .9rem; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.hero-actions .btn { flex: 1 1 120px; justify-content: center; text-align: center; }
.stand-card { margin-top: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; min-width: 0; }
.stand { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; color: inherit; min-width: 0; }
.stand-crowns { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); }
.stand-crown { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 11px; border-radius: 99px; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); font-size: .8rem; font-weight: 700; text-decoration: none; }
.stand-crown span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stand-main { flex: 1.4 1 0; min-width: 0; }
.stand-side { flex: 1 1 0; text-align: center; min-width: 0; }
.stand-rating { display: flex; align-items: baseline; flex-wrap: nowrap; gap: 8px; white-space: nowrap; font-size: 2rem; font-weight: 900; color: var(--primary); line-height: 1; font-variant-numeric: tabular-nums; }
.stand-rating.small { font-size: 1.4rem; }
.stand-delta { font-size: .8rem; font-weight: 800; white-space: nowrap; }
.stand-delta.up { color: var(--success); }
.stand-delta.down { color: var(--danger); }
.stand-num { font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stand-label { margin-top: 4px; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-section { margin-top: 22px; min-width: 0; }
.home-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.home-section-head h2 { margin: 0; font-size: 1rem; }
.home-section-head a { font-size: .82rem; font-weight: 700; text-decoration: none; opacity: .9; }
.home-empty { padding: 14px 16px; border: 1px dashed var(--border); border-radius: 14px; color: var(--muted); font-size: .9rem; }
.home-end { height: 84px; }
.near-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.near-card { position: relative; flex: 0 0 160px; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-decoration: none; color: inherit; scroll-snap-align: start; min-width: 0; }
.near-card strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; min-height: 2.5em; }
.near-status { margin-top: 6px; font-size: .72rem; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.near-status.ok { color: var(--success); }
.home-activity summary { cursor: pointer; font-weight: 800; padding: 6px 0; list-style: none; }
.home-activity summary::-webkit-details-marker { display: none; }
.home-activity summary::before { content: '▸ '; color: var(--muted); }
.home-activity[open] summary::before { content: '▾ '; }

/* ---------- Play: Meine Spiele ---------- */
.play-now { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.play-now .btn { flex: 1 1 140px; justify-content: center; text-align: center; }
.games-section { margin-top: 20px; min-width: 0; }
.games-section h2, .games-history summary { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1rem; font-weight: 800; }
.games-section.accent h2 { color: var(--primary); }
.games-count { min-width: 20px; padding: 1px 7px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: .72rem; font-weight: 800; text-align: center; }
.games-section.accent .games-count { background: var(--primary); color: var(--primary-ink, #1a1400); }
.games-history summary { cursor: pointer; list-style: none; }
.games-history summary::-webkit-details-marker { display: none; }
.games-history summary::before { content: '▸'; color: var(--muted); }
.games-history[open] summary::before { content: '▾'; }
.game-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; }
.game-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--border); min-width: 0; }
.game-row:last-child { border-bottom: none; }
.game-row:active { background: var(--surface-2); }
.dash-row-avatar.big { width: 40px; height: 40px; border-radius: 12px; }
.game-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.game-main strong, .game-main .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 45%; }
.game-action { font-size: .78rem; font-weight: 800; color: var(--primary); }

/* Rating-Änderung: grün besser, rot schlechter */
.delta { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--success); }
.delta.down { color: var(--danger); }

/* ---------- Play: Titelzeile mit Regeln, Blättern, Spieler finden, Favoriten ---------- */
.play-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.play-title h1 { margin: 0; }
.pager-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 4px; }
.find-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.find-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.find-panel { padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.find-panel[hidden] { display: none; }
.find-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.find-grid label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.find-grid label > span { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.find-grid select { width: 100%; min-width: 0; }
.find-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.fav-extra { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.fav-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 160px; padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 800; text-decoration: none; background: var(--surface-2); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-chip.live { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }
.fav-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.live-h { margin: 18px 0 8px; font-size: 1rem; }

.find-top { display: flex; align-items: center; gap: 10px; }
.find-top .court-search-wrap { flex: 1 1 auto; min-width: 0; }
.find-top .btn { flex: none; white-space: nowrap; }

/* ---------- Gemeinsame Spielerzeile (drei Zeilen) ---------- */
.pcard { padding: 12px 14px; }
.pcard-grid { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.pcard .passport-photo { width: 52px; height: 52px; border-radius: 14px; }
.pcard-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pcard-line1 { display: flex; align-items: center; gap: 6px; font-weight: 800; min-width: 0; }
.pcard-line1 .player-card-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-line2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-line3 { display: flex; flex-wrap: wrap; align-items: center; }
.pcard-chance { color: var(--primary); font-weight: 700; }
.pcard-side { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pcard-star { margin-bottom: 2px; }
.pcard-star .fav-btn, .dash-row .fav-btn, .card .fav-btn.small { width: 36px; height: 36px; }
.dash-row .fav-btn { margin-left: 4px; }
.pcard-rating { font-size: 1.15rem; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--primary); }
.pcard-rating.muted { color: var(--muted); font-size: .85rem; font-weight: 700; }
.pcard-extra { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }

/* ---------- Landing: Courts-Abschnitt und zusätzliche Bewegung ---------- */

@keyframes cs-ripple { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(5); } }
@keyframes cs-you { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--info) 55%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }
@keyframes cs-pop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }

/* Schritte leuchten nacheinander auf */

@keyframes step-fill { to { transform: scaleX(1); } }

/* Abschnittstitel zeichnen eine Linie, sobald sie erscheinen */

/* Federnde Auftritte (wie im Messetool): Pills, Icons, Kennzahlen */

@keyframes pill-in { from { opacity: 0; transform: translateY(12px) scale(.88); } }
@keyframes ic-pop { from { opacity: 0; transform: scale(.4) rotate(-14deg); } }
@keyframes stat-in { from { opacity: 0; transform: translateY(14px) scale(.94); } }

/* Sprungziele der Landing Page liegen nicht unter der festen Kopfzeile */
.landing [id] { scroll-margin-top: 78px; }

/* Ortsauswahl (places.js): nutzt die Liste der Länderauswahl */
.place-picker .country-list li { display: block; }
.place-picker .hint { display: block; min-height: 2.6em; line-height: 1.3em; margin-top: 4px; } /* zwei Zeilen reserviert: Statuswechsel verschiebt nichts */
.grid-2:has(.place-picker) { align-items: start; } /* Land bleibt auf Höhe der Stadt, auch wenn darunter eine Meldung erscheint */
.place-picker.has-place input[type=text] { border-color: var(--primary); }

.voice-toggle { display: flex; justify-content: center; margin: 0 auto 8px; }
.voice-toggle .tabicon { vertical-align: -3px; }
.voice-toggle[hidden] { display: none; }

/* Start-Vorlauf vor dem Anpfiff */
.match-countdown-label { text-align: center; margin-top: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.match-countdown { text-align: center; font-size: 6rem; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; margin: 4px 0 8px; }
.start-btn { margin-top: 14px; font-size: 1.4rem; padding: 18px 12px; }

/* Spielerkarten in der Suche: alle gleich gross (kein Versatz durch «.card + .card», gleiche Zeilenhöhe) */
.blocks > .card + .card { margin-top: 0; }
.blocks:has(> .pcard) { grid-auto-rows: 1fr; }
.blocks > .pcard { height: 100%; display: flex; flex-direction: column; justify-content: center; }

/* Court-Bewertung: gefüllte Sterne gelb, leere nur Umriss */
.stars { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; }
.star-on { color: #f5b301; }
.star-off { color: var(--muted, #8a8a99); opacity: .7; }
.star-btn { background: none; border: 0; padding: 2px; cursor: pointer; line-height: 0; border-radius: 8px; }
.star-btn:focus-visible { outline: 2px solid var(--primary, #f5b301); }
.court-rating { display: inline-flex; align-items: center; gap: 4px; }

/* Kleine Symbol-Links (z. B. Karte und SBB hinter der Haltestelle) */
.icon-link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; color: var(--muted, #8a8a99); flex: none; }
.icon-link:hover, .icon-link:focus-visible { color: var(--primary, #f5b301); background: var(--surface-2, rgba(255,255,255,.06)); }
.music-box { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 auto 8px; }
.music-box[hidden] { display: none; }
.music-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.music-row select { width: auto; }
.music-row input[type=range] { width: 110px; }
.music-list { list-style: none; margin: 0; padding: 0; }
.music-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border, rgba(127,127,127,.25)); }
.music-list li:first-child { border-top: 0; }
.music-list .btn.active { color: var(--primary); border-color: var(--primary); } /* läuft gerade: Knopf zeigt «Stopp» */
.music-list label { display: flex; align-items: center; gap: 6px; flex: 1; }

/* ---------- Abzeichen (eigene Medaillen) ---------- */
.badge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 10px; }
.badge-item { text-align: center; min-width: 0; }
.badge-medal { position: relative; width: 86px; margin: 0 auto 6px; }
.badge-medal svg.medal { width: 86px; height: 123px; display: block; }
.badge-item.got .badge-medal svg.medal { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .5)); }
.badge-new { position: absolute; top: -4px; right: -10px; background: var(--primary); color: var(--primary-ink); font-size: .62rem; font-weight: 900; letter-spacing: .6px; padding: 3px 7px; border-radius: 99px; transform: rotate(8deg); }
.badge-item { display: flex; flex-direction: column; align-items: center; }
.badge-item .bn { font-weight: 900; font-size: .82rem; line-height: 1.2; font-style: italic; letter-spacing: .2px; min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge-item:not(.got) .bn { color: var(--muted); }
.badge-item .bd { margin-top: 3px; font-size: .68rem; color: var(--muted); line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge-item .bfoot { margin-top: 8px; width: 100%; max-width: 96px; min-height: 2.5em; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px; font-size: .72rem; }
.badge-item .bfoot.ok { color: var(--primary); gap: 1px; }
.badge-item .bfoot.ok span { font-size: .62rem; text-transform: uppercase; letter-spacing: .6px; font-weight: 800; opacity: .8; }
.badge-item .bfoot b { font-weight: 800; font-variant-numeric: tabular-nums; }
.badge-item .bfoot:not(.ok) b { color: var(--text); }
.bbar { display: block; width: 100%; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bbar i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }

/* ---------- Startseite: Auftritt (Verlaufskurve, letztes Spiel, Bestmarken, Woche, Abzeichen-Reihe) ---------- */
.home-sub { margin: 2px 0 0; color: var(--success); font-weight: 700; font-size: .92rem; }
.stand-card .spark { display: block; width: 100%; height: 54px; padding: 0 16px 6px; box-sizing: border-box; }
.stand-crown.streak { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.home-last { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 0% 0%, #2a2306 0%, var(--surface) 55%); border-color: #3a3210; }
.home-last.lost { background: radial-gradient(120% 140% at 0% 0%, #1f2230 0%, var(--surface) 55%); border-color: var(--border); }
.hl-tag { display: flex; justify-content: space-between; gap: 8px; font-size: .68rem; font-weight: 800; letter-spacing: .8px; color: var(--primary); }
.hl-when { color: var(--muted); font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.hl-score { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 14px 0 4px; }
.hl-score .big { font-size: 3.4rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.hl-score .big.win { color: var(--primary); }
.hl-score .sep { color: var(--muted); font-size: 1.6rem; font-weight: 800; }
.hl-names { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; font-size: .9rem; padding: 0 6px; }
.hl-names span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-names span:last-child { color: var(--muted); text-align: right; }
.hl-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.hl-fact { background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; font-size: .78rem; font-weight: 700; }
.home-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px; min-width: 0; }
.home-tile .v { font-size: 1.6rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.home-tile .t { margin-top: 4px; font-size: .74rem; color: var(--muted); overflow-wrap: anywhere; }
.home-week { display: flex; justify-content: space-between; gap: 8px; margin-top: 0; }
.home-week > div { flex: 1; text-align: center; }
.home-week .n { font-size: 1.3rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.home-week .n.up { color: var(--success); } .home-week .n.down { color: var(--danger); }
.home-week .l { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }
.home-badges { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.home-badges::-webkit-scrollbar { display: none; }
.home-badge { flex: 0 0 84px; text-align: center; text-decoration: none; color: inherit; min-width: 0; }
.hb-medal { position: relative; display: block; width: 60px; margin: 0 auto 6px; }
.hb-medal svg.medal { width: 60px; height: 86px; display: block; }
.home-badge.got .hb-medal svg.medal { filter: drop-shadow(0 3px 9px rgba(0, 0, 0, .5)); }
.home-badge .hb-name { display: block; font-size: .7rem; font-weight: 900; font-style: italic; line-height: 1.2; }
.home-badge:not(.got) .hb-name { color: var(--muted); }
.home-badge .hb-prog { display: block; margin-top: 2px; font-size: .62rem; color: var(--muted); font-weight: 700; }

/* ---------- Reiterleisten auf dem Handy: wischbar statt abgeschnitten ---------- */
.tabs { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a.tab, .tabs button { flex: none; white-space: nowrap; }
.account-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: inherit; }
.account-link-go { color: var(--primary); font-size: 1.6rem; font-weight: 700; line-height: 1; }

.stand-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; min-width: 0; }
.stand-link.grow { flex: 2.4 1 0; }
.stand-link.rank { flex: 1 1 0; justify-content: center; border-left: 1px solid var(--border); padding-left: 10px; }

/* ---------- Home: Player Hub ---------- */
.hub { padding-top: 14px; }
.hub > div + div:not([hidden]) { margin-top: 12px; }
.hub-player { position: relative; display: flex; gap: 18px; align-items: flex-start; padding: 22px 4px 6px; }
/* Stadt oben rechts hinter der Spielerkarte, zur Fläche hin ausgeblendet */
.hub-player::before { content: ''; position: absolute; z-index: 0; top: -14px; right: -18px; width: 72%; height: calc(100% + 34px); pointer-events: none; opacity: .6;
  background: url('../img-20261127064725/bg-city.webp') right top / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%), linear-gradient(to bottom, #000 50%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 55%), linear-gradient(to bottom, #000 50%, transparent 100%); mask-composite: intersect; }
.hub-player > * { position: relative; z-index: 1; }
.hub-photo { position: relative; flex: 0 0 116px; width: 116px; height: 116px; border-radius: 22px; border: 2px solid var(--text); background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; color: var(--muted); box-shadow: -6px 8px 26px rgba(245,197,24,.45); }
.hub-photo .hub-photo-img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; display: block; }
.hub-crown { position: absolute; left: -22px; top: -30px; width: 64px; transform: rotate(-18deg);
  filter: brightness(0) saturate(100%) invert(80%) sepia(62%) saturate(1200%) hue-rotate(1deg) brightness(102%); }
.hub-who { flex: 1; min-width: 0; }
.hub-kicker { font-size: .72rem; font-weight: 700; letter-spacing: 2px; color: var(--muted); padding-bottom: 4px; border-bottom: 3px solid var(--primary); display: inline-block; }
.hub-name { margin-top: 6px; font-size: 1.9rem; font-weight: 900; font-style: italic; line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.hub-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.hub-rank { font-size: 1.7rem; font-weight: 900; font-style: italic; color: var(--primary); text-decoration: none; }
.hub-city { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 1.05rem; }
.hub-meta { margin-top: 4px; color: var(--muted); font-size: .86rem; }
.hub-crowns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hub-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; color: inherit; text-decoration: none; }
.hub-card + .hub-card { margin-top: 12px; }
.hub-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.hub-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .3px; }
.hub-head h2::before { content: ''; width: 4px; height: 20px; border-radius: 2px; background: var(--primary); flex: none; }
.hub-rankcard .hub-head h2::before { display: none; }
.hub-extra { font-weight: 500; font-size: .82rem; color: var(--muted); text-transform: none; }
.hub-head > a { font-size: 1.4rem; line-height: 1; color: var(--text); text-decoration: none; padding: 0 4px; }
.hub-head .hub-link { font-size: .8rem; font-weight: 700; }
.hub-tiles { display: grid; grid-template-columns: repeat(3, 1fr); }
.hub-tiles.four { grid-template-columns: repeat(4, 1fr); margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.hub-tile { text-align: center; padding: 2px 4px; min-width: 0; }
.hub-tile + .hub-tile { border-left: 1px solid var(--border); }
.hub-tile .v { font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.hub-tile .l { margin-top: 2px; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; overflow-wrap: anywhere; }
.hub-mini-crown { width: 22px; height: auto; filter: brightness(0) saturate(100%) invert(80%) sepia(62%) saturate(1200%) hue-rotate(1deg) brightness(102%); }
.hub-rankrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hub-bigrank { font-size: 2.6rem; font-weight: 900; font-style: italic; color: var(--primary); }
.hub-of { font-size: 1.3rem; font-weight: 800; }
.hub-delta { border: 1px solid var(--border); border-radius: 12px; padding: 6px 12px; text-align: center; }
.hub-delta b { display: block; font-size: 1.1rem; }
.hub-delta.up b { color: var(--success); } .hub-delta.down b { color: var(--danger); }
.hub-delta small { font-size: .68rem; color: var(--muted); }
.hub-bar { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin-top: 10px; }
.hub-bar i { display: block; height: 100%; border-radius: 6px; background: var(--primary); }
.hub-badges { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.hub-badge { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: .66rem; font-weight: 700; color: var(--muted); text-decoration: none; text-transform: uppercase; }
.hub-badge.got { color: var(--text); }
.hub-badge .hb-medal svg { width: 40px; height: auto; display: block; }
.hub-more { width: 40px; height: 40px; border-radius: 50%; border: 1px dashed var(--border); display: flex; align-items: center; justify-content: center; }
.hub-next { background: linear-gradient(90deg, var(--surface) 38%, color-mix(in srgb, var(--surface) 55%, transparent) 72%, color-mix(in srgb, var(--surface) 25%, transparent)), url('../img-20261127064725/bg-court.webp') right center / cover no-repeat var(--surface); }
.hub-next-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.hub-next-row svg { color: var(--primary); flex: none; }
.hub-cta { display: flex; justify-content: center; margin-top: 12px; font-style: italic; font-weight: 900; text-transform: uppercase; }
.hub-match { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); color: inherit; text-decoration: none; }
.hub-match strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.hub-score { font-weight: 800; font-variant-numeric: tabular-nums; }
.hub-wl { min-width: 26px; text-align: center; border-radius: 6px; padding: 2px 6px; font-weight: 900; font-size: .8rem; color: #fff; }
.hub-wl.w { background: var(--success); } .hub-wl.l { background: var(--danger); }
.hub-bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.hub-barcol { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.hub-barcol b { font-size: .9rem; }
.hub-barcol i { display: block; width: 100%; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #ffd84a, var(--primary)); }
.hub-achs, .hub-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hub-acts { grid-template-columns: 1fr 1fr; }
.hub-ach, .hub-act { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 14px; padding: 10px; min-width: 0; color: inherit; text-decoration: none; }
.hub-ach svg, .hub-act svg { color: var(--primary); flex: none; }
.hub-ach small, .hub-act small { display: block; font-size: .64rem; color: var(--muted); text-transform: uppercase; }
.hub-ach { flex-direction: column; align-items: flex-start; gap: 6px; }
.hub-ach b { font-size: 1.15rem; white-space: nowrap; } .hub-act b { font-size: 1.5rem; }
.hub-best, .hub-about { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.hub-best svg { color: var(--primary); flex: none; } .hub-about svg { color: var(--muted); flex: none; }
.hub-best span, .hub-about span { flex: 1; }
.hub-ok { display: inline-flex; align-items: center; gap: 6px; } .hub-ok svg { color: var(--success); }
.hub-progress { display: block; width: 100%; height: auto; }
.hub-goal { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: inherit; text-decoration: none; }
.hub-goal > div { flex: 1; min-width: 0; }
.hub-goal-medal svg { width: 30px; height: auto; display: block; }
.hub-goal-top { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.hub-goal .hub-bar { margin-top: 6px; height: 8px; }
/* Tab-Leiste: THE ONE (Home) mit grösserer Krone in der Mitte (THEONE-151) */
.tabbar a.tab-home { font-style: italic; font-weight: 900; }
.tab-crown { width: 44px; height: auto; display: block; margin-top: -14px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.tabbar a.tab-home { font-size: .76rem; letter-spacing: .6px; }
.tabbar a.tab-home.active .tab-crown { filter: brightness(0) saturate(100%) invert(80%) sepia(62%) saturate(1200%) hue-rotate(1deg) brightness(102%); }
@media (max-width: 380px) { .hub-photo { flex-basis: 96px; width: 96px; height: 96px; } .hub-name { font-size: 1.5rem; } }
.hub-none { margin: 6px 0 2px; color: var(--muted); font-size: .88rem; }
.hub-rank.unranked, .hub-bigrank.unranked { color: var(--muted); }
.hub-rank.unranked { font-size: 1.05rem; letter-spacing: .5px; text-transform: uppercase; }
.hub-bigrank.unranked { font-size: 2rem; }
.hub-date { font-size: .74rem; color: var(--muted); white-space: nowrap; }
/* Meine Spiele im Stil der Startseite (Player Hub) */
.games-card .game-list { border: none; border-radius: 0; background: transparent; margin: 0 -16px -14px; }
.games-card .game-row { border-bottom: none; border-top: 1px solid var(--border); padding: 11px 16px; }
.games-card.accent { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); }
.games-count.accent { background: var(--primary); color: var(--primary-ink, #1a1400); }
.hub-head h2 .games-count { font-style: normal; }
.games-older > summary { cursor: pointer; list-style: none; padding: 10px 0 2px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; font-weight: 700; }
.games-older > summary::-webkit-details-marker { display: none; }
.games-older > summary::before { content: '▸ '; }
.games-older[open] > summary::before { content: '▾ '; }
.hub-match .badge { margin-left: auto; }
/* Spieler unter Play: nach Art gruppiert, kompakte Zeilen im Stil des Player Hub */
.reco-card.accent { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); }
.reco-note { margin: -4px 0 6px; color: var(--muted); font-size: .8rem; }
.reco-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); cursor: pointer; min-width: 0; }
.reco-row:active { opacity: .8; }
.reco-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.reco-main strong { display: flex; align-items: center; gap: 6px; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reco-meta { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.reco-side { display: flex; align-items: center; gap: 8px; flex: none; }
.reco-side b { font-variant-numeric: tabular-nums; }
.reco-main .fav-chip { align-self: flex-start; margin-top: 3px; max-width: 100%; white-space: normal; overflow: visible; text-overflow: clip; }
/* Spieler finden: Suche in einer Karte, Treffer als kompakte zweispaltige Kacheln im Stil des Player Hub */
.find-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.find-tile { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 10px; cursor: pointer; min-width: 0; margin: 0 !important; border-radius: 14px; }
.find-tile:active { opacity: .85; }
.find-tile .dash-row-avatar { flex: none; width: 34px; height: 34px; }
.find-tile-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding-right: 30px; }
.find-tile-name { display: flex; align-items: center; gap: 3px; font-size: .84rem; font-weight: 800; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-tile-name .crown-mark svg { width: 13px; height: 13px; }
.find-tile-meta { color: var(--muted); font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-tile-rating { display: flex; align-items: baseline; gap: 6px; font-size: .74rem; }
.find-tile-rating b { font-size: .86rem; font-variant-numeric: tabular-nums; }
.find-tile-star { position: absolute; top: 4px; right: 4px; transform: scale(.72); transform-origin: top right; }
.hub-card .find-form { margin: 0; }
/* Courts im Stil des Player Hub: Steuerung in einer Karte, Liste kompakt in einer Karte, Kacheln kompakt zweispaltig */
.court-controls { margin-top: 12px; }
.court-controls .court-search { margin-top: 10px; }
.court-list { padding-top: 4px; padding-bottom: 4px; }
.court-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); cursor: pointer; min-width: 0; }
.court-row:first-child { border-top: none; }
.court-row:active, .court-tile:active { opacity: .85; }
.court-thumb { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--muted); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.court-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.court-row-main, .court-tile-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.court-row-main strong, .court-tile-main strong { display: flex; align-items: center; gap: 4px; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.court-ok { color: var(--success); display: inline-flex; flex: none; }
.court-meta { color: var(--muted); font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.court-row-facts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.court-row-facts .court-facts, .court-tile-main .court-facts { font-size: .72rem; margin: 0; }
.court-row .court-rating, .court-tile .court-rating { font-size: .72rem; }
.court-dist { flex: none; font-weight: 800; font-size: .8rem; color: var(--primary); }
.court-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.court-tile { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; margin: 0 !important; border-radius: 14px; cursor: pointer; min-width: 0; }
.court-meta-hoop svg { vertical-align: -2px; }
.court-meta-star { color: var(--primary); font-weight: 700; }
.court-tile .court-meta { white-space: normal; }
.court-meta-star, .court-meta-hoop { white-space: nowrap; }
.video-mark { display: inline-flex; flex: none; color: #b38cff; }
.hub-match strong { flex: 0 1 auto; }
.hub-match .hub-date { margin-left: auto; }
/* Court-Liste: gleiche Schriftgrössen wie die Zeilen unter Play und auf der Startseite */
.court-row-main strong { font-size: 1rem; }
.court-row .court-meta { font-size: .78rem; }
.court-row .court-thumb { width: 38px; height: 38px; }
.court-dist { font-size: .88rem; }
/* Court-Detail im Stil des Player Hub */
.court-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 4px; }
.court-detail-head h1 { margin: 0; font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 1.5rem; line-height: 1.1; overflow-wrap: anywhere; }
.court-detail-addr { margin: 4px 0 10px; color: var(--muted); font-size: .86rem; }
.court-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.court-chip { display: inline-flex; align-items: center; gap: 3px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); font-size: .8rem; font-weight: 700; }
.court-chip svg { color: var(--primary); }
.court-chip.muted { color: var(--muted); font-weight: 600; }
.court-opening { margin: 8px 0 0; color: var(--muted); font-size: .82rem; }
.court-rate { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.court-rate-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.court-rate-avg b { color: var(--primary); font-size: 1.1rem; }
.court-rate-mine { display: flex; align-items: center; gap: 8px; font-size: .8rem; }
.court-rate-remove { padding: 2px 8px; min-height: 0; }
/* Profil anderer Spieler wie die Startseite */
.profile-follow { position: absolute; top: 18px; right: 0; z-index: 2; }
.hub-name .crown-mark { margin-left: 6px; vertical-align: middle; }
.hub > section + *, .hub > a + *, .hub > div + section, .hub > a.hub-cta { margin-top: 12px; }
.court-detail > * + * { margin-top: 12px; }
.court-detail > .ad-slot:empty { display: none; }
.social-icons { display: flex; gap: 8px; margin-top: 8px; }
.social-icon { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--surface-2) 85%, transparent); border: 1px solid var(--border); color: var(--text); }
.social-icon:active { opacity: .8; }
/* Court vorschlagen: Karten im Stil des Player Hub, platzsparend */
.court-new > section + section, .court-new > section + .form-submit { margin-top: 12px; }
.court-new .hub-card .field { margin-bottom: 10px; }
.court-new .hub-card .field:last-child { margin-bottom: 0; }
.court-new .hub-head .toggle-switch, .court-new .hub-head > :last-child { flex: none; }
.court-new-geo { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.court-new-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.court-new-row .field { margin-bottom: 0; }
.court-new-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.court-new-checks .check { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface-2); font-size: .82rem; margin: 0; }
.court-new-checks .check:has(input:checked) { border-color: var(--primary); }
.place-picker .hint:empty { display: none; }
.court-new .choice-group.cards .choice-sub { display: none; }
.court-new .choice-group.cards .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.court-new .choice-group.cards .choice { padding: 8px 6px; min-height: 0; text-align: center; }
.court-new .choice-group.cards .choice strong { font-size: .84rem; }
/* Community im Stil des Player Hub */
.reco-row .dash-row-avatar, .reco-row .reco-main { cursor: pointer; }
.reco-side .btn { white-space: nowrap; }
.hub-live { display: block; padding: 10px 0; border-top: 1px solid var(--border); color: inherit; text-decoration: none; }
.hub-live:first-of-type { border-top: none; }
.settings-card h3 { font-size: .95rem; font-style: italic; font-weight: 900; text-transform: uppercase; }
.settings-card .choice-row .choice { border-radius: 12px; min-height: 44px; padding: 8px 6px; font-size: .84rem; overflow-wrap: normal; word-break: normal; hyphens: auto; }
.share-caption-wrap { margin: 10px 0; }
.share-caption-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.share-caption { width: 100%; resize: none; font: inherit; font-size: .82rem; line-height: 1.4; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
/* Court vorschlagen: Chips gleich hoch wie die Zähler-Knöpfe, damit alles auf einer Linie steht */
.court-new-row { align-items: flex-end; }
.court-new-checks .check { min-height: 44px; padding-top: 0; padding-bottom: 0; }
.court-new .grid-2 { row-gap: 0; }
/* Rangliste im Stil des Player Hub */
.rank-card { padding-top: 4px; padding-bottom: 4px; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); cursor: pointer; min-width: 0; }
.rank-row:first-child { border-top: none; }
.rank-row.you { margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 14%, transparent); border-top-color: transparent; }
.rank-row.you + .rank-row { border-top-color: transparent; }
.rank-no { flex: none; min-width: 38px; font-size: 1.1rem; font-weight: 900; font-style: italic; color: var(--primary); font-variant-numeric: tabular-nums; }
.rank-you { margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--primary); color: var(--primary-ink, #1a1400); font-size: .66rem; font-weight: 900; font-style: normal; text-transform: uppercase; }
.rank-row .reco-meta svg { vertical-align: -1px; color: var(--primary); }
.rank-mine { text-align: right; }
.rank-mine b { display: block; font-size: 1.3rem; }
.rank-mine small { color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.rank-filter .choice { border-radius: 12px; min-height: 40px; padding: 6px; font-size: .85rem; }
/* Eigenes Profil und Passport bearbeiten im Stil des Player Hub */
.hub > div > .passport-edit-card + .passport-edit-card { margin-top: 12px; }
.hub-page-title { margin: 12px 0 12px; font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 1.5rem; }
.hub > section.hub-card + section.hub-card { margin-top: 12px; }
.body-tiles { border-bottom: none !important; margin-bottom: 0 !important; padding-bottom: 0 !important; }
.body-tiles .hub-tile .v { font-size: 1.05rem; white-space: nowrap; }
.body-tiles .hub-tile .l { font-size: .62rem; }
/* Konto im Stil des Player Hub: alle Karten wie hub-card, Überschriften kursiv mit gelbem Balken */
.hub-skin > .card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; box-shadow: none; margin: 0; }
.hub-skin > .card + .card, .hub-skin > * + * { margin-top: 12px; }
.hub-skin > .card > h2:first-child, .hub-skin > .card > .card-head h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1.05rem; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .3px; }
.hub-skin > .card > h2:first-child::before { content: ''; width: 4px; height: 20px; border-radius: 2px; background: var(--primary); flex: none; }
/* Statistik im Stil der Startseite */
.stats-card .hub-tiles + .hub-tiles { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.stats-card .hub-tile .v { font-size: 1.3rem; }
.hub-legend { display: flex; gap: 14px; margin: -4px 0 8px; font-size: .74rem; color: var(--muted); }
.hub-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hub-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.stats-card .stat-chart { width: 100%; height: auto; }
.stats-card .stat-chart .grid { stroke: rgba(255,255,255,.08); }
.stats-card .stat-chart .axis { fill: var(--muted); font-size: 9px; }
.stats-card .donut-text { fill: var(--text); font-weight: 900; font-size: 15px; }
.hub-card .stats-card > .hub-card { border: none; padding: 0; background: none; }
.hub-tiles.two { grid-template-columns: repeat(2, 1fr); }

/* 2026-11-13: Kopfzeile ohne eigenen Hintergrund (gleich wie die Seite), weniger Leerraum unten, Krone etwas kleiner und tiefer, Navigation unten schlanker */
.theone-topbar { background: var(--bg); }
.home-end { height: 44px; }
.theone-container { padding-bottom: 8px; }
.tab-crown { width: 38px; margin-top: -6px; }
.tabbar { padding-top: 4px; padding-bottom: max(4px, calc(env(safe-area-inset-bottom) - 16px)); }
.tabbar a { padding: 5px 4px; min-height: 44px; gap: 2px; }
.hub-bar-label { margin-top: 8px; text-align: right; font-size: .74rem; font-weight: 800; color: var(--muted); letter-spacing: .3px; text-transform: uppercase; }
.hub-bar-label + .hub-bar { margin-top: 4px; }
/* Match (Einchecken, Live, Resultat) im Stil des Player Hub: Karten, Abschnittstitel kursiv mit gelbem Balken, Zahlen als Kacheln */
.match-hub .card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; box-shadow: none; }
.match-hub .card .section-title, .match-hub .match-hub-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--text); font-size: 1.05rem; font-weight: 900; font-style: italic; letter-spacing: .3px; text-transform: uppercase; }
.match-hub .card .section-title::before, .match-hub .match-hub-title::before { content: ''; width: 4px; height: 20px; border-radius: 2px; background: var(--primary); flex: none; }
.match-hub .card h2:not(.match-hub-title) { font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 1.3rem; margin: 4px 0 6px; }
.match-hub .stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0; background: none; }
.match-hub .stat-tile { background: none; border: none; border-radius: 0; padding: 4px 6px; }
.match-hub .stat-tile + .stat-tile { border-left: 1px solid var(--border); }
.match-hub .stat-tile .v { font-size: 1.7rem; font-weight: 900; }
.match-hub .stat-row + .stat-row, .match-hub .alert + .stat-row { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }

/* ---------- Bild hinter Titel und Tabs (Play, Courts, Rangliste, Community) ----------
   Nur hinter dem Titel, endet über den Tabs; liegt absolut hinter dem Inhalt (z-index -1, über dem Seitenhintergrund), nach links ausgeblendet; die Seite wird dadurch nicht höher. */
.theone-container { position: relative; }
.page-banner { position: absolute; z-index: -1; top: 4px; left: 0; right: 0; height: 58px; pointer-events: none; opacity: .9;
  background: right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 32%), linear-gradient(to bottom, #000 80%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 32%), linear-gradient(to bottom, #000 80%, transparent 100%); mask-composite: intersect; }
.pb-play { background-image: url('../img-20261127064725/hdr-play.webp'); background-position: right 72%; }
.pb-courts { background-image: url('../img-20261127064725/hdr-courts.webp'); background-position: right 60%; }
.pb-rankings { background-image: url('../img-20261127064725/hdr-rankings.webp'); background-position: right 45%; }
.pb-community { background-image: url('../img-20261127064725/hdr-community.webp'); background-position: right 65%; }
/* Schmaler Bildschirm: der Titel nimmt mehr Breite ein, darum länger ausblenden, damit er lesbar bleibt */
@media (max-width: 600px) {
  .page-banner { -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%), linear-gradient(to bottom, #000 80%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 55%), linear-gradient(to bottom, #000 80%, transparent 100%); }
}

/* «Regeln» rechtsbündig in der Tab-Zeile von Play */
.tabs a.tab.tab-rules { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; }

/* ---------- Court Availability («Ich spiele») ---------- */
.btn.ghost-y { background: transparent; border-color: var(--primary); color: var(--primary); }
.plan-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--primary-soft); color: var(--primary); border: 1px solid rgba(245,197,24,.4); border-radius: 99px; padding: 2px 9px; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.plan-pill.dim { background: var(--surface-2); color: var(--muted); border-color: var(--border); }
.plan-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 6px var(--primary); }
.court-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.plan-card .hub-head { margin-bottom: 12px; }
.plan-actions { display: flex; gap: 8px; margin-bottom: 14px; }
.plan-actions .btn:first-child { flex: 1; }
.plan-here { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--primary-soft); border: 1px solid rgba(245,197,24,.45); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; font-weight: 700; }
.plan-here-btns { display: flex; gap: 6px; }
.plan-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 12px; }
.plan-wd { border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 10px; padding: 6px 0 7px; text-align: center; font: inherit; cursor: pointer; }
.plan-wd b { display: block; font-size: .64rem; color: var(--muted); letter-spacing: .3px; }
.plan-wd i { display: block; font-style: normal; font-weight: 900; font-size: .95rem; margin-top: 1px; }
.plan-wd-bar { height: 26px; display: flex; align-items: flex-end; justify-content: center; margin-top: 3px; }
.plan-wd-bar u { width: 12px; border-radius: 3px; background: var(--primary); opacity: .85; display: block; }
.plan-wd.on { border-color: var(--primary); background: var(--primary-soft); }
.plan-wd.on b { color: var(--primary); }
.plan-peak { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 2px 0 8px; }
.plan-peak strong { font-style: italic; font-weight: 900; }
.plan-peak em { color: var(--primary); font-style: italic; }
.plan-hours { display: flex; align-items: flex-end; gap: 3px; height: 64px; }
.plan-hours u { flex: 1; background: #3a3b42; border-radius: 3px 3px 0 0; display: block; }
.plan-hours u.y { background: var(--primary); }
.plan-hours-x { display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; margin: 4px 0 4px; }
.plan-sec { margin: 14px 0 2px; font-size: .72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.plan-anon { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--border); }
.plan-stack { display: inline-flex; }
.plan-stack i { width: 20px; height: 20px; border-radius: 7px; background: #2c2d33; border: 2px solid var(--surface); margin-left: -6px; }
.plan-stack i:first-child { margin-left: 0; }
.plan-me { background: var(--primary-soft) !important; color: var(--primary); }
.plan-thumb { background: var(--primary-soft); color: var(--primary); }
.plan-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.plan-chips.scroll::-webkit-scrollbar { display: none; }
.plan-chips .stat-chip { flex: none; }
.plan-court { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; }
.plan-note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .78rem; margin: 12px 0 0; line-height: 1.4; }
.plan-when { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.plan-when.sub { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.plan-date { width: 52px; text-align: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 5px 0; flex: none; }
.plan-date b { display: block; color: var(--muted); font-size: .66rem; letter-spacing: 1px; }
.plan-date i { display: block; font-style: normal; font-size: 1.3rem; font-weight: 900; line-height: 1.1; }
.plan-date.on { background: var(--primary-soft); border-color: rgba(245,197,24,.45); }
.plan-date.on b { color: var(--primary); }
.plan-open { color: var(--success); }
button.game-row { width: 100%; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
/* Balken oben, solange ein eigener Eintrag läuft (wie der Live-Balken) */
.plan-banner { display: flex; align-items: center; gap: 8px; background: var(--primary-soft); border-bottom: 1px solid rgba(245,197,24,.45); padding: 8px 14px; font-size: .84rem; font-weight: 700; }
.plan-banner[hidden] { display: none; }
.plan-banner-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; color: var(--primary); text-decoration: none; overflow: hidden; }
.plan-banner-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-banner-btn { flex: none; background: transparent; border: 1px solid rgba(245,197,24,.5); color: var(--primary); border-radius: 8px; padding: 4px 9px; font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
.plan-card svg, .plan-banner svg, .plan-note svg, .play-now .btn svg { flex: none; } /* Symbole in Flex-Knöpfen nicht auf 0 schrumpfen */
.plan-actions { flex-wrap: wrap; }
.plan-actions .btn { padding: 10px 12px; white-space: nowrap; flex: 1 1 auto; min-width: 0; }
.plan-actions .btn:first-child { flex: 1.4 1 auto; }
.plan-card a.court-row, .plan-card a.plan-when { text-decoration: none; color: inherit; }
/* Karten-Pin mit Court Availability: Zahl wie ein App-Badge, grüner Puls, wenn jetzt jemand spielt */
.court-pin-count { position: absolute; top: -7px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #0a0a0c; color: var(--primary); border: 2px solid var(--primary); font: 900 .72rem/16px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; text-align: center; box-sizing: border-box; }
.court-pin.live .court-pin-badge { box-shadow: 0 0 0 0 rgba(52, 211, 153, .7), 0 3px 8px rgba(0, 0, 0, .5); animation: court-pin-pulse 1.8s ease-out infinite; }
@keyframes court-pin-pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .75), 0 3px 8px rgba(0, 0, 0, .5); } 70% { box-shadow: 0 0 0 14px rgba(52, 211, 153, 0), 0 3px 8px rgba(0, 0, 0, .5); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0), 0 3px 8px rgba(0, 0, 0, .5); } }
@media (prefers-reduced-motion: reduce) { .court-pin.live .court-pin-badge { animation: none; box-shadow: 0 0 0 3px #34d399, 0 3px 8px rgba(0, 0, 0, .5); } }
.toggle { text-align: left; } /* Knopf zentriert Text sonst: lange Beschriftungen neben dem Schalter linksbündig */
.fav-chip.court { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); } /* jetzt am Court (Ich spiele) */
.fav-chip .dot { flex: none; } .reco-main .fav-chip { border-radius: 8px; line-height: 1.3; padding: 3px 8px; } /* lange Hinweise umbrechen sauber */
/* Live-Board (THEONE-66): kein Doppeltipp-Zoom und keine Tipp-Verzögerung auf den Zählknöpfen; Spalte mit noch nicht gesendeter Eingabe leicht markiert */
.live-btn, .undo-btn, .live-actions .btn, .live-board { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.live-col.pending .live-score { opacity: .8; }
.live-fouls b { font-weight: inherit; }
.rank-gap { text-align: center; color: var(--muted); letter-spacing: 4px; padding: 4px 0; }
.rel-card { border-color: rgba(245,197,24,.55); }

/* ---------- Eingang für Challenges (THEONE-115) ---------- */
dialog.inbox-dialog { border: 0; padding: 0; background: transparent; color: var(--text); width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: visible; }
dialog.inbox-dialog::backdrop { background: rgba(5, 5, 8, .78); backdrop-filter: blur(3px); }
.inbox-stage { position: relative; }
.inbox-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px;
  max-height: calc(100dvh - 24px); overflow-y: auto; touch-action: pan-y; user-select: none; transition: transform .25s ease, opacity .25s ease; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.inbox-card.dragging { transition: none; cursor: grabbing; }
.inbox-card.fly-right { transform: translateX(130%) rotate(12deg) !important; opacity: 0; }
.inbox-card.fly-left { transform: translateX(-130%) rotate(-12deg) !important; opacity: 0; }
.inbox-card .card { margin: 0; }
.inbox-top { display: flex; justify-content: space-between; align-items: center; }
.inbox-kicker { color: var(--primary); font-weight: 900; letter-spacing: 2px; font-size: .78rem; }
.inbox-facts { margin: 0; }
.inbox-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.inbox-links a { color: var(--muted); }
.inbox-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.inbox-actions .btn { min-height: 48px; padding-inline: 8px; white-space: normal; line-height: 1.15; }
.inbox-swipe-hint { margin: 0; text-align: center; }
.inbox-hint { position: absolute; top: 18px; z-index: 2; padding: 4px 12px; border: 3px solid; border-radius: 8px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .1s; }
.inbox-hint.accept { left: 18px; color: var(--success); transform: rotate(-12deg); }
.inbox-hint.decline { right: 18px; color: var(--danger); transform: rotate(12deg); }
.inbox-card[data-hint="accept"] .inbox-hint.accept, .inbox-card[data-hint="decline"] .inbox-hint.decline { opacity: 1; }
.inbox-done { align-items: center; text-align: center; padding: 36px 18px; }
.inbox-done h2 { margin: 0; text-transform: uppercase; letter-spacing: 1px; }
.inbox-done p { margin: 0; }
.inbox-done-mark { color: var(--success); }
@media (prefers-reduced-motion: reduce) { .inbox-card { transition: none; } }

/* Sprunglink zum Inhalt (THEONE-18, WCAG 2.4.1): unsichtbar, bis er per Tastatur den Fokus bekommt */
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--primary, #ffd400); color: var(--primary-ink, #0a0a0c); padding: 8px 14px; border-radius: 8px; font-weight: 800; text-decoration: none; }
.skip-link:focus { left: 12px; }
main.theone-container:focus { outline: none; }
