/* =========================================================================
   seiten-2.css: /lebensmittel-retten, /ueber-uns, /kontakt (und die Teile
   retten-*, ueber-uns-*, kontakt-*, m5-kurz, anfahrt). Gehört dem Agenten
   Seiten-2. Vom Fundament angelegt mit dem nötigsten Raster für die Gerüste.
   ========================================================================= */

/* /lebensmittel-retten: Foto Nr. 30 neben der Legende, unten bündig (B 23) */
.retten-foto-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 3.6vw, 56px); }
@media (min-width: 1100px) {
  .retten-foto-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
}

/* /kontakt#anfahrt: Platzplan links, Wege rechts, beide Spalten bündig (B 23).
   Beim Scrollen ziehen sich die Fußwege von S und U zur Tür (seiten-2.js). */
.anfahrt { display: grid; gap: clamp(24px, 3.5vw, 48px); grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 900px) { .anfahrt { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.anfahrt-plan { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.anfahrt-plan .platzplan { width: 100%; height: auto; display: block; border-radius: var(--r3); background: var(--pflaster); box-shadow: inset 0 0 0 1px var(--linie); }
.anfahrt-plan .quelle { font-size: .75rem; color: var(--tinte-3); }
.platzplan .grund { fill: var(--pflaster); }
.platzplan .gebaeude { fill: var(--weiss); }
.platzplan .gruen { fill: color-mix(in srgb, var(--pflaster) 55%, var(--linie)); }
.platzplan .neben, .platzplan .haupt { stroke: var(--linie); }
.platzplan .platz-hap { fill: var(--kiste-hell); }
.platzplan .haus-2 { fill: var(--kiste); fill-opacity: .45; }
.platzplan .namen { fill: var(--tinte-3); }
.platzplan .namen text { paint-order: stroke; stroke: var(--pflaster); stroke-width: 3.2; stroke-linejoin: round; }
.platzplan .route { stroke: var(--kiste); }
.platzplan .pfeil { fill: var(--kiste); }
.platzplan .tuer { fill: var(--kiste); stroke: var(--tinte); stroke-width: 2; }
.platzplan .tuer-hof { fill: var(--kiste); fill-opacity: .22; }
.platzplan .haltestelle { fill: var(--tinte); stroke: var(--weiss); stroke-width: 2; }
.platzplan .haltestelle-zeichen { fill: var(--weiss); }
.platzplan .marke-text { fill: var(--tinte); paint-order: stroke; stroke: var(--pflaster); stroke-width: 3.6; stroke-linejoin: round; }
.anfahrt.ist-ziehend .platzplan .route { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--t, 1)); }
.anfahrt-text { display: flex; flex-direction: column; gap: 18px; justify-content: space-between; }
.anfahrt-wege { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.anfahrt-weg { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; padding: 16px 18px; border-radius: var(--r3); background: var(--weiss); box-shadow: inset 0 0 0 1px var(--linie); }
.anfahrt-zeichen { grid-row: 1 / 3; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; font: 800 1rem/1 var(--f-text); color: var(--weiss); background: var(--tinte); }
.anfahrt-zeichen--s { border-radius: 50%; }
.anfahrt-zeichen--tuer { background: var(--kiste); border-radius: 50%; box-shadow: inset 0 0 0 2px var(--tinte); }
.anfahrt-weg-titel { margin: 0; font: 800 1.125rem/1.25 var(--f-display); }
.anfahrt-weg-mass { margin: 4px 0 0; font-size: .9375rem; line-height: 1.5; color: var(--tinte-2); }
.anfahrt-knoepfe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.anfahrt-text .quelle { margin: 0; font-size: .75rem; color: var(--tinte-3); }
@media (prefers-reduced-motion: reduce) { .anfahrt { --t: 1 !important; } }

/* /ueber-uns#film: eigener Player statt der Bedienleiste des Browsers (B 0a, 3).
   Das Video lädt erst beim Klick (preload none, Quelle erst dann gesetzt). */
.film { margin: 0; display: grid; gap: 12px; }
.film-buehne {
  position: relative; aspect-ratio: 1280 / 660; overflow: hidden;
  border-radius: var(--r3); background: var(--tinte); box-shadow: var(--schatten-2);
}
.film-poster, .film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.film-video { background: var(--tinte); opacity: 0; }
.film.ist-gestartet .film-video { opacity: 1; }
.film.ist-gestartet .film-poster, .film.ist-gestartet .film-start { display: none; }
.film-start {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; grid-template-columns: 56px auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 14px 24px 14px 14px; border: 0; border-radius: var(--r2);
  background: var(--kiste); color: var(--tinte); cursor: pointer;
  box-shadow: 0 10px 30px -8px rgba(17, 19, 20, .5);
  transition: background var(--uebergang);
}
.film-start:hover { background: var(--weiss); }
.film-start:focus-visible { outline: 3px solid var(--jetzt); outline-offset: 3px; }
.film-start-zeichen {
  grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 50%; background: var(--tinte); position: relative;
}
.film-start-zeichen::after {
  content: ""; position: absolute; left: 22px; top: 17px;
  border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--weiss);
}
.film-start-text { font: 800 1.25rem/1.1 var(--f-display); text-align: left; }
.film-start-dauer { font: 600 .875rem/1.2 var(--f-text); text-align: left; font-variant-numeric: tabular-nums; }
.film-leiste {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 44px 44px; gap: 10px; align-items: center;
  padding: 8px 10px; border-radius: var(--r2); background: var(--tinte); color: var(--weiss);
}
.film:not(.ist-gestartet) .film-leiste { visibility: hidden; }
.film-knopf {
  width: 44px; height: 44px; border: 0; border-radius: var(--r1); background: transparent; color: var(--weiss);
  cursor: pointer; display: grid; place-items: center;
}
.film-knopf:hover { background: rgba(255, 255, 255, .12); }
.film-knopf:focus-visible, .film-spur:focus-visible { outline: 3px solid var(--jetzt); outline-offset: 2px; }
.film-zeichen { display: block; width: 18px; height: 18px; position: relative; }
.film-knopf--spiel .film-zeichen { border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--weiss); width: 0; height: 0; }
.film.laeuft .film-knopf--spiel .film-zeichen { border: 0; width: 16px; height: 18px; background: linear-gradient(90deg, var(--weiss) 0 5px, transparent 5px 11px, var(--weiss) 11px 16px); }
.film-knopf--ton .film-zeichen { background: var(--weiss); clip-path: polygon(0 32%, 32% 32%, 70% 0, 70% 100%, 32% 68%, 0 68%); }
.film.stumm .film-knopf--ton .film-zeichen { opacity: .45; }
.film-knopf--voll .film-zeichen { width: 18px; height: 13px; border: 2px solid var(--weiss); border-radius: 3px; }
.film-spur { position: relative; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .22); cursor: pointer; }
.film-spur-fuellung { display: block; position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 5px; background: var(--kiste); }
.film-zeit { font: 600 .875rem/1 var(--f-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.film-unterschrift { font-size: .8125rem; color: var(--tinte-3); }
@media (max-width: 520px) {
  .film-start { grid-template-columns: 44px auto; padding: 10px 16px 10px 10px; }
  .film-start-zeichen { width: 44px; height: 44px; }
  .film-start-zeichen::after { left: 17px; top: 13px; border-width: 9px 0 9px 15px; }
  .film-start-text { font-size: 1.0625rem; }
  .film-leiste { grid-template-columns: 44px minmax(0, 1fr) auto 44px; }
  .film-knopf--voll { display: none; }
}

/* /ueber-uns: „Was uns antreibt“ (zwei gleich hohe Kästen) und Team (vier gleiche Karten) */
.antrieb { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 900px) { .antrieb { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.antrieb-kasten { display: flex; flex-direction: column; gap: 12px; }
.antrieb-kasten > p { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.antrieb-kasten .quelle { margin-top: auto; font-size: .8125rem; color: var(--tinte-3); }
.team-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .team-liste { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.team-karte { margin: 0; border-radius: var(--r3); overflow: hidden; background: var(--weiss); box-shadow: inset 0 0 0 1px var(--linie); }
.team-karte img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.team-name { margin: 12px 16px 0; font: 800 1.25rem/1.2 var(--f-display); }
.team-rolle { margin: 2px 16px 14px; font: 700 .8125rem/1.2 var(--f-schild, var(--f-text)); letter-spacing: .04em; color: var(--rost); }

/* /lebensmittel-retten#ablauf: vier Stationen, Foto (3:2) und Text im Wechsel.
   Beim Hereinscrollen wird jedes Foto von links freigelegt (--t, seiten-2.js). */
.stationen { display: grid; gap: clamp(40px, 6vw, 80px); }
.station { --t: 1; display: grid; gap: clamp(20px, 3.5vw, 56px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .station { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .station:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .station:nth-child(even) .station-bild { order: 2; }
}
.station-bild { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r3); background: var(--pflaster); box-shadow: var(--schatten-2); }
.station-bild > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.station-text { display: flex; flex-direction: column; gap: 14px; }
.station-text > p { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.station-titel { margin: 0; font-size: var(--h2); }
.station-text .quelle { font-size: .8125rem; color: var(--tinte-3); }
@media (prefers-reduced-motion: reduce) { .station { --t: 1 !important; } }

/* /ueber-uns#bilder: gleich große Kacheln (B 22), 24 Bilder füllen 2, 3 und 4 Spalten
   ohne Nachzügler (B 23). Großbild über einen eigenen Lichtkasten (B 3). */
.galerie { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .galerie { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .galerie { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.galerie-kachel { margin: 0; }
.galerie-knopf {
  display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r2); overflow: hidden;
  background: var(--pflaster); cursor: zoom-in; aspect-ratio: 1 / 1;
}
.galerie-knopf img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--uebergang); }
.galerie-knopf:hover img { transform: scale(1.03); }
.galerie-knopf:focus-visible { outline: 3px solid var(--jetzt); outline-offset: 3px; }
.lichtkasten {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 64px 72px;
  background: rgba(17, 19, 20, .94);
}
.lichtkasten[hidden] { display: none; }
.lichtkasten-figur { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: 100%; max-height: 100%; }
.lichtkasten-bild { display: block; max-width: min(1400px, calc(100vw - 144px)); max-height: calc(100vh - 170px); width: auto; height: auto; border-radius: var(--r2); }
.lichtkasten-text { display: flex; gap: 14px; align-items: baseline; color: var(--weiss); font-size: .9375rem; max-width: 70ch; text-align: center; }
.lichtkasten-zahl { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--kiste); }
.lichtkasten-knopf {
  position: absolute; width: 48px; height: 48px; border: 0; border-radius: var(--r2);
  background: var(--weiss); color: var(--tinte); font: 700 1.5rem/1 var(--f-text); cursor: pointer;
  display: grid; place-items: center;
}
.lichtkasten-knopf:hover { background: var(--kiste); }
.lichtkasten-knopf:focus-visible { outline: 3px solid var(--jetzt); outline-offset: 3px; }
.lichtkasten-knopf--zu { top: 12px; right: 12px; }
.lichtkasten-knopf--zurueck { left: 12px; top: 50%; translate: 0 -50%; }
.lichtkasten-knopf--weiter { right: 12px; top: 50%; translate: 0 -50%; }
@media (max-width: 699px) {
  .lichtkasten { padding: 64px 12px 84px; }
  .lichtkasten-bild { max-width: calc(100vw - 24px); max-height: calc(100vh - 200px); }
  .lichtkasten-knopf--zurueck, .lichtkasten-knopf--weiter { top: auto; bottom: 16px; translate: none; }
  .lichtkasten-knopf--zurueck { left: calc(50% - 60px); }
  .lichtkasten-knopf--weiter { right: calc(50% - 60px); }
}
html.lichtkasten-offen { overflow: hidden; }

/* /ueber-uns#team (Punkt 29): Foto, Name, Funktion, ein Satz. Alle Karten einer
   Reihe gleich hoch, der Satz füllt den Rest (B 3a). */
.team-liste { grid-auto-rows: 1fr; }
.team-karte { display: flex; flex-direction: column; }
.team-text { display: flex; flex-direction: column; flex: 1; padding: 0 0 16px; }
.team-satz { margin: 8px 16px 0; font-size: .9375rem; line-height: 1.5; }
.team-rolle--platz, .team-satz--platz { color: var(--rost); font-style: normal; border: 1px dashed var(--rost); border-radius: var(--r1); padding: 4px 8px; }
.team-foto-platz { display: grid; place-items: center; aspect-ratio: 5 / 4; background: var(--pflaster); color: var(--rost); font-weight: 600; }

/* /ueber-uns#daniel (Punkt 28): Foto links, drei Fragen rechts */
#daniel.abschnitt { background: var(--flaeche-stark); }
.daniel { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .daniel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.daniel-bild { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r3); overflow: hidden; background: var(--weiss); }
@media (max-width: 899px) { .daniel-bild { aspect-ratio: 3 / 2; } }
.daniel-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.daniel-foto-platz { display: grid; place-items: center; height: 100%; padding: 16px; text-align: center; border: 2px dashed var(--rost); border-radius: var(--r3); color: var(--rost); font-weight: 600; }
.daniel-text h2 { margin-top: 2px; }
.daniel-text .vorspann { color: var(--tinte); }
.drei-fragen { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 14px; }
.drei-frage { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 16px; border-radius: var(--r3); background: var(--weiss); }
.drei-nr { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--kiste); font: 900 1.375rem/1 var(--f-display); }
.drei-titel { margin: 0 0 6px; font: 800 1.125rem/1.3 var(--f-display); }
.frage-antwort { margin: 0; line-height: 1.55; }
.frage-antwort--platz { color: var(--rost); }

/* Daniel ganz oben und kräftig gerahmt (Robin, 30.10.2026): Karte auf blassem
   Orange, Rahmen in Tinte, dazu der zweite Rahmen in Orange mit Abstand wie bei
   den Knöpfen Mithelfen und Spenden. Gleich dick an allen Kanten. */
#daniel.abschnitt { background: var(--weiss); padding-block: clamp(48px, 6vw, 96px); }
#daniel .daniel {
  padding: clamp(20px, 3.4vw, 48px);
  background: var(--flaeche);
  border: 2px solid var(--tinte);
  border-radius: var(--r3);
  outline: 2px solid var(--kiste); outline-offset: 8px;
  box-shadow: 0 30px 60px -28px rgba(17, 19, 20, .45);
  align-items: stretch;
}
#daniel .daniel-bild { border: 2px solid var(--tinte); }
#daniel .daniel-text { display: flex; flex-direction: column; }
#daniel .drei-fragen { margin-bottom: 20px; }
#daniel .daniel-text .knopf { align-self: start; }
@media (max-width: 599px) { #daniel .daniel { outline-offset: 5px; } }

/* Je Weg ein Knopf zur Fußroute (Robin, 30.10.2026) */
.anfahrt-wege { grid-auto-rows: 1fr; }
.anfahrt-weg { grid-template-rows: auto auto 1fr; }
.anfahrt-weg-knopf { grid-column: 2; grid-row: 3; align-self: end; justify-self: start; width: min(100%, 260px); margin-top: 12px; }

/* Für Betriebe (Robin, 30.10.2026): rechts die beiden Knöpfe groß untereinander, statt
   links klein unter dem Text und rechts leer. */
.betriebe-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.betriebe-raster > .abschnitt-kopf { margin-bottom: 0; }
.betriebe-knoepfe { display: grid; gap: 14px; }
.betriebe-knoepfe .knopf { --h: 64px; width: 100%; font-size: 1.125rem; }
@media (min-width: 900px) {
  .betriebe-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(40px, 6vw, 120px); }
}

/* Kooperationspartner (seit 30.10.2026 auf /ueber-uns, vorher /spenden): fünf gleich große Kacheln, Logo oben,
   Name darunter. Ohne Logo eine markierte Fläche „Logo folgt“ (B 24). */
.partner-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .partner-liste { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 1fr; } }
.partner { display: grid; grid-template-rows: 96px auto; gap: 10px; padding: 14px; border-radius: var(--r3); background: var(--weiss); box-shadow: inset 0 0 0 1px var(--linie); }
@media (max-width: 559px) { .partner { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: 64px; align-items: center; } }
.partner-bild { display: grid; place-items: center; min-width: 0; height: 100%; }
.partner-logo { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner-platz {
  display: grid; place-items: center; width: 100%; height: 100%;
  border: 2px dashed var(--rost); border-radius: var(--r2);
  color: var(--rost); font: 600 .8125rem/1.2 var(--f-text);
}
.partner-name { margin: 0; font: 700 .9375rem/1.3 var(--f-text); text-align: center; hyphens: auto; }
@media (max-width: 559px) { .partner-name { text-align: left; } }
/* Logos (30.10.2026): gleiche Fläche je Kachel, Querformate füllen die Breite,
   Hoch- und Quadratformate die Höhe. */
.partner-bild { padding: 8px 6px; }
.partner-logo { width: auto; height: auto; max-width: 88%; max-height: 72px; }

/* Platzplan: Schrift und Marken in festen Bildschirmgrößen (Robin, 30.10.2026). Ohne
   JavaScript gilt --pp-s 1, also die Größen aus der Datei. */
.platzplan .namen { font-size: min(10px, calc(13px / var(--pp-s, 1))); letter-spacing: .01em; }
.platzplan .namen text { stroke-width: calc(3px / var(--pp-s, 1)); }
.platzplan .marke-text { font-size: min(11px, calc(16px / var(--pp-s, 1))); stroke-width: calc(3.5px / var(--pp-s, 1)); }
.platzplan .haltestelle, .platzplan .haltestelle-zeichen, .platzplan .tuer, .platzplan .tuer-hof {
  transform-box: fill-box; transform-origin: center;
  transform: scale(min(1, calc(1.9 / var(--pp-s, 1))));
}
.platzplan .route { stroke-width: min(3.5px, calc(5px / var(--pp-s, 1))); }

/* Kontakt, Anfahrt (Robin, 30.10.2026): Weg ab S orange, ab U blau wie das U-Bahn-Zeichen.
   Wo beide Wege gleich laufen, liegt der S-Weg oben. Rechts die drei Kästen so hoch wie
   die Karte links. */
.anfahrt-plan .platzplan #pp-route-u { stroke: #1F5FAE; }
.anfahrt-plan .platzplan .pfeil { fill: #1F5FAE; }
.anfahrt-zeichen--u { background: #1F5FAE; }
@media (min-width: 900px) {
  .anfahrt-text { justify-content: flex-start; }
  .anfahrt-wege { flex: 1 1 auto; grid-template-rows: repeat(3, minmax(0, 1fr)); }
}

/* Daniel persönlich (Robin, 30.10.2026): sein Name als Überschrift, die drei Fragen darunter */
.daniel-name { font-size: clamp(2.4rem, 4.2vw, 3.6rem); line-height: 1; }
.daniel-fragen-titel { margin: 8px 0 0; font: 800 1.25rem/1.2 var(--f-display); }


/* Über uns als zusammenhängende Erzählung (Robin, 30.10.2026) */
.erzaehlung, .vorstellung { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
@media (min-width: 1000px) {
  .erzaehlung { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .vorstellung { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; }
}
.erzaehlung-text > p:not(.zeile-klein):not(.quelle), .vorstellung-text > p:not(.zeile-klein) { max-width: 62ch; font-size: 1.0625rem; line-height: 1.65; }
.erzaehlung-auftakt { font: 700 clamp(1.25rem, 1.8vw, 1.5rem)/1.4 var(--f-display) !important; }
.erzaehlung-fotos { display: grid; gap: 16px; }
.foto-platz, .vorstellung-video {
  display: grid; place-content: center; gap: 4px; text-align: center; padding: 20px;
  aspect-ratio: 3 / 2; border: 2px dashed var(--rost); border-radius: var(--r3); background: var(--weiss);
}
.vorstellung-video { aspect-ratio: 9 / 16; max-width: 360px; width: 100%; justify-self: center; }
.foto-platz-kopf { font: 700 .9375rem/1.3 var(--f-text); color: var(--rost); }
.foto-platz-text { font-size: .9375rem; color: var(--tinte-2); }
.vorstellung-knoepfe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 480px; margin-top: 8px; }
.medien-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); grid-auto-rows: 1fr; }
@media (min-width: 900px) { .medien-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.medien-karte { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.4vw, 28px); background: var(--weiss); border: 2px solid var(--tinte); border-radius: var(--r3); }
.medien-karte > p { margin: 0; line-height: 1.5; }
.medien-quelle { font: 700 .8125rem/1.3 var(--f-text); text-transform: uppercase; letter-spacing: .06em; color: var(--rost); }
.medien-karte-titel { font-size: 1.375rem; line-height: 1.2; }
.medien-datum { font-size: .875rem; color: var(--tinte-2); }
.medien-knopf { margin-top: auto; width: 100%; }
.vorstand--bilder { gap: 12px; }
.vorstand--bilder .vorstand-person { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; }
.vorstand--bilder .vorstand-person + .vorstand-person { padding-top: 12px; }
.vorstand-bild {
  grid-row: 1 / 3; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 2px dashed var(--rost); background: var(--flaeche); color: var(--rost); font: 700 .9375rem/1 var(--f-text);
}
.vorstand--bilder .vorstand-name { align-self: end; }
.vorstand--bilder .vorstand-amt { align-self: start; }
#medien.abschnitt { background: var(--flaeche); }
.erzaehlung-auftakt { margin-top: 18px !important; }
@media (min-width: 1000px) {
  .erzaehlung-fotos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .erzaehlung-fotos .foto-platz { aspect-ratio: 4 / 5; }
}
/* Vorstand: fünf Porträts in einer Reihe, darunter Verein und Gemeinnützigkeit */
.verein--neu { grid-template-columns: minmax(0, 1fr) !important; }
@media (min-width: 900px) {
  .vorstand--bilder { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
  .vorstand--bilder .vorstand-person { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; justify-items: center; text-align: center; row-gap: 4px; }
  .vorstand--bilder .vorstand-person + .vorstand-person { padding-top: 0; border-top: 0; }
  .vorstand--bilder .vorstand-bild { grid-row: auto; width: 96px; height: 96px; margin-bottom: 8px; font-size: 1.25rem; }
}

/* Partnerkacheln führen zum Partner (Robin, 30.10.2026). Der Link sitzt im Namen und
   spannt sich über die Kachel, darunter ein kurzer Hinweis, wohin es geht. */
.partner--link { position: relative; grid-template-rows: 96px auto auto; transition: box-shadow var(--uebergang); }
.partner-ziel { color: inherit; text-decoration: none; }
.partner-ziel::after { content: ""; position: absolute; inset: 0; border-radius: var(--r3); }
.partner--link:hover { box-shadow: inset 0 0 0 2px var(--tinte); }
.partner-ziel:focus-visible { outline: none; }
.partner-ziel:focus-visible::after { outline: 3px solid var(--jetzt); outline-offset: 2px; }
.partner-hinweis { margin: 0; font: 600 .8125rem/1.3 var(--f-text); color: var(--rost); text-align: center; }
@media (max-width: 559px) { .partner--link { grid-template-rows: auto; } .partner-hinweis { grid-column: 2; text-align: left; } }

/* Fotos des Vereins in „Was uns antreibt“ (31.10.2026) */
.erzaehlung-foto { margin: 0; }
.erzaehlung-foto img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 2px solid var(--tinte); border-radius: var(--r3); }

/* Gemeinsamer Weg ab dem Abzweig (Robin, 31.10.2026): blau mit orangen Strichen statt
   orange mit blauem Rand. Erst ziehen die beiden Zuwege (bis 60 Prozent), dann der
   gemeinsame Weg, zuletzt erscheinen die Striche. */
.platzplan .route-strich { fill: none; stroke: var(--tinte); stroke-width: 3.5; stroke-dasharray: .055 .055; }
.anfahrt-plan .platzplan #pp-route-gemeinsam { stroke: #1F5FAE; }
.anfahrt-plan .platzplan .route-strich { stroke: var(--kiste); stroke-linecap: butt; }
.anfahrt.ist-ziehend .platzplan #pp-route-s,
.anfahrt.ist-ziehend .platzplan #pp-route-u { stroke-dashoffset: calc(1 - min(1, var(--t, 1) / .6)); }
.anfahrt.ist-ziehend .platzplan #pp-route-gemeinsam { stroke-dashoffset: calc(1 - clamp(0, (var(--t, 1) - .6) / .35, 1)); }
.anfahrt.ist-ziehend .platzplan .route-strich { opacity: clamp(0, (var(--t, 1) - .93) / .07, 1); }

/* Team (02.12.2026): ab 1100 px vier Karten je Reihe. Eine unvollständige letzte Reihe
   steht mittig, alle Karten bleiben gleich groß (Raster aus acht Spuren, je Karte zwei).
   Darunter ein waagrechter Streifen, so bleibt nie eine einzelne Karte allein stehen. */
@media (min-width: 1100px) {
  .team-liste { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .team-karte { grid-column: span 2; }
  .team-karte:nth-child(4n+1):nth-last-child(3) { grid-column: 2 / span 2; }
  .team-karte:nth-child(4n+1):nth-last-child(2) { grid-column: 3 / span 2; }
  .team-karte:nth-child(4n+1):nth-last-child(1) { grid-column: 4 / span 2; }
}
@media (max-width: 1099.98px) {
  .team-liste { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62%, 280px);
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; overscroll-behavior-x: contain; }
  .team-karte { scroll-snap-align: start; }
}

/* Daniels Foto (02.12.2026): auf schmalen Bildschirmen 3:2, das Gesicht sitzt im oberen Viertel. */
@media (max-width: 899px) { .daniel-bild img { object-position: 50% 22%; } }

/* Daniel mit den drei Antworten (02.12.2026): Die Textspalte wird höher als das Foto.
   Gestreckt hätte das Seitenverhältnis 4:5 das Foto über den Text verbreitert, deshalb
   bleibt es oben stehen und läuft beim Lesen mit. */
@media (min-width: 900px) { #daniel .daniel-bild { align-self: start; position: sticky; top: var(--daniel-top, 104px); } }

/* Gemeinsamer Fußweg ab dem Abzweig (Robin, 02.12.2026): Orange gestrichelt auf Blau sah
   aus wie drübergelegt. Ab dem Abzweig ist es ein Weg für beide, durchgezogen in Tinte. */
/* Robin, 02.12.2026 (zweiter Anlauf): eine saubere gestrichelte Linie, Blau und Orange im
   Wechsel, beide genau gleich breit, keine dicke Linie über einer dünnen. */
.anfahrt-plan .platzplan #pp-route-gemeinsam { stroke: #1F5FAE; stroke-linecap: butt; }
.anfahrt-plan .platzplan .route-strich {
  stroke: var(--kiste); stroke-linecap: butt; stroke-linejoin: round;
  stroke-width: min(3.5px, calc(5px / var(--pp-s, 1))); stroke-dasharray: .045 .045;
}

/* „Was uns antreibt“ ohne Leerfläche (Robin, 02.12.2026): Die Fotos stehen untereinander
   und reichen genau so weit wie der Text, beide Spalten enden auf derselben Linie. */
@media (min-width: 1000px) {
  .erzaehlung { align-items: stretch; }
  .erzaehlung-fotos { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); min-height: 0; }
  .erzaehlung-foto { position: relative; min-height: 0; }
  .erzaehlung-foto img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .erzaehlung-foto:nth-child(1) img { object-position: 50% 45%; }
  .erzaehlung-foto:nth-child(2) img { object-position: 50% 30%; }
}

/* Über uns: ganz oben der Vereinsfilm groß, darunter Titel und Sprungmarken nebeneinander (02.12.2026) */
.seitenkopf--film .kopf-film { margin-bottom: clamp(28px, 4vw, 56px); }
.seitenkopf--film .film-buehne { box-shadow: var(--schatten-3); }
@media (min-width: 1100px) {
  .seitenkopf-raster--film { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .seitenkopf-raster--film .sprungmarken { margin-top: 0; }
}
/* Die Leiste steht von Anfang an da, sonst klafft zwischen Film und Unterschrift eine Lücke. */
.kopf-film:not(.ist-gestartet) .film-leiste { visibility: visible; }
.kopf-film .film-start-text { white-space: nowrap; }

/* „Das sind wir“ (Robin, 02.12.2026): Film und Text auf derselben Höhe, oben wie unten.
   Der Film füllt die Höhe der Textspalte, die Leiste liegt nach dem Start unten im Bild,
   die Unterschrift hängt klein darunter wie bei den Seitenköpfen. */
@media (min-width: 1000px) {
  .vorstellung { align-items: stretch !important; }
  .vorstellung-film { position: relative; display: flex; flex-direction: column; }
  .vorstellung-film .film-buehne { flex: 1 1 auto; aspect-ratio: auto; min-height: 300px; }
  .vorstellung-film .film-leiste { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; }
  .vorstellung-film .film-unterschrift { position: absolute; left: 0; top: calc(100% + 10px); }
  #vorstellung .vorstellung { margin-bottom: 24px; }
}

/* Vorstand (Robin, 02.12.2026): Porträts doppelt so groß, weniger eng zugeschnitten. */
@media (max-width: 899.98px) {
  .vorstand--bilder .vorstand-person { grid-template-columns: 96px minmax(0, 1fr); }
  .vorstand--bilder .vorstand-bild { width: 96px; height: 96px; }
}
@media (min-width: 900px) {
  .vorstand--bilder .vorstand-person .vorstand-bild { width: min(192px, 100%); height: auto; aspect-ratio: 1; font-size: 2rem; margin-bottom: 12px; }
  .vorstand--bilder .vorstand-name { font-size: 1.125rem; }
}

/* Team ab 02.12.2026: Ehrenamtliche und Prominente, der Vorstand steht nur noch oben.
   Die Fotos sind nie größer als die Vorstandsporträts (192 px), fünf je Reihe, mittig.
   Freie Plätze gestrichelt, bis der Verein sie füllt. */
@media (min-width: 1100px) {
  .team-liste { grid-template-columns: repeat(5, minmax(0, 192px)); justify-content: center; gap: 24px; }
  .team-karte, .team-karte:nth-child(4n+1):nth-last-child(3),
  .team-karte:nth-child(4n+1):nth-last-child(2), .team-karte:nth-child(4n+1):nth-last-child(1) { grid-column: auto; }
}
.team-karte img, .team-foto-platz { aspect-ratio: 1 / 1; object-fit: cover; }
.team-name { font-size: 1.0625rem; margin: 10px 14px 0; }
.team-karte .team-rolle { margin-left: 14px; margin-right: 14px; }
.team-satz { margin: 6px 14px 0; font-size: .875rem; }
.team-karte--frei { box-shadow: inset 0 0 0 2px var(--rost); background: transparent; border: 0; }
.team-karte--frei .team-foto-platz { background: var(--flaeche); }
.team-karte--frei .team-name { color: var(--rost); }

/* Über uns, Kopf mit Film (zweite Fassung 02.12.2026): Titel oben, Film, Sprungmarken in einer Reihe */
.kopf-film-titel { margin-bottom: clamp(20px, 2.4vw, 32px); }
.kopf-film-titel .vorspann { max-width: 60ch; margin-bottom: 0; }
.seitenkopf--film .kopf-film { margin-bottom: clamp(20px, 2.4vw, 32px); }
.kopf-film-marken .sprungmarken { margin: 0; }
.kopf-film-marken .sprungmarken-knoepfe { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 600px) { .kopf-film-marken .sprungmarken-knoepfe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .kopf-film-marken .sprungmarken-knoepfe { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .kopf-film-marken .sprungmarken-knoepfe { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kopf-film-marken .sprungmarken-knoepfe .knopf { width: 100%; }
.kopf-film-marken .sprungmarken-knoepfe { max-width: none; }
@media (min-width: 1100px) { .kopf-film-marken .sprungmarken-knoepfe { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Vorstand mit eigenen Sätzen (Robin, 02.12.2026) */
.vorstand-satz { display: block; margin-top: 6px; font-size: .875rem; line-height: 1.45; color: var(--tinte); }
@media (max-width: 899.98px) { .vorstand--bilder .vorstand-satz { grid-column: 2; } }
@media (min-width: 900px) { .vorstand--bilder .vorstand-satz { max-width: 22ch; } }

/* Medien mit Logo (Robin, 02.12.2026): je Karte ein Logo auf gleicher Höhe */
.medien-logo { height: 56px; display: flex; align-items: center; margin-bottom: 4px; }
.medien-logo img { height: 48px; width: 160px; object-fit: contain; object-position: left center; display: block; }
[dir="rtl"] .medien-logo img { object-position: right center; }

/* Kontakt, Anfahrt (Prüfung Nr. 46, 79; Robin, 02.12.2026): Karte links, Wege rechts, beide gleich
   hoch. Die Wegekarten sind so hoch wie ihr Inhalt, die Karte füllt die Höhe der Wegespalte.
   Den Ausschnitt der Karte setzt seiten-2.js so, dass S, U und die Tür sichtbar bleiben. */
@media (min-width: 900px) {
  .anfahrt-wege { grid-template-rows: none; grid-auto-rows: auto; flex: 0 0 auto; }
  .anfahrt-weg { grid-template-rows: auto auto auto; }
  .anfahrt-plan .platzplan { flex: 1 1 0; height: 0; min-height: 0; }
  .anfahrt-text { justify-content: space-between; }
}
@media (min-width: 1000px) and (max-width: 1199px) { .anfahrt { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } .anfahrt-weg { padding: 14px 16px; } }
@media (min-width: 1400px) { .anfahrt { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
/* 900 bis 999 px: zu schmal für zwei Spalten ohne Beschnitt, dort Karte oben, Wege darunter */
@media (min-width: 900px) and (max-width: 999px) {
  .anfahrt { grid-template-columns: minmax(0, 1fr); }
  .anfahrt-plan .platzplan { flex: none; height: auto; }
  .anfahrt-wege { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .anfahrt-weg { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .anfahrt-zeichen { grid-row: auto; }
  .anfahrt-weg-knopf { grid-column: 1; grid-row: auto; width: 100%; }
}

/* Kooperationspartner (Nr. 28, 49, 66): Zwischen 560 und 1099 px drei Kacheln je Reihe, die
   letzte Reihe mittig, statt fünf zu schmaler Spalten. Alle Karten gleich hoch, auch am Handy,
   Text im Arabischen auf der Leseseite. */
.partner-liste { grid-auto-rows: 1fr; }
/* Robin, 02.12.2026: alle fünf in einer Reihe lassen. Bei schmaler Kachel kleinere Schrift und
   Trennstellen in den langen Namen (bauen.py setzt weiche Trennstriche). */
@media (min-width: 560px) and (max-width: 1099px) {
  .partner { padding: 12px 8px; }
  .partner-name { font-size: .8125rem; }
  .partner-hinweis { font-size: .75rem; }
}
@media (min-width: 560px) { .partner--link { grid-template-rows: 96px 2.6em auto; } }
@media (max-width: 559px) { .partner-name, .partner-hinweis { text-align: start; } }
/* Logos optisch gleich groß: feste Höhe statt voller Breite, REWE füllte die Kachel (Nr. 65) */
.partner-logo { max-height: 52px; max-width: 60%; }
@media (max-width: 559px) {
  .partner--link { grid-template-rows: auto auto; align-content: center; row-gap: 4px; }
  .partner--link .partner-bild { grid-row: 1 / 3; height: 64px; }
  .partner-logo { max-height: 44px; max-width: 92%; }
}

/* Drei Fragen an Daniel am Handy (Nr. 32): Nummer und Frage in einer Zeile, die Antwort darunter
   über die volle Breite, statt einer 218 px schmalen Spalte neben dem Kreis. */
@media (max-width: 559px) {
  .drei-frage { grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 10px; align-items: center; }
  .drei-nr { width: 40px; height: 40px; font-size: 1.125rem; }
  .drei-text { display: contents; }
  .drei-titel { margin: 0; }
  .frage-antwort { grid-column: 1 / -1; }
}

/* Vorstand (Nr. 33, 43): Ämter auf zwei Zeilen Höhe, damit alle Sätze auf derselben Linie
   beginnen; Sätze ausgeglichen umbrechen und lange Wörter trennen. */
@media (min-width: 900px) { .vorstand--bilder .vorstand-amt { min-height: calc(2 * 1.4em); line-height: 1.4; } }
.vorstand-satz { text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }

/* Stationen (Lebensmittel retten) und Angebote (Nr. 14): Bild und Text schließen oben und unten
   bündig. Das Foto nimmt die Höhe der Textspalte an (mindestens 300 px), der Text beginnt oben,
   die Quelle bzw. der Knopf steht auf der Bildunterkante. Vorher stand der Text mittig neben einem
   bis zu 200 px höheren Foto. */
@media (min-width: 900px) {
  .station, .station:nth-child(even), .angebot, .angebot:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .station-bild, .angebot--foto .angebot-bild { aspect-ratio: auto; min-height: clamp(300px, 25vw, 380px); height: 100%; }
  .station-bild > img, .angebot--foto .angebot-bild > img { position: absolute; inset: 0; }
  .station-text > :last-child, .angebot--foto .angebot-text > :last-child { margin-top: auto; }
}

/* Kopffilm (Nr. 61, 62): Startknopf unten links statt über dem Gesicht im Standbild,
   Bildunterschrift dunkler (Kontrast über 4,5 zu 1 auf Orange). */
.kopf-film .film-start { left: clamp(14px, 2vw, 24px); top: auto; bottom: clamp(56px, 6vw, 72px); translate: none; }
[dir="rtl"] .kopf-film .film-start { left: auto; right: clamp(14px, 2vw, 24px); }
.film-unterschrift { color: var(--tinte-2); }

/* Team mit wenigen Karten (Robin, 02.12.2026: bis zum Start nur vollständige Karten, Nr. 4, 84):
   zwei breite Karten nebeneinander, Foto links, Text rechts, keine Wischreihe. */
.team-liste:not(:has(> :nth-child(4))) {
  grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-auto-columns: auto;
  overflow: visible; justify-content: stretch; gap: 16px;
}
@media (min-width: 760px) { .team-liste:not(:has(> :nth-child(4))) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.team-liste:not(:has(> :nth-child(4))) > .team-karte {
  grid-column: auto; display: grid; grid-template-columns: clamp(120px, 34%, 220px) minmax(0, 1fr); align-items: stretch;
}
.team-liste:not(:has(> :nth-child(4))) > .team-karte > img { height: 100%; aspect-ratio: auto; min-height: 160px; }
.team-liste:not(:has(> :nth-child(4))) .team-text { align-self: center; padding: 18px 18px 18px 4px; }

/* Drei Fragen an Daniel zum Aufklappen (Robin, 02.12.2026): sichtbar sind nur die Fragen,
   die Antwort klappt darunter auf. Ohne Skript stehen die Antworten offen da. */
.drei-frage { display: block; padding: 0; }
.drei-kopf-h { margin: 0; }
.drei-kopf {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 24px; column-gap: 16px; align-items: center;
  width: 100%; padding: 16px; border: 0; border-radius: var(--r3); background: none;
  color: inherit; font: inherit; text-align: start; cursor: pointer;
}
.drei-kopf:focus-visible { outline: 3px solid var(--jetzt); outline-offset: 2px; }
.drei-kopf .drei-titel { margin: 0; font: 800 1.125rem/1.3 var(--f-display); }
.drei-zeichen { position: relative; width: 20px; height: 20px; justify-self: end; }
.drei-zeichen::before, .drei-zeichen::after {
  content: ""; position: absolute; left: 2px; right: 2px; top: 9px; height: 2px; background: var(--tinte);
  transition: transform var(--uebergang);
}
.drei-zeichen::after { transform: rotate(90deg); }
.drei-frage.offen .drei-zeichen::after { transform: rotate(0deg); }
.drei-antwort { padding: 0 16px 16px calc(16px + 48px + 16px); }
.js .drei-frage:not(.offen) .drei-antwort { display: none; }
@media (max-width: 559px) {
  .drei-kopf { grid-template-columns: 40px minmax(0, 1fr) 20px; column-gap: 12px; padding: 14px; }
  .drei-antwort { padding: 0 14px 14px; }
}

/* Daniel (02.12.2026): Mit zugeklappten Antworten ist die Textspalte kurz genug, das Foto füllt sie
   von oben bis unten (bündig). Klappt jemand Antworten auf, wächst das Foto mit, das Gesicht bleibt im Bild. */
@media (min-width: 900px) {
  #daniel .daniel-bild { align-self: stretch; position: relative; top: auto; aspect-ratio: auto; min-height: 420px; }
  #daniel .daniel-bild img { position: absolute; inset: 0; object-position: 50% 30%; }
}

/* Team über die ganze Breite (Robin, 03.12.2026): ab 1100 px alle Karten in einer Reihe, gleich breit,
   so breit wie der Inhalt. Fotos im Querformat 5:4, damit die breiteren Karten nicht zu hoch werden. */
@media (min-width: 1100px) {
  .team-liste { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); justify-content: stretch; }
}
/* Teamfotos im Hochformat (Robin, 03.12.2026: „alles abgeschnitten“). Die Originale sind Hochformat,
   3:4 zeigt Kopf und Schultern ganz, auf allen Breiten. */
.team-karte img, .team-karte .team-foto-platz { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 0; }
