/* El Greco Regen – weitere Abschnitte (Terrasse, Gäste, Besuch). Wird nach motion.css geladen.
   Maße wie in styles.css: Raster 980 / 692 / 87,5 %, Kacheln Radius 28, Abstand 20,
   Typotreppe mit Umbrüchen bei 1068 und 734. Bewegung nur über transform und opacity;
   ohne JavaScript und bei reduzierter Bewegung stehen alle Abschnitte still und vollständig da. */

/* ---------- Gemeinsames ---------- */
.section-dark2 .section-sub { color: var(--grey-dark); }
.section-dark2 .section-sub strong { color: var(--on-black); }

/* Fakten mit Haarlinie: Begriff, darunter ein Satz */
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; margin: 64px 0 0; }
.specs > div { border-top: 1px solid var(--line); padding-top: 16px; }
.specs dt { font-size: 21px; line-height: 25px; letter-spacing: .011em; font-weight: 600; color: var(--text); }
.specs dd { margin: 8px 0 0; color: var(--text2); }
.specs dd a { display: inline-block; padding: 10px 0 9px; }
.specs dd a[href^="tel:"] { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Sterne: fünf Formen, der gefüllte Anteil liegt per clip-path darüber */
.stern-vorrat { position: absolute; width: 0; height: 0; overflow: hidden; }
.sterne { display: block; width: 120px; height: 24px; color: var(--gold); }
.sterne .sterne-leer { color: rgba(255, 255, 255, .18); }

/* ---------- Terrasse: Foto wächst von der Kachel zum Vollbild ---------- */
.terrasse { padding-bottom: 0; }
.zoom { position: relative; margin-top: 48px; }
.zoom-pin { position: relative; width: min(var(--wrap), 100% - 44px); margin-inline: auto; aspect-ratio: 16 / 10; }
.zoom-frame { position: absolute; inset: 0; margin: 0; overflow: hidden; border-radius: 28px; background: var(--dark); }
.zoom-frame picture, .zoom-frame img { display: block; width: 100%; height: 100%; }
.zoom-frame img { object-fit: cover; }
.zoom-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 14, 8, 0) 30%, rgba(20, 14, 8, .5) 62%, rgba(20, 14, 8, .88) 100%); }
.zoom-facts { position: absolute; left: 40px; right: 40px; bottom: 36px; margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; color: #fff; }
/* Zwei Zeilen im Rang einer Kapitelzeile: die erste hell, die zweite in Gold */
.zoom-facts li { font-size: 40px; line-height: 44px; letter-spacing: 0; font-weight: 600; text-wrap: balance; text-shadow: 0 1px 18px rgba(20, 14, 8, .45); }
.zoom-facts li + li { color: #f3d48f; }

/* Mit Bewegung (Klasse setzt abschnitte.js): lange Strecke, die Bühne klebt unter der Leiste.
   Der Rahmen ist so groß wie die Bühne und wird per scale zur Kachel verkleinert. */
.zoom.is-live { height: 240vh; height: 240svh; margin-top: 0; }
.zoom.is-live .zoom-pin { position: sticky; top: var(--nav-h); width: 100%; aspect-ratio: auto; height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); overflow: hidden; overflow: clip; }
.zoom.is-live .zoom-frame { transform-origin: 50% 50%; }
.zoom.is-live .zoom-facts { left: var(--gutter); right: var(--gutter); bottom: 64px; }
.zoom.is-live .zoom-facts li, .zoom.is-live .zoom-scrim { opacity: 0; }
.zoom.is-near .zoom-frame, .zoom.is-near .zoom-frame img { will-change: transform; }

/* ---------- Terrasse: Bilder in ungleichen Kacheln ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 420px; gap: 20px; padding: 96px 0 var(--sec-pad); }
.bento-tile { position: relative; margin: 0; overflow: hidden; border-radius: 28px; background: var(--dark); }
.bento-wide { grid-column: span 8; }
.bento-tall { grid-column: span 4; }
.bento-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bento-tile::after { content: ""; position: absolute; inset: 50% 0 0 0; background: linear-gradient(180deg, rgba(20, 14, 8, 0), rgba(20, 14, 8, .72)); pointer-events: none; }
.bento-tile figcaption { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 24px; font-size: 21px; line-height: 25px; letter-spacing: .011em; font-weight: 600; color: #fff; }
.bento.is-live .bento-tile img { transform: scale(1.1); }

/* ---------- Gäste ----------
   Alles in Kacheln derselben Art: oben Foto und Hauptstimme als ein Stück,
   darunter die weitere Stimme, dann die Zahlen. Ein Abstand (20) zwischen allen. */
.stimme-gross { margin: 48px 0 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; background: var(--black); border-radius: 28px; overflow: hidden; }
.stimme-bild { position: relative; grid-column: 1; grid-row: 1 / 3; min-height: 440px; background: var(--black); }
.stimme-bild img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.stimme-gross blockquote, .stimme blockquote { margin: 0; }
.stimme-gross blockquote { grid-column: 2; grid-row: 1; align-self: end; padding: 40px 40px 0; }
.stimme-gross blockquote p { font-size: 28px; line-height: 32px; letter-spacing: .007em; font-weight: 600; color: var(--on-black); }
.stimme-quelle { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 17px; line-height: 25px; color: var(--grey-dark); }
.stimme-gross .stimme-quelle { grid-column: 2; grid-row: 2; padding: 24px 40px 40px; }
/* Weitere Stimmen: kleinere Schrift, eine Kachel je Stimme */
.stimmen { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.stimme { margin: 0; background: var(--black); border-radius: 28px; padding: 40px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.stimme blockquote { flex: 1 1 420px; max-width: 640px; }
.stimme blockquote p { font-size: 21px; line-height: 29px; letter-spacing: .011em; font-weight: 600; color: var(--grey-dark); }
.stimme .stimme-quelle { flex: 0 0 auto; }

.wertung { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.wert-kachel { background: var(--black); color: var(--on-black); border-radius: 28px; padding: 40px; }
.wert-kachel h3 { font-size: 28px; line-height: 32px; letter-spacing: .007em; color: var(--on-black); }
.wert-kachel p { color: var(--grey-dark); }
.wert-note { grid-column: span 5; display: flex; flex-direction: column; }
.wert-verteilung { grid-column: span 7; }
.wert-themen { grid-column: span 12; display: grid; grid-template-columns: 5fr 7fr; gap: 20px 60px; align-items: start; }
.wert-zahl { font-size: 112px; line-height: 112px; letter-spacing: -.02em; font-weight: 600; font-variant-numeric: tabular-nums; padding-right: .04em; align-self: flex-start; }
.wert-note .sterne { margin-top: 12px; width: 140px; height: 28px; }
.wert-note .wert-aus { margin-top: 20px; font-size: 21px; line-height: 29px; letter-spacing: .011em; font-weight: 600; color: var(--on-black); }
.wert-note .link { display: inline-block; margin-top: auto; padding: 16px 0 0; }

.balken { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.balken li { display: grid; grid-template-columns: 76px minmax(0, 1fr) 40px; align-items: center; gap: 16px; font-size: 14px; line-height: 20px; letter-spacing: -.016em; color: var(--grey-dark); }
.balken-spur { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.balken-spur i { display: block; height: 100%; border-radius: 4px; background: var(--gold); transform-origin: 0 50%; }
.balken-n { text-align: right; color: var(--on-black); font-variant-numeric: tabular-nums; }
/* Breite im Verhältnis zur größten Gruppe (586) */
.b5 { width: 100%; } .b4 { width: 24.4%; } .b3 { width: 10.8%; } .b2 { width: 3.8%; } .b1 { width: 8.9%; }
.wert-verteilung .wert-summe { margin-top: 24px; }
.wert-summe strong { color: var(--on-black); }

.wert-themen .wert-text p { margin-top: 12px; max-width: 30em; }
.wert-themen .btn { margin-top: 24px; }
.themen { list-style: none; margin: 0; padding: 0; }
.themen li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.themen li:first-child { padding-top: 4px; }
.themen li:last-child { border-bottom: 0; padding-bottom: 0; }
.themen-name { font-size: 21px; line-height: 25px; letter-spacing: .011em; font-weight: 600; color: var(--on-black); }
.themen-n { font-size: 14px; line-height: 20px; letter-spacing: -.016em; color: var(--grey-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Balken wachsen einmal, wenn die Kachel ins Bild kommt */
@media (prefers-reduced-motion: no-preference) {
  html.js .fade .balken-spur i { transform: scaleX(0); }
  html.js .fade.is-visible .balken-spur i { transform: none; transition: transform 1s var(--m-ease) .3s; }
  html.js .fade.is-visible .balken li:nth-child(2) i { transition-delay: .38s; }
  html.js .fade.is-visible .balken li:nth-child(3) i { transition-delay: .46s; }
  html.js .fade.is-visible .balken li:nth-child(4) i { transition-delay: .54s; }
  html.js .fade.is-visible .balken li:nth-child(5) i { transition-delay: .62s; }
}

/* ---------- Besuch ---------- */
.tiles-besuch { grid-template-columns: 7fr 5fr; }
.tile-foto { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tile-foto img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; flex: 1 1 auto; min-height: 0; }
.tile-foto .tile-body { padding: 28px 40px 32px; }

/* ---------- Umbruch 1068 ---------- */
@media (max-width: 1068px) {
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-auto-rows: 300px; padding-top: 80px; }
  .zoom-facts li { font-size: 32px; line-height: 36px; letter-spacing: .004em; }
  .stimme-gross { grid-template-columns: 1fr; grid-template-rows: auto; }
  .stimme-bild { grid-row: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .stimme-gross blockquote, .stimme-gross .stimme-quelle { grid-column: 1; grid-row: auto; }
  .stimme-gross blockquote p { font-size: 24px; line-height: 28px; letter-spacing: .009em; }
  .wert-kachel h3 { font-size: 24px; line-height: 28px; letter-spacing: .009em; }
  .wert-note, .wert-verteilung { grid-column: span 12; }
  .wert-note .link { margin-top: 0; }
  .wert-zahl { font-size: 96px; line-height: 96px; }
  .wert-themen { grid-template-columns: 1fr; gap: 32px; }
  .tiles-besuch { grid-template-columns: 1fr; }
  .tile-foto img { flex: none; }
}

/* ---------- Umbruch 734 ---------- */
@media (max-width: 734px) {
  .specs { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
  .specs dt, .themen-name { font-size: 19px; line-height: 23px; letter-spacing: .012em; }
  .zoom { margin-top: 40px; }
  .zoom-pin { width: 87.5%; aspect-ratio: 4 / 5; }
  .zoom-frame { border-radius: 22px; }
  .zoom-facts { left: 24px; right: 24px; bottom: 24px; }
  .zoom.is-live { height: 210vh; height: 210svh; }
  /* über dem runden Anrufknopf */
  .zoom.is-live .zoom-facts { bottom: 92px; }
  .zoom-facts li { font-size: 24px; line-height: 28px; letter-spacing: .009em; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 12px; padding-top: 64px; }
  .bento-wide { grid-column: span 2; aspect-ratio: 3 / 2; }
  .bento-tall { grid-column: span 1; aspect-ratio: 4 / 5; }
  .bento-tile { border-radius: 22px; }
  .bento-tile figcaption { left: 16px; right: 16px; bottom: 14px; font-size: 17px; line-height: 21px; letter-spacing: -.022em; }
  .stimme-gross { margin-top: 40px; border-radius: 22px; }
  .stimme-bild { aspect-ratio: 4 / 3; }
  .stimme-gross blockquote { padding: 28px 24px 0; }
  .stimme-gross .stimme-quelle { padding: 20px 24px 28px; }
  .stimme-gross blockquote p { font-size: 21px; line-height: 29px; letter-spacing: .011em; }
  .stimme { padding: 28px 24px; border-radius: 22px; }
  .stimme blockquote p { font-size: 17px; line-height: 25px; letter-spacing: -.022em; }
  .stimmen, .wertung { margin-top: 12px; gap: 12px; }
  .wert-kachel { padding: 28px 24px; border-radius: 22px; }
  .wert-kachel h3 { font-size: 21px; line-height: 25px; letter-spacing: .011em; }
  .wert-zahl { font-size: 80px; line-height: 84px; letter-spacing: -.015em; }
  .wert-note .wert-aus { font-size: 19px; line-height: 27px; letter-spacing: .012em; }
  .balken li { grid-template-columns: 64px minmax(0, 1fr) 32px; gap: 12px; }
  .tile-foto { padding: 0; }
  .tile-foto .tile-body { padding: 24px 24px 28px; }
  /* Mittig wie die Kapitelköpfe: Bildzeilen, Zitate, die große Note */
  .zoom-facts { text-align: center; }
  .wert-note { align-items: center; text-align: center; }
  .wert-zahl { align-self: center; }
  .story-copy { text-align: center; }
}

/* Küche-Bühne zwischen 735 und 1068: alle drei Kapitel beginnen an derselben Oberkante,
   damit die Fotos deckungsgleich liegen (wie am Handy in motion.css). */
@media (min-width: 735px) and (max-width: 1068px) {
  html.motion .story .story-frame {
    align-content: start;
    padding-top: max(32px, calc(29vh - 144px));
    padding-top: max(32px, calc(29svh - 144px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .balken-spur i { transition: none; }
}
