/*
Theme Name: Raumzauberer
Theme URI: https://raumzauberer.de
Author: Alexander Borchert Medien
Author URI: https://abmonline.de
Description: Eigenes WooCommerce-Theme für Raumzauberer – Paravents und Raumteiler. Look „Nacht-Shoji“: Indigo-Nacht, kühles Papierweiß, Zinnober. Startseite in senkrechten Bahnen wie ein Faltparavent, Raum-Zauberer mit eigenem Zimmerfoto, Abendlicht mit Schattenkatze, Videocall-Ansicht mit Webcam-Hintergrund, Raum-im-Raum-Finder, Kreppband-Stellprobe, Geschwister-Grenzvertrag und Jahreszeiten-Startseite. Schriften lokal.
Version: 1.0.2
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
WC requires at least: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: raumzauberer
*/

/* ---------- Schriften (lokal, SIL OFL) ---------- */
@font-face { font-family: "Shippori Mincho"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/shippori-mincho-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Shippori Mincho"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/shippori-mincho-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/zen-kaku-gothic-new-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/zen-kaku-gothic-new-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/zen-kaku-gothic-new-latin-700-normal.woff2") format("woff2"); }

/* ---------- Farben & Maße ---------- */
:root {
	--rz-night: #141A2E;
	--rz-paper: #EEF1F6;
	--rz-line: #3A4466;
	--rz-surface: #1C2440;
	--rz-deep: #0F1426;
	--rz-accent: #FF6B3D;
	--rz-muted: #AEB6CC;
	--rz-glow: #F7A651;
	--rz-serif: "Shippori Mincho", "Hiragino Mincho ProN", Georgia, serif;
	--rz-sans: "Zen Kaku Gothic New", system-ui, -apple-system, "Segoe UI", sans-serif;
	--rz-max: 1440px;
	--rz-pad: clamp(18px, 3vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--rz-night); color: var(--rz-paper); font-family: var(--rz-sans); font-size: 17px; line-height: 1.65; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--rz-paper); text-underline-offset: 3px; }
a:hover { color: var(--rz-accent); }
:focus-visible { outline: 3px solid var(--rz-accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--rz-serif); font-weight: 800; line-height: 1.2; margin: 0 0 .5em; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important; }
.rz-skip:focus { clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 100; top: 8px; left: 8px; background: var(--rz-accent); color: var(--rz-night); padding: 10px 16px; }

.rz-eyebrow { margin: 0 0 6px; font-family: var(--rz-sans); font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--rz-accent); }

/* ---------- Buttons ---------- */
.rz-btn, .button, button.button, a.button, input[type="submit"], .wp-element-button, .wc-block-components-button:not(.is-link) {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 22px; border: 1px solid var(--rz-paper); border-radius: 0;
	background: transparent; color: var(--rz-paper); font-family: var(--rz-sans); font-size: 15px; font-weight: 700;
	text-decoration: none; letter-spacing: .02em; cursor: pointer; transition: background .2s, color .2s;
}
.rz-btn:hover, .button:hover, a.button:hover { background: var(--rz-paper); color: var(--rz-night); }
.rz-btn-accent, .button.alt, .single_add_to_cart_button, .checkout-button, #place_order, .wc-block-components-checkout-place-order-button, .wc-block-cart__submit-button, .woocommerce a.button.alt, .woocommerce button.button.alt {
	background: var(--rz-accent) !important; border-color: var(--rz-accent) !important; color: var(--rz-night) !important;
}
.rz-btn-accent:hover, .button.alt:hover, .single_add_to_cart_button:hover { background: var(--rz-paper) !important; border-color: var(--rz-paper) !important; color: var(--rz-night) !important; }
.rz-btn-ghost { border-color: var(--rz-line); }
.rz-btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Demomodus ---------- */
.rz-demo-band { margin: 0; padding: 8px var(--rz-pad); background: var(--rz-accent); color: var(--rz-night); font-size: 14px; font-weight: 700; text-align: center; }
.rz-demo-tag { font-size: 13px; font-weight: 700; color: var(--rz-accent); }

/* ---------- Kopf ---------- */
.rz-header { border-bottom: 1px solid var(--rz-line); background: var(--rz-night); position: relative; z-index: 20; }
.rz-header-inner { max-width: var(--rz-max); margin: 0 auto; padding: 18px var(--rz-pad); display: flex; align-items: center; gap: 24px; }
.rz-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--rz-serif); font-weight: 800; font-size: 22px; letter-spacing: .3em; text-transform: uppercase; color: var(--rz-paper); }
.rz-logo-mark { width: 36px; height: 28px; transition: transform .4s; }
.rz-logo:hover .rz-logo-mark { transform: scaleX(.7); }
.rz-nav { margin-left: auto; }
.rz-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 15px; font-weight: 500; }
.rz-menu a { text-decoration: none; padding: 8px 0; display: inline-block; }
.rz-menu .rz-menu-accent a, .rz-menu .menu-accent a { color: var(--rz-accent); font-weight: 700; }
.rz-menu .current-menu-item > a { border-bottom: 2px solid var(--rz-accent); }
.rz-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.rz-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; text-decoration: none; }
.rz-cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--rz-accent); color: var(--rz-night); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.rz-menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--rz-line); background: transparent; }
.rz-menu-toggle-bars, .rz-menu-toggle-bars::before, .rz-menu-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--rz-paper); margin: 0 auto; position: relative; content: ""; }
.rz-menu-toggle-bars::before { position: absolute; top: -6px; }
.rz-menu-toggle-bars::after { position: absolute; top: 6px; }

@media (max-width: 900px) {
	.rz-menu-toggle { display: block; }
	.rz-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--rz-night); border-bottom: 1px solid var(--rz-line); padding: 12px var(--rz-pad) 20px; }
	.rz-nav.is-open { display: block; }
	.rz-menu { flex-direction: column; gap: 0; font-size: 18px; }
	.rz-menu a { padding: 12px 0; }
	.rz-logo { font-size: 18px; letter-spacing: .22em; }
}

/* ---------- Seitenrahmen ---------- */
.rz-main { max-width: var(--rz-max); margin: 0 auto; padding: 0 var(--rz-pad) 64px; }
.rz-front { padding-left: 0; padding-right: 0; }
.rz-section { padding: clamp(40px, 6vw, 80px) var(--rz-pad) 0; }
.rz-section-head { margin-bottom: 28px; }
.rz-section-head h2 { font-size: clamp(28px, 3.4vw, 44px); margin: 0; }

/* ---------- Startseite: Bahnen wie ein Faltparavent ---------- */
.rz-hero { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); border-bottom: 1px solid var(--rz-line); perspective: 1600px; }
.rz-band { border-right: 1px solid var(--rz-line); min-width: 0; transform-origin: left center; }
.rz-band:last-child { border-right: 0; }
.rz-js .rz-band { animation: rz-unfold .9s cubic-bezier(.2, .7, .2, 1) both; }
.rz-js .rz-band:nth-child(2) { animation-delay: .15s; }
@keyframes rz-unfold { from { transform: rotateY(-62deg); opacity: 0; } to { transform: none; opacity: 1; } }

.rz-band-title { padding: 40px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 720px; }
.rz-h1 { margin: 0; display: flex; flex-direction: column; gap: 22px; }
.rz-h1-kicker { font-family: var(--rz-sans); font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--rz-accent); }
.rz-h1-vertical { writing-mode: vertical-lr; font-size: clamp(48px, 4.8vw, 74px); line-height: 1.15; font-weight: 800; max-height: 560px; }
.rz-band-foot { display: flex; flex-direction: column; gap: 14px; max-width: 220px; font-size: 14px; color: var(--rz-muted); }
.rz-band-foot p { margin: 0; }
.rz-rule { width: 40px; height: 4px; background: var(--rz-accent); }

.rz-band-zauberer { background: var(--rz-surface); padding: 28px 32px; }
.rz-front .rz-stage { height: clamp(380px, 40vw, 560px); }
.rz-front .rz-z-title { font-size: clamp(28px, 3vw, 44px); }

.rz-band-rooms { padding: 40px 28px; display: flex; flex-direction: column; gap: 10px; }
.rz-band-rooms > .rz-eyebrow { color: var(--rz-paper); margin-bottom: 14px; }
.rz-rooms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rz-room-link { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0 14px; border-bottom: 1px solid var(--rz-line); text-decoration: none; }
.rz-room-name { font-family: var(--rz-serif); font-size: clamp(22px, 1.9vw, 28px); font-weight: 800; line-height: 1.2; transition: transform .25s; }
.rz-room-num { font-size: 13px; color: var(--rz-muted); }
.rz-room-link:hover .rz-room-name { transform: translateX(6px); }
.rz-room-link.is-season .rz-room-name { color: var(--rz-accent); }
.rz-room-link.is-season .rz-room-num { color: var(--rz-night); background: var(--rz-accent); padding: 2px 8px; font-weight: 700; }
.rz-vertrag-teaser { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--rz-accent); color: var(--rz-night); text-decoration: none; transition: transform .25s; }
.rz-vertrag-teaser .rz-eyebrow { color: var(--rz-night); }
.rz-vertrag-teaser-title { font-family: var(--rz-serif); font-size: 22px; font-weight: 800; line-height: 1.3; }
.rz-vertrag-teaser:hover { color: var(--rz-night); transform: rotate(-1deg); }

@media (max-width: 1180px) {
	.rz-hero { grid-template-columns: 1fr 1fr; }
	.rz-band-title { min-height: 0; grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--rz-line); padding: 32px var(--rz-pad); }
	.rz-h1-vertical { writing-mode: horizontal-tb; font-size: clamp(38px, 6vw, 60px); max-height: none; }
	.rz-band-foot { max-width: 520px; }
	.rz-band-zauberer { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--rz-line); }
	.rz-band-rooms { grid-column: 1 / -1; padding: 32px var(--rz-pad); }
	.rz-js .rz-band { animation: none; }
}
@media (max-width: 600px) {
	.rz-band-zauberer { padding: 18px 12px; }
}

/* ---------- Raum-Zauberer ---------- */
.rz-zauberer { display: flex; flex-direction: column; gap: 16px; }
.rz-z-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.rz-z-title { margin: 0; font-size: clamp(26px, 2.6vw, 36px); }
.rz-tabs { display: flex; border: 1px solid var(--rz-line); }
.rz-tab { border: 0; background: transparent; padding: 10px 18px; min-height: 44px; font-size: 14px; font-weight: 700; }
.rz-tab[aria-pressed="true"] { background: var(--rz-accent); color: var(--rz-night); }

.rz-stage { position: relative; height: clamp(340px, 40vw, 480px); overflow: hidden; background: #DDE3EE; border: 1px solid var(--rz-line); touch-action: pan-y; }
.rz-room, .rz-room svg, .rz-room img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rz-room img { object-fit: cover; transition: filter .5s; }
.rz-veil { position: absolute; inset: 0; pointer-events: none; background: transparent; transition: background .5s; z-index: 1; }
.has-photo .rz-stage.is-night .rz-room img { filter: brightness(.32) saturate(.6) hue-rotate(-10deg); }
.has-photo .rz-stage.is-night .rz-veil { background: rgba(10, 14, 32, .35); }

.rz-screen { position: absolute; display: flex; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; filter: drop-shadow(0 16px 14px rgba(0, 0, 0, .25)); transition: left .25s ease, bottom .25s ease, width .25s ease, height .25s ease; }
.rz-screen:active { cursor: grabbing; }
.rz-panel { flex: 1 1 0; height: 100%; margin: 0 -1px; transform: perspective(700px) rotateY(var(--rz-fold, 0deg)); transition: transform .26s ease, opacity .26s ease; }
.rz-panel:nth-child(even) { filter: brightness(.86); }
.rz-panel svg { width: 100%; height: 100%; display: block; }
.rz-screen.is-folding .rz-panel { transform: perspective(700px) rotateY(86deg) scaleX(.25); opacity: .15; }
.is-night .rz-screen { filter: drop-shadow(0 0 28px rgba(247, 166, 81, .55)); }
.is-night .rz-panel:nth-child(even) { filter: brightness(.94); }
.rz-floor-glow { position: absolute; left: -25%; right: -25%; bottom: -10%; height: 22%; background: radial-gradient(ellipse at center, rgba(255, 200, 120, .45), transparent 70%); opacity: 0; transition: opacity .5s; pointer-events: none; z-index: -1; }
.is-night .rz-floor-glow { opacity: 1; }
.rz-cat-tail { transform-box: fill-box; transform-origin: 0% 100%; animation: rz-tail 2.6s ease-in-out infinite; }
@keyframes rz-tail { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-14deg); } }
.rz-cat { animation: rz-cat-in .7s ease-out both; }
@keyframes rz-cat-in { from { opacity: 0; } to { opacity: 1; } }
.rz-peek-wrap { position: absolute; bottom: 99%; width: 18%; min-width: 34px; transform: translateX(-50%); pointer-events: none; }
.rz-peek { display: block; width: 100%; animation: rz-peek 1s cubic-bezier(.3, 1.4, .5, 1) .3s both; }
.rz-peek-eye { animation: rz-blink 4s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes rz-peek { from { transform: translateY(100%); } to { transform: none; } }
@keyframes rz-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

.rz-stage-hint { position: absolute; left: 14px; bottom: 14px; z-index: 3; margin: 0; max-width: 260px; padding: 8px 12px; background: var(--rz-night); color: var(--rz-paper); font-size: 13px; line-height: 1.45; }
.rz-toolbar { position: absolute; z-index: 4; display: flex; flex-wrap: wrap; gap: 6px; }
.rz-toolbar-top { top: 12px; right: 12px; left: 12px; justify-content: flex-end; }
.rz-toolbar-bottom { bottom: 12px; right: 12px; }
.rz-tool { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 10px; border: 0; background: var(--rz-night); color: var(--rz-paper); font-size: 14px; font-weight: 700; cursor: pointer; }
.rz-tool:hover { background: var(--rz-surface); }
.rz-tool-wide { padding: 0 14px; }
.rz-tool-accent { background: var(--rz-accent); color: var(--rz-night); }
.rz-tool-accent:hover { background: var(--rz-paper); }
.rz-night-btn[aria-pressed="true"] { background: #F5E9C8; color: var(--rz-night); }
.rz-upload { position: relative; }
.rz-upload:focus-within { outline: 3px solid var(--rz-accent); outline-offset: 2px; }
.rz-only-photo { display: none; }
.has-photo .rz-only-photo { display: inline-flex; }
.has-photo .rz-no-photo { display: none; }
.rz-stage:focus-visible { outline-offset: -3px; }
@media (max-width: 640px) {
	.rz-tool-wide span { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; }
	.rz-tool-wide { padding: 0 10px; }
	.rz-stage-hint { display: none; }
	.rz-toolbar-bottom { left: 12px; justify-content: center; }
}

.rz-models { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--rz-line); }
.rz-chip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 72px; border: 0; border-right: 1px solid var(--rz-line); background: var(--rz-surface); color: var(--rz-paper); text-align: left; }
.rz-chip:last-child { border-right: 0; }
.rz-chip:hover { background: #222C4E; }
.rz-chip[aria-pressed="true"] { background: var(--rz-paper); color: var(--rz-night); }
.rz-chip-swatch { width: 30px; height: 50px; flex-shrink: 0; display: block; }
.rz-chip-swatch svg { width: 100%; height: 100%; display: block; }
.rz-chip-text { display: flex; flex-direction: column; gap: 2px; }
.rz-chip-name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.rz-chip-meta { font-size: 13px; opacity: .85; }
.rz-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.rz-info-dims { font-size: 14px; color: var(--rz-muted); }
.rz-privacy { margin: 0; font-size: 13px; color: var(--rz-muted); }

/* Videocall */
.rz-call { display: flex; flex-direction: column; gap: 14px; }
.rz-call-window { position: relative; display: grid; grid-template-columns: 1fr 26%; gap: 8px; padding: 10px 10px 64px; background: #0B0F1C; border: 1px solid var(--rz-line); aspect-ratio: 16 / 9; max-height: 480px; }
.rz-call-main { position: relative; overflow: hidden; background: #DDE3EE; border-radius: 8px; }
.rz-call-bg { position: absolute; inset: 0; display: flex; justify-content: center; gap: 0; padding-top: 4%; overflow: hidden; }
.rz-call-panel { flex: 0 0 auto; height: 100%; }
.rz-call-panel svg { width: 100%; height: 100%; display: block; }
.rz-call-panel.is-back { filter: brightness(.86); }
.rz-person { position: absolute; left: 50%; bottom: 0; width: 64%; height: 70%; transform: translateX(-50%); }
.rz-call-name { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 4px; background: rgba(11, 15, 28, .75); color: #fff; font-size: 13px; }
.rz-call-side { display: flex; flex-direction: column; gap: 8px; }
.rz-call-tile { position: relative; flex: 1 1 0; overflow: hidden; border-radius: 8px; background: #2A3150; }
.rz-call-tile svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rz-call-tile span { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 4px; background: rgba(11, 15, 28, .75); color: #fff; font-size: 11px; }
.rz-call-bar { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 10px; }
.rz-call-btn { width: 40px; height: 40px; border-radius: 50%; background: #2A3150; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.rz-call-end { background: var(--rz-accent); }
.rz-call-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.rz-call-cta p { margin: 0; max-width: 520px; font-size: 15px; }
@media (max-width: 640px) {
	.rz-call-window { grid-template-columns: 1fr; aspect-ratio: auto; height: 340px; }
	.rz-call-side { display: none; }
}

/* ---------- Finder ---------- */
.rz-finder { border: 1px solid var(--rz-line); padding: clamp(22px, 4vw, 44px); background: linear-gradient(90deg, var(--rz-surface) 0 33.3%, var(--rz-night) 33.3% 66.6%, var(--rz-surface) 66.6%); }
.rz-finder-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 24px; margin-bottom: 24px; }
.rz-finder-head h2 { flex: 1 1 420px; margin: 0; font-size: clamp(26px, 3vw, 40px); }
.rz-finder-head .rz-eyebrow { flex-basis: 100%; }
.rz-dots { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.rz-dots li { width: 28px; height: 6px; background: var(--rz-line); transition: background .3s; }
.rz-dots li.is-on { background: var(--rz-accent); }
.rz-finder-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.rz-finder-q { font-family: var(--rz-serif); font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; margin-bottom: 18px; padding: 0; }
.rz-finder-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.rz-finder-opt { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 14px; min-height: 150px; border: 1px solid var(--rz-line); background: var(--rz-night); color: var(--rz-paper); font-size: 15px; font-weight: 700; text-align: center; transition: transform .2s, background .2s, color .2s; }
.rz-finder-opt:hover { transform: translateY(-3px); border-color: var(--rz-paper); }
.rz-finder-opt[aria-pressed="true"] { background: var(--rz-accent); color: var(--rz-night); border-color: var(--rz-accent); }
.rz-finder-step:not([hidden]) { animation: rz-step .35s ease both; }
@keyframes rz-step { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.rz-finder-result h3 { font-size: clamp(22px, 2.2vw, 28px); }
.rz-finder-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.rz-finder-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--rz-night); border: 1px solid var(--rz-line); }
.rz-finder-bild { display: flex; justify-content: center; height: 160px; margin-bottom: 6px; background: var(--rz-deep); }
.rz-finder-bild img { width: 100%; height: 100%; object-fit: cover; }
.rz-finder-svg { display: flex; height: 100%; padding: 14px 0; }
.rz-finder-svg svg { height: 100%; width: auto; }
.rz-finder-name { font-family: var(--rz-serif); font-size: 19px; font-weight: 800; line-height: 1.3; }
.rz-finder-meta { font-size: 14px; color: var(--rz-muted); }
.rz-finder-price { font-weight: 700; }
.rz-finder-card .rz-btn { margin-top: auto; align-self: flex-start; }
.rz-badge { position: absolute; top: -10px; right: 12px; padding: 3px 10px; background: var(--rz-accent); color: var(--rz-night); font-size: 12px; font-weight: 700; }
.rz-finder-empty { max-width: 640px; }

/* ---------- Kategorie-Kacheln ---------- */
.rz-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-left: 1px solid var(--rz-line); border-top: 1px solid var(--rz-line); }
.rz-tile { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 22px; border-right: 1px solid var(--rz-line); border-bottom: 1px solid var(--rz-line); text-decoration: none; transition: background .2s; }
.rz-tile:hover { background: var(--rz-surface); color: var(--rz-paper); }
.rz-tile-art { display: flex; justify-content: center; height: 150px; margin-bottom: 14px; perspective: 600px; }
.rz-tile-panel { display: block; height: 100%; width: 42px; transform: rotateY(var(--rz-fold, 0deg)); transition: transform .4s; }
.rz-tile-panel svg { width: 100%; height: 100%; display: block; }
.rz-tile:hover .rz-tile-panel { transform: rotateY(0deg); }
.rz-tile-name { font-family: var(--rz-serif); font-size: 22px; font-weight: 800; }
.rz-tile-count { font-size: 14px; color: var(--rz-muted); }

/* ---------- Extras, Karten, Vertrauen ---------- */
.rz-specials { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; }
.rz-special { display: flex; flex-direction: column; gap: 8px; padding: 26px; border: 1px solid var(--rz-line); margin: 0 -1px -1px 0; text-decoration: none; color: var(--rz-paper); }
a.rz-special:hover { background: var(--rz-surface); color: var(--rz-paper); }
.rz-special svg { width: 120px; height: 80px; margin-bottom: 8px; }
.rz-special-title { font-family: var(--rz-serif); font-size: 22px; font-weight: 800; }
.rz-special span:last-child { color: var(--rz-muted); font-size: 15px; }

.rz-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.rz-card a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; height: 100%; }
.rz-card-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; overflow: hidden; background: var(--rz-surface); border: 1px solid var(--rz-line); }
.rz-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.rz-card-img svg { width: 40%; }
.rz-card a:hover img { transform: scale(1.04); }
.rz-card-title { font-family: var(--rz-serif); font-size: 21px; font-weight: 800; line-height: 1.3; }
.rz-card-excerpt { color: var(--rz-muted); font-size: 15px; }

.rz-trust { list-style: none; margin: clamp(40px, 6vw, 80px) var(--rz-pad) 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--rz-line); border-bottom: 1px solid var(--rz-line); }
.rz-trust li { padding: 20px 20px 20px 46px; position: relative; font-size: 15px; }
.rz-trust li::before { content: ""; position: absolute; left: 16px; top: 26px; width: 16px; height: 10px; border-left: 3px solid var(--rz-accent); border-bottom: 3px solid var(--rz-accent); transform: rotate(-45deg); }

.rz-teaser-zauberer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 48px 0 0; padding: 26px; border: 1px solid var(--rz-line); background: var(--rz-surface); }
.rz-teaser-title { margin: 0; font-family: var(--rz-serif); font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.25; }

/* ---------- Texte ---------- */
.rz-page-head { padding: 48px 0 24px; max-width: 900px; }
.rz-page-title { font-size: clamp(34px, 5vw, 60px); margin: 0; }
.rz-article { max-width: 900px; }
.rz-article-hero { margin: 0 0 28px; }
.rz-prose { max-width: 760px; }
.rz-prose h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 1.6em; }
.rz-prose h3 { font-size: clamp(21px, 2.2vw, 26px); margin-top: 1.4em; }
.rz-prose a { color: var(--rz-accent); }
.rz-prose a:hover { color: var(--rz-paper); }
.rz-prose ul, .rz-prose ol { padding-left: 1.3em; }
.rz-prose li { margin-bottom: .35em; }
.rz-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--rz-accent); font-family: var(--rz-serif); font-size: 1.15em; }
.rz-prose table { width: 100%; border-collapse: collapse; }
.rz-prose th, .rz-prose td { border-bottom: 1px solid var(--rz-line); padding: 10px 8px; text-align: left; }
.rz-prose .alignwide { max-width: 1100px; }
.rz-seo-text { margin-top: 56px; }
.rz-front .rz-seo-text { padding-bottom: 0; }

/* Formulare */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], input[type="url"], select, textarea, .select2-container .select2-selection {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--rz-line); border-radius: 0; background: var(--rz-deep); color: var(--rz-paper); font: inherit; font-size: 16px;
}
input:focus, select:focus, textarea:focus { border-color: var(--rz-accent); outline: none; }
label { font-weight: 500; }
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form label { flex: 1; }

/* ---------- WooCommerce: Archiv ---------- */
.rz-crumbs { padding: 22px 0 0; font-size: 14px; color: var(--rz-muted); }
.rz-crumbs a { color: var(--rz-muted); }
.rz-crumb-sep { margin: 0 8px; color: var(--rz-line); }
.rz-archive-head { display: grid; grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr); gap: 24px; align-items: end; padding: 28px 0; border-bottom: 1px solid var(--rz-line); }
.rz-archive-title { font-size: clamp(36px, 5vw, 64px); margin: 0 0 10px; }
.rz-archive-desc { color: var(--rz-muted); max-width: 680px; }
.rz-archive-desc p { margin: 0 0 .6em; }
.rz-archive-art { height: 200px; }
@media (max-width: 700px) { .rz-archive-head { grid-template-columns: 1fr; } .rz-archive-art { display: none; } }
.rz-chips ul { list-style: none; margin: 20px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rz-chips a { display: inline-block; padding: 8px 16px; border: 1px solid var(--rz-line); text-decoration: none; font-size: 15px; }
.rz-chips a:hover, .rz-chips a[aria-current] { background: var(--rz-paper); color: var(--rz-night); border-color: var(--rz-paper); }
.rz-shop-widgets { margin: 18px 0; }
.woocommerce-result-count { color: var(--rz-muted); font-size: 14px; margin: 18px 0; }
.woocommerce-ordering { margin: 12px 0 18px; }
.woocommerce-ordering select { width: auto; }

/* Produktraster (Grid statt Floats) */
.woocommerce ul.products, ul.products { list-style: none; margin: 0 0 24px; padding: 0; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; clear: both; }
.woocommerce ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
ul.products::before, ul.products::after { display: none !important; }
.woocommerce ul.products li.product, ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; padding: 14px 14px 18px !important; display: flex; flex-direction: column; gap: 6px; background: var(--rz-surface); border: 1px solid var(--rz-line); position: relative; transition: border-color .2s, transform .2s; }
ul.products li.product:hover { border-color: var(--rz-paper); transform: translateY(-3px); }
ul.products li.product a { text-decoration: none; }
ul.products li.product img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--rz-paper); margin: 0 0 10px !important; }
ul.products li.product .woocommerce-loop-product__title { font-family: var(--rz-serif); font-size: 18px !important; font-weight: 800; line-height: 1.3; padding: 0 !important; margin: 0 0 4px; }
ul.products li.product .price { color: var(--rz-paper) !important; font-weight: 700; font-size: 17px !important; }
ul.products li.product .price del { opacity: .6; }
ul.products li.product .price ins { text-decoration: none; color: var(--rz-accent); }
ul.products li.product .button { margin-top: auto !important; align-self: flex-start; }
ul.products li.product .onsale, .woocommerce span.onsale { position: absolute; top: 10px; left: 10px; right: auto; min-height: 0; min-width: 0; margin: 0; padding: 4px 10px; border-radius: 0; background: var(--rz-accent); color: var(--rz-night); font-size: 12px; font-weight: 700; line-height: 1.4; z-index: 2; }
@media (max-width: 900px) { .woocommerce ul.products, ul.products, .woocommerce ul.products.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .woocommerce ul.products, ul.products { gap: 10px; } ul.products li.product { padding: 10px 10px 14px !important; } ul.products li.product .woocommerce-loop-product__title { font-size: 16px !important; } }

.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 6px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 44px; padding: 12px; border: 1px solid var(--rz-line); color: var(--rz-paper); }
.woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--rz-paper); color: var(--rz-night); }

/* ---------- WooCommerce: Produkt ---------- */
.single-product div.product { margin-top: 24px; }
.single-product div.product .product_title { font-size: clamp(30px, 3.6vw, 46px); }
.single-product div.product p.price, .single-product div.product span.price { color: var(--rz-paper) !important; font-size: 26px !important; font-weight: 700; }
.single-product div.product .woocommerce-product-gallery { background: var(--rz-paper); }
.single-product div.product .woocommerce-product-details__short-description { color: var(--rz-muted); }
.single-product div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 20px 0 !important; }
.single-product div.product form.cart .quantity input { width: 80px; height: 48px; text-align: center; }
.single-product div.product form.cart table.variations td, .single-product div.product form.cart table.variations th { padding: 6px 0; }
.rz-btn-zauberer { margin: 4px 0 20px; }
.product_meta { font-size: 14px; color: var(--rz-muted); display: flex; flex-direction: column; gap: 4px; }
.woocommerce div.product .woocommerce-tabs { clear: both; padding-top: 32px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 0; padding: 0 !important; margin: 0 0 24px !important; border-bottom: 1px solid var(--rz-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { text-decoration: none; display: block; padding: 14px 20px !important; color: var(--rz-muted) !important; font-weight: 700 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--rz-night) !important; background: var(--rz-accent); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 900px; }
.woocommerce div.product .woocommerce-tabs .panel h2:first-child { font-size: 28px; }
.woocommerce table.shop_attributes { border-color: var(--rz-line); }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border-color: var(--rz-line); background: transparent !important; color: var(--rz-paper); padding: 10px; font-style: normal; }
.related.products > h2, .upsells.products > h2 { font-size: 30px; margin-top: 48px; }

/* Kreppband-Stellprobe */
.rz-stellprobe { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 18px; }
.rz-stellprobe-art { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.rz-stellprobe-art figure { margin: 0; }
.rz-stellprobe-art svg { width: 100%; height: auto; display: block; border: 1px solid var(--rz-line); }
.rz-stellprobe-art figcaption { font-size: 13px; color: var(--rz-muted); margin-top: 6px; }
.rz-stellprobe-steps { margin: 0; padding: 0; list-style: none; counter-reset: rz; display: flex; flex-direction: column; gap: 14px; }
.rz-stellprobe-steps li { counter-increment: rz; position: relative; padding-left: 48px; }
.rz-stellprobe-steps li::before { content: counter(rz); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; background: var(--rz-accent); color: var(--rz-night); font-weight: 700; display: flex; align-items: center; justify-content: center; transform: rotate(-4deg); }
@media (max-width: 900px) { .rz-stellprobe { grid-template-columns: 1fr; } }

/* ---------- WooCommerce: Hinweise, Warenkorb, Kasse ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { background: var(--rz-surface) !important; color: var(--rz-paper) !important; border: 1px solid var(--rz-line) !important; border-top: 3px solid var(--rz-accent) !important; border-radius: 0 !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--rz-accent) !important; }
.woocommerce-error { border-top-color: #FF8A8A !important; }
.woocommerce table.shop_table { border-color: var(--rz-line); border-radius: 0; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--rz-line) !important; }
.woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-checkout #order_review { background: var(--rz-surface); padding: 20px; border: 1px solid var(--rz-line); }
.wc-block-components-text-input input, .wc-block-components-textarea, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-blocks-components-select .wc-blocks-components-select__select { background: var(--rz-deep) !important; color: var(--rz-paper) !important; border-color: var(--rz-line) !important; border-radius: 0 !important; }
.wc-block-components-text-input label, .wc-block-components-combobox label, .wc-blocks-components-select__label { color: var(--rz-muted) !important; }
.wc-block-components-radio-control__option, .wc-block-components-checkbox__label, .wc-block-components-totals-item { color: var(--rz-paper); }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { background: var(--rz-deep); border-color: var(--rz-line); }
.wp-block-woocommerce-checkout, .wp-block-woocommerce-cart { color: var(--rz-paper); }
.wc-block-components-sidebar-layout .wc-block-components-main, .wc-block-components-sidebar { color: var(--rz-paper); }
.wc-block-components-product-price, .wc-block-formatted-money-amount { color: var(--rz-paper); }
.wc-block-components-totals-wrapper { border-color: var(--rz-line) !important; }

/* ---------- Grenzvertrag ---------- */
.rz-vertrag { margin: 24px 0; }
.rz-vertrag-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 20px; }
.rz-vertrag-actions p { margin: 0; color: var(--rz-muted); }
.rz-vertrag-blatt { position: relative; max-width: 820px; padding: clamp(24px, 5vw, 56px); background: var(--rz-paper); color: var(--rz-night); box-shadow: 0 24px 40px rgba(0, 0, 0, .35); transform: rotate(-.6deg); }
.rz-vertrag-kopf { text-align: center; border-bottom: 3px double var(--rz-night); padding-bottom: 14px; margin-bottom: 20px; }
.rz-vertrag-ueber { margin: 0 0 6px; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; }
.rz-vertrag-kopf h2 { font-size: clamp(30px, 5vw, 48px); margin: 0; color: var(--rz-night); }
.rz-vertrag-karte { display: block; width: 100%; max-width: 520px; margin: 0 auto 22px; color: var(--rz-night); }
.rz-vertrag-parteien { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.rz-vertrag-parteien label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.rz-vertrag-blatt input[type="text"] { background: transparent; color: var(--rz-night); border: 0; border-bottom: 2px solid var(--rz-night); font-family: var(--rz-serif); font-size: 22px; font-weight: 800; padding: 4px 0; min-height: 40px; }
.rz-vertrag-text { font-family: var(--rz-serif); font-size: 19px; font-weight: 600; }
.rz-vertrag-regeln { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rz-vertrag-regeln label { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; font-weight: 500; }
.rz-vertrag-regeln input[type="checkbox"] { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--rz-accent); flex-shrink: 0; }
.rz-vertrag-eigene { display: flex; gap: 12px; align-items: center; }
.rz-vertrag-eigene input[type="text"] { font-family: var(--rz-sans); font-size: 16px; font-weight: 500; }
.rz-vertrag-fuss { display: grid; grid-template-columns: 1fr 110px 1fr; gap: 18px; align-items: end; }
.rz-vertrag-sign { font-size: 13px; font-weight: 700; }
.rz-vertrag-sign span { display: block; height: 48px; border-bottom: 2px solid var(--rz-night); margin-bottom: 6px; }
.rz-vertrag-stempel { width: 110px; transform: rotate(-14deg); }
.rz-vertrag-datum { margin: 22px 0 0; font-size: 13px; }
.rz-vertrag-datum span { display: inline-block; width: 140px; border-bottom: 1px solid var(--rz-night); }
@media (max-width: 600px) { .rz-vertrag-parteien, .rz-vertrag-fuss { grid-template-columns: 1fr; } .rz-vertrag-stempel { justify-self: center; } }

/* ---------- 404 ---------- */
.rz-404 { text-align: center; padding-top: 48px; }
.rz-404-art { width: 240px; margin: 0 auto 20px; display: block; }
.rz-404 .search-form { margin: 20px auto; }

/* ---------- Fuß ---------- */
.rz-footer { margin-top: 80px; border-top: 1px solid var(--rz-line); background: var(--rz-deep); }
.rz-footer-fold { display: flex; height: 10px; }
.rz-footer-fold span { flex: 1; background: var(--rz-surface); }
.rz-footer-fold span:nth-child(even) { background: var(--rz-line); }
.rz-footer-fold span:nth-child(3) { background: var(--rz-accent); }
.rz-footer-inner { max-width: var(--rz-max); margin: 0 auto; padding: 48px var(--rz-pad); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.rz-footer-brand p { color: var(--rz-muted); max-width: 380px; font-size: 15px; }
.rz-footer-title { font-family: var(--rz-sans); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--rz-accent); }
.rz-footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rz-footer-nav a { text-decoration: none; font-size: 15px; }
.rz-footer-copy { max-width: var(--rz-max); margin: 0 auto; padding: 18px var(--rz-pad) 28px; border-top: 1px solid var(--rz-line); font-size: 13px; color: var(--rz-muted); }
@media (max-width: 800px) { .rz-footer-inner { grid-template-columns: 1fr; } }

/* ---------- Ruhige Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Druck (Grenzvertrag) ---------- */
@media print {
	body { background: #fff; color: #000; }
	.rz-header, .rz-footer, .rz-skip, #wpadminbar, .rz-vertrag-actions { display: none !important; }
	body:has(.rz-vertrag) .rz-page-head { display: none; }
	.rz-main { padding: 0; }
	body:has(.rz-vertrag) .rz-prose > *:not(.rz-vertrag) { display: none; }
	.rz-vertrag-blatt { box-shadow: none; transform: none; max-width: none; padding: 0; background: #fff; }
}
