/* Einstellungen › Telefon, Paket C (einstellungen-telefon-verwaltung.js): Nummern, Personen, UniFi-Telefone, Abschrift,
   Sprachausgabe & Rückwärtssuche (mit Outlook-Kontakten), Anmeldung prüfen. Alles unter .es, nur Variablen aus den Telefon-Tokens
   (einstellungen-telefon.css, auf die Hub-Farben umgelegt) – keine Farbwerte hier. Karten, Knöpfe, Felder, Begriffslisten,
   Tabellen und Aufklapper kommen aus den gemeinsamen Bausteinen; hier steht nur, was es nur in diesen Bereichen gibt. */

/* Ein Satz Zusammenfassung oben in jeder Karte */
.es .tfv-zusammen { margin: 0 0 12px; color: var(--ink); max-width: 68ch; }
.es .tfv-laedt { color: var(--muted); }
.es .tfv-block { display: block; margin-top: 6px; }

/* Meldung im Inhalt (nicht die Einblendung unten): Band .meldung + Variante (Entwurf 123 D4), hier nur Abstand */
.es .tfv-meldung { margin: 0 0 12px; }
.es .card__b > .tfv-meldung:last-child, .es .tfv-hinweise > .tfv-meldung { margin-bottom: 0; }
.es .tfv-meldung > div { min-width: 0; overflow-wrap: anywhere; }
.es .tfv-meldung a { font-weight: 600; }
.es .tfv-meldung:not(.meldung--hinw) a { color: var(--brand-dark); }
.es .tfv-hinweise { display: grid; gap: 8px; margin-top: 14px; }

/* Antwort des Anbieters unter „Zustand“, Störung der Abschrift */
.es .tfv-fehltext { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; max-width: 62ch;
                    color: color-mix(in srgb, var(--danger) 60%, var(--ink)); }   /* auch dunkel ≥ 4,5:1 */

/* Geheimnis: Plakette „gesetzt“ + Knopf, offen: Wert + Uhr + Verbergen */
.es .tfv-geheim { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.es .tfv-geheim--offen .key { font-size: 13px; padding: 3px 8px; border-radius: 8px; background: var(--g-field); box-shadow: var(--g-field-shadow); }

/* Rückwärtszähler „noch 42 s“ mit dünnem Balken */
.es .tfv-uhr { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted);
               font-variant-numeric: tabular-nums; }
.es .tfv-uhr .ic { width: 14px; height: 14px; }
.es .tfv-uhr__s { display: inline-block; width: 48px; height: 3px; border-radius: 4px; background: var(--bd-2); overflow: hidden; }
.es .tfv-uhr__b { display: block; height: 100%; width: 100%; background: var(--brand); transition: width 1s linear; }
@media (prefers-reduced-motion: reduce) { .es .tfv-uhr__b { transition: none; } }

/* Zugang für UniFi Talk: eigener Kasten in Markenfarbe getönt (wie der Probe-Kasten), weil er nur kurz da ist */
.es .tfv-zugang { margin-top: 12px; padding: 12px 14px 4px; border-radius: var(--g-r); background: var(--brand-tint);
                  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.es .tfv-zugang__kopf { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 6px; }
.es .tfv-zugang__kopf b { margin-right: auto; }
.es .tfv-zugang .es-hinweis { display: block; margin: 0 0 10px; }
.es .tfv-zugang .es-dl { margin-bottom: 10px; }
.es .tfv-zugang-platz:empty { display: none; }

/* Schalter-Zeile oben in einer Karte, Probe-Ergebnis, Auswahl in der Begriffsliste */
.es .tfv-schalterreihe { margin: 0 0 10px; }
.es .tfv-probe:empty { display: none; }
.es .tfv-probe { margin-top: 4px; }
.es .tfv-probe audio { display: block; width: 100%; max-width: 460px; }
.es .tfv-treffer { padding: 10px 14px 2px; border-radius: var(--g-r-sm); background: var(--g-field); }
.es .tfv-treffer .es-dl { margin-bottom: 8px; }
.es .tfv-gehoert select.es-wahl { min-height: 30px; }
.es .tab td .sub { margin-top: 2px; }
.es .tab td .es-mehr { margin-top: 6px; }
.es .tab td .es-mehr > summary { min-height: 32px; font-weight: 600; font-size: 12.5px; }
.es .tab td pre.es-code { max-width: 60ch; }
.es .card__b > .ta-teil:last-child { margin-bottom: -4px; }

/* Knöpfe in einer Reihe mit Text daneben */
.es .es-knoepfe > .es-hinweis { align-self: center; }
.es .btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Outlook-Kontakte: Warum unter dem Schalter, Stand-Zeile, je Postfach eine Zeile (Name, Adresse klein, Anzahl rechts,
   Fehler in Rot darunter in voller Breite). Der Weg in Entra kommt vom Server mit Zeilenumbrüchen. */
.es .tfv-kontakte__warum { margin: -4px 0 12px; max-width: 68ch; }
.es .tfv-kontakte__hinweis { white-space: pre-line; margin-top: 6px; }
.es .tfv-kontakte__knoepfe { margin-top: 10px; }
.es .tfv-kontakte__stand { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--ink);
                           font-variant-numeric: tabular-nums; }
.es .tfv-kontakte__stand--laeuft { color: var(--muted); }
.es .tfv-kontakte__stand .kreisel { flex: none; width: 14px; height: 14px; border-width: 2px; }
.es .tfv-postfaecher { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--bd); }
.es .tfv-postfach { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: baseline;
                    padding: 9px 0; border-bottom: 1px solid var(--bd); }
.es .tfv-postfach__wer { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.es .tfv-postfach__wer b { font-weight: 600; color: var(--ink); }
.es .tfv-postfach__wer small { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.es .tfv-postfach__zahl { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.es .tfv-postfach__fehler { grid-column: 1 / -1; margin-top: 0; }

@media (pointer: coarse) {
  .es .tfv-gehoert select.es-wahl { min-height: 44px; }
  .es .tab td .es-mehr > summary { min-height: 44px; }
}

/* Auswahl „Neue Durchwahl“ in der Personen-Tabelle: so schmal wie ihr Inhalt, sonst rollt die Tabelle schon am Rechner */
.es .tab td.es-akt select.es-wahl { min-width: 0; width: auto; }

/* „Im Büro zeigen“: Haken mit Wort, ganze Fläche klickbar (44 px hoch) */
.es .tfv-buero { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.es .tfv-buero input { width: 18px; height: 18px; min-height: 0; margin: 0; }

/* Personen am Handy: jede Person als zweizeiliger Block statt einer Tabelle, die seitlich rollt und die Auswahl versteckt */
@media (max-width: 640px) {
  .es .tfv-personen thead { display: none; }
  .es .tfv-personen, .es .tfv-personen tbody { display: block; }
  .es .tfv-personen tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center;
                         padding: 12px 0; border-bottom: 1px solid var(--bd); }
  .es .tfv-personen tr:last-child { border-bottom: 0; }
  .es .tfv-personen td { display: block; padding: 0; border: 0; }
  .es .tfv-personen tbody tr:hover td { background: none; }
  .es .tfv-personen td:nth-child(2), .es .tfv-personen td.es-akt { display: block; text-align: right; }
}
