/* ============================================================
   Notdienstseite: für den Ernstfall gebaut.
   Gleiche Farben wie die Heute-Leiste der Startseite
   (heute.css), alle Textfarben auf WCAG 2.1 AA geprüft.
   ============================================================ */
.nd {
    --n-ink: #111827;
    --n-muted: #4b5563;      /* 7,6:1 auf Weiß */
    --n-surface: #ffffff;
    --n-line: #e5e7eb;
    --n-blue: #1565c0;       /* 5,7:1 auf Weiß */
    --n-blue-hover: #0d47a1;
    --n-red: #b42318;        /* 6,4:1 auf Weiß */
    --n-red-bg: #fdecea;
    --n-tint: #eef4fb;

    padding: 2.5rem 1rem 4rem;
    color: var(--n-ink);
}
html.dark .nd {
    --n-ink: #f0f1f3;
    --n-muted: #b4b8bf;
    --n-surface: #252830;
    --n-line: #3a3f4a;
    --n-blue: #90c2ff;
    --n-blue-hover: #bcd9ff;
    --n-red: #ff9a8f;
    --n-red-bg: #3a2220;
    --n-tint: #1e2a3a;
}
.nd__innen { max-width: 46rem; margin: 0 auto; }

.nd__titel {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 600;
    font-size: clamp(2rem, 1.5rem + 2.2vw, 2.875rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--n-ink) !important;
    text-wrap: balance;
}
.nd__lead {
    margin: 0.75rem 0 0;
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--n-ink);
    max-width: 38rem;
}
.nd__zeitraum {
    margin: 0.5rem 0 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--n-muted);
}
.nd__zeitraum:empty { display: none; }

/* ---- Zustände ---- */
.nd__laden {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 1.5rem;
    font-size: 1.0625rem;
    color: var(--n-muted);
}
.nd__fehler {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: var(--n-red-bg);
    color: var(--n-ink);
}
.nd__fehler[hidden] { display: none; }
.nd__fehler-titel { margin: 0 0 0.25rem; font-size: 1.1875rem; font-weight: 800; color: var(--n-red); }
.nd__fehler p { margin: 0; font-size: 1.0625rem; line-height: 1.5; }
.nd__fehler .nd__wege { margin-top: 1rem; }

/* ---- Liste der Apotheken ---- */
.nd__liste {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.875rem;
}
.nd__liste:empty { display: none; }
.nd-apo {
    padding: 1.25rem;
    background: var(--n-surface);
    border: 1px solid var(--n-line);
    border-radius: 1.125rem;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.05);
}
.nd-apo--erste { border: 2px solid var(--n-blue); }
.nd-apo__name {
    margin: 0;
    font-size: 1.3125rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--n-ink) !important;
}
.nd-apo__ort { margin: 0.25rem 0 0; font-size: 1.0625rem; color: var(--n-ink); }
.nd-apo__km { margin: 0.125rem 0 0; font-size: 1rem; font-weight: 700; color: var(--n-muted); }

.nd__wege {
    display: grid;
    gap: 0.625rem;
    margin-top: 1rem;
}
@media (min-width: 560px) {
    .nd__wege { grid-template-columns: 1.4fr 1fr; }
}
.nd-knopf {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    min-height: 52px;
    padding: 0.75rem 1rem;
    border-radius: 0.875rem;
    border: 2px solid transparent;
    font: inherit;
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.nd-knopf:focus-visible { outline: 3px solid #ff6600; outline-offset: 2px; }
.nd-knopf--tel { background: var(--n-blue); color: #fff !important; }
html.dark .nd-knopf--tel { color: #0b1a2e !important; }
.nd-knopf--tel:hover { background: var(--n-blue-hover); }
.nd-knopf--rand { background: transparent; border-color: var(--n-line); color: var(--n-ink) !important; }
.nd-knopf--rand:hover { border-color: var(--n-muted); }

.nd__quelle { margin: 0.875rem 0 0; font-size: 0.9375rem; color: var(--n-muted); }

/* ---- Notfall + Gut zu wissen ---- */
.nd__block { margin-top: 2.75rem; }
.nd__h2 {
    margin: 0 0 0.875rem;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--n-ink) !important;
}
.nd-ruf {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--n-line);
    border-radius: 1.125rem;
    background: var(--n-surface);
    overflow: hidden;
}
.nd-ruf li + li { border-top: 1px solid var(--n-line); }
.nd-ruf a {
    display: grid;
    grid-template-columns: 10.5rem 1fr;
    align-items: center;
    gap: 1rem;
    min-height: 64px;
    padding: 0.875rem 1.25rem;
    color: var(--n-ink) !important;
    text-decoration: none !important;
}
.nd-ruf a:hover { background: var(--n-tint); }
.nd-ruf a:focus-visible { outline: 3px solid #ff6600; outline-offset: -3px; }
.nd-ruf__nr {
    font-size: 1.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--n-blue);
    white-space: nowrap;
}
.nd-ruf__nr--rot { color: var(--n-red); }
.nd-ruf__nr--klein { font-size: 1.125rem; }
.nd-ruf__was { font-size: 1.0625rem; line-height: 1.45; }
.nd-ruf__was strong { display: block; }
.nd-ruf__was span { color: var(--n-muted); }
@media (max-width: 420px) {
    .nd-ruf a { grid-template-columns: 1fr; gap: 0.125rem; }
}

.nd-wissen {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.625rem 1.25rem;
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.5;
}
.nd-wissen dt { font-weight: 700; }
.nd-wissen dd { margin: 0; color: var(--n-ink); }
@media (max-width: 480px) {
    .nd-wissen { grid-template-columns: 1fr; gap: 0.125rem; }
    .nd-wissen dd { margin-bottom: 0.625rem; }
}
.nd a.nd-link {
    color: var(--n-blue) !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .nd-knopf { transition: none; }
    .nd__laden .fa-spin { animation: none; }
}
