/* Wildeshausen-App – Block „Im Notfall“ in der Ansicht Service
   Gehört zu assets/notdienste.js. Sitzt unter den Service-Links und dem
   Fakten-Kasten, gleiche Kastenoptik wie .service / .facts: Radius 0,
   keine Schatten, keine Verläufe. Notruf-Akzent ist --accent (#ba092f),
   Text #4d4e53, Nebentext #686971, kleinste Klickfläche 44 px.
   Farben mit Fallback, damit die Datei auch ohne style.css-Variablen lesbar bleibt. */

.nd {
  margin-top: 16px;
  padding: 2px 12px 12px;
  background: var(--card, #ffffff);
  border: 1px solid var(--line, #e6e6e9);
  border-radius: 0;
  font-family: var(--ui, "PlexSans", "Segoe UI", Arial, sans-serif);
  color: var(--ink-2, #4d4e53);
}

.nd-h {
  margin: 12px 0 4px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, #ba092f);
}

.nd-sub {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted, #686971);
}

.nd-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nd-list li { border-top: 1px solid var(--line, #e6e6e9); }

.nd-row {
  display: flex;
  align-items: flex-start;   /* Nummer steht auf der Höhe des Namens, nicht mittig im Textblock */
  justify-content: space-between;
  gap: 12px;
  min-height: var(--tap, 44px);
  padding: 11px 0;
  color: var(--ink-2, #4d4e53);
  text-decoration: none;
}

.nd-txt { min-width: 0; }

.nd-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink, #161618);
  text-wrap: pretty;
}

.nd-desc {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted, #686971);
  text-wrap: pretty;
}

/* Nummer rechts: ruhig bei Durchwahlen, rot bei den bundesweiten Notrufen */
.nd-nr {
  flex: 0 0 auto;
  margin-top: -1px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--ink-2, #4d4e53);
}

.nd-row--notruf .nd-nr {
  font-size: 17px;
  color: var(--accent, #ba092f);
}

/* Eintrag ohne Nummer (Notdienstsuche im Netz) */
.nd-nr--link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted, #686971);
}

.nd-row:hover .nd-name { color: var(--accent, #ba092f); }
.nd-row:hover .nd-nr--link { color: var(--accent, #ba092f); }

.nd-row:focus-visible {
  outline: 2px solid var(--accent, #ba092f);
  outline-offset: 2px;
}

.nd-quelle {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted, #686971);
}

/* Schmale Handys: Nummer etwas kleiner, damit Name und Nummer je in einer Zeile bleiben */
@media (max-width: 400px) {
  .nd-nr { font-size: 14px; }
  .nd-row--notruf .nd-nr { font-size: 16px; }
}

/* Ab Tablet etwas mehr Luft, Klickflächen bleiben ≥ 44 px */
@media (min-width: 900px) {
  .nd { padding: 4px 16px 14px; }
  .nd-row { padding: 12px 0; }
  .nd-name { font-size: 13.5px; }
}

@media (prefers-reduced-motion: no-preference) {
  .nd-row { transition: color 0.12s linear; }
}

/* ---------- Dienststellen vor Ort (Polizei, Feuerwehr, Rettungswache) ---- */
.nd-h2 {
  margin: 18px 0 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted, #686971);
}
.nd-adr {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-2, #4d4e53);
}
