/* Kart-Vault.
   Der Entwurf kommt aus dem Zweck: Das ist ein Klemmbrett für die Box, kein Prospekt.
   Also dichte Tabellen, Ziffern in Festbreite zum Vergleichen, große Tippflächen für Handschuhe,
   hoher Kontrast für Sonne – und eine Druckansicht, die auf Papier funktioniert.

   Farben: Petrol trägt die Struktur, Rot ist das Signal („hier weiter"), Grün und Rot zeigen
   schneller und langsamer. Deshalb ist das Signal kein Rot wie die Zeitangaben, sondern etwas
   wärmer – sonst würde man beides verwechseln. */

:root {
  --papier: #f2f0eb;      /* Untergrund, warmes Grau wie ein Formular */
  --tafel: #ffffff;
  --tafel-2: #f7f5f1;
  --rand: #ddd8cf;
  --rand-2: #c6bfb2;
  --tinte: #16201f;
  --text: #3d4845;
  --leise: #70796f;

  --struktur: #0e6b66;    /* Petrol: Überschriften, Linien, Verweise */
  --struktur-zart: rgba(14, 107, 102, .09);
  --signal: #c03a1d;      /* „hier weiter": Hauptknopf, laufender Run */
  --signal-ink: #ffffff;
  --signal-zart: rgba(192, 58, 29, .1);

  --schnell: #15803d;
  --langsam: #b4242b;
  --schnell-zart: rgba(21, 128, 61, .1);
  --langsam-zart: rgba(180, 36, 43, .09);
  --achtung: #b06c00;
  --achtung-zart: rgba(176, 108, 0, .12);

  --schatten: 0 1px 2px rgba(22, 32, 31, .05), 0 6px 18px rgba(22, 32, 31, .05);
  --menue-schatten: 0 0 0 1px var(--rand), 0 18px 44px rgba(22, 32, 31, .18);
  --tor-schleier: rgba(13, 17, 20, .22);  /* über dem Foto der Anmeldeseite */

  --schrift: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", ui-monospace, Consolas, Menlo, monospace;
  --r: 12px;
  --tipp: 46px;           /* kleinste Tippfläche – mit Handschuhen bedienbar */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-modus="hell"]) {
    --papier: #0d1114;
    --tafel: #141a1e;
    --tafel-2: #1a2227;
    --rand: #242f35;
    --rand-2: #35444c;
    --tinte: #e9efee;
    --text: #b4c0bd;
    --leise: #7d8a88;

    --struktur: #45c7bd;
    --struktur-zart: rgba(69, 199, 189, .13);
    --signal: #ff6a42;
    --signal-ink: #1b0a04;
    --signal-zart: rgba(255, 106, 66, .14);

    --schnell: #45d183;
    --langsam: #ff6f6f;
    --schnell-zart: rgba(69, 209, 131, .13);
    --langsam-zart: rgba(255, 111, 111, .13);
    --achtung: #f0b429;
    --achtung-zart: rgba(240, 180, 41, .14);

    --schatten: inset 0 1px 0 rgba(255, 255, 255, .03);
    --menue-schatten: 0 0 0 1px var(--rand-2), 0 18px 44px rgba(0, 0, 0, .55);
    --tor-schleier: rgba(13, 17, 20, .58);
  }
}

:root[data-modus="dunkel"] {
  --papier: #0d1114;
  --tafel: #141a1e;
  --tafel-2: #1a2227;
  --rand: #242f35;
  --rand-2: #35444c;
  --tinte: #e9efee;
  --text: #b4c0bd;
  --leise: #7d8a88;
  --struktur: #45c7bd;
  --struktur-zart: rgba(69, 199, 189, .13);
  --signal: #ff6a42;
  --signal-ink: #1b0a04;
  --signal-zart: rgba(255, 106, 66, .14);
  --schnell: #45d183;
  --langsam: #ff6f6f;
  --schnell-zart: rgba(69, 209, 131, .13);
  --langsam-zart: rgba(255, 111, 111, .13);
  --achtung: #f0b429;
  --achtung-zart: rgba(240, 180, 41, .14);
  --schatten: inset 0 1px 0 rgba(255, 255, 255, .03);
  --menue-schatten: 0 0 0 1px var(--rand-2), 0 18px 44px rgba(0, 0, 0, .55);
  --tor-schleier: rgba(13, 17, 20, .58);
}

/* ------------------------------------------------------------------ Grundlage */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font: 400 15px/1.5 var(--schrift);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--struktur); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.12rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .7em; }
small { font-size: .82rem; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------------------------ Kopfleiste */
.kopf {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px max(12px, env(safe-area-inset-left)) 8px max(12px, env(safe-area-inset-right));
  background: var(--tafel); border-bottom: 1px solid var(--rand);
  position: sticky; top: 0; z-index: 20;
}
.marke { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--tinte); text-decoration: none; }
/* Der Hahn ist freigestellt und hochkant: Die Höhe bestimmt, die Breite folgt. Seine schwarze
   Außenlinie geht im Dunkeln im Grund auf – das ist gewollt, Rot und Gold tragen ihn dort. */
.marke-zeichen { flex: none; height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav-punkt {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--tipp);
  padding: 0 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-weight: 550;
  cursor: pointer;
}
.nav-punkt:hover { background: var(--struktur-zart); color: var(--struktur); }
.nav-punkt[aria-current] { background: var(--struktur-zart); color: var(--struktur); }
.menue { position: relative; }
.menue > summary { list-style: none; }
.menue > summary::-webkit-details-marker { display: none; }
.menue-liste {
  position: absolute; right: 0; top: calc(100% + 4px); min-width: 250px; z-index: 30;
  background: var(--tafel); border-radius: var(--r); box-shadow: var(--menue-schatten); padding: 6px;
}
.menue-liste a, .menue-liste button {
  display: block; width: 100%; text-align: left; min-height: 42px; line-height: 42px;
  padding: 0 10px; border-radius: 8px; color: var(--text); text-decoration: none;
  background: none; border: 0; font: inherit; cursor: pointer;
}
.menue-liste a:hover, .menue-liste button:hover { background: var(--struktur-zart); color: var(--struktur); }
.menue-liste .wer { padding: 6px 10px; margin: 0 0 4px; border-bottom: 1px solid var(--rand); }
.menue-liste .wer span { display: block; color: var(--leise); font-size: .82rem; }
.modus { display: flex; gap: 4px; margin: 4px 0; border-top: 1px solid var(--rand); padding-top: 6px; }
.modus a { text-align: center; line-height: 36px; min-height: 36px; flex: 1; font-size: .85rem; }
.modus a[aria-current] { background: var(--struktur-zart); color: var(--struktur); }
.avatar {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--signal); color: var(--signal-ink); font-weight: 700; font-size: .82rem;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ Seitengerüst */
.seite {
  max-width: 1180px; margin: 0 auto;
  padding: 18px max(14px, env(safe-area-inset-left)) 64px max(14px, env(safe-area-inset-right));
}
.seitenkopf { margin-bottom: 14px; }
.seitenkopf .unterzeile { color: var(--leise); margin: 0; }
.seitenkopf .unterzeile:empty { display: none; }
.kopfreihe { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.tafel {
  background: var(--tafel); border: 1px solid var(--rand); border-radius: var(--r);
  padding: 14px; margin-bottom: 14px; box-shadow: var(--schatten);
}
.tafel > h2:first-child, .tafel > h3:first-child { margin-top: 0; }
/* Die Tafeln des Bogens tragen links eine Linie – wie die Spalten eines Formulars */
.tafel-bogen { border-left: 3px solid var(--struktur); }
.tafel-signal { border-left: 3px solid var(--signal); }
/* min(…, 100%): Auf dem Handy (375 px) wäre eine Spalte von 420 px breiter als der Schirm – die
   Seite zoomt dann heraus und ragt rechts über. */
/* Lange Adressen in Quellenangaben dürfen überall umbrechen – sonst wird die Seite so breit wie der Link */
.tafel a, .tafel small, figcaption { overflow-wrap: anywhere; }
.gitter { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.gitter-breit { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.reihe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rechts { margin-left: auto; }
.leise { color: var(--leise); }
.offen { color: var(--leise); font-style: italic; }

/* ------------------------------------------------------------------ Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: var(--tipp); padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--rand-2); background: var(--tafel); color: var(--tinte);
  font: 550 .95rem/1 var(--schrift); text-decoration: none; cursor: pointer;
}
.knopf:hover { border-color: var(--struktur); color: var(--struktur); }
.knopf-haupt { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.knopf-haupt:hover { filter: brightness(1.08); color: var(--signal-ink); border-color: var(--signal); }
.knopf-weit { width: 100%; }
.knopf-klein { min-height: 36px; padding: 0 10px; font-size: .85rem; }
.knopf[disabled], .knopf-aus { opacity: .5; pointer-events: none; }

/* ------------------------------------------------------------------ Formulare */
.feld { display: block; margin: 0 0 12px; }
.feld label { display: block; font-weight: 550; margin-bottom: 4px; font-size: .9rem; }
.feld input[type="text"], .feld input[type="number"], .feld input[type="date"],
.feld input[type="datetime-local"], .feld input[type="password"], .feld select, .feld textarea,
input[type="text"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; min-height: var(--tipp); padding: 10px 12px;
  background: var(--tafel-2); color: var(--tinte);
  border: 1px solid var(--rand-2); border-radius: 9px; font: inherit;
}
textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
.feld input:focus, .feld select:focus, .feld textarea:focus { border-color: var(--struktur); background: var(--tafel); }
.zahl { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.schrift-mono { font-family: var(--mono); font-size: .92rem; }
.hilfe { display: block; color: var(--leise); margin-top: 3px; }
.fehler { display: block; color: var(--langsam); margin-top: 3px; font-weight: 550; }
.feld-fehler input, .feld-fehler select, .feld-fehler textarea { border-color: var(--langsam); }
.weit { width: 100%; }
.feld-schmal { max-width: 220px; }
tr.hervor { background: var(--signal-zart); }
tr.hervor td { font-weight: 600; }
figure { margin: 0 0 12px; }
figure img { max-width: 100%; height: auto; border-radius: 9px; border: 1px solid var(--rand); }
details > summary { cursor: pointer; }
pre { white-space: pre-wrap; word-break: break-word; }
/* Keine style-Attribute in den Vorlagen: Die Sicherheitsrichtlinie erlaubt nur eigene Stylesheets. */
.feld-reihe { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.feld-reihe .feld { margin-bottom: 0; }
.feld input[type="checkbox"] { width: 24px; height: 24px; min-height: 0; vertical-align: -5px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
fieldset > legend {
  padding: 0; margin-bottom: 8px; font-weight: 650; color: var(--struktur);
  font-size: .78rem; letter-spacing: .09em; text-transform: uppercase;
}

/* ------------------------------------------------------------------ Tabellen */
.tabhuelle { overflow-x: auto; margin: 0 -14px; padding: 0 14px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rand); vertical-align: top; }
th {
  color: var(--leise); font-weight: 650; font-size: .76rem; letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap;
}
tbody tr:hover { background: var(--tafel-2); }
tbody tr:last-child td { border-bottom: 0; }
td.zahl, th.zahl { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.zeit { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.zeit-beste { color: var(--signal); }
.schneller { color: var(--schnell); font-weight: 650; }
.langsamer { color: var(--langsam); font-weight: 650; }
.gleich { color: var(--leise); }

/* ------------------------------------------------------------------ Marken und Kästen */
.marke-wert {
  display: inline-flex; align-items: baseline; gap: 5px; padding: 2px 8px; border-radius: 7px;
  background: var(--tafel-2); border: 1px solid var(--rand); font-size: .85rem; white-space: nowrap;
}
.marke-wert b { font-variant-numeric: tabular-nums; }
.marke-signal { background: var(--signal-zart); border-color: var(--signal); color: var(--signal); }
.marke-gut { background: var(--schnell-zart); border-color: var(--schnell); color: var(--schnell); }
.marke-achtung { background: var(--achtung-zart); border-color: var(--achtung); color: var(--achtung); }
.marke-struktur { background: var(--struktur-zart); border-color: var(--struktur); color: var(--struktur); }

.meldungen { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.meldung { padding: 10px 12px; border-radius: 9px; border-left: 3px solid var(--struktur); background: var(--struktur-zart); }
.meldung-success { border-color: var(--schnell); background: var(--schnell-zart); }
.meldung-error { border-color: var(--langsam); background: var(--langsam-zart); }
.meldung-warning { border-color: var(--achtung); background: var(--achtung-zart); }

/* Hinweis-Kästen aus den Vault-Notizen */
.kasten {
  margin: 14px 0; padding: 10px 14px; border-left: 3px solid var(--struktur);
  background: var(--struktur-zart); border-radius: 0 9px 9px 0;
}
.kasten > .kasten-titel { font-weight: 650; margin-bottom: .3em; }
.kasten-gut { border-color: var(--schnell); background: var(--schnell-zart); }
.kasten-warnung { border-color: var(--achtung); background: var(--achtung-zart); }
.kasten-gefahr { border-color: var(--langsam); background: var(--langsam-zart); }
.formel {
  font-family: var(--mono); background: var(--tafel-2); border: 1px solid var(--rand);
  border-radius: 7px; padding: 1px 7px;
}
.formel-block { display: block; padding: 10px 12px; margin: 12px 0; text-align: center; font-size: 1.05rem; }

/* ------------------------------------------------------------------ Notizen */
.notiz-text { max-width: 74ch; }
.notiz-text table { font-size: .88rem; }
.notiz-text h2 { margin-top: 1.4em; padding-bottom: .2em; border-bottom: 1px solid var(--rand); }
.notiz-text h3 { margin-top: 1.2em; color: var(--struktur); }
.notiz-text code { font-family: var(--mono); background: var(--tafel-2); padding: 1px 5px; border-radius: 5px; }
.notiz-text pre { background: var(--tafel-2); border: 1px solid var(--rand); border-radius: 9px; padding: 12px; overflow-x: auto; }
.notiz-text ul, .notiz-text ol { padding-left: 1.3em; }
.notiz-text li { margin-bottom: .3em; }
.marken { display: flex; gap: 6px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ Checkliste
   Ganze Zeile als Knopf: an der Strecke mit Handschuhen zu treffen. */
.haken-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.haken-liste li { margin: 0; }
.haken-liste form { margin: 0; }
.haken-knopf {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: var(--tipp);
  padding: 10px 12px; text-align: left; cursor: pointer; font: inherit; color: var(--tinte);
  background: var(--tafel-2); border: 1px solid var(--rand-2); border-radius: 10px;
}
.haken-knopf:hover { border-color: var(--struktur); }
.haken-kasten {
  flex: 0 0 26px; height: 26px; border-radius: 7px; border: 2px solid var(--rand-2);
  background: var(--tafel); display: inline-flex; align-items: center; justify-content: center;
}
.haken-knopf[aria-pressed="true"] { background: var(--schnell-zart); border-color: var(--schnell); }
.haken-knopf[aria-pressed="true"] .haken-kasten { background: var(--schnell); border-color: var(--schnell); }
.haken-knopf[aria-pressed="true"] .haken-kasten::after { content: "\2713"; color: #fff; font-weight: 800; }
.haken-knopf[aria-pressed="true"] .haken-text { text-decoration: line-through; text-decoration-color: var(--leise); }
.haken-text { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.haken-text small { text-decoration: none; }
.haken-verweise { margin: 4px 0 0 38px; display: flex; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
.haken-knopf[data-wartet] { opacity: .6; }

/* ------------------------------------------------------------------ Streckenbild */
.karte-huelle { position: relative; display: inline-block; max-width: 100%; }
.karte-huelle img { display: block; max-width: 100%; height: auto; border-radius: var(--r); }
.karte-flaeche { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.kurven-punkt { fill: var(--signal); stroke: #fff; stroke-width: 1.5; }
.kurven-punkt-text { fill: #fff; font: 700 4px var(--schrift); text-anchor: middle; dominant-baseline: central; }

/* Luftdichte-Grafik */
.dichte-grafik { width: 100%; height: auto; }
.dichte-achse { stroke: var(--rand-2); stroke-width: 1; }
.dichte-punkt { fill: var(--struktur); }
.dichte-text { fill: var(--leise); font: 10px var(--schrift); }

/* ------------------------------------------------------------------ Anmeldung */
/* Dahinter das Team mit dem CRG in der Boxengasse (werkzeuge/foto_hintergrund.py). Der Schleier
   nimmt dem Foto die Lautstärke, im Dunkeln mehr als im Hellen. Auf breiten Schirmen rückt die
   Tafel nach rechts vor die Halle – mittig stünde sie genau auf den Karts. */
body.tor {
  display: grid; place-items: center; min-height: 100vh; padding: 36px 16px;
  background: linear-gradient(var(--tor-schleier), var(--tor-schleier)),
              url("tor-foto.7b442dbcf979.jpg") 40% 55% / cover no-repeat var(--papier);
}
@media (min-width: 900px) { body.tor { justify-items: end; padding-right: 7vw; } }
.tor-tafel {
  width: 100%; max-width: 400px; background: var(--tafel); border: 1px solid var(--rand);
  border-radius: 16px; padding: 26px; box-shadow: var(--schatten), 0 20px 50px rgba(0, 0, 0, .3);
}
.tor-marke { display: grid; justify-items: center; gap: 14px; margin: 4px 0 26px; }
.tor-marke .marke-zeichen { height: 104px; }
.tor-form .feld { margin-bottom: 10px; }
.tor-form .knopf-weit { margin-top: 6px; }
/* Für Vorleseprogramme da, auf dem Schirm unsichtbar */
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Der Schriftzug ist eine Maske: Die Form kommt aus dem Bild, die Farbe aus dem Text. So steht er
   hell wie dunkel in der Textfarbe – das Original ist weiß und wäre auf Papier unsichtbar. */
.schriftzug {
  display: block; width: min(100%, 250px); aspect-ratio: 912 / 115; background: var(--tinte);
  -webkit-mask: url("schriftzug.74f917eb3791.png") center / contain no-repeat;
          mask: url("schriftzug.74f917eb3791.png") center / contain no-repeat;
}
.tor-titel { font-size: 1.3rem; }
.tor-hinweis { color: var(--leise); font-size: .84rem; margin: 16px 0 0; }

/* ------------------------------------------------------------------ Fahrerbilder */
/* Die Fotos sind 3:2. Die Ausschnitte bleiben nah an diesem Format (16:9, 2,2:1), damit Helm und
   Kart drin bleiben – ein flaches Band schneidet sonst immer einen von beiden ab. Wo die Mitte
   sitzt, sagen die fokus-Klassen unten. */
.bildband { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px; margin-bottom: 14px;
            border-radius: var(--r); overflow: hidden; box-shadow: var(--schatten); }
.bildband img, .kopfbild img, .kartfoto img { display: block; width: 100%; object-fit: cover; object-position: 50% 45%; }
.bildband img { height: clamp(200px, 27vw, 320px); }      /* breites Bild etwa 16:9 */
.kopfbild { display: block; margin-bottom: 14px; border-radius: var(--r); overflow: hidden; box-shadow: var(--schatten); }
.kopfbild img { aspect-ratio: 2.2 / 1; max-height: 520px; }
.kartfoto { display: block; margin: -4px -4px 12px; border-radius: 9px; overflow: hidden; }
.kartfoto img { aspect-ratio: 16 / 9; }
.packgruppe { margin: 14px 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--leise); }
.packgruppe:first-of-type { margin-top: 4px; }

/* Streckenübersicht: Luftbild und Verlauf klein über jeder Karte. Das Luftbild ist quadratisch
   mit der Bahn in der Mitte, der Verlauf hat hellen Grund und wird ganz gezeigt. */
.streckenbilder { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: -4px -4px 4px; }
.streckenbilder img { display: block; width: 100%; height: 130px; object-fit: cover; border-radius: 9px; }
.streckenbilder img.verlauf { object-fit: contain; background: #f3f1ec; }
.bildquelle { margin: 0 0 8px; font-size: .68rem; color: var(--leise); line-height: 1.3; }
.bildgitter { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.bildgitter-klein { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.bildkachel { position: relative; display: block; border-radius: 9px; overflow: hidden; background: var(--tafel-2);
              border: 1px solid var(--rand); aspect-ratio: 4 / 3; }
.bildkachel img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
                  transition: transform .2s; }
.bildkachel:hover img { transform: scale(1.03); }
/* Bildmitte je Foto (seiten/fahrerbilder_auswahl.py) – als Klasse, weil die CSP kein style="" erlaubt.
   Muss hinter den Regeln oben stehen: gleiche Spezifität, die spätere gewinnt. */
img.fokus-40-35 { object-position: 40% 35%; } img.fokus-45-35 { object-position: 45% 35%; } img.fokus-50-35 { object-position: 50% 35%; } img.fokus-55-35 { object-position: 55% 35%; } img.fokus-60-35 { object-position: 60% 35%; } img.fokus-65-35 { object-position: 65% 35%; } img.fokus-70-35 { object-position: 70% 35%; }
img.fokus-40-40 { object-position: 40% 40%; } img.fokus-45-40 { object-position: 45% 40%; } img.fokus-50-40 { object-position: 50% 40%; } img.fokus-55-40 { object-position: 55% 40%; } img.fokus-60-40 { object-position: 60% 40%; } img.fokus-65-40 { object-position: 65% 40%; } img.fokus-70-40 { object-position: 70% 40%; }
img.fokus-40-45 { object-position: 40% 45%; } img.fokus-45-45 { object-position: 45% 45%; } img.fokus-50-45 { object-position: 50% 45%; } img.fokus-55-45 { object-position: 55% 45%; } img.fokus-60-45 { object-position: 60% 45%; } img.fokus-65-45 { object-position: 65% 45%; } img.fokus-70-45 { object-position: 70% 45%; }
img.fokus-40-50 { object-position: 40% 50%; } img.fokus-45-50 { object-position: 45% 50%; } img.fokus-50-50 { object-position: 50% 50%; } img.fokus-55-50 { object-position: 55% 50%; } img.fokus-60-50 { object-position: 60% 50%; } img.fokus-65-50 { object-position: 65% 50%; } img.fokus-70-50 { object-position: 70% 50%; }
img.fokus-40-55 { object-position: 40% 55%; } img.fokus-45-55 { object-position: 45% 55%; } img.fokus-50-55 { object-position: 50% 55%; } img.fokus-55-55 { object-position: 55% 55%; } img.fokus-60-55 { object-position: 60% 55%; } img.fokus-65-55 { object-position: 65% 55%; } img.fokus-70-55 { object-position: 70% 55%; }
img.fokus-40-60 { object-position: 40% 60%; } img.fokus-45-60 { object-position: 45% 60%; } img.fokus-50-60 { object-position: 50% 60%; } img.fokus-55-60 { object-position: 55% 60%; } img.fokus-60-60 { object-position: 60% 60%; } img.fokus-65-60 { object-position: 65% 60%; } img.fokus-70-60 { object-position: 70% 60%; }
img.fokus-40-65 { object-position: 40% 65%; } img.fokus-45-65 { object-position: 45% 65%; } img.fokus-50-65 { object-position: 50% 65%; } img.fokus-55-65 { object-position: 55% 65%; } img.fokus-60-65 { object-position: 60% 65%; } img.fokus-65-65 { object-position: 65% 65%; } img.fokus-70-65 { object-position: 70% 65%; }
.bildkachel span { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px;
                   font-size: .78rem; font-weight: 600; color: #fff; background: rgba(13, 17, 20, .62); }

/* ------------------------------------------------------------------ Handy */
@media (max-width: 760px) {
  .bildband { grid-template-columns: 1fr; }
  .bildband img { height: auto; aspect-ratio: 16 / 9; }
  .bildband img + img { display: none; }
  .seite { padding-top: 12px; }
  .kopf { gap: 6px; }
  .nav { width: 100%; margin-left: 0; overflow-x: auto; }
  .nav-punkt { padding: 0 10px; }
  .nur-breit { display: none; }
  .menue-liste { position: fixed; left: 10px; right: 10px; top: auto; min-width: 0; }
  h1 { font-size: 1.3rem; }
  .feld-reihe { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}

/* ------------------------------------------------------------------ Drucken */
@media print {
  :root { --papier: #fff; --tafel: #fff; --tafel-2: #fff; --rand: #999; --tinte: #000; --text: #000; --leise: #444; }
  .kopf, .nav, .meldungen, .kopfreihe, .nicht-drucken, .bildband, .kopfbild, .kartfoto { display: none !important; }
  body { font-size: 10pt; }
  .seite { max-width: none; padding: 0; }
  .tafel { border: 1px solid #999; box-shadow: none; break-inside: avoid; margin-bottom: 8pt; padding: 8pt; }
  .tabhuelle { overflow: visible; margin: 0; padding: 0; }
  th, td { padding: 3pt 5pt; }
  .druck-feld { border-bottom: 1px solid #666; min-height: 18pt; display: block; }
  .haken-liste { gap: 2pt; }
  .haken-knopf { min-height: 0; padding: 2pt 0; border: 0; background: none; }
  .haken-kasten { flex-basis: 12pt; height: 12pt; border-width: 1px; }
  .haken-verweise { display: none; }
  a { color: #000; text-decoration: none; }
  @page { margin: 12mm; }
}
