/* =========================================================================
   /notdienst/ — page layout only (tokens from theme.css, no new values)
   ========================================================================= */

/* 1 hero: a poster pair (keyword line + qualifier line) instead of a 72 px four-line block, so the call card stays the loudest thing;
   the lead gets a readable measure next to it */
.nd-hero .hero__title { max-width: none; }
.nd-hero__main { display: block; font-size: var(--fs-2xl); }
.nd-hero__sub {
	display: block; margin-top: var(--s-3);
	font-size: var(--fs-xl); font-weight: 600; line-height: 1.15; letter-spacing: .01em;
	color: var(--c-on-night-soft); text-shadow: none;
}
.nd-hero .hero__lead { max-width: 52ch; }

/* 2 danger notice: a little more presence than the stock notice */
.nd-limit .notice__title { font-size: var(--fs-lg); }
.nd-limit .notice__text { max-width: 62ch; }

/* 3 do-now: heading + answer left, four cards right */
.nd-sofort { align-items: start; }
.nd-sofort__list { gap: var(--s-3); }
.nd-sofort__list .icon-list__item { padding: 1.25rem 1.4rem; }
@media (min-width: 56em) {
	.nd-sofort { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}
@media (min-width: 64em) {
	.nd-sofort__intro { position: sticky; top: calc(var(--header-real, var(--header-h)) + 1.5rem); }
}

/* 4 situation board: five cards, 2 + 3 on desktop, no orphan; one card = one link */
.nd-situations { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.nd-card { position: relative; align-content: start; align-items: start; padding: 1.35rem 1.4rem; gap: .3rem 1.1rem; }
.nd-card .cog-badge, .nd-card .router-card__arrow { align-self: start; }
.nd-card .router-card__arrow { margin-top: .2rem; }
.nd-card .router-card__text { font-size: var(--fs-base); }
.nd-card__link { color: var(--c-link); font-weight: inherit; text-decoration-thickness: .07em; text-underline-offset: .18em; }
.nd-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.nd-card__link:focus-visible { outline: none; }
.nd-card:focus-within { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.nd-card:hover { box-shadow: var(--sh-md); }
@media (min-width: 40em) {
	.nd-situations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nd-situations > li:last-child { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
	.nd-situations { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.nd-situations > li { grid-column: span 2; }
	.nd-situations > li:nth-child(-n+2) { grid-column: span 3; }
	.nd-situations > li:last-child { grid-column: span 2; }
}

/* 5 compare table + the caveat under it */
.nd-table thead th .i { width: 1.15em; height: 1.15em; margin-right: .55rem; vertical-align: -.18em; }
@media (min-width: 40em) {
	.nd-table tbody th { width: 22%; }
	.nd-table tbody td { width: 39%; }
}
.nd-after { margin-top: var(--s-5); max-width: 62ch; }
.nd-modern { margin-top: var(--s-6); }

/* 6 speed: photo split, then the five phone questions beside a call card */
.nd-h3 { font-size: var(--fs-lg); line-height: 1.25; }
.nd-speed .step__title { font-weight: 700; }
.nd-speed__top { align-items: start; }
.nd-speed__ask { margin-top: clamp(3rem, 2rem + 4vw, 5.5rem); align-items: start; }
.nd-speed__card { display: grid; justify-items: start; gap: var(--s-4); }
.nd-speed__card > * + * { margin-top: 0; }
.nd-speed__card .btn { justify-self: stretch; }
.nd-speed__card-text { font-size: var(--fs-md); line-height: 1.5; color: var(--c-on-night); }
@media (min-width: 56em) {
	.nd-speed__card { position: sticky; top: calc(var(--header-real, var(--header-h)) + 1.5rem); }
}

/* 7 night band: answer as a glass-free night card, big sentence, two columns */
.nd-night__answer {
	max-width: 52rem; margin-inline: auto;
	background: var(--c-night-800); border-left-color: var(--c-amber); color: var(--c-on-night);
}
.nd-night__answer .answer__label { color: var(--c-brand-sky); }
.nd-night .statement { margin-top: var(--s-6); }
.nd-night .statement .cog-rule { margin-bottom: var(--s-5); }
.nd-night__cols { display: grid; gap: var(--s-5) var(--s-7); max-width: 64rem; margin: var(--s-6) auto 0; color: var(--c-on-night-soft); }
.nd-night__cols a { font-weight: 700; }
.nd-night__call { margin-top: var(--s-7); text-align: center; }
@media (min-width: 56em) {
	.nd-night__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* notice with two text paragraphs + actions: on phones the buttons span the full width, from 40em they stay in the text column */
.nd-limit .notice__icon { grid-row: span 3; }
.nd-limit .notice__actions { grid-column: 1 / -1; }
@media (min-width: 40em) {
	.nd-limit .notice__icon { grid-row: span 4; }
	.nd-limit .notice__actions { grid-column: 2; }
}
