/* ============================================================
   HERO — Headline, Newsletter-Formular, Phone, Countdown
   ============================================================ */

.hero {
  position: relative;
  display: flow-root;            /* verhindert Margin-Collapsing */
  /* Die Nav liegt fix darüber — ihre Höhe steckt deshalb im
     Padding: 152px + 48px = 200px bis zur h1. */
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 0;
}

/* ---------- Hintergrund ----------
   Zwei Ebenen, beide hinter dem Inhalt (`z-index: -1`):

   1. Radialer Schein: #F0F5F8 innen → #C9D7E9 außen, 15 %
      Deckkraft auf Weiß.
   2. Weißer Verlauf über den obersten 490px, auf dem die Nav
      steht. Beim Scrollen übernimmt der Nav-eigene Verlauf
      (nav.css) — dieser hier blendet aus. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  top: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 52% 55% at 55% 52%,
      var(--hero-glow-inner) 0%,
      var(--hero-glow-outer) 100%),
    var(--white);
}

.hero::after {
  top: 0;
  height: var(--hero-veil-h);
  background: linear-gradient(
    180deg,
    var(--white) 0%,
    var(--white) 35%,
    rgba(255, 255, 255, 0.62) 65%,
    rgba(255, 255, 255, 0) 100%
  );
}

.hero__inner {
  position: relative;
}

/* ---------- Headline ---------- */
.hero__title {
  margin-bottom: 32px;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  font-weight: var(--fw-bold);
  color: var(--ink);
}

.hero__date {
  font-weight: var(--fw-semibold);
  font-style: italic;
  color: var(--ink-muted);
}

/* ---------- Lead ---------- */
.hero__lead {
  max-width: 600px;
  margin-bottom: 48px;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  font-weight: var(--fw-medium);
  color: var(--ink-soft);
}

/* ---------- Formular + Hinweis ---------- */
.hero__form {
  margin-bottom: 12px;
}

.hero__note {
  margin-bottom: 48px;
  font-size: var(--fs-sm);
  line-height: 1;
  color: var(--ink-soft);
}

.hero__note .link {
  font-size: inherit;
  font-weight: var(--fw-semibold);
  line-height: 1;
  text-decoration: underline;
}

/* ---------- Phone ----------
   Sitzt rechts im Hero und läuft unten hinter die Countdown-Box.
   Bezug ist die Unterkante des Hero-Contents. */
.hero__visual {
  position: absolute;
  /* 80px Abstand zur Content-Kante (der Container bringt noch
     sein eigenes Padding mit) */
  right: calc(80px + var(--container-px));
  bottom: -194px;
  z-index: var(--z-phone);
  pointer-events: none;
}

.hero__phone {
  width: auto;
  height: 640px;
  max-height: 640px;
}

/* ============================================================
   COUNTDOWN-BOX
   Ragt mit der halben Höhe aus dem Hero in die nächste Sektion.
   ============================================================ */
.hero__countdown {
  position: relative;
  z-index: var(--z-countdown);
  margin-top: 96px;
  margin-bottom: calc(-1 * var(--countdown-overlap));
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 32px 90px;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--white);
}

.countdown__title {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: var(--fs-countdown-title);
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--white);
}

.countdown__meta {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: 1;
  color: var(--white);
}

/* ---------- Timer ---------- */
.countdown__timer {
  display: flex;
  align-items: center;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 124px;
  height: 124px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background: var(--white);
}

/* Zählwerk: der Wert rollt weich durch, statt zu springen */
.countdown__value {
  position: relative;
  width: 100%;
  height: var(--fs-countdown);
  margin-bottom: 4px;
  overflow: hidden;
}

.countdown__digit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-countdown);
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: transform var(--dur-slow) var(--ease), opacity var(--dur-slow) var(--ease);
}

.countdown__digit--enter {
  transform: translateY(100%);
  opacity: 0;
}

.countdown__digit--leave {
  transform: translateY(-100%);
  opacity: 0;
}

.countdown__label {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  line-height: 1;
  color: var(--ink-muted);
}

/* ---------- Doppelpunkt zwischen den Boxen ---------- */
.countdown__sep {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-inline: 12px;
}

.countdown__sep::before,
.countdown__sep::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--white);
}
