/* ==========================================================
   CaiRock – Gestaltung
   Farben: Dunkelbraun #442E14 · Beige #DCCCC0 · Offwhite #F5F5EF
   ========================================================== */

:root {
	--cr-braun: #442E14;
	--cr-beige: #DCCCC0;
	--cr-offwhite: #F5F5EF;
	--cr-linie: 1px solid #DCCCC0;
	--cr-abstand-xl: clamp(80px, 11vw, 150px);
	--cr-abstand-l: clamp(64px, 9vw, 130px);
	--cr-abstand-m: clamp(48px, 7vw, 100px);
}

body { -webkit-font-smoothing: antialiased; }
img { display: block; }

/* Abschnitte stossen direkt aneinander */
body .cr-sektion { margin-block: 0 !important; }
.wp-site-blocks > main { margin-block-start: 0; }
.wp-site-blocks > footer { margin-block-start: 0; }

/* ---------- Blockstile ---------- */
.is-style-kennzeichnung {
	font-size: 0.6875rem !important;
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	line-height: 1.6;
}
.is-style-abril { font-family: var(--wp--preset--font-family--abril-fatface) !important; }

.wp-block-button.is-style-linie .wp-block-button__link {
	background: transparent !important;
	color: inherit !important;
	padding: 0 0 10px 0;
	border-bottom: 1px solid currentColor;
	display: inline-flex;
	align-items: center;
	gap: 14px;
}
.wp-block-button.is-style-linie .wp-block-button__link::after {
	content: "";
	width: 22px;
	height: 10px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M0 5h20M16 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M0 5h20M16 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat center / contain;
	transition: transform .3s ease;
}
.wp-block-button.is-style-linie .wp-block-button__link:hover::after { transform: translateX(4px); }

.is-style-trennlinie-oben { border-top: var(--cr-linie); padding-top: 28px; }

/* ---------- Kopfzeile ---------- */
.cr-kopf {
	border-bottom: var(--cr-linie);
	padding-block: 22px;
}
.cr-kopf__links, .cr-kopf__rechts { flex: 1 1 0; }
.cr-kopf__rechts { justify-content: flex-end; }
.cr-logo { margin: 0 !important; flex: 0 0 auto; }
.cr-logo img { height: 24px; width: auto; }
.cr-kopf .wp-block-navigation { gap: 8px 32px; }
.cr-kopf .wp-block-woocommerce-mini-cart .wc-block-mini-cart__button { padding: 0; }
@media (max-width: 600px) {
	.cr-logo img { height: 18px; }
}

/* ---------- Geteilte Abschnitte (Text + Bild) ---------- */
.wp-block-columns.cr-split { gap: 0; margin-block: 0; }
.cr-split > .wp-block-column { margin: 0; }
.cr-split__text {
	padding: var(--cr-abstand-m) 6vw;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 28px;
}
.cr-split__text > * { margin: 0 !important; max-width: 560px; }
.cr-split__bild { position: relative; min-height: 620px; overflow: hidden; }
.cr-split__bild > .wp-block-image,
.cr-split__bild > .cr-schleier { position: absolute !important; inset: 0; margin: 0 !important; height: 100%; }
.cr-split__bild img { width: 100%; height: 100%; object-fit: cover; }
.cr-bild-oben img { object-position: 35% 30%; }
@media (max-width: 781px) {
	.cr-split__bild { min-height: 420px; }
	.cr-split.cr-umkehren { flex-direction: column-reverse; }
}

.cr-einleitung { font-size: 1.125rem; }
.cr-klein { font-size: 0.8125rem; }

/* ---------- Countdown ---------- */
.cr-countdown {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
	font-variant-numeric: tabular-nums;
}
.cr-countdown__einheit { display: flex; flex-direction: column; gap: 6px; min-width: 64px; }
.cr-countdown__zahl { font-size: 2.75rem; font-weight: 200; line-height: 1; }
.cr-countdown__label, .cr-countdown__hinweis {
	font-size: 0.625rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
}
.cr-countdown--gross { justify-content: center; gap: 8px 44px; }
.cr-countdown--gross .cr-countdown__einheit { align-items: center; min-width: 96px; }
.cr-countdown--gross .cr-countdown__zahl { font-size: clamp(3rem, 6vw, 4.5rem); }

/* ---------- Zentrierte Abschnitte ---------- */
.cr-mitte {
	text-align: center;
	padding-block: var(--cr-abstand-xl);
}
.cr-mitte > * { margin-inline: auto !important; }
.cr-mitte > p:not(.is-style-kennzeichnung) { max-width: 620px; }
.cr-mitte > h1, .cr-mitte > h2 { max-width: 920px; }
.cr-mitte .wp-block-buttons { justify-content: center; }
.cr-mitte > .wp-block-image img { margin-inline: auto; }
.cr-logo-klein img { width: 260px; max-width: 100%; height: auto; }

/* ---------- Drei Hinweise ---------- */
.cr-hinweise { padding-block: var(--cr-abstand-l); }
.cr-hinweise__kopf { margin-bottom: 52px !important; }
.cr-hinweise__kopf > * { margin: 0 !important; }
.wp-block-columns.cr-drei { gap: 24px; }
.cr-drei .wp-block-column > * { margin-block: 0 0 12px; }
.cr-hochformat img, .cr-hochformat.cr-schleier img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.cr-hochformat { margin-bottom: 20px !important; }
.cr-hinweis-titel { font-size: 1.75rem !important; margin-top: 0 !important; }

/* Verschwommenes Bild mit Text darüber */
.cr-schleier { position: relative; overflow: hidden; }
.cr-schleier > .wp-block-image { margin: 0; height: 100%; }
.cr-schleier > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.cr-schleier > p {
	position: absolute; inset: 0; margin: 0 !important;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	text-align: center;
}
.cr-schleier--hell > p { color: var(--cr-offwhite); }
.cr-schloss::before {
	content: "";
	width: 28px; height: 28px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='11' width='14' height='9' fill='none' stroke='black' stroke-width='1.2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='11' width='14' height='9' fill='none' stroke='black' stroke-width='1.2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Termin-Liste (Erste Edition) ---------- */
.cr-termine { border-top: 1px solid currentColor; gap: 0 !important; width: 100%; }
.cr-zeile { border-bottom: 1px solid currentColor; padding-block: 18px; gap: 16px; }
.cr-zeile > * { margin: 0 !important; }
.cr-zeile > p:last-child { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; }

/* ---------- Werte-Zeile ---------- */
.cr-werte {
	padding-block: 36px;
	border-bottom: var(--cr-linie);
	gap: 12px 64px !important;
}
.cr-werte > * { margin: 0 !important; }

/* ---------- Zwei Produktwelten ---------- */
.cr-welten { padding-block: var(--cr-abstand-l); }
.cr-welten__kopf { text-align: center; margin-bottom: 52px !important; }
.cr-welten__kopf > * { margin: 0 auto 12px !important; }
.wp-block-columns.cr-zwei { gap: 24px; }
.cr-zwei .wp-block-column > * { margin-block: 0 0 22px; }
.cr-kachel {
	aspect-ratio: 4 / 3;
	display: flex; align-items: center; justify-content: center;
	padding: 12%;
}
.cr-kachel .wp-block-image { margin: 0; }
.cr-kachel img { max-width: 420px; width: 100%; height: auto; }
.cr-kachel.cr-schleier { padding: 0; display: block; }
.cr-kachel-titel { border-bottom: 1px solid currentColor; padding-bottom: 16px; }
.cr-kachel-titel > * { margin: 0 !important; }
.cr-kachel-titel h3 { font-size: 1.75rem; }

/* ---------- Bildbreite ---------- */
.cr-vollbild { margin: 0 !important; }
.cr-vollbild img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
@media (max-width: 781px) { .cr-vollbild img { aspect-ratio: 4 / 3; } }

/* ---------- System-Kacheln (Enthüllung) ---------- */
.wp-block-columns.cr-system { gap: 1px; background: var(--cr-braun); border: 1px solid var(--cr-braun); margin-top: 48px; }
.cr-system > .wp-block-column { background: #000; padding: 48px 40px; }
.cr-system .wp-block-column > * { margin-block: 0 0 12px; }
.cr-system .is-style-kennzeichnung { color: #B7A89B; font-size: 0.625rem !important; }

/* ---------- Fusszeile ---------- */
.cr-fuss { border-top: var(--cr-linie); padding-block: 72px 40px; }
.cr-fuss__oben { gap: 40px; }
.cr-fuss__spalten { gap: 40px 80px !important; }
.cr-fuss__spalte > * { margin: 0 0 12px !important; }
.cr-fuss .cr-logo img { height: 22px; }
.cr-fuss__unten { border-top: var(--cr-linie); padding-top: 24px; margin-top: 56px !important; font-size: 0.75rem; }
.cr-fuss__unten > * { margin: 0 !important; }

/* ---------- Bewegung ---------- */
@keyframes cr-steigen { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes cr-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.cr-steigen { animation: cr-steigen 1.3s cubic-bezier(.2,.7,.2,1) both; }
.cr-zoom img { animation: cr-zoom 2.2s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { .cr-steigen, .cr-zoom img { animation: none; } }

/* ---------- WooCommerce ---------- */
.woocommerce .wc-block-components-product-price,
.wc-block-components-product-price { color: var(--cr-braun); }
.wc-block-components-button:not(.is-link) { border-radius: 0; }

/* Navigation: auf dem Handy alles im Menü */
.cr-nur-mobil { display: none !important; }
@media (max-width: 599px) {
	.cr-nur-desktop { display: none !important; }
	.wp-block-navigation__responsive-container.is-menu-open .cr-nur-mobil { display: flex !important; }
}

.cr-gruppe-eng > * { margin: 0 0 12px !important; }
.cr-gruppe-eng > *:last-child { margin-bottom: 0 !important; }
.cr-system { text-align: left; }
.cr-logo-mittel img { width: 380px; max-width: 100%; height: auto; }
.cr-hell > *:not(.wp-block-columns) { color: inherit; }
.cr-kachel.cr-schleier img { max-width: none; }
.cr-fuss__oben, .cr-fuss__spalten { align-items: flex-start !important; }
@media (max-width: 600px) {
	.cr-countdown { gap: 8px 18px; }
	.cr-countdown__einheit { min-width: 0; }
	.cr-countdown__zahl { font-size: 2.25rem; }
	.cr-countdown--gross { gap: 8px 18px; }
	.cr-countdown--gross .cr-countdown__einheit { min-width: 0; }
	.cr-countdown--gross .cr-countdown__zahl { font-size: 2.5rem; }
}
@media (min-width: 782px) {
	.cr-split > .wp-block-column { flex: 1 1 50% !important; box-sizing: border-box; }
}
