/* ==========================================================================
   Gut Vibes – gemeinsame Grundstyles aller Sections
   --------------------------------------------------------------------------
   Wird von jedem Content Block mit derselben Asset-ID
   ("lab81-gutvibes-sections") eingebunden; TYPO3 lädt die Datei dadurch nur
   einmal und immer vor den CSS-Dateien der Blöcke. Die Blöcke enthalten nur
   noch ihre eigenen Abweichungen.
   Klasse "gv-section" am äußeren Element jedes Blocks (nicht am Footer).
   Nutzt die CSS-Variablen des Themes: --ink, --paper, --pink-text,
   --content-gutter.
   ========================================================================== */

/* Grundgerüst ----------------------------------------------------------- */

.gv-section {
  position: relative;
  color: var(--paper);
  background: transparent;
  outline: none;
  /* Platz für die fixierte Navbar beim Sprung über Section-Menü und Navbar */
  scroll-margin-top: 90px;
}

/* Hintergrund im ::before (z-index -1), damit der Paint-Trail über den
   Hintergründen, aber unter den Inhalten läuft. Farbe je Block über
   --section-fill. */
.gv-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--section-fill, var(--ink));
}

/* Kopf: Dachzeile und Überschrift --------------------------------------- */

.gv-section .section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 42px;
}

.gv-section .eyebrow {
  display: block;
  margin-bottom: 24px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  color: var(--paper);
}

.gv-section h2 {
  margin: 0;
  font-size: clamp(40px, 5.2vw, 80px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.045em;
  color: var(--paper);
}

/* Zweite Zeile der Überschrift (Feld "Untertitel") in Pink */
.gv-section h2 em {
  font-style: normal;
  text-decoration: none;
  color: var(--pink-text);
}

/* Seitenrand wie im Entwurf: auf Tablet und Handy breiter als im Hero ---- */

@media (min-width: 641px) and (max-width: 1024px) {
  .gv-section:not(.hero) {
    --content-gutter: max(56px, 5.5vw);
  }
}

@media (max-width: 640px) {
  .gv-section:not(.hero) {
    --content-gutter: max(46px, 5.5vw);
  }

  .gv-section .section-head {
    display: block;
    margin-bottom: 30px;
  }

  .gv-section h2 {
    font-size: 42px;
  }
}
