/* ═══════════════════════════════════════════════════════════════════
   Reisebotschaften — für Katarzyna
   Hell, freundlich, bohemian. Aquarell auf Büttenpapier.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Papier und Tinte */
  --paper:      #f6f1e6;
  --paper-warm: #efe7d6;
  --paper-deep: #e5dcc7;
  --ink:        #33402f;
  --ink-soft:   #5f6c59;
  --ink-faint:  #8c9585;

  /* Die Farben aus den Botschaften */
  --sage:       #aec4b0;
  --sage-deep:  #6f8a74;
  --sage-pale:  #d5e2d6;
  --lilac:      #7c6bb0;
  --lilac-pale: #c3b9e2;
  --gold:       #c9a24a;
  --gold-deep:  #9d7a2c;
  --blush:      #d7a3b4;

  /* Maße */
  --rail:  clamp(1.15rem, 5vw, 3rem);
  --round: 14px;

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans:  'Karla', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --hand:  'Caveat', 'Segoe Script', cursive;

  --shadow-soft: 0 2px 6px rgba(70, 84, 66, .05), 0 18px 40px -22px rgba(70, 84, 66, .35);
  --shadow-lift: 0 4px 12px rgba(70, 84, 66, .07), 0 34px 70px -30px rgba(70, 84, 66, .45);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  font-weight: 300;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-overture { overflow: hidden; }
body.is-burst    { overflow: hidden; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; }

/* Die width/height-Attribute im Markup sind nur da, damit der Browser vorab
   Platz reserviert. Fürs Layout soll allein das CSS bestimmen. */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--sage-deep); }

::selection { background: var(--lilac-pale); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─────────────────────────────────────────── Hintergrund ─────── */

#ambient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
  opacity: 0;
  transition: opacity 1.6s ease;
}
#ambient.is-on { opacity: 1; }

/* Feines Korn, damit das Papier nicht wie Bildschirm aussieht. */
.grain {
  position: fixed;
  inset: -50%;
  z-index: -1;
  pointer-events: none;
  opacity: .34;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ─────────────────────────────────────────── Die Sperre ──────── */

.gate {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--rail);
  background:
    radial-gradient(70% 60% at 25% 20%, rgba(174, 196, 176, .55), transparent 70%),
    radial-gradient(60% 55% at 80% 80%, rgba(195, 185, 226, .45), transparent 70%),
    var(--paper);
}
.gate-inner {
  max-width: 34rem;
  text-align: center;
  background: rgba(255, 253, 247, .74);
  border: 1px solid rgba(201, 162, 74, .5);
  border-radius: var(--round);
  padding: clamp(2rem, 6vw, 3.4rem);
  box-shadow: var(--shadow-soft);
}
.gate-inner h1 { font-size: clamp(1.8rem, 5.4vw, 2.5rem); margin: .5rem 0 1rem; }
.gate-inner p  { color: var(--ink-soft); }

/* ─────────────────────────────────────────── Kleinkram ───────── */

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0;
}

.testbar {
  position: relative;
  z-index: 40;
  margin: 0;
  padding: .6rem var(--rail);
  background: #b5563f;
  color: #fff4ec;
  font-size: .82rem;
  letter-spacing: .04em;
  text-align: center;
}

/* ─────────────────────────── Ouvertüre: der Brief ────────────── */

.overture {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  background: #efe7d6;
}
.overture[hidden] { display: none; }

/* Der Film ist hochkant (720 × 1280) und deckt den Schirm immer voll ab —
   kein Rand, nie. Was nicht hineinpasst, wird beschnitten; das Siegel
   (50,3 % / 55,1 % der Videofläche) sitzt dabei genau in der Mitte. */
.ov-media {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100vw, 65vh);
  aspect-ratio: 720 / 1280;
  transform: translate(-50.3%, -55.1%) scale(var(--ov-zoom, 1.6));
  transform-origin: 50.3% 55.1%;
  transition: transform 4.2s cubic-bezier(.3, .1, .2, 1);
}
.ov-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Die Klickfläche liegt genau auf dem Siegel. */
.ov-seal {
  position: absolute;
  left: 50.3%;
  top: 55.1%;
  width: 21%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  border-radius: 50%;
  cursor: pointer;
}
/* Ein sachter Lichtring, damit klar ist: hier wird getippt. */
.ov-seal span {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 244, 214, .55), 0 0 34px 10px rgba(201, 162, 74, .35);
  animation: sealPuls 2.6s ease-in-out 1.2s infinite;
}
.ov-seal:focus-visible { outline: 2px solid #fff6dd; outline-offset: 8px; }

@keyframes sealPuls {
  0%, 100% { opacity: .35; transform: scale(1); }
  50%      { opacity: .85; transform: scale(1.06); }
}

.ov-line {
  position: absolute;
  left: 50%;
  top: clamp(1.4rem, 6vh, 3.2rem);
  transform: translateX(-50%);
  margin: 0;
  width: min(88vw, 26rem);
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 4.4vw, 1.6rem);
  font-style: italic;
  color: #4a4234;
  text-shadow: 0 1px 14px rgba(255, 250, 235, .9);
  opacity: 0;
  transition: opacity .7s ease;
}
.ov-line.is-shown { opacity: 1; }

.ov-skip {
  position: absolute;
  left: 50%;
  bottom: clamp(1.6rem, 5vh, 3rem);
  transform: translateX(-50%);
  appearance: none;
  border: 1px solid rgba(74, 66, 52, .3);
  background: rgba(255, 253, 247, .72);
  color: #4a4234;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .55rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity .5s ease;
}
.ov-skip:hover { border-color: var(--gold-deep); color: var(--gold-deep); }

/* Ab dem Klick: die Kamera geht ein Stück zurück, damit der ganze
   Umschlag ins Bild passt, während er aufgeht. */
.overture.is-open .ov-media { transform: translate(-50.3%, -55.1%) scale(1); }
.overture.is-open .ov-seal,
.overture.is-open .ov-line,
.overture.is-open .ov-skip { opacity: 0; pointer-events: none; }
.overture.is-open .ov-line { transition: opacity .4s ease; }

/* Das Licht am Ende. Liegt über allem und trägt hinüber zur Startseite. */
.ov-white {
  position: fixed;
  inset: 0;
  z-index: 96;
  pointer-events: none;
  background: #fffdf6;
  opacity: 0;
  transition: opacity 1s ease;
}
.ov-white.is-on { opacity: 1; }

/* ─────────────────────────────────────────── Der Kopf ────────── */

.hero {
  position: relative;
  padding: clamp(3.4rem, 11vw, 7rem) var(--rail) clamp(3rem, 8vw, 5rem);
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(3rem, 15vw, 6.4rem);
  font-weight: 300;
  letter-spacing: -.02em;
  margin: .5rem 0 .6rem;
  line-height: .92;
}
.hero-title span {
  display: block;
  font-style: italic;
  color: var(--sage-deep);
}

.hero-sub {
  font-family: var(--hand);
  font-size: clamp(1.3rem, 5vw, 1.9rem);
  color: var(--lilac);
  margin: 0 0 1.6rem;
}

.hero-lede {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--ink-soft);
}

.hero-meta {
  margin: 1.8rem 0 0;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* Die Reisegesellschaft */
.crew { margin-top: 2.8rem; }
.crew-head {
  margin: 0 0 1rem;
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.crew-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(.7rem, 2.4vw, 1.15rem);
}
.crew-item {
  width: 5.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}
.crew-face {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-warm);
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--tint, var(--sage)),
              0 10px 22px -12px rgba(70, 84, 66, .6);
  transition: transform .35s cubic-bezier(.16, .84, .3, 1);
}
.crew-item:hover .crew-face { transform: translateY(-4px) rotate(-3deg); }
.crew-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crew-name { font-size: .8rem; font-weight: 500; line-height: 1.2; }
.crew-role { font-size: .66rem; color: var(--ink-faint); line-height: 1.25; }

.hero-card-btn {
  margin-top: 2.6rem;
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: 0;
  font-family: inherit;
}
.hero-card-btn img {
  width: 9.5rem;
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  transform: rotate(-2deg);
  transition: transform .4s cubic-bezier(.16, .84, .3, 1), box-shadow .4s ease;
}
.hero-card-btn:hover img { transform: rotate(0) scale(1.04); box-shadow: var(--shadow-lift); }
.hero-card-btn span {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.scroll-cue {
  display: block;
  width: 1px;
  height: 3.4rem;
  margin: 3rem auto 0;
  background: linear-gradient(var(--gold), transparent);
  position: relative;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 0;
  width: 5px; height: 5px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--gold);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue {
  0%   { transform: translateY(0);      opacity: 0; }
  25%  {                                opacity: 1; }
  100% { transform: translateY(3.2rem); opacity: 0; }
}

/* ─────────────────────────────────────────── Der Atlas ───────── */

.atlas {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 var(--rail) clamp(4rem, 10vw, 7rem);
  display: grid;
  gap: clamp(2.4rem, 5vw, 4rem);
}

@media (min-width: 1000px) {
  .atlas {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    align-items: start;
  }
}

/* Die Karte */
.plate-sticky { position: sticky; top: clamp(1rem, 4vh, 2.4rem); }
.plate-fig {
  margin: 0;
  background: linear-gradient(160deg, #fffdf7, var(--paper-warm));
  border: 1px solid rgba(201, 162, 74, .42);
  border-radius: var(--round);
  padding: clamp(.6rem, 2vw, 1.1rem);
  box-shadow: var(--shadow-lift);
}
#karte { width: 100%; height: auto; display: block; }
.plate-caption {
  margin: .9rem 0 0;
  text-align: center;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ─── Die Kartenzeichen ─────────────────────────────────────── */
#karte .rule  { fill: none; stroke: var(--gold);      stroke-width: 1.6; }
#karte .hair  { fill: none; stroke: var(--sage-deep); stroke-width: 1;   opacity: .75; }
#karte .thin  { stroke-width: .6; opacity: .55; }
#karte .ink   { fill: none; stroke: var(--ink);       stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#karte .ink.thin { stroke: var(--sage-deep); stroke-width: 1; opacity: .7; }
#karte .lead  { fill: none; stroke: var(--gold-deep); stroke-width: 1.4; stroke-linecap: round; }
#karte .dot   { fill: var(--ink); }
#karte .rose  { fill: var(--gold); opacity: .85; }
#karte .wash  { pointer-events: none; }
#karte .halo  { fill: var(--sage); opacity: .3; }
#karte .halo.big { fill: var(--gold); opacity: .28; }
#karte .star  { fill: var(--gold); }
#karte .wood .ink { stroke: var(--sage-deep); stroke-width: 1.2; }

#karte .route {
  fill: none;
  stroke: var(--lilac);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 1 9;
  opacity: .9;
}
#karte .border {
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 1.6;
  stroke-dasharray: 12 5 3 5;
  opacity: .6;
}

#karte text { font-family: var(--sans); fill: var(--ink); }
#karte .t-title {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .18em;
  text-anchor: middle;
}
#karte .t-micro {
  font-size: 8px;
  letter-spacing: .26em;
  text-anchor: middle;
  fill: var(--ink-faint);
}
#karte .t-band {
  font-size: 11px;
  letter-spacing: .22em;
  text-anchor: middle;
  fill: var(--gold-deep);
}
#karte .t-place {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-anchor: middle;
}
#karte .t-sub {
  font-size: 8.5px;
  letter-spacing: .22em;
  text-anchor: middle;
  fill: var(--ink-faint);
}
#karte .t-note {
  font-family: var(--hand);
  font-size: 15px;
  text-anchor: middle;
  fill: var(--lilac);
}
#karte .t-country {
  font-family: var(--serif);
  font-size: 33px;
  letter-spacing: .16em;
  text-anchor: middle;
  fill: var(--sage-deep);
}
#karte .t-country-sub {
  font-size: 10px;
  letter-spacing: .42em;
  text-anchor: middle;
  fill: var(--gold-deep);
}

/* ─────────────────────────────────────────── Das Register ────── */

.register-head { margin-bottom: 2rem; }
.register-head h2 { font-size: clamp(2rem, 6vw, 2.9rem); margin: .3rem 0 .7rem; }
.register-lede { color: var(--ink-soft); max-width: 32rem; margin: 0; }

.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.chapters .loading { color: var(--ink-faint); font-style: italic; }

.chapter {
  background: rgba(255, 253, 247, .82);
  border: 1px solid rgba(111, 138, 116, .22);
  border-radius: var(--round);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.chapter.is-expanded { border-color: rgba(201, 162, 74, .55); box-shadow: var(--shadow-lift); }
.chapter.is-sealed   { opacity: .62; }
.chapter.is-done .ch-num { background: var(--sage-deep); color: var(--paper); border-color: transparent; }

.ch-head {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .9rem;
  padding: 1.05rem 1.15rem;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.ch-head[disabled] { cursor: default; }

.ch-num {
  display: grid;
  place-items: center;
  width: 2.2rem; height: 2.2rem;
  border: 1px solid rgba(201, 162, 74, .6);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: .92rem;
  color: var(--gold-deep);
}
.ch-title {
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.15;
  display: block;
}
.ch-latin {
  display: block;
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: .2rem;
}
.ch-status {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
  max-width: 7.5rem;
}
.chapter.is-done .ch-status { color: var(--sage-deep); }

.ch-body { display: none; padding: 0 1.15rem 1.4rem; }
.chapter.is-expanded .ch-body { display: block; animation: fadeUp .5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.ch-lede {
  margin: 0 0 1.5rem;
  padding-top: .3rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.12rem;
  font-style: italic;
  border-top: 1px solid rgba(111, 138, 116, .18);
}

/* ─── Die Fragen ────────────────────────────────────────────── */

.riddle {
  border-left: 2px solid var(--sage);
  padding: .1rem 0 .1rem 1rem;
  margin-bottom: 1.6rem;
}
.riddle.is-solved { border-left-color: var(--gold); }
.riddle.is-locked { opacity: .35; pointer-events: none; filter: blur(1.6px); }

.r-kicker {
  margin: 0 0 .5rem;
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lilac);
}
.r-prompt { margin: 0 0 1rem; }
.r-prompt em { font-style: italic; color: var(--sage-deep); }

.r-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.r-input {
  flex: 1 1 11rem;
  min-width: 0;
  font: inherit;
  padding: .62rem .85rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(111, 138, 116, .4);
  border-radius: 8px;
}
.r-input::placeholder { color: var(--ink-faint); }
.r-input:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(124, 107, 176, .18); }

.r-submit {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: .62rem 1.4rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--paper);
  background: var(--sage-deep);
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.r-submit:hover:not([disabled]) { background: var(--ink); transform: translateY(-1px); }
.r-submit[disabled] { opacity: .5; cursor: wait; }

.r-note  { margin: .55rem 0 0; font-size: .76rem; color: var(--ink-faint); }
.r-error { margin: .5rem 0 0; font-size: .84rem; color: #b5563f; opacity: 0; transition: opacity .25s ease; }
.r-error.is-shown { opacity: 1; }

.r-answered {
  margin: 0;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.r-done {
  margin: .35rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
}

.r-hintbar { margin-top: .9rem; }
.r-hints { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .45rem; }
.r-hints li {
  background: rgba(213, 226, 214, .55);
  border-left: 2px solid var(--sage-deep);
  border-radius: 0 8px 8px 0;
  padding: .5rem .75rem;
  font-size: .88rem;
  color: var(--ink-soft);
}
.r-hint-btn {
  appearance: none;
  background: none;
  border: 1px dashed rgba(124, 107, 176, .55);
  border-radius: 999px;
  color: var(--lilac);
  font: inherit;
  font-size: .78rem;
  padding: .35rem .95rem;
  cursor: pointer;
}
.r-hint-btn:hover:not([disabled]) { background: rgba(124, 107, 176, .1); }
.r-hint-btn[disabled] { opacity: .5; cursor: default; }

/* ─── Die Botschaft im Register ─────────────────────────────── */

.reveal {
  margin-top: 1.6rem;
  padding: 1.4rem 1.3rem;
  border-radius: var(--round);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(195, 185, 226, .3), transparent 60%),
    linear-gradient(150deg, var(--sage-pale), #fffdf7);
  border: 1px solid rgba(201, 162, 74, .5);
  position: relative;
}
.reveal::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201, 162, 74, .38);
  border-radius: calc(var(--round) - 6px);
  pointer-events: none;
}
.reveal-badge {
  margin: 0;
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.reveal-title {
  margin: .3rem 0 .7rem;
  font-family: var(--serif);
  font-size: 1.55rem;
}
.reveal-text { margin: 0; color: var(--ink); }
.reveal-map {
  margin: 1rem 0 0;
  font-family: var(--hand);
  font-size: 1.15rem;
  color: var(--lilac);
}
.reveal-again {
  margin-top: .9rem;
  appearance: none;
  background: none;
  border: 1px solid rgba(201, 162, 74, .6);
  border-radius: 999px;
  color: var(--gold-deep);
  font: inherit;
  font-size: .76rem;
  letter-spacing: .1em;
  padding: .35rem 1rem;
  cursor: pointer;
}
.reveal-again:hover { background: rgba(201, 162, 74, .12); }

.reveal-final { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 74, .14); }

/* ─────────────────────────────────────────── Die Enthüllung ─── */

.burst {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: var(--rail);
  background: rgba(38, 48, 38, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .8s ease;
}
.burst[hidden] { display: none; }
.burst.is-on { opacity: 1; }

#burstCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.burst-card {
  position: relative;
  width: min(100%, 33rem);
  max-height: 84svh;
  overflow-y: auto;
  padding: clamp(1.6rem, 5vw, 2.6rem);
  border-radius: var(--round);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(195, 185, 226, .38), transparent 62%),
    linear-gradient(160deg, #fffdf7, var(--sage-pale));
  border: 1px solid rgba(201, 162, 74, .7);
  box-shadow: 0 40px 90px -30px rgba(20, 30, 20, .7);
  opacity: 0;
  transform: translateY(26px) scale(.96);
  transition: opacity .9s ease, transform .9s cubic-bezier(.16, .84, .3, 1);
}
.burst.is-open .burst-card { opacity: 1; transform: none; }

.bc-badge {
  margin: 0;
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.bc-title {
  margin: .35rem 0 1rem;
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  font-style: italic;
}
.bc-text { margin: 0; color: var(--ink); }
.bc-map {
  margin: 1.2rem 0 0;
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--lilac);
}
.bc-close {
  margin-top: 1.7rem;
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: .7rem 2rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--paper);
  background: var(--sage-deep);
  cursor: pointer;
}
.bc-close:hover { background: var(--ink); }

/* ─────────────────────────────────────────── Der Abschluss ───── */

.colophon { margin-top: 3rem; text-align: center; }
.rule-line {
  height: 1px;
  margin: 0 auto 1.4rem;
  width: 6rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.sign { margin: 0 0 .4rem; font-family: var(--hand); font-size: 1.2rem; color: var(--sage-deep); }
.colophon .dim { margin: 0; font-size: .78rem; color: var(--ink-faint); }

/* ─────────────────────────────────────────── Lightbox ───────── */

.lightbox {
  border: 0;
  padding: 0;
  background: none;
  max-width: min(94vw, 60rem);
}
.lightbox::backdrop { background: rgba(38, 48, 38, .78); backdrop-filter: blur(3px); }
.lightbox img { width: 100%; height: auto; display: block; border-radius: var(--round); }
.lightbox button {
  display: block;
  margin: 1rem auto 0;
  appearance: none;
  border: 1px solid rgba(246, 241, 230, .5);
  background: rgba(246, 241, 230, .1);
  color: var(--paper);
  font: inherit;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .5rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
}

/* ─────────────────────────────────────────── Rücksicht ──────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  #ambient { display: none; }
  .scroll-cue span { display: none; }
}


/* ══════════ Redesign: Spectral statt Caveat, Gruen und Gold, ruhigerer Hintergrund ══════════ */


:root {
  /* 1 · Ersatz für Caveat */
  --hand: 'Spectral', 'Iowan Old Style', Georgia, serif;

  /* 2 · Lila und Orange raus. Das Grün übernimmt, Gold bleibt der Akzent. */
  --lilac:      #55705c;
  --lilac-pale: #b9cbbd;
}

/* ── Hintergrund: leiser, damit der Text vorn steht ──────────────── */
#ambient.is-on { opacity: .38; }
.grain { opacity: .18; }

/* ── Hero-Zeile ──────────────────────────────────────────────────── */
.hero-sub {
  font-family: var(--hand);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(1.15rem, 3.6vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: .005em;
  color: var(--sage-deep);
}

/* Gold trägt die zweite Titelzeile */
.hero-title span { color: var(--gold-deep); }

/* ── Karte: Notizen ruhig statt Handschrift ──────────────────────── */
#karte .t-note {
  font-family: var(--hand);
  font-weight: 300;
  font-size: 15px;
  fill: var(--ink-faint);
}

/* ── Botschaften und Signatur ────────────────────────────────────── */
.reveal-map,
.bc-map {
  font-family: var(--hand);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.sign {
  font-family: var(--hand);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* ── Gold als einziger Akzent, konsequent an denselben Stellen ───── */
.eyebrow      { color: var(--gold-deep); }
.reveal-badge,
.bc-badge     { color: var(--gold-deep); }

/* ── Botschaft im Register: genauso gebaut wie die große Karte ───── */
.reveal {
  margin-top: 1.8rem;
  padding: clamp(1.6rem, 4.5vw, 2.4rem);
  border-radius: var(--round);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(201, 162, 74, .20), transparent 62%),
    linear-gradient(160deg, #fffdf7, var(--sage-pale));
  border: 1px solid rgba(201, 162, 74, .7);
  box-shadow: 0 2px 6px rgba(70, 84, 66, .05), 0 26px 54px -30px rgba(20, 30, 20, .45);
}
/* der zweite Rahmen innen entfällt, die große Karte hat ihn auch nicht */
.reveal::after { content: none; }

.reveal-badge {
  font-size: .68rem;
  letter-spacing: .26em;
}
.reveal-title {
  margin: .35rem 0 1rem;
  font-size: clamp(1.5rem, 4.4vw, 1.95rem);
  font-style: italic;
}
.reveal-again {
  margin-top: 1.5rem;
  padding: .55rem 1.5rem;
  font-size: .78rem;
}
.reveal-final {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 74, .14), 0 26px 54px -30px rgba(20, 30, 20, .45);
}

/* dieselbe warme Lichtquelle in der großen Karte statt des Lila-Schimmers */
.burst-card {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(201, 162, 74, .20), transparent 62%),
    linear-gradient(160deg, #fffdf7, var(--sage-pale));
}

/* ═══════════════════════════════════════════════════════════════════
   Die Enthüllung: mehr Wucht
   ═══════════════════════════════════════════════════════════════════ */

/* Der Hintergrund verdunkelt tiefer, damit das Licht vorn mehr trägt. */
.burst { background: rgba(28, 38, 28, .74); }
.burst-card { z-index: 2; }

@media (prefers-reduced-motion: no-preference) {

  /* 1 · Der Lichtblitz im Moment des Aufreißens */
  .burst::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(46% 40% at 50% 50%,
                rgba(255, 250, 236, .92), rgba(201, 162, 74, .38) 45%, transparent 72%);
  }
  .burst.is-on::before { animation: blitz 1.15s cubic-bezier(.1, .8, .3, 1) forwards; }

  @keyframes blitz {
    0%   { opacity: 0;   transform: scale(.35); }
    12%  { opacity: 1;   transform: scale(1.02); }
    100% { opacity: 0;   transform: scale(1.7); }
  }

  /* 2 · Die Karte kommt schwerer herein und setzt sich mit einem Puls */
  .burst-card {
    transform: translateY(40px) scale(.9) rotate(-.6deg);
    transition: opacity 1s ease, transform 1.1s cubic-bezier(.14, .9, .22, 1);
  }
  .burst.is-open .burst-card {
    transform: none;
    animation: siegel 1.5s cubic-bezier(.16, .84, .3, 1) .15s both;
  }

  @keyframes siegel {
    0%   { box-shadow: 0 0 0 0 rgba(201, 162, 74, .75),
                       0 40px 90px -30px rgba(20, 30, 20, .7); }
    55%  { box-shadow: 0 0 0 16px rgba(201, 162, 74, 0),
                       0 40px 90px -30px rgba(20, 30, 20, .7); }
    100% { box-shadow: 0 0 0 0 rgba(201, 162, 74, 0),
                       0 40px 90px -30px rgba(20, 30, 20, .7); }
  }

  /* 3 · Der Text baut sich Zeile für Zeile auf */
  .bc-badge, .bc-title, .bc-text, .bc-map, .bc-close {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1);
  }
  .burst.is-open .bc-badge,
  .burst.is-open .bc-title,
  .burst.is-open .bc-text,
  .burst.is-open .bc-map,
  .burst.is-open .bc-close { opacity: 1; transform: none; }

  .burst.is-open .bc-badge { transition-delay: .30s; }
  .burst.is-open .bc-title { transition-delay: .44s; }
  .burst.is-open .bc-text  { transition-delay: .62s; }
  .burst.is-open .bc-map   { transition-delay: .78s; }
  .burst.is-open .bc-close { transition-delay: .94s; }

  /* 4 · Der Titel leuchtet einmal golden auf und laeuft in die Tinte zurueck */
  .burst.is-open .bc-title {
    animation: aufleuchten 1.6s ease 1.0s 1 both;
  }
  @keyframes aufleuchten {
    0%   { color: var(--ink); text-shadow: none; }
    25%  { color: var(--gold-deep); text-shadow: 0 0 22px rgba(201, 162, 74, .55); }
    100% { color: var(--ink); text-shadow: none; }
  }
  }
}
