/* =====================================================================
   Hero – Rahmen für die Bilder (Variante A)
   ===================================================================== */
.xframe { position: absolute; inset: 0; overflow: hidden; }

/* Umschalten: A = Vollbild (.xhero), B = Editorial (.ehero) */
.ehero { display: none; }
.hero-b .xhero { display: none; }
.hero-b .ehero { display: block; }

/* =====================================================================
   Hero Variante B „Editorial“
   große Typografie · Panorama-Bild mit Rand · Leiste mit Zähler & Vorschaubildern
   ===================================================================== */
.ehero { padding-top: calc(var(--header-h) + 4px + clamp(28px, 4vw, 56px)); padding-bottom: clamp(40px, 5vw, 72px); background: var(--bg); }

/* Typografie */
.eh-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gap); align-items: end; margin-bottom: clamp(24px, 3vw, 44px); }
.eh-title { grid-column: 1 / -1; grid-row: 1 / span 2; font-weight: 200; font-size: clamp(52px, 8.6vw, 156px); line-height: .9; letter-spacing: -.055em; }
.eh-title span { display: block; }
.eh-title .l2 { text-align: right; font-weight: 600; font-style: italic; letter-spacing: -.05em; }
.eh-title .l2::after { content: "."; color: var(--blue); font-style: normal; }
.eh-intro { grid-column: 8 / -1; grid-row: 1; align-self: start; margin: .3em 0 0; font-size: clamp(15px, 1.1vw, 17px); color: var(--ink-2); max-width: 44ch; justify-self: end; padding-left: 16px; border-left: 2px solid var(--blue); }

/* Einblend-Animation der Zeilen beim Laden */
.hero-b .eh-title span { animation: ehUp 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.hero-b .eh-title .l2 { animation-delay: .12s; }
.hero-b .eh-intro { animation: ehFade 1s .35s ease both; }
@keyframes ehUp { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
@keyframes ehFade { from { opacity: 0; } to { opacity: 1; } }

/* Bühne: Panorama mit Vorhang-Übergang von unten */
.eh-stage { position: relative; height: clamp(320px, calc(100vh - 190px - 21vw), 720px); height: clamp(320px, calc(100svh - 190px - 21vw), 720px); overflow: hidden; background: var(--bg-2); }
.es { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); z-index: 1; }
.es.is-under { clip-path: inset(0 0 0 0); z-index: 1; }
.es.is-active { clip-path: inset(0 0 0 0); z-index: 2; transition: clip-path 1.25s cubic-bezier(.76, 0, .24, 1); }
.es img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 2.4s cubic-bezier(.2, .7, .1, 1); }
.es.is-active img, .es.is-under img { transform: scale(1.02); }
.eh-progress { position: absolute; z-index: 3; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.hero-b .eh-progress { animation: ehBar var(--eh-dur, 6.5s) linear forwards; }
@keyframes ehBar { to { transform: scaleX(1); } }

/* Leiste unter dem Bild */
.eh-bar { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 3vw, 48px); align-items: center; padding-top: 18px; }
.eh-count { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.eh-count b { font-size: clamp(40px, 3.6vw, 56px); font-weight: 200; line-height: 1; color: var(--blue); letter-spacing: -.03em; }
.eh-count span { font-size: 15px; color: var(--muted); }
.eh-cap { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); }
.eh-cap b { font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; }
.eh-cap .pl { color: var(--ink-2); font-size: 15px; }
.eh-cap .nt { color: var(--muted); font-size: 14px; }
.eh-cap i { font-style: normal; color: var(--blue); font-weight: 600; transition: transform .3s; }
.eh-cap:hover b { color: var(--blue); }
.eh-cap:hover i { transform: translateX(5px); }
.eh-cap.swap > * { animation: capIn .6s cubic-bezier(.2, .8, .2, 1) both; }
.eh-cap.swap .pl { animation-delay: .05s; } .eh-cap.swap .nt { animation-delay: .1s; }
@keyframes capIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.eh-nav { display: flex; align-items: center; gap: 8px; }
.eh-thumbs { display: flex; gap: 6px; margin-right: 8px; }
.eh-thumbs button { width: 58px; height: 40px; padding: 0; overflow: hidden; opacity: .45; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .25s, outline-color .25s; }
.eh-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.eh-thumbs button:hover { opacity: .85; }
.eh-thumbs button.is-active { opacity: 1; outline-color: var(--blue); }
.eh-prev, .eh-next { width: 44px; height: 44px; border: 1px solid var(--ink); display: grid; place-items: center; font-size: 18px; transition: all .2s; }
.eh-prev:hover, .eh-next:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

@media (max-width: 1100px) { .eh-thumbs { display: none; } }
@media (max-width: 900px) {
  .eh-intro { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin-top: 20px; }
  .eh-title { grid-row: 1 / span 2; }
  .eh-stage { height: 52vh; }
  .eh-bar { grid-template-columns: auto 1fr; }
  .eh-nav { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .es, .es img { transition: none !important; } .hero-b .eh-title span, .hero-b .eh-intro { animation: none; } }
