@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(schrift/cormorant-garamond-normal-400-latin-09.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(schrift/cormorant-garamond-italic-400-latin-07.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap; src: url(schrift/cormorant-garamond-italic-300-latin-59.woff2) format("woff2"); }
@font-face { font-family: "Cormorant SC"; font-style: normal; font-weight: 500; font-display: swap; src: url(schrift/cormorant-sc-normal-500-latin-63.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url(schrift/hanken-grotesk-normal-400-latin-71.woff2) format("woff2"); }

:root {
  --tinte: #1b1f24;
  --grund: #f6f4ef;
  --flaeche: #fffdf8;
  --leise: #5c6168;
  --gold: #f4dc7a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sc: "Cormorant SC", "Cormorant Garamond", Georgia, serif;
  --text: "Hanken Grotesk", system-ui, sans-serif;
  --rand: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { background: var(--grund); color: var(--tinte); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.55 var(--text); overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--tinte); outline-offset: 3px; border-radius: 4px; }

.strecke { width: 1px; }

/* Bühne */
.buehne { position: fixed; inset: 0; width: 100%; height: 100%; display: block; background: var(--grund); }
.blitz {
  position: fixed; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 50% 45%, #fffdf8 0%, rgba(255, 249, 232, .92) 40%, rgba(246, 236, 210, .55) 100%);
}

/* Kopf */
.kopf {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) var(--rand) 28px;
  background: linear-gradient(to bottom, rgba(246, 244, 239, .82), rgba(246, 244, 239, 0));
}
.kopf-logo img { display: block; height: 34px; width: auto; }
.kopf-rechts { display: flex; align-items: center; gap: 22px; }
.springen, .ton {
  font: 500 14px/1 var(--sc); letter-spacing: .18em; text-transform: lowercase;
  color: var(--tinte); text-decoration: none; background: none; border: 0; padding: 8px 0; cursor: pointer;
}
.springen:hover, .ton:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.ton { display: inline-flex; align-items: center; gap: 9px; }
.ton-wellen { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.ton-wellen i { width: 2px; height: 3px; background: var(--tinte); border-radius: 1px; transition: height .3s; }
.ton[aria-pressed="true"] .ton-wellen i { animation: welle 1.1s ease-in-out infinite; }
.ton[aria-pressed="true"] .ton-wellen i:nth-child(2) { animation-delay: -.3s; }
.ton[aria-pressed="true"] .ton-wellen i:nth-child(3) { animation-delay: -.6s; }
.ton[aria-pressed="true"] .ton-wellen i:nth-child(4) { animation-delay: -.85s; }
@keyframes welle { 0%, 100% { height: 3px; } 50% { height: 12px; } }

/* Schleier: Anfang und Ende */
.schleier {
  position: fixed; inset: 0; z-index: 3;
  display: grid; place-items: center; text-align: center;
  padding: 90px var(--rand) 120px;
  background: radial-gradient(ellipse 70% 62% at 50% 50%, rgba(246, 244, 239, .93) 0%, rgba(246, 244, 239, .8) 45%, rgba(246, 244, 239, .18) 80%, rgba(246, 244, 239, 0) 100%);
  pointer-events: none;
}
.schleier-ende { opacity: 0; }
.schleier.aktiv { pointer-events: auto; }
.schleier-inhalt { max-width: 40rem; }
.kicker { font: 500 14px/1.3 var(--sc); letter-spacing: .22em; text-transform: lowercase; margin: 0 0 18px; color: var(--tinte); }
h1, h2 {
  font: italic 300 clamp(2.5rem, 6.4vw, 5.4rem)/1.02 var(--serif);
  letter-spacing: -.01em; margin: 0 0 22px; text-wrap: balance;
}
.unterzeile { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--leise); max-width: 30rem; margin: 0 auto; text-wrap: pretty; }
.scroll-hinweis { margin: 44px 0 0; display: inline-flex; flex-direction: column; align-items: center; gap: 12px; font: 500 13px/1 var(--sc); letter-spacing: .24em; text-transform: lowercase; }
.scroll-hinweis i { width: 1px; height: 46px; background: linear-gradient(var(--tinte), transparent); transform-origin: top; animation: tropfen 2.2s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes tropfen { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.knopf {
  display: inline-block; margin-top: 30px; padding: 16px 30px; border-radius: 999px;
  background: var(--tinte); color: var(--grund); text-decoration: none;
  font: 500 15px/1 var(--text); letter-spacing: .02em;
  transition: transform .25s ease, box-shadow .25s ease;
}
.knopf:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(27, 31, 36, .7); }
.mail { margin: 16px 0 0; font-size: 14px; color: var(--leise); }

/* Stationskarten */
.stationen { list-style: none; margin: 0; padding: 0; }
.karte {
  position: fixed; z-index: 3; left: var(--rand); bottom: clamp(110px, 15vh, 160px);
  width: min(27rem, calc(100vw - 2 * var(--rand)));
  opacity: 0; pointer-events: none; will-change: opacity, transform;
}
.karte::before {
  content: ""; position: absolute; z-index: -1; inset: -70px -110px -60px -90px;
  background: radial-gradient(ellipse at 40% 55%, rgba(246, 244, 239, .9) 0%, rgba(246, 244, 239, .72) 42%, rgba(246, 244, 239, 0) 72%);
}
.karte .kicker { margin-bottom: 4px; }
.uhr { font: italic 300 clamp(4rem, 8vw, 6.6rem)/.95 var(--serif); margin: 0; font-variant-numeric: lining-nums tabular-nums; }
.zeile { font: italic 400 clamp(1.35rem, 2.1vw, 1.7rem)/1.25 var(--serif); margin: 10px 0 0; }
.zeile::before { content: ""; display: block; width: 54px; height: 1px; background: var(--tinte); margin: 0 0 14px; opacity: .5; }
.notiz { margin: 12px 0 0; font-size: 15px; color: var(--leise); max-width: 23rem; }

/* Tageslauf */
.leiste {
  position: fixed; z-index: 4; left: 50%; bottom: max(26px, calc(env(safe-area-inset-bottom) + 14px));
  width: min(640px, calc(100vw - 2 * var(--rand))); transform: translateX(-50%);
  height: 34px; opacity: 0;
}
.leiste::before {
  content: ""; position: absolute; z-index: -1; inset: -26px -70px -22px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(246, 244, 239, .9) 0%, rgba(246, 244, 239, .75) 55%, rgba(246, 244, 239, 0) 100%);
}
.leiste-linie { position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: rgba(27, 31, 36, .22); }
.leiste-fuellung { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--tinte); }
.leiste-punkt {
  position: absolute; top: 1px; left: 0; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 1px var(--tinte), 0 0 14px 3px rgba(244, 220, 122, .75);
}
.leiste-zeiten { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; top: 16px; display: flex; justify-content: space-between; }
.leiste-zeiten li { font: 500 12px/1 var(--sc); letter-spacing: .12em; color: var(--leise); width: 0; display: flex; justify-content: center; white-space: nowrap; transition: color .3s; }
.leiste-zeiten li.da { color: var(--tinte); }

/* Fuß */
.fuss { position: fixed; z-index: 4; right: var(--rand); bottom: max(22px, env(safe-area-inset-bottom)); display: flex; gap: 18px; font-size: 13px; opacity: 0; pointer-events: none; }
.fuss.aktiv { pointer-events: auto; }
.fuss a { color: var(--leise); text-underline-offset: 3px; }

/* Laden */
.laden { position: fixed; inset: 0; z-index: 10; display: grid; place-content: center; justify-items: center; gap: 26px; background: var(--grund); transition: opacity .9s ease, visibility .9s; }
.laden.weg { opacity: 0; visibility: hidden; }
.laden img { width: 64px; height: auto; animation: atmen 2.4s ease-in-out infinite; }
@keyframes atmen { 50% { transform: scale(1.04); opacity: .85; } }
.laden-linie { width: 120px; height: 1px; background: rgba(27, 31, 36, .15); position: relative; overflow: hidden; }
.laden-linie span { position: absolute; inset: 0; background: var(--tinte); transform: scaleX(0); transform-origin: left; transition: transform .3s; }

/* Handy */
@media (max-width: 700px) {
  .kopf { padding-bottom: 22px; }
  .kopf-logo img { height: 28px; }
  .springen { display: none; }
  .karte { left: var(--rand); right: var(--rand); width: auto; bottom: 88px; }
  .karte::before { inset: -80px -40px -40px -40px; background: linear-gradient(to top, rgba(246, 244, 239, .94) 0%, rgba(246, 244, 239, .86) 60%, rgba(246, 244, 239, 0) 100%); }
  .uhr { font-size: 3.6rem; }
  .notiz { font-size: 14px; }
  .leiste-zeiten li { font-size: 11px; letter-spacing: .06em; }
  .fuss { left: 0; right: 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hinweis i, .laden img, .ton-wellen i { animation: none !important; }
}
