/*
Theme Name: Trägerwerk (Storefront Child)
Template: storefront
Description: Child-Theme fuer den Stahlbauteile-Shop. Markendesign aus dem
             finalen Logo-Entwurf ("Traegerwerk Logo - Final", claude.ai/design):
             Schrift Jost, dunkles Blaugrau als Textfarbe, Orange/Rot/Grau als
             vierteilige Akzentleiste. Bildmaterial von
             forster-unternehmensgruppe.de wird NICHT uebernommen, nur die
             Stilsprache (Zertifikatsleiste, Adressblock im Footer).
Version: 0.3.0
Text Domain: stbk-theme
*/

:root {
	--stbk-bg: #ffffff;
	--stbk-text: #3e4a52;
	--stbk-text-muted: #6b747a;
	--stbk-text-faint: #9aa3a8;
	--stbk-border: #e2e5e7;
	--stbk-border-faint: #ececec;
	--stbk-surface: #fff;
	--stbk-surface-alt: #f7f6f3;
	--stbk-dark: #2e383e;
	--stbk-accent: #e8622c;
	--stbk-accent-dark: #c94f1e;
	--stbk-accent-bg: #fdece3;
	--stbk-accent-text: #c94f1e;
	--stbk-accent-2: #a9273a;
	--stbk-link: #3e4a52;
	--stbk-link-hover: #e8622c;
	--stbk-danger: #a9273a;

	--stbk-font-display: 'Jost', sans-serif;
	--stbk-font-body: 'Jost', sans-serif;
	--stbk-font-mono: 'Jost', sans-serif;
}

/* Wortmarke "TRAEGERWERK / STAHLSHOP" im Header samt vierfarbiger
   Markenleiste und Forster-Zeile, exakte Anordnung aus dem finalen
   Logo-Design ("Traegerwerk Logo - Final", claude.ai/design). Ersetzt
   Storefronts Standard-Site-Title, siehe functions.php:
   storefront_site_title_or_logo(). */
.stbk-logo {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	text-decoration: none;
	line-height: 1;
	padding: 10px 0;
}
.stbk-logo-word {
	font-family: var(--stbk-font-display);
	font-weight: 700;
	font-size: 38px;
	letter-spacing: 0.005em;
	color: var(--stbk-text) !important;
}
.stbk-logo-sub {
	font-family: var(--stbk-font-display);
	font-weight: 400;
	font-size: 12px;
	letter-spacing: 0.3em;
	color: var(--stbk-text-faint) !important;
	margin-top: 4px;
}
.stbk-logo-bar {
	display: flex;
	width: 100%;
	height: 4px;
	margin-top: 16px;
}
.stbk-logo-bar span {
	flex: 1;
}
.stbk-logo-bar span:nth-child(1) { background: var(--stbk-text); }
.stbk-logo-bar span:nth-child(2) { background: var(--stbk-accent); }
.stbk-logo-bar span:nth-child(3) { background: var(--stbk-accent-2); }
.stbk-logo-bar span:nth-child(4) { background: var(--stbk-text-faint); }
.stbk-logo-tagline {
	font-family: var(--stbk-font-display);
	font-weight: 400;
	font-size: 13px;
	letter-spacing: 0;
	color: var(--stbk-text-muted) !important;
	margin-top: 14px;
}

body {
	background: var(--stbk-bg);
	color: var(--stbk-text);
	font-family: var(--stbk-font-body);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, .site-title,
.stbk-display {
	font-family: var(--stbk-font-display);
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--stbk-text);
}

a {
	color: var(--stbk-link);
}
a:hover {
	color: var(--stbk-link-hover);
}

/* Hauptnavigation: Grossbuchstaben, duenne Linie, angelehnt an Forster */
.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a {
	text-transform: uppercase;
	font-size: 13.5px;
	font-weight: 400;
	letter-spacing: 0.03em;
}
/* Forster hat einen schlichten, weissen Header -- Storefronts dunkles
   Standard-Farbschema hier auf hell umstellen. */
.site-header,
.site-header .storefront-primary-navigation,
.storefront-handheld-footer-bar {
	background: #fff;
	border-bottom: 1px solid var(--stbk-border);
}

/* Fixierter Header: bleibt beim Scrollen sichtbar. Ab stbk-scrolled
   schrumpft der Logo-Block (Tagline/Markenleiste ausgeblendet), damit die
   Navigation nicht dauerhaft zu viel Bildschirmhoehe beansprucht. */
/* Storefront setzt overflow-x:hidden auf body/.site als Anti-Scroll-Schutz --
   das macht diese Elemente zum "naechsten Scroll-Container" und bricht
   position:sticky im Header. Schutz stattdessen auf html verlagern, das
   verhaelt sich weiterhin wie normales Viewport-Scrolling. */
html {
	overflow-x: hidden;
}
body,
.site {
	overflow-x: visible;
	overflow-y: visible;
}

/* Storefronts woocommerce.css setzt "overflow: hidden" auf
   .single-product div.product (urspruenglich ein Clearfix fuer die
   float-basierte Bild/Text-Spalte). Bricht aus demselben Grund wie oben
   position:sticky -- hier fuer den 3D-Viewer im Konfigurator
   (.stbk-viewer-panel, siehe configurator.css), der beim Scrollen durch
   die Konfigurationsspalte sichtbar bleiben soll. Unser Layout ersetzt die
   Standard-Galerie ohnehin komplett (kein Float-Clearfix mehr noetig).*/
.single-product div.product {
	overflow: visible;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	transition: box-shadow .2s ease;
}
body.admin-bar .site-header {
	top: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}
.site-header.stbk-scrolled {
	box-shadow: 0 2px 12px rgba(46, 56, 62, 0.1);
}
.site-header.stbk-scrolled .stbk-logo {
	padding: 8px 0;
}
.site-header.stbk-scrolled .stbk-logo-word {
	font-size: 22px;
}
.site-header.stbk-scrolled .stbk-logo-sub {
	font-size: 8px;
	margin-top: 2px;
}
.site-header.stbk-scrolled .stbk-logo-bar,
.site-header.stbk-scrolled .stbk-logo-tagline {
	display: none;
}
.site-header .site-branding .site-title a,
.site-header .site-branding .site-description {
	color: var(--stbk-text) !important;
}

/* Auf schmalen Bildschirmen ist neben dem Menue-Button nicht genug Platz fuer
   die volle 38px-Wortmarke -- ohne Anpassung ragt "TRAEGERWERK" ueber den
   Viewport-Rand hinaus und wird dort abgeschnitten (html hat overflow-x:hidden,
   siehe oben). Groesse an die tatsaechlich verfuegbare Breite anpassen. */
@media screen and (max-width: 600px) {
	.stbk-logo-word {
		font-size: 22px;
	}
	.stbk-logo-sub {
		font-size: 9px;
		letter-spacing: 0.2em;
	}
}
.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a {
	color: var(--stbk-text);
}
.main-navigation ul.menu > li > a:hover,
.main-navigation ul.nav-menu > li > a:hover {
	color: var(--stbk-accent);
}

.woocommerce ul.products li.product .price,
.stbk-price {
	font-family: var(--stbk-font-mono);
	color: var(--stbk-accent);
	font-weight: 500;
}

.button, button, input[type="submit"] {
	background: var(--stbk-dark);
	color: #fff;
	border: none;
	padding: 14px 24px;
	border-radius: 3px;
	font-weight: 500;
	cursor: pointer;
}
.button:hover, button:hover, input[type="submit"]:hover {
	background: var(--stbk-accent);
}

.button.alt, .single_add_to_cart_button {
	background: var(--stbk-accent) !important;
}
.button.alt:hover, .single_add_to_cart_button:hover {
	background: var(--stbk-accent-dark) !important;
}

.stbk-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	background: var(--stbk-accent);
	color: #fff;
	font-family: var(--stbk-font-mono);
	font-size: 12px;
	font-weight: 500;
}

@keyframes stbk-toast-in {
	from { opacity: 0; transform: translate(-50%, 10px); }
	to { opacity: 1; transform: translate(-50%, 0); }
}

.stbk-toast {
	position: fixed;
	bottom: 28px;
	left: 50%;
	transform: translate(-50%, 10px);
	background: var(--stbk-dark);
	color: #fff;
	padding: 14px 24px;
	border-radius: 3px;
	font-size: 14.5px;
	font-weight: 500;
	z-index: 100;
	opacity: 0;
	transition: opacity .2s ease-out, transform .2s ease-out;
}

.stbk-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
	animation: stbk-toast-in .2s ease-out;
}

/* Produktseiten mit profile_type: Bildergalerie entfernt (functions.php),
   3D-Viewer + Formular nehmen die volle Breite der Summary-Spalte ein. */
.single-product .product:not(:has(.images)) .summary {
	width: 100% !important;
	float: none !important;
}

/* Homepage / Kategorie-Grid */
.stbk-hero {
	max-width: 1280px;
	margin: 0 auto;
	padding: 72px 32px 90px;
}
.stbk-hero-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: center;
}
.stbk-hero-visual svg {
	width: 100%;
	height: auto;
	display: block;
}
@media (min-width: 900px) {
	.stbk-hero-grid {
		grid-template-columns: 1.15fr 1fr;
	}
}
@media (max-width: 640px) {
	.stbk-hero-visual {
		display: none;
	}
}

.stbk-steps {
	background: var(--stbk-surface-alt);
	border-top: 1px solid var(--stbk-border);
	border-bottom: 1px solid var(--stbk-border);
}

.stbk-steps-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 40px 32px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.stbk-step-num {
	font-family: var(--stbk-font-mono);
	font-size: 13px;
	color: var(--stbk-accent);
	font-weight: 500;
	margin-bottom: 8px;
}

/* Eyebrow + Titel + duenne Trennlinie, angelehnt an Forsters
   "FORSTER UNTERNEHMENSGRUPPE / REFERENZEN"-Ueberschriftenmuster */
.stbk-section-heading {
	text-align: center;
	max-width: 1280px;
	margin: 0 auto;
	padding: 56px 32px 8px;
}
.stbk-section-eyebrow {
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.06em;
	color: var(--stbk-text-faint);
	margin-bottom: 6px;
}
.stbk-section-title {
	font-family: var(--stbk-font-display);
	font-weight: 600;
	font-size: 28px;
	color: var(--stbk-text);
	margin: 0 0 16px;
}
.stbk-section-title::after {
	content: '';
	display: block;
	width: 48px;
	height: 2px;
	background: var(--stbk-accent);
	margin: 16px auto 0;
}

.stbk-profile-grid {
	max-width: 1280px;
	margin: 0 auto;
	padding: 32px 32px 64px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
}

.stbk-profile-card {
	position: relative;
	background: var(--stbk-surface);
	border: 1px solid var(--stbk-border);
	border-radius: 6px;
	padding: 24px 20px 20px;
	display: block;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(46, 56, 62, 0.04);
	transition: border-color .15s, box-shadow .15s, transform .15s;
}

.stbk-profile-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--stbk-text);
}
.stbk-profile-card:nth-child(4n+1)::before { background: var(--stbk-text); }
.stbk-profile-card:nth-child(4n+2)::before { background: var(--stbk-accent); }
.stbk-profile-card:nth-child(4n+3)::before { background: var(--stbk-accent-2); }
.stbk-profile-card:nth-child(4n+4)::before { background: var(--stbk-text-faint); }

.stbk-profile-card:hover {
	border-color: transparent;
	box-shadow: 0 10px 24px rgba(46, 56, 62, 0.12);
	transform: translateY(-3px);
}

.stbk-profile-icon {
	width: 100%;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
	color: var(--stbk-text);
	transition: color .15s;
}
.stbk-profile-card:hover .stbk-profile-icon {
	color: var(--stbk-accent);
}
.stbk-profile-icon svg {
	width: 52px;
	height: 52px;
}

.stbk-profile-card .stbk-name {
	font-weight: 500;
	font-size: 14.5px;
	margin-bottom: 4px;
}

.stbk-profile-card .stbk-price {
	font-size: 13px;
}

/* Footer, angelehnt an forster-unternehmensgruppe.de */
.stbk-footer {
	background: var(--stbk-dark);
	color: #e5e9ec;
	padding: 40px 0;
}
.stbk-footer-inner {
	max-width: 1280px;
}
.stbk-footer-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px 48px;
}
.stbk-footer-logo {
	display: flex;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
}
.stbk-footer-logo img {
	display: block;
	height: 76px;
	width: auto;
}
.stbk-footer-address {
	font-size: 13.5px;
	line-height: 1.7;
	color: #cfd6db;
}
.stbk-footer-address strong {
	color: #fff;
	font-weight: 500;
}
.stbk-footer-address a {
	color: #cfe0ee !important;
	text-decoration: underline;
}
.stbk-footer-pickup-note {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: var(--stbk-accent-2, #cfe0ee);
}
.stbk-footer-cert img {
	max-height: 130px;
	width: auto;
	display: block;
}
.stbk-footer-links {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: right;
}
.stbk-footer-links a {
	color: #fff !important;
	text-transform: uppercase;
	font-size: 12.5px;
	letter-spacing: 0.04em;
}
.stbk-footer-links a:hover {
	color: #cfe0ee !important;
}
.stbk-footer-social {
	display: flex;
	gap: 12px;
}
.stbk-footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff !important;
}
.stbk-footer-social a:hover {
	background: rgba(255, 255, 255, 0.2);
}
.stbk-footer-bottom {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: 12px;
	color: #b9c2c9;
}
@media (max-width: 700px) {
	.stbk-footer-top {
		flex-direction: column;
	}
	.stbk-footer-links {
		text-align: left;
	}
}
