/* =====================================================================
   Aristokrat Roleplay · Startseite
   Filmischer Bildlauf: Nachtszene, drei Sätze, drei Briefe, Schauplätze,
   Stand der Dinge, Einstieg. Alles ist ohne JavaScript vollständig sichtbar,
   Ausgangszustände für Bewegungen setzt erst home.js.
   ===================================================================== */

.defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
/* Pins verschieben Inhalte; die Scroll-Verankerung des Browsers würde dabei die Lesestelle
   um die Pin-Länge versetzen (z. B. nach einem Wechsel der Fenstergröße) */
html { overflow-anchor: none; }

/* =====================================================================
   1 · HERO
   ===================================================================== */
.hm {
  --hh: max(100svh, 640px);
  --tk: 54px;
  --bal-h: clamp(124px, calc(var(--hh) * .2), 214px);
  --sw: max(100vw, calc(var(--hh) * 1.6)); /* Bühnenbreite */
  --fx: 1;         /* schmaler als 16:10: Bühne rechtsbündig, die Akademie bleibt im Bild */
  --fy: .34;
  --moon-x: 21vw;  /* Mond in Bildschirm-Koordinaten */
  position: relative;
  z-index: 1;
  height: var(--hh);
  overflow: hidden;
  isolation: isolate;
  background: #05080f;
}
.hm__scene { position: absolute; inset: 0; overflow: hidden; }

/* Bühne mit festem Seitenverhältnis 16:10, deckt den Hero ab; der Fokuspunkt
   (--fx/--fy) bestimmt, welcher Ausschnitt bei schmalen Bildschirmen bleibt. */
.hm__stage {
  position: absolute;
  width: max(100%, calc(var(--hh) * 1.6));
  aspect-ratio: 16 / 10;
  left: calc(100% * var(--fx));
  top: calc(var(--hh) * var(--fy));
  translate: calc(-100% * var(--fx)) calc(-100% * var(--fy));
  /* Kamerafahrt: home.js liest den Ursprung aus der Lage der Akademie (--push-o)
     und bewegt nur --push / --sy, nie transform selbst (sonst friert GSAP die Lage ein) */
  transform-origin: var(--push-o, 81% 36%);
  transform: translateY(calc(var(--sy) + var(--sty, 0px))) scale(var(--push));
  background: linear-gradient(to bottom,
    #02040a 0%, #050a16 14%, #0a1324 30%, #111d33 44%, #1a2943 52%, #25354f 57.4%, #2c3c58 58%,
    #18243a 58.2%, #101b2f 63%, #0b1324 72%, #070c18 86%, #05080f 100%);
}
@property --push { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --sy { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.hm__layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hm__stage, .hm__bal, .hm__content { will-change: transform; }
.hm__stars { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Mond mit Hof */
.hm__moon { position: absolute; left: calc(var(--moon-x) - (100vw - var(--sw)) * var(--fx)); top: 14%; width: 4.1%; aspect-ratio: 1; }
.hm__halo {
  position: absolute; left: 50%; top: 50%; width: 1300%; aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 214, 245, .22), rgba(150, 172, 220, .09) 30%, rgba(120, 140, 200, .03) 55%, transparent 75%);
}
.hm__disc {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 63% 58%, rgba(150, 140, 115, .28) 0 9%, transparent 10%),
    radial-gradient(circle at 36% 66%, rgba(150, 140, 115, .22) 0 6%, transparent 7%),
    radial-gradient(circle at 56% 30%, rgba(150, 140, 115, .2) 0 7%, transparent 8%),
    radial-gradient(circle at 30% 40%, rgba(150, 140, 115, .14) 0 12%, transparent 13%),
    radial-gradient(circle at 38% 36%, #fffbf0 0%, #f4ecd6 42%, #ddd3b8 74%, #c3b99d 100%);
  box-shadow: 0 0 14px 3px rgba(255, 246, 220, .45), 0 0 46px 14px rgba(196, 212, 245, .2), 0 0 120px 40px rgba(150, 172, 225, .1);
}

/* Dünne Wolkenfetzen im Mondlicht */
.hm__cloud {
  position: absolute; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(170, 186, 220, .2), rgba(140, 158, 200, .07) 60%, transparent);
  animation: hm-drift 90s linear infinite alternate;
}
.hm__cloud.c1 { left: 9%; top: 17.5%; width: 34%; height: 2.4%; }
.hm__cloud.c2 { left: 25%; top: 22%; width: 24%; height: 1.6%; opacity: .75; animation-duration: 70s; animation-direction: alternate-reverse; }
.hm__cloud.c3 { left: 50%; top: 8%; width: 32%; height: 2%; opacity: .5; animation-duration: 110s; }

/* Nebelbänder */
.hm__fog { pointer-events: none; }
.hm__fog i {
  position: absolute; left: -20%; width: 140%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(150, 172, 212, .17), rgba(150, 172, 212, .07) 55%, transparent);
  will-change: transform;
}
.hm__fog .f1 { top: 51%; height: 13%; animation: hm-drift 64s linear infinite alternate; }
.hm__fog .f2 { top: 57%; height: 10%; opacity: .85; animation: hm-drift 48s -18s linear infinite alternate-reverse; }
.hm__fog .f3 { top: 63%; height: 18%; opacity: .55; animation: hm-drift 80s -40s linear infinite alternate; }
.hm__fog .f4 { top: 49%; left: 58%; width: 56%; height: 12%; opacity: .9; animation: hm-drift 38s -9s ease-in-out infinite alternate; }
@keyframes hm-drift { from { transform: translateX(-5%); } to { transform: translateX(5%); } }

/* Fensterlicht der Akademie */
@keyframes hm-glow { from { opacity: .8; } to { opacity: 1; } }
.hm__smoke path { transform-box: fill-box; transform-origin: 50% 100%; animation: hm-smoke 9s ease-in-out infinite; }
.hm__smoke .s2 { animation-delay: -4s; animation-duration: 11s; }
@keyframes hm-smoke { 0%, 100% { transform: translateY(0) scaleY(.9) skewX(0deg); opacity: .55; } 50% { transform: translateY(-6px) scaleY(1.1) skewX(-7deg); opacity: 1; } }
.hm__vlights { animation: hm-glow 4s ease-in-out infinite alternate; }

/* Dichter Nebel, der beim Bildlauf aufzieht (Ruhezustand: unsichtbar) */
.hm__fogx {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background:
    radial-gradient(ellipse 120% 42% at 62% 58%, rgba(122, 142, 184, .42), rgba(100, 120, 164, .18) 45%, transparent 76%),
    linear-gradient(to bottom, transparent 28%, rgba(28, 38, 58, .4) 58%, rgba(15, 13, 11, .2) 92%);
}

/* Goldene Schwebeteilchen */
.hm__motes-l { position: absolute; inset: 0; pointer-events: none; }
.hm__motes { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Balustrade der Terrasse (Vordergrund) */
.hm__bal { position: absolute; inset: 0; pointer-events: none; }
.bal__wrap { position: absolute; left: -48px; right: -48px; bottom: calc(var(--tk) - 2px); height: var(--bal-h); }
.bal__run { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bal__post { position: absolute; bottom: 0; width: calc(var(--bal-h) * .5); height: 100%; }
.bal__post--l { left: calc(48px + clamp(6px, 4vw, 90px)); }
.bal__post--r { right: calc(48px + clamp(6px, 4vw, 90px)); }
.bal__ped { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bal__lantern {
  position: absolute; bottom: calc(100% - 2px);
  width: calc(var(--bal-h) * .62); height: calc(var(--bal-h) * 1.34);
  left: calc(50% - var(--bal-h) * .31);
}
.bal__urn {
  position: absolute; bottom: calc(100% - 4px);
  width: calc(var(--bal-h) * 1.06); height: calc(var(--bal-h) * 1.29);
  left: calc(50% - var(--bal-h) * .53);
}
.bal__glow {
  position: absolute; left: 50%; bottom: calc(100% + var(--bal-h) * .55);
  width: calc(var(--bal-h) * 2.5); aspect-ratio: 1;
  translate: -50% 50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 206, 130, .24), rgba(255, 166, 84, .08) 36%, rgba(255, 140, 60, .025) 62%, transparent);
  animation: hm-flicker 2.8s linear infinite;
}
.bal__light {
  position: absolute; left: 0; bottom: 0; width: min(56vw, 720px); height: 100%;
  background: radial-gradient(ellipse 46% 34% at 15% 4%, rgba(255, 190, 115, .16), rgba(255, 160, 80, .04) 55%, transparent 75%);
  animation: hm-flicker 2.8s linear infinite;
}
.bal__flame { transform-box: fill-box; transform-origin: 50% 90%; animation: hm-flame 1.3s ease-in-out infinite alternate; }
.bal__glass { animation: hm-flicker 2.8s linear infinite; }
@keyframes hm-flame { 0% { transform: scale(1, 1); } 35% { transform: scale(.94, 1.08) skewX(2deg); } 70% { transform: scale(1.03, .95) skewX(-2deg); } 100% { transform: scale(.98, 1.04); } }
@keyframes hm-flicker {
  0% { opacity: .92; } 7% { opacity: .76; } 10% { opacity: 1; } 24% { opacity: .9; } 27% { opacity: .68; }
  30% { opacity: .96; } 48% { opacity: .86; } 52% { opacity: 1; } 66% { opacity: .82; } 69% { opacity: .95; }
  84% { opacity: .74; } 88% { opacity: 1; } 100% { opacity: .92; }
}
/* Verborgene Inschrift im Handlauf: nur im Zeigerlicht */
.bal__inscr {
  position: absolute; left: 0; right: 0;
  top: calc(var(--bal-h) * .085); height: calc(var(--bal-h) * .11);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--rune); font-size: calc(var(--bal-h) * .1); line-height: 1;
  letter-spacing: .95em; padding-left: .95em;
  color: rgba(0, 0, 0, .34);
  text-shadow: 0 1px 0 rgba(170, 176, 196, .1);
  white-space: nowrap;
}
.bal__reveal { position: absolute; inset: 0; }
.bal__inscr--lit { color: #ffe3a8; text-shadow: 0 0 6px rgba(255, 214, 140, .95), 0 0 20px rgba(201, 169, 106, .7); }

.hm .lumos { z-index: 1; opacity: calc(var(--lo, 0) * var(--lf, 1)); }
.hm__vig {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 80% at 50% 46%, transparent 52%, rgba(2, 3, 6, .62) 100%),
    linear-gradient(to bottom, rgba(2, 3, 7, .72), rgba(2, 3, 7, 0) 18%, rgba(2, 3, 7, 0) 72%, rgba(2, 3, 7, .35));
}
.hm__dissolve {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  /* Nachtblau statt Braun: oben bleibt die Nacht schwach im Bild, unten geht es in den Grund über */
  background: linear-gradient(to bottom, rgba(5, 8, 15, .3), rgba(5, 8, 15, .64) 36%, rgba(7, 9, 13, .9) 68%, var(--bg) 94%);
}
.hm__dim { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: #020306; }

/* Außerhalb des Bildes ruhen alle Dauerschleifen des Hero (home.js setzt .is-off) */
.hm.is-off *, .hm.is-off *::before, .hm.is-off *::after { animation-play-state: paused !important; }

/* Inhalt */
.hm__content {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--hd-h) + 8px) var(--gut) calc(var(--tk) + var(--bal-h) * .5);
  text-align: center;
  transform-origin: 50% 45%;
}
.hm__content::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 46%;
  width: min(1240px, 110vw); height: 72%; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(3, 4, 8, .56), rgba(3, 4, 8, .3) 55%, transparent);
  pointer-events: none;
}
.hm__eyebrow { margin-bottom: clamp(14px, 2.4vh, 26px); text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 0 12px rgba(0, 0, 0, .7); }
.hm__title { display: grid; justify-items: center; margin: 0; line-height: 1; }
.hm__wm {
  display: block;
  font: 600 min(var(--fs-mega), 10.6vw)/.92 var(--display);
  letter-spacing: .14em; padding-left: .14em;
  color: var(--gold-hi);
  white-space: nowrap;
  text-shadow: 0 2px 3px rgba(0, 0, 0, .7), 0 0 34px rgba(201, 169, 106, .28), 0 0 90px rgba(0, 0, 0, .55);
}
.hm__orn { display: flex; align-items: center; justify-content: center; gap: 16px; width: min(72%, 620px); margin-top: clamp(12px, 2vh, 22px); }
.hm__orn i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hm__orn i:first-child { transform-origin: 100% 50%; }
.hm__orn i:last-child { background: linear-gradient(270deg, transparent, var(--gold)); transform-origin: 0 50%; }
.hm__orn b {
  position: relative; flex: none; width: 15px; height: 15px;
  border: 1.4px solid var(--gold-hi); background: rgba(201, 169, 106, .2); transform: rotate(45deg);
  box-shadow: 0 0 16px rgba(240, 220, 174, .55), 0 0 42px rgba(201, 169, 106, .28), inset 0 0 5px rgba(240, 220, 174, .3);
}
.hm__orn b::before { content: ""; position: absolute; inset: 3.6px; background: var(--gold-hi); opacity: .9; }
.hm__orn b::after { content: ""; position: absolute; inset: -1.4px; border: 1px solid var(--gold-hi); opacity: 0; }
/* Puls wie die Raute im Spiel; erst nach dem Ladeablauf (home.js setzt .is-lit) */
.hm__orn.is-lit b::after { animation: hm-beacon 3.2s .05s ease-out infinite; }
@keyframes hm-beacon { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(2.3); opacity: 0; } }
.hm__sub {
  display: block; margin-top: clamp(10px, 1.6vh, 16px);
  font: 500 clamp(12px, 1.15vw, 16px)/1 var(--display);
  letter-spacing: .66em; padding-left: .66em; text-transform: uppercase;
  color: var(--gold); text-shadow: 0 1px 2px rgba(0, 0, 0, .9);
}
.hm__claim {
  max-width: 36em; margin-top: clamp(18px, 3vh, 32px);
  font-size: var(--fs-lede); line-height: 1.5; color: var(--ink);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 0 20px rgba(0, 0, 0, .7);
  text-wrap: balance;
}
.hm__ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 26px; margin-top: clamp(18px, 3.2vh, 34px); }
.hm__status { margin-top: clamp(10px, 1.8vh, 18px); }
.hm__status .st { text-shadow: 0 1px 2px rgba(0, 0, 0, .95); }

.hm__cue {
  position: absolute; z-index: 4; right: max(var(--gut), env(safe-area-inset-right, 0px));
  bottom: calc(var(--tk) + var(--bal-h) + 22px);
  min-width: 44px; padding: 6px 0;
  text-decoration: none; color: var(--gold);
  font: 500 10.5px/1 var(--display); letter-spacing: .3em; text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9);
}
.hm__cue-in { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hm__cue-in span { writing-mode: vertical-rl; }
.hm__cue i { display: block; width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); transform-origin: 50% 0; animation: hm-cue 2.6s var(--ease) infinite; }
.hm__cue:hover, .hm__cue:focus-visible { color: var(--gold-hi); }
@keyframes hm-cue { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(10px); opacity: 0; } }

.hm__ticker {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0;
  height: var(--tk); padding-block: 0;
  display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(var(--veil), .95), rgba(var(--veil), .84) 22%, rgba(var(--veil), .84) 78%, rgba(var(--veil), .95));
  border-bottom: 0;
}

/* =====================================================================
   2 · DREI SÄTZE
   ===================================================================== */
.pl { position: relative; z-index: 0; overflow: clip; padding-block: clamp(48px, 5vw, 80px) clamp(80px, 10vw, 160px); background: var(--bg); }
/* Mit Pin (home.js setzt .is-over): der Prolog steigt über das Ende der Hero-Fahrt,
   die erste Zeile kommt über der verblassenden Nacht herauf statt nach einer leeren Strecke */
.pl.is-over {
  --over: 50vh;
  z-index: 2;
  margin-top: calc(var(--over) * -1);
  padding-top: calc(var(--over) * .44);
  background: linear-gradient(to bottom, rgba(15, 13, 11, 0), rgba(15, 13, 11, .74) calc(var(--over) * .26), var(--bg) calc(var(--over) * .46));
}
.pl.is-over .pl__eyebrow { margin-bottom: clamp(32px, 4vw, 64px); }
.pl__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 26% at 30% 22%, rgba(38, 56, 92, .14), transparent 70%),
    radial-gradient(ellipse 40% 30% at 85% 60%, rgba(201, 169, 106, .04), transparent 70%);
}
.pl__eyebrow { margin-bottom: clamp(40px, 6vw, 90px); }
.pl__item { position: relative; display: grid; gap: clamp(18px, 2.2vw, 28px); padding-block: clamp(14px, 2.4vw, 36px); }
.pl__item--l { justify-items: start; text-align: left; }
.pl__item--r { justify-items: end; text-align: right; }
.pl__line {
  font-size: var(--fs-1); font-weight: 500; letter-spacing: .01em; line-height: 1.04;
  color: var(--gold-hi); max-width: 14.5em; text-wrap: balance;
  text-shadow: 0 0 40px rgba(201, 169, 106, .12);
}
.pl__ink {
  --sweep: 0%;
  display: inline-block;
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  -webkit-mask-size: 230% 100%; mask-size: 230% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: var(--sweep) 0; mask-position: var(--sweep) 0;
}
.pl__num {
  position: absolute; top: 50%; z-index: -1; translate: 0 -50%;
  font: 500 clamp(130px, 21vw, 330px)/1 var(--display);
  color: transparent; -webkit-text-stroke: 1px rgba(201, 169, 106, .08);
  pointer-events: none; user-select: none;
}
.pl__item--l .pl__num { right: 0; }
.pl__item--r .pl__num { left: 0; }
.pl__cap { display: grid; gap: 14px; max-width: 46ch; justify-items: inherit; }
.pl__cap p { color: var(--ink-2); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.62; }
.pl__rule { display: flex; align-items: center; gap: 16px; margin-block: clamp(26px, 4vw, 60px); }
.pl__rule i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 169, 106, .3) 40%, rgba(201, 169, 106, .7)); }
.pl__rule--l i { background: linear-gradient(270deg, transparent, rgba(201, 169, 106, .3) 40%, rgba(201, 169, 106, .7)); }
.pl__rule--r i { transform-origin: 0 50%; }
.pl__rule--l i { transform-origin: 100% 50%; }
.pl__rule b { flex: none; width: 9px; height: 9px; border: 1.3px solid var(--gold); transform: rotate(45deg); }

/* =====================================================================
   3 · POST FÜR DICH
   ===================================================================== */
.post { position: relative; z-index: 0; overflow: clip; background: var(--bg); }
.post__pin {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-content: center;
  padding-block: calc(var(--hd-h) + 4px) clamp(40px, 5vh, 64px);
}
.post__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 42% at 50% 62%, rgba(201, 169, 106, .09), transparent 70%),
    radial-gradient(ellipse 70% 26% at 50% 24%, rgba(34, 50, 84, .2), transparent 75%);
}
.post__dia { position: absolute; left: 50%; top: 58%; width: min(70vw, 760px); aspect-ratio: 1; translate: -50% -50%; rotate: 45deg; border: 1px solid rgba(201, 169, 106, .06); }
.post__dia::after { content: ""; position: absolute; inset: 9%; border: 1px solid rgba(201, 169, 106, .04); }
.post__in { position: relative; }
.post__head { margin-bottom: clamp(26px, 4.4vh, 56px); gap: 14px; }
.post__head .lede { color: var(--mute); font-style: italic; }
.post__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3.4vw, 60px); max-width: 1200px; margin-inline: auto;
  perspective: 1600px;
}
.lt { position: relative; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 16px; min-width: 0; }
.lt__tab { grid-row: 1; }
.lt__fly, .lt__slot { grid-row: 2; grid-column: 1; }
.lt__more { grid-row: 3; }
/* Landeplatz: leiser Goldrahmen mit Eckwinkeln und Raute, nur solange der Brief fliegt (home.js) */
.lt__slot {
  align-self: stretch; justify-self: center;
  width: calc(100% - 14px); max-width: 370px; margin-block: 7px;
  pointer-events: none;
  border: 1px solid rgba(201, 169, 106, .12);
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 16px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) 0 0 / 1px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 100% 0 / 16px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) 100% 0 / 1px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 100% / 16px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) 0 100% / 1px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 100% 100% / 16px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) 100% 100% / 1px 16px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.5 18.5 10 10 18.5 1.5 10Z' fill='none' stroke='%23c9a96a' stroke-opacity='.55' stroke-width='1.1'/%3E%3C/svg%3E") 50% 50% / 16px 16px no-repeat,
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(201, 169, 106, .05), transparent 72%);
  opacity: .7;
}
.lt__tab {
  display: flex; align-items: center; gap: 12px;
  font: 500 12.5px/1.2 var(--display); letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); white-space: nowrap;
}
.lt__tab::before, .lt__tab::after { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.lt__tab::after { background: linear-gradient(270deg, transparent, var(--gold)); }
.lt__fly { position: relative; z-index: 1; width: 100%; max-width: 384px; will-change: transform; }
.lt__tilt {
  height: 100%;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .2s linear;
}
/* Alle drei Briefe so hoch wie der längste, damit keiner eine leere Mitte hat */
.lt__sheet { position: relative; height: 100%; display: flex; flex-direction: column; filter: drop-shadow(0 20px 24px rgba(0, 0, 0, .62)); }
.lt--1 .lt__sheet { rotate: -1.2deg; }
.lt--2 .lt__sheet { rotate: .6deg; }
.lt--3 .lt__sheet { rotate: 1.4deg; }
.lt__paper {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; flex: 1 1 auto;
  min-height: clamp(330px, 44vh, 400px);
  padding: clamp(26px, 3.4vh, 36px) clamp(22px, 2vw, 30px) clamp(46px, 6vh, 58px);
  color: var(--ink-paper);
  background:
    radial-gradient(ellipse 70% 60% at 50% 42%, rgba(255, 248, 226, .6), rgba(255, 248, 226, 0) 70%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0) 58%, rgba(128, 84, 36, .22) 84%, rgba(96, 58, 22, .55) 100%),
    radial-gradient(circle at 14% 86%, rgba(150, 100, 45, .2), rgba(150, 100, 45, 0) 15%),
    radial-gradient(circle at 89% 10%, rgba(150, 100, 45, .14), rgba(150, 100, 45, 0) 10%),
    radial-gradient(circle at 70% 62%, rgba(150, 100, 45, .07), rgba(150, 100, 45, 0) 22%),
    #ead9b0;
  clip-path: polygon(0 .5%, 22% 0, 22.6% 1.4%, 23.5% .1%, 61% .5%, 100% 0, 99.6% 36%, 97.6% 37.6%, 99.7% 38.6%, 100% 71%, 99.5% 100%, 71% 99.4%, 70.1% 97.9%, 69.2% 99.6%, 12% 100%, 0 99.3%, .5% 64%, 2.2% 64.8%, .3% 65.7%);
}
.lt__paper::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, transparent calc(33.3% - 1px), rgba(255, 250, 232, .55) calc(33.3% - 1px), rgba(255, 250, 232, .55) 33.3%, rgba(110, 72, 28, .22) 33.3%, rgba(110, 72, 28, .06) calc(33.3% + 3px), transparent calc(33.3% + 3px)),
    linear-gradient(to bottom, transparent calc(66.6% - 1px), rgba(255, 250, 232, .5) calc(66.6% - 1px), rgba(255, 250, 232, .5) 66.6%, rgba(110, 72, 28, .2) 66.6%, rgba(110, 72, 28, .05) calc(66.6% + 3px), transparent calc(66.6% + 3px));
}
.lt__tex { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; pointer-events: none; }
.lt__to { position: relative; font: 400 clamp(27px, 2.4vw, 34px)/1.15 var(--script); color: var(--ink-paper); margin-bottom: clamp(10px, 1.6vh, 16px); padding-right: 64px; }
.lt__body { position: relative; font: 400 clamp(16.5px, 1.3vw, 19px)/1.56 var(--hand); color: var(--ink-paper); text-shadow: 0 0 .6px rgba(43, 27, 13, .5); hyphens: manual; overflow-wrap: break-word; }
.lt__sig { position: relative; margin-top: auto; padding-top: clamp(16px, 2.4vh, 26px); display: flex; justify-content: flex-end; }
.lt__sig span { font: 400 clamp(21px, 1.8vw, 25px)/1 var(--script); color: #3a2614; padding-top: 8px; border-top: 1px solid rgba(138, 106, 58, .45); }
.lt__seal {
  position: absolute; left: 22px; bottom: -24px; width: clamp(64px, 5.6vw, 78px); height: auto; aspect-ratio: 1;
  filter: drop-shadow(0 4px 4px rgba(40, 10, 5, .45));
  transition: filter .5s var(--ease), scale .5s var(--pop);
}
.lt__tilt:hover .lt__seal { filter: drop-shadow(0 4px 4px rgba(40, 10, 5, .45)) drop-shadow(0 0 16px rgba(240, 220, 174, .6)); scale: 1.05; }
.lt__pm { position: absolute; top: 12px; right: 12px; width: 70px; height: 70px; rotate: -14deg; opacity: .5; mix-blend-mode: multiply; pointer-events: none; }
.lt__more { margin-top: 18px; }
.lt__more, .stand__head .lnk, .ein__more .lnk { min-height: 44px; }

.post__owl { position: absolute; z-index: 1; left: 0; top: 13%; width: clamp(70px, 7vw, 110px); pointer-events: none; opacity: 0; }

/* =====================================================================
   4 · SCHAUPLÄTZE
   ===================================================================== */
.orte { position: relative; z-index: 0; overflow: clip; background: var(--bg); }
.orte::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 50% at 30% 60%, rgba(201, 169, 106, .05), transparent 70%); }
.orte__pin {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-content: center; gap: clamp(22px, 3.6vh, 44px);
  padding-block: calc(var(--hd-h) + 4px) clamp(36px, 5vh, 60px);
}
.orte__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; }
.orte__intro { display: grid; gap: 16px; justify-items: start; }
.orte__prog { display: flex; align-items: center; gap: 18px; }
.orte__dias { display: flex; align-items: center; gap: 12px; }
.orte__dias i { width: 9px; height: 9px; border: 1.2px solid rgba(201, 169, 106, .55); transform: rotate(45deg); transition: background .4s, border-color .4s, box-shadow .4s, transform .5s var(--pop); }
.orte__dias i.is-on { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 10px rgba(201, 169, 106, .55); transform: rotate(45deg) scale(1.2); }
.orte__count { font: 500 14px/1 var(--display); letter-spacing: .14em; color: var(--mute); }
.orte__count b { color: var(--gold-hi); font-weight: 500; }
.orte__view { position: relative; overflow: hidden; }
.orte__view:focus-visible { outline-offset: -3px; }
.orte__track {
  display: flex; gap: clamp(28px, 3.2vw, 60px); margin: 0; list-style: none; width: max-content;
  padding-inline: max(var(--gut), calc((100vw - 1560px) / 2 + var(--gut)));
}
.pn {
  position: relative; flex: none;
  width: min(80vw, 1240px); height: clamp(380px, 62vh, 640px);
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(26px, 3.2vw, 56px); align-items: center;
}
.pn__art { position: relative; height: 100%; overflow: hidden; background: #070a10; }
.pn__art::before { content: ""; position: absolute; inset: 0; z-index: 2; border: 1px solid rgba(201, 169, 106, .35); pointer-events: none; }
.pn__art::after {
  content: ""; position: absolute; inset: 12px; z-index: 2; pointer-events: none;
  border: 1px solid rgba(201, 169, 106, .16);
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 22px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) 0 0 / 1px 22px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 100% 100% / 22px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) 100% 100% / 1px 22px no-repeat;
}
.pn__art-in { position: absolute; top: 0; bottom: 0; left: -7%; right: -7%; }
.pn__art-in svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pn__txt { display: grid; gap: 16px; align-content: center; justify-items: start; min-width: 0; }
.pn__num { font: 500 clamp(46px, 4.6vw, 72px)/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(201, 169, 106, .6); letter-spacing: .04em; }
.pn__title { font-size: clamp(25px, 2.4vw, 36px); letter-spacing: .03em; }
.pn__txt p { color: var(--ink-2); max-width: 40ch; }
.pn__villages { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; max-width: 46ch; }
.pn__villages li { display: inline-flex; align-items: center; font: 500 11px/1.6 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pn__villages li + li::before { content: ""; width: 4px; height: 4px; margin-inline: 9px; background: rgba(201, 169, 106, .55); transform: rotate(45deg); }

/* =====================================================================
   5 · WO WIR STEHEN
   ===================================================================== */
.stand { position: relative; z-index: 0; background: linear-gradient(var(--bg), #0c0b09 60%, var(--bg)); }
.stand__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.stand__head { position: sticky; top: calc(var(--hd-h) + 36px); display: grid; gap: 18px; justify-items: start; }
.stand__date { font-style: italic; color: var(--mute); }
.stand__date time { color: var(--ink); font-style: normal; }
.stand__now { display: grid; gap: 14px; margin: 10px 0 6px; padding: 18px 0; border-block: 1px solid var(--line); width: 100%; }
.stand__now div { display: grid; gap: 4px; }
.stand__now dt { margin: 0; }
.stand__now dd { margin: 0; color: var(--ink-2); font-style: italic; }
.ph { list-style: none; padding: 0; margin: 0; display: grid; }
.ph__row {
  --pp: var(--p);
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: baseline;
  gap: 6px 18px; padding: 18px 0 14px;
}
.ph__n { font: 500 14px/1 var(--display); letter-spacing: .1em; color: var(--gold); }
.ph__name { font: 500 clamp(17px, 1.45vw, 20px)/1.25 var(--display); letter-spacing: .04em; color: var(--gold-hi); }
.ph__name em { display: block; margin-top: 5px; font: italic 400 15px/1.4 var(--body); letter-spacing: 0; color: var(--mute); }
.ph__row--now .ph__name em { color: var(--t-warning); }
.ph__pct { font: 500 18px/1 var(--display); color: var(--gold-hi); white-space: nowrap; }
.ph__pct b { font-weight: 500; }
.ph__bar { position: relative; grid-column: 1 / -1; display: block; height: 10px; margin-top: 4px; }
.ph__bar::before { content: ""; position: absolute; left: 0; right: 0; top: 4.5px; height: 1px; background: var(--line); }
.ph__bar i {
  position: absolute; left: 0; top: 4px; width: 100%; height: 2px;
  transform-origin: 0 50%; transform: scaleX(var(--pp));
  background: linear-gradient(90deg, rgba(201, 169, 106, .25), var(--gold) 75%, var(--gold-hi));
  box-shadow: 0 0 10px rgba(201, 169, 106, .35);
}
.ph__bar::after {
  content: ""; position: absolute; top: .5px; left: calc(var(--pp) * 100%);
  width: 8px; height: 8px; margin-left: -4px;
  border: 1.3px solid var(--gold-hi); background: var(--bg); transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(240, 220, 174, .4);
}

/* =====================================================================
   6 · EINSTIEG
   ===================================================================== */
.ein { position: relative; z-index: 0; overflow: clip; background: radial-gradient(ellipse 70% 55% at 50% 42%, rgba(201, 169, 106, .07), transparent 70%), var(--bg); }
.ein__dia { position: absolute; left: 50%; top: 52%; width: min(1000px, 130vw); aspect-ratio: 1; translate: -50% -50%; pointer-events: none; }
.ein__dia i { position: absolute; inset: 0; border: 1px solid rgba(201, 169, 106, .09); transform: rotate(45deg); }
.ein__dia i + i { inset: 14%; border-color: rgba(201, 169, 106, .06); transform: rotate(45deg); }
.steps {
  list-style: none; padding: 0; margin: 0 auto clamp(64px, 8vw, 110px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px);
}
.step { position: relative; display: grid; justify-items: center; align-content: start; gap: 12px; text-align: center; }
.step::after {
  content: ""; position: absolute; top: 32px; left: calc(50% + 46px); width: calc(100% - 92px + clamp(24px, 3vw, 48px)); height: 1px;
  background: linear-gradient(90deg, rgba(201, 169, 106, .45), rgba(201, 169, 106, .12));
}
.step:last-child::after { display: none; }
.step__n { position: relative; width: 64px; height: 64px; display: grid; place-items: center; font: 600 21px/1 var(--display); color: var(--gold-hi); margin-bottom: 6px; }
.step__n::before { content: ""; position: absolute; inset: 13px; border: 1.5px solid var(--gold); background: rgba(201, 169, 106, .1); transform: rotate(45deg); }
.step__n::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(201, 169, 106, .22); transform: rotate(45deg); }
.step__t { font-size: clamp(19px, 1.6vw, 23px); }
.step p { color: var(--ink-2); max-width: 30ch; font-size: 16.5px; }
.ein__dl { max-width: 780px; margin-inline: auto; }
.ein__dl-in { display: grid; gap: 18px; justify-items: center; text-align: center; }
.ein__dl-in[hidden] { display: none; }
.ein__txt { max-width: 52ch; color: var(--ink); }
.ein__btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 26px; }
.ein__btns .btn { white-space: nowrap; }
.ein__meta { font-style: italic; color: var(--mute); font-size: var(--fs-small); }
.ein__meta:empty { display: none; }
.ein__more { margin-top: clamp(36px, 5vw, 60px); text-align: center; }

/* =====================================================================
   Schmal (< 900 px)
   ===================================================================== */
@media (max-width: 899px) {
  .hm { --tk: 46px; --fx: 1; --fy: 0; --bal-h: clamp(108px, calc(var(--hh) * .15), 150px); --sw: max(100vw, calc(var(--hh) * .74 * 1.6)); --moon-x: calc(88vw - 15px); }
  .hm__stage { width: max(100%, calc(var(--hh) * .74 * 1.6)); top: 0; translate: calc(-100% * var(--fx)) 0; }
  .hm__eyebrow { font-size: 10.5px; letter-spacing: .15em; gap: 9px; }
  /* Mond rechts neben dem Titel; die Höhe setzt home.js (composePhone) */
  .hm__moon { top: 13%; width: clamp(24px, 7.4vw, 34px); }
  /* Schmal: Titel oben unter der Kopfzeile, Text und Knöpfe unten über dem Handlauf
     (nicht mehr auf den Balustern), dazwischen die Akademie (home.js rückt die Bühne passend) */
  .hm__content {
    justify-content: flex-start;
    padding-top: calc(var(--hd-h) + clamp(6px, 2.2vh, 26px));
    padding-bottom: calc(var(--tk) + var(--bal-h) + 12px);
  }
  .hm__claim { margin-top: auto; padding-top: 16px; }
  .hm__content::before { top: auto; bottom: calc(var(--tk) + var(--bal-h) * .35); height: 50%; translate: -50% 0; }
  /* Schmal liegt die Wortmarke vor der Akademie: eigener Schleier hinter dem Titel */
  .hm__title { position: relative; }
  .hm__title::before {
    content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
    width: min(150%, 132vw); height: 190%; translate: -50% -50%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(var(--veil), .58), rgba(var(--veil), .34) 52%, transparent);
  }
  .hm__ctas { flex-direction: column; gap: 2px; }
  .hm__cue { display: none; }
  .bal__post--l { left: calc(48px + 4px); }
  .bal__post--r { right: calc(48px + 4px); }
  .bal__inscr { letter-spacing: .7em; padding-left: .7em; }

  .pl__item--r { justify-items: start; text-align: left; }
  .pl__item--r .pl__num { left: auto; right: 0; }
  .pl__rule--l { flex-direction: row-reverse; }

  .post__pin { min-height: 0; padding-block: clamp(80px, 14vw, 120px); }
  .post__grid { grid-template-columns: minmax(0, 1fr); gap: 72px; max-width: 420px; }
  .lt__paper { min-height: 300px; }

  .orte__pin { min-height: 0; padding-block: clamp(70px, 12vw, 110px); }
  .orte__view {
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  }
  .orte__view::-webkit-scrollbar { display: none; }
  .orte__track { gap: 14px; padding-inline: var(--gut); align-items: flex-start; }
  .pn { width: min(86vw, 520px); height: auto; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 22px; scroll-snap-align: center; }
  .pn__art { height: auto; aspect-ratio: 4 / 3; }
  .pn__art-in { left: 0; right: 0; }

  .stand__grid { grid-template-columns: minmax(0, 1fr); }
  .stand__head { position: static; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ein__dl { padding-inline: 12px; }
  .ein__btns .btn { padding-inline: 30px; }
  .step::after { display: none; }
}
@media (max-width: 899px) and (max-height: 720px) {
  /* Kurze Telefone: etwas dichter, damit Titel, Akademie und Text Platz haben */
  .hm { --bal-h: 100px; }
  .hm__content { padding-top: calc(var(--hd-h) + 4px); }
  .hm__eyebrow { margin-bottom: 10px; }
  .hm__claim { padding-top: 10px; font-size: 16.5px; }
  .hm__ctas { margin-top: 12px; }
  .hm__status { margin-top: 6px; }
}
@media (max-width: 380px) {
  .hm__claim { font-size: 16.5px; }
}
@media (max-width: 480px) {
  /* „Einstieg & Download“ in einer Zeile, kürzere Zierlinien, Laterne und Urne kleiner und weiter außen */
  .hm__ctas .act .t { white-space: nowrap; }
  .hm__ctas .act .orn { width: 26px; }
  .hm__ctas .act .orn.l { margin-right: 8px; }
  .hm__ctas .act .orn.r { margin-left: 8px; }
  .hm__ctas .act .t { padding-left: 10px; }
  .bal__post--l { left: calc(48px - 8px); }
  .bal__post--r { right: calc(48px - 8px); }
  .bal__lantern, .bal__urn { transform: scale(.74); transform-origin: 50% 100%; }
}
@media (max-width: 1080px) and (min-width: 900px) {
  .pn { width: 84vw; }
}
@media (min-aspect-ratio: 2/1) and (min-width: 900px) { .hm { --fy: .3; } }
/* Ohne waagerechte Fahrt (reduzierte Bewegung, kein JavaScript): Tafeln untereinander */
@media (min-width: 900px) {
  .orte:not(.is-pinned) .orte__track { flex-direction: column; width: auto; gap: clamp(56px, 7vw, 96px); }
  .orte:not(.is-pinned) .pn { width: 100%; max-width: 1240px; margin-inline: auto; height: clamp(380px, 58vh, 560px); }
  .orte:not(.is-pinned) .orte__prog { display: none; }
  .orte:not(.is-pinned) .orte__pin { padding-block: clamp(80px, 10vw, 150px); }
}

/* =====================================================================
   Ruhe bei reduzierter Bewegung
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hm__fog i, .hm__cloud, .hm__smoke path, .bal__glow, .bal__light, .bal__flame, .bal__glass, .hm__cue i { animation: none !important; }
  .post__owl { display: none; }
  .orte__view { scroll-behavior: auto; }
}
