/* Bewegung: Bildbänder, wechselndes Wort, Einblenden */

/* Bildbänder mit Parallaxe */
.band { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center;
  min-height: clamp(340px, 64vh, 620px); background: var(--deep); }
.band-media { position: absolute; left: 0; right: 0; top: -14%; bottom: -14%; z-index: -2; will-change: transform; }
.band-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.05); }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8,17,26,.9) 0%, rgba(8,17,26,.6) 42%, rgba(8,17,26,.1) 78%),
              linear-gradient(180deg, rgba(12,24,35,.55) 0%, rgba(12,24,35,0) 28%, rgba(12,24,35,0) 72%, rgba(12,24,35,.6) 100%); }
.band-right::after { background: linear-gradient(270deg, rgba(8,17,26,.88) 0%, rgba(8,17,26,.58) 42%, rgba(8,17,26,.05) 80%),
              linear-gradient(180deg, rgba(12,24,35,.55) 0%, rgba(12,24,35,0) 28%, rgba(12,24,35,0) 72%, rgba(12,24,35,.6) 100%); }
.band-text { width: 100%; padding-top: 72px; padding-bottom: 72px; }
.band-right .band-text { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.band-line { font-weight: 300; font-size: clamp(1.9rem, 4.2vw, 3.4rem); line-height: 1.1; letter-spacing: -.01em;
  max-width: 15em; margin: 16px 0 0; color: var(--text); text-wrap: balance; }
.band-right .band-line { max-width: 12em; }
.band-line em { font-style: normal; color: var(--gold); }
.band .label { display: inline-block; padding-bottom: 10px; border-bottom: 1px solid var(--gold); }

/* Wechselndes Wort im Titel */
.hero h1 .rot { font-style: normal; display: inline-block; transition: opacity .45s ease, transform .45s ease; }
.hero h1 .rot.out { opacity: 0; transform: translateY(-.18em); }
/* Kein Umbruch beim Wortwechsel: Zeilen bleiben einzeilig, Schriftgröße so begrenzt, dass das längste Wort passt */
.hero h1 > span { white-space: nowrap; }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 5.3rem); }

/* Einblenden beim Scrollen (nur mit JavaScript) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .band-media { top: 0; bottom: 0; }
}

@media (max-width: 720px) {
  .band { min-height: 300px; }
  .band::after, .band-right::after { background: linear-gradient(180deg, rgba(8,17,26,.35) 0%, rgba(8,17,26,.82) 100%); }
  .band-right .band-text { align-items: flex-start; text-align: left; }
  .band-text { align-self: flex-end; padding-bottom: 44px; }
}
