/* Ansicht „nacht“ — aus Entwurf 1 „Thermalnacht“ (_Design/entwuerfe/1-thermalnacht)
   Farbwelt: Nachtblau/Petrol, Türkis-Wasserlicht, feines Gold. Feste dunkle Welt. */

:root {
  --nacht: #050d1a;        /* Grund, Himmel über der Kuppel */
  --petrol: #0b2632;       /* Flächen */
  --tiefsee: #10384a;      /* Linien, Karten-Kanten */
  --wasserlicht: #86e6dd;  /* Türkis-Reflex */
  --gold: #cfae72;         /* Akzent, Haarlinien */
  --gold-hell: #ecd6a6;
  --perlmutt: #e8eef0;     /* Fließtext */
  --dunst: #93abb3;        /* Nebentext */

  --f-display: "Didot", "Bodoni 72", "Bodoni MT", ui-serif, "New York", Georgia, serif;
  --f-text: "Avenir Next", "Avenir", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-hand: "Snell Roundhand", "Bradley Hand", "Segoe Script", cursive;

  --rand: clamp(1.25rem, 5vw, 3rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--nacht);
  color: var(--perlmutt);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--gold-hell); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 1.5px solid var(--wasserlicht); outline-offset: 4px; border-radius: 2px; }

.leise {
  font-family: var(--f-text);
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* ---------- Eröffnung ---------- */

.auftakt {
  position: relative;
  min-height: min(100svh, 880px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.auftakt__bild {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 42% 50%;
  z-index: -3;
  animation: atmen 28s ease-in-out infinite alternate;
}

@keyframes atmen {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12) translateY(-1.5%); }
}

.auftakt::before { /* Nacht senkt sich über das Bild */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(5,13,26,.95) 0%, rgba(5,13,26,.45) 22%, rgba(5,13,26,0) 38%, rgba(5,13,26,0) 48%, rgba(5,13,26,.82) 74%, var(--nacht) 100%);
}

/* Wasserlicht: wandernde Reflexe im unteren Bilddrittel */
.wasserlicht {
  position: absolute; left: -20%; right: -20%; bottom: 0; height: 60%;
  z-index: -1; pointer-events: none;
  mix-blend-mode: screen;
  opacity: .5;
  background:
    radial-gradient(ellipse 18% 3% at 20% 30%, rgba(134,230,221,.55), transparent 70%),
    radial-gradient(ellipse 12% 2% at 55% 45%, rgba(134,230,221,.45), transparent 70%),
    radial-gradient(ellipse 22% 3% at 80% 22%, rgba(207,174,114,.35), transparent 70%),
    radial-gradient(ellipse 14% 2.5% at 35% 62%, rgba(134,230,221,.35), transparent 70%),
    radial-gradient(ellipse 16% 2% at 70% 75%, rgba(134,230,221,.3), transparent 70%);
  filter: blur(6px);
  animation: wellen 14s ease-in-out infinite alternate;
}
.wasserlicht--zwei {
  opacity: .35;
  animation-duration: 19s;
  animation-direction: alternate-reverse;
  transform: scaleX(-1);
}
@keyframes wellen {
  0%   { transform: translateX(-4%) scaleY(1); }
  50%  { transform: translateX(2%) scaleY(1.3); }
  100% { transform: translateX(5%) scaleY(.9); }
}

.auftakt__inhalt {
  padding: 0 var(--rand) clamp(3rem, 9vh, 6rem);
  max-width: 46rem;
  margin-inline: auto;
  width: 100%;
  text-align: center;
}

.auftakt__zahl {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(8.5rem, 42vw, 15rem);
  line-height: .82;
  margin: .35em 0 .1em;
  letter-spacing: -.02em;
  /* Wasserlicht im Ziffernbild */
  background:
    linear-gradient(105deg,
      var(--gold) 0%, var(--gold-hell) 22%, #fff7e6 30%, var(--gold) 40%,
      #9fd9cf 55%, var(--gold-hell) 68%, var(--gold) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(134,230,221,.28)) drop-shadow(0 0 2px rgba(236,214,166,.35));
  animation: schimmer 11s ease-in-out infinite alternate;
}
@keyframes schimmer {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

.auftakt__titel {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 7.4vw, 3.1rem);
  line-height: 1.12;
  margin: 0;
  text-shadow: 0 2px 24px rgba(5,13,26,.8);
}
.auftakt__titel em { font-style: italic; color: var(--gold-hell); }

.auftakt__unter {
  margin: 1.1rem auto 0;
  max-width: 30rem;
  color: #c9d7db;
  font-size: 1.02rem;
}

.haarlinie {
  width: 3.5rem; height: 1px; margin: 1.8rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- Abschnitte ---------- */

.abschnitt {
  padding: clamp(4.5rem, 12vw, 8rem) var(--rand);
  max-width: 68rem;
  margin-inline: auto;
}

.abschnitt__kopf { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4rem); }

h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.1;
  margin: .9rem 0 0;
}
h2 em { font-style: italic; color: var(--gold-hell); }

.einleitung {
  max-width: 34rem;
  margin: 1.4rem auto 0;
  color: #c3d1d6;
}

/* Geschenk: zwei Häuser */
.haeuser {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 760px) { .haeuser { grid-template-columns: 1fr 1fr; gap: 2rem; } }

.haus {
  position: relative;
  border: 1px solid rgba(207,174,114,.28);
  background: linear-gradient(180deg, rgba(16,56,74,.45), rgba(11,38,50,.25));
  border-radius: 3px;
  overflow: hidden;
}
.haus__bild { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.haus__text { padding: 1.5rem 1.5rem 1.75rem; }
.haus h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.2;
  margin: .55rem 0 .6rem;
}
.haus p { margin: 0; color: #c3d1d6; font-size: .98rem; }
.haus address { font-style: normal; color: var(--dunst); font-size: .9rem; margin-top: 1rem; }
.haus .weiter { display: inline-block; margin-top: 1rem; font-size: .9rem; letter-spacing: .04em; }

/* Countdown */
.zaehler {
  margin: clamp(3.5rem, 9vw, 5rem) auto 0;
  text-align: center;
}
.zaehler__zahl {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(3.6rem, 16vw, 5.5rem);
  line-height: 1;
  color: var(--wasserlicht);
  text-shadow: 0 0 30px rgba(134,230,221,.35);
}
.zaehler__wort { color: var(--dunst); font-size: .95rem; display: block; margin-top: .5rem; }

/* ---------- Ablauf ---------- */

.ablauf { background: linear-gradient(180deg, var(--nacht), var(--petrol) 30%, var(--petrol) 70%, var(--nacht)); }
.ablauf .abschnitt { padding-top: clamp(3.5rem, 9vw, 5rem); }

.tage { display: grid; gap: 3.5rem; }
@media (min-width: 900px) { .tage { grid-template-columns: 1.35fr 1fr; gap: 4rem; align-items: start; } }

.tag__datum { margin: 0; }
.tag__kopf { display: flex; align-items: baseline; gap: .9rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.tag__datum {
  font-family: var(--f-display);
  font-size: 2.1rem; line-height: 1;
}
.tag__datum span { color: var(--gold); }

.zeitleiste { list-style: none; margin: 0; padding: 0; position: relative; }
.zeitleiste::before {
  content: ""; position: absolute; left: 4px; top: .5rem; bottom: .5rem; width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(134,230,221,.45));
}
.zeitleiste li {
  padding: 0 0 1.9rem 2rem;
  position: relative;
}
.zeitleiste li:last-child { padding-bottom: 0; }
.zeitleiste li::after {
  content: ""; position: absolute; left: 0; top: .42rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--nacht); border: 1px solid var(--gold);
  box-shadow: 0 0 10px rgba(207,174,114,.5);
}
.zeitleiste li.hervor::after { background: var(--wasserlicht); border-color: var(--wasserlicht); box-shadow: 0 0 14px rgba(134,230,221,.8); }
.zeit {
  display: block;
  font-family: var(--f-text);
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin-bottom: .2rem;
}
.hervor .zeit { color: var(--wasserlicht); }
.zeitleiste h4 {
  font-family: var(--f-display); font-weight: 400;
  font-size: 1.4rem; line-height: 1.25; margin: 0 0 .3rem;
}
.zeitleiste p { margin: 0; color: #b9c9ce; font-size: .96rem; }
.zeitleiste + .santai, .santai + .zeitleiste { margin-top: 1.9rem; }

.santai {
  margin: 0 0 0 2rem;
  border-radius: 3px; overflow: hidden;
  position: relative;
  border: 1px solid rgba(134,230,221,.25);
}
.santai img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; filter: saturate(.85) brightness(.9); }
.santai figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.8rem 1rem .75rem;
  font-size: .8rem; color: #e3ecee; letter-spacing: .03em;
  background: linear-gradient(180deg, transparent, rgba(5,13,26,.9));
}

/* ---------- Brief ---------- */

.brief {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.brief::before {
  content: ""; position: absolute; left: 50%; top: -2rem; width: 18rem; height: 18rem;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(134,230,221,.10), transparent 65%);
  z-index: -1;
}
.brief p:not(.leise) {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 4.6vw, 1.55rem);
  line-height: 1.55;
  margin: 1.5rem 0 0;
  color: #dfe8ea;
}
.unterschrift {
  font-family: var(--f-hand);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold-hell);
  margin-top: 2rem;
  display: inline-block;
  text-shadow: 0 0 18px rgba(207,174,114,.35);
}

/* ---------- Fuß ---------- */

.fuss {
  text-align: center;
  padding: 2.5rem var(--rand) 3rem;
  font-size: .75rem;
  color: #6f8790;
  border-top: 1px solid rgba(16,56,74,.9);
}

/* ---------- Tor ---------- */

.tor {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 2rem var(--rand);
}
.tor .auftakt__bild { filter: blur(3px) brightness(.55) saturate(1.1); }
.tor::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(ellipse at 50% 45%, rgba(5,13,26,.35), rgba(5,13,26,.92) 75%);
}
.tor__karte { text-align: center; width: 100%; max-width: 22rem; }
.tor__titel {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(3rem, 15vw, 4.4rem); line-height: 1.02; margin: 1rem 0 .4rem;
}
.tor__titel em { font-style: italic; color: var(--gold-hell); }
.tor__hinweis { color: #b9c9ce; margin: 0 0 2.5rem; font-size: .98rem; }

.feld { display: block; text-align: left; }
.feld span { display: block; margin-bottom: .6rem; }
.feld input {
  width: 100%;
  font: inherit; font-size: 1.15rem; letter-spacing: .2em;
  color: var(--perlmutt);
  background: rgba(5,13,26,.45);
  border: 0; border-bottom: 1px solid var(--gold);
  border-radius: 2px 2px 0 0;
  padding: .85rem .9rem;
  transition: border-color .3s, box-shadow .3s, background .3s;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.feld input:focus { outline: none; border-color: var(--wasserlicht); box-shadow: 0 10px 24px -14px rgba(134,230,221,.9); background: rgba(11,38,50,.6); }

.knopf {
  margin-top: 1.6rem;
  width: 100%;
  font: inherit; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 500;
  color: var(--nacht);
  background: linear-gradient(180deg, var(--gold-hell), var(--gold));
  border: 0; border-radius: 2px;
  padding: 1.05rem 1rem;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(207,174,114,0);
  transition: box-shadow .4s, transform .2s;
}
.knopf:hover { box-shadow: 0 0 28px rgba(207,174,114,.45); }
.knopf:active { transform: translateY(1px); }

.fehler {
  margin: 1rem 0 0;
  padding: .75rem .9rem;
  font-size: .92rem;
  color: #ffd9c7;
  border-left: 2px solid #e69a7a;
  background: rgba(230,154,122,.1);
  text-align: left;
}
.fehler[hidden] { display: none; }
.ist-fehler .feld input { border-color: #e69a7a; }

/* ---------- Bewegung ---------- */

.auftauchen { animation: auftauchen 1.6s cubic-bezier(.2,.7,.2,1) both; }
.auftauchen--2 { animation-delay: .25s; }
.auftauchen--3 { animation-delay: .5s; }
.auftauchen--4 { animation-delay: .75s; }
@keyframes auftauchen {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Breite Ansicht ---------- */

@media (min-width: 900px) {
  .auftakt__bild { object-position: 50% 45%; }
  .auftakt__zahl { margin-top: 0; }
}


.auftakt__datum { margin: 1.1rem 0 0; }
.auftakt__zahl { margin-top: 0; }
h1, h2, h3, h4, .einleitung, .auftakt__unter, .brief p { text-wrap: balance; }
.zaehler { margin-bottom: 0; }

/* ---------- Umschalter zur Kartenansicht ---------- */

.umschalter { position: absolute; top: .7rem; right: .8rem; z-index: 10; }
.umschalter a {
  display: inline-block;
  font-family: var(--f-text);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  padding: .45rem .75rem;
  border: 1px solid rgba(207, 174, 114, .35);
  border-radius: 2px;
  background: rgba(5, 13, 26, .5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.umschalter a:hover, .umschalter a:focus-visible { color: var(--gold-hell); border-color: var(--gold-hell); }
@media print { .umschalter { display: none; } }
