/* =====================================================================
   css/unterseiten.css – gemeinsames Stylesheet der modernisierten Unterseiten
   Enthält das Hero-System „sub-hero“ (freigegeben, Stand 21.11.2026):
     Variante A  .sub-hero--mit-bild   Text und Bild (ab 720 px nebeneinander)
     Variante B  .sub-hero--ohne-bild  nur Text, linksbündig über die Grundbreite
   Beide teilen Grundbreite, Abstände, Typografie, Hintergrund, Overline und Aktionszeile;
   nur das Raster und die Lesebreite des Intros unterscheiden sich.

   Regeln für diese Datei:
   - Mobile First; zwei Umbruchpunkte: 720 px (Raster Variante A) und 1001 px (Desktop, wie Startseite).
     Einzige Ausnahme: max-width 720 px für .sub-hero__nur-ab-721 (exakt die Grenze der alten Klasse mobile-hidden).
   - Alle Selektoren beginnen mit .sub-hero – keine globalen Regeln, damit Header, Footer
     und die bisherigen Inhaltsbereiche unberührt bleiben. Kein !important.
   - Pixelwerte statt rem: Das alte Bootstrap-CSS setzt html { font-size: 10px }.
   - Zwei Klassen Spezifität (.sub-hero .x) genügen gegen die alten Element-Regeln
     (h1 zentriert mit Innenabstand, p-Farbe, Bootstrap a:hover).
   - Linkfarbe: styles/styles.css färbt jedes <a> mit !important. Die Textfarbe sitzt
     deshalb auf einem inneren <span> bzw. dem SVG – die alte Regel trifft nur das <a>.

   Schriften:
   - H1: eigene Schnitte unter dem Familiennamen „NW Crimson Text“ (wie styles/header.css),
     damit die Legacy-Familie „Crimson Text“ keine zusätzlichen Schnitte bekommt und
     bestehende Überschriften der Inhaltsbereiche unverändert bleiben.
   - Fließtext: „Open Sans“ aus styles/styles.css – keine eigenen Deklarationen hier (Abhängigkeit, siehe LIESMICH.md):
       400 normal  fonts/open-sans-v16-latin-regular.woff2    (Intro, Bildbeschriftung)
       600 normal  fonts/open-sans-v34-latin-600.woff2        (Overline, Button, Textlink, <strong> im Intro)
       300 kursiv  fonts/open-sans-v16-latin-300italic.woff2  (<em> im Intro)
   ===================================================================== */

/* --- Schriften der H1 (nur lokale Dateien aus fonts/) ------------------ */
@font-face { font-family: "NW Crimson Text"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/crimson-text-v19-latin-700.woff2") format("woff2"); }
/* 700 kursiv ist lokal nicht vorhanden – 600 kursiv ist der nächste vorhandene Schnitt. */
@font-face { font-family: "NW Crimson Text"; font-style: italic; font-weight: 600; font-display: swap;
  src: url("../fonts/CrimsonText-600-italic.woff2") format("woff2"); }

/* --- Design-Token (Werte der Startseite, nur innerhalb der Komponente) -- */
.sub-hero {
  --o-green: #327502;
  --o-green-dark: #2a6302;
  --o-ink: #26352b;
  --o-text: #37413b;
  --o-line: #dce5d6;
  --o-green-tint: #f1f4ed;
  --o-gutter: clamp(20px, 5.5vw, 24px);
  --o-radius-img: 10px;
  --o-sans: "Open Sans", Arial, sans-serif;
}

/* --- Grundlage (Mobile) ------------------------------------------------- */
.sub-hero, .sub-hero *, .sub-hero *::before, .sub-hero *::after { box-sizing: border-box; }

.sub-hero {
  clear: both;                                     /* steht nach gefloateten Legacy-Spalten */
  margin: 0;
  padding: 32px var(--o-gutter) 44px;
  background: var(--o-green-tint);
  color: var(--o-text);
  text-align: left;
}
.sub-hero .sub-hero__shell { max-width: 1140px; margin: 0 auto; }

/* Overline: Versalien, gesperrt, Linie davor */
.sub-hero .sub-hero__overline {
  display: flex; align-items: center; gap: 16px;
  margin: 0;
  font: 600 13px/1.6 var(--o-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--o-ink);
}
.sub-hero .sub-hero__overline::before { content: ""; flex: none; width: 32px; height: 2px; background: currentColor; }

/* H1 – überschreibt die alte h1-Regel (zentriert, Innenabstand oben, 600) */
.sub-hero .sub-hero__title {
  margin: 16px 0 0;
  padding: 0;
  font: 700 42px/44px "NW Crimson Text", Georgia, serif;   /* freigegeben: mobil 42/44 px */
  text-align: left;
  text-wrap: balance;
  color: var(--o-ink);
}
.sub-hero .sub-hero__title em {
  font-style: italic;
  font-weight: 600;                                /* vorhandener Schnitt, kein künstliches Fett */
  font-synthesis: none;
  color: var(--o-green);
}

.sub-hero .sub-hero__intro {
  margin: 20px 0 0;
  max-width: 34em;
  font: 400 18px/1.75 var(--o-sans);
  color: var(--o-text);                            /* überschreibt die alte p-Farbe */
}
.sub-hero .sub-hero__intro strong { font-weight: 600; }
.sub-hero .sub-hero__intro a { text-decoration: none; }        /* z. B. Fußnotenlink „*“ (Farbe kommt noch aus styles.css) */

/* Zeilenumbrüche aus den Originaltexten, die nur in bestimmten Breiten gelten
   (ersetzen die alten Klassen mobile-hidden / desktop-hidden mit denselben Grenzen):
   .sub-hero__nur-bis-1000  sichtbar bis 1000 px (vorher desktop-hidden)
   .sub-hero__nur-ab-721    sichtbar ab 721 px  (vorher mobile-hidden)                  */
.sub-hero .sub-hero__nur-bis-1000 { display: block; }
@media (max-width: 720px) {
  .sub-hero .sub-hero__nur-ab-721 { display: none; }
}

/* Aktionszeile: Primärbutton ohne Pfeil, Textlink mit Pfeil nach unten */
.sub-hero .sub-hero__aktion {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px 20px;
  margin: 26px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--o-line);
}
.sub-hero .sub-hero__button,
.sub-hero .sub-hero__textlink {
  display: inline-flex; align-items: center;
  font: 600 16px/1.3 var(--o-sans);
  text-decoration: none;                           /* gilt auch für :hover (höhere Spezifität als a:hover) */
}
.sub-hero .sub-hero__button:focus-visible,
.sub-hero .sub-hero__textlink:focus-visible { outline: 2px solid var(--o-ink); outline-offset: 3px; }

.sub-hero .sub-hero__button {
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--o-green);
}
.sub-hero .sub-hero__button:hover { background: var(--o-green-dark); }
.sub-hero .sub-hero__button span { color: #fff; }

.sub-hero .sub-hero__textlink { gap: 6px; border-radius: 2px; }
.sub-hero .sub-hero__textlink span {
  color: var(--o-green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.sub-hero .sub-hero__textlink:hover span,
.sub-hero .sub-hero__textlink:focus-visible span { text-decoration-thickness: 2px; }
.sub-hero .sub-hero__textlink svg {
  flex: none; width: 18px; height: 18px;
  fill: none; stroke: var(--o-green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

/* Bild (Variante A): Originalproportion, kein Zuschnitt, nie größer als das Original */
.sub-hero .sub-hero__media { position: relative; width: fit-content; max-width: 100%; margin: 32px 0 0; }
.sub-hero .sub-hero__media picture { display: block; }
.sub-hero .sub-hero__media img {
  display: block;
  max-width: 100%; height: auto;
  border: 0;
  border-radius: var(--o-radius-img);
}
.sub-hero .sub-hero__caption {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px);
  padding: 8px 14px;
  border-radius: var(--o-radius-img);
  background: rgba(255, 255, 255, .82);
  color: var(--o-text);
  font: 400 15px/1.4 var(--o-sans);
}

/* --- Ab 720 px: Variante A mit Text und Bild nebeneinander ---------------- */
@media (min-width: 720px) {
  .sub-hero { padding: 52px 28px 60px; }
  .sub-hero--mit-bild .sub-hero__shell {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: 35px;
    align-items: center;
  }
  .sub-hero .sub-hero__media { margin: 0; }
}

/* --- Desktop ab 1001 px ------------------------------------------------- */
@media (min-width: 1001px) {
  .sub-hero { padding: 88px 28px 96px; }
  .sub-hero .sub-hero__shell { max-width: 1052px; }
  .sub-hero--mit-bild .sub-hero__shell { column-gap: 64px; }
  .sub-hero .sub-hero__overline { gap: 20px; font-size: 14px; }
  .sub-hero .sub-hero__overline::before { width: 36px; }
  .sub-hero .sub-hero__title { margin-top: 20px; font-size: 56px; line-height: 58px; text-wrap: wrap; }   /* freigegeben: 56/58 px */
  .sub-hero .sub-hero__intro { margin-top: 28px; }
  .sub-hero--ohne-bild .sub-hero__intro { max-width: 760px; }   /* Lesebreite der Variante B wie Startseite */
  .sub-hero .sub-hero__aktion { margin-top: 32px; padding-top: 32px; }
  .sub-hero .sub-hero__caption { left: 18px; bottom: 18px; padding: 10px 18px; font-size: 16px; }
  .sub-hero .sub-hero__nur-bis-1000 { display: none; }
}
