/*
Theme Name: PACEWERK
Template: twentytwentyfive
Description: Präsentations-Theme für den PACEWERK-Demo-Shop (Sneaker & Streetwear) – redaktionelles Layout mit großer Typografie, Signalorange und Produktfokus.
Version: 1.1.2
Requires at least: 7.0
Requires PHP: 8.2
License: GPLv2 or later
Text Domain: pacewerk
*/

:root {
	--pw-paper: #f4f3ee;
	--pw-ink: #0b0b0c;
	--pw-signal: #ff4f1a;
	--pw-card: #eceae3;
	--pw-line: #d9d6cc;
	--pw-muted: #6b6860;
	--pw-dark: #121212;
	--pw-display: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
	--pw-gutter: clamp(20px, 4vw, 56px);
}

body { background: var(--pw-paper); color: var(--pw-ink); font-family: var(--pw-display); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* ── Infoleiste und Header ───────────────────────────────────────────── */
.pw-topbar { background: var(--pw-ink); color: #fff; gap: clamp(16px, 4vw, 48px) !important; padding: 9px var(--pw-gutter); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pw-topbar p { margin: 0; }
.pw-topbar p::before { content: "●"; color: var(--pw-signal); margin-right: 8px; font-size: 8px; vertical-align: 2px; }
.pw-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--pw-paper) 92%, transparent); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--pw-line); padding: 18px var(--pw-gutter); }
.pw-logo, .pw-logo a { font-size: 22px; font-weight: 900; letter-spacing: -.04em; text-decoration: none; text-transform: uppercase; margin: 0; }
.pw-logo a::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pw-signal); margin-left: 4px; }
.pw-nav { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; gap: clamp(14px, 2.4vw, 34px) !important; }
.pw-nav a { text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.pw-nav a:hover, .pw-nav .current-menu-item a { border-bottom-color: var(--pw-signal); }
.pw-nav .pw-nav-sale a { color: var(--pw-signal); }
.pw-header-actions { gap: 14px !important; align-items: center; }
.pw-header-actions .wp-block-search__button { background: transparent; color: var(--pw-ink); border: 0; padding: 4px; }
.wc-block-mini-cart__button { font-weight: 800; }
.wc-block-mini-cart__badge { background: var(--pw-signal) !important; color: #fff !important; border-color: var(--pw-signal) !important; }

/* Demo-Hinweis von WooCommerce */
.woocommerce-store-notice, p.demo_store { position: fixed !important; bottom: 0; top: auto !important; left: 0; right: 0; z-index: 60; box-sizing: border-box; width: 100%; max-width: none; margin: 0; padding: 10px var(--pw-gutter); background: var(--pw-signal) !important; color: #fff !important; font-size: 12px; font-weight: 700; line-height: 1.5; text-align: center; white-space: normal; box-shadow: none; }
.woocommerce-store-notice__dismiss-link { margin-left: 10px; text-decoration: underline; }
.woocommerce-store-notice a { color: #fff; font-weight: 900; }

/* ── Bausteine ───────────────────────────────────────────────────────── */
.pw-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 18px; }
.pw-eyebrow .pw-num { color: var(--pw-signal); }
.pw-display { font-family: var(--pw-display); font-weight: 900; text-transform: uppercase; letter-spacing: -.065em; line-height: .86; margin: 0; }
.pw-display .pw-outline { color: transparent; -webkit-text-stroke: 2px var(--pw-ink); }
.pw-display .pw-signal { color: var(--pw-signal); }
.pw-btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 17px 26px; background: var(--pw-signal); color: #fff; font: 800 11px/1 var(--pw-display); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.pw-btn:hover { transform: translateY(-2px); background: var(--pw-ink); }
.pw-btn--ghost { background: transparent; color: inherit; border: 2px solid currentColor; }
.pw-btn--ghost:hover { background: currentColor; }
.pw-btn--ghost:hover span { color: var(--pw-paper); }
.pw-link { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid var(--pw-signal); padding-bottom: 4px; }
.pw-section { padding: clamp(64px, 9vw, 128px) var(--pw-gutter); }
.pw-section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.pw-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center; min-height: min(86vh, 860px); padding: 48px var(--pw-gutter) 72px; overflow: hidden; background: radial-gradient(120% 90% at 85% 40%, #e7e4da 0%, var(--pw-paper) 60%); }
.pw-hero .pw-display { font-size: clamp(64px, 11.5vw, 184px); }
.pw-hero-copy p.pw-lead { max-width: 440px; font-size: 17px; line-height: 1.5; margin: 28px 0 32px; }
.pw-hero-visual { position: relative; justify-self: center; width: min(560px, 100%); aspect-ratio: 1; }
.pw-hero-visual::before { content: ""; position: absolute; inset: 6% -2% -4% 8%; background: var(--pw-signal); transform: rotate(-7deg); border-radius: 6px; }
.pw-hero-visual img { position: relative; width: 100%; height: 100%; object-fit: cover; background: #fff; transform: rotate(4deg); border-radius: 6px; box-shadow: 0 40px 80px -30px rgba(11, 11, 12, .45); }
.pw-hero-tag { position: absolute; z-index: 2; left: -6%; bottom: 10%; background: var(--pw-ink); color: #fff; padding: 14px 18px; border-radius: 4px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.pw-hero-tag small { display: block; color: var(--pw-signal); font-size: 10px; letter-spacing: .16em; margin-bottom: 4px; }

/* ── Laufband ────────────────────────────────────────────────────────── */
.pw-marquee { background: var(--pw-signal); color: var(--pw-ink); overflow: hidden; border-block: 2px solid var(--pw-ink); }
.pw-marquee-track { display: flex; width: max-content; animation: pw-marquee 32s linear infinite; }
.pw-marquee span { padding: 16px 28px; font-size: clamp(14px, 1.6vw, 20px); font-weight: 900; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.pw-marquee span::after { content: "✦"; margin-left: 56px; }
@keyframes pw-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .pw-marquee-track { animation: none; } }

/* ── Haltung (dunkel, geteilt) ──────────────────────────────────────── */
.pw-split { display: grid; grid-template-columns: 1fr 1fr; background: var(--pw-dark); color: #fff; }
.pw-split-copy { padding: clamp(56px, 8vw, 120px) var(--pw-gutter); display: flex; flex-direction: column; justify-content: center; }
.pw-split .pw-display { font-size: clamp(54px, 8vw, 128px); }
.pw-split .pw-display .pw-outline { -webkit-text-stroke-color: #fff; }
.pw-split p { max-width: 460px; color: #c9c6bd; line-height: 1.6; margin: 28px 0; }
.pw-split-visual { position: relative; display: block; min-height: 420px; background: var(--pw-card); overflow: hidden; }
.pw-split-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pw-split-visual:hover img { transform: scale(1.04); }
.pw-split-visual::after { content: attr(data-label); position: absolute; right: 24px; bottom: 24px; background: var(--pw-signal); color: #fff; padding: 10px 14px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* ── Kategorien ──────────────────────────────────────────────────────── */
.pw-cats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.pw-cat { position: relative; display: block; min-height: 420px; background: var(--pw-card); border-radius: 6px; overflow: hidden; text-decoration: none; }
.pw-cat img { position: absolute; inset: 8% 8% 22%; width: 84%; height: 70%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s ease; }
.pw-cat:hover img { transform: scale(1.05) rotate(-2deg); }
.pw-cat h3 { position: absolute; left: 24px; bottom: 22px; margin: 0; font-size: clamp(32px, 3.6vw, 54px); font-weight: 900; letter-spacing: -.05em; text-transform: uppercase; }
.pw-cat span { position: absolute; right: 24px; top: 24px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* ── Vorteile ────────────────────────────────────────────────────────── */
.pw-usps { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--pw-line); }
.pw-usp { padding: 36px var(--pw-gutter); border-right: 1px solid var(--pw-line); }
.pw-usp:last-child { border-right: 0; }
.pw-usp strong { display: block; font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.pw-usp p { margin: 0; color: var(--pw-muted); font-size: 14px; line-height: 1.5; }

/* ── Fragmal-Aufruf ──────────────────────────────────────────────────── */
.pw-ask { background: var(--pw-ink); color: #fff; text-align: center; }
.pw-ask .pw-display { font-size: clamp(48px, 9vw, 150px); }
.pw-ask .pw-display .pw-outline { -webkit-text-stroke-color: #fff; }
.pw-ask p { max-width: 560px; margin: 28px auto 36px; color: #c9c6bd; line-height: 1.6; }
.pw-ask-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 36px; }
.pw-ask-chips button { background: transparent; color: #fff; border: 1px solid #3a3a3a; border-radius: 999px; padding: 10px 16px; font: 600 13px/1.2 var(--pw-display); cursor: pointer; }
.pw-ask-chips button:hover { border-color: var(--pw-signal); color: var(--pw-signal); }

/* ── Produktkarten (Shortcodes und Blöcke) ───────────────────────────── */
.woocommerce ul.products, .wc-block-product-template { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; margin: 0; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, .wc-block-product { width: auto !important; margin: 0 !important; float: none !important; position: relative; }
.woocommerce ul.products li.product a img, .wc-block-components-product-image img { background: var(--pw-card); border-radius: 6px; aspect-ratio: 1; object-fit: cover; mix-blend-mode: multiply; transition: transform .3s ease; margin: 0 0 14px !important; }
.woocommerce ul.products li.product:hover a img, .wc-block-product:hover .wc-block-components-product-image img { transform: translateY(-4px); }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .wc-block-product .wp-block-post-title { font-size: 15px !important; font-weight: 800; letter-spacing: -.01em; padding: 0 !important; margin: 0 0 6px !important; }
.woocommerce ul.products li.product .price, .wc-block-components-product-price { color: var(--pw-ink) !important; font-size: 14px !important; font-weight: 600; }
.woocommerce ul.products li.product .price del, .wc-block-components-product-price del { color: var(--pw-muted); font-weight: 400; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--pw-signal); }
.woocommerce-price-suffix { display: none; }
.woocommerce span.onsale, .wc-block-components-product-sale-badge { position: absolute; top: 12px; left: 12px; right: auto; min-height: 0; min-width: 0; line-height: 1; padding: 7px 10px; border-radius: 999px; background: var(--pw-signal); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; border: 0; }
.woocommerce ul.products li.product .button, .wc-block-components-product-button .wp-block-button__link { display: none; }
.pw-cat-label { display: block; font-size: 11px; color: var(--pw-muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }

/* ── Katalog- und Produktseiten ─────────────────────────────────────── */
.woocommerce-products-header__title, .wp-block-query-title, .wc-block-store-notices + h1, .is-layout-constrained > .wp-block-query-title { font-weight: 900; text-transform: uppercase; letter-spacing: -.05em; font-size: clamp(44px, 7vw, 108px); line-height: .9; }
.woocommerce-breadcrumb, .wc-block-breadcrumbs { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pw-muted); }
.single-product .wp-block-post-title { font-size: clamp(36px, 4.6vw, 68px); font-weight: 900; letter-spacing: -.05em; line-height: .95; text-transform: uppercase; }
.single-product .wc-block-components-product-price, .single-product .price { font-size: 22px !important; font-weight: 800; }
.single-product .woocommerce-product-gallery img, .single-product .wc-block-components-product-image img { background: var(--pw-card); border-radius: 8px; mix-blend-mode: multiply; }
.single_add_to_cart_button, .wc-block-components-product-add-to-cart-button, .woocommerce .single_add_to_cart_button.button { background: var(--pw-ink) !important; color: #fff !important; border-radius: 999px !important; padding: 18px 32px !important; font-weight: 800 !important; letter-spacing: .14em; text-transform: uppercase; font-size: 12px !important; }
.single_add_to_cart_button:hover { background: var(--pw-signal) !important; }
.woocommerce div.product form.cart .variations select { border: 2px solid var(--pw-ink); border-radius: 999px; padding: 12px 16px; font-weight: 700; background: #fff; }
.woocommerce div.product .stock { font-weight: 700; }
.woocommerce div.product .stock.out-of-stock { color: var(--pw-signal); }
.woocommerce table.shop_attributes th { text-transform: uppercase; font-size: 11px; letter-spacing: .1em; width: 34%; }
.pw-features { list-style: none; padding: 0; margin: 0 0 20px; }
.pw-features li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--pw-line); position: relative; }
.pw-features li::before { content: ""; position: absolute; left: 0; top: 17px; width: 10px; height: 10px; background: var(--pw-signal); border-radius: 50%; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.pw-footer { background: var(--pw-ink); color: #fff; padding: clamp(56px, 7vw, 96px) var(--pw-gutter) 96px; }
.pw-footer .pw-footer-brand { max-width: none; font-size: clamp(64px, 14vw, 220px); font-weight: 900; letter-spacing: -.07em; line-height: .8; text-transform: uppercase; margin: 0 0 48px; color: transparent; -webkit-text-stroke: 1.5px #3a3a3a; }
.pw-footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.pw-footer h4 { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--pw-signal); margin: 0 0 14px; }
.pw-footer ul { list-style: none; margin: 0; padding: 0; }
.pw-footer li { margin-bottom: 8px; }
.pw-footer a { color: #e7e4da; text-decoration: none; font-size: 14px; }
.pw-footer a:hover { color: var(--pw-signal); }
.pw-footer p { color: #a9a69d; font-size: 13px; line-height: 1.6; margin: 0 0 10px; max-width: 420px; }

/* ── Responsiv ───────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
	.woocommerce ul.products, .wc-block-product-template { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pw-cats { grid-template-columns: 1fr 1fr; }
	.pw-cats .pw-cat:first-child { grid-column: 1 / -1; }
}
@media (max-width: 782px) {
	.pw-topbar p:not(:first-child) { display: none; }
	.pw-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; }
	.pw-hero-visual { width: 86%; }
	.pw-split { grid-template-columns: 1fr; }
	.pw-split-visual { min-height: 320px; }
	.pw-usps { grid-template-columns: 1fr; }
	.pw-usp { border-right: 0; border-bottom: 1px solid var(--pw-line); }
	.woocommerce ul.products, .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pw-cats { grid-template-columns: 1fr; }
	.pw-cat { min-height: 320px; }
	.pw-footer-cols { grid-template-columns: 1fr 1fr; }
}

/* ── Größen-Pillen und Produktsammlungen ─────────────────────────────── */
.woocommerce div.product form.cart table.variations { margin-bottom: 18px; }
.woocommerce div.product form.cart table.variations th, .woocommerce div.product form.cart table.variations td { display: block; padding: 0; }
.woocommerce div.product form.cart table.variations th label { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pw-select-hidden { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.pw-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.pw-size { min-width: 58px; padding: 12px 14px; border: 1.5px solid var(--pw-line); border-radius: 999px; background: #fff; color: var(--pw-ink); font: 700 14px/1 var(--pw-display); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.pw-size:hover:not(:disabled) { border-color: var(--pw-ink); }
.pw-size[aria-pressed="true"] { background: var(--pw-ink); border-color: var(--pw-ink); color: #fff; }
.pw-size:disabled { color: var(--pw-muted); background: transparent; text-decoration: line-through; opacity: .55; cursor: not-allowed; }
.woocommerce div.product form.cart .reset_variations { font-size: 12px; }
.wc-block-product .wp-block-post-title, .wc-block-product .wc-block-components-product-price { text-align: left !important; }
.wc-block-product .wp-block-post-title { text-transform: none; }
.wc-block-product .wp-block-post-title a { text-decoration: none; }
.wc-block-product .wc-block-components-product-button { display: none; }
.wc-block-product .wc-block-components-product-image { position: relative; }
.wc-block-product .wc-block-components-product-sale-badge { right: auto !important; left: 12px !important; }
.wp-block-woocommerce-product-collection h2, .related.products > h2 { font-size: clamp(28px, 3.4vw, 48px); font-weight: 900; text-transform: uppercase; letter-spacing: -.05em; }

/* Ohne Fragmal-Chat auf der Seite keine Chat-Knöpfe. */
.pw-no-chat [data-pw-ask], .pw-no-chat .pw-ask { display: none !important; }

/* Plakette links oben, auch gegen die spezifischere WooCommerce-Regel. */
.woocommerce ul.products li.product .onsale { top: 12px; left: 12px; right: auto; margin: 0; }
/* Seitentitel im Display-Stil. */
.page .wp-block-post-title, .woocommerce-products-header__title.page-title { font-weight: 900; text-transform: uppercase; letter-spacing: -.05em; font-size: clamp(44px, 7vw, 108px); line-height: .9; }

/* ── Sprachumschalter ────────────────────────────────────────────────── */
.pw-langs { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1.5px solid var(--pw-ink); border-radius: 999px; background: #fff; }
.pw-lang { display: inline-block; min-width: 34px; padding: 6px 9px; border-radius: 999px; font: 800 11px/1 var(--pw-display); letter-spacing: .08em; text-align: center; text-decoration: none; color: var(--pw-ink); }
.pw-lang:hover { background: var(--pw-card); }
.pw-lang.is-active { background: var(--pw-ink); color: #fff; }
.pw-lang:focus-visible { outline: 2px solid var(--pw-signal); outline-offset: 2px; }
.pw-footer .pw-langs { margin-top: 18px; background: transparent; border-color: #3a3a3a; }
.pw-footer .pw-lang { color: #e7e4da; }
.pw-footer .pw-lang.is-active { background: var(--pw-signal); color: #fff; }
@media (max-width: 782px) {
	.pw-header-actions .pw-langs { padding: 2px; }
	.pw-header-actions .pw-lang { min-width: 28px; padding: 5px 6px; font-size: 10px; }
}

/* Längere Menüpunkte (pl, en): Logo nie umbrechen, Navigation enger statt zweizeilig. */
.pw-logo, .pw-logo a { white-space: nowrap; flex-shrink: 0; }
.pw-nav .wp-block-navigation-item__content { white-space: nowrap; }
@media (max-width: 1180px) {
	.pw-nav { gap: 12px !important; letter-spacing: .06em; font-size: 11px; }
	.pw-topbar { gap: 20px !important; }
}
@media (max-width: 960px) and (min-width: 600px) {
	.pw-header { padding-inline: 20px; gap: 12px; }
	.pw-nav { gap: 9px !important; font-size: 10px; letter-spacing: .04em; }
}

/* Handy: Sprachumschalter und Symbole in eigener Zeile, damit nichts abgeschnitten wird. */
@media (max-width: 600px) {
	.pw-header { flex-wrap: wrap !important; row-gap: 10px; }
	.pw-header-actions { order: 3; width: 100%; justify-content: space-between; }
}
