/* ==========================================================================
   Château Louis – Case-Seiten (0.19, 05.10.2026)
   Layout aus XD „Website_neu_Lay07_Cases“, umgesetzt auf das 155/140-Raster.
   Präfix clpc- (Case), baut auf folgeseiten.css (clp-) auf.
   ========================================================================== */

.clpc { --clpc-gap: clamp(64px, 8.33vw, 160px); --clpc-w: calc(100vw - var(--clp-indent-l) - var(--clp-indent-r)); }
.clpc img { display: block; max-width: none; }
.clpc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopf: Kundenfarbe über die volle Breite, 808 px @1920 */
.clpc-hero { position: relative; height: 42.08vw; min-height: 260px; background: var(--clpc-color); overflow: hidden; }
.clpc-hero__img { position: absolute; left: 50%; top: 5.68vw; width: 53.33vw; height: auto; transform: translateX(-50%); }
.clpc-hero--full .clpc-hero__img { top: 0; width: 100%; height: 100%; object-fit: cover; }

/* Eckdaten: Kunde · Branche · Leistungen */
.clpc-facts { display: grid; grid-template-columns: 32% 1fr 1fr; column-gap: 40px; row-gap: 32px; margin: 0; padding-top: clamp(48px, 4.2vw, 80px); padding-bottom: clamp(56px, 6.1vw, 117px); }
.clpc-facts div { min-width: 0; }
.clpc-facts dt { margin: 0 0 12px; }
.clpc-facts dd { margin: 0; font-size: clamp(17px, 1.15vw, 22px); line-height: 1.45; font-weight: 300; color: var(--clp-grey); }

/* Drei Textblöcke */
.clpc-story__row { display: grid; grid-template-columns: 32% 1fr; column-gap: 40px; row-gap: 16px; padding: clamp(40px, 4.2vw, 80px) 0; border-top: 1px solid var(--clp-light); }
.clpc-story__row h2 { margin: 0; padding-top: .35em; font-family: var(--clp-font-hl); font-weight: var(--clp-hl-weight); font-variation-settings: var(--clp-hl-width); font-size: clamp(15px, 1.25vw, 24px); line-height: 1.45; letter-spacing: .03em; text-transform: none; color: var(--clp-red); } /* 0.36: gemischte Schreibweise */
.clpc-story__text { max-width: 1060px; }
.clpc-story__text p { font-size: clamp(19px, 1.875vw, 27px); line-height: 1.48; font-weight: 300; color: var(--clp-grey); }
.clpc-story__text p + p { margin-top: 1em; }

/* Seiteninhalt: jeder Block mit gleichem Abstand und auf der Textkante */
.clpc-content > * { box-sizing: border-box; max-width: none; margin: var(--clpc-gap) 0 0; padding-left: var(--clp-indent-l); padding-right: var(--clp-indent-r); }
.clpc-content > .clpc-slider { padding: 0; }
.clpc-content .wp-block-image { margin-bottom: 0; }
.clpc-content .wp-block-image img { width: 100%; height: auto; }
.clpc-content figcaption { margin-top: 12px; font-size: 15px; font-weight: 300; color: var(--clp-grey); }

/* Zwei Bilder nebeneinander (Spalten-Block) */
.clpc-content > .wp-block-columns { display: flex; gap: clamp(10px, 1.1vw, 21px); margin-bottom: 0; }
.clpc-content .wp-block-column > * { margin: 0; }
.clpc-content .wp-block-column img { width: 100%; height: auto; }

/* Platzhalter (Absatz mit CSS-Klasse „clpc-ph“) */
.clpc-ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 650 / 630; margin: 0; background: var(--clp-light); font-size: clamp(16px, 1.25vw, 24px); font-weight: 300; color: var(--clp-grey); text-align: center; padding: 20px; }

/* Zitat mit Krone */
.clpc-content > .wp-block-quote { border: 0; font-style: normal; }
.clpc-content > .wp-block-quote::before { content: ""; display: block; width: 68px; height: 39px; margin-bottom: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 71 40'%3E%3Cpath fill='%23c20e1a' d='M68.2 5.1 61.3 39.3H9.5L2.6 5.1l15.9 17L35.4 6.3l16.9 15.8z'/%3E%3C/svg%3E") no-repeat 0 0 / contain; }
.clpc-content > .wp-block-quote p { margin: 0; font-size: clamp(22px, 1.875vw, 36px); line-height: 1.4; font-weight: 300; color: var(--clp-grey); }
.clpc-content > .wp-block-quote cite { display: block; margin-top: 24px; font-style: normal; font-size: clamp(15px, 1.15vw, 22px); font-weight: 300; color: var(--clp-grey); }

/* Slider (Galerie mit Stil „Slider …“) – endlos, aktives Bild an der Textkante */
.clpc-slider { --clpc-slide-gap: 30px; }
.clpc-slider--streifen { --clpc-slide-h: 35.73vw; --clpc-slide-gap: 2.45vw; }
.clpc-slider--streifen-klein { --clpc-slide-h: 28.65vw; --clpc-slide-gap: 0px; }
.clpc-viewport { overflow: hidden; touch-action: pan-y; }
.clpc-track { display: flex; gap: var(--clpc-slide-gap); will-change: transform; }
.clpc-track img { flex: 0 0 auto; height: var(--clpc-slide-h); width: auto; user-select: none; -webkit-user-drag: none; }
.clpc-slider--breit .clpc-track img { width: var(--clpc-w); height: auto; }
.clpc-dots { display: flex; gap: 6px; margin-top: 38px; }
.clpc-dots button { width: 37px; height: 6px; padding: 0; border: 0; background: #707070; cursor: pointer; }
.clpc-dots button.is-active { background: var(--clp-red); }
.clpc-dots button:focus-visible { outline: 2px solid var(--clp-red); outline-offset: 4px; }

/* Ohne JavaScript: Galerie als einfache Reihe */
.clpc-content > .wp-block-gallery[class*="is-style-cl-slider"] { display: flex; flex-wrap: nowrap; gap: 30px; overflow-x: auto; }

/* Abstand nach dem letzten Bild bis zum roten Band – auf allen Cases gleich */
.clpc-content + .clp-band { margin-top: var(--clpc-gap); }

@media (max-width: 760px) {
	.clpc-facts { grid-template-columns: 1fr; }
	.clpc-story__row { grid-template-columns: 1fr; }
	.clpc-content > .wp-block-columns { flex-direction: column; }
	.clpc-hero__img { width: 80vw; }
	.clpc-track img { height: calc(var(--clpc-slide-h) * 2); }
	.clpc-slider--breit .clpc-track img { width: 86vw; }
}

/* 0.40 (12.10.2026): Video im Bildschirm – Video-Block mit Stil „Im Fernseher“ / „Im Monitor“ (inc/case.php, assets/case-screen.js) */
.clpc-screen { position: relative; margin: 0; background: var(--clpc-color, #e8e9e9); aspect-ratio: 1364 / 626.56; overflow: hidden; }
.clpc-screen__device { position: absolute; left: 17.786%; top: 4.038%; width: 64.52%; }
.clpc .clpc-screen__frame { display: block; width: 100%; height: auto; }
.clpc-screen__display { position: absolute; left: 1.102%; top: 1.579%; width: 97.8%; height: 86.58%; overflow: hidden; background: #000; }
.clpc-screen__display video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.clpc-screen__sound { position: absolute; right: 2.5%; bottom: 4%; display: flex; align-items: center; justify-content: center; width: clamp(34px, 2.5vw, 48px); height: clamp(34px, 2.5vw, 48px); padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; transition: background .2s; }
.clpc-screen__sound:hover, .clpc-screen__sound[aria-pressed="true"] { background: var(--clp-red, #c20e1a); }
.clpc-screen__sound:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.clpc-screen__sound svg { width: 52%; height: 52%; }
.clpc-screen__sound .is-on { display: none; }
.clpc-screen__sound[aria-pressed="true"] .is-on { display: block; }
.clpc-screen__sound[aria-pressed="true"] .is-off { display: none; }
.clpc-screen-wrap figcaption { margin-top: 12px; font-size: 15px; font-weight: 300; color: var(--clp-grey); }
@media (max-width: 760px) {
	.clpc-screen { aspect-ratio: 4 / 3; }
	.clpc-screen__device { left: 4%; width: 92%; top: 50%; transform: translateY(-50%); }
}

/* 0.41 (12.10.2026): „Von vorn“-Knopf und dezente Zeitleiste im Bildschirm (Claudia: Spot jederzeit von vorn schauen) */
.clpc-screen__restart { position: absolute; bottom: 4%; display: flex; align-items: center; justify-content: center; width: clamp(34px, 2.5vw, 48px); height: clamp(34px, 2.5vw, 48px); padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; transition: background .2s; right: calc(2.5% + clamp(34px, 2.5vw, 48px) + 8px); }
.clpc-screen__restart svg { width: 50%; height: 50%; }
.clpc-screen__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; display: flex; align-items: flex-end; cursor: pointer; touch-action: none; }
.clpc-screen__bar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .35); transition: height .15s; }
.clpc-screen__fill { position: relative; height: 3px; width: 0; background: var(--clp-red, #c20e1a); transition: height .15s; }
.clpc-screen__bar:hover::before, .clpc-screen__bar:hover .clpc-screen__fill, .clpc-screen__bar:focus-visible::before, .clpc-screen__bar:focus-visible .clpc-screen__fill { height: 7px; }
.clpc-screen__bar:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.clpc-screen__restart:hover { background: var(--clp-red, #c20e1a); }
.clpc-screen__restart:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* 0.42 (12.10.2026): Song-Baustein – Gruppe-Block mit Stil „Song“ / „Song Techno-Remix“ (inc/case.php, assets/case-song.js) */
.clpc-song { position: relative; display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); column-gap: clamp(32px, 4.2vw, 80px); align-items: center; padding: clamp(40px, 5.2vw, 100px) clamp(24px, 4.2vw, 80px); background: var(--clpc-color, #e8e9e9); color: var(--clp-grey); overflow: hidden; }
.clpc-song__visual { position: relative; aspect-ratio: 1.45 / 1; }
.clpc-song__sleeve { position: absolute; z-index: 2; left: 0; top: 0; width: 69%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: var(--clp-red); color: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .22); overflow: hidden; }
.clpc .clpc-song__sleeve img { width: 100%; height: 100%; object-fit: cover; }
.clpc-song__crown { width: 38%; }
.clpc-song__crown svg, .clpc-song__label svg { display: block; width: 100%; height: auto; }
.clpc-song__disc { position: absolute; z-index: 1; right: 0; top: 1.5%; width: 66%; aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: conic-gradient(from 30deg, rgba(255,255,255,0) 0 12%, rgba(255,255,255,.13) 16%, rgba(255,255,255,0) 22% 62%, rgba(255,255,255,.09) 66%, rgba(255,255,255,0) 72%), repeating-radial-gradient(circle, #161616 0 2px, #222 2px 4px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .25); transition: right .6s cubic-bezier(.2, .7, .2, 1); animation: clpc-spin 6s linear infinite paused; }
.clpc-song__label { width: 34%; aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--clp-red); color: #fff; box-shadow: 0 0 0 4px #111; }
.clpc-song__label svg { width: 46%; }
.clpc-song.is-on .clpc-song__disc { animation-play-state: running; }
.clpc-song:hover .clpc-song__disc { right: -5%; }
@keyframes clpc-spin { to { transform: rotate(360deg); } }

.clpc-song__body { position: relative; z-index: 1; min-width: 0; }
.clpc-song__body > .wp-block-group, .clpc-song__body > .wp-block-group__inner-container { display: contents; }
.clpc-song__body h2, .clpc-song__body h3, .clpc-song__body h4 { margin: 0 0 .6em; font-family: var(--clp-font-hl); font-weight: var(--clp-hl-weight); font-variation-settings: var(--clp-hl-width); font-size: clamp(24px, 2.4vw, 46px); line-height: 1.2; text-transform: none; color: var(--clp-red); }
.clpc-song__body p { margin: 0; font-size: clamp(18px, 1.45vw, 26px); line-height: 1.48; font-weight: 300; }
.clpc-song__body p + p { margin-top: 1em; }
.clpc-song__body .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 2.2vw, 40px); }
.clpc-song__body .wp-block-button { margin: 0; }
.clpc-song__body .wp-block-button__link { display: inline-block; padding: .6em 1.2em; border: 1.5px solid currentColor; border-radius: 0; background: transparent; color: inherit; font-size: clamp(14px, .95vw, 18px); line-height: 1.2; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.clpc-song__body .wp-block-button__link:hover, .clpc-song__body .wp-block-button__link:focus-visible { background: var(--clp-red); border-color: var(--clp-red); color: #fff; }
.clpc-song .cl-embed--spotify { aspect-ratio: auto; height: 152px; margin-top: clamp(24px, 2.2vw, 40px); border-radius: 12px; overflow: hidden; background: rgba(0, 0, 0, .78); }
.clpc-song .cl-embed--spotify .cl-embed-placeholder { position: relative; inset: auto; padding: 16px 20px; font-size: 13px; }
.clpc-song .cl-embed--spotify:not([data-cl-loaded]) { height: auto; min-height: 152px; }
.clpc-song .cl-embed--spotify p.cl-embed-text { margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: #e8e9e9; max-width: 48ch; }
.clpc-song .cl-embed--spotify .cl-consent-btn { font-size: 13px; }

/* Techno-Remix: dunkel, schnelle Platte, Equalizer in den ORO-Farben */
.clpc-song--remix { --clpc-eq-h: clamp(40px, 4.2vw, 80px); background: #121212; color: #d4d4d4; padding-bottom: calc(clamp(40px, 5.2vw, 100px) + var(--clpc-eq-h)); }
.clpc-song--remix::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 25% 45%, rgba(227, 43, 43, .28), transparent 70%), radial-gradient(50% 70% at 85% 60%, rgba(0, 143, 74, .22), transparent 70%); opacity: .5; pointer-events: none; }
.clpc-song--remix.is-on::before { animation: clpc-pulse .469s ease-out infinite; } /* 128 BPM */
.clpc-song--remix .clpc-song__body h2, .clpc-song--remix .clpc-song__body h3, .clpc-song--remix .clpc-song__body h4 { color: #fafaf7; }
.clpc-song--remix .clpc-song__sleeve { background: #0a0a0a; color: var(--clp-red); box-shadow: 0 0 0 1.5px rgba(227, 43, 43, .8), 0 0 36px rgba(227, 43, 43, .35); }
.clpc-song--remix .clpc-song__disc { animation-duration: 1.4s; box-shadow: 0 0 40px rgba(0, 143, 74, .35); }
.clpc-song--remix .clpc-song__label { background: #008f4a; }
.clpc-song--remix .wp-block-button__link { color: #fafaf7; }
.clpc-song__eq { position: absolute; left: clamp(24px, 4.2vw, 80px); right: clamp(24px, 4.2vw, 80px); bottom: 0; height: var(--clpc-eq-h); display: flex; align-items: flex-end; gap: clamp(3px, .4vw, 8px); pointer-events: none; }
.clpc-song__eq i { flex: 1; height: 30%; background: #008f4a; transform-origin: bottom; animation: clpc-eq .9s ease-in-out infinite alternate paused; }
.clpc-song__eq i:nth-child(3n+2) { background: #fafaf7; animation-duration: .7s; }
.clpc-song__eq i:nth-child(3n) { background: #e32b2b; animation-duration: 1.1s; }
.clpc-song__eq i:nth-child(4n) { animation-delay: -.3s; }
.clpc-song__eq i:nth-child(5n+1) { animation-delay: -.55s; }
.clpc-song__eq i:nth-child(7n+3) { animation-delay: -.8s; }
.clpc-song.is-on .clpc-song__eq i { animation-play-state: running; }
@keyframes clpc-eq { 0% { height: 12%; } 50% { height: 85%; } 100% { height: 35%; } }
@keyframes clpc-pulse { 0% { opacity: .85; } 100% { opacity: .35; } }

@media (max-width: 760px) {
	.clpc-song { grid-template-columns: 1fr; row-gap: 32px; }
	.clpc-song__visual { max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) {
	.clpc-song__disc, .clpc-song__eq i, .clpc-song--remix.is-on::before { animation: none !important; }
	.clpc-song__eq i { height: 40%; }
}

/* 0.43 (13.10.2026): Raster wechselnd – Galerie mit Stil „Raster wechselnd“
   Fläche in Kundenfarbe, quadratische Motive in 2 Reihen (bis 6 Bilder: 3 Spalten, sonst 4),
   Motive tauschen per Zufall die Plätze; gibt es mehr Bilder als Plätze, wechseln sie hinein (case-raster.js).
   Maße aus XD (Fläche 1364 breit, Kachel 292). Abstände waagerecht = senkrecht (Claudia 13.10.):
   4 Spalten (RÜGER): rundum 25 px. 3 Spalten (Carmenthin): wie XD – waagerecht gleichmäßig verteilt, Reihenabstand 27 px
   (Claudia 13.10.: so wie vorher, gleiche Abstände nur bei RÜGER).
   Abstand als Anteil der Inhaltsbreite (--clpc-w), weil %-Werte bei row-gap sonst wegfallen. */
.clpc-raster-wrap > .wp-block-gallery.is-style-cl-raster { --clr-gap: calc(var(--clpc-w, 84vw) * .0183); display: grid !important; grid-template-columns: repeat(var(--cl-cols, 4), 21.41%); justify-content: center; gap: var(--clr-gap) !important; margin: 0; padding: 3.52% 0 4.25%; background: var(--clpc-color, #e8e9e9); flex-wrap: nowrap; }
.clpc-raster-wrap > .wp-block-gallery.is-style-cl-raster.clpc-raster--3 { justify-content: space-evenly; column-gap: 0 !important; row-gap: calc(var(--clpc-w, 84vw) * .0198) !important; }
.clpc-raster-wrap > .wp-block-gallery.is-style-cl-raster > figure.wp-block-image { width: auto !important; margin: 0 !important; aspect-ratio: 1 / 1; overflow: hidden; position: relative; will-change: transform; }
.clpc-raster-wrap > .wp-block-gallery.is-style-cl-raster > figure.wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; transition: opacity .6s ease; }
.clpc-raster-wrap > .wp-block-gallery.is-style-cl-raster > figure.is-pool { display: none !important; }
.clpc-raster-wrap > .wp-block-gallery.is-style-cl-raster figcaption { display: none; }
@media (max-width: 760px) {
	.clpc-raster-wrap > .wp-block-gallery.is-style-cl-raster, .clpc-raster-wrap > .wp-block-gallery.is-style-cl-raster.clpc-raster--3 { --clr-gap: calc(var(--clpc-w, 84vw) * .04); grid-template-columns: repeat(2, 44%); padding: 4% 0; }
	.clpc-raster-wrap > .wp-block-gallery.is-style-cl-raster.clpc-raster--3 { justify-content: center; column-gap: var(--clr-gap) !important; row-gap: var(--clr-gap) !important; }
}

/* 0.44 (13.10.): Die drei Abschnitte (Herausforderung / Ansatz / Ergebnis) deutlich kleiner
   und kompakter (Claudia: „nicht so brachial“). Text 27 → 21 px @1920 (−22 %), Abstand je
   Abschnitt oben/unten 80 → 44 px. Überschriften links und Eckdaten darüber unverändert. */
.clpc-story__row { padding: clamp(26px, 2.3vw, 44px) 0; }
.clpc-story__text p { font-size: clamp(16px, 1.1vw, 21px); line-height: 1.55; }
/* 0.44 (13.10.): Song-Headlines (ORO) so groß wie die Headlines auf HOME
   („We make brands outstanding“, „Bereit für Outstanding?“: 42 px × --cl-text-scale) */
.clpc-song__body h2, .clpc-song__body h3, .clpc-song__body h4 { font-size: calc(clamp(22px, 2.1875vw, 42px) * var(--cl-text-scale, 1)); }

/* 0.44 (14.10.): Raster wechselnd als „Walze“ – Bild rollt in der Kachel nach oben weg, das neue
   kommt von unten (assets/case-raster.js). Bilder liegen dafür absolut in der quadratischen Kachel. */
.clpc-raster-wrap > .wp-block-gallery.is-style-cl-raster .clpc-roll { position: relative; overflow: hidden; }
.clpc-raster-wrap > .wp-block-gallery.is-style-cl-raster a.clpc-roll { display: block; position: absolute; inset: 0; }
.clpc-raster-wrap > .wp-block-gallery.is-style-cl-raster .clpc-roll > img { position: absolute; inset: 0; transition: none; will-change: transform; }
.clpc-raster-wrap > .wp-block-gallery.is-style-cl-raster .clpc-roll > img.clpc-roll__in { transform: translateY(100%); }

/* 0.47 (14.10.): Raster wechselnd – Kacheln klappen an der Mittelachse um (assets/case-raster.js).
   Die Kachel selbst wird zusammengedrückt; dahinter scheint die Kundenfarbe durch. */
.clpc-raster-wrap > .wp-block-gallery.is-style-cl-raster > figure.clpc-flip { overflow: hidden; transform-origin: 50% 50%; will-change: transform; }
.clpc-raster-wrap > .wp-block-gallery.is-style-cl-raster .clpc-flip img { transition: none; } /* 0.49: kein Zoom mehr */
.clpc-raster-wrap > .wp-block-gallery.is-style-cl-raster a.clpc-flip { display: block; position: absolute; inset: 0; overflow: hidden; }

/* 0.50 (15.10.2026): Bild „Volle Breite“ – läuft über die ganze Fensterbreite (ohne 155/140-Rand), z. B. Logo-Band Wolfach */
.clpc-content > .alignfull { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; width: 100%; }
.clpc-content > .wp-block-image.alignfull img { width: 100%; height: auto; }
