/*
 * Oberflaeche RONO.
 *
 * Zwei Nutzungslagen bestimmen die Gestaltung:
 *
 *   Die Sportlerin steht im Eingang eines Studios, oft mit einer Hand am
 *   Telefon. Wenige, grosse Ziele; der wichtigste Zustand — der wartende
 *   Check-in — oben und nicht wegscrollbar.
 *
 *   Der Tresen entscheidet zwischen zwei Gespraechen. Die Warteschlange
 *   muss ohne Lesen erfassbar sein: ein Eintrag, zwei Flaechen, fertig.
 *
 * Dunkel als Grundton, weil beide Lagen haeufig in Hallen mit gedaempftem
 * Licht stattfinden. Seit der 2026-Neuauflage teilt sich die Landingpage
 * denselben dunklen Grundton statt eines eigenen hellen Themas (siehe
 * landing.css) -- eine Marke, ein Zustand, kein Bruch beim Anmelden mehr.
 *
 * Akzent Limone #CFFF04 (ersetzt das fruehere Koralle-Orange #FF5A36),
 * Gold #D4A93E fuer Tier/Premium-Momente, Gruen #8FE36B fuer positive
 * Bewegung (Zuwachs, Serien). Alle drei sowie Flaechen-/Textfarben sind
 * hier als Variablen zentralisiert -- Komponenten und web/js/theme.js
 * (fuer die wenigen Stellen, an denen JS Farben als literale Hex-Werte
 * braucht, z.B. Inline-SVG) beziehen sich auf dieselben Werte.
 */

:root {
  --bg: #050505;
  --bg-raised: #0a0a0a;
  --surface: #121314;
  --surface-2: #16181a;
  --surface-3: #1c1e21;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #f5f6f7;
  --muted: rgba(255, 255, 255, 0.55);
  --muted-2: rgba(255, 255, 255, 0.4);

  --lime: #cfff04;
  --lime-soft: rgba(207, 255, 4, 0.1);
  --lime-ink: #0a0a0a;
  --gold: #d4a93e;
  --gold-soft: rgba(212, 169, 62, 0.12);
  --success: #8fe36b;
  --success-soft: rgba(143, 227, 107, 0.15);

  /* Bestehende Komponenten binden an --accent/--ok/--warn -- Alias auf die
   * neuen Marken-Token, damit nicht jede Regel im Dokument einzeln
   * umgeschrieben werden muss. */
  --accent: var(--lime);
  --accent-soft: var(--lime-soft);
  --accent-ink: var(--lime-ink);
  --ok: var(--success);
  --ok-soft: var(--success-soft);
  --warn: var(--gold);
  --bad: #e5646b;

  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 22px;
  --tabbar-h: 78px;
  --shadow-card: 0 1px 0 var(--line-soft) inset, 0 8px 20px -12px rgba(0, 0, 0, 0.55);
  --shadow-pop: 0 12px 32px -14px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  font-synthesis-weight: none;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(680px 420px at 50% -12%, rgba(207, 255, 4, 0.05), transparent 65%),
    var(--bg);
  background-attachment: fixed;
}

/* background-attachment: fixed kombiniert mit mehreren position: fixed +
 * backdrop-filter-Elementen (Landing-Nav, Cookie-Hinweis) ist ein bekannter
 * WebKit/iOS-Safari-Fehler -- er kann das Scrollen der ganzen Seite
 * sporadisch einfrieren lassen (Compositing-Bug, nicht reproduzierbar in
 * Chromium). Auf echten Touch-Geraeten deshalb auf das normale, harmlose
 * "scroll"-Verhalten zurueckfallen; der optische Unterschied (Verlauf
 * bewegt sich minimal mit) faellt praktisch nicht auf. */
@media (hover: none) and (pointer: coarse) {
  body {
    background-attachment: scroll;
  }
}

.app {
  min-height: 100%;
  padding: 20px 18px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 24px);
  max-width: 560px;
  margin: 0 auto;
}

/* Nur ab Desktop-Breite gebraucht (Sidebar-Kopf) -- ohne diese Regel
 * erscheint sie unformatiert oben links, sobald JS `hidden` entfernt. */
.brand {
  display: none;
}

/* Hoehere Spezifitaet als die `display:flex`-Regel im Media Query unten,
 * damit das von JS gesetzte `hidden` (z.B. auf der Landingpage) dort
 * zuverlaessig gewinnt, statt von der Sidebar-Regel ueberschrieben zu
 * werden. */
.brand[hidden] {
  display: none;
}

/* ------------------------------------------------------- Desktop-Rahmen
 *
 * Unter 1024px bleibt die App eine einspaltige Telefon-Breite mit
 * Tableiste unten -- das ist die haeufigste Nutzung (Studioeingang,
 * Handy in der Hand). Ab Desktop-Breite wuerde dieselbe schmale Spalte
 * nur mittig auf viel Leerflaeche schweben; stattdessen wandert die
 * Navigation in eine feste linke Spalte, wie bei einem Dashboard.
 */

@media (min-width: 1024px) {
  /* Vorher 640px: auf einem Laptop blieb rechts eine leere Flaeche von
   * mehreren hundert Pixeln stehen, weil die App nur die mobile
   * Ein-Spalten-Saeule mit einem Rand versehen hatte, statt die Breite
   * tatsaechlich zu nutzen (siehe .app-grid unten fuer die eigentliche
   * Mehrspaltigkeit auf Home, Venues, Profil und der Partner-Auswertung). */
  .app {
    max-width: 1040px;
    margin: 0 0 0 260px;
    padding: 48px 48px 64px;
  }

  /* Zwei Spalten fuer Ansichten mit trennbarem Haupt- und Nebeninhalt.
   * Mobil bleibt es bei der einfachen Reihenfolge im Dokument -- diese
   * Klasse greift nur ab Desktop-Breite. */
  .app-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
    align-items: start;
  }

  .app-grid--map {
    grid-template-columns: 1fr 420px;
  }

  .app-grid__side {
    position: sticky;
    top: 48px;
  }

  .venue-map--tall {
    height: calc(100vh - 220px);
    min-height: 420px;
  }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

@media (min-width: 1024px) {

  .brand {
    display: flex;
    align-items: center;
    gap: 1px;
    position: fixed;
    inset: 0 auto auto 0;
    width: 260px;
    height: 84px;
    padding: 0 28px;
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: 0.01em;
    font-size: 21px;
    background: var(--bg);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    z-index: 11;
  }

  /* Nur der erste "O" traegt Limone, wie im Wortzeichen der Marke (R-O-N-O). */
  .brand span:nth-child(2) {
    color: var(--lime);
  }

  .tabbar {
    top: 84px;
    left: 0;
    right: auto;
    bottom: 0;
    width: 260px;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 3px;
    padding: 18px 12px;
    background: var(--bg);
    border-top: none;
    border-right: 1px solid var(--line);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .tabbar a {
    flex-direction: row;
    justify-content: flex-start;
    gap: 13px;
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
  }

  .tabbar a:hover {
    background: var(--surface-2);
  }

  .tabbar a[aria-current="page"] {
    background: var(--accent-soft);
  }

  .tabbar .icon,
  .tabbar a[aria-current="page"] .icon {
    width: auto;
    height: auto;
    background: none;
    transform: none;
  }
}

.boot {
  color: var(--muted);
  padding: 40px 0;
  text-align: center;
}

/* ---------------------------------------------------------------- Typografie */

h1 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1rem;
  margin: 28px 0 14px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.005em;
}

h2.h2--section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.h2__more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lime);
  text-decoration: none;
  white-space: nowrap;
}

p {
  margin: 0 0 12px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

/* -------------------------------------------------------------------- Flaechen */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.card--flat {
  background: var(--surface-2);
  border: none;
  box-shadow: none;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.row--between {
  justify-content: space-between;
}

.stack > * + * {
  margin-top: 10px;
}

/* --------------------------------------------------------------- Punktestand */

/* Flache, linksbuendige Karte -- an den Punkte-Hero der 2026-Neuauflage
 * angeglichen (grosse Limone-Zahl, Tier-Zeile, Fortschrittsbalken), statt
 * der fruehreren zentrierten Karte mit farbigem Glanzfleck. */
.balance {
  position: relative;
  text-align: left;
  padding: 26px;
}

.balance__greeting {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.balance__value {
  position: relative;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--lime);
}

.balance__label {
  position: relative;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 6px;
}

/* ---------------------------------------------------------- Wartende Check-ins
 *
 * Der Wartezustand ist die einzige Stelle, an der die Nutzerreise abreissen
 * kann (docs/blueprint.md, 3.5). Deshalb warm eingefaerbt, ganz oben, mit
 * sichtbarer Restfrist — und niemals stillschweigend verschwindend.
 */

.pending {
  border-color: #4a3f1a;
  background: linear-gradient(160deg, #251f0c 0%, var(--surface) 80%);
  box-shadow: var(--shadow-card);
}

.pending__head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--warn);
  font-weight: 600;
  font-size: 0.9rem;
}

.pending__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warn);
  animation: pulse 1.8s ease-in-out infinite;
  flex: none;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pending__dot {
    animation: none;
  }
}

.pending__points {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------- Tier-Hinweis */

.nudge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  border-color: #1f4a34;
  background: linear-gradient(160deg, #12261c 0%, var(--surface) 80%);
}

.nudge__icon {
  color: var(--ok);
  line-height: 1;
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(63, 178, 127, 0.16);
}

.nudge__title {
  font-weight: 600;
  color: var(--ok);
}

.nudge__dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1;
  padding: 6px;
}

/* ------------------------------------------------------------------ Elemente */

button {
  font: inherit;
  cursor: pointer;
}

.btn {
  display: block;
  width: 100%;
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s var(--ease), filter 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
  filter: brightness(0.96);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 22px -10px rgba(207, 255, 4, 0.45);
}

.btn--ok {
  background: var(--ok);
  border-color: var(--ok);
  color: #04140d;
}

.btn--bad {
  background: transparent;
  border-color: var(--bad);
  color: var(--bad);
}

.btn--ghost {
  background: transparent;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* --------------------------------------------------------- Schnellaktionen */

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
  margin: 14px 0 4px;
}

.quick-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 16px 6px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s var(--ease), filter 0.15s var(--ease);
}

.quick-grid__item:active {
  transform: translateY(1px) scale(0.97);
  filter: brightness(0.96);
}

.quick-grid__item--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 22px -10px rgba(207, 255, 4, 0.45);
}

.quick-grid__icon {
  font-size: 1.4rem;
  line-height: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
}

.quick-grid__item--primary .quick-grid__icon {
  background: rgba(255, 255, 255, 0.18);
}

.quick-grid__label {
  font-size: 0.74rem;
  font-weight: 650;
}

input,
select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

input:focus,
select:focus,
button:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.1s var(--ease);
}

input[type="checkbox"]::after {
  content: "";
  width: 6px;
  height: 11px;
  border-right: 2.5px solid var(--accent-ink);
  border-bottom: 2.5px solid var(--accent-ink);
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s var(--ease);
  margin-top: -2px;
}

input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

input[type="checkbox"]:checked::after {
  transform: rotate(45deg) scale(1);
}

input[type="checkbox"]:active {
  transform: scale(0.92);
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.field + .field {
  margin-top: 12px;
}

/* --------------------------------------------------------------- Swipe-Regler
 *
 * Der Check-in wird nicht getippt, sondern geschoben. Ein Wischen ist keine
 * Zierde: Es verhindert, dass ein Code in der Hosentasche oder ein
 * versehentlicher Tipper einen Vorgang beim Partner ausloest.
 */

.swipe {
  position: relative;
  height: 62px;
  border-radius: 31px;
  background: var(--surface-2);
  border: 1px solid rgba(207, 255, 4, 0.4);
  box-shadow: 0 0 24px -6px rgba(207, 255, 4, 0.35);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.swipe__fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--accent);
  opacity: 0.22;
}

.swipe__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
  pointer-events: none;
  padding-left: 40px;
}

.swipe__knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  touch-action: none;
}

.swipe--done .swipe__knob {
  background: var(--ok);
}

.swipe--done .swipe__label {
  color: var(--ok);
}

/* ------------------------------------------------------------------ Kamera */

.scanner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 3 / 4;
  margin-bottom: 12px;
}

.scanner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner__frame {
  position: absolute;
  inset: 18%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.45);
}

/* -------------------------------------------------------------- Warteschlange */

.queue-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 10px;
}

.queue-item__name {
  font-size: 1.15rem;
  font-weight: 700;
}

.queue-item__meta {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------- Entdecken */

.discover {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.discover__icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.discover__title {
  font-weight: 650;
}

/* -------------------------------------------------------------------- Venues */

.venue-card {
  cursor: pointer;
  transition: border-color 0.15s var(--ease), transform 0.1s var(--ease), box-shadow 0.2s var(--ease);
}

.venue-card:hover {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(207, 255, 4, 0.12);
}

.venue-card:active {
  transform: scale(0.997);
}

.venue-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.venue-card__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.venue-fav {
  background: none;
  border: none;
  padding: 4px;
  line-height: 0;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s var(--ease), transform 0.1s var(--ease);
}

.venue-fav:active {
  transform: scale(0.9);
}

.venue-fav--active {
  color: var(--accent);
}

.venue-photo {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: linear-gradient(155deg, var(--surface-2) 0%, var(--surface) 100%);
}

input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}

/* Sprachumschalter (web/js/i18n.js) -- ein kleiner Pill-Knopf, ueberall gleich. */
.locale-toggle {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.locale-toggle:hover {
  color: var(--text);
  border-color: var(--accent-soft);
}

/* Venues-Karte (web/js/map.js, Leaflet per CDN). Leaflets Vorgabefarben sind
   fuer eine helle Seite gedacht; hier nur das Notwendigste an das dunkle
   Thema angeglichen -- die Kartenkacheln selbst bleiben, wie sie sind. */
.venue-map {
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-card);
}

.venue-map:empty,
.venue-map[hidden] {
  display: none;
}

.venue-map .leaflet-popup-content-wrapper,
.venue-map .leaflet-popup-tip {
  background: var(--surface-2);
  color: var(--text);
}

.venue-map .leaflet-control-attribution {
  background: rgba(11, 13, 16, 0.7);
  color: var(--muted);
}

.venue-map .leaflet-control-attribution a {
  color: var(--muted);
}

/* ------------------------------------------------------------------- Wallet */

.entry {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.entry:last-child {
  border-bottom: none;
}

.entry__amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.entry__amount--credit {
  color: var(--ok);
}

.entry__amount--debit {
  color: var(--bad);
}

/* ---------------------------------------------------------------- QR-Anzeige */

.qr {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  place-items: center;
}

.qr svg,
.qr img {
  width: 100%;
  height: auto;
  max-width: 280px;
  display: block;
}

.sr-id {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-top: 14px;
}

/* ------------------------------------------------------------------ Tableiste */

/* Hoehere Spezifitaet als `.tabbar { display: flex }` unten, damit von JS
 * gesetztes `hidden` (Landingpage, abgemeldeter Zustand) zuverlaessig
 * gewinnt -- sonst zeigt die eigene display-Regel einen leeren Rahmen an,
 * genau wie bei .brand oben. */
.tabbar[hidden] {
  display: none;
}

.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  background: rgba(10, 12, 15, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-top: 1px solid var(--line-soft);
  z-index: 10;
}

.tabbar a {
  flex: 1;
  display: grid;
  place-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
  padding: 10px 0 8px;
  transition: color 0.15s var(--ease);
}

.tabbar a[aria-current="page"] {
  color: var(--accent);
}

.tabbar .icon svg,
.quick-grid__icon svg,
.nudge__icon svg,
.empty__icon svg {
  display: block;
}

.tabbar .icon {
  line-height: 1;
  width: 34px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}

.tabbar a[aria-current="page"] .icon {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.tabbar .badge {
  position: absolute;
  transform: translate(14px, -12px);
  background: var(--warn);
  color: #221a04;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
}

/* Check-in-Tab: auf dem Handy als angehobener, runder Lime-Knopf (2026-Mockup) --
 * ab Desktop-Breite bleibt es eine normale Zeile in der Seitenleiste, siehe
 * die .tabbar-Regeln im ersten @media(min-width:1024px)-Block oben, die
 * width/height/transform dort ohnehin auf "auto"/"none" zuruecksetzen. */
@media (max-width: 1023px) {
  .tabbar a.tabbar__fab {
    color: var(--text);
  }

  .tabbar a.tabbar__fab .icon {
    width: 56px;
    height: 56px;
    margin-top: -28px;
    border-radius: 50%;
    background: var(--lime);
    color: var(--lime-ink);
    box-shadow: 0 6px 16px -4px rgba(207, 255, 4, 0.5);
  }

  .tabbar a.tabbar__fab[aria-current="page"] .icon {
    background: var(--lime);
  }
}

/* -------------------------------------------------------------------- Hinweis */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
  transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 12px;
  max-width: min(92vw, 460px);
  z-index: 20;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.toast--bad {
  border-color: var(--bad);
}

.toast--ok {
  border-color: var(--ok);
}

/* -------------------------------------------------------------- Speicherhinweis
 *
 * Informationshinweis, kein Einwilligungsbanner mit Kategorie-Schaltern --
 * es gibt aktuell keine einwilligungspflichtige Kategorie (web/js/views/
 * legal.js, disclaimerView). Deshalb ein einzelner "Verstanden"-Knopf
 * statt Toggle-Reihen, die eine Wahl vortaeuschen wuerden, die es nicht
 * gibt.
 */
.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-top: 1px solid var(--line);
  padding: 16px max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-right));
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice__body {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-notice__text {
  flex: 1 1 420px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.cookie-notice__text strong {
  color: var(--text);
}

.cookie-notice__text a {
  color: var(--lime);
  text-decoration: none;
}

.cookie-notice__ack {
  flex: none;
  background: var(--lime);
  color: var(--lime-ink);
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
}

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

.empty__icon {
  font-size: 1.7rem;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--surface-2);
}

.notice {
  border-left: 3px solid var(--warn);
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------- Tiers */

.tier-badge {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tier-badge__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

/* Bronze/Silber/Platin bleiben unterscheidbar, aber in derselben gedaempften
 * Chip-auf-Dunkel-Familie wie Gold (--gold), das exakt dem 2026-Mockup
 * folgt (Schild-Icon, Gold-Text auf Gold-Flaeche). */
.tier-badge__pill--bronze {
  background: rgba(184, 115, 51, 0.16);
  color: #d99a6c;
}

.tier-badge__pill--silber {
  background: rgba(200, 210, 220, 0.14);
  color: #cfd6dd;
}

.tier-badge__pill--gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.tier-badge__pill--platin {
  background: rgba(169, 199, 242, 0.14);
  color: #a9c7f2;
}

.tier-progress__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.tier-progress__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c9a227, #f2d06b);
  transition: width 0.3s ease;
}

/* XP-Fortschritt (profileView) ist kein Tier -- eigene, neutralere Farbe
 * statt der Gold-Verlaufsfarbe, die Treuestufen vorbehalten bleibt. */
.tier-progress__fill--xp {
  background: var(--lime);
}

/* ---------------------------------------------------------------- Rechtstexte */

.legal-text h3 {
  margin: 20px 0 8px;
  font-size: 1rem;
}

.legal-text h3:first-child {
  margin-top: 0;
}

.legal-text p,
.legal-text ul {
  margin: 0 0 12px;
  line-height: 1.5;
  color: var(--text);
}

.legal-text ul {
  padding-left: 20px;
}

.legal-text a {
  color: var(--accent);
}

/* ------------------------------------------------------------ Google-Anmeldung */

.google-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.divider {
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 14px 0;
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  border-top: 1px solid var(--line);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

/* =============================================================
 * 2026 Redesign -- gemeinsame Bausteine fuer Home, Locations,
 * Check-in, Rewards, Profil. Faerbt sich vollstaendig aus den
 * Token oben (--lime/--gold/--success usw.), keine eigenen
 * Hex-Werte hier.
 * ============================================================= */

/* ------------------------------------------------------------------ Kopfzeile */

.topbar[hidden] {
  display: none;
}

/* Eigenstaendiges Geschwisterelement von #app (wie #brand/#tabbar), weil
 * mount() (ui.js) #app bei jedem Routenwechsel vollstaendig ersetzt --
 * dieselben Breiten-/Abstandsregeln wie .app, damit die Kopfzeile optisch
 * eine Einheit mit dem Inhalt darunter bildet. */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 18px 0;
}

.topbar__brand {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}

.topbar__brand span {
  color: var(--lime);
}

.topbar__search {
  display: none;
  flex: 1;
  max-width: 460px;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.topbar__search svg {
  flex: none;
  color: var(--muted-2);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar__bell {
  position: relative;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text);
}

.topbar__bell-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 2px var(--bg-raised, var(--bg));
}

/* Nur ab Desktop-Breite (siehe Modulkommentar zu topbarAvatar() in main.js) --
 * auf dem Handy zeigt das Mockup dort keinen Avatar. */
.topbar__avatar {
  display: none;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}

.topbar__avatar-circle {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.topbar__avatar-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .topbar {
    max-width: 1040px;
    margin: 0 0 0 260px;
    padding: 24px 48px 0;
  }

  .topbar__brand {
    display: none;
  }

  .topbar__avatar {
    display: flex;
  }

  .topbar__search {
    display: flex;
  }
}

/* ---------------------------------------------------------------- Demo-Hinweis */

/* Dezenter Hinweis, wenn web/js/demo-data.js statt echter Konto-/API-Daten
 * angezeigt wird (siehe isDemoMode()) -- damit eine Vorfuehrung nie mit
 * einem echten Konto verwechselt wird, ohne die Flaeche zu dominieren. */
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(212, 169, 62, 0.3);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  cursor: pointer;
}

/* ------------------------------------------------------------------- Chips */

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 0 0 12px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid transparent;
  text-decoration: none;
}

.chip--active {
  background: var(--lime);
  color: var(--lime-ink);
}

.chip--outline {
  background: var(--lime-soft);
  color: var(--lime);
  border-color: rgba(207, 255, 4, 0.3);
}

.chip--success {
  background: transparent;
  color: var(--success);
  border-color: rgba(143, 227, 107, 0.4);
}

/* -------------------------------------------------------------- Statistikleiste */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.stat-strip__item {
  padding: 16px 4px;
  text-align: center;
  border-right: 1px solid var(--line-soft);
}

.stat-strip__item:last-child {
  border-right: none;
}

.stat-strip__icon {
  color: var(--lime);
  margin-bottom: 6px;
  display: flex;
  justify-content: center;
}

.stat-strip__value {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat-strip__label {
  color: var(--muted);
  font-size: 0.7rem;
  margin-top: 2px;
}

/* -------------------------------------------------------------------- Sportarten */

.sports-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sports-bar:last-child {
  margin-bottom: 0;
}

.sports-bar__icon {
  flex: none;
  color: var(--gold);
  width: 18px;
  display: flex;
}

.sports-bar__name {
  flex: none;
  width: 60px;
  color: var(--text);
  font-size: 0.8rem;
}

.sports-bar__track {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.sports-bar__fill {
  height: 100%;
  border-radius: 3px;
  background: var(--lime);
}

.sports-bar__pct {
  flex: none;
  width: 36px;
  text-align: right;
  color: var(--muted);
  font-size: 0.75rem;
}

/* ------------------------------------------------------------------ Naechster Schritt */

.next-move {
  display: flex;
  flex-direction: column;
}

.next-move__title {
  font-weight: 700;
  margin-bottom: 14px;
}

.next-move__body {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.next-move__photo {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  background: linear-gradient(155deg, var(--surface-2) 0%, var(--surface-3) 100%);
  display: grid;
  place-items: center;
  color: var(--lime);
}

.next-move__sport {
  font-weight: 700;
  font-size: 1.02rem;
}

.next-move__venue {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 2px 0 6px;
}

.next-move__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 0.78rem;
  opacity: 0.85;
  margin-bottom: 4px;
}

.next-move__earn {
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 700;
}

.next-move__actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.next-move__actions .btn {
  padding: 11px 12px;
  font-size: 0.85rem;
}

/* ------------------------------------------------------------------- In der Naehe */

.earn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.earn-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.earn-card__photo {
  position: relative;
  height: 100px;
  background: linear-gradient(155deg, var(--surface-2) 0%, var(--surface-3) 100%);
  display: grid;
  place-items: center;
  color: var(--lime);
}

.earn-card__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(143, 227, 107, 0.85);
  color: #06210f;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

.earn-card__body {
  padding: 10px 12px;
}

.earn-card__name {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.earn-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.earn-card__distance {
  color: var(--muted);
  font-size: 0.7rem;
}

.earn-card__earn {
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 700;
}

/* -------------------------------------------------------------- Momentum-Reihe */

.momentum-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 1024px) {
  .momentum-grid {
    grid-template-columns: 1fr 1.5fr 1fr 1fr;
  }
}

.momentum-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.momentum-card--challenge {
  display: flex;
  align-items: center;
  gap: 14px;
}

.challenge-ring {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.challenge-ring__hole {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
}

.streak-row {
  display: flex;
  gap: 6px;
}

.streak-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.streak-day__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}

.streak-day__dot--done {
  background: var(--success);
  border-color: var(--success);
  color: #06210f;
}

.streak-day__label {
  color: var(--muted-2);
  font-size: 0.62rem;
}

/* ---------------------------------------------------------------- Standorte */

.locations-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.locations-toggle__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.locations-toggle__btn--active {
  background: var(--lime-soft);
  border-color: rgba(207, 255, 4, 0.3);
  color: var(--lime);
}

.venue-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.venue-card__tag {
  background: rgba(143, 227, 107, 0.15);
  color: #7fd68a;
  font-size: 0.66rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
}

/* ----------------------------------------------------------------- Rewards */

.reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.reward-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.reward-card__photo {
  position: relative;
  height: 100px;
  background: linear-gradient(155deg, var(--surface-2) 0%, var(--surface-3) 100%);
  display: grid;
  place-items: center;
  color: var(--gold);
}

.reward-card__tag {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

.reward-card__body {
  padding: 10px 12px;
}

.reward-card__title {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.reward-card__subtitle {
  color: var(--muted);
  font-size: 0.68rem;
  margin-bottom: 8px;
}

.reward-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.reward-card__points {
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 700;
}

.reward-card__go {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  place-items: center;
}

.gold-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gold-soft);
  border: 1px solid rgba(212, 169, 62, 0.25);
  border-radius: 14px;
  padding: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.gold-banner__icon {
  flex: none;
  color: var(--gold);
}

.gold-banner__title {
  font-weight: 700;
  font-size: 0.85rem;
}

.gold-banner__body {
  color: var(--muted);
  font-size: 0.72rem;
}

.gold-banner__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--gold);
  color: #241d08;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.tier-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gold-soft);
  border: 1px solid rgba(212, 169, 62, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.tier-callout__tier {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
}

.tier-callout__next {
  color: var(--gold);
  font-size: 0.75rem;
}

/* --------------------------------------------------------------- Check-in */

/* Schritt-Anzeige: Scannen -> Bestaetigen -> Fertig. Rein visuell (welcher
 * Schritt gerade laeuft, siehe web/js/views/scan.js) -- die eigentliche
 * Zustandsmaschine bleibt serverseitig unveraendert. */
.checkin-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin-bottom: 22px;
}

.checkin-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.checkin-step__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.checkin-step--done .checkin-step__dot {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-ink);
}

.checkin-step--active .checkin-step__dot {
  border-color: var(--lime);
  color: var(--lime);
}

.checkin-step--active {
  color: var(--text);
}

.checkin-step__line {
  width: 44px;
  height: 1.5px;
  background: var(--line);
  margin-top: 13px;
}

.checkin-step__line--done {
  background: var(--lime);
}

.checkin-club-verified {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--lime);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
}

.checkin-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.75rem;
  margin: 16px 0;
}

.checkin-meta__item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.checkin-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkin-session__icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--lime);
}

.checkin-session__title {
  font-weight: 600;
  font-size: 0.88rem;
}

.checkin-session__hint {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 2px;
}

.checkin-hero {
  text-align: center;
}

.checkin-venue {
  display: flex;
  align-items: center;
  gap: 14px;
}

.checkin-venue__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--lime);
}

.checkin-venue__status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 600;
}

.checkin-verified {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.checkin-verified__title {
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 600;
}

.checkin-verified__hint {
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 2px;
}

.checkin-earn {
  text-align: center;
  padding: 20px 0;
}

.checkin-earn__label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkin-earn__value {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--lime);
  margin: 6px 0;
}

.checkin-earn__hint {
  color: var(--muted);
  font-size: 0.78rem;
}

.checkin-cta {
  display: block;
  width: 100%;
  padding: 18px;
  border-radius: 999px;
  border: none;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 10px 24px -10px rgba(207, 255, 4, 0.5);
}

.checkin-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.checkin-option {
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 10px 6px;
  text-align: center;
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 600;
}

.checkin-option__icon {
  color: var(--lime);
  margin-bottom: 4px;
  display: flex;
  justify-content: center;
}

.checkin-option__hint {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 500;
  margin-top: 2px;
}

/* Zwei statt drei Kacheln (web/js/views/scan.js, "Selbst"/"Mitarbeiter-Check",
 * SR-C-09) -- mehr Platz je Kachel als bei den drei schmalen
 * Validierungs-Hinweisen der Vorfuehrung, deshalb eigene Groesse. */
.checkin-options--2 {
  grid-template-columns: repeat(2, 1fr);
}

.checkin-option--choice {
  font: inherit;
  cursor: pointer;
  padding: 18px 10px;
  font-size: 0.85rem;
  transition: border-color 0.15s var(--ease);
}

.checkin-option--choice:hover {
  border-color: var(--accent-soft);
}

.checkin-option--choice .checkin-option__icon {
  margin-bottom: 8px;
}

.checkin-option--choice .checkin-option__hint {
  font-size: 0.72rem;
  margin-top: 4px;
}

.checkin-success {
  border: 1px solid rgba(207, 255, 4, 0.4);
  background: rgba(207, 255, 4, 0.06);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.checkin-success__mark {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--lime);
  display: grid;
  place-items: center;
  color: var(--lime);
  box-shadow: 0 0 0 6px rgba(207, 255, 4, 0.08);
}

.checkin-success__tag {
  display: inline-block;
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.checkin-success__points {
  color: var(--lime);
  font-size: 1.4rem;
  font-weight: 800;
}

.checkin-success__total {
  color: var(--text);
  font-size: 0.8rem;
  margin-top: 2px;
}

.checkin-success__streak {
  color: var(--gold);
  font-size: 0.75rem;
  margin-top: 4px;
}
