/*
Theme Name: Storefront TDKV
Description: TDKV Labs Branding auf Basis von Storefront (WooCommerce).
Author: TDKV Labs
Template: storefront
Version: 1.0.11
Text Domain: storefront-tdkv
*/

/* ==========================================================================
   IBM Plex Sans Condensed - selbst gehostet (DSGVO, kein externer Aufruf)
   ========================================================================== */

@font-face {
	font-family: 'IBM Plex Sans Condensed';
	src: url('fonts/IBMPlexSansCondensed-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'IBM Plex Sans Condensed';
	src: url('fonts/IBMPlexSansCondensed-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'IBM Plex Sans Condensed';
	src: url('fonts/IBMPlexSansCondensed-SemiBold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'IBM Plex Sans Condensed';
	src: url('fonts/IBMPlexSansCondensed-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   TDKV Labs Markenfarben (Styleguide-Kurzfassung, Redesign 2026-08 Final)
   Primaer:  Precision Graphite #132B34
   Akzent 1: Palladium Blue   #4B6F78
   Akzent 2: Assay Gold       #B79A5B
   Neutral:  Clinical White   #FFFFFF
   Neutral:  Soft Lab Grey    #E8ECEA
   ========================================================================== */

:root {
	--tdkv-graphite: #132B34;
	--tdkv-blue: #4B6F78;
	--tdkv-gold: #B79A5B;
	--tdkv-white: #FFFFFF;
	--tdkv-grey: #E8ECEA;
}

body {
	color: var(--tdkv-graphite);
	background-color: var(--tdkv-white);
	font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.woocommerce ul.products li.product .price {
	font-family: 'IBM Plex Sans Condensed', "Arial Narrow", Arial, sans-serif;
	font-weight: 600;
	color: var(--tdkv-graphite);
	letter-spacing: 0.01em;
}

a {
	color: var(--tdkv-blue);
}
a:hover,
a:focus {
	color: var(--tdkv-graphite);
}

/* Header */
.site-header {
	background-color: var(--tdkv-white);
	border-bottom: 1px solid var(--tdkv-grey);
}
.site-branding img {
	max-height: 42px;
	width: auto;
}
.site-header-cart .cart-contents {
	color: var(--tdkv-graphite);
}

/* Primaere Navigation */
.main-navigation ul li a {
	color: var(--tdkv-graphite);
	font-family: 'Source Sans 3', sans-serif;
	font-weight: 600;
	text-transform: none;
}
.main-navigation ul li a:hover {
	color: var(--tdkv-blue);
}

/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.storefront-primary-navigation .cart-contents {
	background-color: var(--tdkv-graphite);
	color: var(--tdkv-white);
	border-radius: 2px;
	font-family: 'Source Sans 3', sans-serif;
	font-weight: 600;
	letter-spacing: 0.02em;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background-color: var(--tdkv-blue);
	color: var(--tdkv-white);
}

/* Akzent: Assay Gold als schmaler Trenner/Marker, sparsam gemaess Styleguide */
.woocommerce span.onsale {
	background-color: var(--tdkv-gold);
	color: var(--tdkv-graphite);
	font-family: 'Source Sans 3', sans-serif;
	font-weight: 700;
}
.storefront-primary-navigation {
	border-top: 2px solid var(--tdkv-gold);
}

/* Mobil/Tablet: Die goldene Trennlinie liegt im Handheld-Layout am oberen
   Rand des Nav-Wrappers, der dort Logo-Zeile und Warenkorb-Zeile gemeinsam
   umschliesst - dadurch erscheint sie ueber statt unter dem Logo. Auf
   kleinen Bildschirmen daher stattdessen ueber der Warenkorb-Zeile
   platzieren, mit etwas Abstand nach oben und unten. */
@media (max-width: 767px) {
	.storefront-primary-navigation {
		border-top: none;
	}
	.site-header-cart {
		border-top: 2px solid var(--tdkv-gold);
		margin-top: 0.6em;
		padding-top: 0.6em;
	}
}

/* Navigationsleiste: Hoehe an die Warenkorb-Vorschau angleichen */
.main-navigation ul.menu > li > a {
	line-height: 1.2;
	padding: 0.45em 1em;
}

/* Warenkorb-Anzeige in der Navigationsleiste: eckiger Block, so breit wie die Suche darueber */
.site-header-cart {
	display: flex;
	align-items: center;
	height: auto;
}
.site-header-cart li {
	display: flex;
	align-items: center;
}
.site-header-cart li:first-child {
	flex: 1 1 auto;
}
.site-header-cart .cart-contents {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45em;
	width: 100%;
	box-sizing: border-box;
	padding: 0.5em 1.1em;
	margin: 0;
	line-height: 1.2;
	border-radius: 2px;
	font-size: 0.95rem;
}
.site-header-cart .cart-contents .amount {
	color: var(--tdkv-white);
}
.site-header-cart .cart-contents .count {
	opacity: 0.85;
}
.site-header-cart .cart-contents::after {
	height: auto;
	line-height: 1;
	float: none;
	align-self: center;
}

/* Fusszeile */
#colophon.site-footer {
	background-color: var(--tdkv-graphite);
	color: var(--tdkv-grey);
}
#colophon.site-footer a {
	color: var(--tdkv-grey);
}
#colophon.site-footer a:hover {
	color: var(--tdkv-gold);
}

/* Preise */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--tdkv-blue);
}

/* Hero-Bereich auf der Startseite */
.tdkv-hero {
	background-color: var(--tdkv-graphite);
	color: var(--tdkv-white);
	padding: 4.5em 1.5em;
	text-align: center;
	margin-bottom: 2.5em;
}
.tdkv-hero__inner {
	max-width: 640px;
	margin: 0 auto;
}
.tdkv-hero__title {
	color: var(--tdkv-white);
	font-size: 2.4rem;
	margin: 0 0 0.5em;
}
.tdkv-hero__text {
	color: var(--tdkv-grey);
	font-size: 1.05rem;
	line-height: 1.5;
	margin: 0 0 1.5em;
}
.tdkv-hero__cta {
	display: inline-block;
	background-color: var(--tdkv-gold);
	color: var(--tdkv-graphite);
	font-weight: 700;
	padding: 0.7em 1.8em;
	border-radius: 2px;
	text-decoration: none;
	letter-spacing: 0.02em;
}
.tdkv-hero__cta:hover {
	background-color: var(--tdkv-white);
	color: var(--tdkv-graphite);
}

/* Doppelten Seitentitel auf der Startseite ausblenden (Hero uebernimmt die Ueberschrift) */
.home .entry-title {
	display: none;
}

/* Leerer Header-Wrapper auf Shop-Archiven: Titel ist per Filter deaktiviert,
   der Wrapper bleibt aber leer im Markup und wuerde durch sein Padding eine
   Luecke ueber der Sortierzeile erzeugen. */
.woocommerce-products-header {
	display: none;
}

/* Breadcrumb: uebermaessigen Abstand nach unten (Storefront-Default) kappen,
   damit direkt darunter die Sortierzeile ohne grosse Luecke ansetzt. */
.storefront-breadcrumb {
	margin-bottom: 0.5em;
	padding-bottom: 0;
}

/* Sortier-/Ergebniszeile: statt zweier floatender Bloecke ein klarer,
   vollbreiter Balken oberhalb des Produktgrids. */
.storefront-sorting {
	clear: both;
	overflow: visible;
}
.storefront-sorting .woocommerce-ordering,
.storefront-sorting .woocommerce-result-count {
	float: none;
	margin: 0;
}
.storefront-sorting {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5em 1em;
}
/* Leerer Hinweis-Wrapper (nur relevant, wenn WooCommerce-Notices anstehen)
   nimmt sonst unsichtbar den ersten Flex-Platz ein und verschiebt die
   Sortierung nach rechts statt an den linken Rand. */
.storefront-sorting .woocommerce-notices-wrapper {
	flex: 0 0 100%;
}
.storefront-sorting .woocommerce-ordering {
	order: 1;
}
.storefront-sorting .woocommerce-result-count {
	order: 2;
	margin-left: auto;
}

/* Volle Breite ohne Sidebar: Produktgrid und Seiteninhalt zentrieren */
.storefront-full-width-content ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 2em;
}
.storefront-full-width-content ul.products li.product {
	width: auto;
	margin: 0;
	float: none;
	text-align: center;
}
.storefront-full-width-content ul.products li.product .button {
	white-space: nowrap;
}

/* WooCommerce-Kernel setzt auf ul.products einen Clearfix (::before/::after
   mit content:"" und display:table) fuer das alte Float-Layout. Unter
   unserem CSS-Grid wird dieser leere Pseudo-Element-Block selbst zu einem
   Grid-Item und belegt die erste Zelle - dadurch rutscht jedes Produkt eine
   Position weiter und die erste Kachel jeder Zeile bleibt leer. */
.storefront-full-width-content ul.products::before,
.storefront-full-width-content ul.products::after {
	content: none;
	display: none;
}

/* Versandhinweis oberhalb des Headers */
.tdkv-shipping-notice {
	background-color: var(--tdkv-gold);
	color: var(--tdkv-graphite);
	font-family: 'Source Sans 3', sans-serif;
	font-weight: 600;
	font-size: 0.85rem;
	text-align: center;
	padding: 0.5em 1em;
}

/* Research-only Hinweis (Pflichtkommunikation, siehe Styleguide Don'ts):
   oben im Footer, grauer Balken ueber dem Copyright-/WooCommerce-Credit. */
.tdkv-research-notice {
	background-color: var(--tdkv-grey);
	color: var(--tdkv-graphite);
	font-family: 'Source Sans 3', sans-serif;
	font-size: 0.85rem;
	text-align: center;
	padding: 0.5em 1em;
	margin: 0;
}

/* Copyright- und WooCommerce-Credit unten rechts im Footer */
.site-info {
	text-align: right;
}
