/* Fahrzeuganzeige als Sim-Overlay (Marc, 26.09.): Bremse links, Lenkraeder
   mitte, Gas rechts. Fahrer 1 = Cyan, Fahrer 2 = Magenta.
   Markup: js/components/_tele_kino_anzeige.js + _tele_kino_lenkrad.js. */
/* Schritt 9 (29.09., Marc, Abnahme): Pult wieder rechteckig mit GROESSEREN
   Balken, neben dem Kino (rechte Spalte) statt darunter — der Platzgewinn
   kommt aus dem gestrichenen Tempo/Lenkung-Diagramm + Normal/Erweitert.
   Fuellfarbe jetzt die FAHRERFARBE (cyan/magenta, wie Linien/Punkte), nicht
   mehr Gas-gruen/Brems-rot — Gas/Bremse bleiben ueber Beschriftung + Symbol
   unterscheidbar (`_tele_kino_anzeige.js`, PEDALE-Namen). */
.tk-anzeige { margin-top: 0; position: relative; }
.tk-pult { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-2);
  width: 100%; padding: var(--space-2) var(--space-3); border: 1px solid var(--line);
  border-radius: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.tk-pult__name { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px;
  color: var(--text-dim); letter-spacing: .06em; white-space: nowrap; align-self: stretch;
  display: flex; align-items: center; justify-content: center; text-transform: uppercase; }

/* Pedale: Name (senkrecht) + je Fahrer eine Saeule MIT Wert daneben. */
.tk-pedal { display: flex; flex-direction: row; align-items: stretch; gap: 6px; }
.tk-pedal__paar { display: flex; gap: var(--space-3); flex: 1; min-height: 120px; }
.tk-pedal__slot { display: flex; flex-direction: row; align-items: center; gap: 6px; width: auto; }
/* Saeule: abgerundete Roehre mit innerem Schatten (Tiefe) + Skalenstrichen
   bei 25/50/75 % — vorher nackter Balken, „wirkt billig" (Marc, 29.09.). */
.tk-saeule { position: relative; align-self: stretch; width: 26px; border: 2px solid var(--text-faint);
  border-radius: 8px; background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .55); overflow: hidden; }
.tk-pedal__slot--du .tk-saeule { border-color: var(--cyan); }
.tk-pedal__slot--ref .tk-saeule { border-color: var(--magenta); }
.tk-saeule__strich { position: absolute; left: 0; right: 0; height: 1px;
  background: rgba(255, 255, 255, .18); pointer-events: none; }
.tk-saeule__fuell { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-radius: 5px 5px 0 0; }
.tk-saeule__fuell--du { background: linear-gradient(180deg, #7ff6ff, var(--cyan));
  box-shadow: 0 0 12px 1px var(--cyan), inset 0 1px 0 rgba(255, 255, 255, .5); }
.tk-saeule__fuell--ref { background: linear-gradient(180deg, #ff8fd0, var(--magenta));
  box-shadow: 0 0 12px 1px var(--magenta), inset 0 1px 0 rgba(255, 255, 255, .5); }
.tk-pedal__wert { font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--text-dim); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .tk-saeule__fuell { transition: height .06s linear; }
}

/* Mitte: je Fahrer eine Zeile — Name oben, km/h links, Rad, Lenkwert rechts. */
.tk-mitte { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tk-mitte > .tk-pult__name { display: none; }
.tk-radzeile { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "kopf kopf kopf" "tempo rad lenk"; align-items: center; column-gap: 6px; }
.tk-radzeile__kopf { grid-area: kopf; display: flex; justify-content: center; align-items: center;
  gap: 5px; min-width: 0; font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); }
.tk-radzeile__kopf span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-punkt { width: 7px; height: 7px; border-radius: 99px; flex-shrink: 0; }
.tk-radzeile--du .tk-punkt { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.tk-radzeile--ref .tk-punkt { background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }
.tk-radzeile__tempo { grid-area: tempo; justify-self: end; text-align: right; font-family: var(--font-mono); }
.tk-radzeile__tempo b { display: block; font-size: 1rem; line-height: 1; color: var(--text); }
.tk-radzeile__tempo span { font-size: 9px; color: var(--text-faint); }
.tk-radzeile__lenk { grid-area: lenk; justify-self: start; font-family: var(--font-mono);
  font-size: 11px; color: var(--text-dim); white-space: nowrap; }

.tk-rad { grid-area: rad; display: block; width: 42px; height: 42px; overflow: visible; }
.tk-rad--du { filter: drop-shadow(0 0 5px rgba(0, 229, 255, .55)); }
.tk-rad--ref { filter: drop-shadow(0 0 5px rgba(255, 46, 151, .55)); }
.tk-rad--du .tk-rad__kante { stroke: var(--cyan); }
.tk-rad--ref .tk-rad__kante { stroke: var(--magenta); }
.tk-rad--du .tk-rad__marke { fill: var(--cyan); }
.tk-rad--ref .tk-rad__marke { fill: var(--magenta); }
.tk-rad__gang { font-family: var(--font-mono); font-size: 22px; font-weight: 700; fill: var(--text);
  text-anchor: middle; dominant-baseline: middle; }

/* ⓘ-Hinweis zur Lenkung (Marc/Plan, 28.09.) statt eines staendigen Fliesstexts —
   CSS-only Hover/Fokus, kein JS, keine dritte Bibliothek. */
/* Abnahme 29.09. (Marc, Punkt 3): als eigene Zeile kostete der Hinweis bei
   1440x900 Hoehe, die dort knapp ist — jetzt ein kleines Symbol OBEN RECHTS
   auf dem Pult, aus dem Layoutfluss heraus (0 Hoehe). */
.tk-info { position: absolute; top: -4px; right: 2px; display: block; width: fit-content; margin: 0;
  font-size: 11px; color: var(--text-faint); cursor: help; z-index: 2; }
/* Rechtsbuendig: das Symbol sitzt immer oben rechts — mittig geoeffnet ragte der
   (unsichtbare) Text 38 px uebers Fenster und machte die Seite quer scrollbar. */
.tk-info__text { position: absolute; bottom: calc(100% + 6px); right: 0;
  width: max(220px, 60vw); max-width: 280px; padding: var(--space-2); border-radius: 8px;
  background: var(--bg-1, #10131c); border: 1px solid var(--line); color: var(--text-dim);
  font-size: 11px; line-height: 1.4; text-align: left; opacity: 0; pointer-events: none;
  transition: opacity .12s; z-index: 5; }
.tk-info:hover .tk-info__text, .tk-info:focus-visible .tk-info__text,
.tk-info:focus .tk-info__text { opacity: 1; }

/* Schritt 9 (29.09., Marc): Pult wieder rechteckig in der rechten Spalte,
   ueber den Diagrammen — volle Spaltenbreite (`_tele_kino_bild.js`,
   `[data-role="rechts"]`). Ab 1100px die beiden Fahrerzeilen NEBENEINANDER
   (kompakte Startseiten-Form, `.tk-anzeige` ohne Modifier). */
@media (min-width: 1100px) {
  .tk-mitte { flex-direction: row; gap: var(--space-3); }
  .tk-radzeile { min-width: 0; flex: 1 1 0; }
}

/* Nachbesserung Gegencheck (29.09., Coordinator): Marcs Lieblingsform — GROSSES
   rechteckiges Pult nur in der Kurvenansicht (`--gross`, gesetzt in
   `_tele_kurvenkino.js`). Zwei Fahrerzeilen bleiben UNTEREINANDER (nicht
   nebeneinander wie in der kompakten Startseiten-Form — das quetschte bei
   1440x900 Rad/km-h/Lenkwinkel ineinander, „3° li." ueberlappte „257").
   Groessere Balken: >=190px ab 1100px, >=220px ab 1600px (deckt 1920x950 UND
   1440x900 mit Reserve zu den Fertig-wenn-Vorgaben 160/140). */
.tk-anzeige--gross .tk-pedal__paar { min-height: 190px; }
.tk-anzeige--gross .tk-mitte { flex-direction: column; gap: var(--space-2); }
.tk-anzeige--gross .tk-radzeile { min-width: 0; }
.tk-anzeige--gross .tk-rad { width: 52px; height: 52px; }
.tk-anzeige--gross .tk-radzeile__tempo b { font-size: 1.15rem; }
@media (min-width: 1600px) {
  .tk-anzeige--gross .tk-pedal__paar { min-height: 220px; }
  .tk-anzeige--gross .tk-rad { width: 60px; height: 60px; }
}

/* Handy: gleicher Aufbau, nur kleiner — 390 px ohne waagerechtes Scrollen. */
@media (max-width: 560px) {
  .tk-pult { gap: 6px; padding: 6px var(--space-2); }
  .tk-pedal__paar { gap: 2px; min-height: 70px; }
  .tk-pedal__slot { width: 30px; }
  .tk-saeule { width: 18px; }
  .tk-pedal__wert { font-size: 10px; }
  /* Die Karte ist am Handy nur ~270 px breit: km/h und Lenkwert UNTER das Rad,
     sonst ragen sie in die Pedalsaeulen (gemessen 26.09.). */
  .tk-radzeile { grid-template-columns: auto auto; justify-content: center; column-gap: 6px;
    grid-template-areas: "kopf kopf" "rad rad" "tempo lenk"; }
  .tk-rad { justify-self: center; width: 40px; height: 40px; }
  .tk-radzeile__tempo b { display: inline; font-size: .85rem; }
  .tk-radzeile__tempo span { margin-left: 3px; }
  .tk-radzeile__lenk { font-size: 10px; }
  .tk-info__text { width: 80vw; }
}
