[hidden] { display: none !important; }

/* Stil wie biersommelier.ac: hell, Braun als Schrift, Rot für Buttons, Kupfer als Akzent */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 400; font-display: swap; src: url("fonts/mulish-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 700; font-display: swap; src: url("fonts/mulish-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --panel: #f7f4f1;              /* = Braun mit 6 % Deckkraft, wie die Preisbox im Shop */
  --line: #e9e2dc;
  --text: #3d2817;
  --muted: rgba(61, 40, 23, .7);
  --red: #a73030;
  --red-dark: #8e2626;
  --brand: #c17a4a;
  --accent: #d4a574;
  --ok: #3f7d45;
  --err: #a73030;
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Mulish", "Muli", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--font-body);
  display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}
h1, h2, .btn, .list-title, .story-label, .label { font-family: var(--font-head); }

/* Kopfzeile */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: #fff; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand .logo { width: 40px; height: 40px; object-fit: contain; flex: none; }
.top h1 {
  font-size: .82rem; font-weight: 500; margin: 0; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text); line-height: 1.3;
}
.ticket-status { font-size: .8rem; color: var(--muted); text-align: right; white-space: nowrap; }
.ticket-status strong { color: var(--red); }

#map { height: 32vh; min-height: 200px; background: var(--panel); }
.center-btn {
  position: absolute; right: 14px; top: calc(max(10px, env(safe-area-inset-top)) + 72px); z-index: 500;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #fff; color: var(--red); font-size: 22px; box-shadow: 0 2px 8px rgba(61, 40, 23, .25);
}
.panel { flex: 1; overflow-y: auto; padding: 20px 16px 130px; }
.panel > section { max-width: 640px; margin: 0 auto; }

/* Überschriften wie im Shop: Poppins, Großbuchstaben, kupferner Strich darunter */
h2 {
  font-size: 1.35rem; font-weight: 400; letter-spacing: 1px; text-transform: uppercase;
  line-height: 1.4; margin: 0 0 14px; text-align: center; text-wrap: balance;
}
h2::after { content: ""; display: block; width: 36px; height: 2px; background: var(--brand); margin: 12px auto 0; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .85rem; }
.label { margin: 18px 0 4px; font-weight: 500; font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; }

.form { display: grid; gap: 10px; }
.form label { display: grid; gap: 4px; font-size: .88rem; color: var(--muted); }
input {
  font: inherit; color: var(--text); background: #fff;
  border: 1px solid var(--line); border-radius: 6px; padding: 12px;
}
input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }

/* Buttons wie „Jetzt buchen“ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: .8rem; font-weight: 400; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 25px; border: 1px solid var(--text);
  background: #fff; color: var(--text);
}
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-small { padding: 8px 14px; font-size: .72rem; }
#buyBtn { width: 100%; margin: 10px 0 4px; }

.voucher { margin-top: 18px; }
.voucher summary { cursor: pointer; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.voucher .form { margin-top: 10px; }

.msg { min-height: 1.2em; margin: 10px 0; font-size: .9rem; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }

/* „Du bist an Station …“ */
.nearby {
  background: var(--red); color: #fff;
  border-radius: 10px; padding: 14px 16px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  animation: pop .3s ease-out;
}
.nearby small { opacity: .85; }
.nearby strong { display: block; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; }
.nearby .btn { background: #fff; color: var(--red); border-color: #fff; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nearby { animation: none; } }

.list-title { margin-top: 10px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.item {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center;
}
.item.near { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.item.done .name::after { content: " ✓"; color: var(--ok); }
.item .name { font-family: var(--font-head); font-weight: 500; }
.item .dist { color: var(--muted); font-size: .82rem; }
.item .desc { grid-column: 1 / -1; color: var(--muted); font-size: .86rem; }
.item .desc.teaser { color: var(--text); font-style: italic; }
.item .actions { display: flex; gap: 6px; grid-row: 1 / 3; grid-column: 2; }
.item .thumb { grid-column: 1 / -1; width: 100%; max-height: 160px; object-fit: cover; border-radius: 6px; margin-top: 8px; }

/* Player unten */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(61, 40, 23, .08);
  padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.player-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.player-head img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; }
.player-title { font-family: var(--font-head); font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin: 0; }
.player audio { width: 100%; height: 40px; }

/* Karte */
.leaflet-container { font: inherit; }
.station-pin {
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 2px solid var(--red); color: var(--red);
  display: grid; place-items: center; font: 500 13px var(--font-head);
  box-shadow: 0 1px 4px rgba(61, 40, 23, .3);
}
.station-pin.near { background: var(--red); color: #fff; }

/* Startseite, Startkarte, Mitlesen */
.hero { width: 100%; max-width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin-bottom: 20px; display: block; }
.facts { margin: 6px 0 14px; padding: 14px 14px 14px 32px; background: var(--panel); border-radius: 10px; display: grid; gap: 4px; font-size: .92rem; }
.facts:empty { display: none; }
.start-card { display: grid; gap: 8px; background: var(--panel); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.start-card strong { font-family: var(--font-head); font-weight: 500; }
.start-card span { color: var(--muted); font-size: .92rem; }
.start-card .btn { justify-self: start; }

.intro-card {
  display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center;
  background: var(--panel); border-radius: 10px; padding: 10px; margin-bottom: 14px;
}
.intro-card img { width: 88px; height: 88px; object-fit: cover; border-radius: 6px; }
.intro-body { display: grid; gap: 4px; justify-items: start; }
.intro-body span { color: var(--muted); font-size: .88rem; }
.intro-card.done strong::after { content: " ✓"; color: var(--ok); }

.switch { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
.switch input { width: 20px; height: 20px; accent-color: var(--red); }
.nav-test { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.story { background: var(--panel); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.story summary { cursor: pointer; display: grid; gap: 2px; list-style: none; }
.story summary::-webkit-details-marker { display: none; }
.story summary strong { font-family: var(--font-head); font-weight: 500; }
.story summary::after { content: "Aufklappen ▾"; color: var(--red); font-size: .82rem; }
.story[open] summary::after { content: "Zuklappen ▴"; }
.story-label { font-size: .72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--brand); }
#storyText { max-width: 65ch; line-height: 1.7; margin-top: 10px; }
#storyText p { margin: 0 0 .9em; }

/* Player-Tasten und Text in der Liste */
.player-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.player-row .player-head { margin: 0; min-width: 0; }
.player-row .player-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-ctrl { display: flex; align-items: center; gap: 8px; flex: none; }
.ctrl { font: 500 .8rem var(--font-head); color: var(--text); background: var(--panel); border: 0; border-radius: 22px; padding: 8px 10px; cursor: pointer; min-width: 54px; }
.ctrl-main { background: var(--red); color: #fff; width: 44px; height: 44px; min-width: 44px; border-radius: 50%; padding: 0; font-size: 1rem; }
.ctrl:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.item.playing { border-color: var(--brand); }
.item.locked .name { color: var(--muted); }
.item .lock-hint { font-size: .8rem; font-style: italic; }
.text-toggle { grid-column: 1 / -1; justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--red); font: inherit; font-size: .88rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.item-text { grid-column: 1 / -1; line-height: 1.7; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); max-width: 65ch; }
.item-text p { margin: 0 0 .9em; }
