/**
 * Fusszeile der Notfall Praxis Zürich — Fassung 7.4 (Figma 1330:2, l24 Teil 2 c.fuss,
 * KORREKTUREN #10; Bauvertrag §2.12, VORGABE-global §7).
 *
 * Markup: build-footer.php, Spalten-Fassung (sites/notfallpraxis/footer.json → spalten):
 * vier Widgets 900–903 (signet · zeiten · kontakt · links) in footer-1…4, dazu das
 * Notfall-Band als Widget 906 in footer-5 (typ band), die Rechtslinks als Widget 904 in
 * GPs footer-bar und die ©-Zeile (generate_copyright). Die Widget-Hüllen lösen sich auf
 * (Theme: display: contents), die Zonen sind hier die Rasterzellen.
 *
 *   ≥ 1280     Polster 64 / 38; Markenkarte 120 | drei gleich breite Spalten, Lücke 64;
 *              Notfall-Band über die ganze Breite (52 hoch, Weiss 7 %), 40 darunter die
 *              Unterzeile: Haarlinie 30 % über die Spur, 20 Luft, © links, Rechtliches
 *              rechts (14/20, Laufweite 1,4), 32 unten.
 *   768–1279   Polster 64 / 40; Markenkarte oben, darunter drei Spalten (Lücke 32),
 *              Band einzeilig, Unterzeile gestapelt.
 *   ≤ 767      Polster 48 / Rand; alles einspaltig (Lücke 32), Zeilen 26, jeder Link
 *              44 hoch; Band dreizeilig (Polster 12 / 16); Unterzeile 13/20.
 * Schrift 16/24 cream, Titel Bold; Links unterstrichen (nur der Text, nie der Pfeil).
 *
 * @package hbl-npz
 */

body.hbl-npz {
	--npz-fuss-bund: 38px;
	--npz-fuss-linie: color-mix(in srgb, var(--hbl-haarlinie) 30%, transparent);
	--npz-icon-telefon-maske: var(--npz-i-telefon);
}

/* --------------------------------------------------------------- Fläche ---- */
body.hbl-npz .site-footer .footer-widgets,
body.hbl-npz .site-footer .footer-widgets:has(.hbl-fb) {
	background: var(--slate);
	color: var(--cream);
	padding: 64px 0 40px;
}

body.hbl-npz .site-footer .footer-widgets .footer-widgets-container {
	max-width: none;
	padding: 0;
}

body.hbl-npz .site-footer .footer-widgets .inside-footer-widgets {
	display: grid;
	grid-template-columns: 120px repeat(3, minmax(0, 1fr));
	column-gap: 64px;
	row-gap: 40px;
	align-items: start;
	box-sizing: border-box;
	max-width: 1440px;
	margin: 0 auto;
	padding-left: var(--npz-fuss-bund);
	padding-right: var(--npz-fuss-bund);
	font-size: 16px;
	line-height: 24px;
}

body.hbl-npz .site-footer .footer-widgets .hbl-footer-zone {
	display: block;
	min-width: 0;
	font-size: 16px;
	line-height: 24px;
	color: var(--cream);
}
body.hbl-npz .site-footer .footer-widgets .hbl-footer-zone-notfall { grid-column: 1 / -1; }

/* ------------------------------------------------------------- Gruppen ---- */
body.hbl-npz .site-footer .footer-widgets .hbl-footer-gruppe { margin: 0; }
body.hbl-npz .site-footer .footer-widgets .hbl-footer-gruppe + .hbl-footer-gruppe { margin-top: 16px; }
body.hbl-npz .site-footer .footer-widgets strong { font-weight: 700; }
body.hbl-npz .site-footer .footer-widgets .hbl-footer-titel { margin: 0; }
body.hbl-npz .site-footer .footer-widgets .hbl-footer-label { min-width: 0; font-weight: 700; }

body.hbl-npz .site-footer .footer-widgets a {
	color: var(--cream);
	text-decoration: none;
}
body.hbl-npz .site-footer .footer-widgets .hbl-wegweiser-text {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
/* Die Praxis-Liste ist eine Navigation: nicht unterstrichen (Figma). */
body.hbl-npz .site-footer .footer-widgets .hbl-footer-links .hbl-wegweiser-text,
body.hbl-npz .site-footer .footer-widgets .hbl-footer-links a { text-decoration: none; }
body.hbl-npz .site-footer .footer-widgets a:hover,
body.hbl-npz .site-footer .footer-widgets a:focus-visible { color: var(--white); }
body.hbl-npz .site-footer .footer-widgets .hbl-footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Aussenlink: ↗ in Textfarbe (Theme-Maske), nicht unterstrichen. */
body.hbl-npz .site-footer .footer-widgets .hbl-extern { white-space: nowrap; }
body.hbl-npz .site-footer .footer-widgets .hbl-extern::after {
	opacity: 1;
	width: 18px;
	height: 12px;
	margin-left: 3px;
	vertical-align: 2px;
	-webkit-mask-size: 18px 18px;
	mask-size: 18px 18px;
}

/* Pfeil hinter „Notfallnummern für Zürich“: Maske des Themes, nie unterstrichen. */
body.hbl-npz .site-footer .footer-widgets .hbl-footer-pfeil {
	display: inline-block;
	width: 17px;
	height: 12px;
	margin-left: 4px;
	vertical-align: 0;
	font-size: 0;
	background-color: currentColor;
	-webkit-mask: var(--hbl-icon-pfeil) no-repeat center / 17px 17px;
	mask: var(--hbl-icon-pfeil) no-repeat center / 17px 17px;
}

body.hbl-npz .site-footer .footer-widgets .hbl-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}
body.hbl-npz .site-footer .footer-widgets .hbl-footer-links li { margin: 0; padding: 0; }

/* -------------------------------------------------------------- Signet ---- */
body.hbl-npz .site-footer .footer-widgets .hbl-footer-signet {
	display: block;
	width: 120px;
	border-radius: 20px;
}
body.hbl-npz .site-footer .footer-widgets .hbl-footer-signet img {
	display: block;
	width: 120px;
	height: 120px;
}

/* --------------------------------------------------------- Notfall-Band ---- */
body.hbl-npz .site-footer .footer-widgets .npz-fuss-band {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 16px;
	box-sizing: border-box;
	min-height: 52px;
	padding: 14px 24px;
	border-radius: var(--hbl-radius, 12px);
	background: color-mix(in srgb, var(--white) 7%, transparent);
	color: var(--cream);
}
body.hbl-npz .site-footer .footer-widgets .npz-fuss-band strong { color: var(--white); }
body.hbl-npz .site-footer .footer-widgets .npz-fuss-band a { display: inline-flex; align-items: center; }
body.hbl-npz .site-footer .footer-widgets .npz-fuss-band a:last-child { margin-left: auto; }
body.hbl-npz .site-footer .npz-icon-telefon {
	display: inline-block;
	flex: none;
	width: 16px;
	height: 16px;
	margin-right: 6px;
	background: currentColor;
	-webkit-mask: var(--npz-i-telefon) center / 16px 16px no-repeat;
	mask: var(--npz-i-telefon) center / 16px 16px no-repeat;
}

/* ----------------------------------------------------------- Unterzeile ---- */
body.hbl-npz .site-info {
	background: var(--slate);
	color: var(--cream);
	padding: 0;
	text-align: left;
}
body.hbl-npz .site-info .inside-site-info::before,
body.hbl-npz .site-info .inside-site-info::after { content: none; }
body.hbl-npz .site-info .inside-site-info {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px 32px;
	box-sizing: border-box;
	max-width: 1440px;
	margin: 0 auto;
	padding: 21px var(--npz-fuss-bund) 32px;
	background: linear-gradient(var(--npz-fuss-linie), var(--npz-fuss-linie))
		no-repeat var(--npz-fuss-bund) 0 / calc(100% - 2 * var(--npz-fuss-bund)) 1px;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: 1.4px;
}
body.hbl-npz .site-info .copyright-bar,
body.hbl-npz .site-info .footer-bar {
	float: none;
	margin: 0;
	padding: 0;
	width: auto;
}
body.hbl-npz .site-info .copyright-bar { order: 1; }
body.hbl-npz .site-info .footer-bar { order: 2; text-align: right; }
body.hbl-npz .site-info .footer-bar .widget { margin: 0; padding: 0; }
body.hbl-npz .site-info .hbl-footer-rechtliches {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	gap: 0;
	list-style: none;
	font-size: inherit;
	letter-spacing: inherit;   /* Theme 0.9.6 setzt .6px (HBL-Entwurf B); hier gilt 1.4 der Zeile */
}
body.hbl-npz .site-info .hbl-footer-rechtliches li { margin: 0; padding: 0; }
/* Theme 0.9.6 macht jeden Rechtslink zur 44er-Zeile (HBL). Ab 768 steht er in der
   NPZ als Text in der 20er-Zeile; die Tippziele 44 setzt der Block ≤ 767 unten. */
body.hbl-npz .site-info .hbl-footer-rechtliches a { display: inline; min-height: 0; position: relative; }
/* Trefferfläche ab 768 (QA responsive-11): unsichtbar 14 über und unter dem Text (17 + 28
   = 45), ohne die Zeile zu verändern. Unter 768 sind die Links selbst 44 hoch (Block unten). */
body.hbl-npz .site-info .hbl-footer-rechtliches a::after {
	content: "";
	position: absolute;
	inset: -14px 0;
}
body.hbl-npz .site-info .hbl-footer-rechtliches li + li::before {
	content: "\00a0·\00a0";
	content: "\00a0·\00a0" / "";
}
body.hbl-npz .site-info a {
	color: var(--cream);
	text-decoration: none;
}
body.hbl-npz .site-info a:hover,
body.hbl-npz .site-info a:focus-visible {
	color: var(--white);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --------------------------------------------- 768–1279: Karte oben, drei Spalten -- */
@media (width < 1280px) {
	body.hbl-npz { --npz-fuss-bund: 40px; }
	body.hbl-npz .site-footer .footer-widgets .inside-footer-widgets {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 32px;
		row-gap: 40px;
	}
	body.hbl-npz .site-footer .footer-widgets .hbl-footer-zone-signet { grid-column: 1 / -1; }
	body.hbl-npz .site-info .inside-site-info {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	body.hbl-npz .site-info .copyright-bar,
	body.hbl-npz .site-info .footer-bar {
		text-align: left !important;   /* GP mobile.css setzt beide auf center !important */
		margin-bottom: 0;
	}
}

/* ------------------------------------------------- ≤ 767: eine Spalte ---------------- */
@media (width < 768px) {
	body.hbl-npz { --npz-fuss-bund: var(--npz-rand); }
	body.hbl-npz .site-footer .footer-widgets,
	body.hbl-npz .site-footer .footer-widgets:has(.hbl-fb) { padding: 48px 0 32px; }
	body.hbl-npz .site-footer .footer-widgets .inside-footer-widgets {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 32px;
	}
	body.hbl-npz .site-footer .footer-widgets .hbl-footer-zone p.hbl-footer-gruppe { line-height: 26px; }
	body.hbl-npz .site-footer .footer-widgets .hbl-footer-gruppe + .hbl-footer-gruppe { margin-top: 24px; }

	/* Tippziele 44 (WCAG 2.5.5) für jeden Link; die Liste holt das Polster aussen zurück. */
	body.hbl-npz .site-footer .footer-widgets .hbl-footer-zone p.hbl-footer-gruppe a,
	body.hbl-npz .site-footer .footer-widgets .hbl-footer-links a {
		display: inline-block;
		padding-block: 10px;
		line-height: 24px;
	}
	body.hbl-npz .site-footer .footer-widgets .hbl-footer-titel + .hbl-footer-gruppe { margin-top: 0; }
	/* „Ästhetische Medizin · hbl-dd.com“ folgt der Praxis-Liste im selben 44er-Schritt wie
	   die Einträge darüber (Figma; QA v-unterseiten-3, v-kontakt-6) — die Tippziele tragen den
	   Rhythmus. Andere Gruppenfolgen (Zeiten, Kontakt) behalten ihre 24. */
	body.hbl-npz .site-footer .footer-widgets nav.hbl-footer-gruppe + p.hbl-footer-gruppe { margin-top: 0; }

	body.hbl-npz .site-footer .footer-widgets .npz-fuss-band {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: 12px 16px;
	}
	body.hbl-npz .site-footer .footer-widgets .npz-fuss-band a { min-height: 44px; }
	body.hbl-npz .site-footer .footer-widgets .npz-fuss-band a:last-child { margin-left: 0; }

	body.hbl-npz .site-info .inside-site-info {
		gap: 2px;
		padding-top: 21px;
		padding-bottom: 22px;
		font-size: 13px;
		line-height: 20px;
	}
	body.hbl-npz .site-info .hbl-footer-rechtliches { align-items: center; }
	body.hbl-npz .site-info .hbl-footer-rechtliches a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
	body.hbl-npz .site-info .hbl-footer-rechtliches a::after { content: none; }
}
