/* =========================================================================
   Faust, Mephisto und Ich – Leipzig – Gestaltung
   Dunkles Braun mit Leipziger Stadtplan, Petrol für Kopf und Fuß, Gold für
   Titel, Bangers und Caveat Brush wie auf der bestehenden Seite, dazu die
   Grafik-Buttons. Farben stehen alle oben in :root – für eine neue Tour nur dort ändern.
   ========================================================================= */

@font-face { font-family: "Bangers"; src: url("fonts/bangers-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Caveat Brush"; src: url("fonts/caveat-brush-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Farben der Tour */
  --seite: #423B29;            /* Seitenhintergrund (unter dem Stadtplan) */
  --kopf-bg: #164450;          /* Kopf- und Fußleiste: Petrol wie bisher */
  --kopf-text: #FFFFFF;
  --karte-bg: rgba(37, 32, 21, .94);  /* Karten (Inhaltsblöcke) */
  --karte-rand: rgba(245, 181, 37, .30);
  --flaeche: #1B4A55;          /* Kästen innerhalb der Karten: Petrol */
  --text: #FFF6E4;
  --titel: #F5B525;
  --akzent: #F5B525;
  --akzent-tief: #D79A12;
  --link: #F5B525;
  --link-hover: #FFFFFF;
  --knopf-bg: #F5B525;
  --knopf-text: #164450;
  --knopf-hover-bg: #FFFFFF;
  --grau: #D2C7AE;
  --linie: rgba(245, 181, 37, .22);
  --karte-schleier: rgba(22, 68, 80, .55);
  --loesung-farbe: #F5B525;
  --aufloesung-rand: #F5B525;
  --tinte: #164450;            /* dunkle Schrift auf weißen Feldern */
  /* Rote Boxen wie auf allen Tour-Seiten */
  --rot: #8B0000;
  --rot-tief: #6A0000;
  --gruen: #4CAF50;
  --rund: 26px;
  --f-titel: "Bangers", Impact, "Arial Black", sans-serif;
  --f-text: "Caveat Brush", "Comic Sans MS", cursive;
  --f-info: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font-family: var(--f-text); font-size: 22px; line-height: 1.38;
  background: var(--seite) var(--hintergrund, none) center top / 1500px auto repeat;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--titel); font-family: var(--f-titel); font-weight: 400; letter-spacing: 1px; line-height: 1.02; text-wrap: balance; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.sprunglink { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--knopf-bg); color: var(--knopf-text); padding: 10px 16px; border-radius: 10px; font: 600 15px var(--f-info); }
.sprunglink:focus { left: 16px; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ Kopf ---- */
.kopf { position: relative; z-index: 20; background: var(--kopf-bg); box-shadow: 0 1px 0 var(--linie); }
.kopf__leiste {
  max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 20px;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px));
}
.logo { display: block; flex: none; }
.logo img { width: 86px; height: 86px; border-radius: 50%; box-shadow: 0 6px 18px rgba(18, 14, 6, .25); transition: transform .3s ease; }
.logo:hover img { transform: rotate(-6deg) scale(1.04); }
.kopf__links { margin-left: auto; display: flex; gap: 26px; }
.kopf__links a { color: var(--kopf-text); font: 400 24px/1 var(--f-titel); letter-spacing: 1px; text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.kopf__links a:hover { color: var(--kopf-text); border-bottom-color: var(--kopf-text); }
.menue-knopf {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 2px solid var(--kopf-text); border-radius: 999px;
  background: transparent; color: var(--kopf-text); cursor: pointer; font: 400 22px/1 var(--f-titel); letter-spacing: 1px;
}
.menue-knopf:hover, .menue-knopf[aria-expanded="true"] { background: var(--kopf-text); color: var(--kopf-bg); }
.navi {
  position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: calc(100% + 8px); width: min(380px, calc(100% - 32px));
  background: var(--kopf-bg); border: 1px solid var(--karte-rand); border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); padding: 18px;
}
.navi__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.navi__liste > li > a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--titel); font: 400 24px/1.1 var(--f-titel); letter-spacing: 1px; text-decoration: none; }
.navi__liste > li > a:hover { background: var(--flaeche); color: var(--titel); }
.navi__stationen { list-style: none; margin: 6px 0; padding: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--flaeche); border-radius: 16px; }
.navi__stationen a, .navi__gesperrt { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 8px 4px; border-radius: 10px; font: 600 13px var(--f-info); text-decoration: none; }
.navi__stationen a { background: var(--kopf-bg); color: var(--text); }
.navi__stationen a:hover { background: var(--knopf-bg); color: var(--knopf-text); }
.navi__gesperrt { color: var(--grau); opacity: .7; }

/* ---------------------------------------------------------- Banner ---- */
.banner { max-width: 1180px; margin: 22px auto 0; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.banner__bild { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: var(--rund); background: #F6EBD3; box-shadow: 0 18px 40px rgba(18, 14, 6, .22); }

/* ----------------------------------------------------------- Seite ---- */
.seite { max-width: 900px; margin: 0 auto; padding: 26px max(16px, env(safe-area-inset-right, 0px)) 60px max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 26px; }
.bogen {
  position: relative; background: var(--karte-bg); border: 1px solid var(--karte-rand); border-radius: var(--rund); padding: 40px clamp(20px, 5vw, 52px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .35); display: grid; gap: 20px; min-width: 0;
}
.bogen--schmal { max-width: 720px; width: 100%; margin: 0 auto; }
.titel { font-size: clamp(42px, 7vw, 66px); max-width: 100%; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.titel--klein { font-size: clamp(34px, 5.5vw, 48px); }
.zwischentitel { font-size: clamp(32px, 4.8vw, 42px); }
.kleintitel { font-size: 26px; }
.dachzeile { font: 700 13px var(--f-info); letter-spacing: .14em; text-transform: uppercase; color: var(--akzent-tief); }
.lead { font-size: 24px; }
.kleingedruckt { font: 400 14px/1.5 var(--f-info); color: var(--grau); }
.kleingedruckt a { color: var(--link); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid var(--knopf-bg); cursor: pointer; text-decoration: none;
  font: 400 23px/1 var(--f-titel); letter-spacing: 1px; transition: transform .15s ease, background .2s ease, color .2s ease;
}
.knopf:active { transform: scale(.96); }
.knopf--dunkel { background: var(--knopf-bg); color: var(--knopf-text); }
.knopf--dunkel:hover { background: var(--knopf-hover-bg); border-color: var(--knopf-hover-bg); color: var(--knopf-text); }
.knopf--rand { background: transparent; color: var(--akzent); }
.knopf--rand:hover { background: var(--knopf-bg); color: var(--knopf-text); }
.knopf--klein { min-height: 42px; padding: 8px 18px; font-size: 19px; justify-self: start; }
.knopf--gross { min-height: 62px; padding: 14px 30px; font-size: 27px; justify-self: start; }

/* ---------------------------------------------------- Grafik-Buttons ---- */
.bildknopf {
  display: inline-block; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 26px;
  width: clamp(140px, 30vw, 210px); transition: transform .2s cubic-bezier(.2, .9, .3, 1.3), filter .2s ease;
  filter: drop-shadow(0 8px 14px rgba(18, 14, 6, .22));
}
.bildknopf img { width: 100%; height: auto; border-radius: 22px; }
.bildknopf:hover { transform: rotate(-3deg) scale(1.05); }
.bildknopf:active { transform: scale(.94); }
.bildknopf[aria-expanded="true"] { transform: rotate(-3deg) scale(1.03); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.bildknopf[aria-expanded="true"] img { outline: 4px solid var(--akzent); outline-offset: 4px; }
.bildknopf--gross { width: clamp(160px, 34vw, 240px); }
.bildknopf--mittel { width: clamp(130px, 26vw, 180px); }
.bildknopf--klein { width: clamp(110px, 22vw, 150px); }
.bildknoepfe { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(18px, 5vw, 48px); padding: 6px 0; }

/* --------------------------------------------------------- Station ---- */
.station__kopf { display: grid; gap: 8px; text-align: center; justify-items: center; }
.weg { display: grid; gap: 12px; }
.weg .kleintitel::first-letter { text-transform: uppercase; }
.geist { display: grid; gap: 16px; }
.geist .zwischentitel { text-align: center; }
.geist__text { display: grid; gap: 14px; padding-left: 20px; border-left: 4px solid var(--akzent); }
.geist__text p { max-width: 62ch; }
.erzaehler { font-family: var(--f-info); font-style: italic; font-size: 16px; color: var(--grau); text-align: center; }
.erzaehler::before, .erzaehler::after { content: " ✦ "; color: var(--akzent-tief); font-style: normal; }
/* Blocksatz für die Haupttexte – wie auf den alten Seiten. Die Silbentrennung verhindert große Lücken. */
.geist__text { line-height: 1.45; }
.geist__text p, .willkommen p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.geist__text .erzaehler { text-align: left; }
.geist__text .erzaehler::before, .geist__text .erzaehler::after { content: none; }

.stationsbild { margin: 0; justify-self: center; width: min(100%, 520px); }
.lupenbild { position: relative; display: block; border-radius: 22px; overflow: hidden; box-shadow: 0 14px 30px rgba(18, 14, 6, .22); }
.lupenbild img { width: 100%; transition: transform .5s ease; }
.lupenbild:hover img { transform: scale(1.03); }
.lupenbild__hinweis {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: 999px; background: rgba(18, 14, 6, .78); color: #fff; font: 500 13px var(--f-info);
}

.geschafft { padding: 22px; border-radius: 20px; background: var(--flaeche); display: grid; gap: 14px; justify-items: center; text-align: center; }
.geschafft__kopf { display: flex; align-items: center; gap: 12px; color: var(--titel); }
.geschafft__kopf .icon { flex: none; padding: 6px; width: 44px; height: 44px; border-radius: 50%; background: var(--gruen); color: #fff; }

.stationsbilder { display: grid; gap: 22px; justify-items: center; }
.stationsbilder .stationsbild { width: min(100%, 560px); }

/* ---------------------------------------------------- Sprachaufnahme ---- */
.hoerer { display: grid; justify-items: center; gap: 14px; padding: 4px 0 8px; }
.hoerer__start { width: clamp(150px, 32vw, 200px); position: relative; }
.hoerer__start svg { display: block; width: 100%; height: auto; border-radius: 22px; }
.hoerer__start::after {
  content: ""; position: absolute; inset: -6px; border-radius: 30px; border: 3px solid var(--akzent); opacity: 0; pointer-events: none;
}
.hoerer--spielt .hoerer__start::after { opacity: 1; animation: puls 1.6s ease-out infinite; }
@keyframes puls { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.12); opacity: 0; } }
.hoerer__leiste {
  width: min(100%, 440px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--flaeche); border: 1px solid var(--karte-rand);
}
.hoerer__knopf {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--knopf-bg); color: var(--knopf-text);
}
.hoerer__knopf .hoerer__play { display: none; }
.hoerer:not(.hoerer--spielt) .hoerer__knopf .hoerer__play { display: block; }
.hoerer:not(.hoerer--spielt) .hoerer__knopf .hoerer__pause { display: none; }
.hoerer__balken {
  --anteil: 0%; width: 100%; height: 6px; margin: 0; border-radius: 999px; cursor: pointer; -webkit-appearance: none; appearance: none;
  background: linear-gradient(to right, var(--akzent) var(--anteil), rgba(255, 255, 255, .18) var(--anteil));
}
.hoerer__balken::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--akzent); border: 3px solid var(--kopf-bg); }
.hoerer__balken::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--akzent); border: 3px solid var(--kopf-bg); }
.hoerer__zeit { font: 600 13px var(--f-info); color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ------------------------------------------------------------ Karte ---- */
.karte {
  position: relative; min-height: 320px; border-radius: 20px; overflow: hidden;
  background: var(--flaeche) var(--hintergrund, none) center / 900px auto; box-shadow: inset 0 0 0 2px var(--linie);
}
.karte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.karte--station { min-height: 0; height: 330px; }
.karte__zustimmung {
  position: absolute; inset: 0; padding: 20px 16px 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--karte-schleier);
}
.karte__pin { color: var(--titel); }
.karte__pin .icon { fill: var(--rot); }
.karte__hinweis {
  position: absolute; left: 12px; right: 12px; bottom: 12px; text-align: center; font: 400 12px/1.4 var(--f-info);
  color: var(--tinte); background: rgba(255, 255, 255, .94); border-radius: 8px; padding: 6px 10px;
}
.karte__hinweis a { color: var(--tinte); }

/* ------------------------------------------------------------ Hilfe ---- */
.hilfe { scroll-margin-top: 16px; }
.hilfe > .zwischentitel { text-align: center; }
.hinweise { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hinweis { padding: 18px 22px; border-radius: 18px; background: var(--flaeche); display: grid; gap: 10px; animation: auftauchen .35s ease both; }
.hinweis__titel { font-size: 28px; }
.hinweis__text { display: grid; gap: 8px; }
.hinweis__zu { font: 400 34px/1 var(--f-titel); letter-spacing: 6px; color: var(--grau); opacity: .5; }
.hinweis__weiter {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  border: 2px dashed var(--akzent); background: transparent; color: var(--text); cursor: pointer; font: 400 21px var(--f-text);
}
.hinweis__weiter:hover { border-style: solid; background: var(--knopf-bg); color: var(--knopf-text); }
.aufloesung { padding: 22px; border-radius: 18px; border: 3px dashed var(--aufloesung-rand); display: grid; gap: 14px; justify-items: center; text-align: center; animation: auftauchen .35s ease both; }
.aufloesung__ergebnis { display: grid; gap: 10px; justify-items: center; }
.loesungswort { font: 400 clamp(42px, 9vw, 64px)/1 var(--f-titel); letter-spacing: 2px; color: var(--loesung-farbe); }
.aufloesung__bild { width: min(100%, 460px); }
.hilfe__fuss { display: flex; justify-content: center; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- Nebenbei ---- */
.nebenbei { gap: 18px; padding-block: 26px; }
.spielhinweis summary { cursor: pointer; font: 400 28px var(--f-titel); letter-spacing: 1px; list-style: none; display: flex; align-items: center; gap: 10px; }
.spielhinweis summary::-webkit-details-marker { display: none; }
.spielhinweis summary::before { content: "+"; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--knopf-bg); color: var(--knopf-text); font: 400 22px/1 var(--f-info); }
.spielhinweis[open] summary::before { content: "–"; }
.spielhinweis p { margin-top: 10px; }
.weiterlesen { display: grid; gap: 8px; justify-items: start; }
.weiterlesen a { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; }

/* -------------------------------------------- Rote Boxen (wie bisher) ---- */
.eingabe, .warnung {
  width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 12px;
  background: var(--rot); color: #fff; box-shadow: 0 0 30px rgba(0, 0, 0, .5); overflow: auto; overscroll-behavior: contain;
}
.warnung { width: min(700px, calc(100% - 32px)); }
.eingabe::backdrop, .warnung::backdrop, .lupe::backdrop { background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.eingabe[open], .warnung[open] { animation: aufspringen .45s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes aufspringen { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
html:has(dialog[open]) { overflow: hidden; }

.eingabe__form, .eingabe__erfolg { padding: 30px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.eingabe__titel { font-size: 32px; }
.eingabe__feld {
  width: 100%; padding: 12px 14px; border: 0; border-radius: 6px; text-align: center; background: #fff; color: var(--tinte);
  font: 400 24px var(--f-text);
}
.eingabe__meldung { min-height: 1.3em; font-size: 21px; }
.eingabe__erfolg .eingabe__meldung:empty { display: none; }
.eingabe__knoepfe { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
.eingabe__ok, .codebox__knopf {
  display: inline-flex; align-items: center; justify-content: center; padding: 10px 28px; border: 0; border-radius: 6px; cursor: pointer;
  background: #fff; color: var(--rot); font: 400 24px/1.1 var(--f-titel); letter-spacing: 1px; text-decoration: none; transition: transform .2s ease;
}
.eingabe__ok:hover, .codebox__knopf:hover { transform: scale(1.05); color: var(--rot-tief); }
.eingabe__ok:disabled, .codebox__knopf:disabled { opacity: .6; cursor: default; transform: none; }
.eingabe__abbrechen { padding: 8px 10px; border: 0; background: none; color: #fff; cursor: pointer; font: 500 15px var(--f-info); text-decoration: underline; text-underline-offset: 3px; opacity: .9; }
.wackeln { animation: wackeln .4s ease; }
@keyframes wackeln { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.warnung__innen { padding: 30px; display: grid; gap: 10px; text-align: center; justify-items: center; }
.warnung__titel { font-size: 2.1em; outline: none; }
.warnung h3 { margin-top: 12px; font-size: 1.3em; }
.warnung p { max-width: 36em; }
.warnung form { margin-top: 14px; }
.warnung__knopf {
  padding: 12px 26px; border: 0; border-radius: 6px; cursor: pointer; background: var(--gruen); color: #fff;
  font: 400 24px/1.1 var(--f-titel); letter-spacing: 1px; transition: transform .15s ease;
}
.warnung__knopf:hover { transform: scale(1.05); }
.warnung__knopf:active { transform: scale(.95); }

/* --------------------------------------------------------- Startseite ---- */
.willkommen { text-align: center; justify-items: center; }
.willkommen p { max-width: 60ch; }
.ticket { justify-items: center; text-align: center; }
.ticket__raster { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 4vw, 40px); align-items: center; text-align: left; width: 100%; }
.ticket__raster--code { grid-template-columns: 1fr auto; }
.schritte { margin: 0; padding: 0; list-style: none; counter-reset: schritt; display: grid; gap: 10px; }
.schritte li { counter-increment: schritt; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
.schritte li::before {
  content: counter(schritt); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--knopf-bg); color: var(--knopf-text); font: 400 22px/1 var(--f-titel);
}
.hinweisleiste { padding: 14px 20px; border-radius: 16px; background: var(--flaeche); }
.ticketbild { margin: 0; justify-self: center; width: min(100%, 320px); }
.startpunkt .knopf { justify-self: start; }

/* ------------------------------------------------------- Code-Eingabe ---- */
.codekarte { justify-items: center; text-align: center; }
.codebox { width: 100%; max-width: 440px; padding: 30px; border-radius: 12px; background: var(--rot); color: #fff; box-shadow: 0 0 24px rgba(0, 0, 0, .35); display: grid; gap: 16px; }
.codebox__titel { font-size: 2em; }
.codebox__form, .codebox__erfolg { display: grid; gap: 14px; justify-items: center; }
.codebox__label { display: grid; gap: 2px; font-size: 22px; }
.codebox__label span { font-size: 19px; opacity: .9; }
.codebox__feld {
  width: 90%; padding: 12px; border: 0; border-radius: 6px; text-align: center; text-transform: uppercase; letter-spacing: .08em;
  font: 600 20px var(--f-info); color: var(--tinte); background: #fff;
}
.codebox__feld::placeholder { color: #9AA0AE; font-weight: 500; }
.codebox__meldung { font-size: 21px; }
.codebox__jubel { font: 400 30px/1.1 var(--f-titel); letter-spacing: 1px; }
.codebox__test { font: 500 14px var(--f-info); background: rgba(255, 255, 255, .15); padding: 6px 12px; border-radius: 8px; }
.codekarte__fuss { max-width: 440px; }

/* ------------------------------------------------------------- Ende ---- */
.ende { text-align: left; }
.ende > .dachzeile, .ende > .titel { text-align: center; }
.danke { text-align: center; justify-items: center; }
.danke__raster { display: grid; grid-template-columns: auto 1fr; gap: 14px 22px; align-items: center; text-align: left; max-width: 620px; }
.mailzeile a { font-size: 24px; }
.schlusszeile { font: 400 30px var(--f-titel); letter-spacing: 1px; }

/* -------------------------------------------------------------- Tor ---- */
.tor { justify-items: center; text-align: center; }
.tor__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--knopf-bg); color: var(--knopf-text); display: grid; place-items: center; }

/* ------------------------------------------------------------ Lupe ---- */
.lupe { max-width: 96vw; max-height: 94dvh; padding: 0; border: 0; border-radius: 16px; background: #111; overflow: visible; }
.lupe img { max-width: 96vw; max-height: 94dvh; width: auto; height: auto; border-radius: 16px; }
.lupe__zu {
  position: absolute; top: 10px; right: 10px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--tinte); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

/* ---------------------------------------------- Impressum, Datenschutz ---- */
.recht { max-width: 820px; width: 100%; margin-left: auto; margin-right: auto; gap: 14px; font-family: var(--f-info); font-size: 16px; line-height: 1.65; }
.recht h1 { font-family: var(--f-titel); font-weight: 400; font-size: clamp(30px, 7.5vw, 56px); overflow-wrap: anywhere; hyphens: auto; letter-spacing: 1px; line-height: 1.05; margin: 0 0 6px; }
.recht h2 { font-family: var(--f-titel); font-weight: 400; font-size: 28px; letter-spacing: 1px; line-height: 1.1; margin: 18px 0 0; scroll-margin-top: 20px; }
.recht h3 { font-family: var(--f-info); font-size: 16px; font-weight: 700; margin: 6px 0 0; }
.recht p, .recht ul { margin: 0; }
.recht ul { padding-left: 22px; display: grid; gap: 6px; }
.recht a { overflow-wrap: anywhere; }

/* ------------------------------------------------------------- Fuß ---- */
.fuss { border-top: 2px solid var(--akzent); background: var(--kopf-bg); color: var(--text); }
.fuss__innen {
  max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
  padding: 22px max(16px, env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.fuss__logo img { width: 64px; height: 64px; border-radius: 50%; }
.fuss__links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.fuss__links a, .fuss__knopf { color: var(--kopf-text); font: 400 22px var(--f-titel); letter-spacing: 1px; text-decoration: none; }
.fuss__knopf { padding: 0; border: 0; background: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-family: var(--f-info); font-size: 13px; letter-spacing: 0; }
.fuss__copy { margin-left: auto; color: var(--text); font: 500 13px var(--f-info); text-decoration: none; }

/* ------------------------------------------------------------ Handy ---- */
@media (max-width: 760px) {
  body { font-size: 20.5px; background-size: 1100px auto; }
  .kopf__links { display: none; }
  .menue-knopf { margin-left: auto; }
  .logo img { width: 68px; height: 68px; }
  .seite { gap: 18px; padding-top: 18px; }
  .bogen { padding: 28px 20px; gap: 18px; border-radius: 22px; }
  .geist__text { padding-left: 14px; }
  .karte--station { height: 270px; }
  .karte { min-height: 270px; }
  .bildknopf { width: 40vw; max-width: 190px; }
  .bildknoepfe { gap: 14px; flex-wrap: nowrap; }
  .bildknoepfe .bildknopf { width: calc(50% - 7px); max-width: 180px; }
  .bildknopf--klein { width: 32vw; }
  .bildknopf--mittel { width: 36vw; }
  .ticket__raster, .ticket__raster--code { grid-template-columns: 1fr; justify-items: center; }
  .ticket__raster--code .ticketbild { order: 2; }
  .danke__raster { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .knopf--gross { font-size: 24px; padding-inline: 22px; }
  .eingabe__form, .eingabe__erfolg, .warnung__innen, .codebox { padding: 24px 18px; }
  .fuss__copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .kopf, .fuss, .bildknoepfe, .karte, .hoerer, dialog { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------------------------------------------------- Cookie-Hinweis ---- */
.einwilligung {
  position: fixed; z-index: 60; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 20px 22px; border-radius: 20px; display: grid; gap: 12px;
  font-family: var(--f-info); font-size: 14px; line-height: 1.5;
  background: var(--kopf-bg); color: var(--text); border: 2px solid var(--akzent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35); animation: einwilligung-ein .35s ease both;
}
.einwilligung__titel { margin: 0; font-family: var(--f-titel); font-weight: 400; font-size: 26px; letter-spacing: 1px; line-height: 1; color: var(--titel); }
.einwilligung p { margin: 0; }
.einwilligung__knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.einwilligung__knoepfe .knopf { flex: 1 1 180px; justify-self: stretch; }
.einwilligung__links { font-size: 13px; }
.einwilligung__links a { color: inherit; }
@keyframes einwilligung-ein { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .einwilligung { animation: none; } }

/* =========================================================================
   Landingpage (goethe-faust-tour-leipzig.php / gauss-tour-goettingen.php)
   ========================================================================= */
:root { --lp-flaeche: var(--flaeche); --lp-akzent: var(--akzent); --lp-knopf-bg: var(--knopf-bg); --lp-knopf-text: var(--knopf-text); --lp-label: var(--akzent); --lp-icon-rand: transparent; }
.lp-hero { text-align: center; justify-items: center; }
.lp-hero > p { max-width: 62ch; }
.lp-hero .kleintitel { margin-top: 8px; }
.lp-stimme { font-size: 1.08em; font-style: normal; }
.lp-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 28px; width: 100%; }
.lp-zentriert { text-align: center; }
.lp-leise { text-align: center; font-family: var(--f-info); font-size: 15px; }
.lp-eckdaten { margin: 0; width: 100%; max-width: 720px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; text-align: left; }
.lp-eckdaten > div { padding: 12px 16px; border-radius: 14px; background: var(--lp-flaeche); display: grid; gap: 2px; align-content: start; }
.lp-eckdaten dt { font: 700 12px/1.3 var(--f-info); letter-spacing: .12em; text-transform: uppercase; color: var(--lp-label); }
.lp-eckdaten dd { margin: 0; line-height: 1.3; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.lp-zweispaltig { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lp-zweispaltig > div { display: grid; gap: 12px; align-content: start; padding: 18px 20px; border-radius: 18px; background: var(--lp-flaeche); }
.lp-zitat { margin: 0; padding: 18px 22px; border-radius: 18px; background: var(--lp-flaeche); display: grid; gap: 8px; }
.lp-zitat p { font-size: 1.08em; }
.lp-zitat footer { font: 600 14px var(--f-info); color: var(--lp-label); }
.lp-kopfzeile { display: flex; align-items: center; gap: 16px; }
.lp-kopfzeile .zwischentitel { min-width: 0; }
.lp-icon { flex: none; width: 72px; height: 72px; padding: 6px; border-radius: 16px; background: #FFFFFF; border: 1px solid var(--lp-icon-rand); box-shadow: 0 6px 14px rgba(0, 0, 0, .18); }
.lp-icon--klein { width: 40px; height: 40px; padding: 3px; border-radius: 10px; box-shadow: none; }
.lp-mit-icon { display: flex; align-items: center; justify-content: center; gap: 10px; }
.lp-mit-icon > span { min-width: 0; }
.lp-mehr { font-family: var(--f-info); font-size: 15px; font-weight: 600; }
.lp-abschnitt > p, .lp-abschnitt > ul, .lp-abschnitt > ol { max-width: 66ch; }
.lp-abschnitt > .kleintitel { margin-top: 6px; }
.lp-abschnitt .schritte li { display: block; position: relative; padding-left: 50px; min-height: 38px; padding-top: 3px; }
.lp-abschnitt .schritte li::before { position: absolute; left: 0; top: 0; }
.lp-liste { margin: 0; padding-left: 24px; display: grid; gap: 10px; }
.lp-liste li::marker { color: var(--lp-akzent); }
.lp-bild { margin: 6px 0 0; justify-self: center; width: min(100%, 800px); }
.lp-notiz { padding: 20px 22px; border-left: 4px solid var(--lp-akzent); border-radius: 0 18px 18px 0; background: var(--lp-flaeche); display: grid; gap: 10px; }
.lp-notiz__name { font-family: var(--f-titel); font-size: 26px; letter-spacing: 1px; text-align: right; color: var(--lp-akzent); }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--lp-flaeche); padding: 14px 18px; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; font: 400 23px/1.15 var(--f-titel); letter-spacing: .5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lp-knopf-bg); color: var(--lp-knopf-text); font: 400 20px/1 var(--f-info); }
.faq details[open] summary::before { content: "–"; }
.faq details p { margin-top: 10px; }
.faq a { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .lp-cta { gap: 14px; }
  .lp-icon { width: 56px; height: 56px; border-radius: 14px; padding: 5px; }
  .lp-icon--klein { width: 36px; height: 36px; border-radius: 9px; padding: 3px; }
  .lp-kopfzeile { gap: 12px; }
  .lp-eckdaten, .lp-zweispaltig { grid-template-columns: minmax(0, 1fr); }
  .lp-eckdaten > div { grid-template-columns: 6.5em 1fr; align-items: baseline; column-gap: 10px; padding: 10px 14px; }
  .lp-cta .bildknopf--gross { width: calc(50% - 7px); max-width: 200px; }
  .faq summary { font-size: 21px; }
}

/* Bild des Geistes am Ende jeder Station und der Auflösung */
.stationsende { display: grid; justify-items: center; gap: 10px; padding: 6px 0 0; }
.stationsende img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .3)); }
.stationsende p { margin: 0; font: 400 26px/1 var(--f-titel); letter-spacing: 1px; color: var(--titel); }
@media (max-width: 760px) { .stationsende img { width: 120px; height: 120px; } }


/* ---------------------------------------------- Weitere Rätseltouren ---- */
.weitere-touren { gap: 18px; }
.weitere-touren__lead { text-align: center; }
.tourkarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tourkarte {
  display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 18px; background: var(--lp-flaeche);
  border: 1px solid var(--lp-icon-rand); text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tourkarte:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); color: inherit; }
.tourkarte__bild { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.tourkarte__bild--leer { display: block; background: var(--lp-akzent); opacity: .35; }
.tourkarte__text { display: grid; gap: 2px; min-width: 0; }
.tourkarte__stadt { font: 600 13px/1.2 var(--f-info, system-ui, sans-serif); letter-spacing: 1px; text-transform: uppercase; color: var(--lp-label); }
.tourkarte__titel { font: 400 24px/1.05 var(--f-titel); letter-spacing: .5px; font-weight: 400; }
.tourkarte__satz { font-size: 19px; line-height: 1.25; }
@media (max-width: 760px) {
  .tourkarten { grid-template-columns: 1fr; }
  .tourkarte { grid-template-columns: 60px 1fr; }
  .tourkarte__bild { width: 60px; height: 60px; }
}
