/* Die Startseite (seit 04.10.2026). Eigenes Stylesheet, damit die übrigen
 * Seiten (Hilfe, Impressum, Rechtstexte) an styles.css nichts merken.
 *
 * Aufbau: oben ein eigenes Foto der Stadt als Band, das langsam wandert,
 * darauf Marke und Kopf. Darunter die weinrote Titelfläche wie das Titelblatt
 * der Karussells, mit einem Stapel echter Termine. Danach ruhige Abschnitte
 * auf Creme.
 *
 * Prüfmaß (Rolle 5, docs/website-1.0.2-texte.md, I1): Bei 390 × 664 — so viel
 * zeigt der Instagram-Browser auf dem iPhone — liegen beide Knöpfe unter dem
 * Stapel ganz im Bild. Wer hier Höhen ändert, misst das nach.
 */
:root {
  --grund: #FBF7F4; --karte: #F2E9E3; --blatt: #FFFFFF; --schrift: #2B1B20; --leise: #75615F;
  --wein: #8E2743; --wein-tief: #6E1E34; --auf-wein: #F8EFF1; --auf-wein-leise: #E7C9D1;
  --honig: #C0812F; --rand: #E7D9D0; --schatten: rgba(43, 27, 32, .22);
  --datum: #8E2743;
  --anzeige: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  /* Für das Störungsbanner aus status.json, das die Namen aus styles.css benutzt. */
  --card: var(--karte); --text: var(--schrift); --border: var(--rand);
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #1A1216; --karte: #271B21; --blatt: #2F2128; --schrift: #F4ECEE; --leise: #B3A0A5;
    --wein: #7A2239; --wein-tief: #5C1A2C; --auf-wein: #F8EFF1; --auf-wein-leise: #E3BFC9;
    --honig: #E09A4E; --rand: #37262E; --schatten: rgba(0, 0, 0, .5);
    --datum: #E88FA4;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--schrift); font: 17px/1.5 var(--anzeige); }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--honig); outline-offset: 3px; }
.nurVorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Kopf: das Foto, darauf Marke und Verweise ---------------------------------------- */
.titel { background: var(--wein); color: var(--auf-wein); }
.streifen { position: relative; height: 140px; overflow: hidden; container-type: inline-size; background: var(--wein-tief); border-bottom: 6px solid var(--honig); }
.bild { position: absolute; top: 0; left: 0; height: 100%; max-width: none; opacity: 0; transition: opacity .5s ease; }
.bild.an { opacity: 1; }
/* Das Panorama ist breiter als der Bildschirm und wandert hin und her. Der
   negative Verzug lässt es dort beginnen, wo die Türme von St. Sebald stehen. */
.pano { width: auto; min-width: 100%; object-fit: cover; animation: schwenk 56s linear -42s infinite alternate; }
.fest { width: 100%; object-fit: cover; object-position: 26% 50%; }
/* Die Kopfbilder der Länder (09.10.2026): wo der Ausschnitt sitzt, wenn der Streifen schmaler ist als das Bild. */
.fest[data-land="bw"] { object-position: 56% 15%; }
.fest[data-land="by"] { object-position: 36% 50%; }
.fest[data-land="he"] { object-position: 56% 50%; }
.fest[data-land="ni"] { object-position: 50% 25%; }
.fest[data-land="rp"] { object-position: 55% 50%; }
.fest[data-land="sl"] { object-position: 30% 50%; }
/* Pfalz: Die Villa steht rechts im Bild und soll an jedem Gerät ganz zu sehen sein, unterhalb der
   beiden Knöpfe des Kopfs. Deshalb sitzt der Ausschnitt rechts; die Höhe 40 % passt für den flachen
   Streifen am Handy und am Tablet, ab 820 Pixeln Breite steht weiter unten 46 %. */
.fest[data-gegend="pfz"] { object-position: 100% 40%; }
@keyframes schwenk { from { transform: translateX(0); } to { transform: translateX(min(0px, calc(100cqw - 100%))); } }
.kopf { position: absolute; inset: 10px 12px auto 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.marke, .kopf-rechts { background: #FBF7F4; border-radius: 999px; box-shadow: 0 4px 14px -6px rgba(43, 27, 32, .55); }
.marke { display: block; padding: 5px 15px 5px 6px; line-height: 0; }
.marke svg { height: 30px; width: auto; display: block; }
.kopf-rechts { display: flex; align-items: center; gap: 4px; padding: 0 8px 0 14px; height: 36px; font: 600 13.5px/1 var(--anzeige); color: #75615F; }
.kopf-rechts a { color: #75615F; text-decoration: none; padding: 6px; border-radius: 6px; }
.kopf-rechts a.kopf-laden { color: #8E2743; font-weight: 700; padding-left: 0; margin-right: 4px; }
.kopf-rechts a[aria-current="true"] { color: #2B1B20; }

.titel-innen { max-width: 1040px; margin: 0 auto; padding: 18px 20px 30px; display: grid; gap: 18px; }
/* Die Überschrift steht in zwei ungebrochenen Zeilen. Seit 08.10.2026 ist die längste bekannte Zeile
   „Nürnberg und Fürth?“ (19 Zeichen, vorher 16); 8.9vw lässt sie bei 320 bis 412 Pixeln Breite in den
   Platz passen. Längere Namen fängt start.js ab (passeKopf) — dafür darf die Spalte nicht mit dem
   Text wachsen (min-width: 0), sonst schiebt eine zu breite Zeile die Seite über den Rand. */
h1 { font: 800 clamp(1.7rem, 8.9vw, 3.4rem)/1.02 var(--anzeige); letter-spacing: -.03em; margin: 0; }
.titel-innen > * { min-width: 0; }
h1 span { display: block; white-space: nowrap; }
.unter { font-size: clamp(.94rem, 4.3vw, 1.06rem); line-height: 1.4; color: var(--auf-wein-leise); margin: 10px 0 0; }
.unter strong { color: var(--auf-wein); font-weight: 650; display: block; }

/* --- Der Stapel ------------------------------------------------------------------- */
.frage { font: 700 1.02rem/1.2 var(--anzeige); margin: 0 0 10px; }
.stapel { position: relative; height: 208px; touch-action: pan-y; }
/* Englisch steht kein Satz auf der Karte (deutscher Untertitel): niedriger, sonst klafft ein Loch. */
.stapel.ohne-satz { height: 160px; }
.blatt {
  position: absolute; inset: 0; background: var(--blatt); color: var(--schrift); border-radius: 18px;
  padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 6px; overflow: hidden;
  box-shadow: 0 14px 30px -12px var(--schatten); transition: transform .32s ease, opacity .32s ease;
  user-select: none; -webkit-user-select: none; cursor: grab;
}
.blatt[data-lage="1"] { transform: translateY(9px) rotate(-2.2deg) scale(.97); }
.blatt[data-lage="2"] { transform: translateY(18px) rotate(1.8deg) scale(.94); }
.blatt[data-lage="3"], .blatt[data-lage="4"] { transform: translateY(22px) scale(.91); opacity: 0; }
.blatt.zieht { transition: none; cursor: grabbing; }
.blatt.weg-ja { transform: translateX(130%) rotate(16deg); opacity: 0; }
.blatt.weg-nein { transform: translateX(-130%) rotate(-16deg); opacity: 0; }
.wann { font: 800 clamp(1.02rem, 4.9vw, 1.3rem)/1.1 var(--anzeige); color: var(--datum); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.was { font: 750 1.22rem/1.15 var(--anzeige); margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.satz { font-size: .95rem; line-height: 1.34; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.zeile { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; }
/* Zwei Zeilen: „Kitzingen-Sickershausen · Eintritt frei“ passt neben der Marke nicht in eine. */
.wo { color: var(--leise); font-size: .95rem; line-height: 1.3; min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.art { flex: none; font: 600 12.5px/1 var(--anzeige); letter-spacing: .02em; padding: 6px 10px; border-radius: 6px; background: var(--karte); color: var(--leise); }
/* Bis die Termine da sind: eine leere Karte in derselben Größe, damit nichts springt. */
.blatt.wartet { cursor: default; }
.blatt.wartet i { display: block; height: 14px; border-radius: 7px; background: var(--karte); }
.blatt.wartet i:nth-child(1) { width: 46%; height: 20px; }
.blatt.wartet i:nth-child(2) { width: 78%; height: 22px; margin-top: 4px; }
.blatt.wartet i:nth-child(3) { width: 92%; margin-top: 6px; }
.blatt.wartet i:nth-child(4) { width: 58%; }
.wahl { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; margin-top: 28px; }
.wahl button { font: 700 1.02rem/1 var(--anzeige); padding: 16px 10px; border-radius: 14px; cursor: pointer; border: 2px solid var(--auf-wein-leise); }
.nein { background: transparent; color: var(--auf-wein); }
.ja { background: var(--honig); border-color: var(--honig) !important; color: #1F1206; }
.wahl button[disabled] { opacity: .5; cursor: default; }
/* Der Satz unter den beiden Knöpfen (08.10.2026): leise, die Knöpfe bleiben das Lauteste. */
.nur-probe { font-size: .92rem; line-height: 1.35; color: var(--auf-wein-leise); margin: 12px 0 0; }
/* Passt der Satz nicht in eine Zeile, bricht er zwischen den beiden Sätzen und lässt kein Wort allein. */
.nur-probe span { display: inline-block; }
.stand { font-size: .92rem; color: var(--auf-wein-leise); margin: 10px 0 0; min-height: 1.4em; }
.danach { background: var(--auf-wein); color: #2B1B20; border-radius: 16px; padding: 18px 18px 16px; display: grid; gap: 12px; margin-top: 4px; }
.danach p { margin: 0; font-size: 1.02rem; line-height: 1.4; }
.danach strong { font-weight: 750; }

/* --- Laden: am Telefon ein Knopf passend zum Gerät, am Rechner beide ---------------- */
.wege { display: grid; gap: 10px; justify-items: start; }
.wege-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.laden { display: inline-block; text-align: center; background: var(--wein); color: var(--auf-wein); font: 700 1.05rem/1 var(--anzeige); padding: 16px 20px; border-radius: 14px; text-decoration: none; }
.danach .laden { background: #8E2743; color: #F8EFF1; }
.auch { font-size: .92rem; }
.browser { font-size: .98rem; }
.browser small { display: block; font-size: .86rem; opacity: .8; margin-top: 2px; }
.danach .auch, .danach .browser { color: #5D4A4E; }

.orte-kopf { font-size: .92rem; color: var(--auf-wein-leise); margin: 0 0 8px; }
.orte { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.orte button { font: 600 14px/1 var(--anzeige); padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--auf-wein-leise); background: transparent; color: var(--auf-wein); cursor: pointer; }
.orte button[aria-pressed="true"] { background: var(--auf-wein); color: #6E1E34; border-color: var(--auf-wein); }
/* Die Auswahl nach Bundesland (09.10.2026): unter den Ortsknöpfen, in derselben Form. 16 Pixel
   Schrift, weil das iPhone bei kleineren Feldern beim Antippen in die Seite hineinzoomt. */
.land-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 14px 0 0; font-size: .92rem; color: var(--auf-wein-leise); }
.land-zeile select { font: 600 16px/1.2 var(--anzeige); max-width: 100%; padding: 9px 36px 9px 14px; border-radius: 999px; border: 1.5px solid var(--auf-wein-leise); color: var(--auf-wein); cursor: pointer; appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23F8EFF1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.land-zeile select.an { background-color: var(--auf-wein); color: #6E1E34; border-color: var(--auf-wein); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236E1E34' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* Die aufgeklappte Liste zeichnet das Gerät; dort dunkle Schrift auf hellem Grund. */
.land-zeile select option { color: #2B1B20; background: #FFFFFF; }

/* --- Die ruhigen Abschnitte -------------------------------------------------------- */
main { max-width: 1040px; margin: 0 auto; padding-block: 40px 44px; padding-inline: 20px; display: grid; gap: 54px; }
h2 { font: 800 clamp(1.6rem, 6.4vw, 2.3rem)/1.08 var(--anzeige); letter-spacing: -.02em; margin: 0 0 6px; text-wrap: balance; }
.zahl { color: var(--leise); margin: 0 0 16px; max-width: 60ch; }

.weg { counter-reset: schritt; list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 18px; }
.weg li { counter-increment: schritt; display: grid; grid-template-columns: 2.4em 1fr; gap: 0 10px; }
.weg li::before { content: counter(schritt); font: 800 2rem/1 var(--anzeige); color: var(--honig); grid-row: span 2; }
.weg b { display: block; font-weight: 700; }
.weg b, .weg span { grid-column: 2; }
.weg span { color: var(--leise); }
/* Der Weg in die App gleich nach den drei Schritten (08.10.2026). */
.weg-laden { margin-top: 26px; }
.weg-laden .auch, .weg-laden .browser { color: var(--leise); }

.sicher { margin: 14px 0 0; display: grid; gap: 16px 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.sicher div { border-left: 4px solid var(--honig); padding: 2px 0 2px 14px; }
.sicher dt { font-weight: 700; }
.sicher dd { margin: 2px 0 0; color: var(--leise); }

.wer { display: grid; grid-template-columns: 96px 1fr; grid-template-areas: "foto titel" "text text"; gap: 12px 16px; align-items: center; margin-top: 30px; padding: 16px; background: var(--karte); border-radius: 16px; max-width: 620px; }
.wer .foto { grid-area: foto; width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; display: block; }
.wer h3 { grid-area: titel; font: 750 1.15rem/1.2 var(--anzeige); margin: 0; }
.wer p { grid-area: text; margin: 0; color: var(--leise); }

.liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rand); }
/* minmax(0, …) und der Umbruch mitten im Wort (07.10.2026): Ein Titel ohne Leerzeichen
   („EINBLICKE.RUNDBLICKE.AUSBLICKE“, Wachenheim) schob am Handy die ganze Seite 51 Pixel in die Breite. */
.liste li { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 4px 14px; padding: 13px 0; border-bottom: 1px solid var(--rand); }
.liste b, .liste span, .was, .wo { overflow-wrap: anywhere; }
.liste time { font: 700 .98rem/1.3 var(--anzeige); color: var(--datum); font-variant-numeric: tabular-nums; }
.liste b { font-weight: 650; display: block; min-width: 0; }
.liste span { color: var(--leise); font-size: .95rem; }
.mehr { margin: 14px 0 0; color: var(--leise); }

.zuhaus { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 14px; }
.zuhaus img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block; }

details { border-bottom: 1px solid var(--rand); padding: 12px 0; }
summary { font-weight: 650; cursor: pointer; }
details p { margin: 8px 0 2px; color: var(--leise); max-width: 62ch; }

/* --- Schluss und Fuß -------------------------------------------------------------- */
.schluss { background: var(--wein); color: var(--auf-wein); }
.schluss-innen { max-width: 1040px; margin: 0 auto; padding: 38px 20px 44px; display: grid; gap: 18px; justify-items: start; }
.schluss h2 { margin: 0; max-width: 20ch; }
.schluss .laden { background: var(--honig); color: #1F1206; }
.schluss .auch, .schluss .browser { color: var(--auf-wein-leise); }
/* Die Abzeichen der Stores und die QR-Codes: nur am Rechner. Am Telefon scannt
   niemand den Bildschirm, auf dem er gerade steht — dort trägt der Knopf. */
.abzeichen { display: none; }
.abzeichen-reihe { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.abzeichen-reihe img { display: block; width: auto; }
.badgeApple { height: 44px; }
.badgeGoogle { height: 57px; }
.badgeGoogleEn { height: 65px; }
.qr-reihe { display: flex; gap: 28px; margin-top: 18px; }
.qr-reihe figure { margin: 0; }
.qr-reihe img { width: 132px; height: 132px; background: #fff; padding: 8px; border-radius: 12px; display: block; }
.qr-reihe figcaption { margin-top: 8px; font-size: 14px; color: var(--auf-wein-leise); }

footer { max-width: 1040px; margin: 0 auto; padding: 22px 20px 34px; color: var(--leise); font-size: .92rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--leise); }
footer p { margin: 12px 0 0; }
/* Der Bildnachweis: klein, aber lesbar und mit erkennbaren Verweisen (die Lizenz verlangt beides). */
footer .nachweis { font-size: .82rem; }
footer .nachweis a { text-decoration: underline; }

/* Ohne JavaScript, oder wenn die Termine nicht kommen: kein Stapel, dafür die Wege in die App. */
.ersatz { display: grid; gap: 14px; }
.ersatz p { margin: 0; color: var(--auf-wein-leise); max-width: 40ch; }
.ersatz .laden { background: var(--honig); color: #1F1206; }
.ersatz .auch, .ersatz .browser { color: var(--auf-wein-leise); }
.js .ersatz:not(.zeigen) { display: none; }
html:not(.js) .probe, html:not(.js) .gegend, html:not(.js) #termine { display: none; }

@media (max-width: 819px) { .liste li:nth-child(n+6) { display: none; } }
@media (min-width: 820px) {
  .streifen { height: 240px; }
  .fest[data-gegend="pfz"] { object-position: 100% 46%; }
  .kopf { inset: 16px max(20px, calc((100% - 1000px) / 2)) auto max(20px, calc((100% - 1000px) / 2)); }
  .marke svg { height: 36px; }
  /* In zwei Spalten ist die Textspalte gut halb so breit wie die Seite; die längste Zeile der
     Überschrift („Nürnberg und Fürth?“) passt mit dieser Größe von 820 Pixeln Breite an hinein. */
  h1 { font-size: clamp(2rem, calc(5.2vw - 5px), 3.1rem); }
  .titel-innen { grid-template-columns: 1.05fr .95fr; grid-template-areas: "text probe" "gegend probe"; grid-template-rows: auto 1fr; align-items: start; column-gap: 54px; padding: 40px 20px 56px; }
  .text { grid-area: text; }
  .probe, .ersatz { grid-area: probe; }
  .gegend { grid-area: gegend; }
  .stapel { height: 212px; }
  .stapel.ohne-satz { height: 164px; }
  .wer { grid-template-columns: 150px 1fr; grid-template-areas: "foto titel" "foto text"; grid-template-rows: auto 1fr; gap: 6px 22px; padding: 20px; max-width: 700px; align-items: start; }
  .wer h3 { align-self: end; margin-top: 18px; }
  .abzeichen { display: block; }
  .schluss .nur-telefon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .blatt, .bild { transition: none; }
  .pano { animation: none; transform: translateX(min(0px, calc((100cqw - 100%) * .62))); }
}
