:root {
  --brand-gold: #ab8c3d;
  --brand-gold-hover: #947a34;
  --brand-green: #0e554a;
  --bg: #faf8f4;
  --surface: #fffdf9;
  --text: #1f2b29;
  --muted: #4a635f;
  --border: rgba(14, 85, 74, 0.22);
  /* +25 % zu vorher 16px / 8–30px Schatten */
  --radius: 20px;
  --shadow: 0 10px 38px rgba(14, 85, 74, 0.1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Schrift & rem-basierte Größen +25 % (1rem = 125 % der Browser-Standardgröße) */
  font-size: 125%;
  /* kein zoom: 1.5 mehr – bricht Zentrierung + 100dvh in Chromium oft (viel Leerfläche oben, Abschneiden unten) */
}

body {
  margin: 0;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  /* Nur scrollen, wenn der Inhalt wirklich höher als das Fenster ist (verhindert abgeschnittenen Button) */
  overflow-y: auto;
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1 {
  margin: 0 0 0.75rem;
  line-height: 1.2;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.75rem, 5.25vw, 3rem);
  color: var(--brand-green);
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
}

.container {
  box-sizing: border-box;
  width: min(1100px, 92%);
  max-width: 100%;
  margin-inline: auto;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

/* header.hero.section: eine Ebene, vertikal zentriert, mindestens Bildschirmhöhe */
.hero.section {
  padding-top: max(
    env(safe-area-inset-top, 0px),
    clamp(0.45rem, 1.5svh + 0.35rem, 1.1rem)
  );
  padding-bottom: max(
    env(safe-area-inset-bottom, 0px),
    clamp(0.45rem, 1.5svh + 0.35rem, 1.1rem)
  );
  padding-inline: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* center: Block bleibt max. 1100px / 92% breit und sitzt mittig (nicht volle Breite linksbündig) */
  align-items: center;
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: visible;
}

.hero-grid {
  display: grid;
  gap: clamp(0.85rem, 2svh + 0.35rem, 1.5rem);
  width: 100%;
  min-height: 0;
}

.hero-copy {
  min-width: 0;
}

/* Hochformat: Größe über rem (skaliert mit Zoom wie Text), nicht vw/vh – die wirken beim Zoomen oft „anders“ als Fließtext */
.hero-visual {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  /* Klar höher als breit (3:4) */
  aspect-ratio: 3 / 4;
  width: min(100%, 22rem);
  max-width: 100%;
  height: auto;
  min-height: 0;
  justify-self: center;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--brand-green);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.lead {
  font-size: clamp(1.05rem, 2.625svh + 0.4rem, 1.25rem);
  color: var(--muted);
  max-width: 60ch;
}

.trust-note {
  font-size: clamp(0.95rem, 2.25svh + 0.35rem, 1.05rem);
  color: var(--muted);
  margin-bottom: clamp(0.65rem, 1.875svh, 1rem);
  max-width: 45ch;
}

.hero-cta {
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: min(100%, 525px);
}

.hero-event-time {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-green);
  letter-spacing: 0.01em;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.countdown {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-green);
  white-space: nowrap;
}

.form-message {
  flex-basis: 100%;
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.form-message[hidden] {
  display: none !important;
}

.hero-sun-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 60px;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    max-width 0.4s ease,
    opacity 0.35s ease;
}

.hero-sun {
  display: block;
  flex-shrink: 0;
  height: 35px;
  width: auto;
  transform: translateY(100%);
  transition: transform 0.45s ease;
}

/* Hover nur auf Geräten mit echtem Hover (verhindert „erster Tap = Hover, zweiter Tap = Klick“ auf Touch) */
@media (hover: hover) {
  .hero-cta-row:hover .hero-sun-wrap,
  .hero-cta-row:focus-within .hero-sun-wrap {
    max-width: 70px;
    opacity: 1;
  }

  .hero-cta-row:hover .hero-sun,
  .hero-cta-row:focus-within .hero-sun {
    transform: translateY(0);
  }
}

/* Touch: kein Hover-Zwischenschritt – Sonne immer sichtbar */
@media (hover: none) {
  .hero-sun-wrap {
    max-width: 70px;
    opacity: 1;
  }

  .hero-sun {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sun {
    transform: translateY(0);
    transition: opacity 0.2s ease;
  }

  .hero-sun-wrap {
    transition: max-width 0.3s ease, opacity 0.2s ease;
  }
}

.hero-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-input {
  width: 100%;
  min-height: 60px;
  padding: 0.65rem 1.15rem;
  border: 2px solid #ab8c3d;
  background: #fff;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hero-input::placeholder {
  color: #0e554a;
  opacity: 0.55;
}

.hero-input:focus {
  outline: none;
  border-color: var(--brand-gold-hover);
  box-shadow: 0 0 0 4px rgba(171, 140, 61, 0.22);
}

.hero-input:focus::placeholder {
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.75rem;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  min-height: 60px;
  cursor: pointer;
  font: inherit;
}

.btn-primary {
  background: var(--brand-gold);
  color: #fff;
}

.btn-primary:focus-visible {
  background: var(--brand-gold-hover);
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--brand-gold-hover);
  }
}

@media (min-width: 800px) {
  .hero-grid {
    /* etwas weniger Luft zwischen den Spalten, Spalten leicht zugunsten Bild */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    column-gap: clamp(0.75rem, 2vw, 1.25rem);
  }

  /* Text rechts in der linken Spalte = näher am Bild */
  .hero-copy {
    justify-self: end;
    width: 100%;
    max-width: min(26rem, 100%);
  }

  /* Schmales Portrait in der rechten Spalte, am Text ausgerichtet */
  .hero-visual {
    justify-self: start;
    width: min(100%, 26rem);
  }
}

/* Niedrige Fenster: weniger Rand, kleineres Bild – bleibt mittig und im Viewport */
@media (max-height: 720px) {
  .hero.section {
    padding-top: max(
      env(safe-area-inset-top, 0px),
      clamp(0.3rem, 1.2dvh, 0.65rem)
    );
    padding-bottom: max(
      env(safe-area-inset-bottom, 0px),
      clamp(0.3rem, 1.2dvh, 0.65rem)
    );
  }

  .hero-grid {
    gap: clamp(0.65rem, 2dvh, 1.15rem);
  }

  .hero-visual {
    width: min(100%, 18rem);
  }

  .eyebrow {
    margin-bottom: 0.35rem;
  }

  .trust-note {
    margin-bottom: 0.75rem;
  }
}
