/* ===========================================================================
   Notfallpraxis — Unterseiten je Behandlungsthema (Fassung 7.4, Bauvertrag §1.1
   «Unterseiten», VORGABE-unterseiten a.3–a.6; Figma 04a/04b, Muster Gehör 1433:6184,
   Blutuntersuchung 1433:12879). Body-Klasse `npz-thema` (inc/vorlage.php).

   Bühne, Pfad, Status, Knöpfe, Team, Fragen, Textlink und Standort-Band sind
   gemeinsame Bausteine (buehne.css, pfad.css, status.css, knoepfe.css, team.css,
   fragen.css, standort.css) — hier stehen nur die Teile der Unterseite:

   Artikel   npz-abschnitt npz-thema-artikel (Weiss)
               Rechner ≥ 1280  Lesespalte 760 | 80 | Kontaktkarte 384 (klebt)
               1025–1279       Lesespalte 1fr (≥ 560) | 48 | Karte 320
               ≤ 1024          nur die Lesespalte; Karte display: none (die
                               Anrufleiste übernimmt, VORGABE a.3 / E4)
             Lesespalte: h2 Bold 40/50 −0,3 (≤ 1024 28/34) · Absatz 20/32 (17/27) ·
             Blöcke 20 auseinander (16), vor einer h2 40 (28) · Liste ohne Kasten:
             Punkt 6 akzent, mittig zur ersten Zeile, Text 30 eingerückt (28),
             Punkte 8 auseinander (6).
             Karte: Hellblau, Radius 12, kein Rand, kein Schatten, Polster 28, Lücke 20;
             Satz → Telefon 40; Knöpfe volle Breite, untereinander, 20 auseinander;
             Haarlinie über dem Status; Angaben mit Icon 20 akzent-text-tief, Lücke 12.
   Team      npz-team npz-thema-team (Hellblau)              → team.css
   Fragen    npz-fragen npz-thema-fragen (Weiss)             → fragen.css
   Weitere   npz-abschnitt npz-thema-weitere (Hellblau)
             Kopf h2 links, Textlink rechts unten bündig (≥ 768); darunter drei Karten
             (Lücke 32, Tablet 24; ≤ 767 eine Spalte, Lücke 32, Link unter den Karten).
             Bild flach, Radius 12, 260 hoch (Tablet 160, ≤ 767 200); Titel Semi Bold
             20/28 (18/24) 16 unter dem Bild; Text 20/32 (17/27) grau-text, 8 darunter;
             Link 12 darunter.
   =========================================================================== */

/* --- Artikel: Raster ------------------------------------------------------- */
body.npz-thema .npz-thema-artikel > .wp-block-group__inner-container,
body.npz-thema .npz-thema-artikel:not(:has(> .wp-block-group__inner-container)) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  column-gap: 80px;
  align-items: start;
}
body.npz-thema .npz-thema-text {
  max-width: 760px;
  margin: 0;
}
body.npz-thema .npz-thema-text > .wp-block-group__inner-container { padding: 0; max-width: none; margin: 0; }

@media (min-width: 1025px) and (max-width: 1279px) {
  body.npz-thema .npz-thema-artikel > .wp-block-group__inner-container,
  body.npz-thema .npz-thema-artikel:not(:has(> .wp-block-group__inner-container)) {
    grid-template-columns: minmax(560px, 1fr) 320px;
    column-gap: 48px;
  }
}
@media (max-width: 1024px) {
  body.npz-thema .npz-thema-artikel > .wp-block-group__inner-container,
  body.npz-thema .npz-thema-artikel:not(:has(> .wp-block-group__inner-container)) {
    display: block;
  }
  body.npz-thema .npz-thema-text { max-width: none; }
  /* Unter 1025 keine Karte — auch nicht im Barrierefreiheitsbaum (sonst doppelt
     zur Anrufleiste). */
  body.npz-thema .npz-kontaktkarte { display: none !important; }
}

/* --- Lesespalte ------------------------------------------------------------ */
body.npz-thema .npz-thema-text :is(h2, p, ul, li) { max-width: none; }
body.npz-thema .npz-thema-text > *,
body.npz-thema .npz-thema-text > .wp-block-group__inner-container > * { margin: 0; }
body.npz-thema .npz-thema-text > * + *,
body.npz-thema .npz-thema-text > .wp-block-group__inner-container > * + * { margin-top: 20px; }
body.npz-thema .npz-thema-text > * + h2,
body.npz-thema .npz-thema-text > .wp-block-group__inner-container > * + h2 { margin-top: 40px; }

/* Umbruch wie Figma: ohne `text-wrap: balance` des Themes (die Zeile füllt sich,
   «Individuelle Lösungen für Ihr / Hörvermögen»). */
body.npz-thema :is(.npz-thema-h2, .npz-thema-weitere-titel, .npz-thema-karte-titel, .npz-kontaktkarte-titel) { text-wrap: wrap; }
body.npz-thema .npz-thema-text h2.npz-thema-h2 {
  color: var(--slate);
  font-size: 40px;
  font-weight: 700;
  line-height: 50px;
  letter-spacing: -0.3px;
  /* Figma trennt nicht («Unser / Leistungsspektrum im / Überblick»); das U+00AD der H1
     steht in der Bühne, nicht hier. */
  hyphens: manual;
}
body.npz-thema .npz-thema-text p,
body.npz-thema .npz-thema-text li {
  color: var(--slate);
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
}
body.npz-thema .npz-thema-text li strong { font-weight: 600; }

/* Liste ohne Kasten. Klassentiefe (0,4,4) über der Theme-Regel (0,3,3) für den
   grauen Punkt — Farbe, Lage und Einzug nach Figma (`c.liste`: Marke 6 · 6 · 6,
   Lücke 12 / Telefon 10). */
body.npz-thema .npz-thema-text ul.wp-block-list.npz-thema-liste {
  display: grid;
  gap: 8px;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  list-style: none;
}
body.npz-thema .npz-thema-text ul.wp-block-list.npz-thema-liste > li {
  position: relative;
  margin: 0;
  padding-left: 30px;
}
body.npz-thema .npz-thema-text ul.wp-block-list.npz-thema-liste > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 13px;
  width: 6px;
  height: 6px;
  background-color: var(--akzent);
  border-radius: 50%;
  corner-shape: round;
  -webkit-mask: none;
  mask: none;
}

@media (max-width: 1024px) {
  body.npz-thema .npz-thema-text > * + *,
  body.npz-thema .npz-thema-text > .wp-block-group__inner-container > * + * { margin-top: 16px; }
  body.npz-thema .npz-thema-text > * + h2,
  body.npz-thema .npz-thema-text > .wp-block-group__inner-container > * + h2 { margin-top: 28px; }
  body.npz-thema .npz-thema-text h2.npz-thema-h2 { font-size: 28px; line-height: 34px; }
  body.npz-thema .npz-thema-text p,
  body.npz-thema .npz-thema-text li { font-size: 17px; line-height: 27px; }
  body.npz-thema .npz-thema-text ul.wp-block-list.npz-thema-liste { gap: 6px; }
  body.npz-thema .npz-thema-text ul.wp-block-list.npz-thema-liste > li { padding-left: 28px; }
  body.npz-thema .npz-thema-text ul.wp-block-list.npz-thema-liste > li::before { top: 11px; }
}

/* --- Kontaktkarte (klebt) -------------------------------------------------- */
body.npz-thema .npz-kontaktkarte {
  position: sticky;
  top: calc(var(--hbl-kopf-sichtbar, 100px) + 24px);
  align-self: start;
  margin: 0;
}
body.npz-thema .npz-kontaktkarte-innen {
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
  padding: 28px;
  border: 0;
  border-radius: var(--hbl-radius, 12px);
  background: var(--blau-hell);
  box-shadow: none;
  color: var(--slate);
}
body.npz-thema .npz-kontaktkarte-innen p { margin: 0; max-width: none; }
body.npz-thema .npz-kontaktkarte-kopf { display: flex; flex-direction: column; gap: 6px; }
body.npz-thema .npz-kontaktkarte-titel {
  color: var(--slate);
  font-size: 30px;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: 0;
}
body.npz-thema .npz-kontaktkarte-satz { font-size: 16px; line-height: 24px; }

/* Knöpfe volle Breite, untereinander; Satz → Telefon 40 (l29 §2), dazwischen 20. */
body.npz-thema .npz-kontaktkarte .wp-block-buttons.npz-knoepfe {
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  margin: 20px 0 0;          /* + Lücke 20 = 40 unter dem Satz */
}
body.npz-thema .npz-kontaktkarte .wp-block-buttons.npz-knoepfe > .wp-block-button { width: 100%; }
body.npz-thema .npz-kontaktkarte .wp-block-buttons.npz-knoepfe .wp-block-button__link { width: 100%; }

/* Haarlinie über dem Status (Lücke 20 darüber und darunter). */
body.npz-thema .npz-kontaktkarte-zustand {
  padding-top: 20px;
  border-top: 1px solid var(--npz-linie);
}

/* Angaben: Icon 20 akzent-text-tief, Lücke 12; Semi Bold 16/24, zweite Zeile grau. */
body.npz-thema .npz-kontaktkarte-angaben {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.npz-thema .npz-kontaktkarte-angaben li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 12px;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--slate);
}
/* Die Theme-Regel für Listen im Inhalt (`.entry-content ul > li::before`: absolut,
   6 × 6, rund, Einzug 34) greift auch hier — zurückgesetzt. */
body.npz-thema .npz-kontaktkarte-angaben li::before {
  content: "";
  position: static;
  grid-row: 1 / span 2;
  border-radius: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: var(--akzent-text-tief);
  -webkit-mask: var(--npz-icon) center / 20px 20px no-repeat;
  mask: var(--npz-icon) center / 20px 20px no-repeat;
}
body.npz-thema .npz-kontaktkarte-angaben strong { display: block; font-weight: 600; }
body.npz-thema .npz-kontaktkarte-angaben span { display: block; color: var(--grau-text); }
body.npz-thema .npz-angabe-schild { --npz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }

@media (min-width: 1025px) and (max-width: 1279px) {
  body.npz-thema .npz-kontaktkarte-innen { padding: 24px; }
}

/* --- Weitere Themen -------------------------------------------------------- */
body.npz-thema .npz-thema-weitere > .wp-block-group__inner-container,
body.npz-thema .npz-thema-weitere:not(:has(> .wp-block-group__inner-container)) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "titel link" "karten karten";
  align-items: end;
  column-gap: 24px;
  row-gap: 48px;
}
body.npz-thema .npz-thema-weitere .npz-thema-weitere-titel { grid-area: titel; margin: 0; }
body.npz-thema .npz-thema-weitere .npz-thema-karten { grid-area: karten; margin: 0; }
body.npz-thema .npz-thema-weitere .npz-thema-alle { grid-area: link; margin: 0 0 6px; }

body.npz-thema .npz-thema-karten > .wp-block-group__inner-container,
body.npz-thema .npz-thema-karten:not(:has(> .wp-block-group__inner-container)) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: none;
  margin: 0;
  padding: 0;
}
body.npz-thema .npz-thema-karte { margin: 0; }
body.npz-thema .npz-thema-karte > .wp-block-group__inner-container { padding: 0; max-width: none; }
body.npz-thema .npz-thema-karte > *,
body.npz-thema .npz-thema-karte > .wp-block-group__inner-container > * { margin: 0; max-width: none; }
body.npz-thema .npz-thema-karte .npz-thema-karte-bild { margin: 0; }
body.npz-thema .npz-thema-karte .npz-thema-karte-bild img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--hbl-radius, 12px);
}
body.npz-thema .npz-thema-karte .npz-thema-karte-titel {
  margin-top: 16px;
  color: var(--slate);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0;
}
body.npz-thema .npz-thema-karte .npz-thema-karte-text {
  margin-top: 8px;
  color: var(--grau-text);
  font-size: 20px;
  line-height: 32px;
}
body.npz-thema .npz-thema-karte .npz-textlink { margin-top: 12px; }

@media (max-width: 1024px) {
  body.npz-thema .npz-thema-weitere > .wp-block-group__inner-container,
  body.npz-thema .npz-thema-weitere:not(:has(> .wp-block-group__inner-container)) { row-gap: 32px; }
  body.npz-thema .npz-thema-karten > .wp-block-group__inner-container,
  body.npz-thema .npz-thema-karten:not(:has(> .wp-block-group__inner-container)) { gap: 24px; }
  body.npz-thema .npz-thema-karte .npz-thema-karte-bild img { height: 160px; }
  body.npz-thema .npz-thema-karte .npz-thema-karte-titel { font-size: 18px; line-height: 24px; }
  body.npz-thema .npz-thema-karte .npz-thema-karte-text { font-size: 17px; line-height: 27px; }
}
@media (max-width: 767px) {
  body.npz-thema .npz-thema-weitere > .wp-block-group__inner-container,
  body.npz-thema .npz-thema-weitere:not(:has(> .wp-block-group__inner-container)) {
    display: block;
  }
  body.npz-thema .npz-thema-weitere .npz-thema-karten { margin-top: 32px; }
  body.npz-thema .npz-thema-weitere .npz-thema-alle { margin: 32px 0 0; }
  body.npz-thema .npz-thema-karten > .wp-block-group__inner-container,
  body.npz-thema .npz-thema-karten:not(:has(> .wp-block-group__inner-container)) {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  body.npz-thema .npz-thema-karte .npz-thema-karte-bild img { height: 200px; }
}
