/* Henry Siemers Flughafentransfer · Layout-Regime (nach seite.css laden). Fassung 2.
   R1 Telefon hoch ≤640 · R1k Telefon kurz (≤640 und ≤760 hoch) · R1h Telefon lang (≤640 und ≥800 hoch) · R2 Telefon quer (≤500 hoch, quer)
   R3 Tablet 641–1024 · R4 Laptop-Fenster (≥901 breit, 501–800 hoch) · R5 Desktop = Grundregeln in seite.css, R5b ab 1600.
   Telefon hoch und quer: der erste Schirm ist ein normaler Abschnitt (seite.js stellt ihn vor dem Start der Engine auf flow),
   das Foto weitet sich an Ort und Stelle. Fixes gehören in ihr Regime, nie als neuer Block ans Ende. */

/* R3 Tablet (641–1024); der erste Schirm wird nur im Hochformat einspaltig (quer, z. B. 1024×600, bleibt er zweispaltig) */
@media (min-width: 641px) and (max-width: 1024px) and (orientation: portrait) {
  /* Der Rahmen wird höchstens 4:3 hoch (das ganze Foto) und gibt nach, wenn das Fenster kürzer ist: zentriert lief der Inhalt sonst oben
     unter die Leiste (Henry 25.11.2026, Tablet-Fenster um 710×800). safe: reicht selbst der Text nicht, oben bündig. */
  .held__raster { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, calc((100vw - 2 * var(--rand)) * .75)); gap: 18px; align-content: center; align-content: safe center; }
  .held__rahmen { width: auto; height: auto; min-height: 0; aspect-ratio: auto; align-self: stretch; justify-self: stretch; } /* füllt seine Zeile (das Raster richtet sonst mittig aus) */
  .held__kontakt { gap: 8px; }
  .held__kontakt .knopf { padding: 0 15px; } /* drei Knöpfe in einer Reihe bis 700 px Breite, sonst kostet die zweite Reihe den Rahmen 58 px */
}
/* R3k Tablet hochkant und kurz (iPad als Fenster, z. B. 710×800): Textblock dichter, damit der Rahmen kein flaches Band wird
   (Opus-Nachbenotung 28.11.2026: bei 710×800 nur 653×174, Dach und Räder abgeschnitten) */
@media (min-width: 641px) and (max-width: 1024px) and (orientation: portrait) and (max-height: 920px) {
  .nummer { margin-top: 10px; }
  .held__kontakt { margin-top: 12px; }
  .held__adr { margin-top: 8px; }
  .held__hinweis { margin-top: 4px; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .ablauf__raster, .anfrage__raster, .fragen__raster { grid-template-columns: 1fr; }
  .ablauf__bilder { max-width: 680px; }
  .fragen__kopf { position: static; }
  .stimme, .stimme--gross { grid-column: span 6; }
  .anfrage__vorschau { position: static; }
  .schiene__kopf { width: min(560px, 70vw); }
  .sprung ol { gap: 12px; }
}

/* R3q schmale Fenster mit wenig Höhe (z. B. 768×700): Karte dichter, sonst ragt die Schiene über die freie Fläche */
@media (min-width: 641px) and (max-width: 900px) and (min-height: 501px) and (max-height: 760px) {
  .ziel { gap: 8px; padding: 10px 12px 12px; --stimme-h: calc((290px - 24px) * 2 / 3); }
  .ziel__bild:not(.ziel__bild--breit) { aspect-ratio: 3 / 2; }
  .ziel h3 { font-size: 1.15rem; }
  .ziel .zitat blockquote { font-size: .86rem; line-height: 1.42; }
  .ziel .ziel__stimme blockquote { font-size: .95rem; }
}

/* R4 Laptop-Fenster (breit, aber 501–800 hoch, z. B. 1366×657, 1280×720, 1024×768) */
@media (min-width: 901px) and (min-height: 501px) and (max-height: 800px) {
  :root { --t-titel: clamp(1.6rem, 2.9vw, 2.8rem); --t-gross: clamp(2.2rem, 4.6vw, 4.5rem); }
  .held__name { font-size: clamp(1.8rem, 3.1vw, 3.1rem); }
  .nummer__haupt { font-size: clamp(3rem, 5.8vw, 5.8rem); }
  .held__rahmen { width: min(100%, calc(62vh * 4 / 3)); } /* Breite statt Höhe begrenzen: der Rahmen bleibt 4:3 */
  .held__hinweis { margin-top: 10px; }
  .held__kontakt { margin-top: 12px; gap: 8px 10px; } /* zwei Knopfreihen: Hinweis bleibt bei 1280×600 im Bild */
  .held__kontakt .knopf { min-height: 44px; }
  .held__adr { margin-top: 8px; }
  .schiene__kopf img { min-height: 62svh; }
  .ziel { gap: 10px; }
  .ziel__bild { aspect-ratio: 2 / 1; }
  .ziel { --stimme-h: calc((clamp(290px, 27vw, 380px) - 24px) / 2); }
  .ziel .zitat blockquote { font-size: .86rem; line-height: 1.45; }
  .ziel .ziel__stimme blockquote { font-size: .98rem; line-height: 1.35; }
  .ziel h3 { font-size: 1.15rem; }
  .schluss__satz { font-size: clamp(1.6rem, 2.8vw, 2.7rem); }
  .schluss__schriftzug { font-size: clamp(2.4rem, 7.9vw, 9.1rem); }
}
/* R4m und R4h Laptop-Fenster mit mehr Höhe: ganze Wagen statt flacher Streifen (Henry 16.11.2026: „so weit reingezogen
   brauchen die nicht“; Opus-Review 30.11.2026: bei 1600×760 fehlten am Bus Dach und Kennzeichen) */
@media (min-width: 1200px) and (min-height: 650px) and (max-height: 719px), (min-width: 901px) and (max-width: 1199px) and (min-height: 685px) and (max-height: 719px) {
  .ziel__bild:not(.ziel__bild--breit) { aspect-ratio: 3 / 2; }
  .ziel__bild--breit { aspect-ratio: 16 / 9; }
  .ziel { gap: 8px; padding: 10px 12px 12px; --stimme-h: calc((clamp(290px, 27vw, 380px) - 24px) * 2 / 3); } /* dichter: bei 1366×657 blieb 1 px Luft */
}
@media (min-width: 901px) and (min-height: 720px) and (max-height: 800px) {
  .ziel__bild:not(.ziel__bild--breit) { aspect-ratio: 4 / 3; }
  .ziel__bild--breit { aspect-ratio: 16 / 9; }
  .ziel { --stimme-h: calc((clamp(290px, 27vw, 380px) - 24px) * .75); }
}

/* R5b breite Schirme (ab 1600): das Startbild bekommt mehr Platz, die linke Spalte hält die Nummer (525 px) */
@media (min-width: 1600px) {
  .held__raster { grid-template-columns: minmax(540px, .9fr) minmax(0, 1.1fr); }
}

/* Leiste wird zum Menü, sobald die Sprünge nicht mehr passen */
@media (max-width: 1180px) {
  .sprung__knopf { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px;
    background: transparent; color: var(--ink); border: 1px solid var(--glas-rand); font: 600 .95rem/1 var(--sc-font-text); cursor: pointer; }
  .sprung ol { display: none; position: absolute; top: 100%; right: var(--rand); left: var(--rand); flex-direction: column; gap: 0;
    background: #080c22; border: 1px solid var(--glas-rand); border-radius: 14px; padding: 6px; box-shadow: var(--schatten); }
  .sprung[data-offen="true"] ol { display: flex; max-height: calc(100vh - var(--leiste-h) - 12px); max-height: calc(100dvh - var(--leiste-h) - 12px);
    overflow-y: auto; overscroll-behavior: contain; } /* quer fehlten „Fragen“ und „AGB“ (Opus-Review 01.12.2026) */
  .sprung ol a { display: block; padding: 12px 12px; font-size: 1.05rem; }
  .sprung ol a::after { left: 12px; right: auto; width: 28px; bottom: 6px; }
}

/* R1 Telefon hoch */
@media (max-width: 640px) {
  :root { --leiste-h: 89px; --t-titel: clamp(1.5rem, 6.6vw, 2rem); --t-gross: clamp(2rem, 9vw, 2.7rem); --radius: 14px; }
  .laufband { min-height: 32px; font-size: .8rem; letter-spacing: .1em; }
  .laufband__text, .laufband__spur { padding-top: 6px; padding-bottom: 6px; }
  .laufband__halt { height: 32px; }
  .laufband__halt::after { inset: 0 0 -5px; } /* der Menüknopf beginnt 6 px darunter */
  .laufband:not(.laeuft) .laufband__text { letter-spacing: .02em; text-transform: none; font-size: .7rem; } /* einzeilig ab 360 px (gemessen bis .72) */
  .leiste__zeile { gap: 8px; padding-top: 6px; padding-bottom: 6px; min-height: 0; }
  .marke { font-size: .78rem; line-height: 1; letter-spacing: .03em; order: 0; }
  .marke span { max-width: 6.6em; } /* dreizeilig wie sein Logo: FLUGHAFEN / TRANSFER / LÜNEBURG, sonst verdrängt die Versalmarke Anruf und Menü */
  .leiste__tel { display: none; }
  .leiste__anruf { order: 1; margin-left: auto; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--orange); border: 1px solid var(--glas-rand); }
  .leiste .knopf { order: 2; min-height: 44px; padding: 0 14px; font-size: .92rem; }
  .sprung { order: 3; margin-left: 0; position: static; }
  .sprung__knopf { width: 44px; padding: 0; justify-content: center; }
  .sprung__wort { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

  .held__buehne { position: relative; height: auto; overflow: visible; }
  .held__raster { height: auto; display: block; padding-top: calc(var(--leiste-h) + 28px); padding-bottom: 22px; }
  .held__text { opacity: 1; transform: none; }
  .held.ist-offen .held__text { visibility: visible; }
  .held__rahmen { display: none; }
  .held__name { font-size: clamp(1.7rem, 8vw, 2.3rem); }
  .nummer__haupt { font-size: clamp(2.8rem, 14vw, 3.8rem); }
  .held__kontakt { gap: 8px; }
  .held__kontakt li { flex: 1 1 auto; }
  .held__kontakt .knopf { width: 100%; padding: 0 16px; font-size: .95rem; }
  .stimmen-blatt { width: 100vw; height: 100svh; border-radius: 0; }
  .held__bild { position: relative; inset: auto; height: 74svh; min-height: 380px;
    clip-path: inset(calc(28px * (1 - var(--e))) calc(var(--rand) * (1 - var(--e))) calc(28px * (1 - var(--e))) calc(var(--rand) * (1 - var(--e))) round calc(18px * (1 - var(--e)))); }
  .held__bild img { object-position: 22% 60%; transform: scale(calc(1.06 - var(--e) * .06)); } /* Telefon: das Bild füllt den Kasten, keine Desktop-Geometrie */
  .held__bild figcaption { left: var(--rand); right: var(--rand); bottom: 12px; text-align: left; opacity: 1; }
  .held__bild::after { opacity: 1; background: linear-gradient(180deg, transparent 38%, rgba(5, 8, 22, .45) 62%, rgba(5, 8, 22, .88) 100%); }
  .held__satz { left: var(--rand); right: var(--rand); bottom: 64px; font-size: clamp(1.3rem, 6vw, 1.7rem); opacity: clamp(0, calc((var(--e) - .35) * 3), 1); }

  .ablauf__raster, .anfrage__raster, .fragen__raster, .preise__kopf, .stimmen__kopf, .finder, .tabellen, .bedingungen { grid-template-columns: 1fr; }
  .ablauf__heck { grid-column: 3 / 13; }
  .ablauf__terminal { grid-column: 1 / 11; margin-top: -30% !important; }
  .schritte li { font-size: .95rem; line-height: 1.45; }
  .fragen__kopf { position: static; }
  .akt-ablauf { padding-bottom: 8px; }
  .akt-transfer [data-sc-stage] { align-items: flex-start; padding-top: calc(var(--leiste-h) + 18px); }
  .schiene__kopf { width: 86vw; align-self: flex-start; }
  .schiene__kopf img { min-height: 0; height: 62svh; }
  .ziel { width: 80vw; --stimme-h: calc((80vw - 24px) * .75); }
  .ziel .zitat blockquote { font-size: .9rem; }
  .stimme, .stimme--gross { grid-column: 1 / -1; }
  .stimme--gross blockquote { font-size: 1.22rem; }
  .formular__raster { grid-template-columns: 1fr; }
  .handy { margin: 0 auto; }
  .handy__schirm { min-height: 0; }
  .anfrage__vorschau { position: static; }
  .blase dl div { grid-template-columns: 6rem 1fr; }

  .nummer__buehne { padding-top: calc(var(--leiste-h) + 18px); gap: 8px; }
  .nummer__fuss .lede { font-size: 1rem; }
  .nummer__tun .knopf { flex: 1 1 auto; }

  .schluss__bild img { object-position: 46% 50%; }
  .schluss__innen { padding-top: calc(var(--leiste-h) + 28px); }
  .schluss__tun .knopf { flex: 1 1 auto; }
  .schluss__schriftzug { font-size: 9.1vw; padding: 0 12px .05em; }
}

/* R1k Telefon hoch und kurz (bis 760 px: iPhone SE 375×553, iPhone 15 Pro 393×659, Android 430×739): Bühnen müssen ganz passen */
@media (max-width: 640px) and (max-height: 760px) {
  .ziel .zitat { display: none; }
  .ziel .ziel__stimme { display: flex; } /* die Stimme ist hier das Bild der Karte */
  .ziel__bild { aspect-ratio: 16 / 9; }
  .ziel { --stimme-h: calc((80vw - 24px) * 9 / 16); }
  .ziel .ziel__stimme blockquote { font-size: .95rem; }
  .schiene__kopf img { height: 58svh; }
  .schiene__text .lede { font-size: 1rem; }
  .nummer__fuss .lede { font-size: .92rem; line-height: 1.45; }
  .nummer__tun .knopf { min-height: 44px; padding: 0 16px; }
  .titel--gross { font-size: 1.9rem; }
  .schluss__satz { font-size: 1.4rem; }
  .schluss__tun { margin-top: 12px; gap: 8px; }
  .schluss__tun .knopf { min-height: 44px; }
  .profile { margin-top: 8px; gap: 0 14px; }
  .profile a { min-height: 44px; font-size: .9rem; }
  .fuss { padding: 8px 0 calc(10px + env(safe-area-inset-bottom, 0px)); }
  .fuss a { min-height: 28px; }
  .schluss__innen { padding-top: calc(var(--leiste-h) + 44px); }
}

/* R1m Telefon hoch, 630 bis 760 px (z. B. 360×640, 393×659): unter der Karte ist Platz, der Wagen bleibt ganz (Opus-Review 30.11.2026) */
@media (max-width: 640px) and (min-height: 630px) and (max-height: 760px) {
  .ziel__bild:not(.ziel__bild--breit) { aspect-ratio: 4 / 3; }
  .ziel { --stimme-h: calc((80vw - 24px) * .75); }
}

/* R1h Telefon hoch und lang (ab 800 px, z. B. 430×932): die Schiene senkrecht mittig, sonst bleibt unten ein Drittel leer (Opus-Review 14.11.2026) */
@media (max-width: 640px) and (min-height: 800px) {
  .akt-transfer [data-sc-stage] { align-items: center; }
}

/* R1 schmal: der stehende Laufband-Satz bleibt einzeilig, sonst wächst die Leiste über --leiste-h (gemessen 23.11.2026:
   bei 320 px einzeilig bis .66rem, bei 340 px bis .70rem mit 10 px Rand) */
@media (max-width: 359px) {
  .laufband:not(.laeuft) .laufband__text { font-size: .64rem; padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 340px) {
  .marke { font-size: .7rem; }
}

/* R2 Telefon quer: wenig Höhe, Bühnen kompakt */
@media (orientation: landscape) and (min-width: 480px) and (max-height: 500px) { /* ab 480 px: die Handytastatur macht ein schmales Telefon nur niedriger */
  :root { --leiste-h: 75px; --t-titel: clamp(1.3rem, 3.2vw, 1.8rem); --t-gross: clamp(1.6rem, 4.2vw, 2.3rem); }
  .laufband { min-height: 26px; font-size: .74rem; }
  .laufband__text, .laufband__spur { padding-top: 3px; padding-bottom: 3px; }
  .laufband__halt { height: 26px; }
  .laufband__halt::after { inset: 0 0 -1px; } /* der Anfrageknopf beginnt 2 px darunter */
  .leiste__zeile { min-height: 0; padding-top: 2px; padding-bottom: 2px; }
  .leiste .knopf { min-height: 40px; }
  .sprung[data-offen="true"] ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } /* zwei Spalten: alle Punkte ohne Scrollen */

  .held__buehne { position: relative; height: auto; overflow: visible; }
  .held__raster { height: auto; display: block; padding-top: calc(var(--leiste-h) + 18px); padding-bottom: 16px; }
  .held__text { opacity: 1; transform: none; }
  .held.ist-offen .held__text { visibility: visible; }
  .held__rahmen { display: none; }
  .held__name { font-size: 1.6rem; }
  .nummer__haupt { font-size: 3rem; }
  .held__bild { position: relative; inset: auto; height: 86svh;
    clip-path: inset(calc(16px * (1 - var(--e))) calc(var(--rand) * (1 - var(--e))) calc(16px * (1 - var(--e))) calc(var(--rand) * (1 - var(--e))) round calc(16px * (1 - var(--e)))); }
  .held__bild figcaption { opacity: 1; top: 24px; bottom: auto; } /* oben, der Satz braucht unten die Breite */
  .held__bild img { transform: scale(calc(1.06 - var(--e) * .06)); } /* Telefon quer: wie hoch, keine Desktop-Geometrie */
  .held__bild::after { opacity: 1; }
  .held__satz { left: var(--rand); right: var(--rand); bottom: 40px; font-size: 1.35rem; opacity: clamp(0, calc((var(--e) - .35) * 3), 1); }

  .ablauf__raster { grid-template-columns: 1.1fr .9fr; }
  .schritte { gap: 8px; margin-top: 14px; }
  .schritte li { font-size: .85rem; line-height: 1.38; padding-top: 8px; }
  .akt-transfer [data-sc-stage] { align-items: center; padding-top: var(--leiste-h); } /* R1 schiebt die Schiene nach oben; quer wieder mittig */
  .schiene__kopf { width: 54vw; align-self: center; }
  .schiene__kopf img { min-height: 0; height: 72svh; }
  .schiene__text .lede { display: none; }
  /* Karte quer: Bild links, Text rechts. Übereinander war sie höher als der Platz unter der Leiste, und weil der Akt feststeht,
     ließ sich das Ende nicht ins Bild scrollen (Opus-Review 30.11.2026, 844×340). So bleibt auch der Wagen ganz. */
  .ziel { display: grid; width: max(58vw, 420px); grid-template-columns: 42% minmax(0, 1fr); grid-template-rows: auto auto;
    gap: 6px 12px; align-content: center; padding: 10px; --stimme-h: calc((max(58vw, 420px) * .42 - 12px) * .75); }
  .ziel__bild, .ziel .ziel__stimme { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .ziel__bild { aspect-ratio: 4 / 3; }
  .ziel__bild--breit { aspect-ratio: 16 / 9; }
  .ziel h3, .ziel .etikett { grid-column: 2; margin: 0; }
  .ziel h3 { align-self: end; font-size: 1rem; }
  .etikett { align-self: start; font-size: .78rem; line-height: 1.32; grid-template-columns: 3.4rem 1fr; gap: 3px 8px; }
  .ziel .zitat { display: none; }
  .ziel .ziel__stimme { display: flex; padding: 12px; } /* die Stimme ist hier das Bild der Karte */
  .ziel .ziel__stimme blockquote { font-size: .85rem; }
  .ziel .ziel__stimme figcaption { font-size: .7rem; line-height: 1.3; }
  .nummer__buehne { padding-top: calc(var(--leiste-h) + 16px); padding-bottom: 10px; gap: 4px; }
  .nummer__fuss .lede { display: none; }
  .nummer__tun .knopf { min-height: 40px; }
  .anfrage__raster, .fragen__raster { grid-template-columns: 1fr; }
  .anfrage__vorschau { position: static; }
  .fragen__kopf { position: static; }
  .handy__schirm { min-height: 0; }
  .schluss__innen { padding-top: calc(var(--leiste-h) + 10px); }
  .schluss__satz { font-size: 1.3rem; }
  .schluss__tun { margin-top: 10px; }
  .schluss__tun .knopf { min-height: 40px; }
  .profile { display: none; }
  .schluss__schriftzug { font-size: 7vw; }
  .held__kontakt .knopf { min-height: 40px; }
  .stimmen-blatt { width: 100vw; height: 100svh; border-radius: 0; }
  .fuss { padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px)); margin-top: 6px; }
}

/* Bewegung: weniger und sanfter, nie null an Bedeutung */
@media (prefers-reduced-motion: reduce) {
  /* Die Schiene ohne Bewegung: als Raster, nicht gepinnt, alles ohne Querscrollen erreichbar */
  .akt-transfer { height: auto !important; }
  .akt-transfer [data-sc-stage] { position: relative !important; height: auto !important; overflow: visible !important; padding: calc(var(--leiste-h) + 40px) 0 48px; display: block; }
  .schiene { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; transform: none !important; }
  .schiene__kopf, .schiene__schluss { width: auto; grid-column: 1 / -1; padding-right: 0; }
  .ziel { width: auto; }
  .held__bild img, .schluss__bild img { transform: none; }
  .himmelsschrift__flieger { display: none; }
  .sprung a::after, .frage__knopf::after { transition: none; }
  /* Laufband steht still: laufband.js baut die Spur gar nicht erst, das hier ist das Netz */
  .laufband__spur { animation: none; }
}
