/*
 * Druckwerk Utility- und Komponenten-CSS.
 * Alle Werte stammen 1:1 aus referenz/design-prototyp-v2.html.
 * Akzentfarbe und Glass-Blur kommen als CSS-Variablen aus theme.json:
 *   --wp--preset--color--accent, --wp--custom--glass-blur
 */

:root {
	--acc: var(--wp--preset--color--accent, #0f9d8f);
	--gb: var(--wp--custom--glass-blur, 8px);
}

html, body {
	margin: 0;
	padding: 0;
	background: var(--wp--preset--color--canvas, #eef1f5);
	color: var(--wp--preset--color--ink, #15181d);
	overflow-x: clip;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--acc);
	color: #fff;
}

a:hover { opacity: .7; }

button { cursor: pointer; font-family: inherit; color: var(--wp--preset--color--ink, #15181d); }
input, select, textarea { font-family: inherit; color: var(--wp--preset--color--ink, #15181d); }

/* Sichtbarer Fokus: dashed Outline in Ink (A11y-Vorgabe) */
:focus-visible {
	outline: 1.5px dashed var(--wp--preset--color--ink, #15181d);
	outline-offset: 3px;
}

/* ---------- Glass-Card ---------- */
.dw-glass {
	background: linear-gradient(120deg, rgba(255,255,255,.62), rgba(255,255,255,.26));
	backdrop-filter: blur(var(--gb)) saturate(1.8);
	-webkit-backdrop-filter: blur(var(--gb)) saturate(1.8);
	border: 1px solid rgba(255,255,255,.6);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(255,255,255,.2), 0 28px 60px -30px rgba(15,25,40,.4);
	border-radius: 20px;
	padding: 24px;
}

.dw-glass--panel { border-radius: 24px; }

/* Fallback für Geräte ohne backdrop-filter: deckende Karten */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.dw-glass { background: rgba(255,255,255,.75); }
}

/* ---------- Pill-Buttons ---------- */
.dw-btn,
.wp-block-button.dw-btn .wp-block-button__link {
	background: var(--wp--preset--color--ink, #15181d);
	color: var(--wp--preset--color--paper, #f5f7f9);
	border: none;
	border-radius: 999px;
	height: 50px;
	padding: 0 26px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .13em;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
	text-decoration: none;
}

.dw-btn--nav,
.wp-block-button.dw-btn--nav .wp-block-button__link { height: 40px; padding: 0 20px; font-size: 11px; gap: 8px; }

.dw-btn--big,
.wp-block-button.dw-btn--big .wp-block-button__link { height: 56px; padding: 0 32px; font-size: 12.5px; }

.dw-btn .dw-arrow,
.dw-arrow { font-weight: 400; }

.dw-btn-ghost,
.wp-block-button.dw-btn-ghost .wp-block-button__link {
	background: linear-gradient(120deg, rgba(255,255,255,.6), rgba(255,255,255,.25));
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,.7);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
	border-radius: 999px;
	height: 50px;
	padding: 0 24px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .13em;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	color: var(--wp--preset--color--ink, #15181d);
	text-decoration: none;
}

.wp-block-button.dw-btn .wp-block-button__link:hover,
.wp-block-button.dw-btn-ghost .wp-block-button__link:hover { opacity: .85; }

/* Die Pill-Optik trägt allein der innere Link — der Button-Wrapper bleibt neutral,
   sonst entstehen Doppel-Pillen und Überläufe bei voller Breite (mobil). */
.wp-block-button.dw-btn,
.wp-block-button.dw-btn-ghost {
	background: none;
	border: none;
	box-shadow: none;
	padding: 0;
	height: auto;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	display: inline-flex;
}

/* ---------- Eyebrow-Label ---------- */
.dw-eyebrow {
	border-top: 1px dashed var(--wp--custom--dash-strong, rgba(21,24,29,.3));
	padding-top: 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .17em;
	text-transform: uppercase;
	color: var(--acc);
	margin-bottom: 14px;
}

.dw-eyebrow--plain { border-top: none; padding-top: 0; }

/* ---------- Dashed Divider (einziges Trennmittel) ---------- */
.dw-divider {
	border: none;
	border-top: 1px dashed var(--wp--custom--dash, rgba(21,24,29,.25));
	margin: 16px 0;
}

/* ---------- Farbdots ---------- */
.dw-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: inline-block;
	flex: none;
}

.dw-dot--lg { width: 18px; height: 18px; }

.dw-dot--light { box-shadow: inset 0 0 0 1px rgba(21,24,29,.15); }

.dw-dot--selected { box-shadow: 0 0 0 3px #eef1f5, 0 0 0 5px #15181d; }

.dw-dotrow { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Micro-Text / Trustzeilen ---------- */
.dw-micro {
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: .17em;
	text-transform: uppercase;
	color: var(--wp--custom--ink-soft-50, rgba(21,24,29,.5));
}

.dw-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.dw-tabular { font-variant-numeric: tabular-nums; }

/* ---------- Sektionen ---------- */
.dw-section {
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(56px, 9vh, 110px) clamp(18px, 5vw, 64px);
	position: relative;
	z-index: 2;
}

.dw-section--slim { padding-block: clamp(30px, 5vh, 56px); }

.dw-section--narrow { max-width: 900px; }

/* Sticky-Vollbild-Sektionen (Hero, Multicolor, Abschluss) */
.dw-stage { position: relative; z-index: 2; }
.dw-stage--100 { height: 100svh; }
.dw-stage--110 { height: 110svh; }
.dw-stage--130 { height: 130svh; }

.dw-stage__pin {
	position: sticky;
	top: 0;
	height: 100svh;
	overflow: clip;
}

.dw-stage__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-content: space-evenly;
	align-items: center;
	padding: clamp(86px, 12vh, 130px) clamp(18px, 5vw, 64px) clamp(56px, 8vh, 76px);
	pointer-events: none;
}

.dw-stage__overlay a,
.dw-stage__overlay button,
.dw-stage__overlay .wp-block-button__link { pointer-events: auto; }

/* ---------- Aurora-Hintergrund (Theme-Option, Standard AUS) ---------- */
.dw-aurora {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: clip;
}

.dw-aurora span { position: absolute; border-radius: 50%; filter: blur(30px); }
.dw-aurora span:nth-child(1) { top: -22%; left: -12%; width: 58vmax; height: 58vmax; background: radial-gradient(closest-side, rgba(220,80,0,.22), transparent 70%); animation: dw-blob-a 26s ease-in-out infinite; }
.dw-aurora span:nth-child(2) { top: 12%; right: -18%; width: 52vmax; height: 52vmax; background: radial-gradient(closest-side, rgba(47,111,228,.2), transparent 70%); animation: dw-blob-b 32s ease-in-out infinite; }
.dw-aurora span:nth-child(3) { bottom: -28%; left: 16%; width: 60vmax; height: 60vmax; background: radial-gradient(closest-side, rgba(25,184,166,.18), transparent 70%); animation: dw-blob-c 38s ease-in-out infinite; }
.dw-aurora span:nth-child(4) { top: 44%; left: -16%; width: 46vmax; height: 46vmax; background: radial-gradient(closest-side, rgba(197,63,201,.14), transparent 70%); animation: dw-blob-d 44s ease-in-out infinite; }

@keyframes dw-blob-a { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(5vw,-4vh) scale(1.1); } }
@keyframes dw-blob-b { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-5vw,5vh) scale(1.07); } }
@keyframes dw-blob-c { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(4vw,6vh); } }
@keyframes dw-blob-d { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(-4vw,-5vh); } }

/* ---------- Scroll-Nudge ---------- */
@keyframes dw-nudge { 0%, 100% { transform: translateY(0); opacity: .8; } 50% { transform: translateY(7px); opacity: .3; } }

/* ---------- Formularelemente (Kalkulator) ---------- */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

input[type="range"] { -webkit-appearance: none; appearance: none; background: transparent; height: 32px; margin: 0; padding: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: rgba(21,24,29,.22); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #15181d; border: 5px solid #fff; box-shadow: 0 2px 10px rgba(15,20,30,.3); margin-top: -10px; }
input[type="range"]::-moz-range-track { height: 2px; background: rgba(21,24,29,.22); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #15181d; border: 5px solid #fff; box-shadow: 0 2px 10px rgba(15,20,30,.3); }

/* ---------- FAQ-Accordion (core/details in .dw-faq) ---------- */
.dw-faq { border-radius: 22px; padding: 6px clamp(16px, 2.5vw, 28px); }

.dw-faq details { border-bottom: 1px dashed var(--wp--custom--dash, rgba(21,24,29,.25)); }
.dw-faq details:last-child { border-bottom: none; }

.dw-faq summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: .03em;
}

.dw-faq summary::-webkit-details-marker { display: none; }

.dw-faq summary::after {
	content: "+";
	font-size: 16px;
	font-weight: 400;
	flex: none;
	transform: rotate(0deg);
	transition: transform .2s ease;
}

.dw-faq details[open] summary::after { transform: rotate(45deg); }

.dw-faq details > :not(summary) {
	margin: 0;
	padding: 0 0 18px;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(21,24,29,.78);
	max-width: 70ch;
}

.dw-faq details p a,
.dw-body a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Dashed Platzhalter-Slot (Bewertungen) ---------- */
.dw-slot {
	border: 1.5px dashed var(--wp--custom--dash, rgba(21,24,29,.25));
	border-radius: 16px;
	padding: 18px 20px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(21,24,29,.45);
}

/* ---------- Warum-wir-Einträge ---------- */
/* ---------- Druckwerk Icons (Inline-SVG aus inc/icons.php, currentColor) ---------- */
.dw-icon { display: inline-flex; flex: none; color: #15181d; vertical-align: middle; }
.dw-icon svg { width: 100%; height: 100%; display: block; }
.dw-icon--accent { color: var(--wp--preset--color--accent, var(--acc, #0f9d8f)); }
.dw-icon--ink { color: #15181d; }
.dw-icon--soft { color: rgba(21,24,29,.55); }

/* Warum-wir als Glass-Panel: Einträge mit Icon-Chip, lesbar über dem Scroll-Objekt */
.dw-why-panel { padding: clamp(22px, 3vw, 40px); }
.dw-why-item .dw-icon {
	box-sizing: border-box;
	padding: 10px;
	border-radius: 14px;
	background: rgba(255,255,255,.65);
	box-shadow: inset 0 0 0 1px rgba(21,24,29,.1), inset 0 1px 0 rgba(255,255,255,.9);
	margin-bottom: 12px;
}

.dw-why-item { border-top: 1px dashed var(--wp--custom--dash, rgba(21,24,29,.25)); padding-top: 14px; }
.dw-why-item .dw-why-title { font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 8px; }
.dw-why-item p { margin: 0; font-size: 14.5px; line-height: 1.55; color: rgba(21,24,29,.78); }

/* ---------- Bild "Über uns" ---------- */
.dw-portrait img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; width: 100%; height: auto; }

/* ---------- Reduced Motion: sämtliche Animationen aus ---------- */
@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; }
	html { scroll-behavior: auto !important; }
}

/* ---------- Header: fixe Glass-Pille + Mega-Menü ---------- */

/* Eingeloggt: Header und Mobile-Overlay unter der WP-Admin-Leiste beginnen */
body.admin-bar .dw-nav,
body.admin-bar .dw-mobile { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .dw-nav,
	body.admin-bar .dw-mobile { top: 46px; }
}

.dw-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 14px clamp(12px, 3vw, 32px) 0;
	pointer-events: none;
}

.dw-nav__pill {
	pointer-events: auto;
	position: relative;
	z-index: 2; /* über dem Mobile-Overlay, damit der Burger (✕) bedienbar bleibt */
	width: 100%;
	max-width: 1240px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 9px 10px 9px 20px;
	border-radius: 999px;
	background: linear-gradient(120deg, rgba(255,255,255,.68), rgba(255,255,255,.3));
	box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 18px 44px -24px rgba(15,25,40,.4);
	border: 1px solid rgba(255,255,255,.65);
	transition: background .25s ease;
}

/* Ab ~40px Scroll etwas höhere Deckkraft (JS setzt .is-scrolled) */
.dw-nav.is-scrolled .dw-nav__pill {
	background: linear-gradient(120deg, rgba(255,255,255,.86), rgba(255,255,255,.55));
}

.dw-nav__brand {
	font-size: clamp(11px, 1.5vw, 13px);
	font-weight: 700;
	letter-spacing: .12em;
	white-space: nowrap;
	padding: 6px 0;
}

.dw-nav__links { display: flex; align-items: center; gap: 26px; }

.dw-nav__trigger {
	background: none;
	border: none;
	padding: 6px 1px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .15em;
	text-transform: uppercase;
	border-bottom: 1px dashed transparent;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--wp--preset--color--ink, #15181d);
	text-decoration: none;
}

.dw-nav__trigger[aria-expanded="true"],
.dw-nav__trigger:hover { border-bottom-color: rgba(21,24,29,.6); opacity: 1; }

.dw-nav__caret { font-size: 8px; opacity: .55; }

.dw-nav__burger { display: none; position: relative; background: none; border: none; padding: 0; width: 40px; height: 40px; align-items: center; justify-content: center; flex: none; }
.dw-nav__burger span { display: block; position: absolute; width: 20px; height: 2px; background: #15181d; border-radius: 2px; transition: transform .22s ease, opacity .18s ease; }
.dw-nav__burger span:nth-child(1) { transform: translateY(-6px); }
.dw-nav__burger span:nth-child(3) { transform: translateY(6px); }
.dw-nav__burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.dw-nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.dw-nav__burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* Rechte Gruppe der Pille: Kalkulator-CTA · Warenkorb · Burger */
.dw-nav__right { display: flex; align-items: center; gap: 10px; }

/* Warenkorb-Symbol mit Zähler-Badge */
.dw-nav__cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	color: var(--wp--preset--color--ink, #15181d);
	background: rgba(255,255,255,.5);
	box-shadow: inset 0 0 0 1px rgba(21,24,29,.14);
	transition: background .15s ease;
}

.dw-nav__cart:hover { background: rgba(255,255,255,.9); }

.dw-nav__cartbadge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent, #0f9d8f);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 2px #eef1f5;
}

.dw-nav__cartbadge[hidden] { display: none; }

.dw-nav__cartbadge--inline { position: static; margin-left: 8px; box-shadow: none; }

/* Mini-Warenkorb: Glass-Panel rechtsbündig unter der Pille (nur Desktop) */
.dw-minicart {
	pointer-events: none;
	width: 100%;
	max-width: 1240px;
	margin-top: 10px;
	display: flex;
	justify-content: flex-end;
}

.dw-minicart[hidden] { display: none; }

.dw-minicart__panel {
	pointer-events: auto;
	width: min(400px, 100%);
	padding: 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dw-minicart__title {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .17em;
	color: var(--wp--preset--color--accent, #0f9d8f);
	border-top: 1px dashed rgba(21,24,29,.3);
	padding-top: 12px;
}

.dw-minicart__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px dashed rgba(21,24,29,.2);
}

.dw-minicart__item:first-child { border-top: none; padding-top: 0; }

.dw-minicart__item img,
.dw-minicart__noimg {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #fff;
	object-fit: cover;
	box-shadow: inset 0 0 0 1px rgba(21,24,29,.08);
	flex: 0 0 auto;
}

.dw-minicart__itembody { flex: 1 1 auto; min-width: 0; }

.dw-minicart__name {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.dw-minicart__meta { font-size: 11px; color: rgba(21,24,29,.55); }

.dw-minicart__price { font-size: 12.5px; font-weight: 600; white-space: nowrap; }

.dw-minicart__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	border-top: 1px dashed rgba(21,24,29,.3);
	padding-top: 12px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .14em;
}

.dw-minicart__total .dw-tabular { font-size: 16px; letter-spacing: 0; }

.dw-minicart__actions { display: flex; gap: 10px; }

.dw-minicart__actions .dw-minicart__btn {
	flex: 1 1 0;
	justify-content: center;
	min-height: 44px;
	font-size: 10.5px;
	padding: 0 12px;
	white-space: nowrap;
}

/* Mega-Panel */
.dw-mega {
	pointer-events: auto;
	width: 100%;
	max-width: 1240px;
	margin-top: 10px;
	padding: clamp(20px, 2.5vw, 32px);
}

.dw-mega[hidden] { display: none; }

.dw-mega__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr) minmax(220px, 300px);
	gap: clamp(18px, 2.5vw, 32px);
}

.dw-mega__pane + .dw-mega__pane,
.dw-mega__cta { border-left: 1px dashed rgba(21,24,29,.25); padding-left: clamp(18px, 2.5vw, 32px); }

.dw-mega__coltitle {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .17em;
	color: var(--acc);
	border-bottom: 1px dashed rgba(21,24,29,.25);
	padding-bottom: 8px;
	margin-bottom: 12px;
	text-transform: uppercase;
}

.dw-mega__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }

.dw-mega__list a {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 9px 0;
	border-bottom: 1px dashed rgba(21,24,29,.12);
}

.dw-mega__list li:last-child a { border-bottom: none; }

.dw-mega__item {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.dw-mega__sub { font-size: 9.5px; font-weight: 600; letter-spacing: .14em; color: rgba(21,24,29,.5); text-transform: uppercase; }

.dw-nav__dots { display: inline-flex; gap: 4px; }

.dw-mega__ctacard { display: flex; flex-direction: column; gap: 10px; }
.dw-mega__ctacard p { margin: 0; font-size: 12.5px; line-height: 1.5; color: rgba(21,24,29,.7); }
.dw-mega__ctacard .dw-btn { height: 46px; font-size: 11px; }

/* Mobile-Overlay (< 880px): Fullscreen-Glass unter der Pille, Pille bleibt bedienbar */
.dw-mobile {
	pointer-events: auto;
	position: fixed;
	inset: 0;
	z-index: 1; /* unter .dw-nav__pill (z-index 2) */
	border-radius: 0;
	border: none;
	display: flex;
	flex-direction: column;
	padding: 0;
	background: linear-gradient(150deg, rgba(255,255,255,.92), rgba(238,241,245,.82));
	backdrop-filter: blur(16px) saturate(1.6);
	-webkit-backdrop-filter: blur(16px) saturate(1.6);
	box-shadow: none;
}

.dw-mobile[hidden] { display: none; }

.dw-mobile__scroll {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 96px clamp(18px, 6vw, 32px) 18px;
}

/* Zentrierte Inhalts-Spalte */
.dw-mobile__groups {
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
}

.dw-mobile__group summary {
	list-style: none;
	cursor: pointer;
	padding: 17px 2px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .15em;
	text-transform: uppercase;
	border-bottom: 1px dashed rgba(21,24,29,.25);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.dw-mobile__group summary::-webkit-details-marker { display: none; }
.dw-mobile__group summary::after { content: "+"; font-size: 16px; font-weight: 400; flex: none; transition: transform .2s ease; }
.dw-mobile__group[open] summary::after { transform: rotate(45deg); }

/* Kompletter Panel-Inhalt (Material mit Farbdots, Lösungen, Leistungen) im Akkordeon */
.dw-mobile__mega { padding: 6px 2px 10px; border-bottom: 1px dashed rgba(21,24,29,.25); }

.dw-mobile__mega .dw-mega__col { padding: 12px 0 6px; }
.dw-mobile__mega .dw-mega__coltitle { border-bottom: none; padding-bottom: 0; margin-bottom: 4px; }
.dw-mobile__mega .dw-mega__list a { padding: 12px 0; }
.dw-mobile__mega .dw-mega__item { font-size: 13px; }

.dw-mobile__link {
	padding: 17px 2px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .15em;
	text-transform: uppercase;
	border-bottom: 1px dashed rgba(21,24,29,.25);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.dw-mobile__link::after { content: "→"; font-weight: 400; opacity: .45; }

/* CTA-Bereich fixiert unten (Warenkorb-Ghost + Kalkulator) */
.dw-mobile__cta {
	flex: none;
	padding: 14px clamp(18px, 6vw, 32px) calc(16px + env(safe-area-inset-bottom, 0px));
	border-top: 1px dashed rgba(21,24,29,.25);
	background: linear-gradient(to top, rgba(255,255,255,.9), rgba(255,255,255,.55));
}

.dw-mobile__cta .dw-btn,
.dw-mobile__cta .dw-mobile__cart { width: 100%; max-width: 440px; margin-inline: auto; justify-content: center; box-sizing: border-box; display: flex; }

@media (max-width: 879px) {
	.dw-nav__links, .dw-nav__cta { display: none; }
	.dw-nav__burger { display: flex; }
	.dw-mega { display: none !important; }
	.dw-minicart { display: none !important; } /* mobil führt das Symbol direkt zur Warenkorb-Seite */
	.dw-nav__right { gap: 4px; }
	.dw-nav__cart { width: 38px; height: 38px; }
}

/* WARENKORB-Button im Mobil-Menü (sichtbar, sobald etwas drinliegt) */
.dw-mobile__cart {
	width: 100%;
	justify-content: center;
	min-height: 50px;
	margin-bottom: 10px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .13em;
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
}

.dw-mobile__cart[hidden] { display: none; }

@media (min-width: 880px) {
	.dw-nav__burger, .dw-mobile { display: none !important; }
}

/* ---------- Lesemodus (Ratgeber-Artikel) ---------- */
.dw-article { font-size: clamp(17px, 1.3vw, 19px); }
.dw-article p { font-size: inherit; line-height: 1.7; max-width: 70ch; }
.dw-article h1 { font-size: clamp(30px, 4vw, 52px); }
.dw-article .dw-micro { margin-top: 8px; }

/* Lesemodus-Typografie im Artikelinhalt (CI: Uppercase-Zwischentitel,
   dashed Zitate, gerundete Bilder, Akzent-Links) */
.dw-article h1 {
	text-transform: uppercase;
	line-height: 1;
	letter-spacing: .01em;
}

.dw-article h2 {
	margin: clamp(28px, 4.5vh, 44px) 0 12px;
	font-size: clamp(20px, 2vw, 26px);
	line-height: 1.1;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .02em;
}

.dw-article h3 {
	margin: 26px 0 10px;
	font-size: clamp(16px, 1.5vw, 19px);
	line-height: 1.2;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.dw-article ul,
.dw-article ol {
	margin: 0 0 18px;
	padding-left: 22px;
	font-size: clamp(17px, 1.3vw, 19px);
	line-height: 1.7;
	color: rgba(21,24,29,.85);
	max-width: 70ch;
}

.dw-article li { margin: 4px 0; }

.dw-article .wp-block-post-content a {
	color: var(--acc, #0f9d8f);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dw-article .wp-block-post-content img {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
}

.dw-article blockquote {
	margin: 26px 0;
	padding: 4px 0 4px 20px;
	border-left: 2px dashed rgba(21,24,29,.35);
	color: rgba(21,24,29,.75);
	font-style: normal;
}

.dw-article blockquote p { margin: 0; }

/* Artikel-Kopf: Kategorie · Datum als Micro-Zeile über dem Titel */
.dw-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	border-top: 1px dashed rgba(21,24,29,.3);
	padding-top: 12px;
	margin-bottom: 14px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(21,24,29,.5);
}

.dw-article__meta a { color: var(--acc, #0f9d8f); text-decoration: none; }
.dw-article__meta a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Beitragsbild im Artikel: gerundete Bühne unter dem Titel */
.dw-article .dw-article__media { margin: clamp(20px, 3.5vh, 36px) 0 clamp(24px, 4vh, 44px); }

.dw-article .dw-article__media img {
	display: block;
	width: 100%;
	border-radius: 20px;
	box-shadow: inset 0 0 0 1px rgba(21,24,29,.08), 0 30px 60px -36px rgba(15,25,40,.5);
}

/* Artikel-Fuß: zurück zur Übersicht + Blättern zwischen Artikeln */
.dw-article__footer {
	margin-top: clamp(36px, 6vh, 64px);
	border-top: 1px dashed rgba(21,24,29,.3);
	padding-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dw-article__back { margin: 0; }

.dw-article__back a,
.dw-article__nav a {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink, #15181d);
}

.dw-article__back a:hover,
.dw-article__nav a:hover { color: var(--acc, #0f9d8f); }

.dw-article__nav {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 24px;
	width: 100%;
}

.dw-article__nav .post-navigation-link-next { margin-left: auto; text-align: right; }

/* ---------- Ratgeber-Übersicht: Karten mit Beitragsbild ---------- */
.dw-blog__head {
	border-top: 1px dashed rgba(21,24,29,.3);
	padding-top: 14px;
	margin-bottom: clamp(24px, 4vh, 44px);
}

.dw-blog__head .dw-eyebrow { margin-bottom: 10px; }

.dw-blog__title,
h1.dw-blog__title,
.dw-blog .wp-block-query-title {
	margin: 0;
	font-size: clamp(27px, 3.6vw, 48px);
	line-height: .98;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .01em;
}

ul.dw-blogGrid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: clamp(16px, 2.2vw, 26px);
}

.dw-blogGrid > li { display: flex; min-width: 0; }

.dw-postcard {
	--gb: 8px;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 14px 14px 20px;
	border-radius: 20px;
	transition: transform .25s ease;
}

.dw-postcard:hover { transform: translateY(-4px); }

.dw-postcard__media {
	margin: 0;
	overflow: hidden;
	border-radius: 14px;
}

.dw-postcard__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 14px;
	box-shadow: inset 0 0 0 1px rgba(21,24,29,.08);
	transition: transform .45s ease;
}

.dw-postcard:hover .dw-postcard__media img { transform: scale(1.03); }

.dw-postcard__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	padding: 2px 6px 0;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: rgba(21,24,29,.5);
}

.dw-postcard__meta a { color: var(--acc, #0f9d8f); text-decoration: none; }
.dw-postcard__meta a:hover { text-decoration: underline; text-underline-offset: 3px; }

.dw-postcard__title {
	margin: 0;
	padding: 0 6px;
	font-size: clamp(17px, 1.6vw, 21px);
	line-height: 1.12;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .02em;
}

.dw-postcard__title a { color: inherit; text-decoration: none; }
.dw-postcard__title a:hover { color: var(--acc, #0f9d8f); }

.dw-postcard__excerpt { margin: 0; padding: 0 6px; }

.dw-postcard__excerpt .wp-block-post-excerpt__excerpt {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: rgba(21,24,29,.7);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dw-postcard__excerpt .wp-block-post-excerpt__more-text { margin: 10px 0 0; }

.dw-postcard__excerpt .wp-block-post-excerpt__more-link {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .15em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--acc, #0f9d8f);
}

.dw-postcard__excerpt .wp-block-post-excerpt__more-link::after { content: " →"; font-weight: 400; }
.dw-postcard__excerpt .wp-block-post-excerpt__more-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Der neueste Beitrag als breite Bühne (Bild links, Text rechts) */
@media (min-width: 880px) {
	.dw-blogGrid > li:first-child { grid-column: 1 / -1; }

	.dw-blogGrid > li:first-child .dw-postcard {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		grid-template-rows: auto auto 1fr;
		grid-template-areas:
			"media meta"
			"media title"
			"media excerpt";
		gap: 6px clamp(18px, 2.6vw, 36px);
		align-items: start;
		padding: 16px clamp(16px, 2vw, 28px) 16px 16px;
	}

	.dw-blogGrid > li:first-child .dw-postcard__media {
		grid-area: media;
		aspect-ratio: auto !important;
		height: 100%;
		min-height: 300px;
	}

	.dw-blogGrid > li:first-child .dw-postcard__meta { grid-area: meta; padding-top: 12px; }

	.dw-blogGrid > li:first-child .dw-postcard__title {
		grid-area: title;
		font-size: clamp(22px, 2.4vw, 32px);
		line-height: 1.05;
		margin: 6px 0 8px;
	}

	.dw-blogGrid > li:first-child .dw-postcard__excerpt { grid-area: excerpt; }

	.dw-blogGrid > li:first-child .dw-postcard__excerpt .wp-block-post-excerpt__excerpt { -webkit-line-clamp: 4; font-size: 14.5px; }
}

/* Blätter-Navigation der Übersicht */
.dw-blog .wp-block-query-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: clamp(28px, 4.5vh, 48px);
	border-top: 1px dashed rgba(21,24,29,.25);
	padding-top: 20px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
}

.dw-blog .wp-block-query-pagination a { color: var(--ink, #15181d); text-decoration: none; }
.dw-blog .wp-block-query-pagination a:hover { color: var(--acc, #0f9d8f); }

.dw-blog .wp-block-query-pagination-numbers { display: flex; gap: 12px; }

.dw-blog .wp-block-query-pagination-numbers .current {
	color: var(--acc, #0f9d8f);
	border-bottom: 1px dashed currentColor;
}

/* Leerer Ratgeber: ruhiger dashed Platzhalter */
.dw-blog__empty {
	border: 1.5px dashed rgba(21,24,29,.3);
	border-radius: 18px;
	padding: clamp(28px, 5vh, 48px) 24px;
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(21,24,29,.55);
	background: rgba(255,255,255,.4);
}

@media (prefers-reduced-motion: reduce) {
	.dw-postcard,
	.dw-postcard__media img { transition: none !important; transform: none !important; }
}

/* Platz für die fixe Header-Pille auf Standard-Seiten ohne eigenen Hero */
.dw-page > .wp-block-post-content > *:first-child { scroll-margin-top: 96px; }

/* Anker-Sprünge (#so-gehts, #material, #faq …) landen nicht unter der fixen Pille */
main [id] { scroll-margin-top: 96px; }

/* ---------- Startseiten-Sektionen (Prototyp-Layout) ---------- */

/* Hero */
.dw-overlay-a { flex: 0 1 auto; max-width: min(52vw, 680px); min-width: min(100%, 320px); }
.dw-overlay-b { flex: 0 1 auto; max-width: min(35vw, 430px); min-width: min(100%, 300px); margin-left: auto; }

.dw-h1-kicker { display: block; font-size: clamp(15px, 1.8vw, 24px); letter-spacing: .1em; margin-bottom: 12px; color: rgba(21,24,29,.6); }
.dw-h1-line { display: block; font-size: clamp(40px, 6.6vw, 100px); line-height: .94; }

.dw-hero-intro { margin: 0 0 22px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: rgba(21,24,29,.8); text-wrap: pretty; }

.dw-hero-side {
	position: absolute;
	top: 50%;
	right: 18px;
	transform: translateY(-50%);
	writing-mode: vertical-rl;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .28em;
	color: rgba(21,24,29,.45);
	pointer-events: none;
}

.dw-nudge {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	pointer-events: none;
}

.dw-nudge__label { font-size: 9.5px; font-weight: 600; letter-spacing: .24em; color: rgba(21,24,29,.5); }
.dw-nudge__line { width: 1px; height: 26px; background: repeating-linear-gradient(to bottom, rgba(21,24,29,.5) 0 3px, transparent 3px 6px); animation: dw-nudge 2s ease-in-out infinite; }

@media (max-width: 879px) {
	.dw-hero-side { display: none; }
}

/* Sektionstexte */
.dw-intro { margin: 0 0 clamp(24px, 4vh, 40px); font-size: clamp(15.5px, 1.25vw, 18px); color: rgba(21,24,29,.75); }
.dw-intro--narrow { max-width: 62ch; }
.dw-h2-tight { max-width: 22ch; }

/* Karten-Grids */
.dw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; align-items: stretch; }
.dw-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }

/* WordPress gibt Kindern eines Flow-Layout-Blocks margin-block-start (Block-Abstand).
   Im Grid würde das Kachel 2+n nach unten schieben und ungleich hoch machen — neutralisieren. */
.dw-grid > *,
.dw-why-grid > * { margin-block-start: 0 !important; margin-block-end: 0 !important; min-width: 0; }

.dw-card { display: flex; flex-direction: column; gap: 12px; }
.dw-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; }
.dw-card__title { font-size: 17px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.dw-card__tag { font-size: 10px; font-weight: 600; letter-spacing: .14em; color: rgba(21,24,29,.5); text-transform: uppercase; }
.dw-card p { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(21,24,29,.8); flex: 1; }
/* Schritt-Karten wie im Prototyp: Label oben, Text direkt darunter (nicht strecken) */
.dw-card .dw-step-label { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--acc); margin-bottom: 10px; text-transform: uppercase; flex: 0 0 auto; }
.dw-card p.dw-step-text { font-size: 14.5px; flex: 0 0 auto; }
.dw-card__link { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-decoration: underline; text-underline-offset: 4px; text-transform: uppercase; }
.dw-card__kicker { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* Multicolor-Sektion */
.dw-multi-h2 { font-size: clamp(30px, 4.4vw, 60px); line-height: .94; }
.dw-multi-h2 span { display: block; }
.dw-multi-body { margin: 0 0 16px; font-size: clamp(15.5px, 1.25vw, 18.5px); line-height: 1.55; color: rgba(21,24,29,.8); text-wrap: pretty; }
.dw-overlay-a--multi { max-width: min(42vw, 520px); min-width: min(100%, 300px); }
.dw-overlay-b--multi { max-width: min(35vw, 420px); min-width: min(100%, 290px); }
.dw-link-caps { font-size: 11px; font-weight: 600; letter-spacing: .15em; text-decoration: underline; text-underline-offset: 4px; text-transform: uppercase; }

/* Kosten-Teaser-Band */
.dw-costband { padding: clamp(28px, 4vw, 48px); border-radius: 24px; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; background: linear-gradient(120deg, rgba(255,255,255,.6), rgba(255,255,255,.2)); border-color: rgba(255,255,255,.65); }
.dw-costband__text { flex: 1 1 380px; min-width: min(100%, 300px); }
.dw-costband__text h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 40px); }
.dw-costband__text p { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(21,24,29,.8); max-width: 64ch; text-wrap: pretty; }

/* Warum-wir-Grid */
.dw-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(18px, 2.5vw, 30px) clamp(22px, 3vw, 40px); }

/* Über-uns-Sektion */
.dw-about { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); align-items: center; }
.dw-about__media { flex: 0 1 340px; min-width: min(100%, 280px); }
.dw-about__text { flex: 1 1 380px; min-width: min(100%, 300px); }
.dw-about__text p { font-size: clamp(15px, 1.25vw, 17.5px); line-height: 1.6; color: rgba(21,24,29,.8); max-width: 58ch; text-wrap: pretty; }

/* Abschluss-Sektion */
.dw-end-display { font-size: clamp(34px, 5vw, 72px); line-height: .94; font-weight: 600; text-transform: uppercase; }
.dw-end-display span { display: block; }
.dw-overlay-a--end { max-width: min(46vw, 600px); }
.dw-overlay-b--end { max-width: min(34vw, 400px); min-width: min(100%, 290px); }
.dw-end-body { margin: 0 0 22px; font-size: clamp(15.5px, 1.25vw, 18.5px); line-height: 1.55; color: rgba(21,24,29,.8); }

/* Abbinder unter Material-Karten */
.dw-outro { margin: clamp(20px, 3vh, 30px) 0 0; font-size: 14.5px; color: rgba(21,24,29,.75); max-width: 70ch; }

/* ---------- Startseite mobil (< 880px): Sticky-Stages werden normaler Flow ---------- */
@media (max-width: 879px) {
	.dw-stage { height: auto; }
	.dw-stage__pin { position: static; height: auto; overflow: visible; }

	.dw-stage__overlay {
		position: static;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		padding: 0;
		pointer-events: auto;
	}

	.dw-overlay-a, .dw-overlay-b { max-width: 640px; min-width: 0; width: 100%; margin-inline: auto; box-sizing: border-box; }

	/* Hero: volle Höhe, das Scroll-Objekt bekommt eine eigene Zone zwischen Headline und Intro */
	.dw-mark-hero .dw-stage__pin { display: flex; flex-direction: column; min-height: 100svh; box-sizing: border-box; }
	.dw-mark-hero .dw-stage__overlay { flex: 1; padding: 100px 20px 96px; box-sizing: border-box; }
	.dw-mark-hero .dw-overlay-a { margin-bottom: clamp(180px, 36svh, 350px); }

	.dw-hero-intro { font-size: 15.5px; }

	/* Buttons gestapelt, volle Breite, Label zentriert */
	.dw-stage__overlay .wp-block-buttons { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
	.dw-stage__overlay .wp-block-button { width: 100%; }
	.dw-stage__overlay .wp-block-button .wp-block-button__link { width: 100%; justify-content: center; box-sizing: border-box; }

	/* Trust-Zeile zentriert, kollidiert nicht mehr mit dem Scroll-Nudge */
	.dw-stage__overlay .dw-micro { text-align: center; text-wrap: balance; line-height: 1.9; }

	/* Mehrfarb- und Abschluss-Sektion: Glass-Panel, das Objekt leuchtet dahinter */
	.dw-mark-multi .dw-stage__pin,
	.dw-mark-end .dw-stage__pin { display: flex; align-items: center; min-height: 94svh; padding: 92px 18px 56px; box-sizing: border-box; }

	.dw-mark-multi .dw-stage__overlay,
	.dw-mark-end .dw-stage__overlay {
		width: min(100%, 560px);
		margin: 0 auto;
		padding: 26px 22px 28px;
		border-radius: 24px;
		background: linear-gradient(120deg, rgba(255,255,255,.74), rgba(255,255,255,.42));
		backdrop-filter: blur(var(--gb)) saturate(1.8);
		-webkit-backdrop-filter: blur(var(--gb)) saturate(1.8);
		border: 1px solid rgba(255,255,255,.6);
		box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 28px 60px -30px rgba(15,25,40,.4);
	}
}

/* Kleine Screens: Bänder und Displays feinjustieren */
@media (max-width: 599px) {
	.dw-costband { padding: 26px 20px; }
	.dw-costband .wp-block-buttons, .dw-costband .wp-block-button { width: 100%; }
	.dw-costband .wp-block-button .wp-block-button__link { width: 100%; justify-content: center; box-sizing: border-box; }
	.dw-h1-line { font-size: clamp(34px, 10.4vw, 46px); }
	.dw-multi-h2 { font-size: clamp(26px, 8.4vw, 40px); }
	.dw-end-display { font-size: clamp(30px, 9.6vw, 44px); }
}

/* Fallback ohne backdrop-filter: deckende Panels */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.dw-mobile,
	.dw-mark-multi .dw-stage__overlay,
	.dw-mark-end .dw-stage__overlay { background: rgba(255,255,255,.92); }
}

/* ---------- Scroll-Morph-Objekt (WebGL-Canvas hinter den Sektionen) ---------- */
.dw-scrollobjekt {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
	opacity: 0;
	transition: opacity .9s ease;
}

.dw-scrollobjekt.is-on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
	.dw-scrollobjekt { transition: none; }
}

@media (max-width: 879px) {
	.dw-scrollobjekt--mobil-aus { display: none !important; }
}

/* Textlinks in Absätzen: unterstrichen wie im Prototyp */
.dw-section p a:not(.dw-card__link):not(.dw-link-caps),
.dw-stage__overlay p a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Shop-Vertrauensband (Warenkorb/Kasse): Zahlarten + Versand ---------- */
.dw-shop-logos {
	border-top: 1px dashed var(--wp--custom--dash, rgba(21,24,29,.25));
	margin-top: 28px;
	padding-top: 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 18px 48px;
	justify-content: space-between;
	align-items: flex-start;
}

.dw-shop-logos > * { margin-block-start: 0 !important; }

/* ---------- Zahlarten & Versand (Block druckwerk/zahlarten) ---------- */
/* Nur für Screenreader (Markenname neben dem rein visuellen Chip) */
.dw-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.dw-zahlarten { display: flex; flex-direction: column; gap: 10px; }
.dw-zahlarten > * { margin-block-start: 0 !important; }
.dw-zahlarten__label, p.dw-zahlarten__label { margin: 0; }

.dw-payrow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dw-payrow > li { margin: 0; padding: 0; position: relative; display: flex; }

/* Chip: weiße Karte mit feinem Ring, Marken typografisch in Instrument Sans */
.dw-pay {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 36px;
	padding: 0 12px;
	border-radius: 11px;
	background: rgba(255,255,255,.92);
	box-shadow: inset 0 0 0 1px rgba(21,24,29,.08), inset 0 1px 0 rgba(255,255,255,.95), 0 12px 20px -16px rgba(15,25,40,.5);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	color: #15181d;
	white-space: nowrap;
	user-select: none;
}

.dw-pay svg { display: block; flex: none; }
.dw-pay__word { display: inline-flex; align-items: baseline; }

.dw-payrow--s .dw-pay { height: 30px; padding: 0 10px; border-radius: 9px; font-size: 12px; gap: 6px; }
.dw-payrow--s .dw-pay svg { transform: scale(.85); }

.dw-pay--paypal .dw-pay__word { font-style: italic; letter-spacing: -.01em; }
.dw-pay--paypal b { font-weight: 700; }
.dw-pay--paypal b:first-child { color: #003087; }
.dw-pay--paypal b:last-child { color: #009cde; }
.dw-pay--klarna { background: #ffb3c7; color: #0b051d; font-size: 14.5px; letter-spacing: -.01em; box-shadow: inset 0 0 0 1px rgba(21,24,29,.06), 0 12px 20px -16px rgba(15,25,40,.5); }
.dw-pay--visa { color: #1a1f71; font-style: italic; font-size: 15.5px; letter-spacing: .01em; }
.dw-pay--amex { background: #006fcf; color: #fff; font-size: 12px; letter-spacing: .1em; box-shadow: 0 12px 20px -16px rgba(15,25,40,.5); }
.dw-pay--applepay { font-weight: 600; color: #111; gap: 5px; }
.dw-pay--googlepay { font-weight: 600; color: #5f6368; }
.dw-pay--sepa { color: #10298e; letter-spacing: .08em; }
.dw-pay--text { font-size: 10.5px; font-weight: 600; letter-spacing: .13em; }
.dw-pay--dhl { background: #ffcc00; color: #d40511; font-style: italic; letter-spacing: .04em; gap: 5px; padding: 0 9px; box-shadow: inset 0 0 0 1px rgba(21,24,29,.05), 0 12px 20px -16px rgba(15,25,40,.5); }
.dw-pay--dhl svg { width: 14px; height: 8px; }

/* ---------- Footer: Shop-Footer im Mega-Menü-Stil ---------- */
.dw-footer {
	position: relative;
	z-index: 2;
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(28px, 5vh, 56px) clamp(12px, 3vw, 32px) 30px;
	box-sizing: border-box;
}

.dw-footer > * { margin-block-start: 0 !important; }

.dw-footer__panel { padding: clamp(22px, 2.6vw, 36px); }

/* Vier Spalten wie das Mega-Panel: Marke breit, dann drei Menüspalten mit dashed Trennern */
.dw-footer__grid {
	display: grid;
	grid-template-columns: minmax(250px, 1.35fr) repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 2.5vw, 34px);
}

.dw-footer__grid > * { margin-block-start: 0 !important; min-width: 0; }
.dw-footer__grid > * + * { border-left: 1px dashed rgba(21,24,29,.25); padding-left: clamp(18px, 2.5vw, 32px); }

/* Menüspalten (Block druckwerk/footer-menu): Links in Ink wie im Mega-Panel (Hover = Opacity, keine
   Akzentfarbe); lange Wörter brechen notfalls um (ohne Trennstrich). Die aktuelle Seite trägt nur
   aria-current (Screenreader), ohne eigene Farbe. */
.dw-fmenu .dw-mega__item { overflow-wrap: anywhere; }

/* Zeilen-Variante (Rechtslinks im Footer-Fuß): Links nebeneinander, dezent, ohne Titel */
.dw-fmenu--zeile .dw-mega__list { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
.dw-fmenu--zeile .dw-mega__list a { border-bottom: none; padding: 2px 0; }
.dw-fmenu--zeile .dw-mega__item { font-size: 10px; letter-spacing: .14em; color: rgba(21,24,29,.62); }

/* Marken-Spalte */
.dw-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.dw-footer__brand > * { margin-block-start: 0 !important; }
.dw-footer__wordmark, p.dw-footer__wordmark { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #15181d; }
.dw-footer__wordmark a { color: inherit; text-decoration: none; }
.dw-footer__claim, p.dw-footer__claim { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(21,24,29,.72); max-width: 34ch; text-wrap: pretty; }
.dw-footer__brand .wp-block-buttons { margin: 2px 0; }
.dw-footer__brand .wp-block-button.dw-btn .wp-block-button__link { height: 46px; font-size: 11px; padding: 0 22px; }
.dw-footer__contact { display: flex; align-items: center; gap: 8px; }
.dw-footer__contact > * { margin-block-start: 0 !important; }
.dw-footer__contact p { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .03em; color: #15181d; overflow-wrap: anywhere; }
.dw-footer__contact a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(21,24,29,.35); }
.dw-footer__trustline, p.dw-footer__trustline { margin: 2px 0 0; line-height: 1.9; }

/* Vertrauensreihe: Zahlarten mittig */
.dw-footer__trust {
	border-top: 1px dashed rgba(21,24,29,.25);
	margin-top: clamp(20px, 2.5vw, 30px);
	padding-top: clamp(18px, 2.2vw, 24px);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
}

.dw-footer__trust > * { margin-block-start: 0 !important; }
.dw-footer__trust .dw-zahlarten { align-items: center; }
.dw-footer__trust .dw-payrow { justify-content: center; }

/* Fuß im Panel: Copyright links, Rechtslinks rechts in einer Zeile, darunter die Hinweise */
.dw-footer__bottom {
	border-top: 1px dashed rgba(21,24,29,.25);
	margin-top: clamp(18px, 2.2vw, 26px);
	padding-top: 16px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 10px 28px;
}

.dw-footer__bottom > * { margin-block-start: 0 !important; }
.dw-footer__copy, p.dw-footer__copy { margin: 0; font-size: 10px; font-weight: 600; letter-spacing: .14em; color: rgba(21,24,29,.6); white-space: nowrap; }
.dw-footer__notes { flex-basis: 100%; display: flex; flex-direction: column; gap: 3px; }
.dw-footer__notes > * { margin-block-start: 0 !important; }
.dw-footer__legal, p.dw-footer__legal { margin: 0; font-size: 9px; font-weight: 600; letter-spacing: .08em; color: rgba(21,24,29,.42); line-height: 1.6; }

/* Unter 1000px: Marke über volle Breite, darunter die drei Menüspalten */
@media (max-width: 999px) {
	.dw-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.dw-footer__grid > .dw-footer__brand {
		grid-column: 1 / -1;
		border-left: none;
		padding-left: 0;
		border-bottom: 1px dashed rgba(21,24,29,.25);
		padding-bottom: clamp(18px, 2.5vw, 26px);
	}
	.dw-footer__grid > .dw-footer__brand + * { border-left: none; padding-left: 0; }
}

/* Schmal: alles untereinander, Reihen durch dashed Linien getrennt */
@media (max-width: 599px) {
	.dw-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.dw-footer__grid > * + * { border-left: none; padding-left: 0; }
	.dw-footer__grid > :nth-child(n+3) { border-top: 1px dashed rgba(21,24,29,.25); padding-top: 16px; }
	.dw-footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
	.dw-footer__brand .wp-block-buttons, .dw-footer__brand .wp-block-button { width: 100%; }
	.dw-footer__brand .wp-block-button .wp-block-button__link { width: 100%; justify-content: center; box-sizing: border-box; }
}

/* ---------- Wartungsseite (Wartungsmodus / Coming Soon) ---------- */

/* Schlanke Pille ohne Menü: Wortmarke links, Statusanzeige rechts. Die Pille
   selbst ist die des normalen Headers (.dw-nav / .dw-nav__pill), hier kommt nur
   die Statusanzeige dazu. */
.dw-wartung__status {
	background: var(--wp--preset--color--ink, #15181d);
	color: var(--wp--preset--color--paper, #f5f7f9);
	border-radius: 999px;
	height: 40px;
	padding: 0 18px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .13em;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	white-space: nowrap;
	flex: none;
}

.dw-wartung__status::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--acc);
	animation: dw-puls 2.2s ease-in-out infinite;
}

@keyframes dw-puls { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }

/* Die Wartungsseite scrollt nicht — der Scroll-Nudge der Hero-Sektion entfällt. */
.dw-wartung .dw-nudge { display: none; }

/* Ab Desktop passt alles in einen Bildschirm: Die Hero-Sektion nimmt den
   Platz, der neben dem Footer übrig bleibt, damit die Rechtslinks ohne
   Scrollen sichtbar sind. WordPress rendert Block-Templates in einen
   Wrapper div.wp-site-blocks — der ist die Flex-Spalte, nicht body.
   Ohne :has()-Unterstützung bleibt es beim gewohnten 100svh-Hero mit
   kurzem Scroll — kein Schaden. */
@media (min-width: 880px) {
	.wp-site-blocks:has(> .dw-wartung) { display: flex; flex-direction: column; min-height: 100svh; }
	/* Flex-Kette bis zur Hero-Sektion: main → Post-Content-Block → Sektion. */
	.wp-site-blocks > .dw-wartung,
	.wp-site-blocks > .dw-wartung > .wp-block-post-content { flex: 1 0 auto; display: flex; flex-direction: column; }
	.dw-wartung .dw-stage--100 { height: auto; flex: 1 0 auto; min-height: 640px; }
	.dw-wartung .dw-stage__pin { position: static; height: auto; min-height: 640px; overflow: visible; }
	/* Vertikales Seitenlabel am Bildschirmrand statt an der (nun kürzeren)
	   Sektion — sonst bricht die Zeile in zwei Spalten um. */
	.dw-wartung .dw-hero-side { position: fixed; z-index: 2; }
}

/* Der Shop-Footer erscheint auf der Wartungsseite in der schlanken Variante
   (wie die Prototyp-Leiste): Wortmarke und Kontakt-Mail, darunter Copyright
   und Rechtslinks. Menüspalten, Kalkulator-Button, Zahlarten und die Preis-/
   Widerrufs-Hinweise (.dw-footer__hinweis) gehören zum Shop — hier wird noch
   nichts bestellt. Ohne :has()-Unterstützung bleibt der volle Footer stehen. */
.wp-site-blocks:has(> .dw-wartung) .dw-footer { padding-top: 0; padding-bottom: 22px; }
.wp-site-blocks:has(> .dw-wartung) .dw-footer__panel { padding: 14px clamp(18px, 2.6vw, 28px) 12px; }
.wp-site-blocks:has(> .dw-wartung) .dw-footer__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; }
.wp-site-blocks:has(> .dw-wartung) .dw-footer__grid > * + * { border-left: none; padding-left: 0; }
.wp-site-blocks:has(> .dw-wartung) .dw-footer__grid > .dw-footer__brand { border-bottom: none; padding-bottom: 0; }
.wp-site-blocks:has(> .dw-wartung) .dw-footer__claim,
.wp-site-blocks:has(> .dw-wartung) .dw-footer__brand .wp-block-buttons,
.wp-site-blocks:has(> .dw-wartung) .dw-footer__trustline,
.wp-site-blocks:has(> .dw-wartung) .dw-footer__trust,
.wp-site-blocks:has(> .dw-wartung) .dw-fmenu:not(.dw-fmenu--zeile),
.wp-site-blocks:has(> .dw-wartung) .dw-footer__hinweis { display: none; }
.wp-site-blocks:has(> .dw-wartung) .dw-footer__brand { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.wp-site-blocks:has(> .dw-wartung) .dw-footer__bottom { margin-top: 10px; padding-top: 10px; }

/* ---------- Countdown-Card ---------- */
.dw-countdown { padding: 22px 24px 18px; }

.dw-countdown__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding-bottom: 14px;
	border-bottom: 1px dashed var(--wp--custom--dash, rgba(21,24,29,.25));
}

.dw-countdown__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .17em;
	text-transform: uppercase;
	color: var(--acc);
}

.dw-countdown__date {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .13em;
	text-transform: uppercase;
	text-align: right;
	color: var(--wp--custom--ink-soft-50, rgba(21,24,29,.5));
}

.dw-countdown__tiles { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 0 14px; }

.dw-countdown__tile { text-align: center; padding: 0 6px; }
.dw-countdown__tile + .dw-countdown__tile { border-left: 1px dashed var(--wp--custom--dash, rgba(21,24,29,.25)); }

.dw-countdown__val {
	font-size: clamp(26px, 4.6vw, 54px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: .01em;
}

.dw-countdown__lab {
	margin-top: 8px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--wp--custom--ink-soft-50, rgba(21,24,29,.5));
}

.dw-countdown__fertig { text-align: center; padding: 18px 0 6px; }

.dw-countdown__abschluss {
	margin: 0 0 18px;
	font-size: clamp(26px, 3vw, 40px);
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
}

.dw-countdown__btnzeile { margin: 0; }

.dw-countdown__micro {
	margin: 0;
	padding-top: 14px;
	border-top: 1px dashed var(--wp--custom--dash, rgba(21,24,29,.25));
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--wp--custom--ink-soft-50, rgba(21,24,29,.5));
	text-align: center;
}

/* Ohne Kopfzeile bleibt oben kein doppelter Abstand stehen. */
.dw-countdown > .dw-countdown__tiles:first-child { padding-top: 0; }
