/* AssistUK Coaster — Aussehen. Layout-Standard der Familie: Raster 10 × 6, Fußleiste 32 px,
   vier Farbwelten, Knöpfe mit Verweil-Punkt, nichts kleiner als eine Rasterzelle. */
:root {
  --fuss: 32px;
  --luecke: 8px;
  --radius: clamp(10px, 1.4vw, 18px);
  --schrift: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}
:root, :root[data-theme="dunkel"] {
  --bg: #0d1b3e; --bg2: #13264f; --karte: linear-gradient(140deg, #1d3566, #26407a);
  --text: #fff; --text-leise: rgba(255,255,255,0.72); --akzent: #ffc23d; --rand: rgba(255,255,255,0.12);
  --vorschau: radial-gradient(ellipse at 50% 40%, #9bd17c 0%, #78b85a 70%, #66a64c 100%);
}
:root[data-theme="hell"] {
  --bg: #eef2f8; --bg2: #ffffff; --karte: linear-gradient(140deg, #ffffff, #e6ecf5);
  --text: #14213d; --text-leise: rgba(20,33,61,0.7); --akzent: #0b63c9; --rand: rgba(0,0,0,0.12);
}
:root[data-theme="kontrast"] {
  --bg: #000; --bg2: #000; --karte: #111; --text: #fff; --text-leise: #ddd; --akzent: #ff0; --rand: #fff;
  --radius: 6px; --vorschau: #1a1a1a;
}
:root[data-theme="bunt"] {
  --bg: #2a0f4a; --bg2: #3b1666; --karte: linear-gradient(140deg, #5b2a8c 0%, #b23a7a 60%, #e0743a 100%);
  --text: #fff; --text-leise: rgba(255,255,255,0.78); --akzent: #4dd0ff; --rand: rgba(255,255,255,0.18);
}

html, body { margin: 0; padding: 0; width: 100%; height: 100%; height: 100dvh; overflow: hidden; }
body { background: var(--bg); color: var(--text); font-family: var(--schrift); -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; }

/* --- Bildschirm-Raster ---------------------------------------------------- */
.schirm, .ueberlagerung {
  position: fixed; left: 0; right: 0; top: 0; bottom: var(--fuss);
  display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: var(--luecke); padding: var(--luecke); box-sizing: border-box;
  padding-bottom: max(var(--luecke), env(safe-area-inset-bottom));
}
.ueberlagerung { z-index: 50; background: color-mix(in srgb, var(--bg) 94%, transparent); }

.titel {
  display: flex; align-items: center; justify-content: center; gap: 0.5em; text-align: center;
  font-weight: 800; font-size: clamp(18px, 3.4vh, 40px); line-height: 1.1;
}
.titel small { display: block; font-size: 0.5em; font-weight: 600; color: var(--text-leise); margin-left: 0.6em; }
.titel-symbol { height: 1.6em; width: auto; border-radius: 22%; }

/* --- Knöpfe (Maus, Touch, Verweilen) -------------------------------------- */
.knopf {
  position: relative; overflow: hidden; min-width: 0; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35em;
  border: 2px solid var(--rand); border-radius: var(--radius); background: var(--karte); color: var(--text);
  padding: 6px; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: rgba(255,255,255,0.1);
  font-weight: 700; font-size: clamp(13px, 2.1vh, 24px); text-align: center; line-height: 1.15;
  transition: transform 0.1s, border-color 0.15s;
}
.knopf svg { width: auto; height: 46%; max-width: 70%; flex: 0 1 auto; }
.knopf:hover, .knopf:focus-visible { border-color: var(--akzent); outline: none; }
.knopf:active { transform: scale(0.97); }
.knopf small { font-weight: 600; font-size: 0.72em; color: var(--text-leise); }
.knopf-haupt { background: linear-gradient(140deg, #2f9e5a, #3cb96b); }
:root[data-theme="kontrast"] .knopf-haupt { background: #111; border-color: var(--akzent); }
.knopf.gewaehlt { border-color: var(--akzent); box-shadow: inset 0 0 0 3px var(--akzent); }
.knopf[hidden] { display: none; }
.dwell-dot { position: absolute; z-index: 10; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none; width: 0; height: 0; }

/* Start: drei große Kacheln */
.kachel { font-size: clamp(18px, 3.2vh, 38px); }
.kachel svg { height: 42%; }
/* Bilder von Gemini: weiße Karte mit runden Ecken (weißer Grund der Bilder) */
.kachel-bild { width: min(80%, 34vh); height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 18px; background: #fff;
  padding: 4px; box-shadow: 0 4px 14px rgba(0,0,0,0.25); }
.bahnliste.vorlagen .bahnkarte { justify-content: center; }
.vorlage-bild { width: min(88%, 38vh); height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 14px; background: #fff;
  padding: 3px; margin-bottom: 0.3em; }
.abzeichen-bild { width: 100%; max-width: 64px; aspect-ratio: 1; border-radius: 10px; background: #fff; filter: grayscale(1); }
.abzeichen.hat .abzeichen-bild { filter: none; box-shadow: 0 0 0 2px #ffc23d; }
.medaille-bild { height: 2.2em; width: auto; border-radius: 8px; background: #fff; }
.kachel-neu { background: linear-gradient(140deg, #e2483d, #f08a24); }
.kachel-grandloop { background: linear-gradient(140deg, #8d5bd8, #2c6cc9); }
.kachel-meine { background: linear-gradient(140deg, #16a3b8, #43a84a); }
:root[data-theme="kontrast"] .kachel { background: #111; }
.marke-zeile { display: flex; align-items: center; justify-content: center; gap: 0.8em; color: var(--text-leise);
  font-size: clamp(13px, 2vh, 22px); font-weight: 600; }
.marke-logo { height: 70%; max-height: 64px; width: auto; }
:root[data-theme="hell"] .marke-logo, :root[data-theme="hell"] .fuss-logo, :root[data-theme="hell"] .info-logo { filter: invert(1) hue-rotate(180deg); }

/* --- Bauen ---------------------------------------------------------------- */
.vorschau { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--vorschau, #78b85a);
  border: 2px solid var(--rand); }
.vorschau canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vorschau canvas.vorschau-profil { inset: auto 8px 8px 8px; width: calc(100% - 16px); height: 64px; border-radius: 10px;
  background: rgba(13,27,62,0.6); pointer-events: none; }
.vorschau-hoehe { position: absolute; left: 10px; top: 8px; padding: 4px 10px; border-radius: 999px;
  background: rgba(13,27,62,0.75); color: #fff; font-weight: 700; font-size: clamp(12px, 1.8vh, 20px); }
.vorschau-legende { position: absolute; right: 10px; top: 8px; display: flex; flex-direction: column; gap: 4px; padding: 6px 10px;
  border-radius: 12px; background: rgba(13,27,62,0.75); color: #fff; font-weight: 700; font-size: clamp(11px, 1.6vh, 17px); pointer-events: none; }
.vorschau-legende span { display: flex; align-items: center; gap: 8px; }
.leg-bahn { display: inline-block; width: 28px; height: 7px; border-radius: 4px; background: var(--bahnfarbe, #e2483d); box-shadow: 0 0 0 2px #fff; }
.leg-heim { display: inline-block; width: 28px; height: 0; border-top: 4px dotted rgba(255,255,255,0.9); }
.karten { display: grid; gap: var(--luecke); min-height: 0; }
.karten-1, .karten-2 { grid-template-columns: 1fr; grid-auto-rows: minmax(0, 1fr); }
.karten-2 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.karten-3, .karten-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.karten-5, .karten-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
.karte { font-size: clamp(14px, 2.4vh, 28px); border-color: var(--bahnfarbe, var(--rand)); }
.karte svg { height: 52%; color: var(--bahnfarbe, currentColor); }
.modulbild { display: block; width: auto; height: 68%; max-width: 96%; object-fit: contain; min-height: 0; }
.ware .modulbild { height: 58%; }
.karte-tipp { box-shadow: 0 0 0 3px var(--akzent); }
.karte-marke { position: absolute; top: 6px; right: 8px; font-style: normal; font-size: 0.62em; padding: 2px 8px;
  border-radius: 999px; background: var(--akzent); color: #14213d; }
.karte-passt-nicht { opacity: 0.8; }
.karte-warn { position: absolute; top: 6px; left: 8px; width: 1.4em; height: 1.4em; border-radius: 50%;
  background: #f08a24; color: #fff; font-style: normal; display: grid; place-items: center; }
.karten-voll { display: grid; place-items: center; text-align: center; padding: 1em; font-size: clamp(16px, 2.6vh, 28px);
  font-weight: 700; border: 2px dashed var(--rand); border-radius: var(--radius); }
/* Bauen aus der Fahrt: die Bühne liegt hinter dem ganzen Bildschirm, Knöpfe und Karten darüber */
.bau-buehne { position: absolute; inset: 0; z-index: 0; background: #9fd0f0; overflow: hidden; }
.bau-buehne > * { position: absolute; inset: 0; }
.schirm-bauen > :not(.bau-buehne) { position: relative; z-index: 1; }
.schirm-bauen .karten { padding: 8px; border-radius: var(--radius); background: rgba(13,27,62,0.55); }
.schirm-bauen .karten-voll { color: #fff; background: rgba(13,27,62,0.6); border-color: rgba(255,255,255,0.6); }
.schirm-bauen .karte { background: rgba(20,33,61,0.86); color: #fff; }
.schirm-bauen .titel-knopf { background: rgba(13,27,62,0.72); color: #fff; }
.schirm-bauen .titel-knopf small { color: rgba(255,255,255,0.8); }
.schirm-bauen .hinweis { color: #fff; background: rgba(13,27,62,0.72); border-radius: var(--radius); }
.schirm-bauen .hinweis:empty { background: none; }
.knopf-zuzweit { flex-direction: row; gap: 0.5em; font-size: clamp(13px, 2vh, 20px); background: rgba(20,33,61,0.86); color: #fff; }
.knopf-zuzweit svg { height: 1.6em; width: auto; }
.bau-dran { display: inline-flex; align-items: center; gap: 0.4em; }
.bau-dran[hidden] { display: none; }
.dran-punkt { display: inline-block; width: 0.9em; height: 0.9em; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.bau-info { align-self: start; justify-self: start; display: flex; gap: 0.6em; padding: 6px 14px; border-radius: 999px;
  background: rgba(13,27,62,0.75); color: #fff; font-weight: 700; font-size: clamp(13px, 2vh, 22px); pointer-events: none; }
.hinweis { display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 0.6em;
  font-size: clamp(13px, 2.1vh, 24px); font-weight: 600; color: var(--text-leise); pointer-events: none; }

/* --- Meine Bahnen --------------------------------------------------------- */
.bahnliste.vorlagen { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); }
.vorlage-leer { justify-content: center; }
.bahnliste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--luecke); min-height: 0; }
.bahnkarte { border-color: var(--bahnfarbe); justify-content: flex-end; }
.bahnkarte canvas { background: var(--vorschau, #78b85a); border-radius: calc(var(--radius) - 4px); }
.bahnkarte canvas { position: absolute; inset: 6px 6px 3.4em 6px; width: calc(100% - 12px); height: calc(100% - 3.4em - 6px); }
.leer { grid-column: 1 / -1; align-self: center; text-align: center; font-size: clamp(16px, 2.8vh, 30px); color: var(--text-leise); }

/* --- Info, Einstellungen, Fragen ------------------------------------------ */
.info-text { overflow-y: auto; padding: 0.4em 1.2em; background: var(--bg2); border-radius: var(--radius);
  border: 2px solid var(--rand); font-size: clamp(15px, 2.2vh, 22px); line-height: 1.45; }
.info-text h2 { font-size: 1.15em; margin: 0.9em 0 0.3em; }
.info-text a { color: var(--akzent); }
.info-logo { float: right; height: 64px; margin: 0.6em 0 0.6em 1em; }
.einst-liste { display: grid; grid-auto-rows: minmax(0, 1fr); gap: 6px; min-height: 0; }
.einst-zeile { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: var(--luecke); min-height: 0; }
.einst-wort { display: flex; align-items: center; font-weight: 700; font-size: clamp(13px, 2vh, 22px); }
.einst-werte { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; min-height: 0; }
.farbpunkt { display: inline-block; width: 1.8em; height: 1.8em; border-radius: 50%; border: 2px solid rgba(255,255,255,0.7); }
.einst-wert { font-size: clamp(11px, 1.7vh, 19px); }
.frage-text { display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: clamp(20px, 4vh, 44px); font-weight: 800; padding: 0 1em; }
.fortschritt { align-self: center; height: 22px; border-radius: 11px; background: var(--bg2); border: 2px solid var(--rand); overflow: hidden; }
.fortschritt i { display: block; height: 100%; width: 0; background: var(--akzent); transition: width 0.2s; }
.farbkarte .farbfleck { width: 60%; height: 42%; border-radius: 12px; background: var(--farbe); border: 3px solid rgba(255,255,255,0.8); }

/* Halteknopf (Einstellungen für Begleitpersonen): Balken füllt sich beim Gedrückthalten */
.halteknopf { touch-action: none; }
.halte-balken { position: absolute; left: 0; bottom: 0; height: 8px; width: 100%; background: var(--akzent);
  transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* --- Belohnung, Sammlung, Name --------------------------------------------- */
.titel-knopf { flex-direction: row; gap: 0.5em; font-size: clamp(18px, 3.2vh, 36px); font-weight: 800; background: transparent; border-style: dashed; }
.titel-knopf svg { height: 1.1em; max-width: none; opacity: 0.8; }
.titel-knopf small { font-size: 0.48em; color: var(--text-leise); }
.knopf-sammlung { flex-direction: row; gap: 0.4em; }
.knopf-sammlung svg { height: 1.4em; color: #ffc23d; max-width: none; }
.karten-sterne { color: #ffc23d; font-weight: 800; white-space: nowrap; }
.karten-sterne svg { height: 1em; width: auto; vertical-align: -0.12em; }
.rundenkarte { background: rgba(13,27,62,0.95); z-index: 40; position: absolute; bottom: 0; color: #fff; }
.rundenkarte .knopf:not(.knopf-haupt) { background: #22325a; color: #fff; }
:root[data-theme="kontrast"] .rundenkarte { background: rgba(0,0,0,0.92); }
.runde-muenzen { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2em; color: #fff; }
.runde-muenzen svg { color: #ffc23d; height: 45%; width: auto; }
.runde-muenzen strong { font-size: clamp(22px, 4.4vh, 48px); }
.runde-muenzen small { font-size: clamp(14px, 2.2vh, 24px); color: rgba(255,255,255,0.75); }
.runde-sterne { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); align-items: center; color: #fff; }
.sterne-zeile { display: flex; align-items: center; justify-content: space-between; gap: 1em; font-size: clamp(16px, 2.8vh, 32px); font-weight: 700; padding: 0 1em; }
.sterne { display: flex; gap: 0.3em; }
.stern { color: rgba(255,255,255,0.28); display: inline-flex; }
.stern svg { height: clamp(28px, 5.5vh, 56px); width: auto; }
.stern.an { color: #ffc23d; }
.stern.an svg { fill: #ffc23d; }
.runde-rekord { display: flex; align-items: center; justify-content: center; gap: 0.5em; color: #fff; font-weight: 800;
  font-size: clamp(15px, 2.6vh, 28px); }
.runde-rekord svg { color: #ffc23d; height: 1.2em; width: auto; }
.runde-rekord .trenner { display: inline-block; width: 1.4em; }
.wildmeter { display: inline-flex; gap: 4px; margin: 0 0.4em; }
.wildmeter i { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,0.25); border: 2px solid rgba(255,255,255,0.6); }
.wildmeter i.an { background: #ffc23d; }
.wildmeter i.an.heiss { background: #9cd63a; }
.runde-neu span { display: inline-flex; align-items: center; gap: 0.35em; }
.rundenkarte .runde-neu { overflow: hidden; align-content: start; }
.halte-hinweis { position: fixed; z-index: 90; max-width: 60vw; padding: 10px 16px; border-radius: 12px; background: #14213d; color: #fff;
  border: 2px solid var(--akzent); font-weight: 700; font-size: clamp(14px, 2vh, 20px); pointer-events: none; }
/* Info: der Link als großes Ziel für die Augen (QA: war nur 23 px hoch) */
.info-text a { display: inline-block; padding: 16px 10px; margin: -16px -10px; }
/* iPad hochkant (QA 09.10.2026): nichts abschneiden */
.karte span, .knopf span, .ware span { overflow-wrap: anywhere; hyphens: auto; text-align: center; }
@media (orientation: portrait) {
  .karte { font-size: clamp(12px, 1.7vh, 22px); }
  .titel-knopf small { display: none; }
  .knopf { font-size: clamp(12px, 1.6vh, 20px); }
  .auftrag-knopf { font-size: clamp(11px, 1.5vh, 18px); }
  .auftrag-knopf small { display: none; }
  .ware span { font-size: 0.85em; }
}
.runde-neu .medaille { color: #ffd23f; font-size: 1.15em; }
.karte-wunder { background: linear-gradient(140deg, #8d5bd8, #dd4f98) !important; }
.karte-wunder svg { color: #fff; height: 48%; }
.auftrag-knopf { flex-direction: row; gap: 0.6em; font-size: clamp(13px, 2vh, 22px); }
.auftrag-knopf svg { height: 1.6em; width: auto; flex: none; }
.auftrag-knopf small { white-space: nowrap; }
.runde-neu { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4em 1.2em; color: #7fe0a0;
  font-weight: 700; font-size: clamp(14px, 2.3vh, 26px); text-align: center; }
.farbkarte.gesperrt { opacity: 0.75; }
.farbkarte.gesperrt .farbfleck { display: grid; place-items: center; filter: saturate(0.6); }
.namenskarte svg { color: var(--farbe); height: 50%; }
.sammlung-teil { min-height: 0; overflow-y: auto; background: var(--bg2); border: 2px solid var(--rand); border-radius: var(--radius); padding: 0.4em 0.7em; }
.sammlung-teil h3 { margin: 0.1em 0 0.4em; font-size: clamp(15px, 2.3vh, 24px); }
.waren { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(70px, 13vh, 140px); gap: 8px; }
.ware .farbfleck { width: 50%; height: 34%; border-radius: 10px; background: var(--farbe); border: 3px solid rgba(255,255,255,0.8); }
.ware svg { height: 40%; }
.ware small svg { height: 1em; width: auto; vertical-align: -0.12em; color: #ffc23d; }
.ware.frei { border-color: #43a84a; }
.enten-liste { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin-bottom: 0.4em; }
.ente { display: grid; place-items: center; color: rgba(255,255,255,0.18); }
.ente.hat { color: var(--farbe); }
.ente svg { width: 100%; height: auto; max-height: 36px; }
.abzeichen-liste { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.abzeichen { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font-size: clamp(9px, 1.3vh, 13px);
  color: var(--text-leise); opacity: 0.35; }
.abzeichen svg { height: clamp(22px, 4vh, 40px); width: auto; }
.abzeichen.hat { opacity: 1; color: #ffc23d; }
.auftrag-liste { display: grid; gap: 4px; }
.auftrag { display: flex; align-items: center; gap: 0.6em; font-size: clamp(12px, 1.8vh, 18px); }
.auftrag svg { flex: 0 0 auto; height: 1.4em; width: auto; }
.auftrag span { flex: 1; }
.auftrag small { color: #ffc23d; font-weight: 700; }
.auftrag.erledigt { color: #7fe0a0; }
.park-stufe { text-align: center; color: var(--text-leise); font-weight: 700; font-size: clamp(12px, 1.8vh, 18px); padding-bottom: 0.3em; pointer-events: none; }
.konto { display: flex; align-items: center; justify-content: center; gap: 0.4em; font-size: clamp(20px, 3.6vh, 40px); }
.konto svg { color: #ffc23d; height: 1.3em; width: auto; }

.foto-toast { position: absolute; z-index: 35; right: var(--luecke); top: var(--luecke); width: min(28vw, 320px); padding: 6px;
  border-radius: 12px; background: rgba(255,255,255,0.95); color: #14213d; font-weight: 800; text-align: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35); transition: opacity 0.8s, transform 0.8s; }
.foto-toast img { display: block; width: 100%; border-radius: 8px; }
.foto-toast.weg { opacity: 0; transform: translateY(-12px); }
/* Foto-Knopf (12.10.2026): Sucherrahmen — vier weiße Ecken, weich ein und aus (kein Blitz) */
.foto-sucher { position: absolute; z-index: 25; inset: 12% 16%; pointer-events: none; opacity: 0; transition: opacity 0.3s, inset 0.5s ease-out; }
.foto-sucher.an { opacity: 1; inset: 17% 22%; }
.foto-sucher i { position: absolute; width: clamp(40px, 7vmin, 72px); height: clamp(40px, 7vmin, 72px); border: 6px solid #fff;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.55)); }
.foto-sucher i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.foto-sucher i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.foto-sucher i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.foto-sucher i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .foto-sucher, .foto-sucher.an { transition: opacity 0.4s; inset: 17% 22%; } }
.fotoliste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--luecke); min-height: 0; }
.fotoliste img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); border: 3px solid #fff; }

/* --- Fahren: Bühne über allem, nur „Aussteigen" und die Fußleiste ---------- */
.schirm-fahren { position: fixed; left: 0; right: 0; top: 0; bottom: var(--fuss); background: #7fb6ec; }
.schirm-fahren .buehne { position: absolute; inset: 0; }
.fahren-laden { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 0.7em 1.2em;
  border-radius: 14px; background: rgba(13,27,62,0.8); color: #fff; font-weight: 700; font-size: clamp(16px, 2.6vh, 28px); }
.fahren-laden[hidden] { display: none; }
.tacho { position: absolute; z-index: 25; right: var(--luecke); top: var(--luecke); display: flex; gap: 6px; pointer-events: none; }
.tacho[hidden] { display: none; }
.tacho > div { min-width: 92px; padding: 6px 10px; border-radius: 14px; background: rgba(13,27,62,0.78); color: #fff; text-align: center; }
.tacho b { display: block; font-size: clamp(24px, 4.6vh, 46px); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.tacho small { display: block; font-size: clamp(11px, 1.6vh, 15px); font-weight: 700; opacity: 0.8; }
.knopf-aussteigen { color: #fff; background: rgba(20,33,61,0.86); }
/* Mitmachen beim Fahren: drei große Knöpfe links (Augensteuerung: je ≥ 96 px) */
/* „Sag was!" nach der Fahrt */
.knopf-sagwas { flex-direction: row; gap: 0.6em; }
.knopf-sagwas img { height: 70%; max-height: 72px; aspect-ratio: 1; border-radius: 10px; background: #fff; }
.sagwas { z-index: 60; background: rgba(13,27,62,0.97); color: #fff; }
.sag-karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--luecke); min-height: 0; }
.sag-karte { font-size: clamp(15px, 2.4vh, 28px); color: #fff; background: #22325a; }
.sag-karte img { height: 62%; max-width: 90%; aspect-ratio: 1; object-fit: contain; border-radius: 14px; background: #fff; }
.sag-karte.gewaehlt { box-shadow: inset 0 0 0 4px #ffc23d; }
@media (orientation: portrait) { .sag-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); } }
/* „Los!" bei Signal, Schranke, Start-Ampel: groß unten in der Mitte */
.knopf-los { position: absolute; z-index: 31; left: 50%; bottom: var(--luecke); transform: translateX(-50%);
  width: clamp(180px, 26vw, 320px); height: clamp(96px, 14vh, 140px); font-size: clamp(18px, 3vh, 30px); }
.knopf-los[hidden] { display: none; }
.mitmach { position: absolute; z-index: 30; left: var(--luecke); top: 150px; display: flex; flex-direction: column; gap: 10px; }
.mitmach .knopf { width: clamp(96px, 11vh, 130px); height: clamp(96px, 11vh, 130px); color: #fff; background: rgba(20,33,61,0.8);
  font-size: clamp(12px, 1.6vh, 17px); }
.mitmach .knopf svg { height: 46%; width: auto; }
@media (max-height: 640px) { .mitmach { top: 120px; } .mitmach .knopf { width: 84px; height: 84px; } }
.knopf-aussteigen { position: absolute; z-index: 30; left: var(--luecke); bottom: var(--luecke);
  width: calc((100vw - 11 * var(--luecke)) / 10 * 2 + var(--luecke)); height: calc((100dvh - var(--fuss) - 7 * var(--luecke)) / 6);
  background: rgba(13,27,62,0.82); }

/* --- Fußleiste mit AssistUK ------------------------------------------------ */
.fuss { position: fixed; left: 0; right: 0; bottom: 0; height: var(--fuss); z-index: 100;
  display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 10px;
  background: rgba(0,0,0,0.8); color: rgba(255,255,255,0.75); font-size: 12px; white-space: nowrap; overflow: hidden; }
.fuss a { color: inherit; text-decoration: none; }
.fuss a:hover { color: #fff; }
.fuss-logo { height: 18px; width: auto; }
.fuss-privat { color: #7fe0a0; }
.fuss-version { opacity: 0.6; }
@media (max-width: 700px) { .fuss-privat { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
