/* ===========================================================================
   Notfallpraxis — Kontakt-Pille (Fassung 7.4, Bauvertrag §2.10, VORGABE-global §5)

   Seit 18.11. wie die HBL-Pille (Abnahme, Norman: „so wie bei HBL“; Theme style.css,
   `.hbl-sticky-kontakt`), seit 19.11. nach deren Soll „Bedienelemente einheitlich“ (Figma
   1198:2, Kontakt-Pille 1199:63; Norman: „dort ist schon alles“): 60 breit, Felder 60 hoch,
   dazwischen 1 px Weiss 35 %, nur Symbole 24 als Linie 1,5 (inc/pille.php), Name für den
   Screenreader; rundum r12 geglättet (--hbl-radius + globale corner-shape), kein Schatten;
   31 vom rechten Rand. FARBE NICHT wie HBL, sondern aus Figma (Norman 18.11.: „Es muss die
   Farbe aus Figma sein“): Entwurf 1330:2, Knoten 1433:38559 = `farbe/akzent-text-tief`
   #7A5E48 wie alle 127 gefüllten Knöpfe der NPZ — das Soll sagt „wie alle Knopfflächen“,
   bei HBL ist das #906F55. Hover --npz-bronze-hover. Zwei Felder (Anrufen, Route),
   die NPZ hat keinen Kontakt-Dialog. Bis dahin 80 breit, Felder 72 mit Beschriftung,
   Bronze #7A5E48, Radius 24. Ab 1440, senkrecht mittig; hebt sich vor der Fusszeile an
   (--npz-pille-hub, pille.js). Weg (opacity, visibility), solange die Bühne bzw. das
   Titelband sichtbar ist (`npz-weg`).
   =========================================================================== */

.npz-pille { display: none; }

@media (min-width: 1440px) {
  body.hbl-npz .npz-pille {
    position: fixed;
    right: 31px;
    /* Zwei Felder + Haarlinie = 121 hoch: translateY(-50 %) stellte die Pille auf einen
       halben Pixel, die Haarlinie lag bei DPR 1 auf zwei Zeilen (Prüfung 19.11.). Darum
       die Mitte als ganzer Pixel. */
    top: calc(50% - 61px);
    top: round(down, calc(50% - 61px), 1px);
    z-index: 80;
    display: flex;
    flex-direction: column;
    width: 60px;
    overflow: hidden;
    border-radius: var(--hbl-radius, 12px);
    background: var(--npz-bronze);
    transform: translateY(calc(-1 * var(--npz-pille-hub, 0px)));
    transition: opacity .2s ease, visibility 0s linear 0s;
  }
  body.hbl-npz .npz-pille.npz-weg {
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility 0s linear .2s;
  }
  body.hbl-npz .npz-pille-feld {
    box-sizing: content-box;   /* Feld 60 + Haarlinie 1 (Soll 60 · 1 · 60) */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    color: var(--white);
    text-decoration: none;
    transition: background-color var(--hbl-uebergang, .2s);
  }
  body.hbl-npz .npz-pille-feld svg,
  body.hbl-npz .npz-pille-feld .npz-icon { width: 24px; height: 24px; }
  body.hbl-npz .npz-pille-feld + .npz-pille-feld { border-top: 1px solid rgb(255 255 255 / .35); }
  body.hbl-npz .npz-pille-feld:is(:hover, :focus-visible) { background: var(--npz-bronze-hover); color: var(--white); }
  /* Fokus innen, weil die Pille ihre Felder beschneidet (overflow): Ring 2 px Weiss,
     6 px eingerückt, kein Schattenring über der Haarlinie. */
  body.hbl-npz .npz-pille-feld:focus-visible { outline: 2px solid var(--white); outline-offset: -6px; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.hbl-npz .npz-pille { transition: none; }
}
