/* ==========================================================================
   Etappe 1 – Hero „Wonder, together.“
   Idee: der Blick aufs Meer. Die Headline steht auf einer Messing-Horizontlinie,
   das g von „together“ taucht darunter ins Wasser. Über der Linie das Staunen,
   darunter, eine Spur tiefer im Blau, die Einladung.
   ========================================================================== */

/* Die Kopfzeile wohnt seit Etappe 6 in css/nav.css. */

/* Fläche */
.hero {
  display: grid;
  grid-template-rows: 1fr auto auto;
  min-height: 100svh;
  background: var(--grain) 0 0 / 240px 240px, var(--bg);
}

/* Über dem Horizont */
.hero__sky {
  display: flex;
  align-items: flex-end;
  padding-top: clamp(7.5rem, 5.5rem + 8vw, 12rem);
}

.hero__title {
  position: relative;
  z-index: 2; /* das g darf über Linie und tieferes Blau ragen */
  color: var(--heading);
  font-size: var(--step-display);
  font-weight: 330;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  line-height: 0.96;
  letter-spacing: -0.022em;
  text-box: trim-both cap alphabetic; /* Unterkante = Grundlinie, steht also auf dem Horizont */
}

@supports not (text-box: trim-both cap alphabetic) {
  .hero__title {
    margin-bottom: -0.22em;
  }
}

.hero__line {
  display: block;
  white-space: nowrap;
}

.hero__line + .hero__line {
  padding-inline-start: 1.4em;
}

/* Der Horizont: randlos, eine Haarlinie in Messing */
.hero__horizon {
  height: 1px;
  background-color: var(--rule);
  transform-origin: left center;
}

/* Unter dem Horizont */
.hero__sea {
  padding-block: clamp(2.25rem, 1.5rem + 3vw, 4rem) clamp(2.75rem, 1.75rem + 4vw, 5.5rem);
  background: var(--grain) 0 0 / 240px 240px, var(--sea-deep);
}

.hero__sea-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--space-m);
  align-items: start;
}

.hero__lede {
  grid-column: 1 / span 7;
  max-width: 31ch;
  color: var(--fg);
  font-size: var(--step-2);
  line-height: 1.4;
}

.hero__lede-promise {
  display: block;
}

.hero__intro {
  grid-column: 1 / span 6;
  max-width: 46ch;
  color: var(--fg-soft);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  grid-column: 9 / -1;
  grid-row: 1 / span 2;
  justify-self: end;
  align-items: flex-start;
  gap: var(--space-s);
  padding-top: 0.35rem;
}

@media (max-width: 56rem) {
  .hero__sea-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__lede,
  .hero__intro,
  .hero__actions {
    grid-column: 1;
    grid-row: auto;
  }

  .hero__actions {
    justify-self: start;
    margin-top: var(--space-2xs);
    padding-top: 0;
  }

  .hero__actions .link-quiet {
    align-self: flex-start;
    padding-block: 0.5rem; /* größere Tippfläche */
  }

  .hero__line + .hero__line {
    padding-inline-start: 0.55em;
  }
}

/* Auf dem Handy wird der Button zur vollen Daumenfläche */
@media (max-width: 30rem) {
  .hero__actions {
    justify-self: stretch;
    align-items: stretch;
  }
}

@media (max-width: 22.5rem) {
  .hero__line + .hero__line {
    padding-inline-start: 0;
  }
}

/* Intro-Bewegung: nur vorbereitet, wenn JS läuft und Bewegung erwünscht ist.
   Ohne JS oder nach der Sicherheitsfrist steht alles im Endzustand. */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.intro-done) .hero__line,
  .js:not(.intro-done) .hero [data-intro] {
    opacity: 0;
  }

  .js:not(.intro-done) .hero__horizon {
    transform: scaleX(0);
  }
}
