/* 24/7 Notdienst: Anrufen ist die Hauptaktion. Lädt nur auf /notdienst. */
.nd { overflow-x: clip; }
.nd h1, .nd h2, .nd h3 { text-wrap: balance; }
.nd-band { padding-block: clamp(56px, 7.5vw, 112px); }
.nd-band h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -.02em; margin: 0; }

/* ---------- Hero „Was ist passiert?“: drei Notfälle als große Anrufzeilen ---------- */
.nd-hero { --nd-rand: clamp(18px, 4.5vw, 88px); --nd-linie: rgba(255, 255, 255, .22); background: var(--tm-anthrazit-tief); color: #fff; }
.nd-hero__raster {
  display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 88px);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "crumbs wahl" "kopf wahl" "mehr wahl";
  max-width: 1680px; margin-inline: auto;
  padding: clamp(20px, 2.4vw, 32px) 0 clamp(32px, 3.6vw, 56px) var(--nd-rand);
}
.nd-hero .crumbs { grid-area: crumbs; margin-bottom: clamp(24px, 3.4vw, 52px); }
.nd-hero .crumbs, .nd-hero .crumbs a, .nd-hero .crumbs span { color: var(--tm-silber); }
.nd-hero .crumbs span:last-child { color: #fff; }
.nd-hero__kopf { grid-area: kopf; }
.nd-hero h1 { color: #fff; font-size: clamp(2.6rem, 4.7vw, 4.7rem); line-height: 1.02; letter-spacing: -.03em; margin: 0; max-width: 9em; font-weight: 600; }
.nd-status { margin: clamp(12px, 1.4vw, 20px) 0 0; font-size: clamp(1rem, 1.2vw, 1.14rem); font-weight: 600; color: var(--tm-silber-hell); }
.nd-hero__mehr { grid-area: mehr; padding-top: 28px; }
.nd-anders { margin: 0; color: var(--tm-silber); font-size: 1.06rem; }
.nd-anders a { display: inline-block; padding-block: 11px; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: underline; text-decoration-color: var(--tm-grau-hell); text-underline-offset: 4px; }
.nd-anders a:hover { color: var(--tm-silber-hell); }
.nd-anders a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.nd-hero__wahl { grid-area: wahl; min-width: 0; }
.nd-frage { margin: 0 0 clamp(12px, 1.4vw, 20px); padding-right: var(--nd-rand); color: var(--tm-silber-hell); font-size: clamp(1.25rem, 1.7vw, 1.6rem); line-height: 1.2; font-weight: 600; }
.nd-wahlen { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--nd-linie); }
.nd-wahlen li { border-top: 1px solid var(--nd-linie); }

/* Eine Zeile = ein Anruf. Beim Darüberfahren läuft die Fläche von oben zu wie ein Rollladen. */
.nd-wahl {
  position: relative; isolation: isolate; display: grid; align-items: center;
  grid-template-columns: clamp(44px, 4.2vw, 64px) minmax(0, 1fr) auto; column-gap: clamp(16px, 2vw, 32px);
  grid-template-areas: "ic titel los" "ic text los";
  padding: clamp(18px, 1.9vw, 28px) var(--nd-rand) clamp(18px, 1.9vw, 28px) clamp(14px, 1.6vw, 24px);
  color: #fff; text-decoration: none; transition: color .22s ease;
}
.nd-wahl::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: scaleY(0); transform-origin: 50% 0; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
/* Grundfarbe in jedem Link-Zustand festnageln: Das globale a:hover (site.css) ist spezifischer als .nd-wahl und blieb auf Touch nach dem Antippen kleben: dunkle Schrift auf dunkler Fläche. */
.nd-wahl, .nd-wahl:link, .nd-wahl:visited, .nd-wahl:hover, .nd-wahl:focus, .nd-wahl:active { color: #fff; -webkit-tap-highlight-color: transparent; }
/* Rollladen nur mit echter Maus; auf Touch bleibt allein der kurze :active-Zustand */
@media (hover: hover) and (pointer: fine) {
  .nd-wahl:hover { color: var(--tm-text); }
  .nd-wahl:hover::before { transform: scaleY(1); }
  .nd-wahl:hover .nd-wahl__text { color: var(--tm-text-2); }
  .nd-wahl:hover .nd-wahl__text b { color: var(--tm-text); }
}
.nd-wahl:active { color: var(--tm-text); }
.nd-wahl:active::before { transform: scaleY(1); transition-duration: .08s; }
.nd-wahl:active .nd-wahl__text { color: var(--tm-text-2); }
.nd-wahl:active .nd-wahl__text b { color: var(--tm-text); }
.nd-wahl:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.nd-wahl__ic { grid-area: ic; display: block; }
.nd-wahl__ic svg { display: block; width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nd-wahl__titel { grid-area: titel; font-family: var(--f-display); font-size: clamp(1.9rem, 3.5vw, 3.3rem); line-height: 1.05; letter-spacing: -.025em; font-weight: 600; }
.nd-wahl__text { grid-area: text; margin-top: 6px; max-width: 54ch; color: var(--tm-silber-hell); font-size: clamp(1rem, 1.1vw, 1.08rem); line-height: 1.42; text-wrap: pretty; transition: color .22s ease; }
.nd-wahl__text b { display: block; color: #fff; font-weight: 600; transition: color .22s ease; }
.nd-wahl__kurz { display: none; }
.nd-wahl__los { grid-area: los; display: inline-flex; align-items: center; gap: 10px; font-size: clamp(1.02rem, 1.3vw, 1.22rem); font-weight: 600; white-space: nowrap; }
.nd-wahl__los svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Einmaliger Auftritt, ohne JS; das H1 ist nie beteiligt */
@media (prefers-reduced-motion: no-preference) {
  .nd-wahl { animation: nd-wahl-ein .5s cubic-bezier(.2, .7, .2, 1) backwards; }
  .nd-wahlen li:nth-child(2) .nd-wahl { animation-delay: .09s; }
  .nd-wahlen li:nth-child(3) .nd-wahl { animation-delay: .18s; }
}
@keyframes nd-wahl-ein { from { opacity: 0; transform: translateY(12px); } }

/* Anruf-Schild: das eine große Element der Seite */
.nd-call {
  display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px);
  background: #fff; color: var(--tm-text); border-top: 3px solid var(--tm-silber);
  border-radius: 6px; padding: clamp(14px, 1.5vw, 20px) clamp(20px, 2.4vw, 36px) clamp(14px, 1.5vw, 20px) clamp(14px, 1.5vw, 20px);
  text-decoration: none; max-width: 100%;
  box-shadow: 0 22px 48px -18px rgba(0, 0, 0, .6);
  transition: transform .2s ease;
}
.nd-call:hover { transform: translateY(-3px); color: var(--tm-text); }
.nd-call:active { transform: translateY(0) scale(.985); }
.nd-call:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.nd-call__ic {
  flex: none; width: clamp(52px, 5vw, 72px); height: clamp(52px, 5vw, 72px); border-radius: 4px;
  background: var(--tm-anthrazit); color: #fff; display: grid; place-items: center;
}
.nd-call__ic svg { width: 48%; height: 48%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nd-call__txt { display: flex; flex-direction: column; min-width: 0; }
.nd-call__txt small { font-size: .95rem; font-weight: 600; color: var(--tm-text-2); }
.nd-call__txt strong {
  font-size: clamp(1.82rem, 3.5vw, 3.15rem); line-height: 1.1; font-weight: 700; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.nd-call--dunkel { background: var(--tm-anthrazit-tief); color: #fff; border-top-color: var(--tm-grau); box-shadow: none; flex: none; }
.nd-call--dunkel:hover { color: #fff; }
.nd-call--dunkel .nd-call__ic { background: #fff; color: var(--tm-anthrazit-tief); }
.nd-call--dunkel .nd-call__txt small { color: var(--tm-silber); }
.nd-call--dunkel .nd-call__txt strong { font-size: clamp(1.82rem, 2.6vw, 2.4rem); }
.nd-call--dunkel:focus-visible { outline-color: var(--tm-anthrazit-tief); }

.nd-alt { display: flex; flex-wrap: wrap; gap: 0 clamp(20px, 2.4vw, 36px); margin: 0; color: var(--tm-silber); font-size: 1rem; }
.nd-alt a { display: inline-block; padding-block: 11px; color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--tm-grau-hell); text-underline-offset: 4px; }
.nd-alt a:hover { color: var(--tm-silber-hell); }
.nd-alt a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }


/* ---------- Drei Notfälle ---------- */
.nd-faelle { background: #fff; }
.nd-faelle h2 { color: var(--tm-text); }
.nd-faelle__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(28px, 3.6vw, 52px); }
.nd-fall {
  background: var(--tm-hell-2); border: 1px solid var(--tm-linie-hell); border-top: 3px solid var(--tm-anthrazit);
  border-radius: 6px; padding: clamp(24px, 2.6vw, 38px);
}
.nd-fall__ic { display: block; width: 40px; height: 40px; color: var(--tm-anthrazit); margin-bottom: 20px; }
.nd-fall__ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nd-fall h3 { font-size: clamp(1.35rem, 1.9vw, 1.65rem); line-height: 1.2; margin: 0 0 10px; color: var(--tm-text); }
.nd-fall p { margin: 0; font-size: 1.04rem; line-height: 1.55; color: var(--tm-text-2); }

/* ---------- Ablauf: echte Reihenfolge, daher Ziffern ---------- */
.nd-ablauf { background: var(--tm-anthrazit); color: #fff; }
.nd-ablauf h2 { color: #fff; }
.nd-schritte { list-style: none; padding: 0; margin: clamp(28px, 3.6vw, 52px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.nd-schritt { border-top: 3px solid var(--tm-silber); padding-top: clamp(16px, 1.6vw, 22px); }
.nd-schritt__n { display: block; font-size: clamp(4.2rem, 7.4vw, 7rem); line-height: .95; font-weight: 600; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.nd-schritt h3 { color: #fff; font-size: clamp(1.3rem, 1.8vw, 1.55rem); line-height: 1.2; margin: clamp(14px, 1.5vw, 22px) 0 8px; }
.nd-schritt p { margin: 0; color: var(--tm-linie-hell); font-size: 1.04rem; line-height: 1.55; max-width: 36ch; }
.nd-schritt p a, .nd-schritt p a:link, .nd-schritt p a:visited, .nd-schritt p a:hover, .nd-schritt p a:focus, .nd-schritt p a:active { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--tm-grau-hell); text-underline-offset: 4px; }
.nd-schritt p a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.nd-kosten {
  margin-top: clamp(36px, 5vw, 72px); background: #fff; color: var(--tm-text); border-radius: 6px;
  padding: clamp(24px, 3.2vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 64px);
}
.nd-kosten__satz { font-size: clamp(1.4rem, 2.3vw, 2.1rem); line-height: 1.18; letter-spacing: -.015em; font-weight: 600; margin: 0 0 10px; color: var(--tm-text); max-width: 24em; text-wrap: balance; }
.nd-kosten__zusatz { margin: 0; color: var(--tm-text-2); font-size: 1.04rem; line-height: 1.5; }

/* ---------- Dringlichkeits-Check (Inhalte aus ai-diagnose.js) ---------- */
.nd-diag { background: var(--tm-hell); }
.nd .ai-diag-wrapper {
  margin: 0 auto; max-width: 720px; border: 1px solid var(--tm-linie-hell) !important; border-top: 3px solid var(--tm-anthrazit) !important; /* gegen !important in site.css */
  border-radius: 6px !important; box-shadow: none !important; padding: clamp(24px, 3.4vw, 44px);
}
.nd .ai-diag-header h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--tm-text); }
.nd .ai-diag-header p { color: var(--tm-text-2); font-size: 1.02rem; margin-top: 6px; }

/* Prüflauf 10.11.: Ab 1600 px ist .wrap höchstens 1520 px breit (48 px Rand). Der Hero (1680 px) stand dort links 42 px
   und rechts 128 px über das Raster von Kopf und Inhalt hinaus – jetzt bündig, Anruf-Zeilen enden wie bisher am Rand. */
@media (min-width: 1600px) {
  .nd-hero { --nd-rand: 48px; }
  .nd-hero__raster { max-width: 1520px; }
}

@media (max-width: 900px) {
  .nd-hero__raster {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: none;
    grid-template-areas: "crumbs" "kopf" "wahl" "mehr";
    padding: 10px 0 20px;
  }
  .nd-hero .crumbs, .nd-hero__kopf, .nd-frage, .nd-hero__mehr { padding-inline: var(--nd-rand); }
  .nd-hero .crumbs { margin-bottom: 10px; }
  .nd-hero h1 { font-size: clamp(2.3rem, 6.4vw, 3.4rem); max-width: none; }
  .nd-status { margin-top: 8px; }
  .nd-frage { margin: 12px 0 10px; }
  .nd-hero__mehr { padding-top: 12px; }
  .nd-wahl {
    grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 12px;
    grid-template-areas: "ic titel los" "text text text";
    padding: 11px var(--nd-rand);
  }
  .nd-wahl__titel { font-size: 1.62rem; }
  .nd-wahl__text { margin-top: 5px; font-size: .98rem; line-height: 1.34; max-width: none; }
  .nd-call { width: 100%; }
  .nd-faelle__grid { grid-template-columns: minmax(0, 1fr); }
  .nd-schritte { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .nd-schritt { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 8px; }
  .nd-schritt__n { font-size: 4.2rem; }
  .nd-schritt h3 { margin-top: 6px; }
  .nd-kosten { flex-direction: column; align-items: stretch; }
  .nd-call--dunkel { flex: initial; }
}
@media (max-width: 760px) {
  .nd-fall { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; align-items: center; }
  .nd-fall__ic { margin: 0; }
  .nd-fall h3 { margin: 0; }
  .nd-fall p { grid-column: 1 / -1; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .nd-call, .nd-wahl, .nd-wahl::before, .nd-wahl__text, .nd-wahl__text b { transition: none; }
}

/* Handy: nur Frage, drei Anrufzeilen. Die feste Leiste unten hat beide Nummern und WhatsApp. */
@media (max-width: 640px) {
  .nd-hero .crumbs, .nd-hero__mehr, .nd-wahl__text { display: none; }
  /* SEO 18.11.2026: zweite Zeile der h1 auch am Handy sichtbar (kein versteckter Text in der Überschrift), kleiner */
  .nd-h1-rest { display: block; margin-top: 8px; font-size: .4em; line-height: 1.15; letter-spacing: -.01em; }
  .nd-h1-rest br { display: none; }
  .nd-hero__raster { grid-template-areas: "kopf" "wahl"; padding: 24px 0 0; }
  .nd-hero h1 { font-size: clamp(3.1rem, 15vw, 3.7rem); line-height: 1; }
  .nd-status { margin-top: 6px; font-size: .98rem; }
  .nd-frage { margin: 24px 0 10px; font-size: 1.1rem; }
  .nd-wahlen { border-bottom: 0; }
  .nd-wahl { grid-template-areas: "ic titel los" "ic kurz los"; padding-block: 20px; }
  .nd-wahl__titel { font-size: clamp(1.45rem, 6.6vw, 1.72rem); }
  .nd-wahl__kurz { grid-area: kurz; display: block; margin-top: 3px; font-size: .92rem; font-weight: 600; line-height: 1.3; }
}

/* Responsive 18.11.: Nummer im Anruf-Schild passt bei 320–389 px ganz hinein (vorher rechts abgeschnitten) */
@media (max-width: 389px) {
  .nd-call__txt strong,
  .nd-call--dunkel .nd-call__txt strong { font-size: min(1.82rem, 6.4vw); }
}
