/* Hotel Görtler – Scroll-Hero „Ein Haus, vier Jahreszeiten“
   Media Production House · Prototyp-Modul (statisch → später WordPress-Theme) */

:root {
  --forest: #17281e;
  --pine: #2b4535;
  --moss: #5d7a5a;
  --ivory: #f6f2e8;
  --champagne: #e7dabf;
  --gold: #b8955a;
  --gold-light: #d4b57e;
  --ink: #1e1b17;

  --page-bg: var(--ivory);
  --page-text: var(--ink);
  --page-muted: #5b564d;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
  box-sizing: border-box;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --page-bg: #101a14; --page-text: #efe9dc; --page-muted: #b9b2a3; color-scheme: dark; }
}
:root[data-theme="dark"] { --page-bg: #101a14; --page-text: #efe9dc; --page-muted: #b9b2a3; color-scheme: dark; }

*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page-bg); color: var(--page-text);
  font-family: var(--sans); font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--ivory);
  transition: background .5s var(--ease), color .5s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -60px;
  background: linear-gradient(to bottom, rgba(16, 28, 21, .55), rgba(16, 28, 21, 0));
  pointer-events: none; transition: opacity .5s var(--ease);
}
.site-header.is-solid { background: rgba(23, 40, 30, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header.is-solid::before { opacity: 0; }
.site-header__inner {
  position: relative; display: flex; align-items: center; gap: 2rem;
  max-width: 1440px; margin: 0 auto; padding: 1.1rem clamp(1.25rem, 3vw, 2.5rem);
}
.brand {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 500; font-style: italic;
  text-decoration: none; letter-spacing: .01em; white-space: nowrap;
  transition: opacity .6s var(--ease);
}
.site-header.is-finale .brand { opacity: 0; }
.nav { display: none; margin-left: auto; }
.nav ul { display: flex; gap: clamp(1rem, 1.6vw, 1.8rem); list-style: none; margin: 0; padding: 0; }
.nav a {
  font-size: .9rem; letter-spacing: .02em; text-decoration: none; opacity: .88;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px; transition: opacity .3s, background-size .4s var(--ease);
}
.nav a:hover { opacity: 1; background-size: 100% 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.4rem; border-radius: 999px;
  font: 500 .92rem/1 var(--sans); letter-spacing: .03em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn--gold { background: var(--gold); color: var(--forest); }
.btn--gold:hover { background: var(--gold-light); }
.btn--ghost { border-color: rgba(246, 242, 232, .55); color: var(--ivory); }
.btn--ghost:hover { border-color: var(--ivory); background: rgba(246, 242, 232, .08); }
.site-header .btn { margin-left: auto; }
.menu-toggle {
  margin-left: .5rem; background: none; border: 0; color: inherit; cursor: pointer;
  font: 500 .92rem var(--sans); letter-spacing: .03em; min-height: 46px; padding: 0 .25rem;
}
@media (min-width: 1180px) {
  .nav { display: block; }
  .site-header .btn { margin-left: 1rem; }
  .menu-toggle { display: none; }
}
@media (max-width: 640px) {
  .site-header .btn { display: none; }
  .menu-toggle { margin-left: auto; }
}

/* Mobile-Menü */
.menu-panel {
  position: fixed; inset: 0; z-index: 40; background: var(--forest); color: var(--ivory);
  padding: calc(env(safe-area-inset-top, 0px) + 5.5rem) 1.75rem calc(env(safe-area-inset-bottom, 0px) + 6rem);
  display: flex; flex-direction: column; gap: .4rem;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.menu-panel.is-open { opacity: 1; visibility: visible; }
.menu-panel a { font-family: var(--serif); font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.25; text-decoration: none; }
.menu-panel .menu-close {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 1.1rem); right: 1.25rem;
  background: none; border: 0; color: inherit; font: 500 .92rem var(--sans); min-height: 46px; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 420vh; background: var(--forest); }
/* Hochformat: etwas kürzer, Daumen-Scroll ist schneller als Mausrad */
@media (max-aspect-ratio: 4/5) { .hero { height: 380vh; } }
.hero__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
/* svh = feste Höhe bei ein-/ausfahrender Browserleiste → kein Springen auf iOS/Android */
@supports (height: 100svh) { .hero__stage { height: 100svh; } }

.hero__poster, .hero__poster img, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__poster img { object-fit: cover; object-position: 20% 50%; }
@media (max-aspect-ratio: 4/5) { .hero__poster img { object-position: 30% 50%; } }
.hero__poster { transition: opacity .6s var(--ease); }
.hero.is-ready .hero__poster { opacity: 0; }
.hero__canvas { transform-origin: 50% 50%; }

.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(14, 24, 18, .72) 0%, rgba(14, 24, 18, .28) 32%, rgba(14, 24, 18, 0) 55%);
}
.hero__veil {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 46%, rgba(23, 40, 30, .86), rgba(23, 40, 30, .64) 70%, rgba(23, 40, 30, .74));
}

/* Kapitel-Zeilen */
.hero__copy {
  position: absolute; left: clamp(1.25rem, 5vw, 5rem); right: clamp(1.25rem, 5vw, 5rem);
  bottom: clamp(6.5rem, 14vh, 9.5rem); color: var(--ivory); pointer-events: none;
}
.hero__title { margin: 0; font-weight: 400; }
.hero__kicker {
  display: block; font-family: var(--sans); font-size: clamp(.82rem, 1vw, .95rem);
  letter-spacing: .08em; margin-bottom: 1rem; opacity: .9;
}
.chapter {
  position: absolute; left: 0; bottom: 0; margin: 0; max-width: 16ch;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: 1.02; letter-spacing: -.01em;
  text-shadow: 0 2px 30px rgba(10, 18, 13, .35);
  opacity: 0; will-change: opacity, transform, filter;
}
.chapter--first { position: relative; display: block; opacity: 1; }
.chapter .word { display: inline-block; will-change: opacity, transform, filter; }
/* Erste Zeile: Wort für Wort beim Laden */
.has-words .chapter--first .word {
  opacity: 0; animation: wordIn 1.2s var(--ease) forwards;
  animation-delay: calc(var(--i) * 140ms + 350ms);
}
@keyframes wordIn {
  from { opacity: 0; transform: translate3d(0, .35em, 0); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
.hero__kicker { animation: kickerIn 1s var(--ease) .15s backwards; }
@keyframes kickerIn { from { opacity: 0; } }
.chapter__link {
  display: inline-flex; opacity: 0; margin-top: 1.4rem; pointer-events: auto;
  font: 500 .95rem/1 var(--sans); font-style: normal; letter-spacing: .03em; text-shadow: none;
  color: var(--champagne); text-decoration: none; padding-bottom: 4px;
  border-bottom: 1px solid rgba(231, 218, 191, .6);
}
.chapter__link:hover { color: var(--ivory); border-color: var(--ivory); }

/* Jahreszeiten-Zeitleiste */
.hero__seasons {
  position: absolute; right: clamp(1.25rem, 3vw, 2.5rem); top: 50%; transform: translateY(-50%);
  padding: 0 0 0 1.1rem; color: var(--ivory); transition: opacity .6s var(--ease);
}
.hero__seasons ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.hero__seasons::before, .hero__seasons-fill {
  content: ""; position: absolute; left: 0; top: .35rem; bottom: .35rem; width: 1px;
  background: rgba(246, 242, 232, .28);
}
.hero__seasons-fill { background: var(--gold-light); transform-origin: top; transform: scaleY(0); }
.hero__seasons button {
  background: none; border: 0; padding: .1rem 0; cursor: pointer; color: inherit;
  font: 400 .82rem/1.2 var(--sans); letter-spacing: .06em; text-align: left;
  opacity: .62; text-shadow: 0 1px 12px rgba(10, 18, 13, .55);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.hero__seasons button:hover { opacity: .85; }
.hero__seasons button[aria-current="step"] { opacity: 1; transform: translateX(4px); }
.hero.is-finale .hero__seasons { opacity: 0; pointer-events: none; }
@media (max-width: 900px) { .hero__seasons { display: none; } }

/* Mobile: dünne Fortschrittslinie statt Zeitleiste */
.hero__progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(246, 242, 232, .14);
  display: none;
}
.hero__progress span { position: absolute; inset: 0; background: var(--gold-light); transform-origin: left; transform: scaleX(0); }
@media (max-width: 900px) { .hero__progress { display: block; } }
.hero.is-finale .hero__progress { opacity: 0; transition: opacity .5s var(--ease); }

/* Scroll-Hinweis */
.hero__hint {
  position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 1.75rem);
  transform: translateX(-50%); display: grid; justify-items: center; gap: .6rem;
  color: var(--ivory); font: 400 .78rem var(--sans); letter-spacing: .1em; opacity: .85;
}
.hero__hint span { width: 1px; height: 44px; background: rgba(246, 242, 232, .3); position: relative; overflow: hidden; }
.hero__hint span::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: var(--ivory); animation: hint 2.2s var(--ease) infinite;
}
@keyframes hint { to { top: 100%; } }
@media (max-width: 640px) { .hero__hint { display: none; } }

/* Finale: Logo-Reveal */
.hero__finale {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  padding: 6rem 1.5rem 7rem; text-align: center; color: var(--ivory); pointer-events: none;
}
.hero__logo {
  width: min(88vw, 820px); color: var(--ivory);
  clip-path: inset(0 100% 0 0); opacity: 0;
  filter: drop-shadow(0 6px 30px rgba(8, 14, 10, .35));
  will-change: clip-path, opacity, transform;
}
.hero__logo svg { width: 100%; height: auto; }
.hero__rule { width: 72px; height: 1px; background: var(--gold-light); margin: clamp(1.5rem, 3vh, 2.25rem) 0 1.1rem; transform: scaleX(0); }
.hero__tagline {
  margin: 0; font: 400 clamp(.95rem, 1.3vw, 1.1rem)/1.5 var(--sans); letter-spacing: .04em;
  color: var(--champagne); opacity: 0; text-wrap: balance; max-width: 44ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.75rem; opacity: 0; }
.hero.is-finale .hero__finale { pointer-events: auto; }

/* ---------- Folge-Abschnitt (Platzhalter) ---------- */
.intro {
  max-width: 1180px; margin: 0 auto; padding: clamp(5rem, 12vw, 9rem) clamp(1.25rem, 5vw, 3rem);
  display: grid; gap: 2.5rem;
}
@media (min-width: 900px) { .intro { grid-template-columns: 1.1fr 1fr; align-items: end; } }
.intro h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1.05; max-width: 14ch; }
.intro p { margin: 0 0 1rem; color: var(--page-muted); max-width: 52ch; font-size: 1.05rem; }

/* ---------- Mobile Sticky-CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(23, 40, 30, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(184, 149, 90, .35);
  transform: translateY(100%); transition: transform .5s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta a {
  display: grid; place-items: center; min-height: 58px; color: var(--ivory);
  font: 500 .9rem var(--sans); letter-spacing: .03em; text-decoration: none;
}
.mobile-cta a + a { border-left: 1px solid rgba(246, 242, 232, .12); }
.mobile-cta a.is-primary { background: var(--gold); color: var(--forest); }
@media (min-width: 900px) { .mobile-cta { display: none; } }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero__stage { position: relative; }
  .hero__canvas, .hero__seasons, .hero__hint, .hero__progress, .hero__copy > .chapter { display: none; }
  /* H1 bleibt für Screenreader und Suchmaschinen erhalten, nur unsichtbar */
  .hero__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hero__hint span::after, .hero__kicker { animation: none; }
  .hero__veil { opacity: 1; }
  .hero__logo { clip-path: none; opacity: 1; }
  .hero__rule { transform: none; }
  .hero__tagline, .hero__actions { opacity: 1; }
  .hero__finale { pointer-events: auto; }
}
