/*
Theme Name: Astra SMoLabs
Template: astra
Description: Child-Theme für smolabs.de mit den Farben, der Schrift und dem Logo von SMoLabs (siehe 05-branding).
Version: 0.1.0
Text Domain: astra-smolabs
*/

@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("fonts/PlusJakartaSans.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
}

:root {
	--tannengruen-900: #051F20;
	--tannengruen-800: #0B2B26;
	--tannengruen-700: #163832;
	--waldgruen: #235347;
	--salbei: #8EB69B;
	--mint: #DAF1DE;
	--seite: #E9F3EB;
	--kopf: #F3F8F4;
	--grau: #4F6B61;
	/* 1px bei Standardschrift, wächst mit der Schriftgröße im Browser (Astra: html 100 %, unter 922px 91,2 %) */
	--px: calc(1rem / 16);

	--ast-global-color-0: #051F20;
	--ast-global-color-1: #235347;
	--ast-global-color-2: #0B2B26;
	--ast-global-color-3: #0B2B26;
	--ast-global-color-4: #E9F3EB;
	--ast-global-color-5: #FFFFFF;
	--ast-global-color-6: #DAF1DE;
	--ast-global-color-7: #8EB69B;
	--ast-global-color-8: #051F20;
}

@media (max-width: 921px) {
	:root { --px: calc(1rem / 14.592); }
}

body,
button,
input,
select,
textarea,
.ast-button,
.button {
	font-family: "Plus Jakarta Sans", Helvetica, Arial, sans-serif;
}

body {
	background-color: var(--seite);
	color: var(--tannengruen-800);
	font-size: calc(16 * var(--px));
	line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.entry-title {
	font-family: "Plus Jakarta Sans", Helvetica, Arial, sans-serif;
	font-weight: 700;
	color: var(--tannengruen-800);
}

h1, .entry-title { font-size: clamp(calc(28 * var(--px)), 5vw, calc(48 * var(--px))); line-height: 1.1; color: var(--tannengruen-900); }
h2 { font-size: calc(26 * var(--px)); line-height: 1.25; }
h3 { font-size: calc(20 * var(--px)); line-height: 1.3; }

a { color: var(--waldgruen); }
a:hover { color: var(--tannengruen-900); }

/* Kopfbereich */
.site-header,
.main-header-bar,
.ast-primary-header-bar {
	background-color: var(--kopf);
	border-bottom: 1px solid var(--mint);
}
/* Kopfbereich bleibt oben stehen, die Seite scrollt durchscheinend darunter */
#masthead {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	background-color: rgba(243, 248, 244, .8);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	backdrop-filter: blur(20px) saturate(180%);
	border-bottom: 1px solid rgba(142, 182, 155, .45);
}
#masthead .main-header-bar,
#masthead .ast-primary-header-bar { background-color: transparent; border-bottom: 0; }
/* aufgeklapptes Mobilmenü auf voller Fläche, damit die Einträge über Fotos lesbar bleiben */
#masthead .ast-mobile-header-content,
#masthead .ast-mobile-header-wrap .main-header-bar-navigation { background-color: var(--kopf); }
:target { scroll-margin-top: 100px; }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
	#masthead { background-color: var(--kopf); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: var(--salbei); }
}
.main-header-menu a,
.ast-builder-menu .menu-item > a {
	font-size: calc(15 * var(--px));
	font-weight: 500;
	color: var(--tannengruen-800);
}
.main-header-menu a:hover,
.ast-builder-menu .menu-item > a:hover,
.current-menu-item > a {
	color: var(--waldgruen);
}
.custom-logo-link img { width: 190px; height: auto; max-width: 100%; }
.ast-site-title-wrap { display: none; }
.home .entry-header { display: none; }

/* Buttons */
.wp-block-button__link,
.ast-button,
.button,
button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit {
	background-color: var(--tannengruen-900);
	color: #fff;
	border-radius: 10px;
	font-size: calc(15 * var(--px));
	font-weight: 700;
	padding: 14px 22px;
	min-height: 44px;
	border: 2px solid var(--tannengruen-900);
}
.wp-block-button__link {
	transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out, transform 100ms ease-out;
}
.wp-block-button__link:active,
.woocommerce a.button:active,
.woocommerce button.button:active { transform: scale(.97); }
.wp-block-button__link:hover,
.ast-button:hover,
.button:hover,
button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
	background-color: var(--waldgruen);
	border-color: var(--waldgruen);
	color: #fff;
}
.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--tannengruen-900);
	border: 2px solid var(--tannengruen-900);
}
.is-style-outline > .wp-block-button__link:hover {
	background: var(--tannengruen-900);
	color: #fff;
}

/* Titelbild */
.smo-hero {
	background: linear-gradient(160deg, #DAF1DE, #8EB69B);
	color: var(--tannengruen-900);
	padding: 72px max(32px, calc((100vw - 1200px) / 2 + 20px));
	border-radius: 0;
}
.smo-hero h1 { max-width: 18ch; margin: 0 0 16px; }
.smo-hero p { max-width: 52ch; color: var(--tannengruen-900); font-size: calc(18 * var(--px)); line-height: 1.5; }

@media (max-width: 600px) {
	.smo-hero { padding-top: 40px; padding-bottom: 40px; }
}

/* Tastaturfokus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 3px solid var(--waldgruen);
	outline-offset: 3px;
}
.site-footer a:focus-visible { outline-color: var(--mint); }

/* Karten */
.smo-card {
	background: #fff;
	border-radius: 14px;
	padding: 24px;
	box-shadow: 0 2px 10px rgba(5, 31, 32, .08);
}
.smo-card p { color: var(--grau); font-size: calc(16 * var(--px)); }
/* Karten nebeneinander gleich hoch: Karte füllt die gestreckte Spalte */
.wp-block-columns > .wp-block-column:has(> .smo-card) { display: flex; flex-direction: column; }
.wp-block-columns > .wp-block-column > .smo-card { flex: 1; }

/* Shop */
/* Überschrift „Shop“ auf der Shop-Hauptseite nur für Screenreader, Brotkrumen und Reiter nennen sie schon */
.woocommerce-shop .woocommerce-products-header__title {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.woocommerce ul.products li.product,
.ast-woocommerce-container ul.products li.product {
	background: #fff;
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(5, 31, 32, .08);
	display: flex;
	flex-direction: column;
}
/* Button/Link unten bündig, damit alle Produktkacheln einer Reihe gleich aussehen */
.woocommerce ul.products li.product .button { margin-top: auto; align-self: flex-start; }
/* Astra packt Titel, Preis, Kurzbeschreibung und Button in einen Wrapper: der muss die Kachel füllen, sonst rutscht der Button je nach Textlänge */
.woocommerce ul.products li.product .astra-shop-summary-wrap {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: "Plus Jakarta Sans", Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: calc(18 * var(--px));
	color: var(--tannengruen-800);
}
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price {
	font-weight: 700;
	font-size: calc(18 * var(--px));
	color: var(--tannengruen-800);
}

/* Fußbereich */
.site-footer,
.site-footer .ast-builder-grid-row,
.site-below-footer-wrap,
.site-primary-footer-wrap {
	background-color: var(--tannengruen-900);
	color: var(--salbei);
	font-size: calc(14 * var(--px));
}
.site-footer a { color: var(--mint); }
.site-footer a:hover { color: var(--salbei); }
.smo-footer-logo img { width: 170px; height: auto; display: block; margin-bottom: 12px; }

.site-footer,
.site-footer p,
.site-footer .ast-footer-copyright,
.site-footer .ast-footer-copyright p {
	color: var(--salbei);
}

/* Kompatibilitätstabelle */
.smo-kompat-wrap { overflow-x: auto; }
.smo-kompat { width: 100%; border-collapse: collapse; background: #fff; }
.smo-kompat th, .smo-kompat td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--mint); }
.smo-kompat th { background: var(--mint); color: var(--tannengruen-900); }

/* Shop: Auswahl nach Gerät */
.smo-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.smo-filter a {
	padding: 8px 18px;
	border-radius: 999px;
	background: #fff;
	color: var(--tannengruen-800);
	border: 2px solid var(--salbei);
	font-weight: 600;
	text-decoration: none;
}
.smo-filter a:hover { border-color: var(--waldgruen); }
.smo-filter a[aria-current="true"] { background: var(--tannengruen-900); border-color: var(--tannengruen-900); color: #fff; }

/* Produktseiten: Tabellen auf dem Smartphone */
@media (max-width: 600px) {
	.woocommerce-Tabs-panel table {
		width: 100%;
		font-size: calc(15 * var(--px));
		hyphens: auto;
		overflow-wrap: break-word;
	}
	.woocommerce-Tabs-panel table th,
	.woocommerce-Tabs-panel table td {
		padding: 8px 10px;
	}
	.woocommerce-Tabs-panel table th:first-child,
	.woocommerce-Tabs-panel table td:first-child {
		hyphens: none;
	}
	/* Spalte „Typ“ ausblenden, nur bei Tabellen Name | Typ | Beschreibung (nicht bei der Kompatibilitätstabelle) */
	.woocommerce-Tabs-panel table:not(.smo-kompat):not(.smo-doku table):has(thead th:nth-child(3)) :is(th, td):nth-child(2) {
		display: none;
	}
}

/* Produktdokumentation (Reiter „Beschreibung“, erzeugt mit tools/bausteine-doku.py) */
.smo-doku h3 {
	margin: 48px 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--salbei);
	font-size: calc(26 * var(--px));
	scroll-margin-top: 96px;
}
.smo-doku h3:first-child { margin-top: 8px; }
.smo-doku h4 {
	margin: 36px 0 12px;
	font-size: calc(20 * var(--px));
	scroll-margin-top: 96px;
}
.smo-doku h5 {
	margin: 24px 0 8px;
	font-size: calc(13 * var(--px));
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--grau);
}
.smo-doku .smo-lead { font-size: calc(18 * var(--px)); line-height: 1.7; max-width: 62ch; }
.smo-doku p, .smo-doku li { max-width: 72ch; }
.smo-doku code {
	padding: 1px 6px;
	border-radius: 5px;
	background: var(--mint);
	color: var(--tannengruen-900);
	font-size: .9em;
}
.smo-doku pre {
	padding: 16px 18px;
	border-radius: 10px;
	background: var(--tannengruen-900);
	color: var(--mint);
	overflow-x: auto;
}
.smo-doku pre code { padding: 0; background: none; color: inherit; }

.smo-doku .smo-fakten {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 12px;
	margin: 28px 0;
}
.smo-doku .smo-fakten > div {
	padding: 14px 18px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(5, 31, 32, .06);
}
.smo-doku .smo-fakten dt {
	font-size: calc(12 * var(--px));
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--grau);
}
.smo-doku .smo-fakten dd { margin: 2px 0 0; font-weight: 600; }

.smo-doku .smo-inhalt {
	margin: 0 0 8px;
	padding: 18px 22px;
	border-radius: 12px;
	background: var(--mint);
}
.smo-doku .smo-inhalt ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.smo-doku .smo-inhalt li { margin: 0; max-width: none; }
.smo-doku .smo-inhalt a {
	display: block;
	padding: 6px 14px;
	border-radius: 999px;
	background: #fff;
	color: var(--tannengruen-800);
	font-weight: 600;
	font-size: calc(14 * var(--px));
	text-decoration: none;
}
.smo-doku .smo-inhalt a:hover { background: var(--tannengruen-900); color: #fff; }

.smo-doku .smo-tabelle {
	margin: 16px 0 24px;
	overflow-x: auto;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(5, 31, 32, .06);
}
.smo-doku .smo-tabelle table { width: 100%; margin: 0; border: 0; border-collapse: collapse; }
.smo-doku .smo-tabelle th,
.smo-doku .smo-tabelle td { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--mint); text-align: left; vertical-align: top; }
.smo-doku .smo-tabelle th { background: var(--mint); color: var(--tannengruen-900); font-size: calc(14 * var(--px)); white-space: nowrap; }
.smo-doku .smo-tabelle tr:last-child td { border-bottom: 0; }
.smo-doku .smo-tabelle td:first-child { font-weight: 600; min-width: 11em; }

.smo-doku .smo-hinweis {
	margin: 20px 0;
	padding: 4px 20px;
	border-left: 4px solid var(--waldgruen);
	border-radius: 0 12px 12px 0;
	background: #fff;
}
@media (max-width: 600px) {
	.smo-doku h3 { font-size: calc(22 * var(--px)); }
	.smo-doku .smo-tabelle td:first-child { min-width: 0; }
	.smo-doku .smo-tabelle table { hyphens: manual; }
	.smo-doku .smo-tabelle table:has(th:nth-child(3)) { min-width: 560px; }
}

/* Fußbereich: Logo und Rechtslinks */
.smo-footer-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	padding: 40px max(20px, calc((100vw - 1200px) / 2 + 20px));
	background-color: var(--tannengruen-900);
}
.smo-footer-top .smo-footer-logo img { margin-bottom: 0; }
.smo-footer-copy { flex-basis: 100%; margin: 0; padding-top: 20px; border-top: 1px solid var(--tannengruen-700); font-size: calc(14 * var(--px)); }
.site-footer .site-below-footer-wrap { display: none; }
.smo-footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.smo-footer-links a { text-decoration: underline; }

/* Widerrufsbutton (§ 356a BGB): muss sich von den Rechtslinks abheben */
.smo-footer-top .smo-widerruf-button {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 8px;
	background-color: var(--mint);
	color: var(--tannengruen-900);
	font-weight: 700;
	text-decoration: none;
}
.smo-footer-top .smo-widerruf-button:hover,
.smo-footer-top .smo-widerruf-button:focus { background-color: #fff; color: var(--tannengruen-900); }

/* Seite „Vertrag widerrufen“ und Pflichtangabe im Checkout */
.smo-wr-form label { display: block; margin-bottom: 4px; font-weight: 600; }
.smo-wr-form input[type="text"],
.smo-wr-form input[type="email"] { width: 100%; max-width: 480px; }
.smo-wr-form small { display: block; margin-top: 4px; }
.smo-wr-feld-versteckt { position: absolute; left: -9999px; }
.smo-wr-fehler { color: #A61B1B; font-weight: 600; }
.smo-kundentyp .woocommerce-input-wrapper { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
.smo-kundentyp .woocommerce-input-wrapper input { margin: 0; }
.smo-kundentyp .woocommerce-input-wrapper label { margin: 0; font-weight: 400; line-height: 1.4; }
.smo-kundentyp .woocommerce-input-wrapper label .required { display: none; }

/* Newsletter-Anmeldung im Fußbereich */
.smo-footer-top .smo-newsletter { flex-basis: 100%; max-width: 520px; margin: 0; }
.smo-newsletter p { margin: 0 0 10px; }
.smo-newsletter-titel { font-weight: 700; font-size: calc(18 * var(--px)); }
.smo-newsletter-zeile { display: flex; gap: 8px; }
.smo-newsletter-zeile input[type="email"] { flex: 1; min-width: 0; }
.smo-newsletter-zeile input[type="email"] { color: var(--tannengruen-900); }
.smo-newsletter-zeile button { padding: 10px 20px; border: 0; border-radius: 8px; background: var(--mint); color: var(--tannengruen-900); font-weight: 600; cursor: pointer; }
.smo-newsletter .smo-form-ok { color: var(--tannengruen-900); }
.smo-newsletter .smo-form-fehler { color: #7a1c12; }
.smo-newsletter .smo-form-check { font-size: calc(14 * var(--px)); }
.smo-newsletter .smo-form-check label,
.smo-newsletter .smo-form-check a { color: inherit; }
.smo-newsletter .smo-form-check input { margin-right: 6px; }
@media (max-width: 600px) {
	.smo-newsletter-zeile { flex-direction: column; }
}

/* Footer: Astra setzt Seitenfarbe und Innenabstand auf die untere Zeile */
.site-footer .site-below-footer-wrap[data-section] {
	background-color: var(--tannengruen-900);
	padding-top: 0;
	padding-bottom: 0;
	border-top: 0;
}
.site-footer .site-below-footer-wrap .ast-builder-footer-grid-columns { min-height: 0; padding: 20px 0; }

/* Kopfbereich: Konto-, Abmelden- und Warenkorb-Einträge wie die übrigen Menüpunkte, „Registrieren“ als Button */
.smo-menu-btn--primaer { align-self: center; margin-left: 8px; }
.smo-menu-btn--primaer > a { background: var(--tannengruen-900); color: #fff !important; border-radius: 6px; padding: 6px 14px !important; line-height: 1.4 !important; }
.smo-menu-btn--primaer > a:hover { background: var(--waldgruen); }

/* Mobiles Menü: Astra setzt dort die Hintergrundfarbe der Links, „Registrieren“ blieb weiß auf hellem Grund */
.ast-header-break-point .smo-menu-btn--primaer { align-self: flex-start; margin: 4px 0 4px 20px; width: fit-content !important; }
.ast-header-break-point .smo-menu-btn--primaer > a { background: var(--tannengruen-900) !important; }

/* Kopfbereich: Produktsuche. Desktop: Lupe ganz rechts, Klick klappt das Feld darunter auf. Mobil: Feld am Anfang des Menüs. */
.smo-menu-suche { position: relative; align-self: center; margin-left: 4px; }
.smo-menu-suche form { display: none; position: absolute; top: calc(100% + 12px); right: 0; z-index: 110; gap: 6px; margin: 0; padding: 10px; background: var(--kopf); border: 1px solid var(--mint); border-radius: 8px; box-shadow: 0 8px 24px rgba(5, 31, 32, .12); }
.smo-menu-suche.is-open form { display: flex; }
.smo-menu-suche input[type="search"] { width: 240px; padding: 6px 10px; border: 1px solid var(--salbei); border-radius: 6px; background: #fff; line-height: 1.4; }
.smo-menu-suche form button { flex: none; white-space: nowrap; padding: 6px 12px; border: 0; border-radius: 6px; background: var(--tannengruen-900); color: #fff; line-height: 1.4; cursor: pointer; }
.smo-menu-suche form button:hover { background: var(--waldgruen); }
.smo-menu-suche .smo-suche-auf { display: flex; align-items: center; padding: 6px; border: 0; border-radius: 6px; background: transparent; color: var(--tannengruen-800); cursor: pointer; }
.smo-menu-suche .smo-suche-auf:hover,
.smo-menu-suche .smo-suche-auf:focus,
.smo-menu-suche.is-open .smo-suche-auf { background: transparent; color: var(--waldgruen); }
.smo-menu-suche .smo-suche-auf:focus-visible { outline: 2px solid var(--waldgruen); outline-offset: 2px; }
.ast-header-break-point .smo-menu-suche { align-self: stretch; margin: 8px 20px; }
.ast-header-break-point .smo-suche-auf { display: none; }
.ast-header-break-point .smo-menu-suche form { display: flex; position: static; padding: 0; background: none; border: 0; box-shadow: none; }
.ast-header-break-point .smo-menu-suche input[type="search"] { flex: 1; width: auto; min-width: 0; }

/* Startseite: Shop im Fokus (Fotos von Pexels, siehe images/start/QUELLEN.md) */
.home .site-content > .ast-container { max-width: none; padding: 0; }
.home .entry-content { margin: 0; }
.home .entry-content > :not(.alignfull) { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.home.ast-plain-container.ast-no-sidebar #primary { margin: 0; padding: 0; }

.smo-eyebrow {
	font-size: calc(14 * var(--px));
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin: 0 0 12px;
}

.entry-content > .smo-start-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: min(86vh, 820px);
	padding: 120px max(20px, calc((100vw - 1200px) / 2 + 20px)) 72px;
	color: #fff;
	background-color: var(--tannengruen-900);
	overflow: hidden;
	isolation: isolate;
}
.smo-start-hero::before,
.smo-start-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.smo-start-hero::before {
	background: url("images/start/wohnzimmer-abend.webp") center 60% / cover no-repeat;
	animation: smo-zoom 2.4s cubic-bezier(.2, .7, .2, 1) both;
}
.smo-hero-projektierung::before { background-image: url("images/start/projektierung.webp"); background-position: center 10%; }
.smo-start-hero::after {
	background: linear-gradient(to top, rgba(5, 31, 32, .95) 0%, rgba(5, 31, 32, .75) 40%, rgba(5, 31, 32, .25) 100%);
}
.smo-start-hero h1 {
	color: #fff;
	font-size: clamp(calc(40 * var(--px)), 7.5vw, calc(84 * var(--px)));
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.02;
	max-width: 14ch;
	margin: 0 0 20px;
}
.smo-start-hero .smo-eyebrow { color: var(--salbei); }
.smo-hero-projektierung .smo-eyebrow { color: var(--mint); }
.smo-start-hero .smo-lead { color: var(--mint); font-size: clamp(calc(18 * var(--px)), 2.2vw, calc(22 * var(--px))); line-height: 1.45; max-width: 40ch; margin: 0 0 32px; }
.smo-start-hero > * { animation: smo-hoch .9s cubic-bezier(.2, .7, .2, 1) both; }
.smo-start-hero > :nth-child(2) { animation-delay: .1s; }
.smo-start-hero > :nth-child(3) { animation-delay: .2s; }
.smo-start-hero > :nth-child(4) { animation-delay: .3s; }

/* Buttons auf dunklem Grund */
.smo-btn-hell > .wp-block-button__link { background: var(--mint); border-color: var(--mint); color: var(--tannengruen-900); border-radius: 999px; padding: 14px 28px; }
.smo-btn-hell > .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--tannengruen-900); }
.wp-block-button.is-style-outline.smo-btn-hell > .wp-block-button__link:not(.has-text-color) { background: transparent; border-color: var(--mint); color: var(--mint); }
.wp-block-button.is-style-outline.smo-btn-hell > .wp-block-button__link:not(.has-text-color):hover { background: var(--mint); color: var(--tannengruen-900); }
.smo-start-hero a:focus-visible,
.smo-start-cta a:focus-visible { outline-color: var(--mint); }

.entry-content > .smo-start-intro { text-align: center; padding-top: 112px; padding-bottom: 56px; }
.smo-start-intro h2,
.smo-start-produkte h2,
.smo-start-schritte h2,
.smo-start-cta h2 {
	font-size: clamp(calc(32 * var(--px)), 5vw, calc(56 * var(--px)));
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.08;
	margin: 0 auto 20px;
	max-width: 20ch;
	color: var(--tannengruen-900);
}
.smo-start-intro p { font-size: clamp(calc(18 * var(--px)), 2vw, calc(21 * var(--px))); color: var(--grau); max-width: 46ch; margin: 0 auto; }

/* Kachelraster */
.entry-content > .smo-bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(340px, auto); gap: 20px; padding-bottom: 112px; }
.smo-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 32px;
	border-radius: 28px;
	color: #fff;
	background: var(--tannengruen-800);
	overflow: hidden;
	isolation: isolate;
}
.smo-tile--gross { grid-column: span 2; }
/* WP-Flow-Layout setzt 24px Abstand über jede Kachel außer der ersten */
.entry-content > .smo-bento > * { margin-block: 0; }
.smo-tile::before,
.smo-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.smo-tile::before { background-position: center; background-size: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.smo-tile::after { background: linear-gradient(to top, rgba(5, 31, 32, .95) 0%, rgba(5, 31, 32, .82) 45%, rgba(5, 31, 32, .15) 85%); }
.smo-tile:hover::before { transform: scale(1.05); }
.smo-tile { transition: transform 100ms ease-out; }
.smo-tile:active { transform: scale(.985); }
.smo-tile--kamera::before { background-image: url("images/start/kamera.webp"); }
.smo-tile--photovoltaik::before { background-image: url("images/start/photovoltaik.webp"); }
.smo-tile--pool::before { background-image: url("images/start/pool.webp"); }
.smo-tile--wandpanel::before { background-image: url("images/start/wandpanel.webp"); }
.smo-tile--dunkel { background: linear-gradient(160deg, var(--waldgruen), var(--tannengruen-900)); }
.smo-tile--dunkel::after { display: none; }
/* Geräte-Einstieg auf der Startseite: X1 grün, HomeServer blaugrün wie in den Produktbildern */
.entry-content > .smo-bento.smo-geraete { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(220px, auto); padding-bottom: 20px; }
.smo-tile--hs { background: linear-gradient(160deg, #1F5560, #0A2B35); }
.smo-tile .smo-eyebrow { color: var(--mint); }
.smo-tile h3 { color: #fff; font-size: clamp(calc(24 * var(--px)), 2.6vw, calc(32 * var(--px))); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; margin: 0 0 8px; }
.smo-tile p { color: var(--mint); margin: 0 0 16px; max-width: 42ch; }
.smo-tile .smo-tile-link { margin: 0; }
.smo-tile-link a { color: #fff; font-weight: 700; text-decoration: none; }
.smo-tile-link a::after { content: " ›"; }
.smo-tile-link a:hover { color: var(--mint); }
/* ganze Kachel klickbar */
.smo-tile-link a::before { content: ""; position: absolute; inset: 0; }
.smo-tile-link a:focus-visible { outline: none; }
.smo-tile:has(a:focus-visible) { outline: 3px solid var(--waldgruen); outline-offset: 3px; }

/* Neu im Shop */
.entry-content > .smo-start-produkte { text-align: center; padding-bottom: 112px; }
.smo-start-produkte .woocommerce { text-align: left; margin: 32px 0; }
.smo-start-produkte .smo-kurztext {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--grau);
	font-size: calc(15 * var(--px));
	line-height: 1.45;
	margin: 0 0 12px;
}
/* Solange Produkte keine Bilder haben, kein grauer Platzhalter */
.smo-start-produkte .astra-shop-thumbnail-wrap:has(> a > img.woocommerce-placeholder) { display: none; }

/* Drei Schritte */
.entry-content > .smo-start-schritte { padding-top: 96px; padding-bottom: 96px; text-align: center; }
.smo-start-schritte .wp-block-columns { gap: 20px; margin-top: 40px; }
.smo-schritt { background: #fff; border-radius: 28px; padding: 40px 32px; text-align: left; }
.smo-schritt .smo-schritt-nr {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--salbei);
	color: var(--tannengruen-900);
	font-weight: 800;
	font-size: calc(20 * var(--px));
	margin: 0 0 20px;
}
.smo-schritt h3 { font-size: calc(22 * var(--px)); margin: 0 0 8px; }
.smo-schritt p { color: var(--grau); margin: 0; }

/* Versprechen */
.entry-content > .smo-start-versprechen { padding-bottom: 112px; }
.smo-start-versprechen .wp-block-columns { gap: 40px; border-top: 1px solid var(--salbei); padding-top: 40px; }
.smo-start-versprechen h3 { font-size: calc(20 * var(--px)); margin: 0 0 6px; }
.smo-start-versprechen p { color: var(--grau); margin: 0; }
/* Entwickler-Hinweis: Abstand zum Abschluss-Block */
.entry-content > .smo-start-versprechen + .smo-card { margin-bottom: 112px; }

/* Abschluss */
.entry-content > .smo-start-cta {
	position: relative;
	padding: 140px max(20px, calc((100vw - 1200px) / 2 + 20px));
	text-align: center;
	color: var(--mint);
	background-color: var(--tannengruen-900);
	overflow: hidden;
	isolation: isolate;
}
.smo-start-cta::before,
.smo-start-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.smo-start-cta::before { background: url("images/start/verteiler.webp") center / cover no-repeat; }
.smo-start-cta::after { background: rgba(5, 31, 32, .86); }
.smo-start-cta h2 { color: #fff; }
.smo-start-cta p { font-size: clamp(calc(18 * var(--px)), 2vw, calc(21 * var(--px))); color: var(--mint); margin: 0 auto 32px; max-width: 40ch; }

@keyframes smo-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes smo-hoch { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Einblenden beim Scrollen, nur wo der Browser es kann */
@supports (animation-timeline: view()) {
	.smo-reveal {
		animation: smo-hoch linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 40%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.smo-start-hero::before,
	.smo-start-hero > *,
	.smo-reveal { animation: none; }
	.smo-tile::before { transition: none; }
	.smo-tile:hover::before { transform: none; }
	.smo-tile:active,
	.wp-block-button__link:active,
	.woocommerce a.button:active,
	.woocommerce button.button:active { transform: none; }
}

@media (max-width: 921px) {
	.entry-content > .smo-bento { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.entry-content > .smo-start-hero { min-height: 78vh; padding-top: 80px; padding-bottom: 48px; }
	.smo-start-hero::before { background-image: url("images/start/wohnzimmer-abend-1200.webp"); }
	.smo-hero-projektierung::before { background-image: url("images/start/projektierung-1200.webp"); }
	.smo-hero-projektierung::after { background: linear-gradient(to top, rgba(5, 31, 32, .95) 0%, rgba(5, 31, 32, .82) 50%, rgba(5, 31, 32, .68) 100%); }
	.entry-content > .smo-start-intro { padding-top: 72px; padding-bottom: 40px; }
	.entry-content > .smo-bento { grid-template-columns: 1fr; grid-auto-rows: minmax(300px, auto); gap: 16px; padding-bottom: 72px; }
	.entry-content > .smo-bento.smo-geraete { grid-template-columns: 1fr; grid-auto-rows: minmax(200px, auto); padding-bottom: 16px; }
	.smo-tile--gross { grid-column: auto; }
	.home #ast-scroll-top { display: none !important; }
	.smo-tile { padding: 24px; border-radius: 22px; }
	.smo-tile::after { background: linear-gradient(to top, rgba(5, 31, 32, .95) 0%, rgba(5, 31, 32, .85) 60%, rgba(5, 31, 32, .45) 100%); }
	.entry-content > .smo-start-produkte { padding-bottom: 72px; }
	.entry-content > .smo-start-schritte { padding-top: 56px; padding-bottom: 56px; }
	.entry-content > .smo-start-versprechen { padding-bottom: 72px; }
	.entry-content > .smo-start-versprechen + .smo-card { margin-bottom: 72px; }
	.smo-start-versprechen .wp-block-columns { gap: 24px; }
	.entry-content > .smo-start-cta { padding-top: 88px; padding-bottom: 88px; }
	.smo-start-hero .wp-block-buttons,
	.smo-start-cta .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.smo-start-hero .wp-block-button,
	.smo-start-cta .wp-block-button { width: 100%; }
	.smo-start-hero .wp-block-button__link,
	.smo-start-cta .wp-block-button__link { display: block; text-align: center; }
}

/* Kontaktformular */
.smo-form { max-width: 640px; }
.smo-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.smo-form input[type="text"],
.smo-form input[type="email"],
.smo-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--salbei); border-radius: 8px; background: var(--kopf); }
.smo-form .smo-form-check label { font-weight: 400; }
.smo-form fieldset { border: 0; margin: 0 0 16px; padding: 0; }
.smo-form legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.smo-form .smo-form-web { position: absolute; left: -9999px; }
.smo-form-ok,
.smo-form-fehler { padding: 12px 16px; border-radius: 8px; }
.smo-form-ok { background: var(--mint); color: var(--tannengruen-900); }
.smo-form-fehler { background: #fbe3e0; color: #7a1c12; }

/* Shop: Einleitung, Themenauswahl, Kacheln */
.smo-shop-intro { max-width: 760px; margin: 0 0 32px; }
.smo-shop-intro h2 {
	margin: 4px 0 12px;
	font-size: clamp(calc(28 * var(--px)), 4vw, calc(44 * var(--px)));
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.1;
}
.smo-shop-intro > p:not(.smo-eyebrow) { color: var(--grau); font-size: calc(18 * var(--px)); line-height: 1.6; margin: 0 0 16px; }
.smo-shop-vorteile { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-weight: 600; font-size: calc(14 * var(--px)); }
.smo-shop-vorteile li { margin: 0; }
.smo-shop-vorteile li::before { content: "✓"; margin-right: 8px; color: var(--waldgruen); }

.smo-themen { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.smo-themen button {
	padding: 8px 18px;
	border: 2px solid var(--salbei);
	border-radius: 999px;
	background: #fff;
	color: var(--tannengruen-800);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: transform 100ms ease-out, background-color .2s, border-color .2s;
}
.smo-themen button:active { transform: scale(.96); }
.smo-themen button:hover { border-color: var(--waldgruen); }
.smo-themen button[aria-pressed="true"] { background: var(--tannengruen-900); border-color: var(--tannengruen-900); color: #fff; }
.woocommerce ul.products li.product[hidden] { display: none; }
.woocommerce ul.products li.product.smo-neu { animation: smo-hoch .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 25ms); }

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap { overflow: hidden; border-radius: 10px; margin-bottom: 16px; }
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.woocommerce ul.products li.product:hover .astra-shop-thumbnail-wrap img { transform: scale(1.04); }
.woocommerce ul.products li.product .smo-kurztext { color: var(--grau); font-size: calc(15 * var(--px)); line-height: 1.45; margin: 0 0 14px; }

/* Produktseite: Slogan über dem Kurztext */
.smo-slogan { font-size: calc(20 * var(--px)); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; margin: 0 0 8px; }
/* Shop: Anzahl und Sortierung entfallen, die Themenauswahl ersetzt sie */
.woocommerce-shop .woocommerce-result-count,
.woocommerce-shop .woocommerce-ordering { display: none; }
.smo-themen { clear: both; width: 100%; }
