/* Rufnummer im Kopfbereich. Quelle: generator/kopf_telefon.css, Einbau: generator/kopf_telefon.py.
   Mobil ein Anruf-Symbol in der Zeile, ab 960 px eine Lasche unter dem Beratungsknopf.
   In der Menüzeile selbst ist auf Start- und Kursseiten kein Platz im 1180er-Raster.
   Der Umschaltpunkt 959/960 px ist der des gemeinsamen Kursmenüs (generator/kursmenue.css). */
.nv-tel {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  color: var(--ink, #1a1b24); text-decoration: none; white-space: nowrap;
  font: 600 13px/1 var(--font, var(--sans, system-ui, sans-serif));
  font-variant-numeric: tabular-nums; letter-spacing: 0;
}
.nv-tel svg { flex: none; }
.nv-tel:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.nv-tel-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* Dunkler Kopf am Seitenanfang: helle Schrift in jeder Breite, wie Menü und Menüknopf. */
body:not(.nav-scrolled) .hdr[data-tone="dark"]:not(:has([aria-expanded="true"])) .nv-tel { color: #fff; }

@media (max-width: 959px) {
  .nv-tel { width: 44px; height: 44px; border-radius: 50%; }
  .nv-tel svg { width: 20px; height: 20px; }
  .nv-tel:active { background: color-mix(in srgb, currentColor 10%, transparent); }
  .nv-tel-nr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nv-contact + .nv-burger { margin-left: 0; }
  /* Bei 320 px bleibt der Menüknopf voll antippbar; das Logo gibt den Platz ab. */
  .nv-burger { flex: none; }
  .nvin > a:first-child { min-width: 0; flex: 0 1 auto; }
  .nvlogo { max-width: 100%; height: auto; }
}

@media (min-width: 960px) {
  .nv-contact { position: relative; }
  .nv-tel {
    position: absolute; right: 0; top: calc(50% + var(--header-h, 64px) / 2);
    height: 30px; padding: 0 13px 0 11px; border-radius: 0 0 11px 11px;
    background: color-mix(in srgb, var(--bg, #fff) 92%, transparent);
    -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
    box-shadow: inset 0 -1px 0 var(--ink-06, rgba(26, 27, 36, .06)), inset 1px 0 0 var(--ink-06, rgba(26, 27, 36, .06)),
                inset -1px 0 0 var(--ink-06, rgba(26, 27, 36, .06)), 0 10px 24px -18px rgba(20, 20, 25, .35);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease, color .2s ease;
  }
  .nv-tel svg { width: 14px; height: 14px; }
  .nv-tel:hover { color: var(--ink, #1a1b24); text-decoration: underline; text-underline-offset: 3px; }
  body.scrolled .nv-tel, body.nav-scrolled .nv-tel, .hdr.is-scrolled .nv-tel {
    opacity: 0; visibility: hidden; transform: translateY(-6px);
  }
  body:not(.nav-scrolled) .hdr[data-tone="dark"]:not(:has([aria-expanded="true"])) .nv-tel {
    background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  }
}

/* Der Knopf ragt in diesem Bereich schon ohne Rufnummer über den Rand:
   die Lasche hängt deshalb an der Kopfleiste, nicht am Knopf. */
@media (min-width: 960px) and (max-width: 1180px) {
  .nv-contact { position: static; }
  .hdr .nv-tel { top: 100%; right: 26px; }
}

@media (prefers-reduced-motion: reduce) { .nv-tel { transition: none; } }
