/*
Theme Name:   werbewerkstatt
Theme URI:    https://werbewerkstatt.hoch4medien.de
Author:       hoch4medien
Description:  Eigenständiges, schlankes Theme für Die WerbeWERKSTATT GmbH – Werbetechnik aus Hildesheim. Farbwelt Magenta/Beere, Design-Leitmotiv Kreise und Punkte, Mobile-First, ohne Page-Builder.
Version:      1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.1
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  werbewerkstatt
*/

/* --------------------------------------------------------------------------
   1. Schriften (lokal eingebunden, DSGVO-konform – keine externen CDNs)
   -------------------------------------------------------------------------- */

/* Outfit als variabler Font (100–900): Überschriften, UI und Fließtext */
@font-face {
	font-family: 'Outfit';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('assets/fonts/outfit-var-latin.woff2') format('woff2');
}

/* Martian Mono als variabler Font (100–800): Akzente (Kicker, Nummern) */
@font-face {
	font-family: 'Martian Mono';
	font-style: normal;
	font-weight: 100 800;
	font-display: swap;
	src: url('assets/fonts/martian-mono-var-latin.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   2. Design-Tokens (Corporate Design)
   -------------------------------------------------------------------------- */

:root {
	/* Markenfarben */
	--ww-magenta: #ec008c;        /* Primär – Deko, Kreise, Akzente (= Prozess-Magenta) */
	--ww-magenta-deep: #d6007f;   /* Interaktiv – Buttons/Links (Kontrast ≥ 4.5) */
	--ww-berry: #691446;          /* Dunkler Akzent – Hover, Footer, Flächen     */

	/* CMYK-Kontrastfarben (Druckfarben – passend zum Gewerk) */
	--ww-cyan: #00aeef;
	--ww-yellow: #ffed00;
	--ww-key: #1a1a1a;
	--ww-gray: #e9e8e8;           /* Hellgrau – Flächen, Sektionshintergründe    */
	--ww-gray-soft: #f6f5f5;      /* noch hellere Fläche für Kartenraster        */
	--ww-white: #ffffff;
	--ww-text: #2b2b2b;           /* neutrales dunkles Grau, kein reines Schwarz */
	--ww-text-soft: #575757;

	/* Transparenzstufen des Kreis-Motivs */
	--ww-magenta-06: rgba(236, 0, 140, 0.06);
	--ww-magenta-10: rgba(236, 0, 140, 0.10);
	--ww-magenta-16: rgba(236, 0, 140, 0.16);
	--ww-magenta-25: rgba(236, 0, 140, 0.25);

	/* Typografie */
	--ww-font-head: 'Outfit', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
	--ww-font-body: 'Outfit', 'Helvetica Neue', Arial, system-ui, sans-serif;
	--ww-font-mono: 'Martian Mono', 'SF Mono', Consolas, monospace;

	/* Geometrie – Rundungen passend zum Kreis-Motiv */
	--ww-radius: 1.25rem;
	--ww-radius-sm: 0.75rem;
	--ww-radius-pill: 999px;

	--ww-shadow: 0 10px 30px -12px rgba(43, 43, 43, 0.18);
	--ww-shadow-hover: 0 18px 40px -14px rgba(105, 20, 70, 0.28);

	/* Layout */
	--ww-container: 72rem;
	--ww-prose: 46rem;
	--ww-gap: clamp(1.25rem, 3vw, 2rem);
	--ww-section: clamp(3.5rem, 8vw, 6.5rem);
}

/* --------------------------------------------------------------------------
   3. Basis & Typografie
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--ww-font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ww-text);
	background: var(--ww-white);
	overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--ww-font-head);
	font-weight: 700;
	line-height: 1.15;
	color: var(--ww-text);
	margin: 0 0 0.6em;
	overflow-wrap: break-word;
	/* Silbentrennung für lange deutsche Komposita („Fahrzeugvollverklebung“) */
	-webkit-hyphens: auto;
	hyphens: auto;
}

h1 { font-size: clamp(2.1rem, 4.5vw + 0.8rem, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + 0.6rem, 2.3rem); }
h3 { font-size: clamp(1.2rem, 1.2vw + 0.7rem, 1.45rem); }

p {
	margin: 0 0 1.25em;
}

a {
	color: var(--ww-magenta-deep);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--ww-berry);
}

:focus-visible {
	outline: 3px solid var(--ww-magenta-25);
	outline-offset: 2px;
	border-radius: 4px;
}

img {
	max-width: 100%;
	height: auto;
	border-radius: var(--ww-radius-sm);
}

/* Aufzählungspunkte als Magenta-Kreise (Motiv-Aufgriff) */
.entry-content ul {
	padding-left: 1.4em;
}

.entry-content ul li {
	margin-bottom: 0.4em;
}

.entry-content ul li::marker {
	color: var(--ww-magenta);
	content: '● ';
	font-size: 0.85em;
}

.entry-content ol li::marker {
	color: var(--ww-magenta-deep);
	font-weight: 600;
}

/* Screenreader-Text (WordPress-Standardklasse) */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -3.5rem;
	z-index: 200;
	background: var(--ww-berry);
	color: #fff;
	padding: 0.6rem 1.2rem;
	border-radius: var(--ww-radius-pill);
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 1rem;
	color: #fff;
}

/* --------------------------------------------------------------------------
   4. Layout-Container
   -------------------------------------------------------------------------- */

.container {
	width: min(100% - 2.5rem, var(--ww-container));
	margin-inline: auto;
}

.prose {
	max-width: var(--ww-prose);
}

.section {
	padding-block: var(--ww-section);
	position: relative;
}

.section--gray {
	background: var(--ww-gray-soft);
}

.section--tight {
	padding-block: calc(var(--ww-section) * 0.6);
}

.section__head {
	max-width: 38rem;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--ww-font-mono);
	font-weight: 600;
	font-size: 0.75rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ww-magenta-deep);
	margin-bottom: 0.75rem;
}

.section__kicker::before {
	content: '';
	width: 0.65em;
	height: 0.65em;
	border-radius: 50%;
	background: var(--ww-magenta);
	flex: none;
}

/* Punkte-Trenner zwischen Sektionen: die vier Druckfarben (CMYK) */
.dots-divider {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	padding: 0;
	margin: 0 auto;
	list-style: none;
}

.dots-divider span {
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
}

.dots-divider span:nth-child(1) { background: var(--ww-cyan); }
.dots-divider span:nth-child(2) { background: var(--ww-magenta); transform: scale(1.25); }
.dots-divider span:nth-child(3) { background: var(--ww-yellow); }
.dots-divider span:nth-child(4) { background: transparent; border: 2px solid var(--ww-key); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.ww-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.8rem 1.7rem;
	border-radius: var(--ww-radius-pill);
	background: var(--ww-magenta-deep);
	color: #fff;
	font-family: var(--ww-font-head);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	border: 2px solid var(--ww-magenta-deep);
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.ww-btn:hover,
.ww-btn:focus {
	background: var(--ww-berry);
	border-color: var(--ww-berry);
	color: #fff;
	transform: translateY(-2px);
}

.ww-btn--ghost {
	background: transparent;
	color: var(--ww-magenta-deep);
}

.ww-btn--ghost:hover,
.ww-btn--ghost:focus {
	background: var(--ww-magenta-06);
	color: var(--ww-berry);
	border-color: var(--ww-berry);
}

.ww-btn--light {
	background: #fff;
	border-color: #fff;
	color: var(--ww-berry);
}

.ww-btn--light:hover,
.ww-btn--light:focus {
	background: var(--ww-gray);
	border-color: var(--ww-gray);
	color: var(--ww-berry);
	transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   6. Header & Navigation
   -------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--ww-gray);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 4.25rem;
}

/* Firmenlogo: CSS-Nachbildung des Originals (Magenta-Keil + Die WerbeWERKSTATT) */
.site-logo {
	font-size: clamp(1rem, 2.2vw, 1.25rem);
	color: var(--ww-text);
	text-decoration: none;
	display: inline-block;
	line-height: 1;
	white-space: nowrap;
}

.site-logo:hover,
.site-logo:focus {
	color: var(--ww-berry);
}

.brand {
	display: inline-flex;
	flex-direction: column;
	gap: 0.14em;
	font-family: var(--ww-font-head);
	font-style: italic; /* Original ist kursiv gesetzt; Poppins wird oblique synthetisiert */
}

.brand__top {
	display: flex;
	align-items: center;
	gap: 0.35em;
}

.brand__die {
	font-weight: 700;
	font-size: 0.7em;
}

/* der Magenta-Keil, dick links, spitz auslaufend nach rechts */
.brand__wedge {
	flex: 1;
	min-width: 5.5em;
	height: 0.4em;
	background: var(--ww-magenta);
	clip-path: polygon(0 0, 0 100%, 100% 62%, 100% 38%);
}

.brand__name {
	display: flex;
	align-items: baseline;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.brand__name em {
	font-style: inherit;
}

.brand__werkstatt {
	font-weight: 600;
	letter-spacing: 0.05em;
}

.brand__gmbh {
	font-size: 0.42em;
	font-weight: 600;
	letter-spacing: 0.08em;
	margin-left: 0.6em;
}

/* Burger-Button (mobil) */
.nav-toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0.6rem;
	background: none;
	border: 2px solid var(--ww-gray);
	border-radius: 50%;
	cursor: pointer;
}

.nav-toggle .bar {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--ww-text);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded='true'] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Navigation – Mobile-First: ausklappbares Panel */
.site-nav {
	display: none;
	position: absolute;
	inset: 100% 0 auto 0;
	background: #fff;
	border-bottom: 1px solid var(--ww-gray);
	box-shadow: var(--ww-shadow);
	max-height: calc(100dvh - 4.25rem);
	overflow-y: auto;
}

.site-nav.is-open {
	display: block;
}

.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0.75rem 0;
}

.site-nav a {
	display: block;
	padding: 0.7rem 1.5rem;
	font-family: var(--ww-font-head);
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--ww-text);
	text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
	color: var(--ww-magenta-deep);
}

.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a {
	color: var(--ww-magenta-deep);
}

/* Menüpunkt mit Unterpunkten: Zeile mit Link + Toggle */
.menu-item-has-children {
	position: relative;
}

.menu-item-has-children > .menu-item__row {
	display: flex;
	align-items: center;
}

.menu-item-has-children > .menu-item__row > a {
	flex: 1;
}

.submenu-toggle {
	background: none;
	border: 0;
	width: 2.75rem;
	height: 2.75rem;
	margin-right: 0.75rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--ww-text);
}

.submenu-toggle:hover {
	background: var(--ww-magenta-06);
}

.submenu-toggle .chevron {
	width: 0.65rem;
	height: 0.65rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.submenu-toggle[aria-expanded='true'] .chevron {
	transform: rotate(-135deg);
}

/* Untermenü mobil: eingerückt, per Toggle */
.site-nav .sub-menu {
	display: none;
	padding: 0 0 0.5rem;
}

.site-nav .menu-item-has-children.is-open > .sub-menu {
	display: block;
}

/* Themengruppen im Leistungs-Dropdown */
.menu-group > .menu-group__label {
	display: block;
	padding: 0.8rem 1.5rem 0.2rem;
	font-family: var(--ww-font-head);
	font-weight: 600;
	font-size: 0.78rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ww-text-soft);
}

.menu-group > .menu-group__label::before {
	content: '';
	display: inline-block;
	width: 0.5em;
	height: 0.5em;
	border: 2px solid var(--ww-magenta);
	border-radius: 50%;
	margin-right: 0.45em;
	vertical-align: 0.02em;
}

.site-nav .menu-group .sub-menu {
	display: block; /* Gruppen sind immer aufgeklappt */
	padding: 0;
}

.site-nav .menu-group .sub-menu a {
	font-family: var(--ww-font-body);
	font-weight: 500;
	font-size: 1rem;
	padding: 0.45rem 1.5rem 0.45rem 2.6rem;
}

/* Desktop-Navigation */
@media (min-width: 64rem) {
	.nav-toggle {
		display: none;
	}

	.site-nav,
	.site-nav.is-open {
		display: block;
		position: static;
		background: none;
		border: 0;
		box-shadow: none;
		max-height: none;
		overflow: visible;
	}

	.site-nav > ul {
		display: flex;
		align-items: center;
		gap: 0.25rem;
		padding: 0;
	}

	.site-nav a {
		padding: 0.55rem 0.9rem;
		border-radius: var(--ww-radius-pill);
		font-size: 1rem;
	}

	.site-nav > ul > li > .menu-item__row > a:hover,
	.site-nav > ul > li > a:hover {
		background: var(--ww-magenta-06);
	}

	.submenu-toggle {
		width: 1.6rem;
		height: 1.6rem;
		margin: 0 0.2rem 0 -0.4rem;
	}

	.submenu-toggle .chevron {
		width: 0.5rem;
		height: 0.5rem;
	}

	/* Dropdown-Panel: eine Ebene, zweispaltig (spaltenweise gefüllt).
	   Immer display:grid, ein-/ausgeblendet über visibility/opacity –
	   so bekommt das Schließen eine Verzögerung (verzeihender Hover). */
	.site-nav .menu-item-has-children > .sub-menu {
		position: absolute;
		top: calc(100% + 0.5rem);
		left: 50%;
		min-width: 26rem;
		background: #fff;
		border-radius: var(--ww-radius);
		box-shadow: var(--ww-shadow-hover);
		border: 1px solid var(--ww-gray);
		padding: 0.75rem;
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: repeat(4, auto);
		grid-auto-flow: column;
		gap: 0.15rem 0.75rem;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateX(-50%) translateY(6px);
		/* Schließen erst nach 0.3s Karenz */
		transition: opacity 0.18s ease 0.3s, transform 0.18s ease 0.3s, visibility 0s linear 0.48s;
	}

	/* unsichtbare Brücke über den Spalt zwischen Menüpunkt und Panel:
	   die Maus darf die Lücke durchqueren, ohne dass der Hover abreißt */
	.site-nav .menu-item-has-children > .sub-menu::before {
		content: '';
		position: absolute;
		top: -0.75rem;
		left: 0;
		right: 0;
		height: 0.75rem;
	}

	.site-nav .menu-item-has-children.is-open > .sub-menu,
	.site-nav .menu-item-has-children:hover > .sub-menu,
	.site-nav .menu-item-has-children:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateX(-50%) translateY(0);
		/* Öffnen sofort */
		transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
	}

	.menu-group > .menu-group__label {
		padding: 0.5rem 0.9rem 0.15rem;
	}

	.site-nav .menu-group .sub-menu a {
		padding: 0.4rem 0.9rem 0.4rem 2rem;
		border-radius: var(--ww-radius-sm);
	}

	.site-nav .menu-group .sub-menu a:hover {
		background: var(--ww-magenta-06);
	}
}

/* --------------------------------------------------------------------------
   7. Hero mit animiertem Kreise-Hintergrund
   -------------------------------------------------------------------------- */

.hero {
	position: relative;
	/* wie im Fensterdesign: oben Weiß, unten die hellgraue Fläche für die weißen Konturlinien */
	background: linear-gradient(180deg, var(--ww-white) 0%, var(--ww-gray) 70%);
	padding-block: clamp(4rem, 10vw, 8rem);
	overflow: hidden;
}

.hero__inner {
	position: relative;
	z-index: 2;
	max-width: 46rem;
}

.hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: #fff;
	border: 1px solid var(--ww-gray);
	border-radius: var(--ww-radius-pill);
	padding: 0.35rem 1rem;
	font-family: var(--ww-font-mono);
	font-weight: 600;
	font-size: 0.75rem;
	color: var(--ww-text-soft);
	margin-bottom: 1.25rem;
}

.hero__kicker::before {
	content: '';
	width: 0.6em;
	height: 0.6em;
	border-radius: 50%;
	background: var(--ww-magenta);
}

.hero h1 {
	margin-bottom: 0.4em;
}

.hero h1 em {
	font-style: normal;
	color: var(--ww-magenta-deep);
}

.hero__lead {
	font-size: clamp(1.1rem, 1.5vw, 1.3rem);
	color: var(--ww-text-soft);
	max-width: 38rem;
	margin-bottom: 2rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
}

/* Hero-Artwork nach dem Fensterdesign: Halbton-Punktwolken + Konturlinien.
   Inline-SVG (assets/img/hero-art.svg), Ebenen werden als Gruppen animiert –
   ausschließlich transform/dashoffset, GPU-schonend. */
.hero-art-wrap {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.hero-art {
	width: 100%;
	height: 100%;
	display: block;
}

/* topografische Linien: Weiß auf der grauen Fläche, wie in der Vorlage */
.hero-art .line {
	fill: none;
	stroke: #fff;
	stroke-width: 2.5;
	stroke-opacity: 0.9;
}

.hero-art .line--dashed {
	stroke-dasharray: 10 9;
	animation: art-dash 16s linear infinite;
}

@keyframes art-dash {
	to {
		stroke-dashoffset: -190;
	}
}

.hero-art .art-lines {
	will-change: transform;
	animation: art-drift-lines 34s ease-in-out infinite alternate;
}

@keyframes art-drift-lines {
	to {
		transform: translate(-24px, 10px);
	}
}

/* Punktwolken: die Größen-Welle läuft durch die einzelnen Punkte (unten),
   die Gruppen selbst driften nur noch minimal. */
.hero-art .art-dots {
	fill: var(--ww-magenta);
	transform-box: view-box;
	will-change: transform;
}

.hero-art .art-dots--main {
	animation: art-drift-a 18s ease-in-out infinite alternate;
}

.hero-art .art-dots--top {
	animation: art-drift-b 15s ease-in-out -6s infinite alternate;
}

.hero-art .art-dots--trail {
	animation: art-drift-a 12s ease-in-out -3s infinite alternate;
}

.hero-art .art-dots--single {
	animation: art-drift-b 14s ease-in-out -7s infinite alternate;
}

@keyframes art-drift-a {
	to {
		transform: translate(-7px, -5px);
	}
}

@keyframes art-drift-b {
	to {
		transform: translate(6px, 4px);
	}
}

/* Größen-Welle: jeder Punkt pulsiert um den eigenen Mittelpunkt; der
   Phasenversatz (--wd, im SVG je nach Abstand zum Wellenursprung gesetzt)
   lässt die Welle radial durchs Raster laufen. Maximal-Scale 1.12 ist im
   Generator (MAXS) als Überlappungs-Grenze eingerechnet – Punkte berühren
   sich auch am Wellenkamm nie. */
.hero-art .art-dots circle {
	transform-box: fill-box;
	transform-origin: 50% 50%;
	animation: dot-wave 6s ease-in-out infinite;
	animation-delay: var(--wd, 0s);
}

@keyframes dot-wave {
	0%,
	100% {
		transform: scale(0.78);
	}

	50% {
		transform: scale(1.12);
	}
}

/* Auf kleinen Screens: Punktwolken zur dezenten Textur dimmen (Lesbarkeit),
   Spur und Streupunkte ganz ausblenden */
@media (max-width: 52rem) {
	.hero-art .art-dots {
		opacity: 0.28;
	}

	.hero-art .line {
		stroke-opacity: 0.6;
	}

	.hero-art .art-dots--trail,
	.hero-art .art-dots--single {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   8. Seitenkopf für Unterseiten (statisches Kreis-Motiv)
   -------------------------------------------------------------------------- */

.page-header {
	position: relative;
	background: var(--ww-gray-soft);
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
	overflow: hidden;
	border-bottom: 1px solid var(--ww-gray);
}

.page-header .container {
	position: relative;
	z-index: 2;
}

.page-header h1 {
	margin-bottom: 0.2em;
	max-width: 46rem;
}

.page-header__lead {
	color: var(--ww-text-soft);
	font-size: 1.15rem;
	max-width: 42rem;
	margin: 0;
}

/* statische Deko-Kreise rechts */
.page-header::before,
.page-header::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.page-header::before {
	width: 16rem;
	height: 16rem;
	top: -6rem;
	right: -4rem;
	background: var(--ww-magenta-10);
}

.page-header::after {
	width: 7rem;
	height: 7rem;
	bottom: -2.5rem;
	right: 18%;
	border: 2px solid var(--ww-magenta-25);
}

/* --------------------------------------------------------------------------
   9. Karten (Leistungsraster)
   -------------------------------------------------------------------------- */

.cards-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--ww-gap);
}

@media (min-width: 40rem) {
	.cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
	.cards-grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
	/* Akzentfarbe rotiert durch die vier Druckfarben (CMYK) */
	--accent: var(--ww-magenta);
	position: relative;
	background: var(--ww-white);
	border: 1px solid var(--ww-gray);
	border-radius: var(--ww-radius);
	padding: 1.75rem 1.5rem 1.5rem;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cards-grid .card:nth-child(4n + 1) { --accent: var(--ww-cyan); }
.cards-grid .card:nth-child(4n + 2) { --accent: var(--ww-magenta); }
.cards-grid .card:nth-child(4n + 3) { --accent: var(--ww-yellow); }
.cards-grid .card:nth-child(4n + 4) { --accent: var(--ww-key); }

.card:hover,
.card:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--ww-shadow-hover);
	border-color: color-mix(in srgb, var(--accent) 45%, white);
}

/* Kreis-Deko in der Kartenecke – wächst beim Hover sanft mit */
.card::before {
	content: '';
	position: absolute;
	top: -2.6rem;
	right: -2.6rem;
	width: 6rem;
	height: 6rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--accent) 8%, white);
	transition: transform 0.25s ease;
}

.card:hover::before,
.card:focus-within::before {
	transform: scale(1.35);
}

/* Doppelkreis-Badge (gefüllt + Outline) in der Karten-Akzentfarbe */
.card__badge {
	position: relative;
	width: 2.9rem;
	height: 2.9rem;
	margin-bottom: 1.1rem;
}

.card__badge::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--accent) 18%, white);
}

.card__badge::after {
	content: '';
	position: absolute;
	inset: 0.55rem -0.55rem -0.55rem 0.55rem;
	border-radius: 50%;
	border: 2px solid var(--accent);
}

.card h3 {
	margin-bottom: 0.4em;
	font-size: 1.15rem;
}

.card h3 a {
	color: inherit;
	text-decoration: none;
}

/* gesamte Karte klickbar */
.card h3 a::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
}

.card p {
	font-size: 0.95rem;
	color: var(--ww-text-soft);
	margin: 0;
}

.card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 1rem;
	font-family: var(--ww-font-head);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--ww-magenta-deep);
}

.card__more::after {
	content: '→';
	transition: transform 0.2s ease;
}

.card:hover .card__more::after {
	transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   10. Arbeitsweise-Schritte (Punkte-Motiv)
   -------------------------------------------------------------------------- */

.steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: step;
}

@media (min-width: 52rem) {
	.steps {
		grid-template-columns: repeat(4, 1fr);
		gap: var(--ww-gap);
	}
}

.steps li {
	position: relative;
	padding-left: 4.25rem;
	counter-increment: step;
}

@media (min-width: 52rem) {
	.steps li {
		padding-left: 0;
		padding-top: 4.25rem;
	}

	/* Verbindungslinie zwischen den Punkten */
	.steps li:not(:last-child)::before {
		content: '';
		position: absolute;
		top: 1.55rem;
		left: 3.8rem;
		right: -1rem;
		border-top: 2px dashed var(--ww-magenta-25);
	}
}

/* Die vier Schritte tragen die vier Druckfarben: C, M, Y, K */
.steps li:nth-child(1) { --accent: var(--ww-cyan); }
.steps li:nth-child(2) { --accent: var(--ww-magenta); }
.steps li:nth-child(3) { --accent: var(--ww-yellow); }
.steps li:nth-child(4) { --accent: var(--ww-key); }

.steps .step__dot {
	position: absolute;
	left: 0;
	top: 0;
	width: 3.2rem;
	height: 3.2rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--accent, var(--ww-magenta)) 14%, white);
	border: 2px solid var(--accent, var(--ww-magenta));
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--ww-font-mono);
	font-weight: 700;
	color: var(--ww-text);
}

.steps .step__dot::before {
	content: counter(step);
}

.steps h3 {
	font-size: 1.1rem;
	margin-bottom: 0.3em;
}

.steps p {
	font-size: 0.95rem;
	color: var(--ww-text-soft);
	margin: 0;
}

/* --------------------------------------------------------------------------
   11. CTA-Sektion (Beere)
   -------------------------------------------------------------------------- */

.cta {
	position: relative;
	background: var(--ww-berry);
	color: #fff;
	overflow: hidden;
}

.cta .container {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 44rem;
}

.cta h2 {
	color: #fff;
}

.cta p {
	color: rgba(255, 255, 255, 0.85);
	font-size: 1.1rem;
}

.cta .ww-btn {
	margin-top: 0.75rem;
}

/* dezente weiße Kreise auf Beere */
.cta::before,
.cta::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.cta::before {
	width: 18rem;
	height: 18rem;
	top: -7rem;
	left: -5rem;
	background: rgba(255, 255, 255, 0.05);
}

.cta::after {
	width: 9rem;
	height: 9rem;
	bottom: -3rem;
	right: -2rem;
	border: 2px solid rgba(255, 255, 255, 0.18);
}

/* --------------------------------------------------------------------------
   12. Inhalt / Artikel-Layout
   -------------------------------------------------------------------------- */

.entry-content {
	max-width: var(--ww-prose);
}

.entry-content h2 {
	margin-top: 1.6em;
}

.entry-content h3 {
	margin-top: 1.4em;
}

.entry-content blockquote {
	margin: 1.5em 0;
	padding: 0.75em 1.5em;
	border-left: 4px solid var(--ww-magenta);
	background: var(--ww-gray-soft);
	border-radius: 0 var(--ww-radius-sm) var(--ww-radius-sm) 0;
	color: var(--ww-text-soft);
}

/* Leistungs-Detailseite: zweispaltig ab Desktop */
.leistung-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

@media (min-width: 64rem) {
	.leistung-layout {
		grid-template-columns: minmax(0, 1fr) 20rem;
	}
}

.leistung-aside {
	display: grid;
	gap: 1.5rem;
	position: sticky;
	top: 6rem;
}

.aside-box {
	background: var(--ww-gray-soft);
	border: 1px solid var(--ww-gray);
	border-radius: var(--ww-radius);
	padding: 1.5rem;
}

.aside-box--cta {
	background: var(--ww-berry);
	border-color: var(--ww-berry);
	color: #fff;
}

.aside-box--cta h3 {
	color: #fff;
}

.aside-box--cta p {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.95rem;
}

.aside-box--cta a:not(.ww-btn) {
	color: #fff;
}

.aside-box h3 {
	font-size: 1.05rem;
}

.aside-box ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.aside-box ul li {
	padding: 0.3rem 0;
}

.aside-box ul a {
	text-decoration: none;
	color: var(--ww-text);
}

.aside-box ul a::before {
	content: '';
	display: inline-block;
	width: 0.45em;
	height: 0.45em;
	border-radius: 50%;
	background: var(--ww-magenta);
	margin-right: 0.55em;
	vertical-align: 0.08em;
}

.aside-box ul a:hover,
.aside-box ul a:focus,
.aside-box ul .is-current a {
	color: var(--ww-magenta-deep);
}

/* --------------------------------------------------------------------------
   13. Kontaktseite & Formular
   -------------------------------------------------------------------------- */

.kontakt-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

@media (min-width: 64rem) {
	.kontakt-layout {
		grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
	}
}

.kontakt-daten address {
	font-style: normal;
	line-height: 1.8;
}

.kontakt-daten .kontakt-block {
	margin-bottom: 1.75rem;
}

.kontakt-daten h2 {
	font-size: 1.2rem;
}

.kontakt-daten a {
	font-weight: 600;
}

.ww-form {
	display: grid;
	gap: 1.1rem;
	background: var(--ww-gray-soft);
	border: 1px solid var(--ww-gray);
	border-radius: var(--ww-radius);
	padding: clamp(1.5rem, 3vw, 2.25rem);
}

.ww-form .form-row {
	display: grid;
	gap: 0.35rem;
}

@media (min-width: 40rem) {
	.ww-form .form-row--split {
		grid-template-columns: 1fr 1fr;
		gap: 1.1rem;
	}

	.ww-form .form-row--split .form-row {
		margin: 0;
	}
}

.ww-form label {
	font-family: var(--ww-font-head);
	font-weight: 600;
	font-size: 0.95rem;
}

.ww-form .required {
	color: var(--ww-magenta-deep);
}

.ww-form input[type='text'],
.ww-form input[type='email'],
.ww-form input[type='tel'],
.ww-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	font: inherit;
	color: var(--ww-text);
	background: #fff;
	border: 1px solid #cfcecd;
	border-radius: var(--ww-radius-sm);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ww-form input:focus,
.ww-form textarea:focus {
	outline: none;
	border-color: var(--ww-magenta);
	box-shadow: 0 0 0 3px var(--ww-magenta-16);
}

.ww-form textarea {
	min-height: 9rem;
	resize: vertical;
}

.ww-form .form-hint {
	font-size: 0.85rem;
	color: var(--ww-text-soft);
	margin: 0;
}

/* Honeypot-Feld unsichtbar, aber nicht display:none (Bot-Falle) */
.ww-form .hp-field {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Datenschutz-Checkbox */
.ww-form .form-row--check {
	grid-template-columns: auto 1fr;
	align-items: start;
	gap: 0.6rem;
}

.ww-form .form-row--check input[type='checkbox'] {
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.2rem;
	accent-color: var(--ww-magenta-deep);
	cursor: pointer;
}

.ww-form .form-row--check label {
	font-family: var(--ww-font-body);
	font-weight: 400;
	font-size: 0.9rem;
	color: var(--ww-text-soft);
	cursor: pointer;
}

.form-notice {
	padding: 1rem 1.25rem;
	border-radius: var(--ww-radius-sm);
	font-weight: 500;
	margin-bottom: 1.5rem;
}

.form-notice--ok {
	background: #e7f6ec;
	border: 1px solid #86caa0;
	color: #1c5c34;
}

.form-notice--err {
	background: #fdecf3;
	border: 1px solid var(--ww-magenta-25);
	color: var(--ww-berry);
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */

.site-footer {
	background: var(--ww-berry);
	color: rgba(255, 255, 255, 0.85);
	margin-top: auto;
}

.site-footer__main {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

@media (min-width: 52rem) {
	.site-footer__main {
		grid-template-columns: 1.4fr 1fr 1fr;
		gap: var(--ww-gap);
	}
}

.site-footer .site-logo {
	color: #fff;
	margin-bottom: 0.75rem;
}

.site-footer .site-logo:hover,
.site-footer .site-logo:focus {
	color: rgba(255, 255, 255, 0.85);
}

.site-footer p {
	font-size: 0.95rem;
}

.site-footer h2 {
	color: #fff;
	font-size: 1rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer ul li {
	padding: 0.25rem 0;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
	color: #fff;
	text-decoration: underline;
}

.site-footer address {
	font-style: normal;
	font-size: 0.95rem;
	line-height: 1.8;
	margin: 0 0 1.75rem;
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding-block: 1.25rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	align-items: center;
	justify-content: space-between;
	font-size: 0.9rem;
}

.site-footer__bottom ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   15. 404 & Sonstiges
   -------------------------------------------------------------------------- */

.error-404 {
	text-align: center;
	padding-block: var(--ww-section);
}

.error-404 .error-code {
	font-family: var(--ww-font-head);
	font-weight: 700;
	font-size: clamp(4rem, 12vw, 7rem);
	color: var(--ww-magenta);
	line-height: 1;
}

.error-404 .error-code span {
	display: inline-block;
	width: 0.85em;
	height: 0.85em;
	border: 0.09em solid var(--ww-magenta);
	border-radius: 50%;
	vertical-align: -0.06em;
	margin-inline: 0.04em;
}

/* --------------------------------------------------------------------------
   16. AJAX-Seitenwechsel: Fortschrittsbalken + Einblendung
   -------------------------------------------------------------------------- */

.ajax-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 300;
	background: linear-gradient(90deg, var(--ww-magenta), var(--ww-berry));
	transform: scaleX(0);
	transform-origin: 0 50%;
	opacity: 0;
	pointer-events: none;
}

@keyframes ww-page-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}

.ww-page-enter {
	animation: ww-page-in 0.35s ease both;
}

/* --------------------------------------------------------------------------
   17. Barrierefreiheit: reduzierte Bewegung
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.hero-art .art-lines,
	.hero-art .art-dots,
	.hero-art .art-dots circle,
	.hero-art .line--dashed {
		animation: none !important;
	}
}
