/* Gemeinsamer Stil der Bildfolgen (tour-*.html) und ihrer Übersicht
   (bildfolgen.html). Gestaltung nach dem Entwurf „Ruhige Redaktion"
   (Claude Design, 09/2026) — derselbe wie auf der Startseite.

   Das dunkle Thema setzt tour.js als Klasse `dunkel` an <body>: Wer aus dem
   dunklen Programm kommt, soll nicht plötzlich eine weiße Seite vor sich
   haben. Die Schriften liegen im eigenen Verzeichnis (../schriften/), nicht
   bei Google; fehlen sie, greift die Ersatzliste. */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800;
  font-display: swap; src: url('../schriften/newsreader.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 200 800;
  font-display: swap; src: url('../schriften/newsreader-kursiv.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900;
  font-display: swap; src: url('../schriften/archivo.woff2') format('woff2'); }

:root {
  --bg: #fbfaf8; --flaeche: #ffffff; --flaeche2: #f3f1ec; --bildgrund: #efece7;
  --pille: #f0eee9; --nav-bg: rgba(251, 250, 248, .94); --aktiv: rgba(29, 131, 84, .09);
  --rand: rgba(0, 0, 0, .09); --rand2: rgba(0, 0, 0, .14);
  --text: #191817; --text2: rgba(0, 0, 0, .70); --text3: rgba(0, 0, 0, .63);
  --text4: rgba(0, 0, 0, .55); --gedimmt: rgba(0, 0, 0, .45); --kicker: rgba(0, 0, 0, .42);
  --marke: #1D8354; --marke-dunkel: #186B45;
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Archivo', system-ui, 'Segoe UI', Arial, sans-serif;
  --x: 56px;
}
body.dunkel {
  --bg: #151618; --flaeche: #1d1f22; --flaeche2: #1a1c1f; --bildgrund: #26282c;
  --pille: #2b2e33; --nav-bg: rgba(21, 22, 24, .94); --aktiv: rgba(52, 193, 126, .14);
  --rand: rgba(255, 255, 255, .10); --rand2: rgba(255, 255, 255, .18);
  --text: #e9e7e2; --text2: rgba(255, 255, 255, .72); --text3: rgba(255, 255, 255, .64);
  --text4: rgba(255, 255, 255, .56); --gedimmt: rgba(255, 255, 255, .48); --kicker: rgba(255, 255, 255, .45);
  --marke: #34c17e; --marke-dunkel: #4ad695;
}
@media (max-width: 720px) { :root { --x: 20px; } }

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--marke); }
h1, h2, h3 { text-wrap: pretty; }
.seite { max-width: 1000px; margin: 0 auto; }

/* Navigation — wie auf der Startseite, „Bildfolgen" ist hier die aktive Seite. */
.nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px var(--x); background: var(--nav-bg);
  border-bottom: 1px solid var(--rand); backdrop-filter: blur(6px);
}
.wortmarke { font: 600 16px var(--sans); letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.wortmarke b { color: var(--marke); font-weight: 600; }
.nav-rechts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reihe { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--rand2); border-radius: 6px; background: var(--flaeche); }
.reihe a { padding: 7px 14px; border-radius: 4px; font: 500 13px var(--sans); color: var(--text2); text-decoration: none; }
.reihe a:hover { background: var(--pille); color: var(--text); }
.reihe a.aktiv { background: var(--pille); color: var(--text); }
.knopf {
  display: inline-block; background: var(--marke); color: #fff; text-decoration: none;
  border-radius: 6px; font: 600 14.5px var(--sans); padding: 14px 24px; white-space: nowrap;
}
.knopf:hover { background: var(--marke-dunkel); }
.knopf.klein { font-size: 13px; padding: 10px 18px; }
.kicker { margin: 0; font: 600 13px var(--sans); letter-spacing: .16em; color: var(--kicker); text-transform: uppercase; }

/* ---------- Betrachter (tour-*.html) ---------- */
.kopf { padding: 26px var(--x) 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.zurueck { display: inline-block; margin-bottom: 12px; font: 600 13px var(--sans); color: var(--marke); text-decoration: none; }
.zurueck:hover { text-decoration: underline; }
.kopf h1 { margin: 0 0 5px; font: 400 36px/1.12 var(--serif); letter-spacing: -.02em; }
.kopf p { margin: 0; font: 400 15.5px var(--sans); color: var(--text4); }
.stufe { flex: none; padding: 6px 12px; border-radius: 4px; border: 1px solid var(--rand2); font: 600 12.5px var(--sans); color: var(--text4); }

/* Bühne: Bild, Fortschritt, darunter Schritttitel mit den Knöpfen, dann
   der Text. Die Knöpfe stehen direkt unter dem Bild, damit sie auch bei
   einem langen Schritttext ohne Rollen erreichbar bleiben; der Text darf
   darunter so lang werden, wie er will.

   Das Bild ist am Sichtfenster gedeckelt: Höhe höchstens Fensterhöhe minus
   Platz für Navigation, Kopf und Knopfzeile — sonst verschwinden auf einem
   hohen Bildschirm die Bedienelemente unter dem Rand. Der Kasten behält
   das Seitenverhältnis der Bilder (feste Grundfläche, nichts springt);
   ist er breiter als das gedeckelte Bild, bleibt seitlich heller Grund.
   `height: auto` ist nötig, weil das height-Attribut des <img> sonst als
   feste Höhe durchschlägt. */
.buehne { margin: 0 var(--x); border-radius: 8px; overflow: hidden; border: 1px solid var(--rand); background: var(--bildgrund); }
.buehne img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 810;
  max-height: calc(100vh - 330px); min-height: 200px; object-fit: contain; background: #f2f3f5; }
.fortschritt { height: 3px; background: var(--rand); }
.fortschritt div { height: 3px; width: 0; background: var(--marke); }
.untertitel { padding: 12px 24px 18px; background: var(--flaeche); }
.zeile { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.schrittzahl { font: 600 16.5px var(--sans); }
#text { margin: 0; max-width: 60em; font: 400 15.5px/1.68 var(--sans); color: var(--text3); }
#text b { font-weight: 600; color: var(--text); }
.steuerung { flex: none; display: flex; align-items: center; gap: 10px; }
button { font-family: var(--sans); cursor: pointer; border-radius: 6px; color: var(--text); background: transparent; }
.pfeil { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--rand2); font-size: 13px; padding: 0; }
.pfeil:hover { background: var(--pille); }
.pfeil.primaer { background: var(--marke); border-color: var(--marke); color: #fff; }
.pfeil.primaer:hover { background: var(--marke-dunkel); }
#abspielen { height: 38px; padding: 0 14px; border: 1px solid var(--rand2); font: 600 13px var(--sans); }
#abspielen:hover { background: var(--pille); }
.zaehler { margin-left: 4px; font: 400 13.5px var(--sans); color: var(--gedimmt); white-space: nowrap; }
.hinweis { margin: 12px var(--x) 0; font: 400 13px var(--sans); color: var(--gedimmt); }
.hinweis b { font-weight: 600; color: var(--text3); }

/* Alle Schritte: anklickbare Liste, der aktuelle Schritt ist hervorgehoben. */
.liste-kopf { padding: 30px var(--x) 0; }
.liste { padding: 14px var(--x) 40px; }
.liste ol { list-style: none; margin: 0; padding: 0; }
.liste li { display: grid; grid-template-columns: 3px 34px 1fr; gap: 14px; align-items: start;
  padding: 12px 12px 12px 0; border-radius: 6px; cursor: pointer; }
.liste li:hover { background: var(--flaeche2); }
.liste li.aktiv { background: var(--aktiv); }
.liste .balken { align-self: stretch; border-radius: 2px; background: var(--rand2); }
.liste li.aktiv .balken { background: var(--marke); }
.liste .nr { padding: 2px 0 0 10px; font: 600 12.5px var(--sans); color: var(--gedimmt); }
.liste li.aktiv .nr { color: var(--marke); }
.liste .kurz { margin-bottom: 3px; font: 600 15px var(--sans); color: var(--text3); }
.liste li.aktiv .kurz { color: var(--text); }
.liste p { margin: 0; max-width: 56em; font: 400 14.5px/1.6 var(--sans); color: var(--text4); }
.liste p b { font-weight: 600; }

/* Weiter zu: drei andere Bildfolgen. */
.weiter { margin: 0 var(--x); padding: 30px 0 54px; border-top: 1px solid var(--rand); }
.weiter .kicker { margin-bottom: 16px; }
.weiter-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.weiter a { display: block; text-decoration: none; color: inherit; border: 1px solid var(--rand); border-radius: 6px; overflow: hidden; background: var(--flaeche); }
.weiter a:hover { border-color: var(--marke); }
.weiter .bild { height: 88px; overflow: hidden; background: var(--bildgrund); }
.weiter img { width: 100%; height: 100%; object-fit: cover; display: block; }
.weiter b { display: block; padding: 11px 13px 0; font: 600 14.5px var(--sans); }
.weiter span { display: block; padding: 2px 13px 13px; font: 400 13px var(--sans); color: var(--gedimmt); }

/* ---------- Übersicht (bildfolgen.html) ---------- */
.uebersicht-kopf { padding: 56px var(--x) 34px; max-width: 720px; }
.uebersicht-kopf .kicker { margin-bottom: 14px; }
.uebersicht-kopf h1 { margin: 0 0 18px; font: 400 46px/1.08 var(--serif); letter-spacing: -.02em; }
.uebersicht-kopf p { margin: 0; max-width: 34em; font: 400 16.5px/1.7 var(--sans); color: var(--text2); }
.folgen { padding: 0 var(--x) 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 26px; }
.folgen a { display: block; text-decoration: none; color: inherit; border: 1px solid var(--rand); border-radius: 8px; overflow: hidden; background: var(--flaeche); }
.folgen a:hover { border-color: rgba(29, 131, 84, .45); box-shadow: 0 4px 16px rgba(0, 0, 0, .07); }
.folgen figure { margin: 0; }
.folgen .bild { position: relative; height: 150px; overflow: hidden; background: var(--bildgrund); }
.folgen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.folgen .stufe { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border: 0; border-radius: 4px;
  background: rgba(255, 255, 255, .92); font: 600 11.5px var(--sans); letter-spacing: .04em; color: #191817; }
.folgen figcaption { padding: 16px 18px 18px; }
.folgen h2 { margin: 0 0 5px; font: 400 23px/1.2 var(--serif); letter-spacing: -.012em; }
.folgen p { margin: 0 0 12px; font: 400 15px/1.6 var(--sans); color: var(--text3); }
.folgen .fuss { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.folgen .meta { font: 400 13px var(--sans); color: var(--gedimmt); }
.folgen .ansehen { font: 600 13px var(--sans); color: var(--marke); }

/* Einladung in die Werkstatt. */
.einladung { margin: 0 var(--x) 56px; padding: 26px 30px; border-radius: 8px; background: var(--flaeche2);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.einladung h2 { margin: 0 0 6px; font: 400 24px/1.25 var(--serif); }
.einladung p { margin: 0; max-width: 38em; font: 400 15.5px/1.65 var(--sans); color: var(--text3); }

footer { padding: 24px var(--x) 40px; border-top: 1px solid var(--rand);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font: 400 13px var(--sans); color: var(--gedimmt); }
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--marke); }

@media (max-width: 720px) {
  /* Auf dem Telefon nimmt die dreizeilige Navigation zu viel Höhe ein, um
     festgeheftet zu bleiben — sie rollt mit. */
  .nav { position: static; padding: 10px var(--x); }
  .buehne img { max-height: calc(100vh - 260px); }
  .kopf { padding-top: 18px; gap: 12px; }
  .kopf h1 { font-size: 30px; }
  .uebersicht-kopf h1 { font-size: 36px; }
  .uebersicht-kopf { padding-top: 40px; }
  .untertitel { padding: 10px 16px 16px; }
}
@media (max-width: 900px) {
  .folgen { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .folgen { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .weiter-raster { grid-template-columns: 1fr; }
  .reihe a { padding: 7px 10px; }
  .liste li { grid-template-columns: 3px 26px 1fr; gap: 10px; }
}
