/* Corporate-Design-Seite: eigene Art Direction. Gilt nur für <body class="cd"> (corporate-design.html), baut auf leistung.css auf.
   Leitidee: Konstruktion und Druck. Grundlinienraster, Konstruktionskreise, Passermarken, Farbfächer und Druckbögen statt
   Browserfenster. Illustrationen zeigen jeweils den Weg vom Problem zur Lösung. Ohne JavaScript oder mit reduzierter
   Bewegung ist alles sofort sichtbar und ruhig; Endlosbewegungen laufen nur, solange ihr Bereich zu sehen ist. */

.cd { --linie: rgba(26, 26, 26, .14); --linie-stark: rgba(26, 26, 26, .82); --weich: cubic-bezier(.65, 0, .35, 1); --papier: #F6F6F7; }

.cd-korn { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .09; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* CTA-Pfeil läuft rechts hinaus und kommt von links zurück */
@keyframes cdPfeil { 0% { translate: 0 0; opacity: 1; } 45% { translate: 12px 0; opacity: 0; } 46% { translate: -10px 0; opacity: 0; } 100% { translate: 3px 0; opacity: 1; } }
.cd-pfeil:hover .btn__ico { animation: cdPfeil .65s var(--ease); }

/* Passermarken: feine Ecken wie Schnittmarken auf dem Druckbogen */
.cd-pass { position: absolute; z-index: 2; width: 18px; height: 18px; border: 0 solid var(--wine); pointer-events: none; transition: opacity .6s var(--ease) .9s, translate .8s var(--ease) .9s; }
.cd-pass--ol { left: -10px; top: -10px; border-width: 1.5px 0 0 1.5px; }
.cd-pass--ur { right: -10px; bottom: -10px; border-width: 0 1.5px 1.5px 0; }

/* ======================= 1 Hero ======================= */
.cd-licht { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.cd-licht i { position: absolute; aspect-ratio: 1; border-radius: 50%; will-change: transform; animation: 27s ease-in-out infinite alternate paused; }
.cd-licht i:nth-child(1) { right: -20vmax; top: -28vmax; width: 60vmax; background: radial-gradient(closest-side, rgba(184, 22, 48, .55), transparent); animation-name: cdLicht1; }
.cd-licht i:nth-child(2) { left: 30vw; top: 40%; width: 36vmax; background: radial-gradient(closest-side, rgba(207, 232, 255, .08), transparent); animation-name: cdLicht2; animation-duration: 33s; }
.cd-licht i:nth-child(3) { left: -14vmax; bottom: -34vmax; width: 54vmax; background: radial-gradient(closest-side, rgba(38, 0, 6, .7), transparent); animation-name: cdLicht3; animation-duration: 24s; }
@keyframes cdLicht1 { to { transform: translate3d(-12vmax, 10vmax, 0) scale(1.1); } }
@keyframes cdLicht2 { to { transform: translate3d(12vmax, -8vmax, 0) scale(.9); } }
@keyframes cdLicht3 { to { transform: translate3d(14vmax, -6vmax, 0) scale(1.08); } }
.cd-aktiv .cd-licht i, .cd-aktiv .cd-mesh i { animation-play-state: running; }

.cd-hero { padding-bottom: 14px; }
.cd-hero > .wrap { translate: 0 calc(var(--sy, 0) * .08px); }

/* Bühne: Ebenen mit eigener Tiefe (--t) bewegen sich mit Maus und Scroll unterschiedlich stark */
.cd-buehne { position: relative; align-self: end; justify-self: end; height: var(--bh); aspect-ratio: 600 / 640; max-width: 100%; margin: var(--oben) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) clamp(1.6rem, 3vw, 3rem) 0; container-type: inline-size; }
.cd-ebene { position: absolute; margin: 0; translate: calc(var(--mx, 0) * var(--t) * -8px) calc(var(--my, 0) * var(--t) * -6px + var(--sy, 0) * var(--t) * -.05px); animation: cdSchweben 9s ease-in-out infinite alternate paused; animation-delay: calc(var(--t) * -2.3s); }
.cd-aktiv .cd-ebene { animation-play-state: running; }
@keyframes cdSchweben { from { transform: translateY(-4px); } to { transform: translateY(5px); } }

.cd-h-foto { left: 30cqw; top: 6cqw; width: 46cqw; rotate: -2.5deg; }
.cd-h-foto__rahmen { display: block; overflow: hidden; border-radius: 3px; box-shadow: 0 3cqw 6cqw -3cqw rgba(20, 0, 4, .7); }
.cd-h-foto__rahmen img { display: block; width: 100%; height: auto; }
.cd-h-foto .cd-pass { border-color: var(--sky); }

.cd-h-zeichen { left: 5cqw; top: 58cqw; width: 40cqw; aspect-ratio: 1; display: grid; place-items: center; background: var(--sky); border-radius: 3px; box-shadow: 0 3cqw 6cqw -3cqw rgba(20, 0, 4, .65); }
.cd-h-zeichen > img { position: relative; z-index: 1; width: 66%; height: auto; }
.cd-h-zeichen small, .cd-h-schrift span { position: absolute; left: 2.6cqw; bottom: 2.2cqw; font-size: clamp(.58rem, 1.9cqw, .74rem); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(26, 26, 26, .55); }

.cd-h-farben { right: 1cqw; top: 2cqw; width: 34cqw; height: 34cqw; margin: 0; padding: 0; list-style: none; }
.cd-h-farben li { position: absolute; left: 0; bottom: 0; width: 15.5cqw; padding: 1cqw 1cqw 1.3cqw; display: grid; gap: .4cqw; background: #fff; color: var(--carbon); border-radius: 2px; box-shadow: 0 2cqw 4cqw -2cqw rgba(20, 0, 4, .55); transform-origin: 18% 96%; rotate: calc(var(--n) * 13deg - 6deg); transition: rotate 1.4s var(--ease); }
.cd-h-farben span { display: block; aspect-ratio: 1 / 1.05; background: var(--f); box-shadow: inset 0 0 0 1px rgba(26, 26, 26, .08); }
.cd-h-farben b { font-family: var(--display); font-size: clamp(.6rem, 2.2cqw, .86rem); font-weight: 600; line-height: 1.1; }
.cd-h-farben small { font-size: clamp(.5rem, 1.7cqw, .66rem); color: var(--grau-2); font-variant-numeric: tabular-nums; }

.cd-h-schrift { right: 2cqw; top: 69cqw; width: 33cqw; aspect-ratio: 5 / 4; display: grid; place-items: center; background: #1A1A1A; border-radius: 3px; box-shadow: 0 3cqw 6cqw -3cqw rgba(20, 0, 4, .7); }
.cd-h-schrift::before { content: ""; position: absolute; left: 2.4cqw; right: 2.4cqw; top: 22%; bottom: 30%; border-block: 1px solid rgba(207, 232, 255, .22); background: linear-gradient(rgba(207, 232, 255, .22), rgba(207, 232, 255, .22)) 0 38% / 100% 1px no-repeat; }
.cd-h-schrift b { position: relative; font-family: var(--display); font-size: 13cqw; font-weight: 600; line-height: 1; letter-spacing: -.05em; color: var(--sky); translate: 0 -.06em; }
.cd-h-schrift span { color: rgba(255, 255, 255, .6); }

/* Druck-Kontrollleiste als Übergang zur weißen Seite */
.cd-druckleiste { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 14px; display: flex; align-items: center; gap: 10px; padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); background: #fff; }
.cd-druckleiste span { flex: 1; height: 6px; background: repeating-linear-gradient(90deg, #78020E 0 22px, #fff 22px 24px, #A3122A 24px 46px, #fff 46px 48px, #CFE8FF 48px 70px, #fff 70px 72px, #1A1A1A 72px 94px, #fff 94px 96px, #8C8C92 96px 118px, #fff 118px 120px, #D7D7DB 120px 142px, #fff 142px 144px); transform-origin: left; }
.cd-passer { position: relative; flex: none; width: 10px; height: 10px; border: 1px solid #1A1A1A; border-radius: 50%; }
.cd-passer::before, .cd-passer::after { content: ""; position: absolute; left: 50%; top: 50%; background: #1A1A1A; translate: -50% -50%; }
.cd-passer::before { width: 16px; height: 1px; } .cd-passer::after { width: 1px; height: 16px; }

/* ======================= 2 Ausgangslagen: Aufbau wie auf der Webdesign-Seite ======================= */
.cd .l-lage { position: relative; gap: 0; padding: 0; border-radius: 0; overflow: visible; background: none; }
.cd .l-lage::before, .cd .l-lage::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; transform-origin: left; transition: transform 1.4s var(--weich); }
.cd .l-lage::before { top: 0; background: var(--linie-stark); }
.cd .l-lage::after { bottom: 0; background: var(--linie); transition-delay: .25s; }
.cd .l-lage li:nth-child(n), .cd .l-lage:not(:has(li:hover)) li:nth-child(2), .cd .l-lage li:hover { background: none; border-radius: 0; isolation: isolate; }
.cd .l-lage li + li::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--linie); transform-origin: top; transition: transform 1.1s var(--weich) calc(.35s + var(--n, 0) * .12s); }
.cd .l-lage li:nth-child(2) { --n: 0; } .cd .l-lage li:nth-child(3) { --n: 1; } .cd .l-lage li:nth-child(4) { --n: 2; }
.cd .l-lage li::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .6s var(--ease); background: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.3px) 0 0 / 14px 14px, radial-gradient(90% 60% at 10% 0%, rgba(207, 232, 255, .2), transparent 62%), radial-gradient(70% 60% at 100% 100%, rgba(20, 0, 4, .55), transparent 70%), linear-gradient(165deg, #A3122A 0%, var(--wine) 50%, #4A0109 100%); }
.cd .l-lage:not(:has(li:hover)) li:nth-child(2)::before, .cd .l-lage li:hover::before { opacity: 1; }
.cd .l-lage__nr { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.cd-von { margin-left: .2em; font-weight: 500; opacity: .45; }
.cd .l-lage h3 { letter-spacing: -.02em; }

/* Line-Icons: kleine Szenen beim Überfahren */
.cd-ico * { transform-box: fill-box; }
.cd-ico__leer rect { stroke-dasharray: .045 .045; }
.cd-ico__leer, .cd-ico__bau > *, .cd-ico__blatt, .cd-ico__linie, .cd-ico__alt, .cd-ico__neu, .cd-ico__hilfe { transition: opacity .35s var(--ease), transform .6s var(--ease); }
/* 01 Leere Fläche, beim Überfahren entsteht ein Zeichen */
.cd-ico__bau > * { opacity: 0; transform: scale(.3); transform-origin: center; }
.cd-ico__bau :is(.cd-b2, .cd-b3) { transform: scaleX(.15); transform-origin: left center; }
.cd .l-lage li:hover .cd-ico__leer { opacity: 0; }
.cd .l-lage li:hover .cd-ico__bau > * { opacity: 1; transform: none; }
.cd .l-lage li:hover .cd-b2 { transition-delay: .08s; } .cd .l-lage li:hover .cd-b3 { transition-delay: .16s; }
/* 02 Lose Drucksachen richten sich an einer Linie aus */
.cd-ico__blatt { transform-origin: center; }
.cd-ico__blatt--1 { transform: translate(-1px, -5px) rotate(-11deg); }
.cd-ico__blatt--2 { transform: translate(0, 4px) rotate(7deg); }
.cd-ico__blatt--3 { transform: translate(1px, -2px) rotate(-4deg) scale(.88); }
.cd-ico__linie { opacity: 0; }
.cd .l-lage li:hover .cd-ico__blatt { transform: none; }
.cd .l-lage li:hover .cd-ico__linie { opacity: 1; }
/* 03 Das alte Zeichen tritt zurück, das neue nach vorn */
.cd .l-lage li:hover .cd-ico__alt { opacity: .3; transform: translate(5px, 5px) scale(.9); }
.cd .l-lage li:hover .cd-ico__neu { transform: translate(-5px, -5px); }
/* 04 Das Zeichen bleibt, die Konstruktion richtet es aus */
.cd-ico__hilfe { opacity: .3; transform: scale(.82) rotate(-45deg); transform-origin: center; }
.cd .l-lage li:hover .cd-ico__hilfe { opacity: 1; transform: none; }
.cd .l-lage li:hover .cd-ico__marke { animation: cdMarke 1.2s var(--weich); }
@keyframes cdMarke { 30% { transform: translate(2px, 1px) rotate(-4deg); } 70% { transform: translate(-1px, 0) rotate(1deg); } }

/* ======================= 3 Leistungsumfang ======================= */
.cd-umfang { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2.6rem, 4.6vw, 4rem) clamp(1.4rem, 2.6vw, 2.6rem); margin: 0; padding: 0; list-style: none; }
.cd-teil:nth-child(1) { grid-column: 1 / 5; } .cd-teil:nth-child(2) { grid-column: 5 / 13; }
.cd-teil:nth-child(3) { grid-column: 1 / 6; } .cd-teil:nth-child(4) { grid-column: 6 / 13; }
.cd-teil:nth-child(5) { grid-column: 1 / 8; } .cd-teil:nth-child(6) { grid-column: 8 / 13; }
.cd-teil { position: relative; display: grid; align-content: start; gap: 1.2rem; padding-top: 1.1rem; }
.cd-teil::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--linie-stark); transform-origin: left; transition: transform 1.2s var(--weich) calc(var(--i) * .1s), background .4s; }
.cd-teil__bild { position: relative; display: grid; place-items: center; height: clamp(176px, 15vw, 216px); overflow: hidden; background: var(--papier); }
.cd-teil__bild > svg { position: absolute; inset: 0; width: 100%; height: 100%; padding: 14px; stroke: var(--carbon); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.cd-teil__bild svg * { transform-box: fill-box; transform-origin: center; }
.cd-teil__text { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .35rem 0; }
.cd-teil__nr { grid-row: 1; font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--wine); padding-top: .38em; }
.cd-teil h3 { grid-column: 2; font-size: clamp(1.2rem, 1.6vw, 1.45rem); letter-spacing: -.02em; }
.cd-teil p { grid-column: 2; max-width: 32em; color: var(--grau); font-size: clamp(.97rem, 1.05vw, 1.04rem); }
@media (hover: hover) { .cd-teil:hover::before { background: var(--wine); } }

/* Analyse: die Lupe sucht im Feld der Wettbewerber die freie Stelle */
.cd-teil--analyse .cd-teil__bild { background-image: linear-gradient(rgba(26, 26, 30, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(26, 26, 30, .05) 1px, transparent 1px); background-size: 20px 20px; }
.cd-feld > * { fill: rgba(26, 26, 26, .15); stroke: none; transition: opacity .6s var(--ease) calc(.3s + var(--k, 0) * .05s); }
.cd-luecke__ring { fill: none; stroke: var(--wine); stroke-width: 1.2; stroke-dasharray: 3 3; }
.cd-luecke__punkt { fill: var(--wine); stroke: none; transition: transform .7s var(--ease) 1.7s; }
.cd-lupe { transform: translate(175px, 112px); transition: transform 1.5s var(--ease) .6s; }
.cd-lupe circle { fill: rgba(255, 255, 255, .4); stroke: var(--carbon); stroke-width: 2.4; }
.cd-lupe path { stroke: var(--carbon); stroke-width: 4.5; }
@keyframes cdSuchen { 0%, 100% { transform: translate(175px, 112px); } 30% { transform: translate(62px, 38px); } 62% { transform: translate(138px, 75px); } }
@media (hover: hover) { .cd-teil--analyse:hover .cd-lupe { animation: cdSuchen 2.2s var(--weich); } }

/* Gestaltungsrichtungen: drei Moodboards, eine wird ausgewählt */
.cd-boards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.7rem, 1.4vw, 1.2rem); width: min(86%, 440px); }
.cd-board { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.2fr 1fr .9fr; gap: 4px; aspect-ratio: 3 / 3.6; padding: 6px; background: #fff; box-shadow: 0 0 0 1px var(--linie); transition: opacity .5s var(--ease), scale .6s var(--ease), box-shadow .4s, translate .9s var(--ease) calc(.3s + var(--k) * .12s); }
.cd-board i:nth-child(1) { grid-column: span 2; background: var(--a); }
.cd-board i:nth-child(2) { background: var(--b); }
.cd-board i:nth-child(3) { background: color-mix(in srgb, var(--a) 55%, #fff); }
.cd-board b { grid-column: span 2; align-self: center; font-family: var(--display); font-size: clamp(.9rem, 1.4vw, 1.2rem); font-weight: 600; line-height: 1; color: var(--a); }
.cd-board small { position: absolute; left: 0; top: -1.35rem; font-size: .7rem; font-weight: 600; color: var(--grau-2); }
.cd-board--wahl::after { content: ""; position: absolute; right: -9px; top: -9px; width: 20px; height: 20px; border-radius: 50%; background: var(--wine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; scale: 0; transition: scale .5s var(--ease); }
.cd-teil--richtungen .cd-teil__bild { padding-top: 1rem; }
@media (hover: hover) {
  .cd-teil--richtungen:hover .cd-board:not(.cd-board--wahl) { opacity: .35; scale: .95; }
  .cd-teil--richtungen:hover .cd-board--wahl { scale: 1.05; box-shadow: 0 0 0 2px var(--wine); }
  .cd-teil--richtungen:hover .cd-board--wahl::after { scale: 1; }
}

/* Logo: dasselbe Zeichen in den Varianten für Alltag, dunkle und helle Flächen und kleine Größen */
.cd-teil--logo .cd-teil__bild { background-image: radial-gradient(rgba(26, 26, 30, .16) 1px, transparent 1.2px); background-size: 13px 13px; }
.cd-varianten { display: grid; grid-template-columns: 1.7fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; width: min(86%, 430px); aspect-ratio: 430 / 172; }
.cd-var { display: grid; place-items: center; overflow: hidden; transition: translate .9s var(--ease) calc(.35s + var(--k) * .09s), opacity .6s var(--ease) calc(.35s + var(--k) * .09s); }
.cd-var img { width: 56%; height: auto; transition: scale .6s var(--ease) calc(var(--k) * .05s); }
.cd-var--wort { grid-row: span 2; background: #fff; box-shadow: 0 0 0 1px var(--linie); }
.cd-var--wort img { width: 72%; }
.cd-var--wein { background: var(--wine); }
.cd-var--dunkel { background: var(--carbon); }
.cd-var--hell { background: var(--sky); }
.cd-var--klein { background: #fff; box-shadow: 0 0 0 1px var(--linie); }
.cd-var--klein img { width: 24%; }
@media (hover: hover) { .cd-teil--logo:hover .cd-var img { scale: 1.1; } }

/* Farben und Typografie: Farbfächer öffnet sich, Schriftschnitt wechselt */
.cd-teil--farben .cd-teil__bild { grid-template-columns: 1fr 1fr; padding-inline: clamp(1rem, 3vw, 2.4rem); }
.cd-faecher { --spreiz: 11deg; position: relative; width: 100%; height: 84%; }
.cd-faecher i { position: absolute; left: 28%; bottom: 4%; width: 24%; height: 86%; background: linear-gradient(var(--f) 0 74%, #fff 74%); box-shadow: 0 0 0 1px rgba(26, 26, 26, .1), 0 8px 18px -12px rgba(0, 0, 0, .4); transform-origin: 50% 94%; rotate: calc((var(--k) - 2) * var(--spreiz)); transition: rotate 1.1s var(--ease) calc(.4s + var(--k) * .06s); }
.cd-schriftprobe { display: grid; justify-items: start; gap: .6rem; }
.cd-schriftprobe > b { font-family: var(--display); font-size: clamp(3.2rem, 5vw, 4.6rem); font-weight: 300; line-height: .9; letter-spacing: -.04em; color: var(--carbon); transition: font-weight .9s var(--ease), letter-spacing .9s var(--ease); }
.cd-kontrast { display: flex; gap: 6px; }
.cd-kontrast i { display: grid; place-items: center; width: 34px; height: 34px; background: var(--h); color: var(--v); font-family: var(--display); font-size: .86rem; font-style: normal; font-weight: 600; }
@media (hover: hover) {
  .cd-teil--farben:hover .cd-faecher { --spreiz: 17deg; }
  .cd-teil--farben:hover .cd-schriftprobe > b { font-weight: 800; letter-spacing: -.05em; }
}

/* Styleguide: ein aufgeklapptes Heft */
.cd-teil--guide .cd-teil__bild { background-image: repeating-linear-gradient(180deg, transparent 0 15px, rgba(26, 26, 30, .06) 15px 16px); }
.cd-heft { display: flex; width: min(60%, 290px); aspect-ratio: 2 / 1.2; perspective: 900px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .12)); }
.cd-heft__seite { position: relative; flex: 1; display: grid; align-content: start; gap: 6%; padding: 7% 8%; background: #fff; box-shadow: 0 0 0 1px var(--linie); transition: transform 1.1s var(--ease) .4s; }
.cd-heft__seite--l { transform-origin: right center; }
.cd-heft__seite--r { transform-origin: left center; }
.cd-heft__seite b { display: block; height: 4px; border-radius: 2px; background: rgba(26, 26, 26, .16); }
.cd-heft__seite b:last-child { width: 70%; }
.cd-heft__logo { position: relative; justify-self: center; width: 62%; aspect-ratio: 404 / 188; margin-block: 8% 10%; background: url("/assets/img/brand/ca-red.svg") center / contain no-repeat; }
.cd-heft__schutz { position: absolute; left: 14%; right: 14%; top: 9%; height: 42%; border: 1px dashed rgba(120, 2, 14, .45); }
.cd-heft__farben { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; height: 26%; }
.cd-heft__farben i:nth-child(1) { background: var(--wine); } .cd-heft__farben i:nth-child(2) { background: var(--sky); } .cd-heft__farben i:nth-child(3) { background: var(--carbon); }
.cd-heft__titel { height: 8px !important; width: 60%; background: var(--carbon) !important; }
@media (hover: hover) { .cd-teil--guide:hover .cd-heft__seite--r { transform: rotateY(-18deg); } }

/* Übergabe: Blätter gleiten in die Mappe */
.cd-teil--uebergabe .cd-teil__bild { background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(26, 26, 30, .05) 11px 12px); }
.cd-mappe { position: relative; width: min(52%, 220px); aspect-ratio: 1.2; }
.cd-mappe__blatt { position: absolute; left: 12%; right: 12%; top: 6%; height: 72%; display: grid; align-content: start; padding: 10%; background: #fff; box-shadow: 0 0 0 1px var(--linie), 0 6px 12px -8px rgba(0, 0, 0, .3); translate: calc((var(--k) - 1) * 7%) calc(var(--k) * 5%); rotate: calc((var(--k) - 1) * 3deg); transition: translate 1s var(--ease) calc(.5s + var(--k) * .12s), rotate 1s var(--ease) calc(.5s + var(--k) * .12s); }
.cd-mappe__blatt i { display: block; height: 26%; background: linear-gradient(var(--wine), var(--wine)) 0 0 / 40% 30% no-repeat, linear-gradient(rgba(26, 26, 26, .15), rgba(26, 26, 26, .15)) 0 70% / 90% 10% no-repeat, linear-gradient(rgba(26, 26, 26, .15), rgba(26, 26, 26, .15)) 0 100% / 70% 10% no-repeat; }
.cd-mappe__tasche { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: linear-gradient(170deg, #8A0414, var(--wine) 60%, #5C020B); clip-path: polygon(0 0, 38% 0, 44% 14%, 100% 14%, 100% 100%, 0 100%); }
@keyframes cdMappe { 0%, 100% { translate: calc((var(--k) - 1) * 7%) calc(var(--k) * 5%); } 45% { translate: calc((var(--k) - 1) * 9%) -38%; } }
.cd-teil--uebergabe:hover .cd-mappe__blatt { animation: cdMappe 1.4s var(--ease); animation-delay: calc(var(--k) * .08s); }

/* ======================= 4 Highlight: vom Einzelteil zum Erscheinungsbild ======================= */
.cd-system { position: relative; isolation: isolate; overflow: hidden; margin-top: var(--section); padding-block: clamp(5rem, 9vw, 8rem); color: #fff; background: radial-gradient(55% 70% at 100% 0%, rgba(163, 18, 42, .5), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(120, 2, 14, .45), transparent 70%), linear-gradient(170deg, #3A0208 0%, #290206 60%, #1E0105 100%); }
.cd-system__raster { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .11) 1px, transparent 1.2px); background-size: 20px 20px; -webkit-mask-image: radial-gradient(50% 70% at 75% 50%, #000, transparent 80%); mask-image: radial-gradient(50% 70% at 75% 50%, #000, transparent 80%); }
.cd-system__inhalt { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.cd-system__text { display: grid; gap: 1.1rem; justify-items: start; }
.cd-system .h2 { color: #fff; }
.cd-system .h2 em { color: var(--sky); }
.cd-system .lead { color: rgba(255, 255, 255, .8); }

/* Tafel: Bausteine liegen verstreut und rasten beim Scrollen ins Raster (--p: 0 verstreut, 1 fertig) */
.cd-tafel { --p: 1; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); aspect-ratio: 6 / 4; gap: calc(.7cqw + (1 - var(--p)) * 1.6cqw); container-type: inline-size; }
.cd-tafel::before, .cd-tafel::after { content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid var(--sky); opacity: clamp(0, (var(--p) - .82) * 6, 1); pointer-events: none; }
.cd-tafel::before { left: -14px; top: -14px; border-width: 1.5px 0 0 1.5px; }
.cd-tafel::after { right: -14px; bottom: -14px; border-width: 0 1.5px 1.5px 0; }
.cd-stein { position: relative; margin: 0; overflow: hidden; border-radius: calc((1 - var(--p)) * 1cqw); translate: calc(var(--dx) * (1 - var(--p)) * 1cqw) calc(var(--dy) * (1 - var(--p)) * 1cqw); rotate: calc(var(--r) * (1 - var(--p)) * 1deg); scale: calc(.9 + var(--p) * .1); box-shadow: 0 2cqw 4cqw -2cqw rgba(0, 0, 0, calc((1 - var(--p)) * .8)); }
.cd-stein small { position: absolute; z-index: 2; left: 1.2cqw; bottom: 1.1cqw; padding: .3em .6em; border-radius: 99px; background: rgba(255, 255, 255, .92); color: var(--carbon); font-size: clamp(.56rem, 1.25cqw, .72rem); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; opacity: calc(.82 + (1 - var(--p)) * .18); }
.cd-stein--zeichen { grid-area: 1 / 1 / 3 / 3; display: grid; place-items: center; background: var(--wine); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.cd-stein--zeichen img { width: 64%; height: auto; }
.cd-stein--farben { grid-area: 1 / 3 / 3 / 5; display: grid; grid-template-rows: 1.4fr 1fr 1fr; }
.cd-stein--farben span { display: flex; flex-direction: column; justify-content: flex-end; padding: 1.2cqw 1.4cqw; background: var(--f); color: var(--t, #fff); font-size: clamp(.56rem, 1.3cqw, .76rem); font-variant-numeric: tabular-nums; }
.cd-stein--farben b { font-family: var(--display); font-size: clamp(.7rem, 1.8cqw, 1.05rem); font-weight: 600; }
.cd-stein--farben span:first-child { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.cd-stein--farben small { left: auto; right: 1.2cqw; }
.cd-stein--schrift { grid-area: 1 / 5 / 2 / 7; display: flex; align-items: center; justify-content: space-between; padding-inline: 2cqw; background: #fff; color: var(--carbon); }
.cd-stein--schrift b { font-family: var(--display); font-size: 7.6cqw; font-weight: 600; line-height: 1; letter-spacing: -.05em; color: var(--wine); }
.cd-stein--schrift span { font-size: clamp(.58rem, 1.4cqw, .82rem); font-weight: 600; line-height: 1.35; text-align: right; color: var(--grau); }
.cd-stein--schrift small { left: auto; right: 1.2cqw; bottom: auto; top: 1.1cqw; }
.cd-stein--raster { grid-area: 2 / 5 / 3 / 7; background: radial-gradient(rgba(207, 232, 255, .55) 1.1px, transparent 1.4px) 0 0 / 1.9cqw 1.9cqw, #5C020B; }
.cd-stein--bild { grid-area: 3 / 1 / 5 / 3; }
.cd-stein--karte { grid-area: 3 / 3 / 5 / 5; }
.cd-stein--bild img, .cd-stein--karte img { width: 100%; height: 100%; object-fit: cover; }
.cd-stein--bild img { object-position: 52% 50%; }
.cd-stein--social { grid-area: 3 / 5 / 5 / 7; display: grid; place-items: center; align-content: center; gap: 1.4cqw; background: var(--sky); color: var(--wine); }
.cd-stein--social img { width: 38%; height: auto; }
.cd-stein--social span { font-size: clamp(.6rem, 1.5cqw, .86rem); font-weight: 600; }

/* ======================= 5 Projekte: zwei Spalten, einheitliches Format ======================= */
.cd-galerie { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.4rem, 4vw, 3.6rem) clamp(1rem, 2.2vw, 2rem); margin: 0; padding: 0; list-style: none; }
.cd-werk__karte { display: grid; gap: .9rem; color: var(--carbon); }
.cd-werk__bild { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--grau-bg); }
.cd-werk__bild img { position: absolute; left: 0; top: -3%; width: 100%; height: 106%; object-fit: cover; translate: 0 var(--py, 0px); scale: 1; transition: scale 1s var(--ease); }
.cd-werk__bild--logo { display: grid; place-items: center; background: var(--bg); }
.cd-werk__bild--logo img { position: static; width: 22%; height: auto; translate: none; }
/* Social-Media-Beiträge stehen ganz im Bild, auf hellem Grund */
.cd-werk__bild--post { display: grid; place-items: center; background: var(--papier); }
.cd-werk__bild--post img { left: 0; right: 0; top: 9%; width: auto; height: 82%; margin-inline: auto; aspect-ratio: 4 / 5; translate: none; box-shadow: 0 18px 30px -18px rgba(20, 0, 4, .45); }
.cd-werk__unter { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; padding-top: .75rem; font-size: .92rem; }
.cd-werk__unter::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(var(--wine), var(--wine)) 0 0 / 0% 100% no-repeat, var(--linie); transition: background-size .7s var(--ease), transform 1.1s var(--weich) calc(.4s + var(--i) * .08s); transform-origin: left; }
.cd-werk__nr { font-size: .74rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--grau-2); transition: color .3s; }
.cd-werk__unter b { font-weight: 600; transition: color .3s; }
.cd-werk__was { color: var(--grau-2); }
.cd-werk__art { margin-left: auto; padding: .14rem .6rem; border: 1px solid var(--linie); border-radius: 99px; font-size: .72rem; color: var(--grau); transition: border-color .3s, color .3s; }
.cd-werk__pfeil { color: var(--wine); opacity: 0; translate: -6px 0; transition: opacity .3s, translate .45s var(--ease); }
.cd-werk__karte:hover .cd-werk__bild img { scale: 1.035; }
.cd-werk__karte:hover .cd-werk__bild--logo img { scale: 1.08; }
.cd-werk__karte:hover .cd-werk__unter::before { background-size: 100% 100%, auto; }
.cd-werk__karte:hover :is(.cd-werk__nr, b) { color: var(--wine); }
.cd-werk__karte:hover .cd-werk__art { border-color: rgba(120, 2, 14, .4); color: var(--wine); }
.cd-werk__karte:hover .cd-werk__pfeil, .cd-werk__karte:focus-visible .cd-werk__pfeil { opacity: 1; translate: 0 0; }
.cd-werk__karte:focus-visible { outline: none; }
.cd-werk__karte:focus-visible .cd-werk__bild { outline: 2px solid var(--wine); outline-offset: 3px; }
.cd-projekte .projekte__mehr { margin-top: clamp(2.4rem, 4vw, 3.4rem); }

/* ======================= 6 Ablauf: Aufbau wie auf der Webdesign-Seite ======================= */
.cd .l-schritt { isolation: isolate; }
.cd .l-schritt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(243, 248, 253, 0) 0%, #F3F8FD 100%); opacity: 0; transition: opacity .6s var(--ease); }
.cd .l-schritt::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.cd .l-schritte.bereit .l-schritt.ist-aktiv::before { opacity: 1; }
.cd .l-schritte.bereit .l-schritt.ist-aktiv::after { transform: scaleX(1); }
.cd .l-schritt__nr span { display: inline-grid; place-items: center; width: 2.3em; height: 2.3em; margin: -.6em 0 -.6em -.62em; border-radius: 50%; font-variant-numeric: tabular-nums; transition: background .45s, color .45s, scale .6s var(--ease); }
.cd .l-schritte.bereit .l-schritt.ist-aktiv .l-schritt__nr span { background: var(--wine); color: #fff; scale: 1.05; }
.cd .l-schritte.bereit .l-schritt.ist-fertig .l-schritt__nr span { box-shadow: inset 0 0 0 1px rgba(26, 26, 26, .25); }
.cd .l-schritt__ico { transition: color .5s var(--ease), translate .6s var(--ease); }
.cd .l-schritte.bereit .l-schritt__ico * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease); }
.cd .l-schritte.bereit .l-schritt:is(.ist-aktiv, .ist-fertig) .l-schritt__ico * { stroke-dashoffset: 0; }
.cd .l-schritte.bereit .l-schritt__text { translate: 0 10px; transition: translate .8s var(--ease), color .5s var(--ease); }
.cd .l-schritte.bereit .l-schritt:is(.ist-aktiv, .ist-fertig) .l-schritt__text { translate: 0 0; }
.cd .l-schritte.bereit .l-schritt.ist-aktiv .l-schritt__ico { translate: 0 -4px; }
@media (hover: hover) and (pointer: fine) {
  .cd .l-schritte.bereit .l-schritt:hover { --farbe: var(--wine); --text: var(--grau); }
  .cd .l-schritte.bereit .l-schritt:hover::before { opacity: .7; }
  .cd .l-schritte.bereit .l-schritt:hover .l-schritt__ico * { stroke-dashoffset: 0; }
  .cd .l-schritte.bereit .l-schritt:hover .l-schritt__text { translate: 0 0; }
}

/* ======================= 7 Aus einer Hand: Print und Website ======================= */
.cd-bruecke { position: relative; isolation: isolate; overflow: hidden; margin-top: var(--section); padding-block: clamp(4rem, 8vw, 7rem); border-block: 1px solid var(--grau-line); }
.cd-bruecke__punkte { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(26, 26, 30, .13) 1px, transparent 1.2px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(55% 75% at 75% 50%, #000 10%, transparent 80%); mask-image: radial-gradient(55% 75% at 75% 50%, #000 10%, transparent 80%); }
.cd-bruecke__inhalt { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.cd-bruecke__text { display: grid; gap: 1.1rem; justify-items: start; }
.cd-bruecke__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: .6rem; }

.cd-uebertrag { --p: 1; position: relative; aspect-ratio: 10 / 8; container-type: inline-size; }
.cd-uebertrag small { position: absolute; left: 0; top: calc(100% + 1.2cqw); font-size: clamp(.6rem, 1.6cqw, .74rem); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--grau-2); }
.cd-briefbogen { position: absolute; left: 3cqw; top: 6cqw; width: 34cqw; aspect-ratio: 1 / 1.414; display: grid; align-content: start; gap: 1.5cqw; padding: 3.4cqw 3cqw; background: #fff; box-shadow: 0 0 0 1px var(--linie), 0 3cqw 6cqw -4cqw rgba(30, 30, 60, .35); rotate: -3deg; }
.cd-briefbogen__logo { width: 14cqw; aspect-ratio: 858 / 193; margin-bottom: 3cqw; background: url("/assets/img/brand/logo-red.svg") left / contain no-repeat; }
.cd-briefbogen b { display: block; height: .9cqw; border-radius: .5cqw; background: rgba(26, 26, 26, .14); }
.cd-briefbogen__adresse { width: 40%; margin-bottom: 2cqw; }
.cd-briefbogen__kurz { width: 62%; }
.cd-briefbogen__fuss { position: absolute; left: 3cqw; right: 3cqw; bottom: 3cqw; height: 1cqw; background: var(--wine); }
.cd-briefbogen .cd-pass { width: 2.6cqw; height: 2.6cqw; }
.cd-fenster { position: absolute; right: 0; top: 16cqw; width: 58cqw; height: 50cqw; border: 1px solid rgba(26, 26, 26, .16); border-radius: 1.4cqw; background: #fff; box-shadow: 0 4cqw 8cqw -5cqw rgba(30, 30, 60, .3); }
.cd-fenster small { left: 1cqw; }
.cd-fenster__leiste { display: flex; align-items: center; gap: .9cqw; height: 5.4cqw; padding-inline: 2cqw; border-bottom: 1px solid var(--linie); }
.cd-fenster__leiste i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: rgba(26, 26, 26, .2); }
.cd-fenster__leiste b { width: 22cqw; height: 2.4cqw; margin-left: 3cqw; border-radius: 1.2cqw; background: #F2F3F5; }
.cd-fenster__seite { position: relative; height: calc(100% - 5.4cqw); }
.cd-fenster__logo { position: absolute; left: 4cqw; top: 3.4cqw; width: 11cqw; aspect-ratio: 858 / 193; background: url("/assets/img/brand/logo-red.svg") left / contain no-repeat; }
.cd-fenster__nav { position: absolute; right: 4cqw; top: 4cqw; display: flex; gap: 2cqw; }
.cd-fenster__nav b { width: 5cqw; height: 1cqw; border-radius: 1cqw; background: rgba(26, 26, 26, .22); }
.cd-fenster__titel { position: absolute; left: 4cqw; top: 12cqw; font-family: var(--display); font-size: 9cqw; font-weight: 600; line-height: 1; letter-spacing: -.05em; color: var(--carbon); }
.cd-fenster__zeile { position: absolute; left: 4cqw; top: 25cqw; width: 22cqw; height: 1.2cqw; border-radius: 1cqw; background: rgba(26, 26, 26, .18); }
.cd-fenster__knopf { position: absolute; left: 4cqw; top: 30cqw; width: 14cqw; height: 4.4cqw; border-radius: .9cqw; background: var(--wine); }
.cd-fenster__bild { position: absolute; right: 4cqw; top: 11cqw; width: 22cqw; height: 26cqw; border-radius: .9cqw; background: var(--sky); }
/* angekommene Bausteine füllen das Fenster, vorher sind dort nur Platzhalter */
.cd-fenster__logo, .cd-fenster__titel, .cd-fenster__knopf { opacity: clamp(.12, (var(--p) - .62) * 2.6, 1); }
.cd-uebertrag__wege { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--wine); stroke-width: .35; stroke-dasharray: .018 .018; opacity: .7; }
.cd-chip { position: absolute; z-index: 3; left: calc(var(--x0) * 1cqw); top: calc(var(--y0) * 1cqw); translate: calc((var(--x1) - var(--x0)) * var(--p) * 1cqw - 50%) calc((var(--y1) - var(--y0)) * var(--p) * 1cqw - 50%); opacity: clamp(0, (1 - var(--p)) * 5, 1); display: grid; place-items: center; width: 6cqw; height: 6cqw; border-radius: 50%; box-shadow: 0 1cqw 2cqw -1cqw rgba(0, 0, 0, .45); }
.cd-chip--logo { background: #fff url("/assets/img/brand/ca-red.svg") center / 64% no-repeat; box-shadow: 0 0 0 1px var(--linie), 0 1cqw 2cqw -1cqw rgba(0, 0, 0, .45); }
.cd-chip--farbe { background: var(--wine); }
.cd-chip--schrift { background: var(--carbon); color: var(--sky); font-family: var(--display); font-size: 2.4cqw; font-weight: 600; }

/* ======================= 8 Ansprechpartnerin ======================= */
.cd-foto { position: relative; margin: 0; }
.cd-foto__rahmen { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--sky-soft); }
.cd-foto__rahmen img { position: absolute; left: 0; top: -7%; width: 100%; height: 114%; object-fit: cover; object-position: 62% 30%; translate: 0 var(--py, 0px); }
.cd-foto .cd-pass--ur { bottom: calc(-10px + 2.8rem); }
.cd-foto__unter { display: flex; align-items: center; gap: .7rem; height: 2.8rem; padding-top: .9rem; font-size: .84rem; color: var(--grau); }
.cd-foto__linie { width: 34px; height: 1px; background: var(--wine); transform-origin: left; transition: transform .9s var(--ease) 1.1s; }
.cd-person { align-items: start; margin-top: var(--section); }
.cd-person .l-person__text { padding-top: clamp(0rem, 3vw, 2.4rem); }

/* ======================= 9 FAQ ======================= */
.cd .l-fragen { position: relative; border-bottom: 0; }
.cd .l-fragen::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(26, 26, 26, .16); transform-origin: left; transition: transform 1.2s var(--weich) .45s; }
.cd .l-fragen details { position: relative; border-top: 0; }
.cd .l-fragen details::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(26, 26, 26, .16); transform-origin: left; transition: transform 1.1s var(--weich), background .4s; }
.cd .l-fragen details:nth-child(2)::before { transition-delay: .08s; } .cd .l-fragen details:nth-child(3)::before { transition-delay: .16s; } .cd .l-fragen details:nth-child(4)::before { transition-delay: .24s; }
.cd .l-fragen details[open]:not(.schliesst)::before { background: var(--wine); }
.cd .l-fragen details[open]:not(.schliesst) summary { color: var(--wine); }
.cd .l-fragen summary i { transition: background .3s, color .3s, scale .4s var(--ease); }
.cd .l-fragen summary:hover i { scale: 1.08; }

/* ======================= 10 Kontakt und Footer ======================= */
.cd .fuss { isolation: isolate; }
.cd-mesh { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.cd-mesh i { position: absolute; aspect-ratio: 1; border-radius: 50%; will-change: transform; animation: 28s ease-in-out infinite alternate paused; }
.cd-mesh i:nth-child(1) { left: -14vmax; top: -24vmax; width: 64vmax; background: radial-gradient(closest-side, rgba(163, 18, 42, .55), transparent); animation-name: cdMesh1; }
.cd-mesh i:nth-child(2) { right: -18vmax; top: 6%; width: 52vmax; background: radial-gradient(closest-side, rgba(207, 232, 255, .1), transparent); animation-name: cdMesh2; animation-duration: 34s; }
.cd-mesh i:nth-child(3) { left: 24%; bottom: -34vmax; width: 60vmax; background: radial-gradient(closest-side, rgba(30, 0, 5, .75), transparent); animation-name: cdMesh3; animation-duration: 25s; }
@keyframes cdMesh1 { to { transform: translate3d(18vmax, 10vmax, 0) scale(1.1); } }
@keyframes cdMesh2 { to { transform: translate3d(-16vmax, 12vmax, 0) scale(.88); } }
@keyframes cdMesh3 { to { transform: translate3d(-12vmax, -8vmax, 0) scale(1.12); } }
.cd .fuss .cd-korn { opacity: .07; }
.cd .fuss .deko--zeichen { translate: 0 var(--fy, 0px); }
.cd .fuss .ring svg { animation-duration: 38s; }
.cd .fuss__gross { position: relative; isolation: isolate; width: fit-content; max-width: 100%; }
.cd .fuss__gross:hover { opacity: 1; }
.cd .fuss__gross::before { content: ""; position: absolute; z-index: -1; left: var(--gx, 50%); top: var(--gy, 50%); width: min(34rem, 80vw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(207, 232, 255, .2), transparent); opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.cd .fuss__gross:hover::before { opacity: 1; }
.cd .fuss__gross em { background: linear-gradient(currentColor, currentColor) 0 94% / 0% .06em no-repeat; transition: background-size .8s var(--ease); }
.cd .fuss__gross:hover em, .cd .fuss__gross:focus-visible em { background-size: 100% .06em; }
.cd .fuss__gross:hover span[aria-hidden] { animation: cdPfeilGross .8s var(--ease) forwards; }
@keyframes cdPfeilGross { 0% { translate: 0 0; opacity: 1; } 40% { translate: .5em 0; opacity: 0; } 41% { translate: -.4em 0; opacity: 0; } 100% { translate: .14em 0; opacity: 1; } }

/* ======================= Startzustände (nur mit Skript und ohne reduzierte Bewegung) ======================= */
@media (prefers-reduced-motion: no-preference) {
  /* Hero: Ebenen setzen sich nacheinander, Farbfächer öffnet sich */
  html.js .cd-h-foto__rahmen { clip-path: inset(0 0 0 0); transition: clip-path 1.4s var(--weich) .2s; }
  html.js:not(.ist-geladen) .cd-h-foto__rahmen { clip-path: inset(100% 0 0 0); }
  html.js .cd-h-zeichen, html.js .cd-h-schrift { transition: opacity 1s var(--ease), scale 1.2s var(--ease); }
  html.js .cd-h-zeichen { transition-delay: .7s; } html.js .cd-h-schrift { transition-delay: .95s; }
  html.js:not(.ist-geladen) :is(.cd-h-zeichen, .cd-h-schrift) { opacity: 0; scale: .9; }
  html.js:not(.ist-geladen) .cd-h-farben li { rotate: -6deg; }
  html.js .cd-h-farben li { transition-delay: calc(1s + var(--n) * .1s); }
  html.js:not(.ist-geladen) .cd-pass { opacity: 0; }
  html.js:not(.ist-geladen) .cd-pass--ol { translate: 8px 8px; } html.js:not(.ist-geladen) .cd-pass--ur { translate: -8px -8px; }
  html.js .cd-druckleiste span { transition: transform 1.6s var(--weich) .8s; }
  html.js:not(.ist-geladen) .cd-druckleiste span { transform: scaleX(0); }

  /* Ausgangslagen: Linien und Icons zeichnen sich, Texte kommen leicht versetzt */
  html.js .cd .l-lage:not(.cd-in)::before, html.js .cd .l-lage:not(.cd-in)::after { transform: scaleX(0); }
  html.js .cd .l-lage:not(.cd-in) li + li::after { transform: scaleY(0); }
  html.js .cd .l-lage .cd-ico :is(path, rect, circle, ellipse):not(.cd-ico__leer *) { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s var(--ease) calc(.4s + var(--n, -1) * .15s + .15s), opacity .35s var(--ease), transform .6s var(--ease); }
  html.js .cd .l-lage:not(.cd-in) .cd-ico :is(path, rect, circle, ellipse):not(.cd-ico__leer *) { stroke-dashoffset: 1; }
  html.js .cd .l-lage:not(.cd-in) .cd-ico__leer { opacity: 0; }
  html.js .cd .l-lage .l-lage__text, html.js .cd .l-lage .l-lage__nr { transition: opacity .7s var(--ease), translate .9s var(--ease); transition-delay: calc(.5s + var(--n, -1) * .12s + .12s); }
  html.js .cd .l-lage:not(.cd-in) :is(.l-lage__text, .l-lage__nr) { opacity: 0; translate: 0 14px; }
  html.js .cd .l-lage:not(.cd-in) li::before { opacity: 0 !important; }
  html.js .cd .l-lage h3, html.js .cd .l-lage p { transition-delay: 0s; }

  /* Leistungsumfang */
  html.js .cd-umfang:not(.cd-in) .cd-teil::before { transform: scaleX(0); }
  html.js .cd-teil__text { transition: opacity .8s var(--ease) calc(.25s + var(--i) * .1s), translate .9s var(--ease) calc(.25s + var(--i) * .1s); }
  html.js .cd-umfang:not(.cd-in) .cd-teil__text { opacity: 0; translate: 0 12px; }
  html.js .cd-teil__bild { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--weich) calc(var(--i) * .1s); }
  html.js .cd-umfang:not(.cd-in) .cd-teil__bild { clip-path: inset(0 100% 0 0); }
  html.js .cd-umfang:not(.cd-in) .cd-feld > * { opacity: 0; }
  html.js .cd-umfang:not(.cd-in) .cd-lupe { transform: translate(40px, 20px); }
  html.js .cd-umfang:not(.cd-in) .cd-luecke__punkt { transform: scale(0); }
  html.js .cd-umfang:not(.cd-in) .cd-board { translate: 0 24px; opacity: 0; }
  html.js .cd-umfang:not(.cd-in) .cd-var { translate: 0 14px; opacity: 0; }
  html.js .cd-umfang:not(.cd-in) .cd-faecher { --spreiz: 0deg; }
  html.js .cd-umfang:not(.cd-in) .cd-heft__seite--l { transform: rotateY(80deg); }
  html.js .cd-umfang:not(.cd-in) .cd-heft__seite--r { transform: rotateY(-80deg); }
  html.js .cd-umfang:not(.cd-in) .cd-mappe__blatt { translate: calc((var(--k) - 1) * 9%) -60%; }

  /* Tafel und Übertragung: Startwert für --p setzt corporate-design.js */

  /* Projekte: Masken öffnen sich abwechselnd von unten und von der Seite */
  html.js .cd-werk__bild { clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--weich) calc(var(--i) * .08s); }
  html.js .cd-galerie:not(.cd-in) .cd-werk:nth-child(odd) .cd-werk__bild { clip-path: inset(100% 0 0 0); }
  html.js .cd-galerie:not(.cd-in) .cd-werk:nth-child(even) .cd-werk__bild { clip-path: inset(0 0 0 100%); }
  html.js .cd-werk__bild img { transition: scale 1.5s var(--ease) calc(var(--i) * .08s); }
  html.js .cd-galerie:not(.cd-in) .cd-werk__bild img { scale: 1.16; }
  html.js .cd-galerie:not(.cd-in) .cd-werk__unter::before { transform: scaleX(0); }
  html.js .cd-werk__unter > * { transition: opacity .7s var(--ease) calc(.6s + var(--i) * .08s), translate .8s var(--ease) calc(.6s + var(--i) * .08s), color .3s, border-color .3s; }
  html.js .cd-galerie:not(.cd-in) .cd-werk__unter > * { opacity: 0; translate: 0 8px; }
  html.js .cd-werk__unter > .cd-werk__pfeil { transition: opacity .3s, translate .45s var(--ease); }

  /* Ansprechpartnerin: Foto wird von unten freigelegt, Passermarken und Linie folgen */
  html.js .cd-foto__rahmen { clip-path: inset(0 0 0 0); transition: clip-path 1.4s var(--weich); }
  html.js .cd-foto:not(.cd-in) .cd-foto__rahmen { clip-path: inset(100% 0 0 0); }
  html.js .cd-foto__rahmen img { transition: scale 1.8s var(--ease); }
  html.js .cd-foto:not(.cd-in) .cd-foto__rahmen img { scale: 1.12; }
  html.js .cd-foto:not(.cd-in) .cd-pass { opacity: 0; }
  html.js .cd-foto:not(.cd-in) .cd-pass--ol { translate: 8px 8px; } html.js .cd-foto:not(.cd-in) .cd-pass--ur { translate: -8px -8px; }
  html.js .cd-foto:not(.cd-in) .cd-foto__linie { transform: scaleX(0); }
  html.js .cd-person .l-person__text > [data-reveal] { transition-delay: calc(.45s + var(--i, 0) * 110ms); }

  /* FAQ: Linien zeichnen sich */
  html.js .cd .l-fragen:not(.cd-in) details::before, html.js .cd .l-fragen:not(.cd-in)::after { transform: scaleX(0); }

  /* Kontakt: Bild öffnet sich als Maske aus der Mitte */
  html.js .cd .kontakt__bild[data-reveal] { clip-path: inset(14% 10% 14% 10% round 20px); opacity: 1; translate: 0 0; transition: clip-path 1.5s var(--weich); }
  html.js .cd .kontakt__bild[data-reveal].in { clip-path: inset(0 0 0 0 round 20px); }
}

/* ======================= Responsiv ======================= */
@media (max-width: 1080px) {
  .cd-buehne { justify-self: center; width: min(100% - 2 * var(--gutter), 560px); height: auto; margin: 1.4rem auto clamp(2.4rem, 6vw, 3.4rem); }
  .cd-umfang .cd-teil:nth-child(odd) { grid-column: 1 / 7; } .cd-umfang .cd-teil:nth-child(even) { grid-column: 7 / 13; }
  .cd-system__inhalt, .cd-bruecke__inhalt { grid-template-columns: 1fr; }
  .cd-uebertrag { width: min(100%, 600px); justify-self: center; }
  /* Ausgangslagen 2 × 2: senkrechte Linie nur zwischen den Spalten, waagerechte über der zweiten Reihe */
  .cd .l-lage li:nth-child(3)::after { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; transform-origin: left; }
  .cd .l-lage li:nth-child(4)::after { height: auto; }
  .cd .l-lage li:nth-child(3) { box-shadow: none; }
  .cd .l-lage li:nth-child(4) { box-shadow: 0 -1px 0 var(--linie); }
}
@media (max-width: 960px) {
  .cd-hero { display: block; }
}
@media (max-width: 860px) {
  .cd-werk__art { margin-left: 0; }
}
@media (max-width: 640px) {
  .cd-umfang .cd-teil:nth-child(n) { grid-column: 1 / -1; }
  .cd-teil__bild { height: 190px; }
  .cd-tafel { aspect-ratio: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(6, 21cqw); }
  .cd-stein--zeichen { grid-area: 1 / 1 / 3 / 3; } .cd-stein--farben { grid-area: 1 / 3 / 3 / 5; }
  .cd-stein--schrift { grid-area: 3 / 1 / 4 / 5; } .cd-stein--raster { grid-area: 4 / 1 / 5 / 5; }
  .cd-stein--bild { grid-area: 5 / 1 / 7 / 3; } .cd-stein--karte { grid-area: 5 / 3 / 7 / 5; }
  .cd-stein--social { display: none; }
  .cd-stein--schrift b { font-size: 12cqw; } .cd-stein--zeichen img { width: 70%; }
  .cd-stein small { font-size: .58rem; }
  .cd-stein--farben span { font-size: .62rem; } .cd-stein--farben b { font-size: .78rem; }
  .cd-galerie { grid-template-columns: 1fr; row-gap: 2.4rem; }
  .cd .l-lage li + li::after, .cd .l-lage li:nth-child(n + 2)::after { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; transform-origin: left; }
  .cd .l-lage li:nth-child(4) { box-shadow: none; }
  .cd-werk__unter { font-size: .86rem; }
}

/* Reduzierte Bewegung: nichts schwebt, nichts läuft endlos, Parallax aus */
@media (prefers-reduced-motion: reduce) {
  .cd-licht i, .cd-mesh i, .cd-ebene, .cd .fuss .ring svg { animation: none !important; }
  .cd-ebene, .cd-hero > .wrap, .cd .fuss .deko--zeichen, .cd-foto__rahmen img, .cd-werk__bild img { translate: none !important; }
  .cd-tafel, .cd-uebertrag { --p: 1 !important; }
  .cd-ico *, .cd-ico, .cd .l-lage li::before, .cd-teil *, .cd-pfeil .btn__ico, .cd .fuss__gross span[aria-hidden] { animation: none !important; transition: none !important; }
}
