/* /notdienst/ - page layout only. Tokens from theme.css; no new colours or font sizes. */

/* 01 Hero: the panel is a quick phone checklist, keep it compact */
.nd-hero .hero__panel li { font-size: var(--fs-base); }
.nd-hero .hero__content, .nd-hero .hero__panel { min-width: 0; }
@media (max-width: 29.99em) { .nd-hero__pre { display: none; } }
@media (max-width: 59.99em) { .nd-hero .hero__inner { grid-template-columns: minmax(0, 1fr); } }

/* 02 Notruf (112 / 110) */
.nd-notruf .notice__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.15; }
.nd-notruf .notice__body { gap: var(--sp-3); }
.nd-notruf .notice p { max-width: 62rem; }
.nd-notruf .btn--emergency { min-height: var(--tap); }

/* 03 Ausgesperrt: was tun? sticky intro left, ordered steps right */
.nd-sofort__layout { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); }
.nd-sofort__layout > * { min-width: 0; }
.nd-sofort__intro .section-head { margin-bottom: var(--sp-6); }
.nd-sofort__photo { position: relative; max-width: 30rem; }
.nd-sofort__steps { max-width: none; }
.nd-sofort .step__action { margin-top: var(--sp-3); }
@media (min-width: 64em) {
	.nd-sofort__layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
	.nd-sofort__intro { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* 04 Fünf Lagen (dark gallery) */
.nd-lagen .svc-card__text a { position: relative; z-index: 2; font-weight: 700; color: var(--c-link); }
.nd-lagen .svc-card__text a:hover { color: var(--c-heading); }
.nd-lagen .svc-card__badge { bottom: var(--sp-4); } /* media is overflow:hidden, so the badge sits inside the photo instead of straddling its edge */

/* tablet: five cards in two columns would leave the last one alone, so it spans the full row with a wider photo */
@media (min-width: 40em) and (max-width: 63.99em) {
	.nd-lagen__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nd-lagen__grid .svc-card:last-child { grid-column: 1 / -1; }
	.nd-lagen__grid .svc-card:last-child .svc-card__media { aspect-ratio: 21 / 9; }
}
@media (min-width: 64em) {
	.nd-lagen__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.nd-lagen__grid .svc-card { grid-column: span 2; }
	.nd-lagen__grid .svc-card:nth-child(-n+2) { grid-column: span 3; }
}

/* 05 Zugefallen oder abgeschlossen: contrast pair with latch diagram */
.nd-latch-pair { display: grid; gap: var(--sp-4); align-items: stretch; }
.nd-latch-pair > * { min-width: 0; }
@media (min-width: 52em) { .nd-latch-pair { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--sp-5); } }
.nd-latch {
	--lx-door: var(--white); --lx-edge: var(--line-strong); --lx-frame: var(--tint2); --lx-recess: var(--violet-100); --lx-accent: var(--violet-600); --lx-text: var(--muted); --nd-fig: var(--tint);
	position: relative; display: flex; flex-direction: column; gap: var(--sp-4);
	padding: var(--sp-6) var(--sp-5) var(--sp-5);
	background: var(--white); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm);
	--c-fg: var(--text); --c-heading: var(--heading); --c-muted: var(--muted); --c-accent: var(--violet-600);
}
.nd-latch--locked {
	--lx-door: var(--ink-700); --lx-edge: var(--ink-600); --lx-frame: var(--ink-800); --lx-recess: var(--ink-950); --lx-accent: var(--violet-300); --lx-text: var(--on-dark-muted); --nd-fig: var(--ink-900);
	background: var(--ink-800); color: var(--on-dark); border-color: var(--ink-700);
	--c-fg: var(--on-dark); --c-heading: var(--white); --c-muted: var(--on-dark-muted); --c-accent: var(--violet-300);
}
.nd-latch > p { color: var(--c-fg); }
.nd-latch__badge { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; clip-path: var(--oct); background: var(--violet-100); color: var(--violet-800); }
.nd-latch--locked .nd-latch__badge { background: var(--violet-500); color: var(--white); }
.nd-latch__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.1; color: var(--c-heading); }
.nd-latch__fig { margin: 0; padding: var(--sp-4); border-radius: var(--r-md); background: var(--nd-fig); }
.nd-latch__svg { display: block; width: 100%; max-width: 20rem; height: auto; margin-inline: auto; }
.nd-latch__cap { margin-top: var(--sp-2); text-align: center; font-size: var(--fs-sm); color: var(--c-muted); }
.lx-door { fill: var(--lx-door); stroke: var(--lx-edge); stroke-width: 2; }
.lx-frame { fill: var(--lx-frame); stroke: var(--lx-edge); stroke-width: 2; }
.lx-recess { fill: var(--lx-recess); stroke: var(--lx-edge); stroke-width: 1.5; }
.lx-latch { fill: var(--lx-accent); }
.lx-bolt { fill: var(--lx-accent); }
.lx-bolt--off { fill: none; stroke: var(--lx-accent); stroke-width: 2; stroke-dasharray: 5 4; }
.lx-label { fill: var(--lx-text); font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; }
.nd-latch-pair__or { display: grid; place-items: center; margin: 0; }
.nd-latch-pair__or span { display: grid; place-items: center; width: 3.75rem; height: 3.75rem; clip-path: var(--oct); background: var(--violet-700); color: var(--white); font-family: var(--font-display); font-size: var(--fs-sm); }
.nd-latches__hint { margin-top: var(--sp-6); }

/* 06 Ablauf: five-step timeline */
.nd-ablauf .section-head { max-width: 54rem; }
.nd-ablauf__steps { grid-template-columns: 1fr; }
@media (min-width: 40em) {
	.nd-ablauf__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nd-ablauf__steps .step:last-child { grid-column: 1 / -1; }
}
@media (min-width: 80em) {
	.nd-ablauf__steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.nd-ablauf__steps .step:last-child { grid-column: auto; }
}
@media (max-width: 79.99em) {
	.nd-ablauf__steps.steps--line .step:not(:last-child)::after { display: none; }
}

/* 07 Signature, night variant: plan + two pair cards */
.nd-hof .section-head { max-width: 56rem; }
.nd-hof__pairs { display: grid; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.nd-pair { display: grid; grid-template-columns: minmax(0, 1fr); }
.nd-pair__media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; min-width: 0; }
.nd-pair .door-frame__media { aspect-ratio: 4 / 5; min-width: 0; }
.nd-pair .door-frame__tag { max-width: calc(100% - var(--sp-4)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-pair .door-frame__plan { width: 3.75rem; }
.nd-pair .door-frame__body { gap: var(--sp-3); justify-content: center; }
.nd-pair__chain-label { flex-basis: 100%; font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-accent); }
@media (min-width: 40em) {
	.nd-pair { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); }
	.nd-pair .door-frame__media { aspect-ratio: auto; height: 100%; min-height: 16rem; }
}
.nd-hof__outro { margin-top: var(--sp-6); display: grid; gap: var(--sp-5); max-width: 62rem; }
.nd-hof__chips { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.nd-hof__chips li { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--tap); padding: var(--sp-3) var(--sp-4); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); color: var(--c-heading); font-weight: 700; }
.nd-hof__chips .i { color: var(--c-accent); flex: none; }

/* 08 Erreichbarkeit und Nachtpreis + call strip */
.nd-qa-pair { display: grid; gap: var(--sp-5); }
.nd-qa-pair > * { min-width: 0; }
@media (min-width: 56em) { .nd-qa-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nd-qa { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-6) var(--sp-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.nd-qa__badge { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; clip-path: var(--oct); background: var(--violet-700); color: var(--white); }
.nd-qa__title { font-size: var(--fs-xl); }

/* 09 FAQ: head left, accordion right */
.nd-faq__layout { display: grid; gap: var(--sp-6); }
.nd-faq__layout > * { min-width: 0; }
.nd-faq__head > * + * { margin-top: var(--sp-4); }
.nd-faq .faq { max-width: none; }
@media (min-width: 64em) {
	.nd-faq__layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(2rem, 1rem + 4vw, 4.5rem); }
	.nd-faq__head { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* narrow phones: keep the two photo tags readable */
@media (max-width: 29.99em) {
	.nd-pair .door-frame__tag { left: var(--sp-2); top: var(--sp-2); padding-inline: 0.6em; letter-spacing: 0; }
	.nd-pair .door-frame__tag .i { display: none; }
}
