/* =============================================================
   ABSTAENDE DER STARTSEITE
   Nur auf index.html und de/index.html eingebunden und als letztes
   Stylesheet geladen, damit es die Werte der Sections ueberschreibt.

   Regel: Zwischen Sections mit gleicher Farbe steht --section-gap.
   Wo die Hintergrundfarbe wechselt, steht auf beiden Seiten des
   Wechsels --section-edge. Aendert sich die Reihenfolge oder eine
   Farbe, gehoert die Section hier in die passende Gruppe.

   Statement und Habit sind Scroll-Effekte mit eigener Hoehe und
   stehen deshalb nicht in dieser Liste.
   ============================================================= */

/* Gleich gross: An einem Farbwechsel steht der Wert auf jeder Seite, insgesamt also doppelt so viel */
:root {
  --section-gap: clamp(88px, 13.9vw, 200px);
  --section-edge: clamp(88px, 13.9vw, 200px);
}

/* Unterkante an einem Farbwechsel */
.hero,
.stats,
.profile-teaser,
.clubs + .social-proof {
  padding-bottom: var(--section-edge);
}

/* Oberkante an einem Farbwechsel */
.feature--first,
.clubs,
.privacy {
  padding-top: var(--section-edge);
}

/* Gleiche Farbe: jede Seite traegt die Haelfte */
.feature--first,
.feature--reverse,
.feature--last,
.voices,
.sports,
.clubs,
.privacy,
.cta {
  padding-bottom: calc(var(--section-gap) / 2);
}

.feature--reverse,
.feature--last,
.voices,
.sports,
.profile-teaser,
.clubs + .social-proof,
.cta,
.footer {
  padding-top: calc(var(--section-gap) / 2);
}

/* Runde Ecken unten an jedem Farbwechsel: Die obere Section malt ihre beiden unteren Ecken in der
   Farbe der Section darunter (--below). Nur Hintergrund, deshalb bleiben Layout, Abstaende und die
   Scroll-Effekte unberuehrt. Radius wie die Habit-Karte zu Beginn. */
:root {
  --section-radius: clamp(28px, 3.4vw, 48px);
}

.hero,
.stats,
.profile-teaser,
.clubs + .social-proof {
  background-image:
    radial-gradient(circle at 100% 0, transparent calc(var(--section-radius) - 0.5px), var(--below) calc(var(--section-radius) + 0.5px)),
    radial-gradient(circle at 0 0, transparent calc(var(--section-radius) - 0.5px), var(--below) calc(var(--section-radius) + 0.5px));
  background-position: left bottom, right bottom;
  background-repeat: no-repeat;
  background-size: var(--section-radius) var(--section-radius);
}

.hero {
  --below: var(--color-surface, #f5f3f2);
}

.stats,
.clubs + .social-proof {
  --below: var(--color-bg, #fff);
}

.profile-teaser {
  --below: #161616;
}
