/**
 * PREWI Frontend-Design-System.
 * Master-Referenz: design-system.html (Projekt-Root). Jede Aenderung hier muss dort
 * zuerst nachgezogen/abgeglichen werden - nicht umgekehrt.
 *
 * STOLPERSTEIN (gefunden 2026-08-11): WordPress "Additional CSS" (Customizer,
 * <style id="wp-custom-css">, altes/unabhaengiges Site-CSS mit Tabellen-/Menue-
 * Regeln) definiert zufaellig ebenfalls eine Custom Property namens
 * `--prewi-orange` (dort #ff6600, vermutlich ein liegen gebliebener frueher
 * Entwurf), laedt spaeter als dieses Stylesheet und gewinnt bei der Custom-
 * Property-Aufloesung trotz identischer `:root`-Spezifitaet. `!important` auf
 * der Variable selbst (nicht nur auf den Deklarationen, die sie nutzen) fixt
 * das zuverlaessig. Die "Additional CSS" bewusst NICHT angefasst/bereinigt -
 * gehoert nicht zu diesem Plugin, unklarer Gesamtumfang.
 */

:root {
	--prewi-paper: #FAF8F5;
	--prewi-ink: #1E1B18;
	--prewi-concrete: #857F78;
	--prewi-concrete-light: #E7E3DD;
	--prewi-orange: #FF6502 !important;
	--prewi-orange-deep: #C24C02;
	--prewi-rule: #D8D2C8;
	--prewi-surface: #FFFFFF;

	--prewi-space-1: 4px;
	--prewi-space-2: 8px;
	--prewi-space-3: 12px;
	--prewi-space-4: 16px;
	--prewi-space-5: 24px;
	--prewi-space-6: 32px;

	--prewi-tile-shadow: 0 1px 3px rgba(30, 27, 24, 0.09), 0 8px 20px rgba(30, 27, 24, 0.10);
	--prewi-tile-shadow-hover: 0 2px 4px rgba(30, 27, 24, 0.10), 0 14px 28px rgba(30, 27, 24, 0.15);
}

/* ==========================================================================
   Produkt-Kopf (Single-Produkt-Template, Post 4781)
   Kopfspalte f53b2f9 (neben dem Hauptbild) enthaelt Breadcrumb (b5b879d),
   Kategorie-Badge (108764e), Produkttitel (36140cf), Art.-Nr. (a57ed05) und die
   Button-Reihe (Spalte 5327ef1) - restrukturiert 2026-08-11, siehe fortschritts.md.

   WICHTIGER STOLPERSTEIN (gefunden 2026-08-11, Nutzer meldete "Design nicht 100%
   uebernommen" - Schriften zu klein, Farben falsch): Das Theme (catch-base-pro)
   setzt `html { font-size: 62.5% }` (= 10px statt Browser-Standard 16px). Alle
   `rem`-Werte in dieser Datei wurden 1:1 aus design-system.html uebernommen, das
   KEINEN eigenen html-font-size-Reset hat (dort also regulaer 16px = 1rem) -
   dadurch renderte hier jede rem-Angabe nur zu 62.5% der beabsichtigten Groesse.
   Deshalb ab hier durchgehend Pixel statt rem fuer font-size (Werte = design-
   system.html-rem-Wert * 16, exakt per DevTools computed style gegengeprueft).
   Zusaetzlich gewinnt Elementors Global-Kit-Ueberschrift-Style
   (`.elementor-widget-heading .elementor-heading-title`, setzt
   `--e-global-color-primary`/Orange als Textfarbe) bei GLEICHER Selektor-
   Spezifitaet (0-2-0 vs. 0-2-0) durch spaetere Ladereihenfolge gegen unsere
   Titel-Farbe/-Schriftschnitt - deshalb hier `!important` noetig (analog zum
   bereits dokumentierten `.gmMosaicItem`-Padding-Fall weiter unten).

   ZWEITE KORREKTURRUNDE (2026-08-11, weiteres Nutzer-Feedback): Bildspalte war
   links statt rechts (DV: hero-mock Text-Div zuerst im DOM -> linke Grid-Spalte,
   Foto-Div danach -> rechte Spalte) - Spaltenreihenfolge in _elementor_data
   getauscht. Ausserdem sollen Produkt-Kopf UND Technische Informationen je als
   eigene Kachel (Karte) erscheinen, wie die `.mock`-Rahmen in design-system.html
   (`background: var(--surface); border: 1px solid var(--rule); padding:
   var(--space-6)`) - hier auf den `.elementor-container` der jeweiligen Sektion
   angewandt, nicht auf die volle Section-Breite (sonst reicht der Rahmen bis zum
   Bildschirmrand statt nur um den Inhalt).
   ========================================================================== */

.elementor-element-28b7d11b > .elementor-container {
	background: var(--prewi-surface);
	border: 1px solid var(--prewi-rule);
	padding: var(--prewi-space-6);
}
.elementor-element-f53b2f9 {
	display: flex;
	flex-direction: column;
	gap: var(--prewi-space-2);
}
.elementor-element-b5b879d .elementor-widget-container {
	font-size: 12.8px;
	color: var(--prewi-concrete);
}
.elementor-element-b5b879d a {
	color: var(--prewi-concrete) !important;
	text-decoration: none;
}
.elementor-element-108764e .elementor-widget-container {
	display: inline-block;
	font-family: 'Roboto Slab', Georgia, serif;
	font-weight: 500;
	font-size: 11.52px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--prewi-paper);
	background: var(--prewi-ink);
	padding: var(--prewi-space-1) var(--prewi-space-3);
	margin-top: var(--prewi-space-2);
}
.elementor-element-36140cf {
	margin: var(--prewi-space-2) 0 0;
}
.elementor-element-36140cf .elementor-heading-title {
	font-family: 'Roboto', sans-serif !important;
	font-weight: 900 !important;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: 38.4px;
	line-height: 1;
	color: var(--prewi-ink) !important;
	margin: 0;
}
.elementor-element-a57ed05 .elementor-widget-container {
	font-family: 'Roboto Slab', Georgia, serif;
	color: var(--prewi-concrete);
	font-size: 14.4px;
	margin-top: var(--prewi-space-2);
}
.elementor-element-5327ef1 > .elementor-widget-wrap {
	display: flex;
	gap: var(--prewi-space-4);
	flex-wrap: wrap;
	align-items: flex-start;
	margin-top: var(--prewi-space-3);
}
.elementor-element-5327ef1 > .elementor-widget-wrap > .elementor-widget {
	width: auto;
}

/* ==========================================================================
   Technische Daten (Single-Produkt-Template, Post 4781), seit 2026-10-28 als
   Akkordeon: Kurzcode [prewi_technische_daten] in Spalte f769349 rendert ein
   natives <details class="prewi-technische-daten"> (Marco: „bei product würde
   ich gerne die technischen daten als akkordeon haben“). Vorher 6 einzelne
   prewi_meta_labeled-Widgets. Sektion 3fecfac behaelt den Kachel-Rahmen wie
   der Produkt-Kopf (siehe oben).
   ========================================================================== */

.elementor-element-3fecfac > .elementor-container {
	background: var(--prewi-surface);
	border: 1px solid var(--prewi-rule);
	padding: var(--prewi-space-6);
}
/* Kein Strich oben (Marco, 28.10.2026: „der schwarze strich über dem
   accordeon muss weg“). Zugeklappt eine dezente Flaeche, beim Darueberfahren
   wechselt sie wie ein Knopf — „damit man sieht hier kann man klicken“. */
.prewi-technische-daten {
	border: 0;
}
.prewi-technische-daten > summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	list-style: none;
	padding: var(--prewi-space-4) var(--prewi-space-5);
	font-family: 'Roboto Slab', Georgia, serif;
	font-weight: 500;
	font-size: 18.4px;
	color: var(--prewi-ink);
	transition: background-color .15s ease, color .15s ease;
}
.prewi-technische-daten:not([open]) > summary {
	background: var(--prewi-concrete-light);
}
.prewi-technische-daten > summary::-webkit-details-marker {
	display: none;
}
/* Plus/Minus rechts als Zeichen fuer auf-/zuklappen */
.prewi-technische-daten > summary::after {
	content: '+';
	font-family: Roboto, sans-serif;
	font-size: 24px;
	line-height: 1;
	color: var(--prewi-orange);
}
.prewi-technische-daten[open] > summary::after {
	content: '\2212';
}
.prewi-technische-daten > summary:hover,
.prewi-technische-daten > summary:focus-visible {
	background: var(--prewi-orange);
	color: var(--prewi-ink);
}
.prewi-technische-daten > summary:hover::after,
.prewi-technische-daten > summary:focus-visible::after {
	color: var(--prewi-ink);
}
.prewi-technische-daten > summary:focus-visible {
	outline: 2px solid var(--prewi-orange);
	outline-offset: 2px;
}
.prewi-spec-zeile {
	display: flex;
	flex-wrap: wrap;
	gap: var(--prewi-space-4);
	padding: var(--prewi-space-3) 0;
	border-top: 1px solid var(--prewi-rule);
}
.prewi-spec-label {
	flex: 0 0 160px;
	font-family: 'Roboto Slab', Georgia, serif;
	font-weight: 500;
	font-size: 12.48px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--prewi-concrete);
}
.prewi-spec-value {
	flex: 1 1 200px;
	font-variant-numeric: tabular-nums;
	font-size: 16px;
	color: var(--prewi-ink);
}
.prewi-spec-empty {
	color: var(--prewi-concrete);
}
/* Plattengroesse-Zeile (erste im Datenblatt) als Kern-Mass hervorheben */
.prewi-spec-plattengroesse .prewi-spec-value {
	font-family: 'Roboto Slab', Georgia, serif;
	font-weight: 500;
	font-size: 18.4px;
	color: var(--prewi-orange-deep);
}

@media (max-width: 767px) {
	.prewi-spec-label { flex-basis: 100%; }
}

/* ==========================================================================
   Titel "Ähnliche Produkte" (Single-Produkt-Template, Widget relprodheading)
   Stand in Elementor-Hellblau #6EC1E4 (Kit-Standardfarbe, nie ueberschrieben;
   Marco 2026-10-28: „hat der titel ähnliche produkte noch die falsche farbe“).
   Jetzt Design-System „H2 / Abschnitt“: Roboto 900, Versalien, +2.5 %
   Tracking, 1.4rem = 22.4px (rem x 16, siehe CLAUDE.md), Tinte. !important
   wie beim Produkttitel, weil das Kit-CSS spaeter laedt.
   ========================================================================== */
.elementor-element-relprodheading .elementor-heading-title {
	color: var(--prewi-ink) !important;
	font-family: Roboto, sans-serif !important;
	font-weight: 900 !important;
	text-transform: uppercase;
	letter-spacing: 0.025em;
	font-size: 22.4px !important;
	line-height: 1.1 !important;
}

/* ==========================================================================
   Buttons "Muster anfragen" / "Datenblatt"

   STOLPERSTEIN Farbe/Rahmen (gefunden 2026-08-11): Elementors Global-Kit-Button-
   Style (`.elementor-widget-button .elementor-button` in
   wp-content/uploads/elementor/css/post-4781.css) hat dieselbe Spezifitaet
   (0-2-0) wie `.elementor-element-b700001 .elementor-button` und gewinnt durch
   spaetere Ladereihenfolge - Hintergrund/Rahmenfarbe brauchen deshalb
   `!important` (gleiches Muster wie Titel-Farbe weiter oben).
   STOLPERSTEIN Button-Hoehe/-Ausrichtung (zweiter Fund 2026-08-11, nach erneuter
   Nutzer-Reklamation "nicht auf gleicher Linie"): Beide Buttons waren exakt
   gleich hoch (39.6px, per getBoundingClientRect verifiziert) - das eigentliche
   Problem war ein `margin-top: 10px` von Download Monitor selbst auf
   `.sdm_download_button_box_default`, das den Datenblatt-Button 10px nach unten
   verschob, obwohl der Flex-Container (`align-items:center`) die WRAPPER-Divs
   zentriert, nicht die inneren `<a>`-Elemente direkt. `margin:0 !important` auf
   den Download-Monitor-eigenen Wrapper-Klassen behebt das. `line-height: 1` war
   fuer die Hoehen-GLEICHHEIT bereits ausreichend, loeste aber nicht den
   vertikalen Versatz - beide Fixes zusammen noetig.
   ========================================================================== */

.elementor-element-b700001 .elementor-button,
.elementor-element-2804f9c2 .sdm_download {
	font-family: 'Roboto', sans-serif;
	font-weight: 700;
	font-size: 13.6px;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 12px 32px;
	border-radius: 0;
	display: inline-block;
	text-decoration: none;
	transition: transform 140ms ease, background-color 140ms ease;
}
.elementor-element-b700001 .elementor-button {
	background-color: var(--prewi-orange) !important;
	border: 1px solid var(--prewi-orange) !important;
	color: #1a0e00 !important;
}
.elementor-element-b700001 .elementor-button:hover {
	background-color: var(--prewi-orange-deep) !important;
	border-color: var(--prewi-orange-deep) !important;
	color: #fff !important;
	transform: translateY(-1px);
}
.elementor-element-2804f9c2 .sdm_download_button_box_default,
.elementor-element-2804f9c2 .sdm_download_link {
	display: inline-block;
	margin: 0 !important;
}
.elementor-element-2804f9c2 .sdm_download {
	background: transparent !important;
	border: 1px solid var(--prewi-ink) !important;
	color: var(--prewi-ink) !important;
}
.elementor-element-2804f9c2 .sdm_download:hover {
	background: var(--prewi-ink) !important;
	color: var(--prewi-paper) !important;
	transform: translateY(-1px);
}

/* ==========================================================================
   Bildergalerie ([prewi_gallery]-Shortcode, prewi_gallery_ids Attachment-IDs)
   Echtes CSS-Grid statt Grand Media's JS-Mosaic (Plugin seit 2026-08-12
   abgeloest, siehe fortschritts.md) - 1:1 Umsetzung von .gallery-grid/
   .gallery-item aus design-system.html "Bildergalerie"-Mock.
   ========================================================================== */

.elementor-element-2827d8fc {
	margin-top: var(--prewi-space-6);
}
.prewi-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--prewi-space-4);
}
.prewi-gallery-item {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	box-shadow: var(--prewi-tile-shadow);
	transition: transform 140ms ease, box-shadow 140ms ease;
}
.prewi-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.prewi-gallery-item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 55%);
	opacity: 0;
	transition: opacity 140ms ease;
}
.prewi-gallery-item .prewi-gallery-zoom-hint {
	position: absolute;
	right: var(--prewi-space-3);
	bottom: var(--prewi-space-3);
	width: 28px;
	height: 28px;
	border: 1.5px solid #fff;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	line-height: 1;
	opacity: 0;
	transition: opacity 140ms ease;
}
.prewi-gallery-item:hover {
	box-shadow: var(--prewi-tile-shadow-hover);
	transform: translateY(-2px);
}
.prewi-gallery-item:hover::after,
.prewi-gallery-item:hover .prewi-gallery-zoom-hint {
	opacity: 1;
}

/* ==========================================================================
   Kategorie-Archiv (Theme-Standardausgabe, matrizen_kategorie)
   ========================================================================== */

#main.site-main {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--prewi-space-5);
	align-items: start;
}
#main.site-main > .page-header {
	grid-column: 1 / -1;
}
#main.site-main > article.hentry {
	margin: 0;
}
.archive-post-wrap {
	background: #fff;
	padding: var(--prewi-space-4);
	box-shadow: var(--prewi-tile-shadow);
	transition: transform 140ms ease, box-shadow 140ms ease;
}
.archive-post-wrap:hover {
	box-shadow: var(--prewi-tile-shadow-hover);
	transform: translateY(-2px);
}
.archive-post-wrap .featured-image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	margin: calc(var(--prewi-space-4) * -1) calc(var(--prewi-space-4) * -1) var(--prewi-space-3);
	display: block;
}
.archive-post-wrap .featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.archive-post-wrap .entry-header {
	margin: 0;
}
.archive-post-wrap .entry-title {
	font-family: 'Roboto', sans-serif;
	font-weight: 700;
	font-size: 15.2px;
	margin: 0;
}
.archive-post-wrap .entry-title a,
.archive-post-wrap .entry-title a:hover,
.archive-post-wrap .entry-title a:focus {
	color: var(--prewi-ink) !important;
	text-decoration: none;
}
.archive-post-wrap .entry-summary,
.archive-post-wrap .entry-meta,
.archive-post-wrap .entry-footer {
	display: none;
}

/* ==========================================================================
   Kategorie-Archiv-Elementor-Template (Staging Post 6119, "cards"-Skin) –
   nutzt Elementors eigenes Posts-Widget statt der Theme-Standardausgabe oben,
   deshalb eigene Selektoren (elementor-post__*, theme-archive-title). Lokal
   nicht vorhanden (siehe CLAUDE.md), Farben waren bislang unbehandelte
   Elementor-Kit-Default-Farben (Blau/Gruen statt PREWI-Palette).
   ========================================================================== */
.elementor-widget-theme-archive-title .elementor-heading-title {
	color: var(--prewi-ink) !important;
}
.elementor-post__read-more {
	color: var(--prewi-orange) !important;
}
.elementor-post__read-more:hover,
.elementor-post__read-more:focus {
	color: var(--prewi-orange-deep) !important;
}
