/*
Theme Name: Bodenrabatt
Theme URI: https://bodenrabatt.de/
Author: sanify24 GmbH
Description: Schlankes, eigenständiges Shop-Theme für bodenrabatt.de (WooCommerce, Germanized). Handy zuerst, Systemschriften, keine externen Quellen.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 8.1
License: Proprietär
Text Domain: bodenrabatt
*/

/* ==========================================================================
   1. Gestaltungsgrößen (Custom Properties)
   ========================================================================== */
:root {
	--farbe-text: #1c1917;
	--farbe-text-leise: #57534e;
	--farbe-weiss: #ffffff;
	--farbe-flaeche: #f7f4ef;
	--farbe-flaeche-2: #efe9e0;
	--farbe-linie: #e3ddd3;
	--farbe-akzent: #d9480f;
	--farbe-akzent-dunkel: #ad390b;
	--farbe-akzent-hell: #fff1ea;
	--farbe-dunkel: #1f1b17;
	--farbe-dunkel-text: #e9e4dc;
	--farbe-gruen: #15803d;
	--farbe-gruen-hell: #eaf6ee;
	--farbe-fokus: #1d4ed8;
	--farbe-holz-1: #c9a37a;
	--farbe-holz-2: #b88d61;
	--farbe-holz-3: #d8b994;

	--schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--schrift-zahlen: ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--radius: 12px;
	--radius-klein: 8px;
	--schatten: 0 1px 2px rgba(28, 25, 23, .06), 0 4px 16px rgba(28, 25, 23, .06);
	--schatten-gross: 0 2px 4px rgba(28, 25, 23, .06), 0 12px 32px rgba(28, 25, 23, .10);

	--breite: 1240px;
	--rand: 16px;
	--abstand: clamp(40px, 7vw, 88px);
	--kopf-hoehe: 64px;
}

@media (min-width: 768px) {
	:root { --rand: 24px; }
}

/* ==========================================================================
   2. Grundlagen
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
	margin: 0;
	font-family: var(--schrift);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--farbe-text);
	background: var(--farbe-weiss);
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--farbe-akzent-dunkel); text-underline-offset: .18em; }
a:hover { color: var(--farbe-text); }

h1, h2, h3, h4 {
	line-height: 1.15;
	letter-spacing: -.02em;
	margin: 0 0 .5em;
	font-weight: 800;
	text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.2rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

:focus-visible {
	outline: 3px solid var(--farbe-fokus);
	outline-offset: 2px;
	border-radius: 4px;
}

.screen-reader-text, .sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.sprunglink {
	position: absolute; left: 8px; top: -100px; z-index: 1000;
	background: var(--farbe-text); color: #fff; padding: 12px 16px; border-radius: var(--radius-klein);
}
.sprunglink:focus { top: 8px; color: #fff; }

.huelle {
	width: 100%;
	max-width: var(--breite);
	margin-inline: auto;
	padding-inline: var(--rand);
}

.inhalt { padding-block: 24px var(--abstand); }

/* Knöpfe */
.knopf,
.button,
button.button,
input[type="submit"],
.woocommerce .single_add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--farbe-text);
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.knopf:hover, .button:hover, button.button:hover, input[type="submit"]:hover { background: #000; color: #fff; }
.knopf:active, .button:active { transform: translateY(1px); }

.knopf--akzent,
.woocommerce .single_add_to_cart_button,
.woocommerce .checkout-button,
.woocommerce #place_order {
	background: var(--farbe-akzent);
	color: #fff;
}
.knopf--akzent:hover,
.woocommerce .single_add_to_cart_button:hover { background: var(--farbe-akzent-dunkel); color: #fff; }

.knopf--hell { background: #fff; color: var(--farbe-text); border-color: var(--farbe-linie); }
.knopf--hell:hover { background: var(--farbe-flaeche); color: var(--farbe-text); border-color: var(--farbe-text); }

.knopf--rahmen { background: transparent; color: var(--farbe-text); border-color: var(--farbe-text); }
.knopf--rahmen:hover { background: var(--farbe-text); color: #fff; }

/* Formulare allgemein */
input[type="text"], input[type="search"], input[type="email"], input[type="tel"],
input[type="number"], input[type="password"], textarea, select {
	font: inherit;
	font-size: 16px; /* verhindert Zoom auf iOS */
	color: var(--farbe-text);
	background: #fff;
	border: 1.5px solid #a8a29e;
	border-radius: var(--radius-klein);
	min-height: 48px;
	padding: 10px 12px;
	max-width: 100%;
}
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--farbe-fokus); }

/* ==========================================================================
   3. Kopf
   ========================================================================== */
.vertrauenszeile {
	background: var(--farbe-dunkel);
	color: var(--farbe-dunkel-text);
	font-size: .8125rem;
}
.vertrauenszeile ul {
	list-style: none; margin: 0 auto; padding-block: 7px;
	display: flex; gap: 8px 28px; justify-content: center; flex-wrap: wrap;
}
.vertrauenszeile li { display: flex; align-items: center; gap: 6px; }
.vertrauenszeile svg { width: 14px; height: 14px; flex: none; color: var(--farbe-holz-3); }
/* Auf dem Handy nur der erste Punkt, damit die Zeile schmal bleibt */
@media (max-width: 599px) {
	.vertrauenszeile li + li { display: none; }
}

.kopf {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid var(--farbe-linie);
	backdrop-filter: saturate(1.4) blur(8px);
}
.admin-bar .kopf { top: 0; }
@media (min-width: 783px) { .admin-bar .kopf { top: 32px; } }

.kopf__reihe {
	display: flex; align-items: center; gap: 8px;
	min-height: var(--kopf-hoehe);
}

.logo { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; color: var(--farbe-text); text-decoration: none; }
.logo img { width: 190px; height: auto; display: block; }
@media (min-width: 768px) { .logo img { width: 236px; } }

.kopf__suche { display: none; flex: 1 1 380px; max-width: 460px; margin-inline: 16px; }
@media (min-width: 900px) { .kopf__suche { display: block; } .kopf__suche-mobil { display: none; } }

.suche { position: relative; display: flex; width: 100%; }
.suche input[type="search"] {
	width: 100%; padding-right: 52px; border-radius: 999px;
	background: var(--farbe-flaeche); border-color: transparent;
}
.suche input[type="search"]:focus { background: #fff; border-color: var(--farbe-fokus); }
.suche button {
	position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
	width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent;
	display: grid; place-items: center; cursor: pointer; color: var(--farbe-text);
}
.suche button svg { width: 20px; height: 20px; }

.kopf__suche-mobil { padding-bottom: 10px; }

.symbolknopf {
	position: relative;
	display: inline-grid; place-items: center;
	width: 44px; height: 44px;
	border: 0; border-radius: 999px; background: transparent; color: var(--farbe-text);
	cursor: pointer; text-decoration: none;
}
.symbolknopf:hover { background: var(--farbe-flaeche); color: var(--farbe-text); }
.symbolknopf svg { width: 24px; height: 24px; }

.warenkorb-anzahl {
	position: absolute; top: 2px; right: 0;
	min-width: 20px; height: 20px; padding: 0 5px;
	border-radius: 999px; background: var(--farbe-akzent); color: #fff;
	font-size: 12px; font-weight: 800; line-height: 20px; text-align: center;
}
.warenkorb-anzahl[data-anzahl="0"] { display: none; }

.burger { display: inline-grid; }
@media (min-width: 900px) { .burger { display: none; } }

/* Anfrage-Knopf im Kopf: ab 560 px sichtbar, darunter steht er ganz oben im Burger-Menü */
.kopf__anfrage {
	display: none; align-items: center; gap: 6px; flex: none;
	min-height: 44px; padding: 0 16px; border-radius: 999px;
	background: var(--farbe-akzent); color: #fff; text-decoration: none;
	font-weight: 750; font-size: .9375rem; white-space: nowrap;
}
.kopf__anfrage svg { width: 20px; height: 20px; }
.kopf__anfrage:hover { background: var(--farbe-akzent-dunkel); color: #fff; }
@media (min-width: 560px) { .kopf__anfrage { display: inline-flex; } }
.hauptnav a.hauptnav__anfrage { width: 100%; margin: 8px 0; padding: 12px 22px; justify-content: center; color: #fff; }
.hauptnav a.hauptnav__anfrage:hover { color: #fff; }
.hauptnav__anfrage svg { width: 20px; height: 20px; }
@media (min-width: 560px) { .hauptnav a.hauptnav__anfrage { display: none; } }

/* Hauptnavigation */
.hauptnav { border-top: 1px solid var(--farbe-linie); }
.hauptnav ul { list-style: none; margin: 0; padding: 0; }
.hauptnav a {
	display: flex; align-items: center; min-height: 48px;
	padding: 0 4px; color: var(--farbe-text); text-decoration: none; font-weight: 650;
}
.hauptnav a:hover, .hauptnav .current-menu-item > a, .hauptnav .current-cat > a, .hauptnav a[aria-current] { color: var(--farbe-akzent-dunkel); }

@media (max-width: 899px) {
	.js .hauptnav { display: none; }
	.js .hauptnav.ist-offen { display: block; }
	.hauptnav li + li { border-top: 1px solid var(--farbe-linie); }
	.hauptnav { padding-bottom: 8px; }
}
@media (min-width: 900px) {
	.hauptnav ul { display: flex; gap: 4px 28px; flex-wrap: wrap; }
	.hauptnav a { min-height: 46px; position: relative; }
	.hauptnav a::after {
		content: ""; position: absolute; left: 4px; right: 4px; bottom: 0; height: 3px;
		background: var(--farbe-akzent); border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform .15s;
	}
	.hauptnav a:hover::after, .hauptnav .current-menu-item > a::after, .hauptnav .current-cat > a::after { transform: scaleX(1); }
}

/* ==========================================================================
   4. Startseite
   ========================================================================== */
/* Hero mit Bild.
   Handy (< 600 px): Text liegt unten auf dem Hochformat-Bild (dunkler Verlauf), Bild bis an den Rand.
   600–899 px: Querformat-Bild oben, Text darunter. Ab 900 px: Text links, Bild rechts. */
.hero {
	position: relative;
	background: var(--farbe-flaeche);
}
.hero__raster {
	display: grid; grid-template-columns: minmax(0, 1fr);
	padding-block: 0 28px;
}
.hero__bild { position: relative; margin: 0; overflow: hidden; background: var(--farbe-dunkel); }
.hero__bild picture, .hero__bild img { display: block; width: 100%; height: 100%; }
.hero__bild img { object-fit: cover; }
.hero__inhalt { position: relative; min-width: 0; }
.hero__eyebrow {
	display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px;
	background: var(--farbe-akzent-hell); color: var(--farbe-akzent-dunkel);
	font-size: .8125rem; font-weight: 750; letter-spacing: .02em;
}
.hero h1 { margin-bottom: 12px; }
.hero h1 em { font-style: normal; color: var(--farbe-akzent); }
.hero__text { font-size: 1.125rem; color: var(--farbe-text-leise); max-width: 34em; }
.hero__knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.hero__schnell { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.hero__schnell a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
	border-radius: 999px; background: #fff; border: 1px solid var(--farbe-linie);
	color: var(--farbe-text); text-decoration: none; font-weight: 650; font-size: .9375rem;
}
.hero__schnell a:hover { border-color: var(--farbe-text); }

/* Kennzeichnung KI-erzeugter oder KI-bearbeiteter Bilder (kleines Schild in einer Ecke) */
.bild-hinweis {
	position: absolute; z-index: 2; right: 10px; top: 10px;
	padding: 3px 9px; border-radius: 999px;
	background: rgba(20, 15, 10, .72); color: #fff;
	font-size: .6875rem; font-weight: 650; line-height: 1.4; letter-spacing: .01em;
	pointer-events: none;
}

@media (max-width: 599px) {
	.hero__raster { padding-block: 0 24px; }
	/* Bild und Text teilen sich eine Rasterzelle; Text unten auf dem Verlauf */
	.hero__bild, .hero__inhalt { grid-area: 1 / 1; }
	.hero__bild {
		margin-inline: calc(-1 * var(--rand));
		min-height: clamp(440px, calc(100svh - 170px), 600px);
	}
	.hero__bild img { position: absolute; inset: 0; object-position: 50% 0; }
	.hero__bild::after {
		content: ""; position: absolute; inset: 0; z-index: 1;
		background: linear-gradient(180deg, rgba(20,15,10,0) 0%, rgba(20,15,10,.05) 22%, rgba(20,15,10,.72) 46%, rgba(20,15,10,.9) 62%, rgba(20,15,10,.94) 100%);
	}
	.hero__inhalt { z-index: 2; align-self: end; padding-bottom: 24px; color: #fff; }
	.hero__inhalt h1 { color: #fff; font-size: 2rem; }
	.hero__inhalt h1 em { color: #ffb38a; }
	.hero__inhalt .hero__text { color: #f1ece5; font-size: 1.0625rem; margin-bottom: 0; }
	/* Platz sparen, damit vom Bild mehr zu sehen ist: ohne Dachzeile, Knöpfe nebeneinander */
	.hero__eyebrow { display: none; }
	.hero__knoepfe { gap: 8px; margin-top: 16px; }
	.hero__knoepfe .knopf { flex: 1 1 auto; padding-inline: 14px; font-size: .9375rem; }
	.hero__knoepfe .knopf svg { display: none; }
	.hero__inhalt :focus-visible { outline-color: #93c5fd; }
	.hero__schnell { margin-top: 20px; }
}
@media (min-width: 600px) {
	.hero__raster { gap: 24px; padding-block: 24px 36px; }
	.hero__bild { aspect-ratio: 1792 / 1075; border-radius: 20px; box-shadow: var(--schatten-gross); }
	.hero__bild .bild-hinweis { top: auto; bottom: 12px; }
	.hero__schnell { margin-top: 0; }
}
@media (min-width: 900px) {
	.hero__raster {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
		grid-template-rows: auto auto;
		column-gap: 52px; row-gap: 24px; align-items: center;
		padding-block: 56px 64px;
	}
	.hero__bild { grid-column: 2; grid-row: 1 / span 2; }
	.hero__inhalt { grid-column: 1; grid-row: 1; align-self: end; }
	.hero__schnell { grid-column: 1; grid-row: 2; align-self: start; }
}

/* Abschnitte */
.abschnitt { padding-block: var(--abstand); }
.abschnitt--flaeche { background: var(--farbe-flaeche); }
.abschnitt__kopf { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.abschnitt__kopf h2 { margin: 0; }
.abschnitt__kopf p { margin: 6px 0 0; color: var(--farbe-text-leise); }
.abschnitt__mehr { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }

/* Kategorie-Kacheln */
.kacheln {
	display: grid; gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none; margin: 0; padding: 0;
}
@media (min-width: 900px) { .kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.kachel a {
	position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
	background: var(--farbe-flaeche-2); color: #fff; text-decoration: none; isolation: isolate;
}
.kachel img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.kachel a:hover img { transform: scale(1.04); }
.kachel a::after {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(20,15,10,.78));
}
.kachel__ersatz { position: absolute; inset: 0; background: linear-gradient(160deg, var(--farbe-holz-3), var(--farbe-holz-2)); }
.kachel__text { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; }
/* Lange Namen (Massivholzdielen) brechen an den weichen Trennstellen (&shy;) um, statt abgeschnitten zu werden */
.kachel__name { display: block; font-size: 1.0625rem; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; hyphens: manual; overflow-wrap: break-word; }
@media (min-width: 400px) { .kachel__name { font-size: 1.125rem; } }
.kachel__zahl { display: flex; align-items: center; gap: 4px; font-size: .875rem; opacity: .95; }
@media (min-width: 900px) { .kachel__name { font-size: 1.35rem; } }

/* Schritte „So bestellst du“ */
.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: schritt; }
@media (min-width: 768px) { .schritte { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.schritt {
	position: relative; padding: 22px 20px 20px; border-radius: var(--radius);
	background: #fff; border: 1px solid var(--farbe-linie);
}
.schritt__nr {
	display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px;
	border-radius: 999px; background: var(--farbe-text); color: #fff; font-weight: 800;
}
.schritt h3 { margin-bottom: 6px; }
.schritt p { margin: 0; color: var(--farbe-text-leise); }

/* Boden und Verlegung aus einer Hand (Bild + Text) */
.aus-einer-hand {
	display: grid; gap: 0; overflow: hidden; border-radius: 20px;
	background: var(--farbe-dunkel); color: var(--farbe-dunkel-text);
}
.aus-einer-hand__bild { position: relative; margin: 0; aspect-ratio: 1264 / 848; background: #2b2520; }
.aus-einer-hand__bild img { width: 100%; height: 100%; object-fit: cover; }
.aus-einer-hand__text { padding: 26px 22px 28px; }
.aus-einer-hand h2 { color: #fff; }
.aus-einer-hand p { color: var(--farbe-dunkel-text); }
.aus-einer-hand :focus-visible { outline-color: #93c5fd; }
.aus-einer-hand .knopf--akzent:hover { background: #fff; color: var(--farbe-text); }
@media (min-width: 900px) {
	.aus-einer-hand { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
	.aus-einer-hand__bild { aspect-ratio: auto; height: 100%; min-height: 380px; }
	.aus-einer-hand__text { padding: 44px 48px; }
}
.haken-liste { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.haken-liste li { display: flex; align-items: flex-start; gap: 10px; }
.haken-liste svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--farbe-holz-3); }

/* Abschlussband vor dem Fuß */
.abschlussband { background: var(--farbe-akzent-hell); border-top: 1px solid #f6d5c4; padding-block: clamp(32px, 5vw, 56px); }
.abschlussband__reihe { display: grid; gap: 16px; align-items: center; }
.abschlussband h2 { margin-bottom: 6px; }
.abschlussband p { margin: 0; color: var(--farbe-text-leise); }
@media (min-width: 768px) { .abschlussband__reihe { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details {
	border-bottom: 1px solid var(--farbe-linie);
}
.faq summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	min-height: 56px; padding: 12px 0; cursor: pointer; list-style: none;
	font-weight: 700; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px;
	border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
	transform: rotate(45deg) translateY(-3px); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding: 0 0 18px; color: var(--farbe-text-leise); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ==========================================================================
   5. Produktkarten und Produktliste
   ========================================================================== */
.woocommerce ul.products, ul.products {
	display: grid; gap: 22px 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none; margin: 0 0 32px; padding: 0;
}
ul.products::before, ul.products::after { display: none !important; }
@media (min-width: 768px) { ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } }
@media (min-width: 1100px) { ul.products.columns-4, .woocommerce ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

ul.products li.product {
	position: relative; display: flex; flex-direction: column;
	width: auto !important; margin: 0 !important; float: none !important; padding: 0;
	min-width: 0;
}
ul.products li.product > a.woocommerce-LoopProduct-link {
	display: flex; flex-direction: column; flex: 1; color: var(--farbe-text); text-decoration: none;
}
ul.products li.product img {
	width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius);
	background: var(--farbe-flaeche); margin: 0 0 10px;
	transition: transform .3s, box-shadow .3s;
}
ul.products li.product a:hover img { box-shadow: var(--schatten-gross); }
.karte__marke {
	display: block; font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em;
	color: var(--farbe-text-leise); margin-bottom: 2px;
}
ul.products li.product .woocommerce-loop-product__title {
	font-size: .9375rem; font-weight: 650; line-height: 1.3; letter-spacing: 0; margin: 0 0 8px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 768px) { ul.products li.product .woocommerce-loop-product__title { font-size: 1rem; } }
ul.products li.product .onsale { display: none; }

/* Preisblock (Karte und Produktseite) */
.br-preis { margin: 0 0 6px; }
.br-preis__m2 {
	display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px;
	color: var(--farbe-akzent-dunkel); font-family: var(--schrift-zahlen);
	font-weight: 850; letter-spacing: -.02em; line-height: 1.1;
	font-size: 1.375rem;
}
.br-preis__m2 .woocommerce-Price-currencySymbol { font-size: .85em; }
.br-preis__einheit { font-size: .9375rem; font-weight: 700; letter-spacing: 0; }
.br-preis__paket { display: block; margin-top: 4px; font-size: .8125rem; color: var(--farbe-text-leise); line-height: 1.35; }
.br-preis__paket strong { color: var(--farbe-text); font-weight: 700; }
@media (min-width: 768px) { .br-preis__m2 { font-size: 1.5rem; } }

.br-lieferzeit {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
	font-size: .8125rem; font-weight: 650; color: var(--farbe-text-leise);
}
.br-lieferzeit svg { width: 16px; height: 16px; flex: none; }
.br-lieferzeit--sofort { color: var(--farbe-gruen); }

/* Germanized-Pflichtangaben in Karten klein und ruhig */
ul.products li.product .wc-gzd-additional-info,
ul.products li.product .price-unit,
ul.products li.product .tax-info,
ul.products li.product .shipping-costs-info { font-size: .75rem; color: var(--farbe-text-leise); margin: 2px 0 0; }
ul.products li.product .wc-gzd-additional-info a { color: inherit; }
/* Karte als umbrechende Zeile, damit „inkl. MwSt. zzgl. Versandkosten“ in einer Zeile steht */
ul.products li.product { flex-direction: row !important; flex-wrap: wrap; align-items: baseline; align-content: flex-start; }
ul.products li.product > a.woocommerce-LoopProduct-link { flex: 1 0 100%; }
ul.products li.product .tax-info { margin-right: .3em; }
ul.products li.product .karte__mehr { flex: 1 0 100%; justify-content: center; }
ul.products li.product .price:not(.br-preis *) { color: var(--farbe-text); font-weight: 750; }

.karte__mehr {
	margin-top: 10px; align-self: flex-start;
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
	border-radius: 999px; border: 1.5px solid var(--farbe-text); color: var(--farbe-text);
	font-size: .875rem; font-weight: 700; text-decoration: none;
}
.karte__mehr:hover { background: var(--farbe-text); color: #fff; }

/* Kategorie-Filter als Chips */
.kategorie-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 20px; padding: 2px 2px 8px; list-style: none; scrollbar-width: none; }
.kategorie-chips::-webkit-scrollbar { display: none; }
.kategorie-chips a {
	display: inline-flex; align-items: center; white-space: nowrap; min-height: 44px; padding: 0 16px;
	border-radius: 999px; border: 1.5px solid var(--farbe-linie); background: #fff;
	color: var(--farbe-text); text-decoration: none; font-weight: 650; font-size: .9375rem;
}
.kategorie-chips a:hover { border-color: var(--farbe-text); }
.kategorie-chips a[aria-current="page"] { background: var(--farbe-text); border-color: var(--farbe-text); color: #fff; }

.woocommerce-products-header { margin-bottom: 8px; }
.woocommerce-products-header__title { margin-bottom: 8px; }
.term-description { color: var(--farbe-text-leise); max-width: 60em; }

.liste-werkzeuge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.woocommerce-result-count { margin: 0; color: var(--farbe-text-leise); font-size: .875rem; }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select { min-height: 44px; font-size: 16px; }

.woocommerce-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; justify-content: center; }
.woocommerce-pagination a, .woocommerce-pagination span {
	display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px;
	border-radius: 999px; border: 1px solid var(--farbe-linie); color: var(--farbe-text); text-decoration: none; font-weight: 650;
}
.woocommerce-pagination .current { background: var(--farbe-text); color: #fff; border-color: var(--farbe-text); }

/* Brotkrumen */
.woocommerce-breadcrumb { font-size: .8125rem; color: var(--farbe-text-leise); margin: 0 0 16px; overflow-wrap: anywhere; }
.woocommerce-breadcrumb a { color: var(--farbe-text-leise); display: inline-block; padding-block: 6px; }

/* ==========================================================================
   6. Produktseite
   ========================================================================== */
.single-product div.product {
	display: grid; gap: 24px;
	grid-template-columns: minmax(0, 1fr);
	position: relative;
}
.single-product div.product > * { min-width: 0; }
@media (min-width: 900px) {
	.single-product div.product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
	.single-product div.product > .woocommerce-product-gallery { grid-column: 1; grid-row: 1; }
	.single-product div.product > .summary { grid-column: 2; grid-row: 1; }
	.single-product div.product > :not(.woocommerce-product-gallery):not(.summary) { grid-column: 1 / -1; }
}
.single-product div.product .onsale { display: none; }

/* Galerie (WooCommerce-Flexslider, Zoom, Lightbox) */
.woocommerce-product-gallery { position: relative; margin: 0; opacity: 1 !important; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery .flex-viewport { border-radius: var(--radius); overflow: hidden; background: var(--farbe-flaeche); }
.woocommerce-product-gallery__image a { display: block; }
.woocommerce-product-gallery__image img { width: 100%; height: auto; }
.woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:only-child img { border-radius: var(--radius); }
.woocommerce-product-gallery__trigger {
	position: absolute; top: 12px; right: 12px; z-index: 9;
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
	background: #fff; box-shadow: var(--schatten); text-indent: -9999px; overflow: hidden;
}
.woocommerce-product-gallery__trigger::before {
	content: ""; position: absolute; width: 14px; height: 14px; border: 2.5px solid var(--farbe-text); border-radius: 50%;
	top: 12px; left: 12px;
}
.woocommerce-product-gallery__trigger::after {
	content: ""; position: absolute; width: 2.5px; height: 8px; background: var(--farbe-text);
	transform: rotate(-45deg); top: 25px; left: 29px;
}
.woocommerce-product-gallery .flex-control-thumbs {
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
	list-style: none; margin: 10px 0 0; padding: 0;
}
.woocommerce-product-gallery .flex-control-thumbs img {
	border-radius: var(--radius-klein); cursor: pointer; opacity: .6; aspect-ratio: 1; object-fit: cover; transition: opacity .15s;
}
.woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active { outline: 2px solid var(--farbe-text); outline-offset: 1px; }
/* Vor dem Laden des Sliders nur das erste Bild zeigen */
.woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image:not(:first-child) { display: none; }
.no-js .woocommerce-product-gallery .woocommerce-product-gallery__image:not(:first-child) { display: block; }

/* Zusammenfassung */
.summary .product_title { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.2rem); margin-bottom: 12px; }
.summary .karte__marke { font-size: .8125rem; margin-bottom: 6px; }
.summary .br-preis { padding: 16px 0 6px; border-top: 1px solid var(--farbe-linie); margin-top: 4px; }
.summary .br-preis__m2 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem); }
.summary .br-preis__einheit { font-size: 1.125rem; }
.summary .br-preis__paket { font-size: 1rem; margin-top: 6px; }
.summary .br-lieferzeit { font-size: .9375rem; margin: 6px 0 4px; }
.summary .legal-price-info, .summary .wc-gzd-additional-info { font-size: .8125rem; color: var(--farbe-text-leise); margin: 2px 0; }
.summary .legal-price-info a, .summary .wc-gzd-additional-info a { color: inherit; }
.summary .woocommerce-product-details__short-description { margin: 16px 0; color: var(--farbe-text-leise); }
.summary > .price { font-size: 1.75rem; font-weight: 850; color: var(--farbe-akzent-dunkel); }

/* Flächenrechner */
.flaechenrechner {
	margin: 20px 0 16px; padding: 18px 16px; border-radius: var(--radius);
	background: var(--farbe-flaeche); border: 1px solid var(--farbe-linie);
}
.flaechenrechner[hidden] { display: none; }
.flaechenrechner h2 { font-size: 1.125rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.flaechenrechner h2 svg { width: 22px; height: 22px; color: var(--farbe-akzent); }
.fr__eingaben { display: grid; gap: 12px; }
@media (min-width: 480px) { .fr__eingaben { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.fr__feld label { display: block; font-weight: 700; font-size: .875rem; margin-bottom: 4px; }
.fr__m2 { position: relative; }
.fr__m2 input { width: 100%; padding-right: 48px; font-size: 1.125rem !important; font-weight: 700; }
.fr__m2 span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--farbe-text-leise); font-weight: 700; pointer-events: none; }
.fr__verschnitt { border: 0; margin: 0; padding: 0; min-width: 0; }
.fr__verschnitt legend { font-weight: 700; font-size: .875rem; margin-bottom: 4px; padding: 0; }
.fr__segment { display: inline-flex; border: 1.5px solid #a8a29e; border-radius: var(--radius-klein); overflow: hidden; background: #fff; }
.fr__segment label { position: relative; }
.fr__segment input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fr__segment span { display: grid; place-items: center; min-width: 56px; min-height: 45px; padding: 0 10px; font-weight: 700; font-size: .9375rem; }
.fr__segment label + label span { border-left: 1.5px solid #a8a29e; }
.fr__segment input:checked + span { background: var(--farbe-text); color: #fff; }
.fr__segment input:focus-visible + span { outline: 3px solid var(--farbe-fokus); outline-offset: -3px; }
.fr__ergebnis { margin-top: 14px; display: grid; gap: 12px; }
.fr__ergebnis[hidden] { display: none; }
.fr__zahlen { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px; margin: 0; }
.fr__zahlen div { background: #fff; border-radius: var(--radius-klein); padding: 10px; border: 1px solid var(--farbe-linie); min-width: 0; }
.fr__zahlen dt { font-size: .75rem; color: var(--farbe-text-leise); font-weight: 650; }
.fr__zahlen dd { margin: 2px 0 0; font-weight: 850; font-size: 1.0625rem; white-space: nowrap; }
.fr__zahlen div:last-child dd { color: var(--farbe-akzent-dunkel); }
.fr__hinweis { font-size: .8125rem; color: var(--farbe-text-leise); margin: 0; }
.fr__meldung { font-size: .875rem; font-weight: 650; color: var(--farbe-gruen); margin: 0; }
.fr__meldung--warnung { color: #b91c1c; }

/* Warenkorb-Formular */
.summary form.cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 8px 0 18px; }
.summary form.cart .quantity { display: flex; align-items: center; gap: 8px; }
.summary form.cart .quantity .qty { width: 92px; text-align: center; font-weight: 700; font-size: 1.125rem; }
.br-mengen-einheit { align-self: center; font-weight: 650; color: var(--farbe-text-leise); }
.summary form.cart .single_add_to_cart_button { flex: 1 1 220px; font-size: 1.0625rem; min-height: 54px; }
.summary .stock { font-weight: 650; margin: 6px 0; }
.summary .stock.in-stock { color: var(--farbe-gruen); }
.summary .stock.out-of-stock { color: #b91c1c; }
.product_meta { font-size: .8125rem; color: var(--farbe-text-leise); display: grid; gap: 4px; }
.product_meta a { color: inherit; }

/* Bereiche unter dem Produkt (statt Reitern) */
.br-produktbereiche { display: grid; gap: 32px; margin-top: 16px; }
@media (min-width: 900px) { .br-produktbereiche { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; } }
.br-produktbereich h2 { font-size: 1.375rem; padding-bottom: 10px; border-bottom: 2px solid var(--farbe-text); }
.br-produktbereich--reviews { grid-column: 1 / -1; }

.shop_attributes, .woocommerce-product-attributes {
	width: 100%; border-collapse: collapse; font-size: .9375rem;
}
.shop_attributes th, .shop_attributes td,
.woocommerce-product-attributes th, .woocommerce-product-attributes td {
	text-align: left; vertical-align: top; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--farbe-linie);
}
.woocommerce-product-attributes th { width: 42%; font-weight: 650; color: var(--farbe-text-leise); }
.woocommerce-product-attributes td p { margin: 0; }

.related.products, .upsells.products { margin-top: 24px; }
.related.products > h2, .upsells.products > h2 { font-size: 1.5rem; }

/* ==========================================================================
   7. Hinweise, Warenkorb, Kasse, Konto
   ========================================================================== */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	list-style: none; margin: 0 0 20px; padding: 14px 16px; border-radius: var(--radius-klein);
	background: var(--farbe-gruen-hell); border-left: 4px solid var(--farbe-gruen);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.woocommerce-info { background: #eef2ff; border-left-color: var(--farbe-fokus); }
.woocommerce-error { background: #fef2f2; border-left-color: #b91c1c; display: block; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 44px; padding: 8px 16px; }

/* Block-Warenkorb und Block-Kasse */
.seite--shop .inhalt { padding-top: 16px; }
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { max-width: 100%; }
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	background: var(--farbe-akzent) !important; color: #fff !important; border-radius: 999px !important;
	min-height: 52px; font-weight: 750 !important; border: 0 !important;
}
.wc-block-components-button:not(.is-link):hover { background: var(--farbe-akzent-dunkel) !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { color: var(--farbe-text); font-weight: 850; }
.wc-block-components-text-input input, .wc-block-components-combobox .components-combobox-control__input { border-radius: var(--radius-klein) !important; }
.wc-block-components-product-name { color: var(--farbe-text); font-weight: 700; }
.wc-block-cart-items__row .wc-block-components-product-metadata { font-size: .8125rem; }

/* Klassisches Konto/Formulare */
.woocommerce form .form-row { margin: 0 0 14px; }
.woocommerce form .form-row label { display: block; font-weight: 650; margin-bottom: 4px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { width: 100%; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.woocommerce-MyAccount-navigation a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--farbe-linie); border-radius: 999px; text-decoration: none; color: var(--farbe-text); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--farbe-text); color: #fff; }
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 10px 8px; border-bottom: 1px solid var(--farbe-linie); text-align: left; }

/* ==========================================================================
   8. Inhaltsseiten
   ========================================================================== */
.seitentext { max-width: 760px; }
.seitentext--breit { max-width: none; }
.seitentext h1 { margin-bottom: 24px; }
.seitentext img { border-radius: var(--radius-klein); }
.seitentext table { border-collapse: collapse; width: 100%; }
.seitentext td, .seitentext th { border-bottom: 1px solid var(--farbe-linie); padding: 8px; text-align: left; }
.eintrag + .eintrag { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--farbe-linie); }

/* ==========================================================================
   9. Fuß
   ========================================================================== */
.fuss { background: var(--farbe-dunkel); color: var(--farbe-dunkel-text); padding-block: 48px 28px; font-size: .9375rem; }
.fuss a { color: #fff; }
.fuss a:hover { color: var(--farbe-holz-3); }
.fuss :focus-visible { outline-color: #93c5fd; }
.fuss__raster { display: grid; gap: 32px; }
@media (min-width: 768px) { .fuss__raster { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.fuss h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: #a8a29e; margin-bottom: 10px; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.fuss li a:hover { text-decoration: underline; }
.fuss .logo img { width: 200px; }
.fuss .logo { color: #fff; margin: 0 0 8px; }
.fuss__klein { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .8125rem; color: #bdb6ad; }
.fuss__klein p { margin: 0; }
.fuss__leer { color: #bdb6ad; font-size: .875rem; }

/* Germanized: EU-Hinweis zur gesetzlichen Gewährleistung (Pflichtangabe) – optisch Teil des Fußes */
.wc-gzd-legal-guarantee-footer { background: var(--farbe-dunkel); padding: 0 var(--rand) 32px; display: flex; justify-content: center; }
.wc-gzd-legal-guarantee-footer .wc-gzd-legal-guarantee-label > a { display: block; border-radius: var(--radius-klein); overflow: hidden; background: #fff; }
.wc-gzd-legal-guarantee-footer .wc-gzd-legal-guarantee-image-preview { width: 240px; max-width: 100%; height: auto; }
.wc-gzd-popover { max-width: min(560px, calc(100vw - 32px)); border: 0; border-radius: var(--radius); box-shadow: var(--schatten-gross); padding: 16px; }
.wc-gzd-popover img { width: 100%; height: auto; }
.wc-gzd-popover-close { display: inline-grid; place-items: center; width: 44px; height: 44px; }

/* Germanized/Woo Store-Hinweis */
.woocommerce-store-notice { background: var(--farbe-text) !important; }

/* ==========================================================================
   10. Anfrage (Produktseite und Seite „Angebot anfragen“)
   ========================================================================== */
.produkt-anfrage { margin: 4px 0 18px; }
.produkt-anfrage__knopf { width: 100%; min-height: 54px; font-size: 1.0625rem; }
.produkt-anfrage__knopf svg { width: 22px; height: 22px; flex: none; }
.produkt-anfrage p { margin: 8px 0 0; font-size: .875rem; color: var(--farbe-text-leise); }

.anfrage { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.anfrage h1 { margin-bottom: 10px; }
.anfrage__einleitung { color: var(--farbe-text-leise); margin-bottom: 14px; max-width: 40em; }
.anfrage__schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.anfrage__schritte li { display: flex; align-items: center; gap: 10px; font-weight: 650; line-height: 1.3; }
.anfrage__schritte span {
	display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 999px;
	background: var(--farbe-text); color: #fff; font-size: .875rem; font-weight: 800;
}
.anfrage__text { margin-top: 16px; }

.anfrage__boden {
	display: flex; gap: 14px; align-items: flex-start;
	padding: 14px; border-radius: var(--radius); background: var(--farbe-flaeche); border: 1px solid var(--farbe-linie);
}
.anfrage__boden-bild { flex: none; width: 72px; }
.anfrage__boden-bild img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-klein); }
.anfrage__boden h2 { font-size: 1rem; letter-spacing: 0; line-height: 1.35; margin: 0 0 4px; }
.anfrage__boden h2 span { display: block; font-size: .8125rem; font-weight: 650; color: var(--farbe-text-leise); }
.anfrage__boden h2 a { color: var(--farbe-text); }
.anfrage__boden-preis { margin: 0 0 6px; font-weight: 800; color: var(--farbe-akzent-dunkel); }
.anfrage__boden-hinweis { margin: 0; font-size: .875rem; color: var(--farbe-text-leise); }

/* Eingebetteter Konfigurator. Mit Höhenmeldung setzt assets/konfigurator.js die Höhe (Klasse --auto, kein
   Innen-Scrollen). Rückfall ohne Meldung: feste Höhe knapp unter der sichtbaren Höhe unter dem Kopf, innen scrollbar. */
.konfigurator { min-width: 0; }
.konfigurator__rahmen {
	display: block; width: 100%; border: 0; background: #fff;
	height: min(calc(100svh - 150px), 820px); min-height: 560px;
	scroll-margin-top: 140px;
}
@media (max-width: 599px) {
	.konfigurator__rahmen { width: calc(100% + 2 * var(--rand)); margin-inline: calc(-1 * var(--rand)); }
}
@media (min-width: 600px) {
	.konfigurator__rahmen { height: min(calc(100svh - 140px), 760px); border-radius: var(--radius); border: 1px solid var(--farbe-linie); }
}
.konfigurator__rahmen--auto { min-height: 0; overflow: hidden; }
.konfigurator__hinweis, .konfigurator__noscript { margin: 12px 0 0; font-size: .875rem; color: var(--farbe-text-leise); line-height: 1.5; }
.konfigurator__hinweis a, .konfigurator__noscript a { display: inline-block; padding-block: 12px; font-weight: 650; }
.konfigurator__noscript { padding: 12px; border: 1px solid var(--farbe-linie); border-radius: var(--radius); color: var(--farbe-text); }

@media (min-width: 1000px) {
	.anfrage { grid-template-columns: minmax(0, 330px) minmax(0, 1fr); column-gap: 48px; row-gap: 20px; }
	.anfrage__kopf, .anfrage__boden { grid-column: 1; }
	.anfrage__kopf { grid-row: 1; }
	.anfrage__boden { grid-row: 2; }
	.konfigurator { grid-column: 2; grid-row: 1 / span 3; }
	.anfrage__boden-bild, .anfrage__boden-bild img { width: 88px; height: 88px; }
}

/* Druck */
@media print {
	.vertrauenszeile, .kopf, .fuss, .flaechenrechner, form.cart { display: none !important; }
}
