/*
Theme Name: Zauberzeilen Redesign
Theme URI: https://zauberzeilen.de/
Author: Zauberzeilen
Description: Redesign-V2-Entwurf (Block-Theme) nach Designspec in ZAU-10: warmes Rot, Creme/Rose, Manrope/Inter, Kalkberg-Hero. Nur Testumgebung.
Version: 0.2.52
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: Proprietary – nur interne Testumgebung
Text Domain: zauberzeilen-redesign
*/

/* ------------------------------------------------------------------ */
/*  Basis                                                              */
/* ------------------------------------------------------------------ */
html {
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
}

body {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	background-color: var(--zz-color-background, #faf8f5);
	color: var(--zz-color-text, #25262b);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.zz-wrap {
	max-width: var(--zz-container, 1160px);
}

/* Header, Hauptinhalt und Footer bündig ohne den 24-px-Abstand,
   den das Block-Flow-Layout sonst zwischen direkten Kindern
   von .wp-site-blocks erzeugt. */
.wp-site-blocks > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* ------------------------------------------------------------------ */
/*  Typografie                                                         */
/* ------------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	letter-spacing: -0.02em;
	line-height: 1.12;
	text-wrap: balance;
}

/* Sektions-Inhalte (Eyebrow + Überschriften) sind linksbündig innerhalb des
   auf dem Schirm zentrierten 1160-px-Blocks (Standard des Constrained-Layouts). */

p {
	line-height: 1.75;
}

a {
	color: var(--zz-color-brand, #b8323b);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

a:hover {
	color: var(--zz-color-brand-dark, #81252e);
}

/* Akzentwort mit rotem Verlauf */
.zz-accent {
	background: var(--zz-gradient-brand,
		linear-gradient(112deg, #6e1f27 0%, #a8323b 58%, #bf4a45 100%));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ------------------------------------------------------------------ */
/*  Eyebrow                                                            */
/* ------------------------------------------------------------------ */
/* Block-Level (nicht inline-flex): nur bei einem Block-Level-Kind greifen
   `margin-inline: auto` und `max-width`. Als inline-flex klebte das Eyebrow
   als direktes Kind eines Constrained-Blocks am linken Bildschirmrand,
   waehrend Ueberschrift und Spalten zentriert bei 140 px lagen. */
.zz-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	width: fit-content;
	max-width: 100%;
	font-weight: 800;
	font-size: 0.8125rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--zz-color-brand, #b8323b);
	margin: 0 0 14px;
}

/* Als direktes Kind eines Sektions-Blocks: eigene Zeile in der
   1160-px-Container-Breite (zentriert), linksbuendig darin.
   In Spalten (Hero) bleibt es linksbuendig an der Spalte. */
.is-layout-constrained > .zz-eyebrow {
	width: auto;
	max-width: var(--zz-container, 1160px);
	margin-left: auto;
	margin-right: auto;
}

.zz-eyebrow::before {
	content: "";
	width: 26px;
	height: 2px;
	border-radius: 2px;
	background: var(--zz-gradient-brand,
		linear-gradient(112deg, #6e1f27 0%, #bf4a45 100%));
}

/* ------------------------------------------------------------------ */
/*  Header                                                             */
/* ------------------------------------------------------------------ */
/* Der Template-Part-Wrapper um den Header wird aus dem Layout
   herausgenommen, damit `position: sticky` am Header greift
   (sonst hat der Wrapper nur Header-Höhe und kein „Haft-Raum“). */
.wp-block-template-part:has(> .zz-header) {
	display: contents;
}

.zz-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #ffffff;
	border-bottom: 1px solid var(--zz-color-border, #eadcda);
	box-shadow: 0 6px 24px rgba(82, 38, 38, 0.06);
}

.zz-header__inner {
	padding-top: 12px;
	padding-bottom: 12px;
}

.zz-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.zz-brand-logo {
	height: 36px;
	width: auto;
	display: block;
	flex: none;
}

.zz-brand-word {
	font-family: "Manrope", system-ui, sans-serif;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #25262b;
	font-size: 1.25rem;
}

/* ------------------------------------------------------------------ */
/*  Buttons                                                            */
/* ------------------------------------------------------------------ */
.wp-block-button__link {
	font-family: "Inter", system-ui, sans-serif;
	font-weight: 700;
	border-radius: 12px;
	padding: 14px 26px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wp-block-button__link.has-brand-background-color {
	background: var(--zz-gradient-brand,
		linear-gradient(112deg, #6e1f27 0%, #a8323b 58%, #bf4a45 100%)) !important;
	box-shadow: 0 12px 28px rgba(129, 37, 46, 0.22);
}

.wp-block-button__link.has-brand-background-color:hover {
	/* Die globale Regel `a:hover` (Tiefrot) traf hier die weisse
	   Beschriftung und machte den Verlauf-Button unlesbar (1,18:1).
	   Auf Verlauf-Buttons bleibt die Schrift weiss. */
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 18px 38px rgba(129, 37, 46, 0.3);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 1.5px solid var(--zz-color-border, #eadcda);
	background: transparent;
	color: var(--zz-color-text, #25262b);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--zz-color-brand, #b8323b);
	color: var(--zz-color-brand-dark, #81252e);
	background: #fff;
}

/* ------------------------------------------------------------------ */
/*  Hero                                                               */
/* ------------------------------------------------------------------ */
.zz-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(1200px 500px at 12% -10%, rgba(199, 91, 85, 0.10), transparent 60%),
		radial-gradient(900px 420px at 100% 0%, rgba(247, 232, 232, 0.9), transparent 55%),
		var(--zz-color-background, #faf8f5);
}

.zz-hero__title {
	font-weight: 800;
	letter-spacing: -0.04em;
}

.zz-hero__lead {
	font-size: 1.125rem;
	color: var(--zz-color-text-muted, #68656a);
	max-width: 34em;
}

.zz-hero__media {
	position: relative;
}

.zz-hero__media img {
	border-radius: 28px;
	box-shadow: var(--zz-shadow-floating, 0 14px 38px rgba(100, 35, 42, 0.08));
	animation: zz-float 7s ease-in-out infinite;
}

.zz-hero__stat {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--zz-color-text-muted, #68656a);
}

.zz-hero__stat-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--zz-color-brand-blue, #005088);
	flex: none;
}

/* ------------------------------------------------------------------ */
/*  Karten (Leistungen / Service)                                      */
/* ------------------------------------------------------------------ */
.zz-card {
	border: 1px solid var(--zz-color-border, #eadcda);
	border-radius: 16px;
	box-shadow: 0 10px 34px rgba(82, 38, 38, 0.06);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
	overflow: hidden;
}

.zz-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--zz-shadow-floating, 0 14px 38px rgba(100, 35, 42, 0.08));
	border-color: #efc9c5;
}

.zz-card__icon {
	display: inline-flex;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	/* Logo-Blau als Akzent (Variante A, freigegeben 05.10.2026) */
	background: var(--zz-color-brand-blue-light, #e3eef3);
	color: var(--zz-color-brand-blue, #005088);
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
}

.zz-card__title {
	margin: 0 0 10px;
	font-weight: 700;
	letter-spacing: -0.015em;
}

.zz-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 0.9375rem;
}

.zz-card__link::after {
	content: "→";
	transition: transform 0.2s ease;
}

.zz-card__link:hover::after {
	transform: translateX(4px);
}

/* ------------------------------------------------------------------ */
/*  Arbeitsschritte                                                    */
/* ------------------------------------------------------------------ */
.zz-step-num {
	font-family: "Manrope", system-ui, sans-serif;
	font-weight: 800;
	font-size: 2.5rem;
	line-height: 1;
	letter-spacing: -0.03em;
	background: var(--zz-gradient-brand,
		linear-gradient(112deg, #6e1f27 0%, #a8323b 58%, #bf4a45 100%));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin: 0 0 12px;
}

/* ------------------------------------------------------------------ */
/*  Fliesstext (Unterseiten)                                           */
/* ------------------------------------------------------------------ */
/* Inhalte stehen linksbuendig im 1160-px-Container. Fuer Fliesstext
   bleibt das Zeilenmass bei ~70 Zeichen (Designspec 3.2). */
/* Der Post-Inhalt liegt in einem .wp-block-post-content-Block, deshalb
   Nachfahren-Selektor statt Kind-Selektor. */
.zz-prose p,
.zz-prose ul,
.zz-prose ol,
.zz-prose h2,
.zz-prose h3,
.zz-prose h4 {
	max-width: 68ch;
}

/* ------------------------------------------------------------------ */
/*  Team (Wer wir sind)                                                */
/* ------------------------------------------------------------------ */
.zz-team__grid {
	align-items: stretch;
}

.zz-team__col {
	display: flex;
}

.zz-team__card {
	background: var(--zz-color-surface, #fff);
	border: 1px solid var(--zz-color-border, #eadcda);
	border-radius: 16px;
	box-shadow: 0 10px 34px rgba(82, 38, 38, 0.06);
	padding-top: 32px;
	padding-right: 28px;
	padding-bottom: 32px;
	padding-left: 28px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
}

.zz-team__photo {
	margin: 0 0 20px 0;
}

.zz-team__photo img {
	width: 96px;
	height: 96px;
	max-width: 96px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--zz-color-brand-blue-light, #e3eef3);
	box-shadow: 0 10px 24px rgba(100, 35, 42, 0.12);
}

.zz-team__name {
	margin: 0 0 4px;
	font-weight: 700;
}

.zz-team__role {
	margin: 0 0 16px;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--zz-color-brand, #b8323b);
}

/* Social-Buttons wie auf der bestehenden Website (www.zauberzeilen.de),
   als ruhige Kreissymbole in der Markenfarbe. */
.zz-team__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
}

.zz-team__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--zz-color-border, #eadcda);
	background: var(--zz-color-surface, #fff);
	color: var(--zz-color-brand, #b8323b);
	transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.zz-team__social .fa-brands {
	font-size: 15px;
}

.zz-team__social a:hover,
.zz-team__social a:focus-visible {
	background: var(--zz-color-rose, #f7e8e8);
	border-color: #efc9c5;
	color: var(--zz-color-brand-dark, #81252e);
	transform: translateY(-2px);
}

.zz-team__text {
	margin: 0;
	color: var(--zz-color-text-muted, #68656a);
}

/* ------------------------------------------------------------------ */
/*  Referenzen                                                         */
/* ------------------------------------------------------------------ */
.zz-refs__lead {
	max-width: 62ch;
	margin: 0;
	color: var(--zz-color-text-muted, #68656a);
}

/* Drei Karten pro Zeile: WordPress setzt fuer Spalten im Flex-Layout
   `flex-wrap: nowrap !important` und `flex-basis: 0; flex-grow: 1`,
   dadurch liegen alle Karten in einer Zeile. Daher !important. */
.zz-refs__grid {
	align-items: stretch;
	flex-wrap: wrap !important;
}

.zz-refs__grid > .wp-block-column {
	flex: 0 0 calc((100% - 2 * var(--wp--style--block-gap, 24px)) / 3) !important;
}

.zz-ref__col {
	display: flex;
}

.zz-ref__card {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 100%;
	background: var(--zz-color-surface, #fff);
	border: 1px solid var(--zz-color-border, #eadcda);
	border-radius: 15px;
	box-shadow: 0 10px 34px rgba(82, 38, 38, 0.06);
	overflow: hidden;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.zz-ref__card:hover {
	transform: translateY(-4px);
	border-color: #efc9c5;
	box-shadow: var(--zz-shadow-floating, 0 14px 38px rgba(100, 35, 42, 0.08));
}

.zz-ref__media {
	margin: 0;
}

.zz-ref__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-bottom: 1px solid var(--zz-color-border, #eadcda);
}

.zz-ref__title {
	margin: 20px 22px 6px;
	font-weight: 700;
}

.zz-ref__cat {
	margin: 0 22px 14px;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--zz-color-brand, #b8323b);
}

/* Hintergrund: was bei dem Projekt passiert ist. */
.zz-ref__desc {
	margin: 0 22px 16px;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--zz-color-text, #25262b);
}

/* Metazeilen (Zeitraum, Kunde) - Fusszeile aller Kacheln gleich aufgebaut:
   zwei Zeilen sind immer reserviert, damit Trennlinie, Zeilenabstand und
   unterer Rand in jeder Kachel identisch aussehen. */
.zz-ref__meta {
	display: grid;
	/* Drei feste Zeilen: Fusszeilenhoehe, Trennlinie und unterer Rand sind in
	   jeder Kachel identisch, egal ob eine oder zwei Metaangaben und ob der
	   Wert umbricht. */
	grid-template-rows: repeat(3, 1.5em);
	align-content: start;
	gap: 4px;
	min-height: calc(3 * 1.5em + 2 * 4px);
	margin: auto -15px 0;
	padding-top: 14px;
	padding-bottom: 20px;
	border-top: 1px solid var(--zz-color-border, #eadcda);
	color: var(--zz-color-text-muted, #68656a);
	font-size: 0.8125rem;
}

.zz-ref__meta li {
	margin: 0;
	list-style: none;
	display: flex;
	align-items: baseline;
	gap: 8px;
	text-wrap: pretty;
}

.zz-ref__meta li::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--zz-color-brand-blue, #005088);
	transform: translateY(-2px);
}

.zz-ref__meta li:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------ */
/*  Kontakt-CTA                                                        */
/* ------------------------------------------------------------------ */
.zz-cta {
	position: relative;
	overflow: hidden;
	border-radius: 18px;
	max-width: var(--zz-container, 1160px);
	margin-left: auto;
	margin-right: auto;
	/* Luft zwischen CTA und Footer. */
	margin-bottom: var(--zz-section-space-desktop, 88px);
	background: var(--zz-gradient-brand,
		linear-gradient(112deg, #6e1f27 0%, #a8323b 58%, #bf4a45 100%));
	box-shadow: var(--zz-shadow-cta, 0 25px 65px rgba(129, 37, 46, 0.2));
	color: #fff;
}

.zz-cta::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(600px 300px at 85% 0%, rgba(255, 255, 255, 0.14), transparent 55%);
	pointer-events: none;
}

.zz-cta h2,
.zz-cta p {
	color: #fff;
}

.zz-cta .wp-block-button__link {
	background: #fff !important;
	color: var(--zz-color-brand-dark, #81252e);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.zz-cta .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

/* Kontaktformular (Fluent Forms) im CTA: lesbar auf rotem Verlauf */
.zz-cta .fluentform {
	text-align: left;
}

.zz-cta .fluentform .ff-el-form-control {
	background: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 12px;
	color: var(--zz-color-text, #25262b);
}

.zz-cta .fluentform .ff-el-input--label label,
.zz-cta .fluentform label {
	color: #ffffff;
	font-weight: 600;
}

.zz-cta .fluentform .ff-btn {
	background: #ffffff !important;
	color: var(--zz-color-brand-dark, #81252e) !important;
	font-weight: 700;
	border-radius: 12px;
	padding: 12px 26px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* Fehlermeldungen: auf rotem Verlauf hell und lesbar statt rot-auf-rot */
.zz-cta .fluentform .text-danger,
.zz-cta .fluentform .ff-errors-in-stack .error {
	color: #ffd54f;
}

.zz-cta .fluentform .ff-el-is-error .ff-el-form-control {
	border-color: #ffd54f;
}

/* ------------------------------------------------------------------ */
/*  Footer                                                             */
/* ------------------------------------------------------------------ */
.zz-footer {
	background: var(--zz-color-footer, #252326);
	color: var(--zz-color-footer-text, #d5cacc);
}

.zz-footer a {
	color: var(--zz-color-footer-text, #d5cacc);
	text-decoration: none;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.zz-footer a:hover {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: var(--zz-color-brand, #b8323b);
	text-underline-offset: 4px;
}

.zz-footer .zz-brand-word {
	color: #fff;
}

.zz-footer .zz-brand-logo {
	height: 44px;
}

.zz-footer hr {
	opacity: 0.2;
}

/* ------------------------------------------------------------------ */
/*  Listen                                                             */
/* ------------------------------------------------------------------ */
.zz-checklist {
	list-style: none;
	padding-left: 0;
}

.zz-checklist li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 12px;
	color: var(--zz-color-text-muted, #68656a);
}

.zz-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.4em;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--zz-color-rose, #f7e8e8);
}

.zz-checklist li::after {
	content: "✓";
	position: absolute;
	left: 4px;
	top: 0.28em;
	font-size: 0.7rem;
	font-weight: 800;
	color: var(--zz-color-brand, #b8323b);
}

/* ------------------------------------------------------------------ */
/*  Animationen                                                        */
/* ------------------------------------------------------------------ */
@keyframes zz-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

@keyframes zz-fade-up {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: translateY(0); }
}

.zz-animate {
	animation: zz-fade-up 0.6s ease both;
}

@media (prefers-reduced-motion: reduce) {
	.zz-hero__media img,
	.zz-animate {
		animation: none;
	}
}

/* ------------------------------------------------------------------ */
/*  Barrierefreiheit                                                   */
/* ------------------------------------------------------------------ */
:focus-visible {
	outline: 2px solid var(--zz-color-brand, #b8323b);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ------------------------------------------------------------------ */
/*  Responsive                                                         */
/* ------------------------------------------------------------------ */
/* Globaler Rand links/rechts, sobald die Inhaltsbreite nicht mehr
   zentriert werden kann (Mobil + Tablet). Header und Footer bleiben
   vollflächig (Hintergrund bis zum Rand); nur der Inhalt erhält Gutter. */
@media (max-width: 1160px) {
	main#inhalt,
	.zz-header__inner,
	.zz-footer__inner {
		padding-left: var(--zz-gutter-mobile, 15px);
		padding-right: var(--zz-gutter-mobile, 15px);
	}
}

@media (max-width: 781px) {
	.zz-cta {
		margin-bottom: var(--zz-section-space-mobile, 65px);
	}
	.zz-team__col,
	.zz-ref__col {
		width: 100%;
	}
	.zz-refs__grid > .wp-block-column {
		flex: 0 0 100% !important;
	}
	.zz-hero__title {
		font-size: clamp(2.5rem, 8vw, 3rem);
	}
	.zz-hero__media img {
		max-height: 340px;
		object-fit: cover;
	}
	.zz-hero__stats {
		gap: 12px;
	}
}

/* ------------------------------------------------------------------ */
/*  Navigation Tablet + Mobil (<= 1023 px)                             */
/* ------------------------------------------------------------------ */
/* Unterhalb von 1024 px erscheint das Burger-Menue: die vier
   Navigationseintraege plus CTA passen dort nicht in eine Zeile und
   wurden vorher umgebrochen (Header 205 px hoch). Die Burger-Logik
   von WordPress wird hier explizit gesteuert, weil Core sie nur fuer
   den Editor-Vorschau-Breakpoint auswertet. */
@media (max-width: 1023px) {
	.zz-header__inner .wp-block-buttons.zz-header-cta {
		display: none;
	}

	.wp-block-navigation__responsive-container-open,
	.wp-block-navigation__responsive-container-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border-radius: 12px;
		color: var(--zz-color-text, #25262b);
		transition: background-color 0.2s ease, color 0.2s ease;
	}

	.wp-block-navigation__responsive-container-open {
		display: inline-flex !important;
	}

	/* Core blendet ab 600 px die Navigation inline ein
	   (`.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open)`
	   -> display:block, position:relative). Genau das liess die vier
	   Eintraege umbrechen. Deshalb: geschlossen ausblenden, nur das
	   offene Overlay anzeigen. */
	.wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	.wp-block-navigation__responsive-container.is-menu-open {
		display: block !important;
	}

	.wp-block-navigation__responsive-container-open:hover,
	.wp-block-navigation__responsive-container-close:hover,
	.wp-block-navigation__responsive-container-open:focus-visible,
	.wp-block-navigation__responsive-container-close:focus-visible {
		background: var(--zz-color-rose-pale, #fff8f5);
		color: var(--zz-color-brand, #b8323b);
	}

	.wp-block-navigation__responsive-container-close {
		position: absolute;
		top: 14px;
		right: 15px;
	}

	.wp-block-navigation__responsive-dialog {
		padding: 68px 15px 32px;
	}

	/* Core setzt im offenen Menue
	   `align-items: var(--navigation-layout-justification-setting)`
	   (= right, aus dem Block-Layout) – daher !important, damit die
	   Eintraege linksbuendig untereinander stehen. */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		align-items: stretch !important;
		justify-content: flex-start !important;
		flex-direction: column;
		gap: 0;
		width: 100%;
	}

	.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content {
		padding-top: 0;
	}

	/* Core setzt `padding: 0` mit Spezifitaet 0-5-0 auf die
	   Navigationslinks im offenen Menue – daher identische Struktur
	   plus eigene Werte (Theme-CSS wird spaeter geladen). */
	.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
		display: block;
		width: 100%;
		padding: 16px 2px;
		border-bottom: 1px solid var(--zz-color-border, #eadcda);
		font-size: 1.125rem;
		font-weight: 600;
		line-height: 1.35;
		text-align: left;
		color: var(--zz-color-text, #25262b);
	}

	.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content .wp-block-navigation-item:last-child .wp-block-navigation-item__content {
		border-bottom: 0;
	}
}

/* ------------------------------------------------------------------ */
/*  Referenzen: einheitlicher Kartenaufbau                             */
/* ------------------------------------------------------------------ */
/* Im 3-Spalten-Raster sollen Titel, Kategorie, Beschreibung und
   Meta-Block in allen Karten auf derselben Hoehe beginnen. Die
   minimalen Hoehen entsprechen der jeweils laengsten Variante:
   Titel 2 Zeilen (47 px), Kategorie 2 Zeilen (50 px), Beschreibung
   6 Zeilen (153 px), Meta-Block 2 Eintraege (87 px). Ohne diese
   Reserven hing die Trennlinie je nach Textlaenge unterschiedlich
   hoch. Nur im Raster relevant – auf Mobil (eine Spalte) bleibt der
   Text natuerlich lang. */
/* Bis 1160 px zwei Spalten: bei drei Spalten unterhalb der
   Container-Breite (Karte ca. 300 px) brechen die Meta-Zeilen zu oft
   um und die Trennlinien der Karten verrutschen wieder. Ab 1161 px
   entspricht die Karte den 371 px der Desktop-Variante. */
@media (min-width: 782px) and (max-width: 1160px) {
	.zz-refs__grid > .wp-block-column {
		flex: 0 0 calc((100% - var(--wp--style--block-gap, 24px)) / 2) !important;
	}
}

@media (min-width: 782px) {
	.zz-ref__title {
		min-height: calc(2 * 1.12em);
	}

	.zz-ref__cat {
		min-height: 3.6em;
	}

	.zz-ref__desc {
		min-height: calc(6 * 1.7em);
	}

	.zz-ref__meta {
		min-height: 6.7em;
	}
}

/* ------------------------------------------------------------------ */
/*  Platzhalter und Entwurfs-Hinweise (ZAU-13)                        */
/* ------------------------------------------------------------------ */
/* [PH-*] markiert offene Punkte aus ZAU-8 (L1-L8). Sie bleiben bis
   zur Freigabe sichtbar und sollen nicht wie fertiger Fliesstext
   wirken: eigene Farbe, punktierte Unterkante, kein Rahmen im
   Textfluss. */
.zz-ph {
	color: #7A2E36;
	background: rgba(122, 46, 54, 0.07);
	border-bottom: 1px dotted #7A2E36;
	font-size: 0.86em;
	letter-spacing: 0.01em;
	padding: 0 0.18em;
	white-space: nowrap;
}

/* Datenschutz-Hinweis: bleibt Entwurf, bis die DSE den tatsaechlichen
   Technik-Stand beschreibt (ZAU-9 / [PH-L8]). */
.zz-draft {
	background: #FFF8E8;
	border-left: 3px solid #C89A2E;
	border-radius: 0 8px 8px 0;
	color: #4A3B18;
	font-size: 0.94em;
	max-width: 68ch;
	padding: 14px 16px;
}

/* Einleitungszeile der KI-Seite: der aus der Meta gerettete
   Nutzensatz (Rev. 4 Abschnitt 7.2, B-7). Bewusst kein H2, damit
   die Heading-Struktur 5 H2 / 3 H3 bleibt. */
.zz-lead {
	color: var(--zz-color-brand, #7A2E36);
	font-size: 1.16em;
	font-weight: 600;
	line-height: 1.45;
	margin-bottom: 1.1em;
	max-width: 68ch;
}

/* Label ueber der generischen Abschluss-FAQ (Rev. 7 Abschnitt 3.5).
   Ebenfalls kein H3 - die drei H3 bleiben die seitenbezogenen
   FAQ-Fragen aus Rev. 4. */
.zz-minifaq-label {
	color: var(--zz-color-text-muted, #6B5B58);
	font-size: 0.86em;
	letter-spacing: 0.08em;
	margin-bottom: 0.4em;
	margin-top: 2em;
	text-transform: uppercase;
	max-width: 68ch;
}

/* ------------------------------------------------------------------ */
/*  Feinschliff Startseite (ZAU-14, Audit v0.2.44)                     */
/*  Reine CSS-Ergaenzungen. Kein PHP, kein Template, keine Inhalte.   */
/*  Rueckweg: Theme-ZIP v0.2.44 erneut einspielen.                   */
/* ------------------------------------------------------------------ */

/* A3 - Sichtbarer Fokusindikator im Kontaktformular (WCAG 2.4.7).
   Fluent Forms setzt fuer .ff-el-form-control `outline: none`, und
   `.zz-cta .fluentform .ff-btn` setzt den Hintergrund per
   `!important`, wodurch die Plugin-Regel `.ff-btn:focus-visible`
   unterlaufen wird. Diese Regeln stehen bewusst danach und sind
   spezifischer als die Plugin-Regeln. #81252e auf #fff = 9.39:1. */
.zz-cta .fluentform .ff-el-form-control:focus-visible,
.zz-cta .fluentform .ff-btn:focus-visible {
	outline: 2px solid var(--zz-color-brand-dark, #81252e);
	outline-offset: 2px;
	border-radius: 4px;
}

/* B3 - Hover-Feedback fuer den Senden-Button. Die bestehende Regel
   `.zz-cta .wp-block-button__link:hover` trifft nicht zu, weil der
   Fluent-Forms-Button die Klasse wp-block-button__link nicht traegt. */
.zz-cta .fluentform .ff-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

/* A4 - Fokusring in der Fusszeile. #b8323b auf #252326 ergibt nur
   2.64:1; WCAG 2.4.11 verlangt 3:1 gegen angrenzende Farben.
   #f0e6e6 auf #252326 ergibt 11.2:1. */
.zz-footer a:focus-visible {
	outline-color: #f0e6e6;
}

/* B4 - Hover-Affordanz fuer die Hauptnavigation. Gemessen war vorher
   keine Aenderung an Farbe, Hintergrund, Transform oder Underline.
   #81252e auf #ffffff = 9.3:1. Der Kern-Selektor von WordPress
   (.wp-block-navigation .wp-block-navigation-item__content
   .wp-block-navigation-item__content) hat Spezifitaet 0-3-0 und
   setzt `color: inherit`; daher wird er hier wiederholt, damit die
   Hover-Farbe im Kaskadenlauf gewinnt. */
.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover {
	color: var(--zz-color-brand-dark, #81252e);
}

/* B1 - Obergrenze der H1-Groesse. Ohne Deckelung liefert die
   theme.json-Formel `clamp(2.75rem, 4vw + 1.5rem, 5.25rem)` bei
   1440 px 81.6 px in einer 591 px breiten Spalte und damit 4 Zeilen
   (366 px Blockhoehe) - mehr als bei 768 px (2 Zeilen, 123 px).
   Deckel bei 4rem = 64 px: 3 Zeilen, 215 px, Spaltenbreite bleibt.
   `!important` ist zwingend: die Global-Styles aus theme.json
   setzen `.has-hero-font-size { font-size: … !important }`, und
   ohne dasselbe Gewicht verliert jede hier moegliche Spezifitaet. */
h1.zz-hero__title {
	font-size: clamp(2.75rem, 4vw + 1.5rem, 4rem) !important;
}

/* B2 - Zeilenlaenge der Hinweisliste begrenzen. Gemessen 125 / 96 /
   114 Zeichen in je einer Zeile ueber 1160 px; 65ch entspricht
   etwa 68-70 Zeichen und damit dem ueblichen Zielbereich 60-75. */
.zz-checklist {
	max-width: 65ch;
}

/* ------------------------------------------------------------------ */
/*  Piktogramme fuer die Unterseiten (Eigentuemer-Wunsch 06.10.2026)    */
/* ------------------------------------------------------------------ */
/*  Stil wie die Startseiten-Karten (.zz-card__icon): 24x24, Strich,   */
/*  currentColor, 48px-Kachel mit Radius 12px im Logo-Blau.           */
/*  Reihenfolge: IT-Service / KI / Software, dann die geteilten       */
/*  Abschnitte, dann die FAQ-Pointen.                                 */
/*  Rueckweg: Block entfernen, Theme-ZIP v0.2.45 einspielen.         */
/* ------------------------------------------------------------------ */

/* Piktogramme sitzen als Kachel ueber der Ueberschrift. Bewusst
   dekorativ: der Abschnittstitel benennt den Inhalt, das Bild
   wiederholt ihn nicht (WCAG 1.1.1). */
.zz-sec-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--zz-color-brand-blue-light, #e3eef3);
	color: var(--zz-color-brand-blue, #005088);
	margin: 0 0 16px;
	flex: 0 0 auto;
}

.zz-sec-icon svg {
	display: block;
	width: 24px;
	height: 24px;
}

/* Oberhalb eines Abschnitts mit Piktogramm den Abstand zum
   vorherigen Abschnitt etwas reduzieren, damit die Kachel nicht
   allein im Weissraum steht. */
.zz-prose .zz-sec-icon + h2,
.zz-prose .zz-sec-icon + h3 {
	margin-top: 0.4em;
}

/* Auf schmalen Fenstern bleibt die Kachel, nur etwas kleiner. */
@media (max-width: 480px) {
	.zz-sec-icon {
		width: 44px;
		height: 44px;
		border-radius: 11px;
	}

	.zz-sec-icon svg {
		width: 22px;
		height: 22px;
	}
}
/* B2b - Zeilenlaenge auf den Unterseiten. Gemessen bei 1440 px: Absaetze
   zogen auf 85 Zeichen. Wichtig: `68ch` bindet hier NICHT, weil `ch` die
   Breite der Ziffer 0 misst und 68ch bei 16 px bereits 680 px ergeben -
   groesser als die Spalte. Erst 62ch fuehrt auf 76 Zeichen und damit in
   den Zielbereich 60-75. Die Listenelemente waren vorher gar nicht
   begrenzt (max-width: none). */
.zz-prose p,
.zz-prose ul,
.zz-prose ol,
.zz-prose li {
	max-width: 62ch;
}

/* Datenschutz (page-id-3) und Impressum (page-id-117): volle 1160px
   statt 62ch. Eigentuemer-Feedback 08.10.2026. Rueckweg: diese Regel
   entfernen – dann gilt wieder 62ch wie auf allen anderen Seiten.
   overflow-wrap: gemessen 49 px Horizontalueberlauf bei 390 px auf
   /datenschutz/ durch nicht umbrechende URLs im Text (vorher wie
   nachher vorhanden). Rueckweg: overflow-wrap-Zeile entfernen. */
.page-id-3 .zz-prose p,
.page-id-3 .zz-prose ul,
.page-id-3 .zz-prose ol,
.page-id-3 .zz-prose li,
.page-id-117 .zz-prose p,
.page-id-117 .zz-prose ul,
.page-id-117 .zz-prose ol,
.page-id-117 .zz-prose li {
	max-width: 1160px;
	overflow-wrap: break-word;
}

/* ------------------------------------------------------------------ */
/*  Layout Unterseiten – Variante K (ZAU-14,.it-tec-Stil)             */
/*  Aufbau: Textspalte 580 px mit Grafik rechts, Icon-Liste in zwei  */
/*  Spalten, Karten 2 x 2, Bander abwechselnd hinterlegt.            */
/*  Gemessen: 64 Zeichen/Zeile, 0 px Ueberlauf ab 390 px.             */
/*  Rueckweg: style.css.v0.2.46.backup + Seiteninhalte v0.2.47.      */
/* ------------------------------------------------------------------ */
.zz-sub-intro__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 520px;
	gap: 56px;
	align-items: center;
}
.zz-sub-intro__grid > .wp-block-group > .wp-block-group__inner-container > p {
	max-width: 58ch;
}
.zz-sub-art {
	display: block;
	border-radius: 16px;
	overflow: hidden;
	background: var(--zz-color-rose, #f7e8e8);
	line-height: 0;
}
.zz-sub-art img {
	width: 100%;
	height: auto;
	display: block;
}

/* Baender: heller Grund und Rosetone wechseln sich ab */
.zz-sub-band {
	background: var(--zz-color-rose-pale, #fff8f5);
	padding: 52px 0;
}
.zz-sub-band > .wp-block-group__inner-container > h2 {
	margin-bottom: 26px;
}

/* Icon-Liste in zwei Spalten */
.zz-sub-feat {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px 48px;
}
.zz-sub-feat .item {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0 18px;
	align-items: start;
}
.zz-sub-feat .item b {
	display: block;
	margin-bottom: 4px;
}
.zz-sub-feat .item span.txt {
	color: var(--zz-color-text-muted, #68656a);
	font-size: 0.9375rem;
	line-height: 1.7;
	max-width: 52ch;
}

/* Karten 2 x 2 */
.zz-sub-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 26px;
	align-items: start;
}
.zz-sub-cards .card {
	background: var(--zz-color-rose, #f7e8e8);
	border-radius: 14px;
	padding: 26px 30px;
}
.zz-sub-cards .card h2 {
	margin: 0 0 8px;
	font-size: 1.0625rem;
}
.zz-sub-cards .card p,
.zz-sub-cards .card li {
	color: var(--zz-color-text-muted, #68656a);
	font-size: 0.9375rem;
	line-height: 1.7;
	max-width: 52ch;
}

/* Ab 980 px eine Spalte – dort traegt die volle Breite */
@media (max-width: 980px) {
	.zz-sub-intro__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.zz-sub-feat,
	.zz-sub-cards {
		grid-template-columns: 1fr;
	}
	.zz-sub-band {
		padding: 40px 0;
	}
}

/* ------------------------------------------------------------------ */
/*  FAQ ueber die volle Breite (ZAU-14, Eigentuemer-Feedback)       */
/*  Vorher lag der FAQ-Block im Fliesstext bei 62ch (76 Zeichen).    */
/*  Der Block nutzt jetzt die volle Containerbreite (1160 px) als    */
/*  zweispaltiges Raster: ca. 552 px je Spalte, damit ~66 Zeichen   */
/*  pro Zeile - die ganze Breite, ohne 140-Zeichen-Zeilen.           */
/*  Rueckweg: style.css v0.2.47 + Seiteninhalte (Branch            */
/*  snapshot/dev-redesign-v0.2.47 im Repository).                    */
/* ------------------------------------------------------------------ */
.zz-faq {
	max-width: none;
}

.zz-faq .zz-faq__item p,
.zz-faq .zz-faq__item li,
.zz-faq .zz-faq__item ul {
	max-width: none;
}

.zz-faq .zz-faq__item h3 {
	margin-bottom: 8px;
}

.zz-faq .zz-faq__item p {
	margin-top: 0;
}

@media (min-width: 981px) {
	.zz-faq {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 56px;
		row-gap: 36px;
		align-items: start;
	}

	.zz-faq > h2,
	.zz-faq .zz-faq__item--wide {
		grid-column: 1 / -1;
	}
}
