/* ===========================================================================
   Notfallpraxis — Standort-Band „So finden Sie uns“ (Pattern npz/standort)
   Fassung 7.4 (Bauvertrag §2.11, VORGABE-global §6, Figma l24 Teil 2 x.standort):
   Gestalt FINAL + Lösungen des neuen Footers. Auf Start, beiden Fachseiten und allen
   19 Unterseiten; nicht auf Kontakt, Zuweisende, Recht.

                   Rechner ≥ 1025               Tablet 600–1024        Telefon ≤ 599
   Aufbau          Text 720 | Bild 720 rand-    Text oben, Bild unten  Text oben, Bild unten
                   abfallend, 640 hoch
   Polster Text    72 / 80 / 72 / Rand,          72 / 40 / 72 / 40      56 / 24 / 48 / 24
                   senkrecht mittig
   Dachzeile       16/22, Laufweite 2, VERSAL,   14/19                  14/19
                   Taupe (einzige Dachzeile)
   Adresse         28/39 Bold Weiss, Polster     22/31                  22/31
                   16 oben und unten
   Zeilen          20/27 Light Weiss, Abstand 8  17/24                  17/24
   Knöpfe          48 Abstand, nebeneinander     48, nebeneinander      40, untereinander 52
   Bild            Zuschnitt 0% 50%              420 hoch, ganze Front  256 hoch
   Unten eine Linie 1 px Weiss zur Fusszeile. Kein margin-top: der Abstand davor ist
   das Unterpolster des letzten Abschnitts (Rolle sektion, Teil e Nr. 19).
   Knopf-Gestalt: assets/knoepfe.css (npz-laut-gefuellt / npz-laut-hell).
   =========================================================================== */

/* --- Band ----------------------------------------------------------------- */
body.hbl-npz .hbl-rumpf .npz-standort,
body.hbl-npz .npz-standort {
  padding: 0;
  margin-top: 0;
  background: var(--slate);
  color: var(--white);
  border-bottom: 1px solid var(--white);
}

body.hbl-npz .npz-standort > .wp-block-group__inner-container,
body.hbl-npz .npz-standort:not(:has(> .wp-block-group__inner-container)) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 640px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* --- Text ----------------------------------------------------------------- */
body.hbl-npz .npz-standort .npz-standort-text {
  box-sizing: border-box;
  align-self: center;
  margin: 0;
  padding: 72px clamp(32px, calc(50vw - 640px), 80px) 72px var(--hbl-inhaltsbund);
}
body.hbl-npz .npz-standort .npz-standort-text > .wp-block-group__inner-container { padding: 0; max-width: none; }

body.hbl-npz .npz-standort .npz-standort-eyebrow {
  margin: 0;
  color: var(--taupe);
  font-size: 16px;
  /* Figma Medium 500 → 400 (Entscheid 5: Inter 500 ist nicht geladen). */
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
body.hbl-npz .npz-standort .npz-standort-titel {
  margin: 0;
  padding: 16px 0;
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  line-height: 39px;
  letter-spacing: 0;
}
body.hbl-npz .npz-standort .npz-standort-zeile {
  margin: 8px 0 0;
  color: var(--white);
  font-size: 20px;
  font-weight: 300;
  line-height: 27px;
}
body.hbl-npz .npz-standort .npz-standort-titel + .npz-standort-zeile { margin-top: 0; }
body.hbl-npz .npz-standort .wp-block-buttons.npz-standort-knoepfe { margin: 48px 0 0; gap: 12px; }

/* --- Bild ----------------------------------------------------------------- */
body.hbl-npz .npz-standort .hbl-npz-standort-bild {
  position: relative;
  margin: 0;
  padding: 0;
  min-height: 640px;
  overflow: hidden;
}
body.hbl-npz .npz-standort .npz-standort-bildrahmen { display: contents; }
body.hbl-npz .npz-standort .npz-standort-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--hbl-fokus, 50% 50%);
  border-radius: 0;
}

/* Ab 1441 wird die Bildhälfte breiter als 720 × 640 und flacher (2560: 1280 × 640);
   der Desktop-Ausschnitt schnitt dann Pfeil und «Notfall» des Schilds ab (Nachprüfung
   17.11.). Dort gilt der Ausschnitt des flachen Bands (fokus_mobil). */
@media (min-width: 1441px) {
  body.hbl-npz .npz-standort .npz-standort-foto {
    object-position: var(--hbl-fokus-mobil, var(--hbl-fokus, 50% 50%));
  }
}

/* --- Tablet und Telefon: Text oben, Bild unten ----------------------------- */
@media (max-width: 1024px) {
  body.hbl-npz .npz-standort > .wp-block-group__inner-container,
  body.hbl-npz .npz-standort:not(:has(> .wp-block-group__inner-container)) {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  body.hbl-npz .npz-standort .npz-standort-text { padding: 72px var(--npz-rand); }
  body.hbl-npz .npz-standort .npz-standort-eyebrow { font-size: 14px; line-height: 19px; }
  body.hbl-npz .npz-standort .npz-standort-titel { font-size: 22px; line-height: 31px; }
  body.hbl-npz .npz-standort .npz-standort-zeile { font-size: 17px; line-height: 24px; }
  body.hbl-npz .npz-standort .hbl-npz-standort-bild {
    order: 0;
    min-height: 0;
    height: 420px;
    aspect-ratio: auto;
    max-height: none;
    width: 100%;
  }
  /* Flaches Band: senkrecht nach der Option (fokus_mobil), Pfeil und Beschriftung
     der Scheibe bleiben im Bild. */
  body.hbl-npz .npz-standort .npz-standort-foto {
    object-position: var(--hbl-fokus-mobil, var(--hbl-fokus, 50% 50%));
  }
}

@media (max-width: 599px) {
  body.hbl-npz .npz-standort .npz-standort-text { padding: 56px var(--npz-rand) 48px; }
  body.hbl-npz .npz-standort .wp-block-buttons.npz-standort-knoepfe { margin-top: 40px; }
  body.hbl-npz .npz-standort .hbl-npz-standort-bild { height: 256px; }
}
