/* ── Runde 4 (23.10.2026): Claus' Freigabevorschau v2 vom 21.10. („00_Hier_starten“, Punkte 01–10) ──
   Nur die dort ausdrücklich genannten Änderungen; Werte aus seiner Vorschau. Wird nach Runde 3 geladen.
   Punkt 02 (NUI-Markentext) und 09 („Alle Themen entdecken“ gefüllt) stehen im Inhalt von Seite 313. */

/* 01 Suchfeld im Kopf: Platzhalter „Produkt, Thema oder Artikelnummer“ vollständig, Kopf bleibt einzeilig.
   Claus' Vorschau zeigt die Startseite; der Kopf ist auf allen Seiten derselbe, darum shopweit.
   Unter 1100 px gilt der bisherige Stand (bis 1024 px Lupe, Runde 3 §13.1). */
@media (min-width: 1100px) {
	.temana-servicebar__wege .temana-kopfsuche {
		flex: 1 1 345px; width: 345px; min-width: min(345px, 25vw); max-width: 380px; box-sizing: border-box;
	}
	.temana-servicebar__wege .temana-kopfsuche input { width: 100%; min-width: 0; white-space: nowrap; text-overflow: clip; }
}

/* 03 „Zu Wissen & Anwendung“ am Desktop mittig unter den fünf Karten (Raster 3 + 2 aus Runde 3 §10). */
@media (min-width: 900px) {
	.home .temana-wissenbereiche + .wp-block-buttons { justify-content: center; }
}

/* 04 Mobile Shopvorteile: 2 × 2 bleibt, Rahmen bis ca. 16 px an den Bildschirmrand, Innenabstände etwas kleiner.
   !important wie in Claus' Vorschau: die Block-Layouts von WordPress setzen Breite und Rand selbst mit !important. */
@media (max-width: 599px) {
	.home .temana-vorteile-band {
		width: calc(100vw - 32px) !important; max-width: calc(100vw - 32px) !important;
		margin-inline: calc(50% - 50vw + 16px) !important; padding-inline: 0; box-sizing: border-box;
	}
	.home .temana-vorteile-band > .wp-block-group__inner-container { width: 100%; max-width: 100%; }
	.home .temana-vorteile { width: 100%; }
	.home .temana-vorteile li { padding: 10px 9px; }
}

/* 05 Mobile Produktkarten: Knöpfe gleich hoch, Beschriftung mittig, 14 px Abstand zum MwSt.-/Versandhinweis
   darüber (Runde 3 hatte den Abstand unter dem Knopf). */
@media (max-width: 599px) {
	.home .temana-startprodukte ul.products li.product .product-action-wrap { margin-top: auto; }
	.home .temana-startprodukte ul.products li.product .product-action-wrap .button {
		display: flex; align-items: center; justify-content: center; text-align: center;
		height: 58px; min-height: 58px; padding: 8px 6px; box-sizing: border-box; white-space: normal;
		margin: 14px 0 0;
	}
}

/* 10 Aktiver Unterpunkt im Desktop-Menü: Primärgrün mit weißer Schrift statt schwarz; das hellgrüne
   Mouseover aus Runde 3 §1.1 bleibt. */
@media (min-width: 1025px) {
	.header-navigation .header-menu-container ul ul.sub-menu li.menu-item.current-menu-item > a:not(:hover):not(:focus-visible),
	.header-navigation .header-menu-container ul ul.sub-menu li.menu-item.current_page_item > a:not(:hover):not(:focus-visible),
	.header-navigation .header-menu-container ul ul.sub-menu li.menu-item.current-menu-ancestor > a:not(:hover):not(:focus-visible) {
		background: var(--gruen, #2B723D); color: #fff;
	}
	.header-navigation .header-menu-container ul ul.sub-menu li.menu-item.current_page_item > a:hover,
	.header-navigation .header-menu-container ul ul.sub-menu li.menu-item.current_page_item > a:focus-visible,
	.header-navigation .header-menu-container ul ul.sub-menu li.menu-item.current-menu-item > a:focus-visible {
		background: #EEF6EE; color: #2B723D;
	}
}

/* 08 Live-Suche: Kurzinfo bei allen Marken höchstens zwei Zeilen, Überlänge endet mit „…“. Quelle ist der
   WooCommerce-Kurztext (suche.js); Name, Preis und Artikelnummer bleiben vollständig. */
.temana-suche__highlight {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}

/* 06/07 Schlusszeile im Fuß: Copyright links, Zahlungslogos mittig (erscheinen erst mit aktiver Zahlart und
   offizieller Logodatei), Gewährleistungslink rechts – alles auf einer Höhe. Bis 950 px untereinander. */
.temana-fuss__abschluss { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px 16px; align-items: center; }
.temana-fuss__abschluss .temana-fuss__copyright { grid-column: 1; text-align: left; }
.temana-fuss__abschluss .temana-fuss__zahlen { grid-column: 2; justify-content: center; }
.temana-fuss__abschluss .temana-fuss__gewaehrleistung-knopf { grid-column: 3; justify-self: end; text-align: right; }
@media (max-width: 950px) {
	.temana-fuss__abschluss { grid-template-columns: minmax(0, 1fr); justify-items: start; }
	.temana-fuss__abschluss > * { grid-column: 1 !important; }
	.temana-fuss__abschluss .temana-fuss__zahlen { justify-content: flex-start; }
	.temana-fuss__abschluss .temana-fuss__gewaehrleistung-knopf { justify-self: start; text-align: left; }
}

/* 07 Gewährleistung: Link im Fuß öffnet ein Fenster mit der offiziellen EU-Mitteilung und dem EU-Link. */
.temana-fuss__gewaehrleistung-knopf {
	appearance: none; display: block; max-width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0;
	background: none; box-shadow: none; color: var(--creme); font: inherit; font-size: 14px; font-weight: 400;
	text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.temana-fuss__gewaehrleistung-knopf:hover,
.temana-fuss__gewaehrleistung-knopf:focus-visible { background: none; color: var(--weiss); }
.temana-fuss__gewaehrleistung-knopf:focus-visible { outline: 2px solid var(--creme); outline-offset: 4px; }

.temana-gewaehrleistung-fenster {
	width: min(92vw, 800px); max-width: 800px; max-height: min(90dvh, 1000px); padding: 0; box-sizing: border-box;
	border: 1px solid #E0DED6; border-radius: 15px; overflow: hidden;
	background: #FFFCF7; color: var(--text, #222722); box-shadow: 0 24px 90px rgba(0, 0, 0, .28);
}
.temana-gewaehrleistung-fenster::backdrop { background: rgba(13, 31, 20, .7); }
.temana-gewaehrleistung-fenster__kopf {
	display: flex; align-items: center; justify-content: space-between; gap: 18px;
	padding: 18px 24px; border-bottom: 1px solid #E6E2D9;
}
.temana-fuss .temana-gewaehrleistung-fenster__kopf h2 { margin: 0; font-size: 19px; line-height: 1.3; color: var(--text, #222722); }
.temana-fuss .temana-gewaehrleistung-fenster__zu {
	min-width: 44px; min-height: 44px; padding: 4px 9px; border: 0; background: transparent;
	box-shadow: none; border-radius: 8px; color: var(--gruen, #2B723D); font-size: 23px; line-height: 1; cursor: pointer;
}
.temana-fuss .temana-gewaehrleistung-fenster__zu:hover,
.temana-fuss .temana-gewaehrleistung-fenster__zu:focus-visible { background: #EEF6EE; color: var(--gruen, #2B723D); }
.temana-gewaehrleistung-fenster__inhalt {
	overflow: auto; max-height: calc(min(90dvh, 1000px) - 80px); padding: 20px 24px 28px; overscroll-behavior: contain;
}
/* Offizielle EU-Mitteilung unverändert und vollständig – nur auf die Breite begrenzt, nie beschnitten. */
.temana-gewaehrleistung-fenster__inhalt img { display: block; width: 100%; max-width: 650px; height: auto; margin: 0 auto; object-fit: contain; }
.temana-gewaehrleistung-fenster__inhalt p { margin: 12px 0 0; text-align: center; font-size: 14px; overflow-wrap: anywhere; }
.temana-gewaehrleistung-fenster__inhalt a { color: var(--gruen, #2B723D); }
@media (max-width: 599px) {
	.temana-gewaehrleistung-fenster { width: calc(100vw - 24px); max-height: 92dvh; }
	.temana-gewaehrleistung-fenster__kopf { padding: 8px 8px 8px 14px; }
	.temana-fuss .temana-gewaehrleistung-fenster__kopf h2 { font-size: 16px; }
	.temana-gewaehrleistung-fenster__inhalt { max-height: calc(92dvh - 66px); padding: 12px 12px 18px; }
}

/* 06 Zahlungslogos in der Schlusszeile (Maße aus Claus' Vorschau): gleich große weiße Kacheln, 5 px Abstand,
   höchstens 350 px breit, mittig. Die Logos selbst bleiben unverändert (offizielle Dateien aus den Plugins
   von Stripe und PayPal); die Kachel sorgt nur dafür, dass alle sieben gleich groß und auf Grün lesbar sind. */
.temana-fuss__abschluss .temana-fuss__zahlen { max-width: 350px; }
.temana-fuss .temana-fuss__zahlen .temana-zahlungslogos { justify-content: center; gap: 5px; }
.temana-fuss .temana-fuss__zahlen .temana-zahlungslogos li {
	display: flex; align-items: center; justify-content: center; width: 44px; height: 29px; padding: 2px;
	box-sizing: border-box; background: var(--weiss, #fff); border-radius: 3px; overflow: hidden;
}
.temana-fuss .temana-fuss__zahlen .temana-zahlungslogos img { width: 100%; height: 100%; max-height: 25px; object-fit: contain; }
@media (max-width: 950px) {
	.temana-fuss .temana-fuss__zahlen .temana-zahlungslogos { justify-content: flex-start; }
}

/* 06 seit 24.10.2026 (Michael: „ja“): im Fuß Claus' sieben Original-SVG-Karten wie im Warenkorb (B3). Rahmen und
   Fläche stecken in der Karte – keine weiße Kachel mehr; Breite 44 px und 5 px Abstand wie in seiner Fuß-Vorschau. */
.temana-fuss .temana-fuss__zahlen .temana-zahlungslogos--karten li {
	width: 44px; height: auto; aspect-ratio: 144 / 100; padding: 0; background: transparent; border-radius: 0; overflow: visible;
}
.temana-fuss .temana-fuss__zahlen .temana-zahlungslogos--karten img {
	display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 144 / 100; object-fit: contain;
}
