/* Cityprint Richtung A »Druckbogen«: Glas, Papier, Bewegung (Entwürfe 2586 ff.).
   Lädt nur auf den Entwurfsseiten. Alles Übrige ist nativ in Bricks gebaut.
   Grund für diese Datei: Bricks hat kein Feld für backdrop-filter mit Fallback, keine Mehrfachschatten
   (Papierstapel), keine Grid-Spanne für Bild-Elemente und keine Neigung oder Scroll-Zustände. */

/* ---------- Anker: Sprungziele landen unter dem festen Kopf (90 px), nicht dahinter ---------- */
html { scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 90px); }
/* Klebende Sortiment-Spalte: Kopf + 32 px Luft, auch mit WP-Adminleiste (vorher fest 120 px, klemmte unter der Navi) */
.cp-sortiment-kopf { top: var(--cp-kleben, calc(var(--wp-admin--admin-bar--height, 0px) + 90px + 32px)) !important; }
/* Ist die Spalte höher als das Fenster, setzt cityprint-a.js --cp-kleben negativ: sie scrollt mit,
   bis ihr Ende sichtbar ist, und klebt dann mit dem Ende. Ohne Script: kleben nur, wenn das Fenster hoch genug ist. */
@media (max-height: 1080px) { html:not(.cp-js) .cp-sortiment-kopf { position: static !important; } }

/* ---------- Headlines ruhiger (03.12.2026, Humberto: »zu mächtig und groß«) ----------
   Größen über die Bricks-Variablen: --cp-t-kopf clamp(28px, 2.6vw, 40px), --cp-t-display clamp(36px, 3.9vw, 60px).
   Hier nur Laufweite und Zeilenabstand (vorher −0,03/−0,035 em bei 1,02/0,95) und der Coupon. */
:is(h1, h2, h3).cp-kopf.brxe-heading { letter-spacing: -.015em; line-height: 1.1; }
:is(h1, h2, h3).cp-display.brxe-heading { letter-spacing: -.02em; line-height: 1.04; }
:is(h1, h2, h3).cp-display--coupon.brxe-heading { font-size: clamp(30px, 3.2vw, 48px); }

/* ---------- Papier: Andrucke liegen flach auf dem Tisch ----------
   03.12.2026 Humberto: Stapelschatten (versetzte Bögen mit Kontur) »nicht besonders hübsch«.
   Jetzt ein Bogen mit weichem, geschichtetem Schatten; beim Zeigen hebt er sich 2 px. */
.cp-andruck {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .04),
    0 1px 2px rgba(0, 0, 0, .05),
    0 6px 12px -6px rgba(0, 0, 0, .08),
    0 18px 28px -18px rgba(0, 0, 0, .14);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s cubic-bezier(.2, .7, .2, 1);
}
.cp-andruck:hover {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .04),
    0 2px 4px rgba(0, 0, 0, .05),
    0 12px 20px -10px rgba(0, 0, 0, .12),
    0 28px 40px -24px rgba(0, 0, 0, .20);
}
a.cp-andruck:not(.cp-neigen):hover, .cp-andruck:not(.cp-neigen):has(> a):hover { transform: translateY(-2px); }

/* Druckbogen (Laden, Abschlussarbeiten): derselbe Bogen, etwas mehr Abstand zum Tisch */
.cp-bogen:not(.vh-text) {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .04),
    0 2px 4px rgba(0, 0, 0, .04),
    0 24px 48px -28px rgba(0, 0, 0, .22);
}

/* ---------- Glas: Bild füllt die Kachel, Text liegt auf Milchglas ---------- */
.cp-glas {
  position: relative !important;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  padding: 14px !important;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
}
.cp-glas > img,
.cp-glas > figure {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0 !important;
  aspect-ratio: auto !important;
  object-fit: cover;
  z-index: -1;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.cp-glas > figure img { width: 100%; height: 100%; object-fit: cover; }
.cp-glas:hover > img,
.cp-glas:hover > figure { transform: scale(1.03); }
.cp-glas > :not(img):not(figure) {
  position: relative;
  margin: 0 !important;
  padding: 0 20px;
  color: var(--cp-k, #1d1d1b);
  background: rgba(250, 250, 248, .66);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .7);
}
.cp-glas > :not(img):not(figure):nth-child(2) { padding-top: 16px; border-bottom: 0; }
.cp-glas > :not(img):not(figure):last-child { padding-bottom: 16px; padding-top: 6px; border-top: 0; }
.cp-glas--dunkel > :not(img):not(figure) {
  color: #fff;
  background: rgba(12, 12, 12, .42);
  border-color: rgba(255, 255, 255, .16);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cp-glas > :not(img):not(figure) { background: rgba(250, 250, 248, .94); }
  .cp-glas--dunkel > :not(img):not(figure) { background: rgba(12, 12, 12, .86); }
}
.cp-werkstatt .cp-glas { min-height: 440px; }
@media (max-width: 767px) {
  .cp-glas, .cp-werkstatt .cp-glas { min-height: 320px; }
}

/* Bento: große Kachel in Bildrastern (Bild-Elemente haben in Bricks keine Grid-Spanne) */
.cp-bento-gross { grid-column: span 2; grid-row: span 2; }

/* ---------- Upload: Coupon als weißer Gutschein auf Magenta ----------
   03.12.2026 Humberto: »der zentrale CTA ist weit weg von schön«. Vorher Glasplatte (Magenta auf Magenta,
   dunkle Balken, kleiner Knopf). Jetzt: weißes Papier mit gestrichelter Schnittlinie rundherum,
   die drei Schritte als Formularzeilen mit Farbmarke C/M/Y, großer Magenta-Knopf über die ganze Spalte.
   Selektoren mit .cp-sektion davor, damit sie die Bricks-Klassen (eine Klasse) sicher überstimmen. */
.cp-sektion .cp-coupon {
  background: var(--cp-papier, #fff) !important;
  color: var(--cp-k, #1d1d1b);
  border: 0;
  outline: 2px dashed rgba(255, 255, 255, .85);
  outline-offset: 12px;
  box-shadow: 0 2px 4px rgba(70, 0, 35, .12), 0 40px 70px -40px rgba(70, 0, 35, .55);
}
.cp-sektion .cp-coupon-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 2px dashed rgba(29, 29, 27, .22);
}
.cp-sektion .cp-coupon :is(h2, h3) { color: var(--cp-k, #1d1d1b); }
.cp-sektion .cp-coupon .cp-lead { color: var(--cp-grau, #575756); max-width: 30em; }
.cp-sektion .cp-coupon-rechts { gap: 0; }
.cp-sektion .cp-coupon-feld {
  background: none;
  min-height: 64px;
  padding: 12px 0 12px 20px;
  border-bottom: 1px solid rgba(29, 29, 27, .14);
  box-shadow: inset 6px 0 0 var(--cp-c, #00a0e3);
  gap: 16px;
  color: var(--cp-k, #1d1d1b);
}
.cp-sektion .cp-coupon-feld:first-child { border-top: 1px solid rgba(29, 29, 27, .14); }
.cp-sektion .cp-coupon-feld:nth-child(2) { box-shadow: inset 6px 0 0 var(--cp-m, #e6007e); }
.cp-sektion .cp-coupon-feld:nth-child(3) { box-shadow: inset 6px 0 0 var(--cp-y, #ffed00); }
.cp-sektion .cp-coupon-feld > strong { font-size: 17px; white-space: nowrap; }
.cp-sektion .cp-coupon-feld > span { color: var(--cp-grau, #575756); text-align: right; }
.cp-sektion .cp-coupon .cp-knopfzeile { margin-top: 32px; }
.cp-sektion .cp-coupon .cp-knopfzeile > .cp-knopf {
  flex: 1 1 100%;
  min-height: 60px;
  gap: 12px;
  background-color: var(--cp-m, #e6007e);
  color: #fff;
  font-size: 19px; /* ab 18,66 px fett gilt Weiß auf Magenta als großer Text (AA 3:1) */
  transition: background-color .2s, transform .2s cubic-bezier(.2, .7, .2, 1);
}
.cp-sektion .cp-coupon .cp-knopfzeile > .cp-knopf::after {
  content: "";
  flex: none;
  width: 20px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Cpath d='M0 6h16.2L11.6 1.4 13 0l7 7-7 7-1.4-1.4L16.2 8H0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Cpath d='M0 6h16.2L11.6 1.4 13 0l7 7-7 7-1.4-1.4L16.2 8H0z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s cubic-bezier(.2, .7, .2, 1);
}
.cp-sektion .cp-coupon .cp-knopfzeile > .cp-knopf:hover { background-color: var(--cp-k, #1d1d1b); }
.cp-sektion .cp-coupon .cp-knopfzeile > .cp-knopf:hover::after { transform: translateX(4px); }
.cp-sektion .cp-coupon .cp-knopfzeile > .cp-knopf:active { transform: translateY(1px); }
.cp-sektion .cp-coupon .cp-coupon-ablage { border-color: rgba(29, 29, 27, .35); }
@media (max-width: 991px) {
  .cp-sektion .cp-coupon-links { border-right: 0; border-bottom: 2px dashed rgba(29, 29, 27, .22); }
}
@media (max-width: 767px) {
  .cp-sektion .cp-coupon { outline-offset: 8px; }
  .cp-sektion .cp-coupon-feld { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
  .cp-sektion .cp-coupon-feld > span { text-align: left; }
}

/* ---------- Laden: Live-Status aus den Öffnungszeiten ---------- */
.cp-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
  padding: 10px 16px;
  background: var(--cp-k, #1d1d1b);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
}
.cp-status[hidden] { display: none; }
.cp-status::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: #2fd36f;
  animation: cp-puls 2.4s ease-out infinite;
}
.cp-status[data-zu]::before { background: #8a8a88; animation: none; }
@keyframes cp-puls {
  0% { box-shadow: 0 0 0 0 rgba(47, 211, 111, .55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(47, 211, 111, 0); }
}

/* ---------- Neigung (DepthCard aus React Bits, ohne React) ---------- */
.cp-neigen { transform-style: preserve-3d; will-change: transform; }

/* ---------- Druckweg (Ablauf): Linie läuft durch die Ziffern, jede Ziffer wird angedruckt ----------
   Zustände setzt cityprint-a.js nur ohne »Bewegung reduzieren«; ohne Script bleibt alles stehen. */
#brxe-nfu5ey { position: relative; }
#brxe-nfu5ey > .cp-druckweg {
  position: absolute;
  z-index: 0;
  background: var(--cp-k, #1d1d1b);
  transform-origin: 0 0;
  pointer-events: none;
}
#brxe-nfu5ey > div > :first-child { position: relative; z-index: 1; }
.cp-weg-wartet > .cp-druckweg[data-richtung="quer"] { transform: scaleX(0); }
.cp-weg-wartet > div > :first-child { clip-path: inset(0 100% 0 0); }
.cp-weg-laeuft > .cp-druckweg { transform: none; transition: transform var(--cp-weg-zeit, 1.6s) linear; }
.cp-weg-laeuft > div > :first-child { clip-path: inset(0); transition: clip-path .45s cubic-bezier(.2, .7, .2, 1); }
/* schmal: Linie wächst mit dem Scrollen (scaleY setzt das Script), Feld druckt an, sobald die Linie es erreicht */
.cp-weg-hoch > .cp-druckweg { transform: scaleY(0); transition: transform .12s linear; }
.cp-weg-hoch > div > :first-child { clip-path: inset(0 0 100% 0); transition: clip-path .45s cubic-bezier(.2, .7, .2, 1); }
.cp-weg-hoch > div > .cp-an { clip-path: inset(0); }

/* ---------- DIN-Halbierung (Druckdaten): A1 bis A6 wachsen nacheinander aus der Ecke ---------- */
.cp-din-wartet > [class*="cp-din-a"] { clip-path: inset(100% 100% -4px -4px); }
.cp-din-laeuft > [class*="cp-din-a"] { clip-path: inset(-4px); transition: clip-path .7s cubic-bezier(.2, .7, .2, 1); }

/* ---------- Rasterwelle (Upload): Rasterpunkte auf Magenta, eine Welle läuft einmal durch ---------- */
#upload { position: relative; isolation: isolate; }
#upload > .cp-raster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .cp-andruck:hover { transform: none !important; }
  .cp-andruck, .cp-glas > img, .cp-glas > figure { transition: none; }
  .cp-glas:hover > img, .cp-glas:hover > figure { transform: none; }
  .cp-status::before { animation: none; }
}

/* Mobiles Menü (03.12.2026): weißes Band oben bleibt stehen, X bleibt sichtbar, wenn das Menü scrollt */
@media (max-width: 767px) {
  #brx-header .brxe-nav-nested.brx-open .brx-nav-nested-items::before {
    content: "";
    position: fixed;
    top: var(--wp-admin--admin-bar--height, 0px);
    left: 0;
    right: 0;
    height: 80px;
    background: #fff;
    border-bottom: 1px solid rgba(29, 29, 27, .08);
    z-index: 2;
    pointer-events: none;
  }
  #brx-header .brx-nav-nested-items .brxe-toggle {
    position: fixed !important;
    top: calc(var(--wp-admin--admin-bar--height, 0px) + 18px) !important;
    right: 10px !important;
    z-index: 3;
  }
}

/* Produktseite (03.12.2026) */
#brxe-7f5755.cp-leiste-bilder li { opacity: .6; transition: opacity .2s ease; }
#brxe-7f5755.cp-leiste-bilder li:hover,
#brxe-7f5755.cp-leiste-bilder li.is-aktiv { opacity: 1; }
#brxe-7f5755.cp-leiste-bilder li.is-aktiv figure { outline: 2px solid var(--cp-k, #1d1d1b); outline-offset: 2px; }
#brxe-7f5755.cp-leiste-bilder img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; height: auto; }
#brxe-77d75d .accordion-title-wrapper .brxe-icon { transition: transform .2s ease; }
#brxe-77d75d .brx-open .accordion-title-wrapper .brxe-icon { transform: rotate(45deg); }
#brxe-77d75d .accordion-title-wrapper:hover .brxe-heading { color: var(--cp-m, #e6007e); }
#upload .brxe-brf-pro-forms .brxe-heading { text-align: left !important; }
#upload .brxe-brf-pro-forms button { border-radius: 0 !important; text-transform: none !important; letter-spacing: 0 !important; }
#brxe-qnhayc, #brxe-mndodp { align-items: flex-start !important; }
#brxe-mndodp { border: 0 !important; padding: 0 !important; gap: 6px; }
#brxe-mndodp .brxe-brf-pro-forms-field-file, #brxe-mndodp > div:last-child { width: 100%; margin-top: 12px; }
@media (max-width: 767px) {
  #brxe-kkm0gu > a { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  #brxe-77d75d .accordion-title-wrapper .brxe-icon, #brxe-7f5755.cp-leiste-bilder li { transition: none; }
}
