/**
 * Zentrales Frontend-Stylesheet (Architekturvorgabe Abschnitt 3-6, 46-47).
 * Klassennamenskonvention: .tdc-* (keine generischen Namen, die mit
 * Astra/WooCommerce kollidieren koennten). Keine grossen Inline-Style-
 * Bloecke im Markup - alles hier zentral.
 */

/* ==========================================================================
   Basis / Reset
   ========================================================================== */

.tdc-page, .tdc-page * { box-sizing: border-box; }

/*
 * UI-Haertungsrunde: sitewide Sicherheitsnetz gegen horizontalen Overflow
 * (per echtem Browser-Test an mehreren Mobile-Breiten gefunden, u. a.
 * durch den Cart-Count-Badge unten). Rein defensiv - beeinflusst kein
 * sichtbares Layout, verhindert nur, dass ein einzelnes, wenige Pixel
 * ueberstehendes Element (z. B. ein absolut positionierter Badge) die
 * gesamte Seite horizontal scrollbar macht.
 */
html, body.tdc-body { overflow-x: hidden; }

body.tdc-body {
	font-family: var(--tdc-font);
	color: var(--tdc-text);
	background: var(--tdc-white);
}

.tdc-container {
	max-width: var(--tdc-container);
	margin: 0 auto;
	padding: 0 var(--tdc-gutter);
}

/*
 * Mobile-Haertungsrunde (Produktseiten, 2026-11-11): padding-Shorthand
 * ("X 0") setzt IMMER auch links/rechts, nicht nur oben/unten. Ueberall
 * dort, wo ein Element zugleich .tdc-container UND .tdc-section traegt
 * (zehn Templates site-weit, u. a. single-product.php, page-
 * geraetefinder.php, taxonomy-hersteller.php), ueberschrieb diese Regel
 * dadurch .tdc-container's eigenen horizontalen Gutter mit 0 - der
 * sichtbare Ausloeser dieser Runde (Inhalt sass flush am Displayrand).
 * Nur noch top/bottom setzen, damit .tdc-container alleinige Quelle fuer
 * den horizontalen Gutter bleibt (eine zentrale Regel statt verteilter
 * Spezialfaelle, siehe docs/frontend-ui.md).
 */
.tdc-section {
	padding-top: var(--tdc-space-xl);
	padding-bottom: var(--tdc-space-xl);
}

.tdc-h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; font-weight: 700; margin: 0 0 var(--tdc-space-sm); }
.tdc-h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.2; font-weight: 700; margin: 0 0 var(--tdc-space-md); }
.tdc-h3 { font-size: 18px; font-weight: 700; margin: 0 0 var(--tdc-space-sm); }
.tdc-muted { color: var(--tdc-muted); }
.tdc-accent { color: var(--tdc-red); }

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

.tdc-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--tdc-black);
	color: var(--tdc-white);
	padding: 10px 16px;
	z-index: 10000;
}
.tdc-skip-link:focus {
	left: var(--tdc-space-sm);
	top: var(--tdc-space-sm);
}

.tdc-page a { color: inherit; text-decoration: none; }
.tdc-page a:focus-visible,
.tdc-page button:focus-visible,
.tdc-page input:focus-visible,
.tdc-page select:focus-visible {
	outline: 3px solid var(--tdc-red);
	outline-offset: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.tdc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--tdc-space-sm);
	font-size: 15px;
	font-weight: 600;
	padding: 13px 22px;
	border-radius: var(--tdc-radius);
	border: 1px solid transparent;
	cursor: pointer;
	min-height: 46px;
	line-height: 1.2;
}
/*
 * !important auf Buttonfarben: im echten Browsertest ueberschrieb Astras
 * eigene (per Customizer generierte) globale Link-/Button-Farbe unsere
 * .tdc-btn-Farben bei gleicher Selektor-Spezifitaet aber spaeterer
 * Ladereihenfolge, was den Primaer-Button (schwarz/weiss) fast
 * unlesbar machte (visuelle Korrekturrunde Abschnitt 2). Erzwingt
 * zuverlaessig unsere Designwerte unabhaengig von Astra-Einstellungen.
 */
.tdc-btn-primary,
.tdc-btn-primary:visited { background: var(--tdc-black) !important; color: var(--tdc-white) !important; border-color: var(--tdc-black) !important; }
.tdc-btn-primary:hover, .tdc-btn-primary:focus { background: #222 !important; color: var(--tdc-white) !important; }
.tdc-btn-secondary,
.tdc-btn-secondary:visited { background: var(--tdc-white) !important; color: var(--tdc-black) !important; border-color: var(--tdc-black) !important; }
.tdc-btn-secondary:hover, .tdc-btn-secondary:focus { background: var(--tdc-bg-soft) !important; color: var(--tdc-black) !important; }
.tdc-btn-red,
.tdc-btn-red:visited { background: var(--tdc-red) !important; color: var(--tdc-white) !important; }
.tdc-btn-red:hover, .tdc-btn-red:focus { background: var(--tdc-red-dark) !important; color: var(--tdc-white) !important; }
.tdc-btn-block { width: 100%; }
.tdc-btn-sm { padding: 8px 14px; min-height: 36px; font-size: 13px; }
.tdc-btn .tdc-icon { width: 16px; height: 16px; }

/* ==========================================================================
   Badges
   ========================================================================== */

.tdc-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 4px;
	background: var(--tdc-black);
	color: var(--tdc-white);
}
.tdc-badge-red { background: var(--tdc-red); color: var(--tdc-white); }
.tdc-badge-black { background: var(--tdc-black); color: var(--tdc-white); }

/* ==========================================================================
   Icons
   ========================================================================== */

.tdc-icon {
	width: 20px;
	height: 20px;
	fill: currentColor;
	stroke: currentColor;
	flex-shrink: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.tdc-usp-bar {
	background: var(--tdc-bg-soft);
	border-bottom: 1px solid var(--tdc-border);
	font-size: 12px;
	color: var(--tdc-muted);
}
.tdc-usp-bar .tdc-container {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tdc-space-md);
	padding-top: var(--tdc-space-sm);
	padding-bottom: var(--tdc-space-sm);
}
.tdc-usp-bar-item { display: inline-flex; align-items: center; gap: 6px; }
.tdc-usp-bar .tdc-icon { width: 14px; height: 14px; }

/*
 * Express-Abholung-Topbar: bewusst eine EIGENE, schlanke Zeile statt die
 * USP-Leiste zu erweitern - .tdc-usp-bar wird auf Mobile komplett
 * ausgeblendet (siehe @media max-width:680px unten), Express-Abholung soll
 * dort aber weiterhin sichtbar bleiben. Weisser Hintergrund + dezenter
 * roter Akzent (Icon/CTA) statt einer auffaelligen Farbflaeche.
 */
.tdc-express-bar {
	background: var(--tdc-white);
	border-bottom: 1px solid var(--tdc-border);
	color: var(--tdc-text);
}
.tdc-express-bar-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: var(--tdc-space-sm) var(--tdc-space-md);
	padding-top: 9px;
	padding-bottom: 9px;
	font-size: 13px;
}
.tdc-express-bar-text { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.tdc-express-bar-text > span { min-width: 0; overflow: hidden; }
.tdc-express-bar-text > .tdc-icon { width: 16px; height: 16px; color: var(--tdc-red); flex-shrink: 0; }
.tdc-express-bar-sub { color: var(--tdc-muted); margin-left: 6px; }
.tdc-express-bar-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	color: var(--tdc-red);
	white-space: nowrap;
}
.tdc-express-bar-cta:hover, .tdc-express-bar-cta:focus { color: var(--tdc-red-dark); }
.tdc-express-bar-cta .tdc-icon { width: 14px; height: 14px; }

.tdc-header {
	border-bottom: 1px solid var(--tdc-border);
	background: var(--tdc-white);
	position: relative;
	z-index: 100;
}

.tdc-header-main {
	display: flex;
	align-items: center;
	gap: var(--tdc-space-lg);
	padding: var(--tdc-space-md) 0;
}

.tdc-logo {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	font-size: 16px;
	letter-spacing: 0.01em;
	line-height: 1.15;
	white-space: nowrap;
}
.tdc-logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: var(--tdc-black);
	color: var(--tdc-white);
	border-radius: 4px;
	font-size: 16px;
}
.tdc-logo small { display: block; font-weight: 600; font-size: 10px; color: var(--tdc-muted); letter-spacing: 0.04em; }

.tdc-header-search {
	flex: 1 1 auto;
	max-width: 620px;
	position: relative;
}
.tdc-header-search input[type="search"] {
	width: 100%;
	padding: 12px 44px 12px 16px;
	border: 1px solid var(--tdc-border);
	border-radius: var(--tdc-radius);
	font-size: 14px;
	background: var(--tdc-bg-soft);
}
.tdc-header-search button {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 6px;
	cursor: pointer;
	color: var(--tdc-muted);
}
.tdc-search-results {
	display: none;
	position: absolute;
	left: 0; right: 0; top: calc(100% + 6px);
	background: var(--tdc-white);
	border: 1px solid var(--tdc-border);
	border-radius: var(--tdc-radius);
	box-shadow: var(--tdc-shadow-md);
	max-height: 420px;
	overflow-y: auto;
	z-index: 200;
	padding: var(--tdc-space-sm) 0;
}
.tdc-search-results.is-open { display: block; }
.tdc-search-group-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--tdc-muted);
	padding: 6px 16px;
}
.tdc-search-result {
	display: block;
	padding: 8px 16px;
	font-size: 14px;
}
.tdc-search-result:hover, .tdc-search-result:focus-visible { background: var(--tdc-bg-soft); }
.tdc-search-result .tdc-muted { font-size: 12px; }
.tdc-search-empty { padding: 10px 16px; font-size: 13px; color: var(--tdc-muted); }

.tdc-header-actions {
	display: flex;
	align-items: center;
	gap: var(--tdc-space-lg);
	flex-shrink: 0;
}
.tdc-header-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 11px;
	gap: 2px;
	position: relative;
}
.tdc-header-action .tdc-icon { width: 22px; height: 22px; }
.tdc-cart-count {
	position: absolute;
	top: -6px;
	right: -6px;
	background: var(--tdc-red);
	color: var(--tdc-white);
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	min-width: 17px;
	height: 17px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

.tdc-main-nav {
	border-top: 1px solid var(--tdc-border);
}
.tdc-main-nav ul {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	gap: var(--tdc-space-lg);
	flex-wrap: wrap;
}
.tdc-main-nav a {
	display: inline-block;
	padding: 12px 0;
	font-size: 14px;
	font-weight: 600;
	border-bottom: 2px solid transparent;
}
.tdc-main-nav a:hover, .tdc-main-nav a.is-active {
	border-bottom-color: var(--tdc-red);
}

.tdc-mobile-toggle,
.tdc-mobile-close { display: none; }

/*
 * Navigationspunkt mit Untermenü (Phase 2D, "Thermorollen"-Dropdown).
 * Klassisches Nav-Dropdown-Verhalten: Desktop öffnet primär per Hover auf
 * den gesamten Menüpunkt (Maus) bzw. :focus-within (Tastatur-Tab), der
 * Caret-Klick ist nur eine zusätzliche, nicht zwingend nötige
 * Toggle-Möglichkeit (initNavDropdowns() in tdc-frontend.js) - JS blurt
 * beim Schliessen (Escape/Aussenklick/Toggle-Klick) zusätzlich das
 * fokussierte Element, damit :focus-within danach ebenfalls zuverlässig
 * "falsch" wird. .tdc-main-nav .tdc-submenu behält seine höhere
 * Spezifität gegenüber ".tdc-main-nav ul" (siehe Kommentar dort) - sonst
 * bliebe das Menü wie zuvor dauerhaft sichtbar. Mobile-Akkordeon siehe
 * Breakpoint unten - dort ausschliesslich .is-open (kein Hover).
 */
.tdc-nav-has-children { position: relative; }
.tdc-nav-item-row { display: flex; align-items: center; }
.tdc-nav-item-row a { padding-right: 2px; }

/*
 * Caret bewusst als kleines, unauffälliges Inline-Symbol - kein
 * eigenständig wirkender Button. Astras globale Button-/Fokus-Stile
 * (blauer Hintergrund, quadratische Fläche) greifen sonst auch hier,
 * da .tdc-nav-caret ein <button>-Element ist - deshalb hier mit
 * !important zurückgesetzt, exakt dasselbe Muster wie bei .tdc-btn-*
 * oben im Stylesheet ("Astra dynamic customizer CSS ... bei gleicher
 * Selektor-Spezifität").
 */
.tdc-nav-caret {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	padding: 0 !important;
	margin: 0 0 0 2px !important;
	border: none !important;
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	cursor: pointer;
	color: inherit !important;
	line-height: 1;
}
.tdc-nav-caret .tdc-icon { width: 9px; height: 9px; transform: rotate(90deg); transition: transform .15s ease; }
.tdc-nav-has-children.is-open .tdc-nav-caret .tdc-icon,
.tdc-nav-has-children:hover .tdc-nav-caret .tdc-icon,
.tdc-nav-has-children:focus-within .tdc-nav-caret .tdc-icon { transform: rotate(-90deg); }

/*
 * Bugfix: .tdc-submenu ist selbst ein <ul> INNERHALB von .tdc-main-nav -
 * die generische Regel ".tdc-main-nav ul { display: flex; ... }" oben hat
 * dadurch hoehere Spezifitaet (1 Klasse + 1 Element) als ein alleiniger
 * ".tdc-submenu"-Selektor (1 Klasse) und ueberschrieb "display: none"
 * unabhaengig von .is-open/:hover/:focus-within - das Untermenue war
 * dadurch IMMER sichtbar. Fix: mit ".tdc-main-nav" praefixiert (2 Klassen),
 * damit die Grundzustand-Regel zuverlaessig gewinnt.
 */
.tdc-main-nav .tdc-submenu {
	list-style: none;
	margin: 0;
	padding: var(--tdc-space-sm);
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--tdc-white);
	border: 1px solid var(--tdc-border);
	border-radius: var(--tdc-radius-lg);
	box-shadow: 0 8px 24px rgba(0,0,0,.08);
	z-index: 200;
}
.tdc-nav-has-children.is-open .tdc-submenu,
.tdc-nav-has-children:hover .tdc-submenu,
.tdc-nav-has-children:focus-within .tdc-submenu { display: block; }
.tdc-submenu li { position: relative; }
.tdc-submenu > li > a { display: block; padding: 8px 10px; font-size: 14px; font-weight: 600; border-radius: var(--tdc-radius); }
.tdc-submenu > li > a:hover { background: var(--tdc-bg-alt, #f6f6f6); }
/* Dezente, nicht klickbare Gruppenbezeichnung im Dropdown (z. B. "Nach Rollenbreite") - klein, kein eigener Menüpunkt-Look. */
.tdc-submenu-group-label { padding: 6px 10px 2px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--tdc-muted); }
/* Gleicher Spezifitaets-Grund wie oben bei .tdc-submenu: ohne explizites
   "display: block" mit ausreichender Spezifitaet erbt dieses verschachtelte
   <ul> stattdessen "display: flex" von ".tdc-main-nav ul" und wuerde als
   Zeile statt als Liste dargestellt. */
.tdc-main-nav .tdc-submenu-nested { display: block; list-style: none; margin: 2px 0 6px 10px; padding: 0; border-left: 2px solid var(--tdc-border); }
.tdc-submenu-nested a { display: block; padding: 6px 10px; font-size: 13px; font-weight: 500; color: var(--tdc-muted); }
.tdc-submenu-nested a:hover { color: var(--tdc-black); }

/* ==========================================================================
   Footer
   ========================================================================== */

.tdc-footer {
	background: var(--tdc-black);
	color: #cfcfcf;
	margin-top: var(--tdc-space-2xl);
}
.tdc-footer .tdc-container { padding-top: var(--tdc-space-xl); padding-bottom: var(--tdc-space-lg); }
.tdc-footer-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr 1fr;
	gap: var(--tdc-space-xl);
}
.tdc-footer-col h3 { color: var(--tdc-white); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 var(--tdc-space-md); }
.tdc-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.tdc-footer-col a:hover { color: var(--tdc-white); }
.tdc-footer-logo { color: var(--tdc-white); font-weight: 800; font-size: 16px; margin-bottom: var(--tdc-space-sm); display: block; }
.tdc-footer-contact { font-size: 14px; line-height: 1.7; }
.tdc-footer-social { display: flex; gap: var(--tdc-space-sm); margin-top: var(--tdc-space-md); }
.tdc-footer-social a {
	width: 34px; height: 34px;
	border: 1px solid #444;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
}
.tdc-footer-bottom {
	border-top: 1px solid #333;
	margin-top: var(--tdc-space-xl);
	padding-top: var(--tdc-space-md);
	font-size: 12px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--tdc-space-sm);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.tdc-hero {
	/* Geometrie-Verfeinerung: deutlich weniger Leerraum oben, Unterkante
	   naeher am Content als in der vorherigen (zu hohen) Fassung. */
	padding: var(--tdc-space-sm) 0 var(--tdc-space-lg);
	position: relative;
}
.tdc-hero .tdc-container {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	/* Kleinere Luecke zwischen Text- und Bildspalte - beide sollen wie
	   eine zusammenhaengende Hero-Flaeche wirken statt zwei getrennte
	   Bloecke. */
	gap: var(--tdc-space-md);
	/* Statt vertikaler Zentrierung beide Spalten an der Oberkante
	   ausrichten - Bild sitzt dadurch hoeher, auf gleicher Houhe wie die
	   Ueberschrift, statt in der Zeilenmitte zu "schweben". */
	align-items: start;
}
.tdc-hero-badge {
	/* Naeher an die Bildkomposition heran (weniger Randabstand, etwas
	   weiter unten Richtung Bild) statt isoliert in der aeussersten Ecke -
	   Groesse kompakter (weniger Padding/kleinere Schrift). */
	position: absolute;
	top: calc(var(--tdc-space-xl) + var(--tdc-space-sm));
	right: calc(var(--tdc-gutter) + 26px);
	background: var(--tdc-red);
	color: var(--tdc-white);
	border-radius: var(--tdc-radius);
	padding: 7px 12px;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.35;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: .02em;
	z-index: 2;
}
.tdc-hero-badge span { display: block; }
.tdc-hero-cta { display: flex; gap: var(--tdc-space-md); flex-wrap: wrap; margin-top: var(--tdc-space-lg); }
.tdc-hero-media {
	display: flex;
	align-items: flex-start;
	/* Bild an den linken Rand seiner Spalte (naeher am Text) statt
	   zentriert, damit Text und Bild optisch staerker zusammengehoeren. */
	justify-content: flex-start;
}
.tdc-hero-media img { width: 100%; height: auto; max-height: 360px; object-fit: contain; }

/* ==========================================================================
   USP-Leiste (Startseite, unter Hero)
   ========================================================================== */

.tdc-usp-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: var(--tdc-space-md);
	padding: var(--tdc-space-md) 0;
	border-top: 1px solid var(--tdc-border);
	border-bottom: 1px solid var(--tdc-border);
}
.tdc-usp-grid-item { display: flex; gap: 8px; align-items: center; }
.tdc-usp-grid-item .tdc-icon { width: 18px; height: 18px; flex-shrink: 0; }
.tdc-usp-grid-item strong { display: block; font-size: 13px; line-height: 1.3; }
.tdc-usp-grid-item span { font-size: 11px; color: var(--tdc-muted); }

/* ==========================================================================
   Finder-Teaser (Startseite)
   ========================================================================== */

.tdc-finder-teaser {
	/* Hochwertige weisse Flaeche statt der frueheren grauen Karte
	   (visuelle Angleichung ans Mockup) - Rahmen bleibt als dezente
	   Abgrenzung zur ebenfalls weissen Seite bestehen, kein harter
	   Schatten. */
	background: var(--tdc-white);
	border: 1px solid var(--tdc-border);
	border-radius: var(--tdc-radius-lg);
	padding: var(--tdc-space-lg);
}
.tdc-finder-teaser-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: var(--tdc-space-lg);
	align-items: center;
}
.tdc-finder-teaser-media {
	/* Kein eigener Rahmen mehr um das Bild: die Karte ist jetzt selbst
	   weiss, ein zusaetzlicher Rahmen um das (ebenfalls weisse) Produktfoto
	   wirkte wie eine unnoetige verschachtelte Box statt einer ruhigen,
	   durchgehenden weissen Flaeche. */
	background: var(--tdc-white);
	border-radius: var(--tdc-radius);
	aspect-ratio: 4 / 3;
	max-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.tdc-finder-teaser-media img { width: 100%; height: 100%; object-fit: contain; }
.tdc-finder-teaser-fields {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr auto;
	gap: var(--tdc-space-sm);
	align-items: end;
	margin-top: var(--tdc-space-md);
}
.tdc-finder-teaser label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.tdc-finder-teaser select {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid var(--tdc-border);
	border-radius: var(--tdc-radius);
	background: var(--tdc-white);
	font-size: 13px;
}

/* ==========================================================================
   Produktkarte (wiederverwendbar - Abschnitt 58)
   ========================================================================== */

.tdc-product-grid {
	display: grid;
	/* minmax(0, 1fr) statt bloss 1fr (Gutter-Befund 2026-11-11): eine
	   Grid-Spur mit reinem "1fr" hat einen impliziten min-width:auto und
	   weigert sich, unter den min-content eines Kindes (hier: der "In den
	   Warenkorb"-Button/Preistext) zu schrumpfen - bei schmalen Mobile-
	   Breiten (ab 2 Spalten, z. B. 320px) ragte die Karte dadurch sichtbar
	   in den rechten Seitenrand hinein, ohne eine Scrollbar auszuloesen
	   (durch das sitewide overflow-x:hidden lautlos abgeschnitten). Gilt
	   fuer alle Karten-Grids gleichermassen (type-/manufacturer-/device-/
	   size-grid unten, sowie die .tdc-grid-cols-N-Fixwerte und die
	   Mobile-Breakpoint-Overrides weiter unten in dieser Datei). */
	grid-template-columns: repeat(4, minmax(0, 1fr));
	justify-content: start;
	gap: var(--tdc-space-md);
}
.tdc-product-card {
	border: 1px solid var(--tdc-border);
	border-radius: var(--tdc-radius-lg);
	padding: var(--tdc-space-md);
	display: flex;
	flex-direction: column;
	gap: 6px;
	position: relative;
	background: var(--tdc-white);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.tdc-product-card:hover, .tdc-product-card:focus-within {
	border-color: var(--tdc-black);
	box-shadow: var(--tdc-shadow-sm);
}
.tdc-product-card-body { display: contents; }
.tdc-product-card-badge { position: absolute; top: 12px; left: 12px; z-index: 1; }
.tdc-product-card-image {
	/* Kein grauer Kasten mehr (Mockup-Angleichung: Produktfoto liegt frei
	   auf der weissen Karte, kein zusaetzlicher Rahmen). */
	border-radius: var(--tdc-radius);
	aspect-ratio: 1 / 1;
	display: flex; align-items: center; justify-content: center;
	margin-bottom: var(--tdc-space-sm);
	overflow: hidden;
}
.tdc-product-card-image img { max-width: 92%; max-height: 92%; object-fit: contain; }
.tdc-product-card-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	/* Maximal zwei Zeilen, danach Ellipse - sorgt fuer harmonische,
	   gleich hohe Karten in einer Grid-Reihe unabhaengig von der
	   Produktnamenslaenge (Abschnitt "gleiche bzw. harmonische Hoehen"). */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.tdc-product-card-meta { font-size: 12px; color: var(--tdc-muted); }
.tdc-product-card-variants-hint { font-size: 12px; color: var(--tdc-muted); font-style: italic; }
.tdc-product-card-price { font-size: 20px; font-weight: 800; margin-top: 4px; }
.tdc-product-card-price-ab { font-size: 13px; font-weight: 600; color: var(--tdc-muted); margin-right: 2px; }
.tdc-product-card-price-unit { font-size: 12px; font-weight: 500; margin-left: 4px; white-space: nowrap; }
.tdc-product-card-per-roll { font-size: 13px; color: var(--tdc-red); font-weight: 700; }
.tdc-product-card-stock { font-size: 12px; color: var(--tdc-green); display: flex; align-items: center; gap: 4px; }
.tdc-product-card-stock .tdc-icon { width: 13px; height: 13px; }
.tdc-product-card-delivery { font-size: 12px; color: var(--tdc-muted); display: flex; align-items: center; gap: 4px; }
.tdc-product-card-delivery .tdc-icon { width: 13px; height: 13px; }
.tdc-product-card-cta { margin-top: auto; padding-top: var(--tdc-space-sm); }

/* Katalog-/Shop-Archive (Bugfix, tdc_variable_product_catalog_price_html()
   in inc/product-page.php) - dieselbe visuelle Sprache wie
   .tdc-product-card-price-ab/-per-roll oben, nur innerhalb des
   unveraenderten nativen Astra-/WooCommerce-Loop-Layouts statt der
   eigenen Karten-Komponente. .tdc-loop-price-per-roll ist bewusst ein
   <span> (Teil des gefilterten price_html, das WooCommerce selbst in ein
   <span class="price"> einbettet - ein <div> waere dort ungueltig
   verschachtelt), display:block erzwingt trotzdem eine eigene Zeile. */
.tdc-price-ab { font-size: 0.6em; font-weight: 600; color: var(--tdc-muted); margin-right: 2px; }
.tdc-loop-price-per-roll { display: block; font-size: 13px; font-weight: 700; color: var(--tdc-red); margin-top: 2px; }

/* Modifier "row": kompakte horizontale Karte fuer die Geräteseiten-
   Kaufbox (visuelle Korrekturrunde Abschnitt 11) - kleines Bild links,
   Kaufdaten rechts, damit sie nicht unter den Fold rutschen. */
.tdc-product-card--row {
	flex-direction: row;
	align-items: flex-start;
	gap: var(--tdc-space-md);
	max-width: 460px;
}
.tdc-product-card--row .tdc-product-card-image {
	width: 100px;
	height: 100px;
	flex-shrink: 0;
	margin-bottom: 0;
}
.tdc-product-card--row .tdc-product-card-body {
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex: 1;
	min-width: 0;
}
.tdc-product-card--row .tdc-qty-row .tdc-btn { flex: 1; }

.tdc-qty-row { display: flex; align-items: center; gap: var(--tdc-space-sm); margin-top: var(--tdc-space-sm); }
/*
 * Mengenwahl auf der Geräteseiten-Kaufbox: im echten Browsertest wirkte
 * das Feld "kaputt" - eine breite leere Fläche mit hellblauem Bereich
 * statt eines kompakten Steppers. Ursache: das globale Astra-/WooCommerce-
 * Formularfeld-CSS (input[type=number] { width:100% ... }) gewann gegen
 * unsere width:40px (gleiches Muster wie bei den Button-Farben zuvor),
 * wodurch sich das Feld auf die volle verfuegbare Breite streckte und der
 * native Zahlenfeld-Spinner (in Chrome/Edge unter Windows hellblau
 * hervorgehoben) sichtbar wurde. Fix: feste Breite/Hoehe mit !important
 * erzwungen und der native Spinner deaktiviert - reine CSS-Korrektur,
 * die bestehende WooCommerce-Mengen-/Warenkorb-Logik bleibt unveraendert
 * (1 Menge = 1 Karton/Verkaufseinheit).
 */
.tdc-qty-input {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--tdc-border);
	border-radius: var(--tdc-radius);
	overflow: hidden;
	background: var(--tdc-white) !important;
	flex: 0 0 auto;
	width: auto !important;
}
.tdc-qty-input button {
	background: var(--tdc-white) !important;
	border: none;
	width: 34px !important;
	height: 38px !important;
	flex: 0 0 34px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	color: var(--tdc-black);
	padding: 0 !important;
}
.tdc-qty-input button:hover { background: var(--tdc-bg-soft) !important; }
.tdc-qty-input input[type="number"] {
	width: 42px !important;
	max-width: 42px !important;
	flex: 0 0 42px;
	height: 38px !important;
	border: none;
	border-left: 1px solid var(--tdc-border);
	border-right: 1px solid var(--tdc-border);
	text-align: center;
	font-size: 14px;
	padding: 0 !important;
	background: var(--tdc-white) !important;
	color: var(--tdc-text);
	-moz-appearance: textfield;
	appearance: textfield;
}
.tdc-qty-input input[type="number"]::-webkit-outer-spin-button,
.tdc-qty-input input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ==========================================================================
   Preischeck
   ========================================================================== */

.tdc-price-check { border: 1px solid var(--tdc-border); border-radius: var(--tdc-radius-lg); padding: var(--tdc-space-md) var(--tdc-space-lg); }
.tdc-price-check-table { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--tdc-space-sm); margin-top: var(--tdc-space-md); }
.tdc-price-check-cell { border: 1px solid var(--tdc-border); border-radius: var(--tdc-radius); padding: var(--tdc-space-md); text-align: center; }
.tdc-price-check-cell.is-us { border-color: var(--tdc-black); background: var(--tdc-bg-soft); }
.tdc-price-check-cell .tdc-price-check-label { font-size: 12px; color: var(--tdc-muted); margin-bottom: 4px; }
.tdc-price-check-cell .tdc-price-check-value { font-size: 20px; font-weight: 800; }
.tdc-price-check-note { font-size: 11px; color: var(--tdc-muted); margin-top: var(--tdc-space-sm); }
.tdc-price-check-placeholder { color: var(--tdc-muted); font-size: 14px; padding: var(--tdc-space-sm) 0; margin: 0; }

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.tdc-breadcrumbs { margin: var(--tdc-space-md) 0; }
.tdc-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 13px; color: var(--tdc-muted); }
.tdc-breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; }
.tdc-breadcrumbs a:hover { text-decoration: underline; }

/* ==========================================================================
   Gerätefinder: Schrittanzeige
   ========================================================================== */

.tdc-finder-steps { display: flex; gap: var(--tdc-space-lg); list-style: none; margin: var(--tdc-space-md) 0 var(--tdc-space-xl); padding: 0; flex-wrap: wrap; }
.tdc-finder-step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tdc-muted); }
.tdc-finder-step-num {
	width: 22px; height: 22px; border-radius: 50%;
	background: var(--tdc-bg-soft); color: var(--tdc-muted);
	display: flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 700;
}
.tdc-finder-step.is-active { color: var(--tdc-black); font-weight: 700; }
.tdc-finder-step.is-active .tdc-finder-step-num,
.tdc-finder-step.is-done .tdc-finder-step-num { background: var(--tdc-black); color: var(--tdc-white); }
.tdc-finder-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: var(--tdc-space-md); }
.tdc-finder-back .tdc-icon { width: 14px; height: 14px; transform: scaleX(-1); }

/* ==========================================================================
   Gerätefinder: Karten-Grids
   ========================================================================== */

.tdc-type-grid, .tdc-manufacturer-grid, .tdc-device-grid {
	display: grid;
	gap: var(--tdc-space-md);
	justify-content: start;
}
.tdc-type-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tdc-manufacturer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tdc-device-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* .tdc-grid-cols-N gilt fuer alle Karten-Grids gemeinsam (gleiche
   Klassennamen) und ist weiter unten definiert, siehe Kommentar dort. */

.tdc-type-card, .tdc-manufacturer-card, .tdc-device-card {
	display: flex;
	align-items: center;
	gap: var(--tdc-space-md);
	border: 1px solid var(--tdc-border);
	border-radius: var(--tdc-radius-lg);
	padding: var(--tdc-space-sm) var(--tdc-space-md) var(--tdc-space-md);
	background: var(--tdc-white);
	text-align: left;
}
.tdc-type-card:hover, .tdc-manufacturer-card:hover, .tdc-device-card:hover {
	border-color: var(--tdc-black);
	box-shadow: var(--tdc-shadow-sm);
}
.tdc-type-card { flex-direction: column; align-items: stretch; gap: var(--tdc-space-sm); }
.tdc-type-card-image, .tdc-device-card-image {
	border-radius: var(--tdc-radius);
	width: 100%;
	aspect-ratio: 16 / 10;
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
}
.tdc-type-card-image, .tdc-device-card-image { background: var(--tdc-white); }
.tdc-type-card-image img { max-width: 65%; max-height: 65%; object-fit: contain; }
.tdc-device-card-image img { max-width: 92%; max-height: 92%; object-fit: contain; }
.tdc-type-card-footer { display: flex; align-items: center; gap: var(--tdc-space-sm); }
.tdc-type-card-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.tdc-type-card-body strong { font-size: 14px; }
.tdc-type-card-body .tdc-muted { font-size: 12px; }
.tdc-card-arrow { margin-left: auto; flex-shrink: 0; color: var(--tdc-muted); width: 16px; height: 16px; }
.tdc-manufacturer-card { padding: var(--tdc-space-md); }
.tdc-manufacturer-card-logo { width: 72px; height: 48px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tdc-manufacturer-card-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tdc-manufacturer-card-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.tdc-manufacturer-card-name { font-weight: 700; font-size: 15px; }
.tdc-manufacturer-card-count { font-size: 12px; color: var(--tdc-muted); }
.tdc-device-card { flex-direction: column; align-items: stretch; text-align: center; gap: var(--tdc-space-sm); }
.tdc-device-card-title { font-weight: 700; font-size: 15px; }
.tdc-device-card-type { font-size: 11px; color: var(--tdc-muted); }

.tdc-finder-search {
	display: flex;
	gap: var(--tdc-space-sm);
	margin: var(--tdc-space-lg) 0;
	position: relative;
}
.tdc-finder-search input[type="search"] {
	flex: 1;
	padding: 13px 16px;
	border: 1px solid var(--tdc-border);
	border-radius: var(--tdc-radius);
	font-size: 15px;
}
.tdc-finder-help {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--tdc-muted);
	margin: var(--tdc-space-md) 0;
}
.tdc-finder-help a { text-decoration: underline; }

.tdc-finder-notfound {
	border: 1px solid var(--tdc-border);
	border-radius: var(--tdc-radius-lg);
	padding: var(--tdc-space-lg);
	margin-top: var(--tdc-space-xl);
}
.tdc-finder-notfound-actions { display: flex; gap: var(--tdc-space-sm); flex-wrap: wrap; margin-top: var(--tdc-space-md); }

/*
 * Kompakter Hilfe-CTA auf den Thermorollen-/Grössen-SEO-Seiten (Phase 2D,
 * Abschnitt 6/17) - bewusst zurückhaltend (kein zweiter grosser Hero),
 * verlinkt nur auf die bestehenden Finder.
 */
.tdc-finder-cta {
	border: 1px solid var(--tdc-border);
	border-radius: var(--tdc-radius-lg);
	padding: var(--tdc-space-lg);
	text-align: center;
}
.tdc-finder-cta h2 { margin-bottom: var(--tdc-space-md); }
.tdc-finder-cta-actions { display: flex; gap: var(--tdc-space-sm); justify-content: center; flex-wrap: wrap; }

.tdc-thermorollen-intro { max-width: 720px; margin-bottom: var(--tdc-space-lg); }

/* Breiten-/Groessen-Detailseiten (/thermorollen/80mm/, /thermorollen/
   80x80/ usw., Layout-Verdichtung): etwas schmalerer, ruhigerer Content-
   Bereich statt der vollen 1280px-Seitenbreite (kein neues paralleles
   Container-System - nur ein enger gefasstes max-width auf demselben
   .tdc-container), plus kompaktere Abschnittsabstände. Groessen-/
   Produktkarten bleiben BEWUSST linksbuendig (Standard-Grid-Verhalten,
   kein justify-content:center mehr) und teilen sich so dieselbe linke
   Achse wie Breadcrumb/H1/Ueberschriften - eine zentrierte Einzelkarte
   wirkte visuell von den linksbuendigen Ueberschriften abgekoppelt. Nur
   fuer dieses Template (Klasse wird ausschliesslich vom gemeinsamen
   Breiten-/Grössen-Template gesetzt) - keine Auswirkung auf Startseite,
   Geräteseiten oder Geräte-/Grössenfinder. */
.tdc-thermorollen-detail.tdc-container {
	max-width: 1080px;
}
.tdc-thermorollen-detail .tdc-h1 {
	font-size: clamp(24px, 3vw, 34px);
}
.tdc-thermorollen-detail .tdc-breadcrumbs {
	margin: var(--tdc-space-sm) 0;
}
.tdc-thermorollen-detail .tdc-thermorollen-intro {
	margin-top: 0;
	margin-bottom: var(--tdc-space-sm);
}
.tdc-thermorollen-detail .tdc-h2 {
	margin-top: var(--tdc-space-md);
	margin-bottom: var(--tdc-space-sm);
}

/* ==========================================================================
   Grössenfinder: Auswahl-Karten (Breite/Durchmesser/Kern, Phase 2A)
   ========================================================================== */

.tdc-size-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	justify-content: start;
	gap: var(--tdc-space-sm);
}
.tdc-size-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	border: 1px solid var(--tdc-border);
	border-radius: var(--tdc-radius-lg);
	background: var(--tdc-white);
	padding: var(--tdc-space-lg) var(--tdc-space-md);
	font-size: 17px;
	font-weight: 700;
	min-height: 64px;
}
/*
 * Optionale zweite Zeile auf konkreten Größenkarten (SEO-/UX-Klarheit:
 * "80 × 80 mm" + klein "80 mm Breite · 80 mm Ø") - nur die SEO-
 * Größenseiten nutzen die Spans, der bestehende Größenfinder bleibt bei
 * reinem Text und erbt weiterhin Schriftgröße/-gewicht direkt von
 * .tdc-size-card, unveraendertes Verhalten dort.
 */
.tdc-size-card-sub { display: block; font-size: 11px; font-weight: 500; color: var(--tdc-muted); margin-top: 4px; }
.tdc-size-card:hover, .tdc-size-card:focus-visible {
	border-color: var(--tdc-black);
	box-shadow: var(--tdc-shadow-sm);
}

/* Grid-Spaltenzahl passend zur tatsaechlichen Anzahl echter Elemente
   (visuelle Korrekturrunde Abschnitt 3/5/8/9, Layout-Verdichtung
   Breiten-/Groessenseiten): verhindert, dass wenige Karten unnatürlich
   gestreckt werden oder riesige leere Rasterspalten entstehen. Bewusst
   HIER platziert (nach allen vier Basis-Grid-Regeln .tdc-product-grid/
   .tdc-type-grid/.tdc-manufacturer-grid/.tdc-device-grid/.tdc-size-grid),
   damit diese Klasse bei gleicher Selektor-Spezifitaet immer per
   Quellreihenfolge gewinnt - vorher stand dieser Block VOR den Grössen-
   /Gerätefinder-Grid-Regeln und wurde dadurch fuer .tdc-type-grid/
   .tdc-manufacturer-grid/.tdc-device-grid/.tdc-size-grid wirkungslos
   ueberschrieben (Bug, entgegen dem eigentlich dokumentierten Zweck). */
.tdc-grid-cols-1 { grid-template-columns: minmax(220px, 300px); }
.tdc-grid-cols-2 { grid-template-columns: repeat(2, minmax(220px, 300px)); }
.tdc-grid-cols-3 { grid-template-columns: repeat(3, minmax(220px, 300px)); }
.tdc-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tdc-finder-layout { display: grid; grid-template-columns: 1fr 300px; gap: var(--tdc-space-xl); align-items: start; }
/* Die Modell-Karten-Spalte ist durch die Hilfe-Sidebar schmaler als die
   uebrigen Finder-Grids - eigene, adaptive Spaltenbreite statt der
   fixen tdc-grid-cols-N-Werte (die fuer die volle Containerbreite
   gedacht sind), damit hier keine Karten ueberlaufen. */
.tdc-finder-layout .tdc-device-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tdc-model-help { border: 1px solid var(--tdc-border); border-radius: var(--tdc-radius-lg); padding: var(--tdc-space-md); }
.tdc-model-help-image { background: var(--tdc-bg-soft); border-radius: var(--tdc-radius); aspect-ratio: 16/10; max-height: 140px; margin: var(--tdc-space-sm) 0; display: flex; align-items: center; justify-content: center; }
.tdc-model-help .tdc-btn { margin-top: var(--tdc-space-sm); }
.tdc-model-help p { margin: 0 0 var(--tdc-space-xs); }

/* ==========================================================================
   Geräteseite
   ========================================================================== */

.tdc-device-hero-header { max-width: 720px; margin-bottom: var(--tdc-space-lg); }
.tdc-device-hero { display: grid; grid-template-columns: 300px 1fr; gap: var(--tdc-space-xl); align-items: start; margin-bottom: var(--tdc-space-xl); }
.tdc-device-hero-media { max-width: 300px; }
.tdc-device-hero-image { background: var(--tdc-white); border-radius: var(--tdc-radius-lg); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tdc-device-hero-image img { max-width: 92%; max-height: 92%; object-fit: contain; }
.tdc-device-hero-caption { text-align: center; margin-top: var(--tdc-space-sm); display: flex; flex-direction: column; gap: 2px; }
.tdc-device-hero-caption strong { font-size: 14px; }
.tdc-device-hero-caption .tdc-muted { font-size: 12px; }
.tdc-device-hero-buy { max-width: 460px; }
.tdc-device-hero-title { font-size: 13px; color: var(--tdc-muted); margin-bottom: 4px; }
.tdc-device-summary { font-size: 15px; color: var(--tdc-text); margin: var(--tdc-space-sm) 0 0; }

.tdc-trust-block {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	background: var(--tdc-bg-soft);
	border-radius: var(--tdc-radius);
	padding: var(--tdc-space-sm) var(--tdc-space-md);
	margin: var(--tdc-space-md) 0;
	font-size: 13px;
}
.tdc-trust-block .tdc-icon { color: var(--tdc-green); flex-shrink: 0; margin-top: 2px; }
.tdc-trust-block strong { display: block; margin-bottom: 2px; }

.tdc-facts-table { width: 100%; border-collapse: collapse; margin: var(--tdc-space-lg) 0; }
.tdc-facts-table tr { border-bottom: 1px solid var(--tdc-border); }
.tdc-facts-table th, .tdc-facts-table td { text-align: left; padding: 10px 12px; font-size: 14px; }
.tdc-facts-table th { color: var(--tdc-muted); font-weight: 600; width: 45%; }

.tdc-related-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tdc-related-list a { font-size: 14px; padding: 6px 0; display: inline-block; }
.tdc-related-list a:hover { text-decoration: underline; }

/*
 * Neutraler "noch kein Bild"-Platzhalter statt eines auffaelligen
 * Streifenmusters (visuelle Korrekturrunde Abschnitt 14: "soll NICHT wie
 * riesiger unfertiger Block wirken"). Reines CSS/Inline-SVG-Icon, kein
 * externer Request.
 */
/*
 * Geräteabnahme-Runde (2026-11-11): vorher fuellte der Platzhalter die
 * GESAMTE Bildflaeche mit --tdc-bg-soft (#f6f6f6) - auf Seiten mit
 * vielen fehlenden Bildern (z. B. Olympia, Toshiba Tec, SumUp) wirkte das
 * wie ein dominanter grauer Block statt eines dezenten Hinweises. Hinter-
 * grund jetzt weiss (identisch zum Hintergrund echter Fotos, .tdc-device-
 * card-image/.tdc-device-hero-image), nur das kleine, bereits gedaempfte
 * Icon bleibt als Hinweis sichtbar - keine zusaetzliche Innenbox mehr.
 */
.tdc-image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 60px;
	background: var(--tdc-white);
}
.tdc-image-placeholder::before {
	content: "";
	display: block;
	width: 24%;
	max-width: 40px;
	aspect-ratio: 1 / 1;
	background-color: #d8d8d8;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 5H3a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1zm-1 12H4V7h16zM8 10a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm-4 6 5-6 4 4 3-3 5 5z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 5H3a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1zm-1 12H4V7h16zM8 10a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm-4 6 5-6 4 4 3-3 5 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ==========================================================================
   Herstellerseite
   ========================================================================== */

.tdc-manufacturer-hero { display: flex; gap: var(--tdc-space-lg); align-items: center; margin-bottom: var(--tdc-space-xl); }
.tdc-manufacturer-hero-logo { width: 120px; height: 80px; display: flex; align-items: center; justify-content: center; }
.tdc-manufacturer-hero-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ==========================================================================
   Produktseite (Phase 2B) - restyled WooCommerce-Markup statt Rebuild.
   Es wird bewusst kein WooCommerce-Template ueberschrieben (siehe
   single-product.php/inc/product-page.php); die Selektoren hier zielen
   direkt auf WooCommerce's eigene, stabile Klassennamen.
   ========================================================================== */

/* Native Astra-Breadcrumb + Kategorie-Tag direkt ueber dem Produkttitel
   (Astra_Woocommerce::single_product_content_structure()) dupliziert die
   eigene tdc_breadcrumbs()-Ausgabe ganz oben auf der Seite (siehe
   single-product.php) - fuehrte zu zwei sichtbaren Breadcrumbs auf einer
   Seite. Nur die Astra-eigene, redundante Ausgabe wird ausgeblendet, die
   zentrale eigene Breadcrumb-Komponente bleibt unveraendert bestehen. */
.single-product .summary .woocommerce-breadcrumb,
.single-product .summary .single-product-category {
	display: none;
}

.single-product div.product {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tdc-space-lg);
	align-items: flex-start;
	margin-top: var(--tdc-space-sm);
}
.single-product div.images.woocommerce-product-gallery {
	flex: 1 1 460px;
	max-width: 560px;
}
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image {
	border: 1px solid var(--tdc-border);
	border-radius: var(--tdc-radius-lg);
	overflow: hidden;
	background: var(--tdc-white);
}
.single-product .woocommerce-product-gallery__wrapper img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 4 / 3;
	object-fit: contain;
	padding: var(--tdc-space-lg);
	box-sizing: border-box;
}
.single-product .summary.entry-summary {
	flex: 1 1 400px;
	min-width: 300px;
}
.single-product .woocommerce-tabs,
.single-product .related.products,
.single-product .upsells.products,
.single-product .tdc-product-section {
	flex: 1 1 100%;
	margin-top: var(--tdc-space-lg);
}

/*
 * UI-Haertungsrunde (Design-System vereinheitlichen): WooCommerce's
 * eigene generische .button-Klasse (Related-/Upsell-/Cross-Sell-Loop auf
 * Produkt- und Warenkorbseite, Bewertungsformular) blieb bisher komplett
 * ungestylt und zeigte WooCommerce's Standard-Blau statt des Shop-eigenen
 * Schwarz/Weiss-Systems - gefunden per echtem Browser-Screenshot. Betrifft
 * NICHT die bereits eigens gestylten .tdc-btn- bzw. .single_add_to_cart_button-
 * Selektoren (eigene, unveraenderte Regeln weiter oben/unten).
 */
.woocommerce .related.products a.add_to_cart_button,
.woocommerce .upsells.products a.add_to_cart_button,
.woocommerce .cross-sells a.add_to_cart_button,
.woocommerce-cart .cross-sells a.add_to_cart_button,
.woocommerce .related.products a.button:not(.add_to_cart_button),
.woocommerce .upsells.products a.button:not(.add_to_cart_button),
.woocommerce .comment-form input.submit,
.woocommerce input#submit.submit,
.wc-block-grid__product-add-to-cart a.add_to_cart_button,
.wp-block-woocommerce-empty-cart-block .wp-block-button__link {
	background: var(--tdc-black) !important;
	color: var(--tdc-white) !important;
	border: 1px solid var(--tdc-black) !important;
	border-radius: var(--tdc-radius) !important;
	font-family: var(--tdc-font);
	font-weight: 700 !important;
	padding: 10px 18px !important;
	box-shadow: none !important;
	text-transform: none !important;
}
.woocommerce .related.products a.add_to_cart_button:hover,
.woocommerce .upsells.products a.add_to_cart_button:hover,
.woocommerce .cross-sells a.add_to_cart_button:hover,
.woocommerce-cart .cross-sells a.add_to_cart_button:hover,
.woocommerce .related.products a.button:not(.add_to_cart_button):hover,
.woocommerce .upsells.products a.button:not(.add_to_cart_button):hover,
.woocommerce .comment-form input.submit:hover,
.woocommerce input#submit.submit:hover,
.wc-block-grid__product-add-to-cart a.add_to_cart_button:hover,
.wp-block-woocommerce-empty-cart-block .wp-block-button__link:hover {
	background: #222 !important;
	color: var(--tdc-white) !important;
}

.single-product .product_title.entry-title {
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 var(--tdc-space-sm);
}
.single-product .woocommerce-product-rating { margin-bottom: var(--tdc-space-sm); font-size: 13px; }
.single-product .summary > p.price {
	font-size: 28px;
	font-weight: 800;
	margin: var(--tdc-space-md) 0 0;
}
.single-product .summary > p.price ins { text-decoration: none; color: var(--tdc-red); }
.single-product .summary > p.price del { opacity: 0.55; font-size: 0.55em; margin-right: var(--tdc-space-sm); }

/*
 * Varianten-UX-Fix: bei variablen Produkten sowohl WooCommerce's
 * eigene native Preisspanne ("CHF 10.00 - CHF 15.00", .summary > p.price)
 * als auch den zweiten, weiter unten von WooCommerce's eigenem
 * Variations-Skript befuellten .woocommerce-variation-price-Block
 * ausblenden - ersetzt durch GENAU EINE eigene Hauptpreisanzeige
 * (.tdc-buybox-main-price, siehe tdc_render_variable_main_price() in
 * inc/product-page.php). Bleibt bewusst nur auf variable Produkte
 * beschraenkt (.product-type-variable) - einfache Produkte zeigen
 * weiterhin unveraendert den nativen WooCommerce-Preis.
 */
.single-product .product-type-variable .summary > p.price,
.single-product .product-type-variable .woocommerce-variation-price {
	display: none;
}
.tdc-buybox-main-price {
	font-size: 28px;
	font-weight: 800;
	margin: var(--tdc-space-md) 0 0;
}
.tdc-buybox-main-price-prefix {
	font-size: 15px;
	font-weight: 600;
	color: var(--tdc-muted);
	margin-right: 4px;
}

.tdc-buybox-info { margin: 6px 0 var(--tdc-space-sm); display: flex; flex-direction: column; gap: 4px; }
.tdc-buybox-unit-label { font-size: 12px; font-weight: 600; color: var(--tdc-muted); text-transform: uppercase; letter-spacing: 0.03em; }
/* Wiederverwendung derselben realen Daten wie auf der Produktkarte
   (Lagerstatus/Lieferzeit, tdc_delivery_time_text()) - keine neue
   Versand-/Lager-Logik, nur dieselbe Information zusaetzlich in der
   Kaufbox der Produktdetailseite (Abschnitt "weniger Standard-
   WooCommerce, mehr klarer B2B-Shop"). */
.tdc-buybox-trust { display: flex; flex-wrap: wrap; gap: var(--tdc-space-sm) var(--tdc-space-md); margin: 2px 0 0; }
.tdc-buybox-trust-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tdc-muted); }
.tdc-buybox-trust-item .tdc-icon { width: 15px; height: 15px; flex-shrink: 0; }
.tdc-buybox-trust-instock { color: var(--tdc-green); font-weight: 600; }

/*
 * Express-Abholungs-Hinweisbox (Produktseite + Warenkorb, dieselbe
 * Komponente/Markup - template-parts/express-pickup-notice.php). Weisser
 * Hintergrund, dezente rote Linksbordüre statt einer vollflaechigen
 * Farbe ("dezente rote Akzente"). Auf der Produktseite sitzt sie NACH dem
 * Kaufbutton (eigener Hook), ueberlagert ihn dadurch nie.
 *
 * Bugfix (Abnahme-Test 2026-11-11, per echtem Browser-Screenshot
 * gefunden): WooCommerce's eigenes Kaufformular <form class="cart"> ist
 * display:flex (fuer Mengenfeld + Button nebeneinander). Der
 * woocommerce_after_add_to_cart_button-Hook rendert DIESES Element als
 * direktes Kind desselben Formulars, wodurch es automatisch zum
 * Flex-Item wird - ohne explizites order wurde es trotz korrekter
 * DOM-Position NACH dem Button visuell DAVOR angezeigt (Mengenfeld/Button
 * haben dort bereits eigene order:1/2). flex-basis:100% + hohes order
 * erzwingen zuverlaessig eine eigene, letzte Zeile unabhaengig vom
 * jeweiligen Eltern-Layout (Flex ODER normaler Blockfluss im Warenkorb).
 */
.tdc-express-notice {
	order: 999;
	flex-basis: 100%;
	width: 100%;
	box-sizing: border-box;
	display: flex;
	align-items: flex-start;
	gap: var(--tdc-space-md);
	background: var(--tdc-white);
	border: 1px solid var(--tdc-border);
	border-left: 3px solid var(--tdc-red);
	border-radius: var(--tdc-radius);
	padding: var(--tdc-space-md);
	margin-top: var(--tdc-space-md);
}
.tdc-express-notice-icon { color: var(--tdc-red); flex-shrink: 0; margin-top: 2px; }
.tdc-express-notice-icon .tdc-icon { width: 20px; height: 20px; }
.tdc-express-notice-body { flex: 1 1 auto; min-width: 0; }
.tdc-express-notice-title { display: block; font-size: 14px; margin-bottom: 2px; }
.tdc-express-notice-text { margin: 0; font-size: 13px; color: var(--tdc-muted); line-height: 1.5; }
.tdc-express-notice-cta { flex-shrink: 0; white-space: nowrap; }
/*
 * Im Warenkorb wird die Box ueber the_content angehaengt (siehe
 * inc/express-pickup.php - Cart ist ein WooCommerce-Block, kein
 * klassisches Template, siehe tdc-checkout.css), landet also direkt im
 * .entry-content-Fluss OHNE die Breitenbeschraenkung/den Gutter des
 * Cart-Blocks selbst. Dieselbe Breiten-/Gutter-Korrektur wie bereits bei
 * .entry-header/.entry-title in tdc-checkout.css (identischer Bugfix-
 * Grund: Astras Wrapper-Divs fehlen, siehe dortiger Kommentar). */
.tdc-express-notice--cart {
	max-width: var(--tdc-container);
	margin: var(--tdc-space-lg) auto 0;
	padding-left: var(--tdc-gutter);
	padding-right: var(--tdc-gutter);
	box-sizing: border-box;
}
.tdc-buybox-per-roll { font-size: 16px; font-weight: 700; color: var(--tdc-red); }
.tdc-buybox-rolls-carton { font-size: 14px; color: var(--tdc-text); }

.single-product .stock {
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 var(--tdc-space-sm);
	padding: 0;
}
.single-product .stock.in-stock { color: var(--tdc-green); }
.single-product .stock.out-of-stock { color: var(--tdc-red); }

.single-product .quantity {
	display: inline-flex;
	align-items: stretch;
	min-height: 46px;
	border: 1px solid var(--tdc-border);
	border-radius: var(--tdc-radius);
	overflow: hidden;
	background: var(--tdc-white);
	vertical-align: middle;
}
.single-product .quantity .tdc-qty-minus,
.single-product .quantity .tdc-qty-plus {
	background: var(--tdc-white) !important;
	border: none;
	width: 36px !important;
	flex-shrink: 0;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	color: var(--tdc-black);
	padding: 0 !important;
}
.single-product .quantity .tdc-qty-minus:hover,
.single-product .quantity .tdc-qty-plus:hover { background: var(--tdc-bg-soft) !important; }
.single-product .quantity input.qty {
	width: 46px !important;
	max-width: 46px !important;
	border: none;
	border-left: 1px solid var(--tdc-border);
	border-right: 1px solid var(--tdc-border);
	text-align: center;
	font-size: 14px;
	padding: 0 !important;
	-moz-appearance: textfield;
	appearance: textfield;
}
.single-product .quantity input.qty::-webkit-outer-spin-button,
.single-product .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.tdc-qty-summary { font-size: 13px; color: var(--tdc-muted); margin-top: var(--tdc-space-sm); display: flex; flex-wrap: wrap; gap: var(--tdc-space-sm) var(--tdc-space-md); align-items: baseline; }
.tdc-qty-summary-total { color: var(--tdc-text); }
.tdc-qty-summary-total strong { color: var(--tdc-black); font-size: 15px; }

/*
 * Mengenfeld + "In den Warenkorb" nebeneinander in EINER klaren Reihe,
 * die Karton-/Rollen-Zusammenfassung darunter (Reihenfolge weiterhin per
 * "order" statt DOM-Aenderung - die Zusammenfassung haengt weiterhin am
 * selben WooCommerce-Hook zwischen Mengenfeld und Button, siehe
 * tdc_product_qty_summary() in inc/product-page.php, keine
 * Warenkorb-/Preislogik veraendert). Zwei Selektoren, weil WooCommerce fuer
 * einfache Produkte direkt form.cart nutzt, fuer variable Produkte einen
 * eigenen .woocommerce-variation-add-to-cart-Wrapper - form.cart selbst
 * NICHT pauschal geflext, da es bei variablen Produkten zusaetzlich die
 * Varianten-Tabelle (table.variations) enthaelt, die weiterhin volle
 * Breite behalten soll.
 */
.single-product .product-type-simple form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--tdc-space-sm) var(--tdc-space-md);
}
.single-product .woocommerce-variation-add-to-cart.variations_button {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--tdc-space-sm) var(--tdc-space-md);
}
.single-product .product-type-simple form.cart .quantity,
.single-product .woocommerce-variation-add-to-cart.variations_button .quantity {
	order: 1;
}
.single-product .product-type-simple form.cart .single_add_to_cart_button,
.single-product .woocommerce-variation-add-to-cart.variations_button .single_add_to_cart_button {
	order: 2;
	margin-left: 0;
}
.single-product .product-type-simple form.cart .tdc-qty-summary,
.single-product .woocommerce-variation-add-to-cart.variations_button .tdc-qty-summary {
	order: 3;
	flex-basis: 100%;
	margin-top: 2px;
}

/* ==========================================================================
   Staffelpreise (Phase 2C)
   ========================================================================== */

.tdc-tier-block { margin: var(--tdc-space-md) 0 var(--tdc-space-lg); }
.tdc-tier-heading { font-size: 15px; font-weight: 700; margin: 0 0 var(--tdc-space-sm); }
/* Sicherheitsnetz gegen horizontales Scrollen der GESAMTEN Seite auf
   sehr schmalen Bildschirmen (Abschnitt 36): scrollt bei Bedarf nur der
   Tabellen-Container selbst, nie die Seite. */
.tdc-tier-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tdc-tier-table {
	width: 100%;
	min-width: 360px;
	border-collapse: collapse;
	font-size: 14px;
}
.tdc-tier-table th,
.tdc-tier-table td {
	padding: 8px 10px;
	text-align: left;
	border-bottom: 1px solid var(--tdc-border);
}
.tdc-tier-table thead th {
	font-size: 12px;
	font-weight: 600;
	color: var(--tdc-muted);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	border-bottom: 2px solid var(--tdc-border);
}
/* Aktive Staffel: Hintergrund UND fette Schrift UND das Checkmark-Badge
   (siehe unten) - nie ausschliesslich Farbe (Abschnitt 9/35). */
.tdc-tier-table tr.is-active {
	background: var(--tdc-bg-soft);
	font-weight: 700;
}
.tdc-tier-table tr.is-active td:first-child { border-left: 3px solid var(--tdc-red); padding-left: 7px; }
.tdc-tier-active-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--tdc-red);
	color: var(--tdc-white);
	font-size: 13px;
	font-weight: 700;
}

.single-product .single_add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--tdc-space-sm);
	font-size: 15px;
	font-weight: 600;
	padding: 13px 24px;
	border-radius: var(--tdc-radius);
	border: 1px solid var(--tdc-black);
	background: var(--tdc-black) !important;
	color: var(--tdc-white) !important;
	min-height: 46px;
	margin-left: var(--tdc-space-md);
	cursor: pointer;
}
.single-product .single_add_to_cart_button:hover { background: #222 !important; }
.single-product .single_add_to_cart_button.disabled,
.single-product .single_add_to_cart_button.disabled:hover {
	background: var(--tdc-bg-soft) !important;
	color: var(--tdc-muted) !important;
	border-color: var(--tdc-border);
	cursor: not-allowed;
}

.single-product .product_meta {
	font-size: 12px;
	color: var(--tdc-muted);
	margin-top: var(--tdc-space-lg);
	padding-top: var(--tdc-space-sm);
	border-top: 1px solid var(--tdc-border);
}
.single-product .product_meta > span { display: block; margin-bottom: 2px; }

.single-product table.variations { width: 100%; margin: var(--tdc-space-md) 0; border-collapse: collapse; }
.single-product table.variations th.label { text-align: left; font-size: 13px; font-weight: 600; color: var(--tdc-text); padding: 6px 8px 6px 0; width: 30%; }
.single-product table.variations td.value select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--tdc-border);
	border-radius: var(--tdc-radius);
	background: var(--tdc-white);
	font-size: 15px;
	transition: border-color .15s ease;
}
.single-product table.variations td.value select:hover,
.single-product table.variations td.value select:focus {
	border-color: var(--tdc-black);
}
.single-product table.variations td.value select:focus-visible {
	outline: none;
	box-shadow: var(--tdc-shadow-sm);
}
.single-product a.reset_variations { font-size: 12px; margin-left: var(--tdc-space-sm); }

.tdc-product-section { padding-top: var(--tdc-space-lg); border-top: 1px solid var(--tdc-border); }
.tdc-product-description { font-size: 15px; line-height: 1.6; max-width: 720px; }
.single-product .tdc-facts-table { max-width: 640px; }

.tdc-more-devices { margin-top: var(--tdc-space-md); }
.tdc-more-devices summary {
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 0;
	list-style: none;
}
.tdc-more-devices summary::-webkit-details-marker { display: none; }
.tdc-more-devices summary::before { content: "+ "; }
.tdc-more-devices[open] summary::before { content: "– "; }

/*
 * Kompatibilitaets-UX-Runde: Hersteller-Chips "Passend für diese Geräte"
 * (Produktseite) bzw. ihr geteiltes Panel darunter (Abschnitt 8-13/27).
 * Bewusst kompakte Buttons statt grosser Karten - schnell scanbar, auf
 * Mobile gut umbrechend. Dieselben Tokens wie .tdc-btn-secondary, aber
 * kleiner/als Pill, damit viele Hersteller nebeneinander Platz finden.
 */
.tdc-compat-summary { margin-top: -4px; margin-bottom: var(--tdc-space-md); }

.tdc-mfr-chip-row { display: flex; flex-wrap: wrap; gap: var(--tdc-space-sm); margin-bottom: var(--tdc-space-md); }
.tdc-mfr-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 40px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	color: var(--tdc-black);
	background: var(--tdc-white);
	border: 1px solid var(--tdc-border);
	border-radius: 999px;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}
.tdc-mfr-chip:hover { background: var(--tdc-bg-soft); }
.tdc-mfr-chip:focus-visible { outline: 2px solid var(--tdc-black); outline-offset: 2px; }
.tdc-mfr-chip.is-active { background: var(--tdc-black); border-color: var(--tdc-black); color: var(--tdc-white); }
.tdc-mfr-chip-count { color: var(--tdc-muted); font-weight: 500; }
.tdc-mfr-chip.is-active .tdc-mfr-chip-count { color: rgba(255, 255, 255, 0.75); }

.tdc-mfr-panel { border: 1px solid var(--tdc-border); border-radius: var(--tdc-radius-lg); padding: var(--tdc-space-sm) var(--tdc-space-md); }
.tdc-mfr-device-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tdc-mfr-device-list li { border-bottom: 1px solid var(--tdc-border); }
.tdc-mfr-device-list li:last-child { border-bottom: none; }
.tdc-mfr-device-link {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	min-height: 44px;
	padding: 10px 4px;
	color: var(--tdc-black);
}
.tdc-mfr-device-link:hover .tdc-mfr-device-name { text-decoration: underline; }
.tdc-mfr-device-name { font-weight: 600; font-size: 14px; }
.tdc-mfr-device-type { font-size: 12px; }

.single-product .woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: var(--tdc-space-lg); margin: 0 0 var(--tdc-space-md); padding: 0; border-bottom: 1px solid var(--tdc-border); }
.single-product .woocommerce-tabs ul.tabs li { margin: 0; }
.single-product .woocommerce-tabs ul.tabs li a { display: inline-block; padding: 10px 0; font-size: 14px; font-weight: 600; }

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 1080px) {
	/* :not(.tdc-grid-cols-1) - ein einzelnes Element soll auch auf
	   Tablet-Breite weiterhin seine schmale, kompakte Spaltenbreite
	   behalten statt auf 1/3 eines erzwungenen 3-Spalten-Rasters
	   gestreckt zu werden (Layout-Verdichtung Breiten-/Groessenseiten). */
	.tdc-product-grid:not(.tdc-grid-cols-1), .tdc-type-grid:not(.tdc-grid-cols-1), .tdc-manufacturer-grid:not(.tdc-grid-cols-1), .tdc-device-grid:not(.tdc-grid-cols-1), .tdc-size-grid:not(.tdc-grid-cols-1) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tdc-usp-grid { grid-template-columns: repeat(3, 1fr); }
	.tdc-footer-grid { grid-template-columns: 1fr 1fr; }
	.tdc-finder-teaser-grid { grid-template-columns: 1fr; }
	/* Bild UNTER dem Formular auf Tablet/Mobile (wie beim Hero) - bewusst
	   kein "order: -1" mehr, das zuvor das Bild vor den Text/das Formular
	   stellte. */
	.tdc-finder-teaser-media { max-height: 160px; }
}

@media (max-width: 880px) {
	.tdc-hero .tdc-container { grid-template-columns: 1fr; }
	/* Bild UNTER dem Text auf Mobile/Tablet (Mockup-Angleichung) - bewusst
	   kein "order: -1" mehr, das zuvor das Bild vor den Text stellte. */
	.tdc-hero-media img { max-height: 240px; }
	.tdc-finder-layout { grid-template-columns: 1fr; }
	.tdc-device-hero { grid-template-columns: 1fr; }
	.tdc-device-hero-media { max-width: 260px; margin: 0 auto; }
	.tdc-device-hero-buy { max-width: none; }
	.tdc-product-card--row { max-width: none; }

	.single-product div.images.woocommerce-product-gallery { max-width: none; flex-basis: 100%; }
	/*
	 * Gutter-Befund (echtes Geraet/iPhone, 2026-11-11): die Basisregel
	 * (oben, .single-product .summary.entry-summary) setzt min-width:300px
	 * fuer die Tablet-Zweispaltigkeit VOR diesem Breakpoint. Sobald hier
	 * auf Stapel-Darstellung (flex-basis:100%) umgeschaltet wird, erzwingt
	 * dieser Mindestwert die Spalte weiterhin auf mind. 300px - bei
	 * Viewport-Breiten <=340px (z. B. 320px, iPhone SE) ist dafuer in
	 * .single-product div.product (dort bereits korrekt 20px/20px inset)
	 * gar nicht genug Platz, wodurch die Spalte exakt um den fehlenden
	 * Betrag in den rechten Gutter hineinragt (keine Scrollbar sichtbar,
	 * da das sitewide overflow-x:hidden-Sicherheitsnetz das lautlos
	 * abschneidet - der Gutter verschwindet dadurch aber tatsaechlich
	 * sichtbar auf echten schmalen Geraeten). min-width hier auf 0
	 * zuruecksetzen - im Stapel-Layout traegt bereits der Eltern-Flex
	 * (flex-basis:100%) die volle, korrekt inset Breite, kein Mindestwert
	 * noetig.
	 */
	.single-product .summary.entry-summary { flex-basis: 100%; min-width: 0; }
}

@media (max-width: 680px) {
	.tdc-usp-bar { display: none; }

	/* Express-Topbar bleibt sichtbar (Vorgabe Abschnitt 8), aber kompakt:
	   Subline weg, nur Kernaussage + CTA in einer Zeile. */
	.tdc-express-bar-inner { justify-content: space-between; flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; }
	.tdc-express-bar-sub { display: none; }
	.tdc-express-bar-text { min-width: 0; }
	.tdc-express-bar-text strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

	.tdc-header-main { flex-wrap: wrap; padding: var(--tdc-space-sm) 0; }
	.tdc-mobile-toggle {
		display: inline-flex;
		align-items: center; justify-content: center;
		width: 40px; height: 40px;
		border: none; background: none;
		order: -1;
	}
	.tdc-header-search { order: 3; flex-basis: 100%; max-width: none; }
	.tdc-logo { font-size: 13px; }
	.tdc-logo-mark { width: 28px; height: 28px; }
	.tdc-header-actions { gap: var(--tdc-space-md); margin-left: auto; }
	.tdc-header-action span:not(.tdc-cart-count) { display: none; }

	.tdc-main-nav { display: none; }
	.tdc-body.tdc-mobile-nav-open .tdc-main-nav {
		display: block;
		position: fixed;
		inset: 0;
		background: var(--tdc-white);
		z-index: 1000;
		padding: var(--tdc-space-md);
		overflow-y: auto;
	}
	.tdc-body.tdc-mobile-nav-open .tdc-main-nav ul { flex-direction: column; gap: 0; }
	.tdc-body.tdc-mobile-nav-open .tdc-main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--tdc-border); width: 100%; }
	.tdc-mobile-close { display: block; position: absolute; top: var(--tdc-space-md); right: var(--tdc-gutter); background: none; border: none; }

	/* Mobiles Akkordeon statt Desktop-Dropdown-Panel (Phase 2D, Abschnitt 13). */
	.tdc-body.tdc-mobile-nav-open .tdc-nav-item-row a { border-bottom: none; padding: 14px 4px; }
	.tdc-body.tdc-mobile-nav-open .tdc-nav-item-row { border-bottom: 1px solid var(--tdc-border); }
	.tdc-body.tdc-mobile-nav-open .tdc-nav-caret { width: 44px; height: 44px; }
	.tdc-body.tdc-mobile-nav-open .tdc-submenu {
		display: none;
		position: static;
		box-shadow: none;
		border: none;
		border-radius: 0;
		padding: 0 0 0 var(--tdc-space-md);
		min-width: 0;
	}
	.tdc-body.tdc-mobile-nav-open .tdc-nav-has-children.is-open .tdc-submenu { display: block; }
	.tdc-body.tdc-mobile-nav-open .tdc-submenu > li > a { padding: 10px 4px; border-bottom: 1px solid var(--tdc-border); }
	.tdc-body.tdc-mobile-nav-open .tdc-submenu-nested { margin-left: var(--tdc-space-sm); }

	.tdc-hero-badge { padding: 7px 11px; font-size: 9.5px; top: var(--tdc-space-sm); right: var(--tdc-gutter); }
	.tdc-hero-cta { flex-direction: column; }
	.tdc-hero-cta .tdc-btn { width: 100%; }

	.tdc-finder-cta-actions { flex-direction: column; }
	.tdc-finder-cta-actions .tdc-btn { width: 100%; }

	.tdc-usp-grid { grid-template-columns: 1fr 1fr; }
	.tdc-finder-teaser-fields { grid-template-columns: 1fr; }

	.tdc-product-grid:not(.tdc-grid-cols-1), .tdc-type-grid:not(.tdc-grid-cols-1), .tdc-manufacturer-grid:not(.tdc-grid-cols-1), .tdc-device-grid:not(.tdc-grid-cols-1), .tdc-size-grid:not(.tdc-grid-cols-1) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	/* Ein einzelnes Element bekommt hier statt der fixen 220-300px-
	   Kartenbreite (sinnvoll auf Desktop/Tablet) die nahezu volle
	   verfuegbare Mobile-Breite - keine schmale, kuenstlich wirkende
	   Karte mit ungenutztem Platz daneben. */
	.tdc-grid-cols-1 { grid-template-columns: minmax(0, 1fr); }
	.tdc-price-check-table { grid-template-columns: 1fr 1fr; }

	.tdc-footer-grid { grid-template-columns: 1fr; gap: var(--tdc-space-lg); }
	.tdc-footer-bottom { flex-direction: column; }

	.single-product .single_add_to_cart_button {
		display: flex;
		width: 100%;
		margin-left: 0;
		margin-top: var(--tdc-space-sm);
	}
	.single-product table.variations,
	.single-product table.variations tbody,
	.single-product table.variations tr,
	.single-product table.variations th.label,
	.single-product table.variations td.value { display: block; width: 100%; }
	.single-product table.variations th.label { padding: 0 0 4px; }
	.single-product table.variations td.value { margin-bottom: var(--tdc-space-sm); }

	/*
	 * Mobile-Haertungsrunde (Produktseiten, 2026-11-11): die Desktop-
	 * Tabelle erzwang min-width:360px und war dadurch auf schmalen
	 * Screens nur per interner horizontaler Scrollbar vollstaendig
	 * einsehbar (u. a. das Status-Haeckchen ausserhalb des sichtbaren
	 * Bereichs) - per Screenshot bei 320/360px bestaetigt. Ersetzt durch
	 * eine Karten-/Zeilen-Darstellung je Staffel (keine Information geht
	 * verloren, nur anders anegeordnet): data-label auf den Preis-Zellen
	 * (inc/product-page.php) liefert die Beschriftung ueber ::before,
	 * das Status-Haeckchen wird oben rechts in der Karte positioniert.
	 * Dieselben --tdc-*-Tokens wie ueberall sonst, keine neuen Werte.
	 */
	.tdc-tier-table-wrap { overflow-x: visible; }
	.tdc-tier-table, .tdc-tier-table tbody { display: block; width: 100%; min-width: 0; }
	.tdc-tier-table thead { display: none; }
	.tdc-tier-table tr {
		position: relative;
		display: block;
		width: 100%;
		border: 1px solid var(--tdc-border);
		border-radius: var(--tdc-radius);
		padding: var(--tdc-space-sm) var(--tdc-space-md);
		margin-bottom: var(--tdc-space-sm);
		box-sizing: border-box;
	}
	.tdc-tier-table tr.is-active { background: var(--tdc-bg-soft); border-color: var(--tdc-red); }
	.tdc-tier-table tr.is-active td:first-child { border-left: none; padding-left: 0; }
	.tdc-tier-table td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 2px 0;
		border: none;
		font-size: 14px;
	}
	.tdc-tier-table td:first-child { font-weight: 700; font-size: 15px; padding-right: 32px; }
	.tdc-tier-table td[data-label]::before {
		content: attr(data-label);
		font-weight: 600;
		font-size: 12px;
		color: var(--tdc-muted);
		text-transform: uppercase;
		letter-spacing: 0.02em;
	}
	.tdc-tier-table td:last-child {
		position: absolute;
		top: var(--tdc-space-sm);
		right: var(--tdc-space-md);
		padding: 0;
	}
	.tdc-qty-summary { flex-direction: column; gap: 2px; }
}

@media (max-width: 420px) {
	.tdc-product-grid, .tdc-type-grid, .tdc-manufacturer-grid, .tdc-device-grid, .tdc-size-grid { grid-template-columns: minmax(0, 1fr); }
	.tdc-price-check-table { grid-template-columns: 1fr; }
}
