/*
Theme Name:   MoinZeug
Theme URI:    https://www.moinzeug.de
Description:  Child-Theme für Kadence im MoinZeug-Look (Navy, Meerblau, Sand). Startseite per Shortcode [moinzeug_startseite].
Author:       MoinZeug
Template:     kadence
Version:      1.2.0
Text Domain:  moinzeug
*/

/* ---------- Marken-Tokens ---------- */
:root {
	--mz-navy: #12324a;
	--mz-sea: #4f7fa3;
	--mz-sea-light: #e8f0f5;
	--mz-sand: #f4ede1;
	--mz-sand-dark: #d9c9ad;
	--mz-ink: #1d2730;
	--mz-muted: #6b7a86;
	--mz-line: #b9c6cf;
	--mz-radius: 14px;
	--mz-font: "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body,
button,
input,
select,
textarea {
	font-family: var(--mz-font);
}

h1, h2, h3, h4, .mz-heading {
	font-family: var(--mz-font);
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--mz-navy);
}

/* ---------- Infoleiste über dem Header ---------- */
.mz-topbar {
	background: var(--mz-navy);
	color: #d3e2ec;
	font-size: 13px;
	text-align: center;
	padding: 7px 16px;
	letter-spacing: .02em;
}
.mz-topbar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.mz-topbar .mz-dot { opacity: .5; margin: 0 .6em; }

/* ---------- Header in Navy, Logo weiß ---------- */
.site-main-header-wrap .site-header-row-container-inner {
	background: var(--mz-navy);
}
.site-main-header-wrap .main-navigation .primary-menu-container > ul > li.menu-item > a,
.site-main-header-wrap .site-header-item .header-cart-button,
.site-main-header-wrap .site-header-item .search-toggle-open,
.site-main-header-wrap .site-header-item .header-account-button,
.site-main-header-wrap .mobile-toggle-open-container .menu-toggle-open {
	color: #fff;
}
.site-main-header-wrap .main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
.site-main-header-wrap .main-navigation .primary-menu-container > ul > li.current-menu-item > a {
	color: #a9c6da;
}
.site-branding .custom-logo { max-height: 72px; width: auto; }

/* ---------- Welle (vor dem Footer und in der Startseite) ---------- */
.mz-wave { display: block; width: 100%; height: 36px; }
.mz-wave--footer { margin-top: 48px; margin-bottom: -1px; }
.site-footer .site-footer-row-container-inner { background: var(--mz-navy); color: #d3e2ec; }
.site-footer a { color: #fff; }

/* ---------- Buttons ---------- */
.mz-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .button,
.wp-block-button__link {
	border-radius: 999px !important;
	font-weight: 700;
	letter-spacing: .01em;
}
.mz-btn {
	display: inline-block;
	padding: 13px 26px;
	background: var(--mz-navy);
	color: #fff;
	text-decoration: none;
	border: 2px solid var(--mz-navy);
	transition: background .15s, color .15s;
}
.mz-btn:hover { background: var(--mz-sea); border-color: var(--mz-sea); color: #fff; }
.mz-btn--ghost { background: transparent; color: var(--mz-navy); }
.mz-btn--ghost:hover { background: var(--mz-navy); border-color: var(--mz-navy); }
.mz-btn--light { background: #fff; color: var(--mz-navy); border-color: #fff; }
.mz-btn--light:hover { background: var(--mz-sand); border-color: var(--mz-sand); color: var(--mz-navy); }

/* ---------- Startseite: Hero ---------- */
.mz-hero {
	background: var(--mz-sand);
	border-radius: var(--mz-radius);
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	align-items: center;
	overflow: hidden;
}
.mz-hero__text { padding: 56px 48px; }
.mz-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--mz-sea);
	margin: 0 0 12px;
}
.mz-hero h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.04; margin: 0 0 16px; }
.mz-hero p { font-size: 18px; color: var(--mz-ink); margin: 0 0 28px; max-width: 34ch; }
.mz-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mz-hero__img { height: 100%; min-height: 380px; }
.mz-hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Vorteile-Leiste ---------- */
.mz-usps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin: 28px 0 8px;
	padding: 0;
	list-style: none;
}
.mz-usps li {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 14px 16px;
	border: 1px solid var(--mz-line);
	border-radius: var(--mz-radius);
	font-size: 14px;
	line-height: 1.3;
	color: var(--mz-ink);
}
.mz-usps svg { flex: none; width: 28px; height: 28px; color: var(--mz-sea); }
.mz-usps strong { display: block; color: var(--mz-navy); }

/* ---------- Abschnittstitel ---------- */
.mz-section { margin: 56px 0 0; }
.mz-section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.mz-section__head h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.mz-section__head a { color: var(--mz-sea); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- Orte-Kacheln ---------- */
.mz-orte {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
.mz-ort {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 150px;
	padding: 18px;
	border-radius: var(--mz-radius);
	background: var(--mz-navy);
	color: #fff;
	text-decoration: none;
	overflow: hidden;
	transition: transform .15s;
}
.mz-ort:nth-child(3n+2) { background: var(--mz-sea); }
.mz-ort:nth-child(3n+3) { background: #2b5675; }
.mz-ort:hover { transform: translateY(-3px); color: #fff; }
.mz-ort__name { font-size: 20px; font-weight: 800; line-height: 1.1; }
.mz-ort__count { font-size: 13px; color: #d3e2ec; margin-top: 4px; }
.mz-ort__wave { position: absolute; left: 0; right: 0; top: 18px; height: 22px; opacity: .35; }

/* ---------- Händler-Teaser ---------- */
.mz-b2b {
	margin-top: 56px;
	background: var(--mz-navy);
	color: #d3e2ec;
	border-radius: var(--mz-radius);
	padding: 44px 48px;
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 32px;
	align-items: center;
}
.mz-b2b h2 { color: #fff; margin: 0 0 12px; font-size: clamp(24px, 3vw, 34px); }
.mz-b2b .mz-eyebrow { color: #a9c6da; }
.mz-b2b ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.mz-b2b li::before { content: "⚓"; margin-right: 10px; color: #a9c6da; }
.mz-b2b__cta { text-align: right; }

/* ---------- WooCommerce: Produktkarten ---------- */
.woocommerce ul.products li.product,
.mz-products .product {
	background: #fff;
	border: 1px solid #e3e8ec;
	border-radius: var(--mz-radius);
	overflow: hidden;
	padding-bottom: 16px;
	transition: box-shadow .15s, transform .15s;
}
.woocommerce ul.products li.product:hover {
	box-shadow: 0 10px 28px rgba(18, 50, 74, .12);
	transform: translateY(-2px);
}
.woocommerce ul.products li.product a img { background: var(--mz-sand); margin-bottom: 12px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--mz-navy);
	padding: 0 16px;
}
.woocommerce ul.products li.product .price {
	color: var(--mz-ink);
	font-weight: 700;
	padding: 0 16px;
}
.woocommerce ul.products li.product .button { margin: 8px 16px 0; }
.woocommerce span.onsale {
	background: var(--mz-sea);
	border-radius: 999px;
}

/* Germanized-Pflichtangaben dezent */
.woocommerce .wc-gzd-additional-info,
.woocommerce .price-unit,
.woocommerce .shipping-costs-info,
.woocommerce .delivery-time-info {
	font-size: 12px;
	color: var(--mz-muted);
}

/* Händlerpreise (Wholesale Prices) hervorheben */
.wholesale_price_container {
	display: inline-block;
	margin-top: 4px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--mz-sea-light);
	color: var(--mz-navy);
	font-size: 14px;
}
.wholesale_price_title { font-weight: 700; }

/* Variationsauswahl (Farbe/Größe) */
.woocommerce div.product form.cart .variations select {
	border-radius: 10px;
	border-color: var(--mz-line);
}

/* ---------- Händlerseite ---------- */
.mz-h-hero {
	background: var(--mz-navy);
	color: #d3e2ec;
	border-radius: var(--mz-radius);
	padding: 56px 48px;
}
.mz-h-hero .mz-eyebrow { color: #a9c6da; }
.mz-h-hero h1 { color: #fff; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.05; margin: 0 0 14px; }
.mz-h-hero p { font-size: 18px; max-width: 46ch; margin: 0 0 26px; }

.mz-h-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.mz-h-card {
	border: 1px solid var(--mz-line);
	border-radius: var(--mz-radius);
	padding: 22px 22px 18px;
	background: #fff;
}
.mz-h-card:first-child { background: var(--mz-sand); border-color: var(--mz-sand-dark); }
.mz-h-card h3 { margin: 0 0 12px; font-size: 19px; }
.mz-h-card p { margin: 0 0 12px; }
.mz-h-prices { width: 100%; border-collapse: collapse; font-size: 15px; }
.mz-h-prices th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mz-muted); padding: 0 0 6px; }
.mz-h-prices td { padding: 7px 10px 7px 0; border-top: 1px solid var(--mz-sand-dark); vertical-align: top; }
.mz-h-prices td:last-child { padding-right: 0; }
.mz-h-prices td:nth-child(2) { font-weight: 800; color: var(--mz-navy); white-space: nowrap; padding-right: 8px; }
.mz-h-prices td:nth-child(3) { color: var(--mz-muted); white-space: nowrap; }
.mz-h-small { font-size: 12px; color: var(--mz-muted); margin: 10px 0 0 !important; }
.mz-h-lots { margin: 0; display: grid; gap: 12px; }
.mz-h-lots div { background: var(--mz-sea-light); border-radius: 10px; padding: 12px 14px; }
.mz-h-lots dt { font-weight: 800; color: var(--mz-navy); }
.mz-h-lots dd { margin: 2px 0 0; font-size: 14px; }
.mz-h-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.mz-h-list li { padding-left: 26px; position: relative; }
.mz-h-list li::before { content: "⚓"; position: absolute; left: 0; color: var(--mz-sea); }

.mz-h-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mz-h-steps li { display: grid; gap: 4px; padding: 20px; border-radius: var(--mz-radius); background: var(--mz-sea-light); color: var(--mz-ink); }
.mz-h-steps span {
	width: 34px; height: 34px; border-radius: 50%;
	background: var(--mz-sea); color: #fff; font-weight: 800;
	display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.mz-h-steps strong { color: var(--mz-navy); font-size: 17px; }

/* Händlerpreise gesperrt (Gäste) */
.mz-h-card--locked { display: flex; flex-direction: column; align-items: flex-start; }
.mz-h-card--locked .mz-btn { margin-top: auto; }
.mz-h-lock { font-size: 34px; line-height: 1; margin: 4px 0 12px !important; }

.mz-h-form {
	max-width: 760px;
	background: var(--mz-sand);
	border-radius: var(--mz-radius);
	padding: 28px;
	display: grid;
	gap: 14px;
}
.mz-h-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mz-h-row--1 { grid-template-columns: 1fr; }
.mz-h-row--plz { grid-template-columns: 140px 1fr; }
.mz-h-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: var(--mz-navy); }
.mz-h-form input[type=text],
.mz-h-form input[type=email],
.mz-h-form input[type=tel],
.mz-h-form select,
.mz-h-form textarea {
	width: 100%;
	font: 400 16px/1.4 var(--mz-font);
	color: var(--mz-ink);
	background: #fff;
	border: 1px solid var(--mz-sand-dark);
	border-radius: 10px;
	padding: 11px 13px;
}
.mz-h-form input:focus,
.mz-h-form select:focus,
.mz-h-form textarea:focus { outline: 2px solid var(--mz-sea); outline-offset: 1px; border-color: var(--mz-sea); }
.mz-h-form .mz-h-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--mz-ink); }
.mz-h-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--mz-navy); }
.mz-h-form .mz-btn { justify-self: start; font-size: 16px; cursor: pointer; }
.mz-h-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mz-h-notice { max-width: 760px; border-radius: var(--mz-radius); padding: 18px 22px; margin-bottom: 16px; line-height: 1.5; }
.mz-h-notice--ok { background: #e6f3ec; border: 1px solid #9fceb3; color: #174d31; }
.mz-h-notice--err { background: #fbeceb; border: 1px solid #e3a7a2; color: #7a1f17; }
.mz-h-notice .mz-btn { margin-top: 12px; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
	.mz-hero { grid-template-columns: 1fr; }
	.mz-hero__img { min-height: 260px; order: -1; }
	.mz-hero__text { padding: 32px 24px; }
	.mz-usps { grid-template-columns: 1fr 1fr; }
	.mz-orte { grid-template-columns: 1fr 1fr; }
	.mz-ort { min-height: 120px; padding: 14px; }
	.mz-ort__name { font-size: 16px; overflow-wrap: anywhere; }
	.mz-b2b { grid-template-columns: 1fr; padding: 32px 24px; }
	.mz-b2b__cta { text-align: left; }
	.mz-h-hero { padding: 36px 24px; }
	.mz-h-grid, .mz-h-steps { grid-template-columns: 1fr; }
	.mz-h-form { padding: 20px 16px; }
}
@media (max-width: 600px) {
	.mz-h-row, .mz-h-row--plz { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.mz-usps { grid-template-columns: 1fr; }
	.mz-topbar .mz-hide-sm { display: none; }
}
