/*
Theme Name: 6Tnature
Description: Massgeschneidertes Theme für den 6Tnature-Shop: Papierweiss, Tinte-Schwarz, Lavendel-Akzent, Satoshi und JetBrains Mono. Sechs Inhaltsstoffe, alle natürlich.
Version: 1.0.0
Author: 6Tnature
Requires PHP: 8.0
Text Domain: sixtnature
*/

/* ------------------------------------------------------------------ */
/* Design-Token (identisch zum Prototyp)                               */
/* ------------------------------------------------------------------ */

:root {
	--paper: #fafaf9;
	--panel: #f2f1ee;
	--ink: #1b1b18;
	--inkmuted: #5c5b55;
	--lav: #6e67a6;
	--lavdeep: #57518a;
	--line: #e2e1dc;
	--brand: "Satoshi", ui-sans-serif, system-ui, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: light; }

body {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--brand);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

::selection { background: var(--lav); color: var(--paper); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.inhalt { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.inhalt-schmal { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

.text-gedaempft { color: var(--inkmuted); }
.mono { font-family: var(--mono); }

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.seiten-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(250, 250, 249, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.seiten-header .inhalt {
	display: flex; align-items: center; justify-content: space-between;
	height: 4rem;
}
.wortmarke { text-decoration: none; }
.wortmarke .marke {
	display: block; border-top: 2px solid var(--ink); padding-top: 2px;
	font-size: 1.125rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1;
}
.wortmarke .marke span { font-weight: 500; }

.hauptnav ul { display: flex; gap: 2rem; list-style: none; align-items: center; }
.hauptnav a {
	text-decoration: none; font-size: 0.9rem; font-weight: 500; color: var(--inkmuted);
	transition: color 0.15s;
}
.hauptnav a:hover, .hauptnav .current-menu-item a { color: var(--ink); }

.warenkorb-knopf {
	display: inline-flex; align-items: center; gap: 0.5rem;
	border: 1px solid var(--ink); padding: 0.5rem 1rem;
	text-decoration: none; font-size: 0.9rem; font-weight: 700; color: var(--ink);
	transition: background 0.15s, color 0.15s;
}
.warenkorb-knopf:hover { background: var(--ink); color: var(--paper); }
.warenkorb-knopf .anzahl { font-family: var(--mono); font-size: 0.75rem; color: var(--lavdeep); }
.warenkorb-knopf:hover .anzahl { color: var(--paper); }

@media (max-width: 760px) {
	.hauptnav ul { gap: 1rem; flex-wrap: wrap; }
	.seiten-header .inhalt { height: auto; padding-top: 0.75rem; padding-bottom: 0.75rem; flex-wrap: wrap; gap: 0.5rem; }
}

/* ------------------------------------------------------------------ */
/* Hero (Startseite): Ziffer 6 hinter den Flaschen                     */
/* ------------------------------------------------------------------ */

.hero { overflow: hidden; text-align: center; padding: 4rem 1.5rem 0; }
.hero h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); text-wrap: balance; }
.hero p { margin: 1.25rem auto 0; max-width: 42ch; color: var(--inkmuted); }
.hero-knoepfe { margin-top: 2rem; display: flex; gap: 1.5rem; justify-content: center; align-items: center; }

.knopf-primaer {
	display: inline-block; background: var(--ink); color: var(--paper);
	padding: 1rem 2.5rem; font-weight: 700; text-decoration: none; font-size: 1rem;
	transition: background 0.2s;
}
.knopf-primaer:hover { background: var(--lavdeep); }
.knopf-primaer:active { transform: scale(0.98); }

.link-dezent {
	color: var(--inkmuted); font-size: 0.9rem; font-weight: 500;
	text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px;
}
.link-dezent:hover { color: var(--ink); text-decoration-color: var(--ink); }

.hero-buehne { position: relative; margin-top: 2.5rem; display: flex; justify-content: center; align-items: flex-end; }
.hero-sechs {
	position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
	font-size: clamp(14rem, 40vh, 24rem); font-weight: 900; line-height: 0.75;
	letter-spacing: -0.04em; color: rgba(110, 103, 166, 0.15);
	user-select: none; pointer-events: none;
}
.hero-flaschen { position: relative; z-index: 1; max-height: 40vh; width: auto; }

/* ------------------------------------------------------------------ */
/* Startseiten-Sektionen                                               */
/* ------------------------------------------------------------------ */

.sektion { padding: 6rem 0; }
.sektion + .sektion { border-top: 1px solid var(--line); }
.sektion-panel { background: var(--panel); }

/* Produkt-Grid (asymmetrisch) */
.produkt-grid { display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 760px) {
	.produkt-grid { grid-template-columns: 7fr 5fr; grid-auto-rows: auto; }
	.produkt-grid .karte-gross { grid-row: span 2; }
}

.produkt-karte {
	display: flex; flex-direction: column; height: 100%;
	border: 1px solid var(--line); background: var(--panel); padding: 1.5rem;
	text-decoration: none; transition: border-color 0.15s;
}
.produkt-karte:hover { border-color: var(--ink); }
.produkt-karte .bild {
	display: flex; align-items: center; justify-content: center; min-height: 14rem;
}
.karte-gross .bild { min-height: 22rem; }
.produkt-karte img { max-height: 14rem; width: auto; object-fit: contain; transition: transform 0.3s; }
.karte-gross img { max-height: 22rem; }
.produkt-karte:hover img { transform: scale(1.03); }
.produkt-karte .zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.5rem; }
.produkt-karte h3 { font-weight: 700; }
.karte-gross h3 { font-size: 1.5rem; }
.produkt-karte .preis { font-family: var(--mono); font-size: 0.9rem; white-space: nowrap; }
.produkt-karte .preis del { color: var(--inkmuted); margin-right: 0.5rem; }
.produkt-karte .preis ins { text-decoration: none; font-weight: 700; color: var(--lavdeep); }
.produkt-karte .kurz { margin-top: 0.25rem; font-size: 0.9rem; color: var(--inkmuted); }
.produkt-karte .mehr { margin-top: auto; padding-top: 1rem; font-size: 0.9rem; font-weight: 500; }
.produkt-karte .mehr span { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.produkt-karte:hover .mehr span { text-decoration-color: var(--ink); }

/* Rezeptur-Ledger */
.rezeptur { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .rezeptur { grid-template-columns: 4fr 7fr; column-gap: 4rem; } }
.rezeptur-intro p { margin-top: 1rem; max-width: 36ch; color: var(--inkmuted); }
.zutaten-liste { list-style: none; border-top: 1px solid var(--line); }
.zutaten-liste li {
	display: flex; align-items: baseline; gap: 1.5rem;
	border-bottom: 1px solid var(--line); padding: 1.25rem 0;
	transition: background 0.15s;
}
.zutaten-liste li:hover { background: var(--panel); }
.zutaten-liste .index { font-family: var(--mono); font-size: 0.85rem; color: var(--inkmuted); width: 2rem; flex-shrink: 0; }
.zutaten-liste .name { font-weight: 700; font-size: 1.1rem; width: 11rem; flex-shrink: 0; }
.zutaten-liste .funktion { font-size: 0.9rem; color: var(--inkmuted); }
.zutaten-liste li.akzent .name, .zutaten-liste li.akzent .index { color: var(--lavdeep); }
.zutaten-fussnote { margin-top: 0.75rem; font-family: var(--mono); font-size: 0.75rem; color: var(--inkmuted); }
@media (max-width: 600px) { .zutaten-liste .funktion { display: none; } }

/* Refill-Band */
.refill-band { text-align: center; }
.refill-band p.lead { margin: 1.25rem auto 0; max-width: 52ch; color: var(--inkmuted); }
.metriken { display: grid; gap: 2.5rem; margin-top: 3.5rem; }
@media (min-width: 760px) { .metriken { grid-template-columns: repeat(3, 1fr); } }
.metriken dd { font-family: var(--mono); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; }
.metriken dt { margin-top: 0.5rem; font-size: 0.9rem; color: var(--inkmuted); }
.refill-cta {
	margin-top: 3.5rem; display: flex; justify-content: space-between; align-items: center;
	border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
	padding: 1.25rem 0.25rem; text-decoration: none;
	font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 700; letter-spacing: -0.01em;
	transition: background 0.15s;
}
.refill-cta:hover { background: var(--paper); }
.refill-cta .pfeil { transition: transform 0.3s; }
.refill-cta:hover .pfeil { transform: translateX(0.75rem); }

/* Anwendung */
.anwendung { display: grid; gap: 3rem; align-items: end; }
@media (min-width: 900px) { .anwendung { grid-template-columns: 1fr 1fr; } }
.anwendung-bild { border: 1px solid var(--line); overflow: hidden; }
.anwendung-bild img { aspect-ratio: 4 / 5; object-fit: cover; object-position: left; width: 100%; }
.schritte { list-style: none; margin-top: 2.5rem; border-left: 2px solid var(--line); }
.schritte li { position: relative; padding: 0 0 2.5rem 2rem; }
.schritte li:last-child { padding-bottom: 0; }
.schritte li::before {
	content: ""; position: absolute; left: -5px; top: 0.4rem;
	width: 8px; height: 8px; border-radius: 50%; background: var(--lav);
}
.schritte .nummer { font-family: var(--mono); font-size: 0.75rem; color: var(--inkmuted); }
.schritte h3 { margin-top: 0.25rem; }
.schritte p { margin-top: 0.5rem; max-width: 44ch; font-size: 0.9rem; color: var(--inkmuted); }

/* Herkunft */
.herkunft { position: relative; min-height: 70vh; display: flex; align-items: flex-end; overflow: hidden; }
.herkunft img.hintergrund { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.herkunft::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(27, 27, 24, 0.7), rgba(27, 27, 24, 0.1) 55%, transparent);
}
.herkunft .inhalt { position: relative; z-index: 1; padding-top: 10rem; padding-bottom: 4rem; }
.herkunft h2 { color: var(--paper); max-width: 22ch; }
.herkunft p { margin-top: 1rem; max-width: 46ch; color: rgba(250, 250, 249, 0.85); }
.herkunft a { color: var(--paper); font-size: 0.9rem; text-underline-offset: 4px; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.seiten-footer { border-top: 1px solid var(--line); background: var(--panel); margin-top: 6rem; }
body.home .seiten-footer { margin-top: 0; }
.footer-spalten { display: grid; gap: 3rem; padding: 4rem 0; }
@media (min-width: 760px) { .footer-spalten { grid-template-columns: 1.2fr 1fr 1fr; } }
.seiten-footer .beschreibung { margin-top: 0.75rem; max-width: 28ch; font-size: 0.9rem; color: var(--inkmuted); }
.seiten-footer .adresse { margin-top: 1rem; font-family: var(--mono); font-size: 0.75rem; line-height: 1.7; color: var(--inkmuted); }
.seiten-footer h4 { font-size: 0.9rem; font-weight: 700; }
.seiten-footer ul { list-style: none; margin-top: 0.75rem; }
.seiten-footer ul li { margin-bottom: 0.5rem; }
.seiten-footer ul a { font-size: 0.9rem; color: var(--inkmuted); text-decoration: none; }
.seiten-footer ul a:hover { color: var(--ink); }
.footer-unten { border-top: 1px solid var(--line); padding: 1.25rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-unten p { font-family: var(--mono); font-size: 0.75rem; color: var(--inkmuted); }

/* ------------------------------------------------------------------ */
/* Innenseiten (Seiten, Rechtstexte, FAQ, Kontakt)                     */
/* ------------------------------------------------------------------ */

.seite-kopf { padding: 4rem 0 2.5rem; }
.seite-inhalt { padding-bottom: 5rem; }
.seite-inhalt p { margin-bottom: 1rem; max-width: 70ch; }
.rechtstext p { font-size: 0.9rem; color: var(--inkmuted); }

.faq-liste { border-top: 1px solid var(--line); }
.faq-eintrag { border-bottom: 1px solid var(--line); }
.faq-eintrag summary {
	cursor: pointer; padding: 1.25rem 0; font-weight: 700; list-style: none;
	display: flex; justify-content: space-between; gap: 1.5rem;
}
.faq-eintrag summary::after { content: "+"; font-family: var(--mono); color: var(--inkmuted); }
.faq-eintrag[open] summary::after { content: "×"; }
.faq-eintrag p { padding-bottom: 1.5rem; max-width: 65ch; font-size: 0.9rem; color: var(--inkmuted); }

.kontakt-adresse { font-family: var(--mono); font-size: 0.9rem; line-height: 1.8; }

/* ------------------------------------------------------------------ */
/* WooCommerce-Anpassungen im Markenstil                               */
/* ------------------------------------------------------------------ */

.woocommerce-breadcrumb { font-family: var(--mono); font-size: 0.75rem !important; color: var(--inkmuted) !important; margin-bottom: 2rem !important; }
.woocommerce-breadcrumb a { color: var(--inkmuted); }

/* Produktliste */
.woocommerce ul.products li.product {
	border: 1px solid var(--line); background: var(--panel); padding: 1.5rem;
	text-align: left; transition: border-color 0.15s;
}
.woocommerce ul.products li.product:hover { border-color: var(--ink); }
.woocommerce ul.products li.product a img { object-fit: contain; aspect-ratio: 1; background: var(--panel); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1.1rem; font-weight: 700; padding-top: 1rem; }
.woocommerce ul.products li.product .price { font-family: var(--mono); font-size: 0.9rem; color: var(--ink); }
.woocommerce ul.products li.product .price ins { font-weight: 700; color: var(--lavdeep); text-decoration: none; }
.woocommerce ul.products li.product .price del { color: var(--inkmuted); }
.woocommerce ul.products li.product .button { margin-top: 0.75rem; }
.woocommerce span.onsale {
	background: var(--lavdeep) !important; border-radius: 0 !important;
	font-family: var(--mono); font-weight: 700; min-height: auto !important;
	line-height: 1 !important; padding: 0.4rem 0.6rem !important;
}

/* Knöpfe */
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #place_order, .wc-block-components-button {
	background: var(--ink) !important; color: var(--paper) !important;
	border-radius: 0 !important; font-weight: 700 !important; font-family: var(--brand) !important;
	padding: 0.9rem 1.75rem !important; transition: background 0.2s !important;
}
.woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce #place_order:hover { background: var(--lavdeep) !important; }
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--ink) !important; }

/* Einzelprodukt */
.woocommerce div.product p.price { font-family: var(--mono); font-size: 1.5rem; color: var(--ink); }
.woocommerce div.product p.price ins { font-weight: 700; color: var(--lavdeep); text-decoration: none; }
.woocommerce div.product p.price del { font-size: 1.1rem; color: var(--inkmuted); }
.woocommerce div.product .product_title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -0.03em; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 0; background: var(--panel); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--paper); }
.woocommerce div.product form.cart .variations select { border: 1px solid var(--line); padding: 0.5rem; font-family: var(--brand); }
.woocommerce div.product form.cart div.quantity .qty { border: 1px solid var(--line); height: 3.1rem; font-family: var(--mono); }

/* Formulare, Hinweise */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	border: 1px solid var(--line); background: var(--paper); padding: 0.75rem 1rem;
	font-family: var(--brand); font-size: 0.95rem;
}
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { border-color: var(--ink); outline: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-top-color: var(--lavdeep) !important; background: var(--panel) !important;
	color: var(--ink) !important; border-radius: 0;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--lavdeep) !important; }

/* Tabellen (Warenkorb, Konto) */
.woocommerce table.shop_table { border: none; border-top: 1px solid var(--line); border-radius: 0; }
.woocommerce table.shop_table th { font-weight: 700; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--line); }
.woocommerce .cart_totals h2, .woocommerce-billing-fields h3, #order_review_heading { font-size: 1.25rem; }

/* Konto-Navigation */
.woocommerce-MyAccount-navigation ul { list-style: none; border-top: 1px solid var(--line); }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--line); }
.woocommerce-MyAccount-navigation a { display: block; padding: 0.9rem 0.25rem; text-decoration: none; font-weight: 500; color: var(--inkmuted); }
.woocommerce-MyAccount-navigation li.is-active a, .woocommerce-MyAccount-navigation a:hover { color: var(--ink); }

/* Abo-Feld an der Kasse */
#sixtnature-abo { border: 1px solid var(--line); background: var(--panel); padding: 1.25rem; margin-top: 1.5rem; }
#sixtnature-abo h3 { font-size: 1rem; margin-bottom: 0.5rem; }
#sixtnature-abo .abo-hinweis { font-size: 0.8rem; color: var(--inkmuted); margin-bottom: 0.75rem; }

/* Sternebewertungen im Markenton */
.woocommerce .star-rating span::before, .woocommerce p.stars a { color: var(--lavdeep); }
