/* =========================================================================
   Bier-Locator — Bernstein, Schaum & Stout
   ========================================================================= */
:root {
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;

  --bg: #fbf4e6;
  --bg-soft: #f4e9d3;
  --panel: #fffdf8;
  --panel-2: #fbf5ea;
  --text: #2b1d0e;
  --text-soft: #5b4630;
  --muted: #8b7558;
  --line: #eadcc1;
  --line-strong: #d9c39c;

  --accent: #f2a01c;         /* Helles Bier */
  --accent-strong: #c96f05;  /* für Text/Links auf hell */
  --accent-ink: #2b1a05;     /* Text auf Bernstein */
  --accent-tint: #fde9c2;
  --foam: #fffaf0;

  --good: #2e8a4c; --good-tint: #dff1e3;
  --warn: #b97a07; --warn-tint: #fbecc9;
  --bad: #c43d25;  --bad-tint: #f9e0da;

  --route: #c43d25;
  --route-casing: #ffffff;

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(60,35,5,.08), 0 1px 1px rgba(60,35,5,.04);
  --shadow-md: 0 6px 18px rgba(60,35,5,.12), 0 2px 4px rgba(60,35,5,.06);
  --shadow-lg: 0 18px 50px rgba(40,22,2,.22), 0 4px 12px rgba(40,22,2,.08);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --ease-out: cubic-bezier(.22,.8,.3,1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #16110c;
  --bg-soft: #211910;
  --panel: #1e1710;
  --panel-2: #261d13;
  --text: #f7ecd9;
  --text-soft: #dccab0;
  --muted: #a8916f;
  --line: #3a2d1d;
  --line-strong: #4f3e28;

  --accent: #f6b03e;
  --accent-strong: #f8bd5a;
  --accent-ink: #251603;
  --accent-tint: #3d2b10;
  --foam: #fff4dd;

  --good: #6cc68c; --good-tint: #1b3022;
  --warn: #e7b64f; --warn-tint: #3a2c12;
  --bad: #f08a70;  --bad-tint: #3a1d16;

  --route: #ff8a66;
  --route-casing: #16110c;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 18px rgba(0,0,0,.45);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-body); font-size: 15px; line-height: 1.45; color: var(--text);
  background: var(--bg); overflow: hidden; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.01em; margin: 0; }
a { color: var(--accent-strong); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
kbd { font-family: inherit; font-size: 12px; padding: 1px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--panel-2); }

.tone-good { color: var(--good) !important; }
.tone-warn { color: var(--warn) !important; }
.tone-bad  { color: var(--bad) !important; }
.muted { color: var(--muted); }
.fine { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
.fine.center { text-align: center; }

/* ---------- Karte ---------- */
#map { position: fixed; inset: 0; z-index: 0; background: var(--bg-soft); }
.leaflet-container { font-family: var(--font-body); background: var(--bg-soft); }
.base-tiles { filter: saturate(.8) sepia(.12) brightness(1.02); }
.tiles-dark .base-tiles { filter: invert(1) hue-rotate(185deg) brightness(.82) contrast(.92) saturate(.55) sepia(.18); }
.leaflet-control-attribution { font-size: 10px; background: color-mix(in srgb, var(--panel) 80%, transparent) !important; color: var(--muted); border-radius: 8px 0 0 0; }
.leaflet-control-attribution a { color: var(--text-soft); }
.leaflet-bar a { background: var(--panel); color: var(--text); border-color: var(--line); }
.leaflet-bar a:hover { background: var(--panel-2); }
.leaflet-tooltip { font-family: var(--font-body); font-weight: 600; border-radius: 8px; border: none; box-shadow: var(--shadow-md); background: var(--panel); color: var(--text); }
.leaflet-tooltip-top::before { border-top-color: var(--panel); }

/* Ortsmarker */
.pm-wrap { background: none; border: none; }
.pm { position: relative; width: 34px; height: 34px; animation: pm-pop .45s var(--ease-spring) both; animation-delay: var(--d, 0ms); }
.pm-dot {
  position: absolute; inset: 2px; border-radius: 50% 50% 50% 14%; transform: rotate(-45deg);
  background: var(--c); color: #fff; display: grid; place-items: center;
  border: 2.5px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.28);
  transition: transform .2s var(--ease-spring);
}
.pm-dot .icon { transform: rotate(45deg); }
.pm-wrap:hover .pm-dot { transform: rotate(-45deg) scale(1.12); }
.pm-price {
  position: absolute; left: 25px; top: -7px; white-space: nowrap; padding: 2px 7px; border-radius: 99px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 11.5px; font-family: var(--font-display);
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.22);
}
.pm-best .pm-price { background: var(--good); color: #fff; }
.pm-best .pm-dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 35%, transparent), 0 3px 8px rgba(0,0,0,.28); }
.pm-fav { position: absolute; left: -4px; top: -4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; color: #e0446a; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.pm-closed .pm-dot { filter: saturate(.25) brightness(1.05); opacity: .75; }
.pm-ping .pm-dot { animation: pm-ping .9s var(--ease-out) 2; }
@keyframes pm-pop { from { transform: scale(.3) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pm-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 70%, transparent); } 100% { box-shadow: 0 0 0 22px transparent; } }

.cluster-wrap { background: none; }
.cluster {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffe08a, var(--accent) 60%, #d98405);
  color: var(--accent-ink); font-weight: 800; font-family: var(--font-display); font-size: 14px;
  border: 3px solid var(--foam); box-shadow: 0 3px 10px rgba(0,0,0,.25), inset 0 -3px 0 rgba(0,0,0,.08);
  animation: pm-pop .4s var(--ease-spring) both;
}

/* Standortpunkt */
.me-dot { width: 22px; height: 22px; position: relative; }
.me-dot span, .me-dot::before { position: absolute; inset: 3px; border-radius: 50%; }
.me-dot span { background: #2f7fe0; border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.35); z-index: 1; }
.me-dot::before { content: ''; background: rgba(47,127,224,.45); animation: me-pulse 2s ease-out infinite; }
@keyframes me-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
.me-accuracy { fill: #2f7fe0; fill-opacity: .08; stroke: #2f7fe0; stroke-opacity: .35; stroke-width: 1; }

/* Tour */
.route-casing { stroke: var(--route-casing); stroke-opacity: .9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route-line { stroke: var(--route); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.track-point { fill: var(--route); stroke: #fff; stroke-width: 3; }
.tm {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c, var(--accent)); color: #fff; font-weight: 800; font-family: var(--font-display); font-size: 14px;
  border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.3);
  animation: pm-pop .5s var(--ease-spring) both; animation-delay: var(--d, 0ms);
}
.tm-start { background: #2b1d0e; }
.tm-end { background: var(--good); }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; z-index: 500; top: calc(10px + var(--safe-t)); left: 10px; right: 10px;
  display: flex; align-items: center; gap: 8px;
}
.brand {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; padding: 0; border: none;
  background: var(--panel); border-radius: 99px; box-shadow: var(--shadow-md); color: var(--text);
}
.brand-glass { display: grid; color: var(--text); }
.bg-beer { fill: var(--accent); animation: beer-slosh 4s ease-in-out infinite; transform-origin: 50% 100%; }
.bg-foam { fill: var(--foam); stroke: currentColor; stroke-width: 1.2; }
.bubble { fill: #fff6; animation: bubble 2.4s linear infinite; }
.bubble.b2 { animation-delay: .8s; } .bubble.b3 { animation-delay: 1.6s; }
@keyframes bubble { from { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(-14px); opacity: 0; } }
@keyframes beer-slosh { 0%, 100% { transform: skewY(0deg); } 50% { transform: skewY(-3deg); } }
.brand-text { display: none; }

.searchbox { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.searchbox input {
  width: 100%; height: 48px; padding: 0 40px 0 44px; border-radius: 99px; border: 1.5px solid transparent;
  background: var(--panel); box-shadow: var(--shadow-md); font-size: 15.5px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.searchbox input::-webkit-search-cancel-button { display: none; }
.searchbox input:focus { border-color: var(--accent); box-shadow: var(--shadow-md), 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.searchbox-icon { position: absolute; left: 15px; color: var(--muted); display: grid; pointer-events: none; }
.searchbox #searchClear { position: absolute; right: 6px; }
.searchbox.inline input { box-shadow: none; border-color: var(--line-strong); background: var(--panel-2); height: 46px; }

.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20; list-style: none; margin: 0; padding: 6px;
  background: var(--panel); border-radius: var(--r-md); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  max-height: 60vh; overflow-y: auto; animation: drop-in .18s var(--ease-out);
}
.suggest li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 10px; border-radius: 10px; cursor: pointer; color: var(--muted); }
.suggest li span { display: flex; flex-direction: column; min-width: 0; color: var(--text); }
.suggest li small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--accent-tint); }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

.fab {
  width: 48px; height: 48px; border-radius: 50%; border: none; display: grid; place-items: center; flex-shrink: 0;
  background: var(--panel); color: var(--text); box-shadow: var(--shadow-md);
  transition: transform .15s var(--ease-spring), background .15s;
}
.fab:hover { background: var(--panel-2); }
.fab:active { transform: scale(.92); }
#btnLocate { color: #2f7fe0; }
#btnLocate.busy .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; z-index: 30;
  background: var(--panel); border-radius: var(--r-md); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  transform-origin: top right; animation: menu-in .2s var(--ease-spring);
}
.menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: none; background: none;
  border-radius: 10px; text-align: left; font-weight: 600; font-size: 14.5px;
}
.menu button:hover, .menu button:focus-visible { background: var(--accent-tint); }
.menu button .icon { color: var(--accent-strong); }
@keyframes menu-in { from { opacity: 0; transform: scale(.9); } }

.area-pill {
  position: fixed; z-index: 450; left: 50%; top: calc(72px + var(--safe-t)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: none; border-radius: 99px;
  background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg);
  animation: pill-in .35s var(--ease-spring);
}
@keyframes pill-in { from { opacity: 0; transform: translate(-50%, -12px) scale(.9); } }

/* ---------- Bottom-Sheet / Seitenleiste ---------- */
.sheet {
  position: fixed; z-index: 400; left: 0; right: 0; bottom: 0;
  height: calc(var(--sheet-h, 48vh) + var(--safe-b));
  background: var(--panel); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: 0 -8px 40px rgba(40,22,2,.18);
  display: flex; flex-direction: column; overflow: hidden;
  transition: height .38s var(--ease-out);
}
.sheet.no-anim { transition: none; }
.sheet-grab { flex-shrink: 0; touch-action: none; cursor: grab; padding-bottom: 2px; }
.sheet-handle { width: 42px; height: 5px; border-radius: 99px; background: var(--line-strong); margin: 9px auto 4px; }
.sheet-head { padding: 4px 16px 0; }
.loc-row { display: flex; align-items: center; gap: 6px; min-height: 28px; color: var(--muted); font-size: 13.5px; }
.loc-pin { color: var(--accent-strong); display: grid; }
.loc-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--text-soft); }
.weather-chip { display: flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: var(--bg-soft); color: var(--text-soft); font-size: 13px; white-space: nowrap; animation: fade-up .4s var(--ease-out); }
.weather-chip span { color: var(--muted); }
.weather-chip.sunny { background: var(--accent-tint); color: var(--accent-strong); }
.weather-chip.sunny .icon { animation: spin 12s linear infinite; }

.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 8px 0 0; padding: 4px; background: var(--bg-soft); border-radius: 99px; }
.tab {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 7px; height: 40px;
  border: none; background: none; border-radius: 99px; font-weight: 700; font-size: 14.5px; color: var(--muted); transition: color .2s;
}
.tab.active { color: var(--accent-ink); }
.tab-indicator {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 99px;
  background: var(--accent); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease-spring);
}
.tabs[data-mode="tour"] .tab-indicator { transform: translateX(100%); }

.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px calc(24px + var(--safe-b)); scroll-behavior: smooth; }
.pane { animation: fade-up .3s var(--ease-out); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Filter ---------- */
.chips-scroll { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 10px; scroll-snap-type: x proximity; }
.chips-scroll::-webkit-scrollbar { display: none; }
.type-chip {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0; scroll-snap-align: start;
  padding: 8px 13px 8px 10px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--panel);
  font-weight: 600; font-size: 13.5px; color: var(--muted);
  transition: background .2s, color .2s, border-color .2s, transform .15s var(--ease-spring);
}
.type-chip .icon { color: var(--muted); transition: color .2s; }
.type-chip[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 14%, var(--panel)); border-color: color-mix(in srgb, var(--c) 55%, transparent); color: var(--text); }
.type-chip[aria-pressed="true"] .icon { color: var(--c); }
.type-chip:active { transform: scale(.94); }

.toolbar { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.toggle-chip {
  display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; border: 1.5px solid var(--line);
  background: var(--panel); font-weight: 600; font-size: 13px; color: var(--text-soft); transition: all .18s;
}
.toggle-chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.dot-open { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 25%, transparent); }
.sort-select { margin-left: auto; }
.sort-select select {
  appearance: none; border: 1.5px solid var(--line); background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b7558' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  padding: 7px 30px 7px 12px; border-radius: 99px; font-weight: 700; font-size: 13px;
}

.prefs { border: 1.5px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; background: var(--panel-2); }
.prefs > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 11px 13px; font-weight: 700; font-size: 14px; cursor: pointer; }
.prefs > summary::-webkit-details-marker { display: none; }
.prefs > summary .icon { color: var(--accent-strong); }
.prefs-summary { flex: 1; text-align: right; font-weight: 500; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { display: grid; transition: transform .25s var(--ease-out); color: var(--muted); }
.prefs[open] .chev { transform: rotate(180deg); }
.prefs-body { padding: 2px 13px 14px; display: flex; flex-direction: column; gap: 12px; animation: fade-up .25s var(--ease-out); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.field-label { font-size: 12.5px; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .04em; display: flex; justify-content: space-between; }
.field-label b { color: var(--accent-strong); font-family: var(--font-display); text-transform: none; font-size: 14px; letter-spacing: 0; }
.field-row { display: flex; gap: 10px; }
.field input[type=text], .field input[type=number], .field input[type=time], .field select, .custom-row input, .drink-when select {
  height: 44px; padding: 0 12px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--panel); width: 100%;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; --pct: 30%; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--pct), var(--line) var(--pct)); }
.range::-moz-range-track { height: 8px; border-radius: 99px; background: var(--line); }
.range::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--foam); border: 3px solid var(--accent); box-shadow: var(--shadow-md); transition: transform .15s var(--ease-spring); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--foam); border: 3px solid var(--accent); box-shadow: var(--shadow-md); }
.range:active::-webkit-slider-thumb { transform: scale(1.18); }

.switch-row { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.switch-row small { color: var(--muted); font-weight: 500; }
.switch { -webkit-appearance: none; appearance: none; width: 44px; height: 26px; border-radius: 99px; background: var(--line-strong); position: relative; flex-shrink: 0; cursor: pointer; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease-spring); }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(18px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 99px; border: none; font-weight: 700; font-size: 14.5px; text-decoration: none;
  transition: transform .15s var(--ease-spring), background .15s, box-shadow .15s;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 60%, #6b3a00), var(--shadow-sm); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 88%, #fff); }
.btn-soft { background: var(--bg-soft); color: var(--text); }
.btn-soft:hover { background: var(--accent-tint); }
.btn-big { width: 100%; min-height: 54px; font-size: 16.5px; border-radius: var(--r-lg); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: none; background: none; border-radius: 50%; color: var(--muted); transition: background .15s, color .15s; flex-shrink: 0; }
.icon-btn:hover { background: var(--bg-soft); color: var(--text); }
.icon-btn.small { width: 32px; height: 32px; }
.link-btn { background: none; border: none; padding: 0; color: var(--accent-strong); font-weight: 700; font-size: inherit; display: inline-flex; align-items: center; gap: 5px; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Günstigstes Bier ---------- */
.cheapest { margin-bottom: 14px; animation: fade-up .35s var(--ease-out); }
.cheapest-inner {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border: none; text-align: left; border-radius: var(--r-lg);
  background: linear-gradient(135deg, #ffd56b 0%, var(--accent) 55%, #e48a0c 100%); color: var(--accent-ink);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 40%, transparent); position: relative; overflow: hidden;
}
.cheapest-inner::after { /* Schaumbläschen */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 85% 20%, #fff7 0 6px, transparent 7px), radial-gradient(circle at 92% 55%, #fff5 0 4px, transparent 5px), radial-gradient(circle at 78% 75%, #fff4 0 3px, transparent 4px);
  animation: fizz 3s ease-in-out infinite;
}
@keyframes fizz { 50% { transform: translateY(-4px); } }
.cheapest-glass { width: 48px; height: 48px; border-radius: 16px; background: #fff6; display: grid; place-items: center; flex-shrink: 0; }
.cheapest-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cheapest-kicker { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; opacity: .75; }
.cheapest-price { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.cheapest-price small { font-size: 14px; font-weight: 600; opacity: .7; }
.cheapest-where { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cheapest-age { align-self: flex-start; font-size: 11.5px; font-weight: 700; opacity: .65; white-space: nowrap; }

/* ---------- Ergebnisse ---------- */
.results-head { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 0 10px; }
.results-head h2 { font-size: 19px; font-weight: 800; }
.results-head .link-btn { font-size: 13px; }
.results { display: flex; flex-direction: column; gap: 9px; }

.card {
  display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 12px; border-radius: var(--r-md); cursor: pointer;
  background: var(--panel); border: 1.5px solid var(--line); position: relative;
  transition: transform .18s var(--ease-out), box-shadow .18s, border-color .18s;
  animation: card-in .4s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms);
}
.card:hover { border-color: color-mix(in srgb, var(--c) 50%, var(--line)); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.card:active { transform: scale(.985); }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } }
.card-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; background: color-mix(in srgb, var(--c) 16%, var(--panel)); color: var(--c); }
.card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.card-top { display: flex; align-items: flex-start; gap: 8px; }
.card-name { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 700; line-height: 1.25; display: flex; align-items: center; gap: 5px; overflow: hidden; }
.card-fav { color: #e0446a; display: grid; }
.card-price { font-family: var(--font-display); font-weight: 800; font-size: 15px; padding: 2px 9px; border-radius: 99px; background: var(--good-tint); color: var(--good); white-space: nowrap; }
.card-price.stale { background: var(--bg-soft); color: var(--muted); }
.card-meta { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.sep { opacity: .5; }
.card-bottom { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.card-locate { color: var(--muted); align-self: center; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--bg-soft); color: var(--text-soft); }

.mini-stars { position: relative; display: inline-block; font-size: 12px; letter-spacing: 1px; color: var(--line-strong); line-height: 1; }
.mini-stars::before { content: '★★★★★'; position: absolute; inset: 0; width: var(--v); overflow: hidden; color: var(--accent); }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.status .icon { margin-right: -2px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-open { color: var(--good); }
.status-open.big .status-dot { animation: breathe 2.4s ease-in-out infinite; }
.status-soon { color: var(--warn); }
.status-closed { color: var(--bad); }
.status-unknown { color: var(--muted); }
.status.big { font-size: 14.5px; padding: 6px 12px; border-radius: 99px; background: var(--bg-soft); }
.status-open.big { background: var(--good-tint); } .status-soon.big { background: var(--warn-tint); } .status-closed.big { background: var(--bad-tint); }
@keyframes breathe { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 25%, transparent); } }

/* Leer-/Ladezustände */
.empty { text-align: center; padding: 18px 10px 8px; animation: fade-up .4s var(--ease-out); }
.empty-art { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-strong); animation: wobble 3.5s ease-in-out infinite; }
.empty.small .empty-art { width: 72px; height: 72px; }
.empty h3 { font-size: 19px; margin-bottom: 6px; }
.empty p { color: var(--muted); margin: 0 auto 14px; max-width: 34ch; font-size: 14px; }
@keyframes wobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg) translateY(-3px); } }

.beer-loader { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px; color: var(--text-soft); font-weight: 600; }
.bl-fill { fill: var(--accent); animation: fill-up 1.8s var(--ease-out) infinite; }
.bl-foam { fill: var(--foam); animation: fill-up-foam 1.8s var(--ease-out) infinite; }
.bl-bub { fill: #fff8; animation: bubble 1.2s linear infinite; }
.bl-bub.b2 { animation-delay: .4s; } .bl-bub.b3 { animation-delay: .8s; }
@keyframes fill-up { 0% { transform: translateY(44px); } 70%, 100% { transform: translateY(12px); } }
@keyframes fill-up-foam { 0% { transform: translateY(42px); } 70%, 100% { transform: translateY(7px); } }

.skeleton { pointer-events: none; }
.sk { background: linear-gradient(90deg, var(--bg-soft) 25%, var(--panel-2) 50%, var(--bg-soft) 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 8px; }
.sk-ico { width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; }
.sk-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sk-l1 { height: 14px; width: 65%; } .sk-l2 { height: 11px; width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-soft); font-size: 14px; flex-wrap: wrap; margin: 8px 0; }
.notice > div { flex: 1; min-width: 60%; }
.notice-bad { background: var(--bad-tint); color: var(--bad); }
.notice-bad > div { color: var(--text); }
.notice-good { background: var(--good-tint); }
.notice-good .icon { color: var(--good); }

/* ---------- Tour ---------- */
.tour-form { display: flex; flex-direction: column; gap: 16px; animation: fade-up .3s var(--ease-out); }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; gap: 4px; background: var(--bg-soft); border-radius: 99px; }
.segmented button { height: 38px; border: none; border-radius: 99px; background: none; font-weight: 700; font-size: 14px; color: var(--muted); transition: all .2s var(--ease-out); }
.segmented button[aria-checked="true"] { background: var(--panel); color: var(--text); box-shadow: var(--shadow-sm); }

.stepper { display: flex; align-items: center; height: 44px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--panel); overflow: hidden; }
.stepper button { width: 40px; height: 100%; border: none; background: none; display: grid; place-items: center; color: var(--accent-strong); }
.stepper button:active { background: var(--accent-tint); }
.stepper output { flex: 1; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.bump { animation: bump .3s var(--ease-spring); }
@keyframes bump { 50% { transform: scale(1.35); } }

.style-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.style-cards button {
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left; padding: 10px 11px; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: var(--panel); transition: all .18s;
}
.style-cards b { font-size: 14px; }
.style-cards small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.style-cards button[aria-checked="true"] { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }

.tour-progress { padding: 26px 8px 18px; text-align: center; animation: fade-up .3s var(--ease-out); }
.ride-track { position: relative; height: 40px; margin: 0 10% 10px; border-bottom: 3px dashed var(--line-strong); overflow: hidden; }
.ride-bike { position: absolute; bottom: 2px; left: -30px; color: var(--accent-strong); display: grid; animation: ride 2.2s ease-in-out infinite; }
.ride-bike .icon { animation: bounce .35s ease-in-out infinite alternate; }
@keyframes ride { from { left: -30px; } to { left: 100%; } }
@keyframes bounce { to { transform: translateY(-2px); } }
.tour-progress-text { font-weight: 700; color: var(--text-soft); }

.tour-result { animation: fade-up .35s var(--ease-out); }
.tour-result-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tour-result-head h2 { font-size: 21px; font-weight: 800; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { display: flex; flex-direction: column; gap: 1px; padding: 10px; border-radius: var(--r-md); background: var(--panel-2); border: 1.5px solid var(--line); min-width: 0; animation: card-in .4s var(--ease-out) both; }
.stat:nth-child(2) { animation-delay: 50ms; } .stat:nth-child(3) { animation-delay: 100ms; } .stat:nth-child(4) { animation-delay: 150ms; } .stat:nth-child(5) { animation-delay: 200ms; } .stat:nth-child(6) { animation-delay: 250ms; }
.stat-ico { color: var(--accent-strong); display: grid; margin-bottom: 2px; }
.stat b { font-family: var(--font-display); font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat small { font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.stat-hero { background: var(--accent-tint); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

.weather-strip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-md); background: var(--bg-soft); margin-bottom: 10px; font-size: 14px; }
.weather-strip .rain { margin-left: auto; display: flex; align-items: center; gap: 4px; font-weight: 700; color: var(--text-soft); }
.hint-row { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--text-soft); padding: 9px 12px; border-radius: var(--r-sm); background: var(--panel-2); margin-bottom: 7px; }
.hint-row .icon { color: var(--accent-strong); margin-top: 1px; }
.hint-row small { color: var(--muted); }

.elev { margin: 10px 0 6px; }
.elev:empty { display: none; }
.elev-head { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--text-soft); margin-bottom: 4px; }
.elev-head span { display: flex; align-items: center; gap: 6px; }
.elev-head small { color: var(--muted); font-weight: 600; }
.elev > svg { width: 100%; height: 110px; display: block; touch-action: none; cursor: crosshair; }
.elev-line { stroke: var(--accent-strong); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.elev-stop line { stroke: var(--text-soft); stroke-dasharray: 3 3; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .5; }
.elev-stop circle { fill: var(--text); }
.elev-stop text { fill: var(--bg); font-size: 10px; font-weight: 800; font-family: var(--font-display); }
.elev-cursor { stroke: var(--route); stroke-width: 2; vector-effect: non-scaling-stroke; }
.elev-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }

.timeline { list-style: none; margin: 14px 0 16px; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: repeating-linear-gradient(to bottom, var(--line-strong) 0 6px, transparent 6px 11px); }
.timeline.animate > li { animation: card-in .4s var(--ease-out) both; animation-delay: calc(var(--i) * 45ms); }
.tl-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.tl-dot { position: relative; z-index: 1; width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--text); color: var(--bg); border: 3px solid var(--panel); }
.tl-num { background: var(--c); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.tl-end .tl-dot { background: var(--good); color: #fff; }
.tl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tl-body small { color: var(--muted); font-size: 12.5px; }
.tl-name { all: unset; cursor: pointer; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-name:hover { color: var(--accent-strong); text-decoration: underline; }
.tl-actions { display: flex; }
.tl-leg { padding: 2px 0 2px 46px; font-size: 12px; color: var(--muted); font-weight: 600; }
.tl-leg span { display: inline-flex; align-items: center; gap: 5px; }
.tl-item.working { opacity: .45; pointer-events: none; }
.tl-item.working .tl-dot { animation: spin 1s linear infinite; }

.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- Dialoge ---------- */
.dlg {
  border: none; padding: 0; margin: auto; width: min(560px, calc(100vw - 24px)); max-height: min(88vh, 900px);
  border-radius: var(--r-xl); background: var(--panel); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden auto;
  overscroll-behavior: contain;
}
.dlg-wide { width: min(640px, calc(100vw - 24px)); }
.dlg::backdrop { background: rgba(30,18,4,.45); backdrop-filter: blur(3px); }
.dlg[open] { animation: dlg-in .32s var(--ease-spring); }
.dlg[open]::backdrop { animation: fade .25s ease; }
.dlg.closing { animation: dlg-out .18s ease forwards; }
.dlg.closing::backdrop { animation: fade .18s ease reverse forwards; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes dlg-out { to { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
.dlg-close { position: absolute; top: 12px; right: 12px; z-index: 5; background: color-mix(in srgb, var(--panel) 80%, transparent); backdrop-filter: blur(6px); }
#placeBody, #bacBody, #aboutBody { padding: 22px; }
#placeBody { padding: 0 0 22px; }
#placeBody > .pd-section, #placeBody > .pd-actions { margin-left: 22px; margin-right: 22px; }
.dlg-title { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; margin-bottom: 14px; padding-right: 40px; }
.dlg-title .icon { color: var(--accent-strong); }

.pd-hero { display: flex; gap: 14px; align-items: flex-end; padding: 26px 22px 18px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, var(--panel)) 0%, var(--panel) 85%); }
.pd-ico { width: 58px; height: 58px; border-radius: 18px; background: var(--c); color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 45%, transparent); animation: pop-in .5s var(--ease-spring); }
@keyframes pop-in { from { transform: scale(.4) rotate(-12deg); opacity: 0; } }
.pd-titles { display: flex; flex-direction: column; min-width: 0; padding-right: 30px; }
.pd-kicker { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--c); filter: brightness(.85); }
[data-theme="dark"] .pd-kicker { filter: brightness(1.3); }
.pd-titles h2 { font-size: 24px; font-weight: 800; line-height: 1.15; }
.pd-addr { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

.pd-actions { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: none; }
.pd-action {
  flex: 1; min-width: 68px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: var(--r-md);
  background: var(--bg-soft); border: none; color: var(--text); text-decoration: none; font-size: 12.5px; font-weight: 700;
  transition: transform .15s var(--ease-spring), background .15s;
}
.pd-action .icon { color: var(--accent-strong); }
.pd-action:hover { background: var(--accent-tint); }
.pd-action:active { transform: scale(.94); }
.pd-action.on .icon { color: #e0446a; animation: heart .45s var(--ease-spring); }
@keyframes heart { 40% { transform: scale(1.4); } }

.pd-section { padding-top: 16px; margin-top: 14px; border-top: 1.5px solid var(--line); }
.pd-muted { opacity: .92; }
.pd-h { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 800; margin-bottom: 10px; flex-wrap: wrap; }
.pd-h .icon { color: var(--accent-strong); }
.pd-h-meta { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--muted); margin-left: auto; }
.pd-status-row { display: flex; gap: 8px; flex-wrap: wrap; }

.week { margin-top: 10px; }
.week summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13.5px; color: var(--accent-strong); cursor: pointer; }
.week summary::-webkit-details-marker { display: none; }
.week[open] summary .icon { transform: rotate(180deg); }
.week table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; animation: fade-up .25s var(--ease-out); }
.week th { text-align: left; font-weight: 700; padding: 5px 0; width: 70px; color: var(--text-soft); }
.week th small { color: var(--warn); font-weight: 600; font-size: 11px; }
.week td { padding: 5px 0; font-variant-numeric: tabular-nums; }
.week tr.today th, .week tr.today td { color: var(--accent-strong); font-weight: 800; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fact { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 99px; background: var(--bg-soft); color: var(--text-soft); }

.star-input { display: flex; gap: 4px; }
.star-input button { border: none; background: none; padding: 2px; color: var(--line-strong); transition: color .12s, transform .2s var(--ease-spring); }
.star-input button.on, .star-input button.hover { color: var(--accent); }
.star-input button:hover { transform: scale(1.15) rotate(-6deg); }
.star-input button.pop { animation: star-pop .45s var(--ease-spring); }
@keyframes star-pop { 40% { transform: scale(1.45) rotate(12deg); } }

.price-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.price-row { display: grid; grid-template-columns: 1fr auto auto 32px; align-items: center; gap: 4px 10px; padding: 9px 4px 9px 12px; border-radius: var(--r-sm); background: var(--panel-2); border: 1.5px solid var(--line); animation: card-in .3s var(--ease-out) both; }
.price-row.best { border-color: color-mix(in srgb, var(--good) 50%, transparent); background: var(--good-tint); }
.price-row.stale { opacity: .55; }
.pr-main { display: flex; flex-direction: column; min-width: 0; }
.pr-beer { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-unit { font-size: 12px; color: var(--muted); }
.pr-price { font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.pr-age { font-size: 11.5px; color: var(--muted); text-align: right; white-space: nowrap; }

.price-form { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.price-form input, .price-form select { height: 44px; padding: 0 12px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--panel); outline: none; width: 100%; min-width: 0; }
.price-form input:focus, .price-form select:focus { border-color: var(--accent); }
.price-input { position: relative; }
.price-input input { padding-right: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price-input span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.price-form .btn { border-radius: var(--r-sm); }
.form-msg { grid-column: 1 / -1; margin: 0; font-size: 13px; font-weight: 600; min-height: 1.2em; color: var(--muted); }
.form-msg.bad { color: var(--bad); animation: shake .35s; }
.form-msg.good { color: var(--good); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.row-btns .btn { flex: 1; min-width: 150px; }

/* ---------- Promille ---------- */
.bac-top { display: flex; align-items: center; gap: 18px; padding: 14px; border-radius: var(--r-lg); background: var(--panel-2); border: 1.5px solid var(--line); }
.bac-glass { width: 76px; flex-shrink: 0; color: var(--text); }
.bac-glass svg { width: 100%; display: block; overflow: visible; }
.bac-liquid { fill: var(--accent); transition: transform 1s var(--ease-spring); transform: translateY(110px); }
.bac-glass[data-tone="warn"] .bac-liquid { fill: #e98a12; }
.bac-glass[data-tone="bad"] .bac-liquid { fill: var(--bad); }
.bac-foam { fill: var(--foam); }
.bac-readout { flex: 1; min-width: 0; }
.bac-num { font-family: var(--font-display); font-weight: 800; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.bac-num small { font-size: 22px; margin-left: 3px; color: var(--muted); }
.bac-stage { font-weight: 800; font-size: 16px; margin-top: 4px; }
.bac-desc { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.bac-chart { margin: 12px 0 4px; }
.bac-chart > svg { width: 100%; height: 150px; display: block; }
.bac-chart .curve { fill: none; stroke: var(--accent-strong); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.bac-chart .curve.future { stroke-dasharray: 5 5; opacity: .7; }
.bac-chart .lim { stroke: var(--bad); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; opacity: .7; }
.bac-chart .lim-t { fill: var(--bad); font-size: 11px; font-weight: 700; }
.bac-chart .now { stroke: var(--text); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .4; }
.bac-chart .now-dot { fill: var(--accent); stroke: var(--panel); stroke-width: 3; }
.bac-chart .tick { fill: var(--muted); font-size: 11px; }
.bac-times { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 16px; }
.bt { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); background: var(--panel-2); font-size: 14px; }
.bt span small, .bt b small { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 4px; }
.bt b { font-family: var(--font-display); white-space: nowrap; }
.bt-sober { background: var(--good-tint); }
.drink-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 7px; }
.drink { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 11px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--panel); text-align: left; transition: transform .15s var(--ease-spring), border-color .15s; }
.drink b { font-size: 13.5px; }
.drink small { font-size: 12px; color: var(--muted); }
.drink:hover { border-color: var(--accent); }
.drink.pop { animation: drink-pop .4s var(--ease-spring); }
@keyframes drink-pop { 40% { transform: scale(.9); background: var(--accent-tint); } }
.drink-when { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 10px 0; font-size: 13.5px; font-weight: 600; }
.drink-when label { display: flex; align-items: center; gap: 8px; }
.drink-when select { width: auto; height: 38px; }
.custom-drink summary { cursor: pointer; color: var(--accent-strong); font-weight: 700; }
.custom-row { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.custom-row label { display: flex; align-items: center; gap: 6px; }
.custom-row input { width: 80px; height: 38px; }
.bac-log { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 5px; }
.bac-log li { display: flex; align-items: center; gap: 8px; padding: 6px 4px 6px 12px; border-radius: var(--r-sm); background: var(--panel-2); font-size: 13.5px; animation: card-in .3s var(--ease-out) both; }
.bac-log li span { flex: 1; display: flex; align-items: center; gap: 7px; min-width: 0; }
.bac-log li span .icon { color: var(--accent-strong); }
.bac-log li small { color: var(--muted); }
.bac-log .bac-log-clear { background: none; justify-content: flex-end; }
.bac-profile { margin-top: 4px; }
.bac-legal { margin-top: 16px; }
.bac-legal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bac-legal-head select { height: 36px; border-radius: 99px; border: 1.5px solid var(--line-strong); background: var(--panel); padding: 0 12px; font-weight: 700; }
.legal-row { display: flex; align-items: center; gap: 9px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.legal-row span { flex: 1; color: var(--text-soft); }
.legal-row .icon { color: var(--muted); }
.legal-row.over b, .legal-row.over .icon { color: var(--bad); }
.bac-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.bac-facts:empty { display: none; }
.fact-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px; border-radius: var(--r-md); background: var(--panel-2); }
.fact-tile .icon { color: var(--accent-strong); }
.fact-tile b { font-family: var(--font-display); font-size: 17px; }
.fact-tile small { font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.bac-disclaimer { margin-top: 16px; }

.about-list { padding-left: 18px; margin: 0 0 14px; font-size: 14px; color: var(--text-soft); }
.about-list li { margin-bottom: 4px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 3000; left: 50%; top: calc(70px + var(--safe-t)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; max-width: min(92vw, 460px); padding: 12px 14px 12px 16px; border-radius: var(--r-md);
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg);
}
.toast[popover] { right: auto; bottom: auto; margin: 0; border: none; overflow: visible; }
.toast-in { animation: toast-in .45s var(--ease-spring); }
.toast-good .icon { color: #7ee2a0; } .toast-bad .icon { color: #ff9c86; } .toast-info .icon { color: var(--accent); }
[data-theme="dark"] .toast-good .icon { color: var(--good); } [data-theme="dark"] .toast-bad .icon { color: var(--bad); }
.toast-action { margin-left: 6px; border: none; background: var(--accent); color: var(--accent-ink); font-weight: 800; padding: 6px 12px; border-radius: 99px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -18px) scale(.92); } }

/* ---------- Handy ---------- */
@media (max-width: 899px) {
  .leaflet-control-attribution { margin-bottom: calc(var(--sheet-h, 48vh) - 4px) !important; transition: margin .38s var(--ease-out); }
  .sheet[data-state="peek"] .sheet-body { overflow: hidden; }
  .dlg { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; padding-bottom: var(--safe-b); }
  @keyframes dlg-in { from { transform: translateY(100%); } }
  @keyframes dlg-out { to { transform: translateY(100%); } }
  .dlg[open] { animation-timing-function: var(--ease-out); animation-duration: .35s; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .style-cards { grid-template-columns: 1fr; }
  .style-cards button { flex-direction: row; align-items: baseline; gap: 8px; }
  .area-pill { top: calc(70px + var(--safe-t)); }
}
@media (max-width: 380px) {
  .field-row { flex-wrap: wrap; }
  .bac-facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- Desktop: Seitenleiste ---------- */
@media (min-width: 900px) {
  .topbar { left: 16px; right: auto; top: 16px; width: 400px; }
  .sheet {
    left: 16px; top: 76px; bottom: 16px; right: auto; width: 400px; height: auto;
    border-radius: var(--r-xl); box-shadow: var(--shadow-lg); transition: none;
  }
  .sheet-grab { cursor: default; }
  .sheet-handle { display: none; }
  .sheet-head { padding-top: 14px; }
  .area-pill { left: calc(50% + 216px); top: 18px; }
  .toast { left: calc(50% + 216px); top: 20px; }
  .leaflet-right .leaflet-control-zoom { margin: 0 16px 24px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Online-Preise von Ketten */
.card-price.online { background: color-mix(in srgb, #2f7fc1 14%, var(--panel)); color: #2f7fc1; }
[data-theme="dark"] .card-price.online { color: #7db8ec; }
.price-row.online { background: color-mix(in srgb, #2f7fc1 6%, var(--panel-2)); }
.price-row.online .pr-age { color: var(--accent-strong); font-weight: 700; text-decoration: none; }
.promo { font-size: 10.5px; font-weight: 800; text-transform: uppercase; padding: 1px 6px; border-radius: 99px; background: var(--bad-tint); color: var(--bad); vertical-align: middle; }
.chain-search { position: relative; display: flex; align-items: center; margin-bottom: 8px; color: var(--muted); }
.chain-search .icon { position: absolute; left: 12px; pointer-events: none; }
.chain-search input { width: 100%; height: 40px; padding: 0 12px 0 36px; border-radius: 99px; border: 1.5px solid var(--line-strong); background: var(--panel); outline: none; }
.chain-search input:focus { border-color: var(--accent); }
#pdChainMore { margin: 2px 0 4px; }

/* Preisverlauf */
.price-row.online[data-i] { cursor: pointer; }
.price-row.online[aria-expanded="true"] { border-color: var(--accent); }
.price-hist { list-style: none; padding: 10px 12px; margin: -2px 0 4px; border-radius: 0 0 var(--r-sm) var(--r-sm); background: var(--panel-2); border: 1.5px solid var(--line); border-top: none; animation: fade-up .2s var(--ease-out); }
.price-hist ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--text-soft); }
.spark { width: 100%; height: 54px; display: block; }
.spark path { fill: none; stroke: var(--accent-strong); stroke-width: 2.2; stroke-linejoin: round; }
.spark circle { fill: var(--bad); stroke: var(--panel); stroke-width: 1.5; }
.scan-btn { grid-column: 1 / -1; }

/* Scanner */
.scan-view { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.scan-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 28% 12%; border: 3px solid var(--accent); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.scan-frame::after { content: ''; position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: var(--bad); animation: scanline 1.6s ease-in-out infinite alternate; }
@keyframes scanline { from { transform: translateY(-38px); } to { transform: translateY(38px); } }
.scan-hit { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--r-md); background: var(--panel-2); margin-top: 10px; animation: fade-up .3s var(--ease-out); }
.scan-hit small { color: var(--muted); }

/* ---------- Neue Dialoge: Sync, Tagebuch, Alarme, Gruppe ---------- */
.dlg-body { padding: 22px; }
.menu-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; animation: pop-in .4s var(--ease-spring); }
.link-btn.danger { color: var(--bad); margin-top: 10px; }
.action-grid .action-wide { grid-column: 1 / -1; }
.center { text-align: center; }

.sync-choice { margin: 14px 0 6px; }
.sync-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; color: var(--muted); font-size: 12.5px; }
.sync-or::before, .sync-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sync-join { display: flex; gap: 8px; }
.sync-join input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--panel); font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; outline: none; }
.sync-join input:focus { border-color: var(--accent); }
.sync-qr { width: min(240px, 70vw); aspect-ratio: 1; margin: 12px auto; padding: 10px; border-radius: var(--r-lg); background: #fff; display: grid; place-items: center; color: #999; box-shadow: var(--shadow-md); animation: pop-in .4s var(--ease-spring); }
.sync-qr svg { width: 100%; height: 100%; display: block; }
.sync-code { text-align: center; margin-bottom: 12px; }
.sync-code code { font-size: 13.5px; font-weight: 700; letter-spacing: .05em; padding: 6px 10px; border-radius: 8px; background: var(--bg-soft); user-select: all; word-break: break-all; }

.diary-form { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r-lg); background: var(--panel-2); border: 1.5px solid var(--line); margin-bottom: 14px; }
.diary-form input, .diary-form select, .alert-form input, .alert-form select, .group-form input { height: 44px; padding: 0 12px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--panel); outline: none; min-width: 0; width: 100%; }
.diary-form input:focus, .alert-form input:focus, .group-form input:focus { border-color: var(--accent); }
.diary-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.diary-row input { flex: 2; }
.diary-row select { flex: 1; }
.diary-place { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 99px; background: color-mix(in srgb, var(--c) 15%, var(--panel)); color: var(--c); font-weight: 700; width: fit-content; }
.diary-place span { color: var(--text); }
.star-input.small button { padding: 1px; }
.switch-row.small { font-size: 13px; gap: 8px; }
.switch-row.small .switch { width: 38px; height: 22px; }
.switch-row.small .switch::after { width: 16px; height: 16px; }
.switch-row.small .switch:checked::after { transform: translateX(16px); }
.diary-stats { grid-template-columns: repeat(3, 1fr); }
.diary-tops { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 12px; }
.diary-tops ol { margin: 0; padding-left: 20px; font-size: 13.5px; }
.diary-tops li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.diary-tops li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diary-list h4 { margin: 14px 0 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.diary-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.diary-list li { display: flex; align-items: center; gap: 10px; padding: 8px 4px 8px 12px; border-radius: var(--r-sm); background: var(--panel-2); animation: card-in .3s var(--ease-out) both; }
.dl-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.dl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dl-main small { color: var(--muted); }
.dl-place { display: inline-flex; align-items: center; gap: 3px; }
.dl-note { font-style: italic; }

.alert-form { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; margin: 12px 0 16px; }
.alert-form .btn { border-radius: var(--r-sm); }
.alert-item { padding: 12px; border-radius: var(--r-md); background: var(--panel-2); border: 1.5px solid var(--line); margin-bottom: 8px; animation: card-in .3s var(--ease-out) both; }
.alert-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.alert-head small { color: var(--muted); flex: 1; }
.alert-item ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.alert-item li { display: grid; grid-template-columns: 80px 1fr auto; gap: 8px; align-items: baseline; }
.alert-item li > span:first-child { font-weight: 700; color: var(--text-soft); font-size: 12px; }
.ah-beer small { color: var(--muted); }
.alert-item a { color: var(--good); text-decoration: none; }
.push-row { margin-top: 14px; padding-top: 14px; border-top: 1.5px solid var(--line); }

.group-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.group-code { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--accent-tint); margin-bottom: 14px; }
.group-code span { font-size: 12px; font-weight: 700; color: var(--text-soft); }
.group-code b { flex: 1; font-family: var(--font-display); font-size: 26px; letter-spacing: .12em; }
.group-members, .group-stops { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.group-members li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: var(--r-sm); background: var(--panel-2); }
.group-members li.me { background: var(--accent-tint); }
.gm-name { flex: 1; font-weight: 700; }
.gm-name small, .gm-seen { color: var(--muted); font-weight: 500; }
.gm-drinks { font-family: var(--font-display); }
.stepper.small { height: 34px; width: 112px; }
.stepper.small button { width: 32px; }
.stepper.small output { font-size: 16px; }
.group-stops li { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border-radius: var(--r-sm); background: var(--panel-2); }
.gs-name { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote { display: inline-flex; align-items: center; gap: 4px; padding: 6px 9px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--panel); color: var(--muted); transition: all .15s var(--ease-spring); }
.vote small { font-weight: 800; }
.vote.on { background: var(--good-tint); color: var(--good); border-color: transparent; transform: scale(1.06); }
.vote.down.on { background: var(--bad-tint); color: var(--bad); }
@media (max-width: 480px) { .diary-tops { grid-template-columns: 1fr; } .alert-form { grid-template-columns: 1fr 1fr; } }

/* =========================================================================
   Neue Features: Live-Tour, Heimweg, Runde, Erfolge, Rückblick, Spiele
   ========================================================================= */
.menu-sep { height: 1px; background: var(--line); margin: 5px 8px; }
.menu-check { margin-left: auto; opacity: 0; color: var(--good); }
.menu button[aria-pressed="true"] .menu-check { opacity: 1; }
.menu-up { top: auto; bottom: calc(100% + 8px); transform-origin: bottom right; }
.field-label small { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted); }
.btn-wide { width: 100%; margin-top: 10px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; border: 1.5px solid var(--line);
  background: var(--panel); font-weight: 700; font-size: 13px; color: var(--text-soft); transition: all .15s;
}
.chip-btn .icon { color: var(--accent-strong); }
.chip-btn:hover, .chip-btn.on { border-color: var(--accent); background: var(--accent-tint); color: var(--text); }
.chip-btn small { color: var(--muted); font-weight: 600; }

/* Heatmap */
.heat-canvas { pointer-events: none; filter: blur(6px); }
.heat-legend {
  position: fixed; z-index: 440; right: 10px; top: calc(70px + var(--safe-t)); width: 52px; padding: 8px 4px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; background: var(--panel); box-shadow: var(--shadow-md);
  font-size: 11px; font-weight: 700; color: var(--text-soft); text-align: center; animation: fade-up .3s var(--ease-out);
}
.heat-legend b { font-family: var(--font-display); font-size: 12px; }
.heat-legend small { font-size: 9.5px; color: var(--muted); font-weight: 600; line-height: 1.2; }
.hl-bar { width: 10px; height: 74px; border-radius: 99px; background: linear-gradient(to bottom, rgb(214,64,40), rgb(242,180,40), rgb(46,160,80)); }
@media (min-width: 900px) { .heat-legend { top: 20px; right: 20px; } }

/* Lieblingsbier im Angebot */
.deal { margin: -4px 0 14px; animation: fade-up .35s var(--ease-out); }
.deal-inner { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: var(--r-lg); text-align: left;
  border: 1.5px dashed color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 7%, var(--panel)); }
.deal-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--bad-tint); color: var(--bad); }
.deal-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.deal-text b { color: var(--text); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-text b small { color: var(--muted); font-weight: 600; }
.deal-kicker { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--bad); }
.deal-price { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--bad); white-space: nowrap; }
.results-links { display: flex; gap: 14px; align-items: baseline; }

/* Tour-Formular: Thema */
.theme-chips { display: flex; flex-wrap: wrap; gap: 7px; }
#tourExtras { margin-bottom: 0; }

/* Tour-Aktionen */
.action-grid { grid-template-columns: 1fr 1fr 1fr; }
.action-grid .btn { padding: 0 10px; font-size: 14px; }
.action-grid .btn-big { font-size: 16.5px; }
#tourMoreWrap .btn { width: 100%; }
@media (max-width: 380px) { .action-grid .btn:not(.btn-big) { flex-direction: column; gap: 2px; min-height: 54px; font-size: 12.5px; } }
.tour-result.is-live #tourStats, .tour-result.is-live #tourWeather, .tour-result.is-live #tourHints, .tour-result.is-live #tourActions { display: none; }

/* Live-Karte */
.live-card { padding: 14px; border-radius: var(--r-lg); background: var(--panel-2); border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--line)); margin-bottom: 12px; animation: fade-up .3s var(--ease-out); display: flex; flex-direction: column; gap: 10px; }
.live-card[hidden] { display: none; }
.live-top { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.live-top .icon-btn { margin-left: auto; }
.live-top .link-btn { font-size: 13px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); color: var(--bad); animation: breathe 1.6s ease-in-out infinite; }
.live-km { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.live-bar { position: relative; height: 10px; border-radius: 99px; background: var(--line); }
.live-bar > span { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); transition: width .8s var(--ease-out); }
.live-bar i { position: absolute; top: -3px; width: 4px; height: 16px; margin-left: -2px; border-radius: 3px; background: var(--text-soft); }
.live-bar i.done { background: var(--good); }
.live-next { display: flex; align-items: center; gap: 12px; }
.live-next > div { display: flex; flex-direction: column; min-width: 0; }
.live-next small { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.live-next b { font-family: var(--font-display); font-size: 19px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-next span:not(.live-num) { font-size: 13.5px; color: var(--text-soft); }
.live-num { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--c, var(--text)); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 18px; border: 3px solid var(--panel); box-shadow: var(--shadow-sm); }
.live-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.live-actions .btn:only-child { grid-column: 1 / -1; }
.live-warn { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: var(--r-sm); background: var(--warn-tint); font-size: 13px; }
.live-warn .icon { color: var(--warn); }
.live-warn span { flex: 1; min-width: 55%; }
.live-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.live-card .fine { margin: 0; }

.tl-done { opacity: .55; }
.tl-item.tl-done .tl-dot { background: var(--good); }
.tl-here .tl-dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 35%, transparent); }
.tl-next .tl-name { color: var(--accent-strong); }
.tl-next .tl-dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }

.route-done { stroke: #8b8b8b; stroke-opacity: .85; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route-home { stroke: #2f7fc1; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 9; stroke-width: 6; }
.tm-done { background: var(--good) !important; opacity: .85; }
.tm-home { background: #2f7fc1; }
.friend { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); font-weight: 800; font-size: 11.5px; font-family: var(--font-display); animation: pm-pop .4s var(--ease-spring); }
.elev-done { fill: var(--text); opacity: .06; }
.elev-me { stroke: #2f7fe0; stroke-width: 2.5; vector-effect: non-scaling-stroke; }

/* Allzweck-Dialog, Heimweg */
#miscBody .segmented { margin-bottom: 12px; }
.home-result { min-height: 60px; }
.home-route { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--panel-2); border: 1.5px solid var(--line); }
.home-route > div { display: flex; flex-direction: column; }
.home-route b { font-family: var(--font-display); font-size: 24px; }
.home-route span { font-size: 13.5px; color: var(--text-soft); }
.home-route small { color: var(--muted); }
.station-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.home-set { margin-top: 14px; }
.home-set .prefs-body .searchbox { flex: none; }

/* Runde */
.group-tabs, .diary-tabs { margin-bottom: 14px; }
.gm-avatar { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 800; font-family: var(--font-display); }
.gm-name { display: flex; flex-direction: column; min-width: 0; }
.gm-chips { display: flex; flex-wrap: wrap; gap: 4px 9px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.gm-chips span { display: inline-flex; align-items: center; gap: 3px; }
.round-form { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-lg); background: var(--panel-2); border: 1.5px solid var(--line); margin-bottom: 14px; }
.round-form .price-input input { height: 44px; padding: 0 34px 0 12px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--panel); width: 100%; outline: none; }
.who-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.who { display: inline-flex; position: relative; }
.who input { position: absolute; opacity: 0; pointer-events: none; }
.who span { padding: 7px 12px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--panel); font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; transition: all .15s; }
.who input:checked + span { background: var(--accent-tint); border-color: var(--accent); color: var(--text); }
.who input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.settle-list, .round-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.settle-list li { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--good-tint); font-size: 14px; }
.settle-list li span { margin-left: auto; font-family: var(--font-display); font-weight: 800; }
.round-list li { display: grid; grid-template-columns: 1fr auto 32px; align-items: center; gap: 8px; padding: 8px 4px 8px 12px; border-radius: var(--r-sm); background: var(--panel-2); font-size: 13.5px; }
.round-list li > div { display: flex; flex-direction: column; min-width: 0; }
.round-list small { color: var(--muted); }
.round-list li > span { font-family: var(--font-display); font-weight: 800; }
.poll-card { padding: 14px; border-radius: var(--r-lg); background: var(--accent-tint); margin-bottom: 14px; }
.poll-options { display: flex; flex-direction: column; gap: 6px; }
.poll-opt { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; text-align: left; gap: 0 8px; padding: 10px 12px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--panel); }
.poll-opt b, .poll-opt small { position: relative; grid-column: 1; }
.poll-opt small { color: var(--muted); font-size: 12px; }
.poll-opt.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--accent) 22%, transparent); transition: width .5s var(--ease-out); }
.poll-n { position: relative; grid-column: 2; grid-row: 1 / 3; align-self: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; }

/* Erfolge */
.badge-head { font-size: 14px; color: var(--text-soft); margin-bottom: 10px; }
.badge-head b { font-family: var(--font-display); font-size: 22px; color: var(--accent-strong); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.badge { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px; border-radius: var(--r-md); background: var(--panel-2); border: 1.5px solid var(--line); opacity: .7; }
.badge.on { opacity: 1; border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: linear-gradient(150deg, var(--accent-tint), var(--panel-2) 70%); animation: card-in .35s var(--ease-out) both; }
.badge-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); color: var(--muted); margin-bottom: 4px; }
.badge.on .badge-ico { background: var(--accent); color: var(--accent-ink); }
.badge b { font-size: 13.5px; }
.badge small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.badge-prog { width: 100%; height: 5px; border-radius: 99px; background: var(--line); margin-top: 5px; overflow: hidden; }
.badge-prog i { display: block; height: 100%; background: var(--accent); }
.badge-num { font-variant-numeric: tabular-nums; }

/* Meine Touren */
.tour-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.tour-list li { display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 10px; border-radius: var(--r-md); background: var(--panel-2); border: 1.5px solid var(--line); animation: card-in .3s var(--ease-out) both; }
.tour-thumb { width: 56px; height: 56px; flex-shrink: 0; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; color: var(--muted); }
svg.tour-thumb path { fill: none; stroke: var(--route); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
svg.tour-thumb circle { fill: var(--text); }
.tl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tl-main small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-btns { display: flex; }

/* Rückblick */
.wrapped-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.wrapped-head .row-btns { margin: 0; }
.wrapped-head .row-btns .btn { min-width: 0; }
.wrapped-img img { width: 100%; display: block; border-radius: var(--r-lg); box-shadow: var(--shadow-md); animation: pop-in .45s var(--ease-spring); }

/* Bingo */
.bingo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 12px 0; }
.bingo-cell { aspect-ratio: 1; padding: 6px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--panel-2); font-weight: 700; font-size: 12.5px; line-height: 1.25; color: var(--text-soft); transition: all .18s var(--ease-spring); }
.bingo-cell.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(-1.5deg); }
.bingo-cell.line { background: var(--good); border-color: var(--good); color: #fff; }
.bingo-cell.free { background: var(--accent-tint); color: var(--accent-strong); cursor: default; }
.bingo-cell:active:not(.free) { transform: scale(.94); }
.bingo-count { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--good); margin-right: auto; align-self: center; }

/* Glücksrad */
.wheel-wrap { position: relative; width: min(300px, 78vw); margin: 4px auto 10px; }
.wheel { width: 100%; display: block; transition: transform 3.2s cubic-bezier(.15,.85,.25,1); filter: drop-shadow(0 6px 14px rgba(0,0,0,.18)); }
.wheel-t { fill: #fff; font-size: 11.5px; font-weight: 700; font-family: var(--font-body); }
.wheel-hub { fill: var(--panel); stroke: var(--line-strong); stroke-width: 3; }
.wheel-pin { position: absolute; z-index: 1; left: 50%; top: -6px; width: 0; height: 0; transform: translateX(-50%); border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 24px solid var(--text); filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.wheel-result { min-height: 60px; margin-bottom: 10px; }
.wheel-hit { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); background: var(--panel-2); border: 1.5px solid color-mix(in srgb, var(--c) 45%, var(--line)); animation: pop-in .4s var(--ease-spring); }
.wheel-hit > div { display: flex; flex-direction: column; min-width: 0; }
.wheel-hit b { font-size: 16px; }
.wheel-hit small { color: var(--muted); }
.wheel-hit .card-ico { background: color-mix(in srgb, var(--c) 16%, var(--panel)); color: var(--c); }

/* Getränkekarte per Foto */
.price-form .btn-soft { border-radius: var(--r-sm); }
.ocr-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--r-md); margin-bottom: 10px; }
.ocr-list { list-style: none; margin: 8px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ocr-list li { display: grid; grid-template-columns: 26px 1fr 100px; gap: 6px; align-items: center; padding: 8px; border-radius: var(--r-sm); background: var(--panel-2); border: 1.5px solid var(--line); }
.ocr-list li.bad { border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.ocr-list li.sent { opacity: .5; }
.ocr-list input:not([type=checkbox]), .ocr-list select { height: 38px; padding: 0 8px; border-radius: 8px; border: 1.5px solid var(--line-strong); background: var(--panel); min-width: 0; width: 100%; outline: none; }
.ocr-list .price-input input { padding-right: 24px; }
.ocr-list input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); grid-row: 1 / 3; }
.ocr-beer { grid-column: 2 / 4; }
.ocr-unit { grid-column: 2; }
.ocr-list .price-input { grid-column: 3; }
.ocr-msg { grid-column: 2 / 4; font-size: 12px; color: var(--muted); }
.ocr-msg:empty { display: none; }
.ocr-list li.bad .ocr-msg { color: var(--bad); }
.ocr-raw { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.ocr-raw pre { white-space: pre-wrap; font-size: 11.5px; max-height: 160px; overflow: auto; background: var(--bg-soft); padding: 8px; border-radius: 8px; }

.backup-box { margin-top: 18px; padding-top: 14px; border-top: 1.5px solid var(--line); }
.ah-near { display: block; font-weight: 600; color: var(--muted); font-size: 11px; }

/* Konfetti */
.confetti { position: fixed; inset: 0; z-index: 4000; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -14px; left: var(--x); width: 8px; height: 13px; border-radius: 2px; background: var(--c); animation: confetti 2.2s cubic-bezier(.2,.6,.4,1) var(--d) forwards; }
@keyframes confetti { to { transform: translateY(105vh) rotate(var(--r)); opacity: .3; } }
