/* ============================================================
   Vorteq AI Bespoke — public-site stylesheet.
   The 1:1 visual port of the v2 marketing site (website-v2
   src/app/globals.css) onto the WordPress section DOM contract
   the shared vorteq-editor plugin renders (hero / trust-bar /
   section--tint / section--dark / cards / cta-banner + the
   parts/ chrome). Two brand colours are the only colour
   decision; every other colour derives from them via oklch
   relative colour (color-mix fallbacks for older engines, the
   @supports block computes the real values). v2's gold
   "Goldschnitt" veredelung — gradient, hairlines, glow, lens
   clip-paths, marquee, scroll-reveal — is reproduced on top.
   Fonts: Fraunces (display) + Outfit (body), self-hosted.
   ============================================================ */

/* ---- Webfonts (files live in assets/fonts/, paths relative to this file).
        Fraunces ships as one variable font with the full wght axis (100–900)
        plus the opsz/SOFT/WONK axes the headings drive via font-variation-settings,
        so the editor heading-weight presets (leicht 500 / standard 400 / kräftig 800)
        each map onto a distinct rendered weight; Outfit ships at five static weights.
        font-display:swap + a real fallback stack so text paints immediately. ---- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/outfit-300.woff2?v=2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/outfit-400.woff2?v=2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/outfit-500.woff2?v=2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/outfit-600.woff2?v=2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/outfit-700.woff2?v=2") format("woff2");
}

/* ---- Editor 'klassisch' preset faces: Lora (display) + Inter (body), self-hosted
        local woff2 (SIL OFL, latin+latin-ext incl. ä ö ü ß + €; DSGVO: no CDN). Only
        loaded when the customer picks the 'klassisch' font preset. ---- */
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lora-400.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/lora-500.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/lora-600.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/lora-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/inter-300.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-700.woff2") format("woff2");
}

:root {
  /* ============================================================
     THEME — the two brand colours are the only colour decision.
     Wired to the WordPress global-style presets (the editor's
     style-vars override sets --wp--preset--color--main/secondary
     and --radius live); the literals are the canonical v2 values
     and the fallbacks when those presets are unset.
     ============================================================ */
  --color-main: var(--wp--preset--color--main, #111526);          /* Nachtblau — Bühne */
  --color-secondary: var(--wp--preset--color--secondary, #e8a743); /* Gold — Akzent */
  --radius: var(--wp--custom--radius, 18px);                      /* shape knob */
  --section-pad: clamp(4.5rem, 9vw, 7rem);                        /* v2 vertical rhythm */
  /* ============================================================ */

  /* Typeface faces resolved by the @font-face blocks above. */
  --font-display-face: "Fraunces";
  --font-body-face: "Outfit";
  /* The editor's font preset sets --wp--preset--font-family--display/body (each a full
     local-woff2 stack with system fallbacks); read it first so a preset takes effect, and
     fall back to the theme's own face when no preset is set ('standard'). */
  --font-display: var(--wp--preset--font-family--display, var(--font-display-face), "Iowan Old Style", Palatino, Georgia, "Times New Roman", serif);
  --font-body: var(--wp--preset--font-family--body, var(--font-body-face), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);

  /* ============================================================
     DERIVED — never edit; auto-adapts to the two knobs above.
     color-mix fallbacks first; the @supports block computes the
     real oklch relative-colour values where the engine supports
     it. Static hex fallbacks equal the v2 spec palette so the
     identity is correct even without color-mix.
     ============================================================ */

  /* ---------- Blau-Welt ---------- */
  --color-main-dark: color-mix(in oklab, var(--color-main) 76%, black);    /* #0a0e1a — Footer/tiefste Bühne */
  --color-main-soft: color-mix(in oklab, var(--color-main) 90%, white);    /* #1e2644 — Karten auf dunkel */
  --color-main-raised: color-mix(in oklab, var(--color-main) 80%, white);  /* #1a1f3a — erhabene Flächen */
  --line-gold: color-mix(in srgb, var(--color-secondary) 16%, transparent);
  --line-gold-strong: color-mix(in srgb, var(--color-secondary) 42%, transparent);

  /* ---------- Gold-Veredelung ---------- */
  --accent: var(--color-secondary);
  --accent-soft: color-mix(in oklab, var(--color-secondary) 72%, white);        /* #f2d4a8 */
  --accent-champagne: color-mix(in oklab, var(--color-secondary) 42%, white);   /* #ead5b5 */
  /* Small-gold-on-light token. v2's 76% mix renders ~#ab6e00 on white
     (4.05–4.23:1, below 4.5) for small eyebrow/CTA text; darkened to 84% so
     all small gold text clears 4.5:1 (large gold ≥24px uses --accent and still
     passes 3:1). */
  --accent-deep: color-mix(in oklab, var(--color-secondary) 64%, black);        /* ~#7a5b2c, ≥5:1 on paper/white */
  --grad-accent: linear-gradient(
    112deg,
    var(--accent-champagne) 0%,
    var(--accent) 42%,
    var(--accent-deep) 78%,
    var(--accent-soft) 100%
  );
  --on-accent: #1a1206;

  /* ---------- Papier-Welt (Temperatur vom GOLD) ---------- */
  --paper: color-mix(in oklab, var(--color-secondary) 5%, white);          /* #fefbf8 */
  --paper-deep: color-mix(in oklab, var(--color-secondary) 11%, white);    /* #fdf7f0 */
  --paper-line: color-mix(in srgb, var(--color-main) 12%, transparent);
  --ink: color-mix(in oklab, var(--color-main) 88%, black);                /* #1a1a17 */
  /* WCAG: v2's ink-soft (main 52% white ≈ #8a8680) only reaches 3.5:1 on
     --paper, below 4.5:1. Darkened to ~5.1:1; the oklch form clamps the
     lightness ceiling so any brand hue stays legible as muted body text. */
  --ink-soft: #6f6b64;

  /* ---------- Text auf dunkel ---------- */
  --cream-text: color-mix(in oklab, white 90%, var(--color-secondary));    /* #f0e8dd */
  --cream-dim: color-mix(in oklab, var(--color-main) 36%, white);          /* #b8a89d */

  /* ---------- Funktional ---------- */
  --color-danger: #b42318;
  --color-surface: #ffffff;

  /* ---------- Typo-Skala (v2) ---------- */
  --text-display: clamp(2.5rem, 1.6rem + 3.4vw, 4.2rem);
  --text-h1: clamp(2.1rem, 1.7rem + 1.7vw, 3.4rem);
  --text-h2: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem);
  --text-h3: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem);
  --leading-display: 1.08;
  --leading-h1: 1.08;
  --leading-h2: 1.14;
  --leading-h3: 1.22;
  --text-body: 1.0325rem;
  --leading-body: 1.65;
  --text-small: 0.875rem;
  --leading-small: 1.55;
  --text-eyebrow: 0.74rem;
  --tracking-eyebrow: 0.32em;

  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  /* Default heading weight ('standard' = no editor override). Matches the editor's
     standard step so "Standard" and an explicit standard render identically; sits
     between leicht 400 and kräftig 700 as a clearly distinct middle step. */
  --weight-heading: 550;

  /* ---------- Layout / Motion / Schatten ---------- */
  --container-max: 73.75rem;
  --container-pad: clamp(1.25rem, 3vw, 1.75rem);
  --radius-pill: 999px;
  --ease-lux: cubic-bezier(0.22, 0.68, 0.16, 1);
  --motion-reveal: 0.85s;
  --motion-hover: 0.45s;
  --motion-card: 0.6s;
  --shadow-deep: 0 30px 60px -18px color-mix(in srgb, var(--color-main-dark) 75%, transparent);
  --shadow-paper: 0 24px 48px -20px color-mix(in srgb, var(--ink) 22%, transparent);
}

@supports (color: oklch(from red calc((0.7 - l) * infinity) 0 h)) {
  :root {
    /* True oklch derivations from the two knobs. Lightness ceilings keep
       muted text legible; the ink-soft ceiling (0.5) holds ≥4.5:1 on paper. */
    --color-main-dark: oklch(from var(--color-main) calc(l * 0.76) c h);
    --color-main-soft: oklch(from var(--color-main) calc(l + (1 - l) * 0.10) c h);
    --color-main-raised: oklch(from var(--color-main) calc(l + (1 - l) * 0.20) c h);
    --accent-soft: oklch(from var(--color-secondary) calc(l + (1 - l) * 0.72) c h);
    --accent-champagne: oklch(from var(--color-secondary) calc(l + (1 - l) * 0.42) c h);
    --accent-deep: oklch(from var(--color-secondary) calc(l * 0.62) min(c, 0.1) h);
    --paper: oklch(from var(--color-secondary) 0.985 min(c, 0.012) h);
    --paper-deep: oklch(from var(--color-secondary) 0.97 min(c, 0.02) h);
    --ink: oklch(from var(--color-main) 0.2 min(c, 0.02) h);
    --ink-soft: oklch(from var(--color-main) min(l, 0.5) min(c, 0.02) h);
    --cream-text: oklch(from var(--color-secondary) 0.93 min(c, 0.02) h);
    --cream-dim: oklch(from var(--color-main) 0.74 min(c, 0.025) h);
    --on-accent: oklch(from var(--color-secondary) 0.18 c h);
  }
}

/* ============================================================
   RESET / BASE — v2
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: auto;
  scroll-padding-top: 6rem;
  background: var(--color-main);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--color-main);
  color: var(--cream-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-light);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--color-main);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--motion-hover) var(--ease-lux);
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
.serif {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 55, "WONK" 0;
  font-weight: var(--weight-heading);
  line-height: var(--leading-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* v2 owner decision: animations always run. Honour reduced-motion only by
   killing the scroll-reveal hold (content must never stay invisible). */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rv {
    opacity: 1 !important;
    transform: none !important;
  }
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* WordPress flow: each .section owns its rhythm via padding; suppress the
   block-gap between structural blocks and sibling sections so no tone seam
   shows where two backgrounds meet. */
.wp-site-blocks > *,
.wp-block-post-content > *,
main.wp-block-group > * {
  margin-block: 0;
}

/* ============================================================
   GOLD-ORNAMENTE
   ============================================================ */
.hairline {
  height: 1px;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent) 18%,
    var(--accent-champagne) 50%,
    var(--accent) 82%,
    transparent
  );
  opacity: 0.38;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

/* On light surfaces the gold deepens for contrast (accent-deep ≥4.5:1 on paper). */
.section--light .eyebrow,
.section--tint .eyebrow {
  color: var(--accent-deep);
}

.section--light .eyebrow::before,
.section--tint .eyebrow::before {
  background: linear-gradient(90deg, transparent, var(--accent-deep));
}

/* ============================================================
   SEKTIONS-GERÜST
   ============================================================ */
section {
  position: relative;
}

.section {
  padding-block: var(--section-pad);
  background: var(--color-main);
  color: var(--cream-text);
}

.section--light {
  background: var(--paper);
  color: var(--ink);
}

/* v2 tint = the paper world with a radial gold accent overlay. The plugin
   emits .section--tint on light-world sections (services, area-dual, cities). */
.section--tint {
  background:
    radial-gradient(900px 500px at 50% 0, color-mix(in srgb, var(--accent) 7%, transparent), transparent 65%),
    var(--paper);
  color: var(--ink);
}

.section--dark {
  background: var(--color-main);
  color: var(--cream-text);
}

/* /bestellen checkout is a LIGHT page: admin/checkout.css paints .veq-checkout
   on paper with dark ink hero text, but the base .section (dark --color-main) can
   win the cascade depending on stylesheet order, leaving the h1 + intro dark-on-dark.
   Re-assert the paper world here (higher specificity than .section) so the hero
   stays readable regardless of load order. */
.section.veq-checkout {
  background: var(--paper);
  color: var(--ink);
}

.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4,
.section--tint h1,
.section--tint h2,
.section--tint h3,
.section--tint h4 {
  color: var(--ink);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--paper);
}

.section-head {
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: clamp(3rem, 6vw, 4.4rem);
  text-align: center;
}

.section-head .eyebrow {
  justify-content: center;
  margin-bottom: 22px;
}

.section-head .eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section--light .section-head .eyebrow::after,
.section--tint .section-head .eyebrow::after {
  background: linear-gradient(90deg, var(--accent-deep), transparent);
}

.section-head h2 {
  font-size: var(--text-h2);
  font-variation-settings: "SOFT" 60;
}

/* Brand lockup above a section heading (the contact-form heading). */
.section-head__logo {
  justify-content: center;
  margin-bottom: 1.25rem;
}

.section-head__logo .brand-mark {
  height: 2.4rem;
}

.section-head__logo .brand-wordmark-text {
  font-size: 1.5rem;
}

.section-head .lead,
.section-head p {
  margin-top: 18px;
  font-size: 1.04rem;
}

.section--dark .lead,
.section--dark .section-head p {
  color: var(--cream-dim);
}

.section--light .lead,
.section--light .section-head p,
.section--tint .lead,
.section--tint .section-head p {
  color: var(--ink-soft);
}

.lead {
  max-width: 42rem;
  margin-inline: auto;
}

.em-gold,
.gold-text {
  font-style: italic;
  font-variation-settings: "SOFT" 90, "WONK" 1;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0.04em 0.18em 0.04em 0;
  margin-right: -0.14em;
}

/* Scroll-Reveal (getragen): 0.85s riseIn, opacity 0→1 + translateY 34px→0.
   .rv toggled to .in / [data-visible] by the editor's IntersectionObserver. */
.rv {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity var(--motion-reveal) var(--ease-lux),
    transform var(--motion-reveal) var(--ease-lux);
}

.rv.in,
.rv[data-visible="true"] {
  opacity: 1;
  transform: none;
}

.rv-d1 {
  transition-delay: 0.12s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================================
   BUTTONS — v2 (.btn--gold ← .btn--primary, .btn--ghost ← .btn--secondary)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  transition: transform var(--motion-hover) var(--ease-lux),
    box-shadow var(--motion-hover) var(--ease-lux),
    background var(--motion-hover) var(--ease-lux),
    background-position var(--motion-hover) var(--ease-lux),
    color var(--motion-hover) var(--ease-lux),
    border-color var(--motion-hover) var(--ease-lux);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* primary = v2 gold gradient pill */
.btn--primary {
  background: var(--grad-accent);
  background-size: 160% 160%;
  background-position: 0 0;
  color: var(--on-accent);
  border-color: transparent;
  box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--accent) 55%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background-position: 100% 100%;
  color: var(--on-accent);
  box-shadow: 0 16px 36px -10px color-mix(in srgb, var(--accent) 65%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn--primary:active {
  transform: translateY(0);
}

/* secondary = v2 ghost. On the dark stage it carries the gold hairline; on
   light surfaces it inverts to a deep-gold outline so it stays legible. */
.btn--secondary {
  border: 1px solid var(--line-gold);
  color: var(--cream-text);
  background: color-mix(in srgb, var(--accent-champagne) 3%, transparent);
}

.btn--secondary:hover {
  transform: translateY(-2px);
  border-color: var(--line-gold-strong);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--cream-text);
}

.section--light .btn--secondary,
.section--tint .btn--secondary {
  border-color: var(--line-gold-strong);
  color: var(--accent-deep);
  background: transparent;
}

.section--light .btn--secondary:hover,
.section--tint .btn--secondary:hover {
  border-color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent-deep);
}

/* arrow CTA (about, gallery) — v2 .btn .arr translateX on hover */
.btn--arrow::after {
  content: "\2192";
  font-weight: var(--weight-bold);
  transition: transform var(--motion-hover) var(--ease-lux);
}

.btn--arrow:hover::after {
  transform: translateX(4px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* Card / inline CTA — gold underline-expand link + arrow nudge */
.card-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  color: var(--accent);
  font-weight: var(--weight-medium);
  padding-bottom: 2px;
}

.section--light .card-cta,
.section--tint .card-cta {
  color: var(--accent-deep);
}

.card-cta::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width 0.35s var(--ease-lux);
}

.card-cta::after {
  content: "\2192";
  color: inherit;
  font-weight: var(--weight-bold);
  transition: transform var(--motion-hover) var(--ease-lux);
}

.card-cta:hover::before {
  width: 100%;
}

.card-cta:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   BRAND LOCKUP — the real banner logo: a gold-gradient "V" mark
   (inline SVG, navy tile) + the "VorteQ" wordmark in the
   display face. Rendered inline so it uses the loaded Fraunces
   font and the theme colours; scales via the mark/word sizes.
   ============================================================ */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream-text);
}

.brand-mark {
  flex: none;
  display: inline-flex;
  line-height: 0;
}

.brand-mark svg {
  display: block;
  height: 100%;
  width: auto;
}

.brand-wordmark-text {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: 1.32rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--cream-text);
  white-space: nowrap;
}

.brand-wordmark-text__accent {
  color: var(--accent);
}

/* ============================================================
   BRAND WORDMARK (text fallback for themes without logo masks)
   ============================================================ */
.brand-wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--cream-text);
}

.brand-wordmark--wide {
  font-size: 1.22rem;
}

.brand-wordmark--square {
  aspect-ratio: 1;
  justify-content: center;
  padding: 0.35em;
  border-radius: 0.4em;
  background: linear-gradient(150deg, var(--color-main-soft), var(--color-main-dark));
  border: 1px solid var(--line-gold-strong);
  color: var(--accent-soft);
}

/* ============================================================
   TOP-BANNER (parts/header.html .site-topbar) — dark lockup bar:
   the brand wordmark centred. No tagline, no CTA (the header's
   button sits directly below).
   ============================================================ */
.site-topbar {
  background: var(--color-main-dark);
  border-bottom: 1px solid var(--line-gold);
}

.site-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-block: clamp(8px, 1.2vw, 14px);
}

.site-topbar__logo .brand-mark {
  height: clamp(2rem, 3.4vw, 2.6rem);
}

.site-topbar__logo .brand-wordmark-text {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
}

/* ============================================================
   HEADER — sticky, transparent → blur on scroll, gold lensline
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-main-dark) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-gold);
  transition: background 0.4s var(--ease-lux), border-color 0.4s, box-shadow 0.4s var(--ease-lux);
}

/* Popped out: once scrolled past the topbar the header pins fixed at the very
   top (native sticky is defeated by body{overflow-x:hidden}) and densifies +
   lifts off the page, sliding down via the reveal animation. */
.site-header.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: color-mix(in srgb, var(--color-main-dark) 97%, transparent);
  border-color: var(--line-gold-strong);
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--color-main-dark) 90%, transparent);
  animation: header-reveal 0.4s var(--ease-lux);
}

@keyframes header-reveal {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Gold lensline: a sharp diamond clip-path swells to the centre and tapers
   to hairline at the corners — v2's header signature. */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-deep),
    var(--accent) 30%,
    var(--accent-champagne) 50%,
    var(--accent) 70%,
    var(--accent-deep)
  );
  clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%);
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}

/* The banner logo sits far-left, next to the nav. */
.site-header__brand {
  flex: none;
}

.site-header__brand .brand-mark {
  height: 2rem;
  transition: opacity 0.4s var(--ease-lux);
}

/* No header doubling, no wordmark jump: the nav row carries ONLY the gold V mark in
   both states (the centred topbar owns the full wordmark), so the nav-row wordmark
   text never reveals on scroll. At the top the topbar's own V is right above this one,
   so the nav-row V is held invisible via OPACITY (not display) — its 2rem slot stays
   reserved, so the nav items never shift. Once the header pops out and pins (.is-stuck,
   past the topbar where the topbar V has scrolled away) the same V fades smoothly in. */
.site-header__brand .brand-wordmark-text {
  display: none;
}

.site-header:not(.is-stuck) .site-header__brand .brand-mark {
  opacity: 0;
  visibility: hidden;
}

/* On the busiest desktop widths tighten the nav + drop the phone so it never wraps;
   the gold V mark still carries the brand. */
@media (max-width: 1340px) and (min-width: 921px) {
  .site-nav {
    gap: 22px;
  }
  .site-header__phone {
    display: none;
  }
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  font-size: 1.05rem;
  font-weight: var(--weight-regular);
  color: var(--cream-dim);
  white-space: nowrap;
  transition: color 0.35s;
}

/* 0.35s gold underline expand, width 0→100% */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width var(--motion-hover) var(--ease-lux);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--cream-text);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  width: 100%;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header__phone {
  display: inline-flex;
  align-items: center;
  color: var(--accent-champagne);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

.site-header__phone:hover {
  color: var(--accent-soft);
}

.site-header__cta.btn--primary {
  padding: 11px 24px;
  font-size: 0.88rem;
}

/* Mobile burger (checkbox toggle from header.html) */
.site-burger {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line-gold-strong);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-main-dark) 55%, transparent);
}

.site-burger span,
.site-burger span::before,
.site-burger span::after {
  display: block;
  width: 24px;
  height: 1.5px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  content: "";
  position: relative;
  transition: transform var(--motion-hover) var(--ease-lux), opacity 0.35s;
}

.site-burger span::before {
  position: absolute;
  top: -6px;
}

.site-burger span::after {
  position: absolute;
  top: 6px;
}

.site-nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 920px) {
  .site-burger {
    display: grid;
    order: 3;
  }
  .site-header__inner {
    position: relative;
  }
  .site-header__brand {
    order: 1;
  }
  .site-header__actions {
    order: 2;
    margin-left: auto;
  }
  .site-header__phone {
    display: none;
  }
  .site-header__cta.btn--primary {
    padding: 9px 18px;
    font-size: 0.82rem;
  }
  .site-nav {
    order: 4;
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--container-pad) 1rem;
    background: color-mix(in srgb, var(--color-main-dark) 97%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-gold);
  }
  .site-nav-toggle:checked ~ .site-nav {
    display: flex;
  }
  .site-nav a {
    min-height: 2.75rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
  }
}

/* ============================================================
   HERO — copy on the left, a framed portrait on the right
   (no background-fill crop, no inquiry form). Sub-pages with no
   image render the copy centred, full width.
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(4rem, 9vw, 7rem);
  margin-top: -78px;
  padding-top: calc(clamp(4rem, 9vw, 7rem) + 78px);
  display: grid;
  align-content: center;
  background:
    radial-gradient(820px 540px at 14% 32%, rgba(63, 80, 160, 0.2), transparent 62%),
    radial-gradient(640px 460px at 92% 8%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 64%),
    var(--color-main);
  color: var(--cream-text);
}

/* Goldstaub noise over the navy stage. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .85 0 0 0 0 .55 0 0 0 .03 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__grid {
  position: relative;
  z-index: 4;
}

.hero--split .hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

/* Copy runs left (toward the headline edge); the portrait balances it on the right. */
.hero__copy {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  text-align: left;
}

.hero__copy .eyebrow {
  color: var(--accent);
}

.hero h1 {
  font-size: var(--text-display);
  font-variation-settings: "SOFT" 65, "WONK" 0;
  line-height: var(--leading-display);
  color: var(--paper);
}

.hero__copy p {
  margin: 0;
  max-width: 34rem;
  font-size: 1.06rem;
  font-weight: var(--weight-light);
  color: var(--cream-dim);
}

.hero__copy .btn-row {
  justify-content: flex-start;
}

/* Framed founder portrait — a tasteful gold-edged card, not a full-bleed crop.
   Square-ish so a studio portrait reads cleanly; navy mat + gold rim + glow. */
.hero__portrait {
  position: relative;
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 26rem;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--line-gold-strong);
  background: linear-gradient(165deg, var(--color-main-soft), var(--color-main-dark));
  box-shadow: var(--shadow-deep),
    0 0 0 6px color-mix(in srgb, var(--accent) 8%, transparent);
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}

/* A soft navy floor + faint gold top-rim fuse the photo into the frame. */
.hero__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    linear-gradient(180deg, transparent 62%, color-mix(in srgb, var(--color-main-dark) 55%, transparent) 100%);
}

/* Page hero (pageHero) — no image/form, copy centred. */
.hero--page {
  padding-block: clamp(3.25rem, 7vw, 5.5rem);
  text-align: center;
}

.hero__copy--center {
  justify-items: center;
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
}

.hero__copy--center p {
  margin-inline: auto;
}

.hero__pricenote {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line-gold-strong);
  border-radius: var(--radius-pill);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
  color: var(--accent-soft) !important;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

/* ============================================================
   CHAT-DOCK FORM (parts/footer.html .hero-form*) — the floating
   "Schreiben Sie uns" panel. (The hero no longer carries a form;
   these rules now belong to the chat dock alone.)
   ============================================================ */
.hero-form {
  display: grid;
  gap: 0.75rem;
  color: var(--cream-text);
  background: linear-gradient(175deg, var(--color-main-soft), var(--color-main));
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
  box-shadow: var(--shadow-deep);
}

.hero-form__head {
  display: grid;
  gap: 0.35rem;
}

.hero-form__brandrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hero-form__logo {
  flex: none;
  height: calc(2 * var(--text-h3) * var(--leading-h3));
  width: auto;
  aspect-ratio: 1 / 1;
}

.hero-form__head h2 {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  color: var(--cream-text);
}

.hero-form__head p {
  margin: 0;
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: var(--cream-dim);
}

.hero-form__form {
  display: grid;
  gap: 0.6rem;
}

.hero-form__input {
  width: 100%;
  border: 1px solid var(--line-gold-strong);
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-main-dark) 45%, transparent);
  color: var(--cream-text);
  padding: 12px 15px;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

textarea.hero-form__input {
  min-height: 2.75rem;
  resize: none;
  overflow: hidden;
}

.hero-form__input::placeholder {
  color: var(--cream-dim);
  opacity: 1;
}

.hero-form__input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-secondary) 22%, transparent);
}

.hero-form__form .btn {
  margin-top: 0.2rem;
  width: 100%;
}

/* Chat-dock lead fieldsets (Wunschfarben + Rückkanäle) — compact, on-dark. */
.hero-form__sub {
  margin: 0;
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: var(--cream-dim);
}

.chat-dock__colors,
.chat-dock__channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line-gold);
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-main-dark) 30%, transparent);
}

.chat-dock__colors legend,
.chat-dock__channels legend {
  width: 100%;
  padding: 0;
  margin-bottom: 0.15rem;
  font-size: var(--text-small);
  color: var(--cream-dim);
}

.chat-dock__colors label,
.chat-dock__channels label,
.chat-dock__color {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--cream-text);
}

.chat-dock__colors input[type="color"] {
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 1px solid var(--line-gold-strong);
  border-radius: 7px;
  background: none;
  cursor: pointer;
}

.chat-dock__colors input[type="checkbox"],
.chat-dock__channels input[type="checkbox"] {
  accent-color: var(--color-secondary);
}

.form-privacy {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: var(--cream-dim);
}

.form-privacy p {
  margin: 0;
}

.form-privacy a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Honeypot parked off-screen */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 0;
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: #f0b9b9;
}

@media (max-width: 980px) {
  /* Stack cleanly: copy first, then a compact centred portrait below. */
  .hero--split .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .hero__copy {
    justify-items: center;
    text-align: center;
  }
  .hero__copy p {
    margin-inline: auto;
  }
  .hero__copy .btn-row {
    justify-content: center;
  }
  .hero__portrait {
    justify-self: center;
    max-width: 20rem;
    aspect-ratio: 1 / 1;
  }
}

/* ============================================================
   SERVICES — media cards with hover reveal (section--tint)
   ============================================================ */
.services__grid,
.services__grid--media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.service-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.5rem;
  box-shadow: var(--shadow-paper);
  color: var(--ink);
  transition: transform var(--motion-card) var(--ease-lux),
    border-color var(--motion-card) var(--ease-lux), box-shadow var(--motion-card) var(--ease-lux);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-gold-strong);
}

.service-card h3 {
  margin: 0;
  color: var(--ink);
}

.service-card p {
  margin: 0;
  color: var(--ink-soft);
}

/* reveal variant: photo stage, white body slab, hover-expanded copy */
.service-card--reveal {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: clamp(20rem, 26vw, 24rem);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
}

.service-card--reveal .service-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--color-main-dark);
  transition: transform 1.2s var(--ease-lux);
}

.service-card--reveal .service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card--reveal:hover .service-card__media,
.service-card--reveal:focus-within .service-card__media {
  transform: scale(1.05);
}

.service-card--reveal .service-card__body {
  position: relative;
  z-index: 1;
  display: block;
  padding: 1.1rem 1.25rem 1.25rem;
  background: var(--paper);
  box-shadow: 0 -8px 18px color-mix(in srgb, var(--ink) 10%, transparent);
  text-align: center;
}

.service-card--reveal .service-card__body > h3 {
  margin: 0;
  min-height: calc(2 * var(--leading-h3) * 1em);
  color: var(--ink);
  transition: color var(--motion-hover) var(--ease-lux);
}

.service-card--reveal:hover .service-card__body > h3,
.service-card--reveal:focus-within .service-card__body > h3 {
  color: var(--accent-deep);
}

.service-card--reveal .service-card__reveal-clip {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.8s var(--ease-lux);
}

.service-card--reveal .service-card__reveal-inner {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  padding-top: 0.75rem;
  padding-inline: 0.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--ease-lux), transform 0.6s var(--ease-lux);
}

.service-card--reveal .service-card__reveal-inner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

.service-card--reveal .card-cta {
  max-width: 100%;
  padding-inline: 0.4rem;
}

.service-card--reveal:hover .service-card__reveal-clip,
.service-card--reveal:focus-within .service-card__reveal-clip {
  max-height: 16rem;
}

.service-card--reveal:hover .service-card__reveal-inner,
.service-card--reveal:focus-within .service-card__reveal-inner {
  opacity: 1;
  transform: none;
}

@media (hover: none), (max-width: 1024px) {
  .service-card--reveal {
    height: auto;
  }
  .service-card--reveal .service-card__media {
    position: relative;
    min-height: clamp(11rem, 56vw, 15rem);
  }
  .service-card--reveal .service-card__body {
    box-shadow: none;
  }
  .service-card--reveal .service-card__reveal-clip {
    max-height: none;
  }
  .service-card--reveal .service-card__reveal-inner {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   SERVICE DETAIL — copy + framed image (section, light? no:
   plugin emits plain .section → dark stage). Body is cream.
   ============================================================ */
.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.85fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.service-detail__body {
  display: grid;
  gap: 1.25rem;
  max-width: 60ch;
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.service-detail__body h2 {
  font-variation-settings: "SOFT" 60;
}

.service-detail__body p {
  margin: 0;
  color: var(--cream-dim);
}

.service-detail__bullets {
  display: grid;
  gap: 0.6rem;
  width: fit-content;
  margin: 0 auto;
  padding: 0;
  text-align: left;
}

.service-detail__bullets li {
  position: relative;
  margin: 0;
  padding-left: 1.5rem;
  color: var(--cream-text);
  font-weight: var(--weight-regular);
}

.service-detail__bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--grad-accent);
}

.service-detail__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-deep);
  aspect-ratio: 4 / 3;
  background: linear-gradient(165deg, var(--color-main-soft), var(--color-main-dark));
}

.service-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* On a light/tint section the detail copy flips to ink */
.section--light .service-detail__body p,
.section--tint .service-detail__body p {
  color: var(--ink-soft);
}

.section--light .service-detail__bullets li,
.section--tint .service-detail__bullets li {
  color: var(--ink);
}

/* ============================================================
   PROCESS — timeline (section--dark)
   ============================================================ */
.timeline {
  --dot-size: 1.15rem;
  position: relative;
  margin-top: 0.5rem;
}

.timeline__line {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--dot-size) / 2 - 1px);
  height: 2px;
  background: var(--line-gold);
}

.timeline__line::before,
.timeline__line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-top: 2px solid var(--line-gold-strong);
  border-right: 2px solid var(--line-gold-strong);
}

.timeline__line::before {
  left: 0;
  transform: translateY(-50%) rotate(-135deg);
}

.timeline__line::after {
  right: 0;
  transform: translateY(-50%) rotate(45deg);
}

.timeline__steps {
  display: grid;
  grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline__step {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.45rem;
  margin: 0;
}

.timeline__dot {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: var(--radius-pill);
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--color-main), 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent);
}

/* Gold gradient step number (v2 .step-num) */
.timeline__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.9rem);
  font-variation-settings: "SOFT" 90, "WONK" 1;
  line-height: 1.2;
  padding: 0.04em 0.14em 0.04em 0.02em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.timeline__step h3 {
  margin: 0;
  font-size: var(--text-h3);
  color: var(--paper);
}

.timeline__step p {
  margin: 0;
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: var(--cream-dim);
}

/* Reveal choreography driven by [data-anim]/[data-visible] */
.timeline[data-anim] .timeline__line {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.85s var(--ease-lux);
}

.timeline[data-anim] .timeline__step {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-lux), transform 0.6s var(--ease-lux);
  transition-delay: calc(var(--i) * 0.12s + 0.25s);
}

.timeline[data-anim][data-visible="true"] .timeline__line {
  transform: scaleX(1);
}

.timeline[data-anim][data-visible="true"] .timeline__step {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .timeline__steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .timeline__line {
    display: none;
  }
}

/* ============================================================
   FAQ — details/summary accordion, gold plus that rotates
   ============================================================ */
/* The FAQ renders as a LIGHT/paper band on every page (live parity). The plugin
   emits the section without a light/tint modifier, so on the base/dark .section
   backdrop the ink summary/answer text would fall to ~1:1. Pin the accordion to a
   paper surface with ink text so contrast always clears 4.5:1 (gold-on-hover keeps
   its deep token); .section--light / --tint pages already match and are unaffected. */
.faq {
  display: grid;
  gap: 0;
  max-width: 760px;
  margin-inline: auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius, 18px);
  padding: clamp(6px, 1.5vw, 14px) clamp(8px, 3vw, 28px);
}

.faq details {
  border-bottom: 1px solid var(--paper-line);
  transition: border-color var(--motion-hover) var(--ease-lux);
}

.faq details:first-of-type {
  border-top: 1px solid var(--paper-line);
}

.section--dark .faq details {
  border-color: var(--line-gold);
}

.faq summary {
  display: block;
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 26px 52px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: var(--weight-medium);
  color: var(--ink);
  transition: color 0.35s;
}

.section--dark .faq summary {
  color: var(--cream-text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--accent-deep);
}

.section--dark .faq summary:hover {
  color: var(--accent-soft);
}

/* Gold plus → rotates 45° to a cross when open */
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background:
    linear-gradient(var(--accent-deep), var(--accent-deep)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--accent-deep), var(--accent-deep)) center / 1.5px 100% no-repeat;
  transition: transform 0.7s var(--ease-lux), background-color 0.4s;
}

.section--dark .faq summary::after {
  background:
    linear-gradient(var(--accent-soft), var(--accent-soft)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--accent-soft), var(--accent-soft)) center / 1.5px 100% no-repeat;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

/* max-height expand on the answer (details[open] toggles native; the inner
   <p> carries the eased reveal to match v2's .faq-a) */
.faq p {
  margin: 0;
  padding: 0 36px 28px;
  text-align: center;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.section--dark .faq p {
  color: var(--cream-dim);
}

@media (max-width: 560px) {
  .faq summary {
    font-size: 1.05rem;
    padding-inline: 36px;
  }
  .faq p {
    padding-inline: 16px;
  }
}

/* ============================================================
   TRUST-BAR — gold-flanked badge row (parts trust.php)
   ============================================================ */
.trust-bar {
  background: var(--color-main);
  border-block: 1px solid var(--line-gold);
}

.trust-bar__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 2.4rem;
  margin: 0;
  padding: 1.6rem 0;
  list-style: none;
}

.trust-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--cream-dim);
}

.trust-bar__icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--accent);
}

.trust-bar__icon svg {
  width: 100%;
  height: 100%;
}

/* ============================================================
   ABOUT — copy + framed photo (section)
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.85fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.about--noimage {
  grid-template-columns: 1fr;
}

.about__body {
  display: grid;
  gap: 1rem;
  max-width: 56ch;
}

.about__body h2 {
  font-variation-settings: "SOFT" 60;
  color: var(--paper);
}

.about__body p {
  margin: 0;
  color: var(--cream-dim);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.stat {
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: linear-gradient(175deg, var(--color-main-soft), var(--color-main));
  padding: 1rem 1.1rem;
  text-align: center;
  transition: transform var(--motion-card) var(--ease-lux), border-color var(--motion-card) var(--ease-lux);
}

.stat:hover {
  transform: translateY(-4px);
  border-color: var(--line-gold-strong);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--weight-medium);
  line-height: 1.1;
  color: var(--accent-champagne);
}

.stat span {
  color: var(--cream-dim);
  font-size: var(--text-small);
}

.about__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-gold-strong);
  box-shadow: var(--shadow-deep);
  aspect-ratio: 4 / 3;
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

/* On a light/tint about section the copy flips to ink */
.section--light .about__body h2,
.section--tint .about__body h2 {
  color: var(--ink);
}

.section--light .about__body p,
.section--tint .about__body p {
  color: var(--ink-soft);
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-gold);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  color: var(--accent-soft);
  transition: border-color var(--motion-hover) var(--ease-lux), background var(--motion-hover) var(--ease-lux),
    color var(--motion-hover) var(--ease-lux), transform var(--motion-hover) var(--ease-lux);
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--line-gold-strong);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.social-icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   ABOUT TEASER (aboutTeaser) — copy left, big framed founder photo right
   ============================================================ */
.about-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about-teaser__body {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
}

.about-teaser__body h2 {
  font-variation-settings: "SOFT" 60;
  color: var(--paper);
}

.about-teaser__body p {
  margin: 0;
  color: var(--cream-dim);
  line-height: 1.7;
}

.about-teaser__body .btn-row {
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.about-teaser__media {
  position: relative;
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 24rem;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--line-gold-strong);
  background: linear-gradient(165deg, var(--color-main-soft), var(--color-main-dark));
  box-shadow: var(--shadow-deep), 0 0 0 6px color-mix(in srgb, var(--accent) 8%, transparent);
}

.about-teaser__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}

.about-teaser__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    linear-gradient(180deg, transparent 64%, color-mix(in srgb, var(--color-main-dark) 50%, transparent) 100%);
}

@media (max-width: 920px) {
  .about-teaser {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-teaser__body {
    justify-items: center;
    text-align: center;
    margin-inline: auto;
  }
  .about-teaser__body p {
    margin-inline: auto;
  }
  .about-teaser__body .btn-row {
    justify-content: center;
  }
  .about-teaser__media {
    order: -1;
    justify-self: center;
    max-width: 19rem;
    aspect-ratio: 1 / 1;
  }
}

/* ============================================================
   CMS EXPLAINER — "Inhalte selbst ändern" (section--dark):
   framed video slot left, plain points right. The video is
   recorded later; until then a labelled placeholder fills the
   frame (never a broken <video>).
   ============================================================ */
.cms-explainer {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.cms-explainer__video {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid var(--line-gold-strong);
  background: linear-gradient(165deg, var(--color-main-soft), var(--color-main-dark));
  box-shadow: var(--shadow-deep), 0 0 0 6px color-mix(in srgb, var(--accent) 8%, transparent);
}

.cms-explainer__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cms-explainer__video--placeholder {
  display: grid;
  place-content: center;
  gap: 1rem;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.cms-explainer__video--placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
}

.cms-explainer__play {
  position: relative;
  z-index: 1;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(56px, 9vw, 76px);
  height: clamp(56px, 9vw, 76px);
  border-radius: 50%;
  background: var(--grad-accent);
  color: var(--on-accent);
  box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--accent) 60%, transparent);
}

.cms-explainer__play svg {
  width: 42%;
  height: 42%;
  margin-left: 6%;
}

.cms-explainer__caption {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.cms-explainer__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.cms-explainer__point h3 {
  margin: 0 0 0.35rem;
  color: var(--paper);
  font-size: 1.1rem;
}

.cms-explainer__point p {
  margin: 0;
  color: var(--cream-dim);
  line-height: 1.65;
}

@media (max-width: 920px) {
  .cms-explainer {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .cms-explainer__points {
    max-width: 40rem;
    margin-inline: auto;
  }
}

/* ============================================================
   AREA DUAL — map + peer list (section--tint)
   ============================================================ */
.area-dual {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: stretch;
}

.area-dual__map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-paper);
  min-height: 18rem;
}

.area-dual__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.area-dual__map-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.area-dual__map-cta {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  background: var(--grad-accent);
  color: var(--on-accent);
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--accent-deep) 70%, transparent);
}

.area-dual__list {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.area-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: #fff;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-paper);
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-medium);
  color: var(--ink);
  transition: transform var(--motion-card) var(--ease-lux), border-color var(--motion-card) var(--ease-lux),
    box-shadow var(--motion-card) var(--ease-lux);
}

.area-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-gold-strong);
  box-shadow: var(--shadow-paper);
}

.area-card::after {
  content: "\2192";
  color: var(--accent-deep);
}

@media (max-width: 1024px) {
  .area-dual {
    grid-template-columns: 1fr;
  }
  .area-dual__map {
    min-height: 14rem;
  }
}

/* ============================================================
   LOCAL LINKS — derived nav grids (cities = tint, services = plain)
   ============================================================ */
.local-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.local-links--cols3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.local-links li {
  margin: 0;
}

.local-link {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  height: 100%;
  padding: 1.1rem 1rem;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-paper);
  text-align: center;
  color: var(--ink);
  transition: transform var(--motion-card) var(--ease-lux), border-color var(--motion-card) var(--ease-lux),
    box-shadow var(--motion-card) var(--ease-lux);
}

.local-link strong {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  color: var(--ink);
}

.local-link span {
  color: var(--ink-soft);
  font-size: var(--text-small);
}

.local-link:hover {
  transform: translateY(-5px);
  border-color: var(--line-gold-strong);
  box-shadow: var(--shadow-paper);
}

@media (max-width: 720px) {
  .local-links--cols3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .local-links--cols3 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   GALLERY — masonry + lightbox (section)
   ============================================================ */
.gallery-masonry {
  columns: 3;
  column-gap: 1rem;
}

.gallery-masonry[data-cols="4"] {
  columns: 4;
}

.gallery-masonry[data-cols="2"] {
  columns: 2;
}

.gallery-card {
  break-inside: avoid;
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.gallery-card__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-gold);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-main-dark);
  box-shadow: var(--shadow-deep);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}

.gallery-masonry .gallery-card:nth-child(4n + 1) .gallery-card__btn {
  aspect-ratio: 3 / 4;
}

.gallery-masonry .gallery-card:nth-child(4n + 3) .gallery-card__btn {
  aspect-ratio: 1 / 1;
}

.gallery-card__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-lux);
}

.gallery-card__btn:hover img {
  transform: scale(1.05);
}

.gallery-card figcaption {
  color: var(--cream-dim);
  font-size: var(--text-small);
  font-weight: var(--weight-regular);
  line-height: var(--leading-small);
  text-align: center;
}

.gallery__cta {
  margin-top: 2.25rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 3.5rem);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: color-mix(in srgb, var(--color-main-dark) 92%, transparent);
  cursor: zoom-out;
  animation: fadeIn var(--motion-hover) var(--ease-lux);
}

.lightbox__panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(980px, 100%);
}

.lightbox__figure {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
}

.lightbox__figure img {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-deep);
}

.lightbox__figure figcaption {
  color: var(--cream-text);
  font-size: var(--text-small);
  line-height: var(--leading-small);
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-gold-strong);
  border-radius: var(--radius-pill);
  background: var(--color-main-dark);
  color: var(--accent-soft);
  box-shadow: var(--shadow-deep);
}

.lightbox__close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.lightbox__nav {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-main-dark) 60%, transparent);
  color: var(--accent-soft);
  transition: background var(--motion-hover) var(--ease-lux), color var(--motion-hover) var(--ease-lux);
}

.lightbox__nav:hover {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}

.lightbox__nav svg {
  width: 1.5rem;
  height: 1.5rem;
}

@media (max-width: 560px) {
  .lightbox__panel {
    flex-direction: column;
  }
  .lightbox__nav {
    position: absolute;
    bottom: -3.75rem;
  }
  .lightbox__nav--prev {
    left: calc(50% - 3.5rem);
  }
  .lightbox__nav--next {
    right: calc(50% - 3.5rem);
  }
}

/* ============================================================
   CONTACT — split + bare form (section)
   ============================================================ */
.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  grid-template-areas:
    ". formhead"
    "info form";
  gap: 1.25rem clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.contact-split__formhead {
  grid-area: formhead;
  margin: 0;
  max-width: none;
  text-align: left;
}

.contact-split__formhead h2 {
  color: var(--paper);
  font-variation-settings: "SOFT" 60;
}

.contact-split__info {
  grid-area: info;
}

.contact-split__form {
  grid-area: form;
}

.contact-split__cards {
  display: grid;
  gap: 1rem;
}

.apply-split {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.apply-split__aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.apply-split__form .contact-form,
.contact-split__form .contact-form {
  margin: 0;
  max-width: none;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: linear-gradient(175deg, var(--color-main-soft), var(--color-main));
  padding: 1.6rem;
  box-shadow: var(--shadow-deep);
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.field--full {
  grid-column: 1 / -1;
}

.field :where(input:not([type="checkbox"]), select, textarea) {
  width: 100%;
  border: 1px solid var(--line-gold-strong);
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-main-dark) 45%, transparent);
  color: var(--cream-text);
  padding: 12px 15px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: var(--weight-regular);
  letter-spacing: normal;
  text-transform: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field :where(input:not([type="checkbox"]), select, textarea):focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-secondary) 22%, transparent);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--cream-dim);
  opacity: 1;
}

.field--file {
  gap: 0.4rem;
}

.field--file input[type="file"] {
  width: 100%;
  border: 1px dashed var(--line-gold-strong);
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-main-dark) 45%, transparent);
  color: var(--cream-text);
  padding: 12px;
  font: inherit;
  font-size: var(--text-small);
  cursor: pointer;
  transition: border-color 0.3s;
}

.field--file input[type="file"]:hover {
  border-color: var(--accent);
}

.contact-form .btn {
  margin-top: 0.2rem;
}

.lead-colors,
.lead-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  border: 0;
  padding: 0;
  margin: 0;
}

.lead-colors legend,
.lead-channels legend {
  flex: 1 0 100%;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--color-ink-soft, inherit);
}

.lead-color {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lead-color input[type="color"] {
  inline-size: 2.4rem;
  block-size: 2.4rem;
  padding: 0;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: none;
  cursor: pointer;
}

.lead-color__hint,
.lead-color__toggle {
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.lead-channel {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
}

.contact-card {
  display: grid;
  gap: 0.4rem;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: linear-gradient(175deg, var(--color-main-soft), var(--color-main));
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-deep);
}

.contact-card strong {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.contact-card a,
.contact-card span {
  color: var(--cream-text);
  font-weight: var(--weight-regular);
}

.contact-card a:hover {
  color: var(--accent-soft);
}

@media (max-width: 860px) {
  .apply-split,
  .contact-split {
    grid-template-columns: 1fr;
  }
  .contact-split {
    grid-template-areas:
      "info"
      "formhead"
      "form";
  }
}

/* ============================================================
   CTA-BANNER — dark, radial gold glow, em-gold heading
   ============================================================ */
.cta-banner {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 9vw, 8.5rem);
  background:
    radial-gradient(800px 460px at 50% 115%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%),
    var(--color-main);
  color: var(--cream-text);
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 80vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-gold-strong), transparent);
}

.cta-banner__photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  border: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--accent) 12%, transparent),
    var(--shadow-deep);
  margin-bottom: 0.4rem;
}

.cta-banner h2 {
  margin: 0;
  max-width: 18ch;
  color: var(--paper);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-variation-settings: "SOFT" 65;
}

.cta-banner h2 em {
  font-style: italic;
  font-variation-settings: "SOFT" 90, "WONK" 1;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0.04em 0.18em 0.04em 0;
  margin-right: -0.14em;
}

.cta-banner p {
  margin: 0;
  max-width: 34rem;
  color: var(--cream-dim);
  font-size: 1.04rem;
}

.cta-banner .btn--primary {
  font-size: 1rem;
  padding: 17px 38px;
}

/* ============================================================
   RICH TEXT — article body (section)
   ============================================================ */
.richtext {
  max-width: 72ch;
  margin-inline: auto;
  text-align: center;
}

.richtext h2 {
  margin-top: 2.4rem;
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-variation-settings: "SOFT" 70;
  color: var(--paper);
}

.richtext h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin: 10px auto 0;
  background: var(--grad-accent);
  border-radius: 2px;
}

.richtext p {
  margin: 0 0 1rem;
  color: var(--cream-dim);
  line-height: 1.8;
}

.richtext ul {
  width: fit-content;
  margin: 0 auto 1rem;
  text-align: left;
  display: grid;
  gap: 9px;
  list-style: none;
}

.richtext li {
  position: relative;
  padding-left: 22px;
  color: var(--cream-dim);
  line-height: 1.7;
}

.richtext li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--grad-accent);
}

.richtext > :first-child {
  margin-top: 0;
}

.richtext__figure {
  position: relative;
  margin: 2.4rem auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-deep);
}

.richtext__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-box {
  display: grid;
  gap: 0.35rem;
  max-width: 760px;
  margin: 2.75rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-gold);
  text-align: center;
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

.author-box strong {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-medium);
  color: var(--accent-champagne);
}

.author-box p {
  margin: 0;
  color: var(--cream-dim);
}

/* On a light/tint rich-text section, copy flips to ink */
.section--light .richtext h2,
.section--tint .richtext h2 {
  color: var(--ink);
}

.section--light .richtext p,
.section--light .richtext li,
.section--tint .richtext p,
.section--tint .richtext li {
  color: var(--ink-soft);
}

/* Legal documents (legalArticle): a long, dense read — left-aligned so headings,
   paragraphs and lists scan as a document, not a centred marketing block. Widen
   the measure a touch and left-anchor the h2 underline + the lists. */
.richtext--legal {
  max-width: 80ch;
  text-align: left;
}

.richtext--legal h2::after {
  margin-left: 0;
  margin-right: auto;
}

.richtext--legal ul {
  width: auto;
  margin-inline: 0;
}

.richtext--legal .legal-meta {
  color: var(--cream-dim);
  font-size: var(--text-small);
}

/* ============================================================
   FOOTER (parts/footer.html) — deepest stage, gold-edged brand box
   ============================================================ */
.site-footer {
  background: var(--color-main-dark);
  color: var(--cream-dim);
  border-top: 1px solid var(--line-gold);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(6rem, 11vw, 8rem);
  font-size: 0.88rem;
  line-height: var(--leading-small);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem 1.75rem;
  align-items: start;
}

.site-footer__brand {
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--color-main-soft), var(--color-main));
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-deep);
}

.site-footer__logo {
  color: var(--cream-text);
  margin-bottom: 0.25rem;
}

.site-footer__brand p {
  margin: 0;
  color: var(--cream-dim);
  max-width: 32ch;
}

.site-footer__brand p a {
  color: var(--accent-soft);
  font-weight: var(--weight-medium);
}

.site-footer__brand p a:hover {
  color: var(--accent);
}

.site-footer__cta {
  margin-top: 0.25rem;
  padding: 10px 22px;
  font-size: 0.86rem;
}

.site-footer__col h4 {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer__col a {
  color: var(--cream-dim);
  font-weight: var(--weight-regular);
  transition: color 0.35s;
}

.site-footer__col a:hover {
  color: var(--accent-soft);
}

.site-footer__col a[aria-current="page"] {
  color: var(--cream-text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.site-footer__hours {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer__hours li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  color: var(--cream-dim);
}

.site-footer__hours-day {
  font-weight: var(--weight-medium);
}

.site-footer__hours-time {
  white-space: nowrap;
}

.site-footer__note {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--line-gold);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.76rem;
  color: color-mix(in srgb, var(--cream-dim) 70%, transparent);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.25rem;
}

.site-footer__legal a {
  color: var(--cream-dim);
  font-weight: var(--weight-medium);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__legal a:hover {
  color: var(--accent-soft);
}

@media (max-width: 980px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CHAT DOCK (parts/footer.html) — floating gold cluster
   ============================================================ */
.chat-dock {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
}

.chat-dock__panel,
.chat-dock__cluster {
  pointer-events: auto;
}

.chat-dock__panel {
  position: relative;
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(82vh, 40rem);
  overflow: auto;
  border-radius: var(--radius);
  animation: riseIn 0.5s var(--ease-lux);
}

.chat-dock__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--line-gold-strong);
  border-radius: var(--radius-pill);
  background: var(--color-main-dark);
  color: var(--accent-soft);
  transition: color var(--motion-hover) var(--ease-lux), border-color var(--motion-hover) var(--ease-lux);
}

.chat-dock__close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.chat-dock__close svg {
  width: 1rem;
  height: 1rem;
}

.chat-dock__cluster {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.chat-dock__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-cta, var(--radius-pill));
  background: var(--grad-accent);
  background-size: 160% 160%;
  background-position: 0 0;
  color: var(--on-accent);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--accent) 55%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform var(--motion-hover) var(--ease-lux), background-position var(--motion-hover) var(--ease-lux);
}

.chat-dock__cta:hover {
  transform: translateY(-2px);
  background-position: 100% 100%;
}

.chat-dock__bubble {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--line-gold-strong);
  border-radius: var(--radius-cta, var(--radius-pill));
  background: linear-gradient(150deg, var(--color-main-soft), var(--color-main-dark));
  color: var(--accent-soft);
  box-shadow: var(--shadow-deep);
  transition: transform var(--motion-hover) var(--ease-lux), color var(--motion-hover) var(--ease-lux),
    border-color var(--motion-hover) var(--ease-lux);
}

.chat-dock__bubble:hover {
  transform: translateY(-2px);
  color: var(--accent);
  border-color: var(--accent);
}

.chat-dock__bubble svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ============================================================
   TRUST-MARQUEE — gold band, 75s infinite scroll (if rendered)
   ============================================================ */
.badge-band {
  position: relative;
  background: var(--grad-accent);
  padding: 34px 0;
  overflow: hidden;
  border-block: 1px solid color-mix(in srgb, var(--accent-deep) 55%, transparent);
}

.badge-band::before,
.badge-band::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}

.badge-band::before {
  left: 0;
  background: linear-gradient(90deg, var(--accent-champagne), transparent);
}

.badge-band::after {
  right: 0;
  background: linear-gradient(270deg, var(--accent-soft), transparent);
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 75s linear infinite;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.badge {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 30px;
  white-space: nowrap;
}

.badge b {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: var(--weight-medium);
  color: var(--color-main);
}

.badge span {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--color-main) 74%, transparent);
}

@media (max-width: 640px) {
  .badge span {
    display: none;
  }
}

/* ============================================================
   SECTION GRID DOWNSHIFTS
   ============================================================ */
@media (max-width: 1024px) {
  .services__grid,
  .services__grid--media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-masonry,
  .gallery-masonry[data-cols="4"] {
    columns: 2;
  }
  .service-detail,
  .about {
    grid-template-columns: 1fr;
  }
  .service-detail__body,
  .about__body {
    justify-self: center;
    text-align: center;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .services__grid,
  .services__grid--media,
  .about__stats {
    grid-template-columns: 1fr;
  }
  .gallery-masonry,
  .gallery-masonry[data-cols="2"],
  .gallery-masonry[data-cols="4"] {
    columns: 1;
  }
  .contact-form__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .btn-row .btn {
    width: 100%;
  }
}

/* ============================================================
   PHASE-2 SECTIONS — 1:1 port of the v2 marketing site
   (website-v2 src/app/globals.css) onto the section DOM the
   shared vorteq-editor renders for the new types: pricingTable,
   industriesGrid, aboutRich, processDetail, blogList, cardGrid,
   teamGrid, caseStudies.
   Tokens are the same canonical knobs the rest of this file uses
   (--color-main #111526, --color-secondary #e8a743, radius 18px,
   --ease-lux, --grad-accent, --line-gold*, oklch-derived shades).
   ============================================================ */

/* ---- Shared chrome these sections emit ----
   The new renderers wrap content in div.wrap (= the .container box)
   and head copy in div.section-head--center > span.eyebrow--center.
   Both alias the existing primitives so spacing/centering match. */
.wrap {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section-head--center {
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: clamp(3rem, 6vw, 4.4rem);
  text-align: center;
}

.section-head--center h2 {
  font-size: var(--text-h2);
  font-variation-settings: "SOFT" 60;
}

.eyebrow--center {
  justify-content: center;
  margin-bottom: 22px;
}

.eyebrow--center::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section--light .eyebrow--center::after,
.section--tint .eyebrow--center::after {
  background: linear-gradient(90deg, var(--accent-deep), transparent);
}

/* ---- Spitzen-Übergänge (peaked sections) — v2 ---- */
.peaked {
  position: relative;
}

.section--peaked {
  padding-bottom: calc(var(--section-pad) + 6.5rem);
}

.peak {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 88px;
  pointer-events: none;
  z-index: 3;
  --pk-l: 46%;
  --pk-t: 62%;
  --pk-r: 18%;
}

.peak--alt {
  --pk-l: 26%;
  --pk-t: 68%;
  --pk-r: 42%;
}

.peak::before,
.peak::after {
  content: "";
  position: absolute;
  inset: 0;
}

.peak::before {
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 70%, transparent) 32%,
    color-mix(in srgb, var(--accent-champagne) 92%, transparent) var(--pk-t),
    color-mix(in srgb, var(--accent) 70%, transparent) 88%,
    transparent
  );
  clip-path: polygon(
    0 calc(var(--pk-l) - 1px),
    var(--pk-t) calc(100% - 7px),
    100% calc(var(--pk-r) - 1px),
    100% calc(var(--pk-r) + 2px),
    var(--pk-t) 100%,
    0 calc(var(--pk-l) + 2px)
  );
}

.peak::after {
  background: var(--peak-c, var(--paper));
  clip-path: polygon(0 var(--pk-l), var(--pk-t) 100%, 100% var(--pk-r), 100% 100%, 0 100%);
}

@media (min-width: 768px) {
  .peak {
    height: 118px;
  }
}

/* ============================================================
   PRICING TABLE (pricingTable) — setup + care cards
   ============================================================ */
.pricing {
  background:
    radial-gradient(900px 500px at 50% 0, color-mix(in srgb, var(--accent) 7%, transparent), transparent 65%),
    var(--paper);
}

.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 26px;
  align-items: stretch;
}

/* A lone card (e.g. only Basis-Pflege) centres in one column instead of
   hugging the left of the 2-column grid. */
.price-grid:has(> .pcard:only-child) {
  grid-template-columns: minmax(0, 32rem);
  justify-content: center;
}

.pcard {
  border-radius: var(--radius);
  position: relative;
  transition: transform 0.6s var(--ease-lux), box-shadow 0.6s var(--ease-lux);
}

.pcard:hover {
  transform: translateY(-5px);
}

.pcard--setup {
  background:
    radial-gradient(560px 360px at 80% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%),
    linear-gradient(165deg, var(--color-main-soft), var(--color-main-dark));
  border: 2px solid color-mix(in srgb, var(--accent) 68%, transparent);
  box-shadow: var(--shadow-deep);
  padding: 50px 48px 46px;
  color: var(--cream-text);
  display: flex;
  flex-direction: column;
}

.p-flag {
  position: absolute;
  top: -13px;
  left: 48px;
  background: var(--grad-accent);
  color: var(--on-accent);
  font-size: 0.66rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--accent-deep) 70%, transparent);
}

.p-name {
  font-size: 0.76rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.p-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 20px;
}

.p-price .v {
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 5vw, 4rem);
  line-height: 1;
  font-weight: var(--weight-regular);
  font-variation-settings: "SOFT" 60;
}

.pcard--setup .p-price .v {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.p-price .u {
  font-size: 0.9rem;
  color: var(--cream-dim);
}

.p-lede {
  margin-top: 14px;
  font-size: 0.96rem;
  color: var(--cream-dim);
  max-width: 26rem;
}

.p-lede b {
  color: var(--cream-text);
  font-weight: var(--weight-medium);
}

.p-list {
  list-style: none;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}

.p-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
}

.p-list svg {
  flex: none;
  margin-top: 4px;
}

.pcard--setup .p-list li {
  color: var(--cream-text);
}

.p-guarantee {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.84rem;
  color: var(--accent-champagne);
  line-height: 1.55;
}

.p-guarantee svg {
  flex: none;
  margin-top: 2px;
}

.p-guarantee b {
  font-weight: var(--weight-medium);
  color: var(--accent-soft);
}

.pcard--setup .btn {
  margin-top: 32px;
  align-self: flex-start;
}

.pcard--care {
  background: #fff;
  border: 2px solid color-mix(in srgb, var(--accent-deep) 52%, transparent);
  box-shadow: var(--shadow-paper);
  padding: 40px 40px 38px;
  color: var(--ink);
  position: relative;
  height: 100%;
  overflow: hidden;
}

.pcard--care::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-accent);
}

.pcard--care .p-name {
  color: var(--accent-deep);
}

.pcard--care .p-price .v {
  color: var(--ink);
}

.pcard--care .p-price .u {
  color: var(--ink-soft);
}

.pcard--care .p-lede {
  color: var(--ink-soft);
}

.pcard--care .p-list li {
  color: var(--ink);
}

.p-foot {
  margin-top: 46px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-soft);
  max-width: 46rem;
  margin-inline: auto;
  line-height: 1.7;
}

.p-foot .hairline {
  max-width: 220px;
  margin: 0 auto 24px;
}

@media (max-width: 980px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
  .pcard--setup {
    padding: 44px 32px 40px;
  }
  .p-flag {
    left: 32px;
  }
  .pcard--care {
    padding: 36px 32px;
  }
}

/* ============================================================
   INDUSTRIES GRID (industriesGrid) — photo tiles, label overlay
   ============================================================ */
.branchen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.branche-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--paper-line);
  box-shadow: var(--shadow-paper);
  transition: transform 0.6s var(--ease-lux), border-color 0.6s, box-shadow 0.6s;
}

.branche-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent-deep) 55%, transparent);
}

.branche-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-lux);
}

.branche-card:hover img {
  transform: scale(1.05);
}

.branche-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 22px 18px;
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--color-main-dark) 86%, transparent) 62%
  );
  text-align: center;
}

.branche-card figcaption b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: var(--weight-medium);
  color: var(--paper);
}

.branche-card figcaption span {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  color: var(--cream-dim);
}

@media (max-width: 920px) {
  .branchen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .branchen-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ABOUT RICH (aboutRich) — gold rule + centred story prose
   ============================================================ */
.gold-rule {
  display: block;
  width: 3.5rem;
  height: 2px;
  margin: 1.4rem auto 2rem;
  background: var(--grad-accent);
  border-radius: 2px;
}

.story {
  max-width: 62ch;
  margin-inline: auto;
  display: grid;
  gap: 1.1rem;
  text-align: center;
}

.story p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.75;
}

.story p:first-child {
  font-family: var(--font-display);
  font-size: 1.42rem;
  line-height: 1.5;
  color: var(--ink);
  font-variation-settings: "SOFT" 70;
  margin-bottom: 0.4rem;
}

/* On a dark aboutRich section the story copy flips to cream. */
.section--dark .story p {
  color: var(--cream-dim);
}

.section--dark .story p:first-child {
  color: var(--paper);
}

/* ============================================================
   PROCESS DETAIL (processDetail) — numbered step card grid
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-gold);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  overflow: hidden;
}

.steps .step {
  background: linear-gradient(175deg, var(--color-main-soft), var(--color-main));
  padding: 46px 38px 44px;
  position: relative;
  transition: background 0.6s;
}

.steps .step::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-deep),
    var(--accent) 35%,
    var(--accent-champagne) 50%,
    var(--accent) 65%,
    var(--accent-deep)
  );
  clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%);
  opacity: 0;
  transition: opacity 0.6s;
}

.steps .step:hover::after {
  opacity: 0.8;
}

.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.9rem;
  line-height: 1.2;
  display: inline-block;
  width: fit-content;
  padding: 0.04em 0.14em 0.04em 0.02em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.steps .step h3 {
  font-size: 1.32rem;
  margin: 22px 0 13px;
  color: var(--paper);
  line-height: 1.25;
}

.steps .step p {
  font-size: 0.93rem;
  color: var(--cream-dim);
}

.steps .step p b {
  font-weight: var(--weight-medium);
  color: var(--accent-champagne);
}

.step .dur {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.68rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

.steps--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.steps--five .step {
  padding: 36px 26px 34px;
}

@media (max-width: 1100px) {
  .steps--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps--five .step:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .steps,
  .steps--five {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CARD GRID (cardGrid) — numbered i-cards + points variant.
   Flex (not grid) so a non-full last row CENTRES instead of
   hugging the left with a phantom empty slot: 3-across max via
   flex-basis, justify-content:center balances 2/3, 1/3, 5→3+2.
   ============================================================ */
.icards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}

.icards > .icard {
  flex: 1 1 calc((100% - 2 * 26px) / 3);
  min-width: min(100%, 17rem);
  max-width: calc((100% - 2 * 26px) / 3);
}

.icard {
  background: linear-gradient(175deg, var(--color-main-soft), var(--color-main));
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: transform 0.6s var(--ease-lux), border-color 0.6s;
}

.icard:hover {
  transform: translateY(-4px);
  border-color: var(--line-gold-strong);
}

.icard .i-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.2;
  display: inline-block;
  width: fit-content;
  padding: 0.04em 0.14em 0.04em 0.02em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.icard h3 {
  font-size: 1.18rem;
  margin: 14px 0 10px;
  color: var(--paper);
}

.icard p {
  font-size: 0.9rem;
  color: var(--cream-dim);
}

@media (max-width: 860px) {
  .icards > .icard {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* quad variant — 2-across max, centred partial last row (5 → 2+2+1 centred). */
.icards--quad {
  max-width: 58rem;
  margin-inline: auto;
}

.icards--quad > .icard {
  flex: 1 1 calc((100% - 26px) / 2);
  min-width: min(100%, 18rem);
  max-width: calc((100% - 26px) / 2);
}

@media (max-width: 860px) {
  .icards--quad > .icard {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* ============================================================
   SYSTEM ("Das System") — vertical 1–2–3 Ablauf, 3 framed images
   alternating down a gold spine.
   ============================================================ */
.system {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
}

/* Centre spine — the connecting gold line the rows hang on (desktop only). */
.system__spine {
  display: none;
}

@media (min-width: 921px) {
  .system__spine {
    display: block;
    position: absolute;
    top: 2.5rem;
    bottom: 2.5rem;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, var(--line-gold-strong) 12%, var(--line-gold-strong) 88%, transparent);
  }
}

.system__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.5rem);
}

/* Alternate the copy/media sides: odd rows copy-left, even rows media-left. */
@media (min-width: 921px) {
  .system__row:nth-child(even) .system__copy {
    order: 2;
  }
  .system__row:nth-child(even) .system__media {
    order: 1;
  }
  .system__row:nth-child(even) .system__copy {
    text-align: right;
    justify-items: end;
  }
}

.system__copy {
  display: grid;
  gap: 0.85rem;
  align-content: center;
}

/* The numbered node — a gold-gradient italic numeral that sits on the spine. */
.system__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem);
  font-variation-settings: "SOFT" 90, "WONK" 1;
  line-height: 1;
  width: fit-content;
  padding: 0.04em 0.16em 0.04em 0.02em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.system__copy h3 {
  margin: 0;
  font-size: var(--text-h3);
  color: var(--paper);
}

.system__copy p {
  margin: 0;
  max-width: 34rem;
  color: var(--cream-dim);
  font-size: 0.99rem;
  line-height: 1.7;
}

.system__media {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-gold-strong);
  background: linear-gradient(165deg, var(--color-main-soft), var(--color-main-dark));
  box-shadow: var(--shadow-deep);
  aspect-ratio: 4 / 3;
}

.system__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Soft gold rim + navy floor fuse the image into the dark stage. */
.system__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 58%),
    linear-gradient(180deg, transparent 70%, color-mix(in srgb, var(--color-main-dark) 45%, transparent) 100%);
}

/* Empty media (no image yet) reads as a tasteful placeholder card, not a void. */
.system__media:empty,
.system__media:not(:has(img)) {
  display: grid;
  place-items: center;
}

.system__media:not(:has(img))::before {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border: 1px dashed var(--line-gold);
  border-radius: calc(var(--radius) - 6px);
}

@media (max-width: 920px) {
  .system__row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .system__media {
    order: -1;
    max-width: 32rem;
    width: 100%;
  }
  .system__copy {
    justify-items: center;
    text-align: center;
  }
  .system__copy p {
    margin-inline: auto;
  }
}

/* points variant (cardGrid variant=points) — white framed value cards.
   Flex-centred so a partial last row balances (same rule as .icards). */
.maler-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 52px;
}

.maler-points > .maler-point {
  flex: 1 1 calc((100% - 2 * 22px) / 3);
  min-width: min(100%, 16rem);
  max-width: calc((100% - 2 * 22px) / 3);
}

@media (max-width: 760px) {
  .maler-points > .maler-point {
    flex-basis: 100%;
    max-width: 100%;
  }
}

.maler-point {
  position: relative;
  background: linear-gradient(180deg, #fff, color-mix(in oklab, var(--color-secondary) 4%, #fff));
  border: 2px solid var(--line-gold-strong);
  border-radius: var(--radius);
  padding: 34px 26px 30px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.6s var(--ease-lux), border-color 0.6s, box-shadow 0.6s;
}

.maler-point::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-accent);
  opacity: 0.85;
}

.maler-point:hover {
  transform: translateY(-5px);
  border-color: var(--line-gold-strong);
  box-shadow: 0 18px 44px rgba(17, 21, 38, 0.1);
}

.maler-point .mp-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px solid var(--line-gold-strong);
  background: color-mix(in srgb, var(--color-secondary) 10%, #fff);
  color: var(--accent-deep);
}

.maler-point b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: var(--weight-semibold);
  color: var(--ink);
  font-variation-settings: "SOFT" 70;
}

.maler-point b::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  margin: 10px auto 0;
  background: var(--grad-accent);
  border-radius: 2px;
}

.maler-point p {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.maler-points--framed .maler-point {
  border: 1px solid var(--line-gold);
}

.maler-points--framed .maler-point::before {
  display: none;
}

.maler-points--framed .maler-point:hover {
  border-color: var(--line-gold-strong);
}

/* ============================================================
   TEAM GRID (teamGrid) — photo + name + role cards
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  justify-content: center;
  gap: 26px;
}

.team-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(175deg, var(--color-main-soft), var(--color-main));
  border: 1px solid var(--line-gold);
  text-align: center;
  transition: transform 0.6s var(--ease-lux), border-color 0.6s;
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-gold-strong);
}

.team-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.team-card .t-meta {
  padding: 18px 16px 22px;
}

.team-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: var(--weight-medium);
  color: var(--paper);
}

.team-card span {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.trades-note {
  margin-top: 26px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* On a dark teamGrid section the note flips to cream. */
.section--dark .trades-note {
  color: var(--cream-dim);
}

@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   BLOG LIST (blogList) — post card grid
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 980px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.6s var(--ease-lux), border-color 0.6s, box-shadow 0.6s;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-gold-strong);
  box-shadow: 0 18px 44px rgba(17, 21, 38, 0.1);
}

.blog-card .b-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line-gold);
}

.blog-card .b-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-lux);
}

.blog-card:hover .b-thumb img {
  transform: scale(1.04);
}

.blog-card .b-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.blog-card .b-meta {
  font-size: 0.7rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.blog-card b {
  margin-top: 9px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  color: var(--ink);
  font-variation-settings: "SOFT" 70;
}

.blog-card .b-excerpt {
  margin-top: 9px;
  font-size: 0.89rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.blog-card .b-more {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: var(--weight-semibold);
  color: var(--accent-deep);
}

/* ============================================================
   SINGLE POST (templates/single.html) — v2 article look. The dark
   .post-hero header + the .post body that styles the native
   wp:post-content blocks (h2 / p / list / .post-takeaway).
   ============================================================ */
.post-hero {
  text-align: center;
}

.post-hero .eyebrow {
  justify-content: center;
}

.post-hero h1 {
  max-width: 24ch;
  margin: 22px auto 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.12;
  color: var(--paper);
  font-variation-settings: "SOFT" 65;
}

.post-hero .post-meta {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--cream-dim);
}

.post {
  max-width: 72ch;
  margin-inline: auto;
}

.post-thumb {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-gold);
  margin-bottom: 34px;
}

.post-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

/* First paragraph = the lead (v2 .post-lead). wp:post-content nests blocks in
   .entry-content, so reach the lead as the first paragraph anywhere in .post. */
.post p:first-of-type {
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--ink);
  font-variation-settings: "SOFT" 70;
}

.post h2 {
  margin-top: 2.4rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: var(--weight-medium);
  line-height: 1.3;
  color: var(--ink);
  font-variation-settings: "SOFT" 70;
}

.post h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 10px;
  background: var(--grad-accent);
  border-radius: 2px;
}

.post p {
  margin-top: 15px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.post ul {
  list-style: none;
  margin-top: 15px;
  padding: 0;
  display: grid;
  gap: 9px;
}

.post li {
  position: relative;
  padding-left: 22px;
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.post li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--grad-accent);
}

.post .post-takeaway {
  margin-top: 2.6rem;
  border-left: 3px solid var(--color-secondary);
  background: color-mix(in srgb, var(--color-secondary) 7%, transparent);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink);
  font-variation-settings: "SOFT" 70;
}

.post-back {
  margin-top: 2.6rem;
}

.post-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: var(--weight-semibold);
  color: var(--accent-deep);
  text-decoration: none;
}

.post-back a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============================================================
   CASE STUDIES (caseStudies) — per-case stage + device frames
   ============================================================ */
.gallery-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2.2rem;
  margin-top: 2.6rem;
  font-size: var(--text-small);
  letter-spacing: 0.06em;
  color: var(--cream-dim);
}

.gallery-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.gallery-hero__meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

.case {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.case + .case::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(72rem, 88vw);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line-gold) 30%,
    var(--line-gold-strong) 50%,
    var(--line-gold) 70%,
    transparent
  );
}

.case__head {
  display: block;
  text-align: center;
}

.case__number {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  opacity: 0.9;
}

.case__title h2 {
  margin: 0.9rem 0 0.4rem;
  font-size: var(--text-h2);
  color: var(--cream-text);
}

.case__trade {
  font-size: var(--text-small);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.case__copy {
  max-width: 58ch;
  margin: 1.2rem auto 0;
  text-align: center;
  color: var(--cream-dim);
}

.case__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.6rem);
  max-width: 54rem;
  margin-inline: auto;
  margin-top: 1.9rem;
  padding: 1.1rem clamp(1rem, 2.4vw, 1.7rem);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-main-soft) 55%, transparent);
}

.case__fact dt {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--accent);
  opacity: 0.9;
  margin-bottom: 0.3rem;
}

.case__fact dd {
  color: var(--cream-text);
  font-size: var(--text-small);
  font-weight: var(--weight-regular);
}

.case__swatches {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
}

.case__swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.case__swatch i {
  width: 1rem;
  height: 1rem;
  border-radius: 0.28rem;
  border: 1px solid color-mix(in srgb, white 22%, transparent);
  background: var(--swatch);
}

.case__swatch code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.7rem;
  color: var(--cream-dim);
}

.case__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3.9fr) minmax(0, 1fr);
  align-items: end;
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  margin-top: clamp(1.8rem, 4vw, 3rem);
}

.case__stage::before {
  content: "";
  position: absolute;
  inset: -6% 0 -14%;
  background: radial-gradient(55% 62% at 50% 58%, color-mix(in srgb, var(--case-glow, var(--accent)) 20%, transparent), transparent 72%);
  filter: blur(2px);
  pointer-events: none;
}

.device {
  position: relative;
  border-radius: 14px;
  background: linear-gradient(165deg, color-mix(in oklab, var(--color-main-raised) 88%, white), var(--color-main-dark));
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-deep);
}

.device__screen {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  container-type: size;
}

/* Auto-scroll the screenshot: the image is full-width (taller than the screen),
   so it scrolls from top to bottom and back in a slow loop — the v2 DevicePreview
   auto-scroll feel. translateY % is relative to the image's own height; cqh is the
   screen height, so it stops exactly when the bottom edge aligns. */
.device__screen img {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: auto;
  animation: device-scroll 14s var(--ease-lux) infinite alternate;
}

@keyframes device-scroll {
  0%,
  12% {
    transform: translateY(0);
  }
  88%,
  100% {
    transform: translateY(calc(-100% + 100cqh));
  }
}

@media (prefers-reduced-motion: reduce) {
  .device__screen img {
    animation: none;
  }
}

.device--laptop {
  width: 100%;
  padding: clamp(0.45rem, 0.9vw, 0.85rem);
  padding-bottom: clamp(0.6rem, 1.2vw, 1.1rem);
  z-index: 1;
}

.device--laptop .device__screen {
  aspect-ratio: 1440 / 900;
}

.device--laptop::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(clamp(0.45rem, 0.9vw, 0.85rem) * -1);
  transform: translateX(-50%);
  width: 112%;
  height: clamp(0.45rem, 0.9vw, 0.85rem);
  border-radius: 0 0 1.1rem 1.1rem;
  background: linear-gradient(180deg, color-mix(in oklab, var(--color-main-raised) 75%, white), var(--color-main-dark));
  border: 1px solid var(--line-gold);
  border-top: none;
}

.device--phone {
  width: 100%;
  padding: clamp(0.3rem, 0.7vw, 0.55rem);
  border-radius: clamp(1.2rem, 2.4vw, 2rem);
  z-index: 2;
}

.device--phone .device__screen {
  aspect-ratio: 390 / 844;
  border-radius: clamp(0.9rem, 1.9vw, 1.55rem);
}

/* Fixed chat overlay inside a device screen — --u maps 1 on-page px to cqw. */
.chat-cluster {
  position: absolute;
  right: calc(28 * var(--u));
  bottom: calc(28 * var(--u));
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: calc(12 * var(--u));
}

.device--laptop {
  --u: 0.06944cqw;
}

.device--phone {
  --u: 0.25641cqw;
}

.device--phone .chat-cluster {
  right: calc(18 * var(--u));
  bottom: calc(18 * var(--u));
}

.chat-cluster .chat-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: calc(44 * var(--u));
  padding: calc(10 * var(--u)) calc(18 * var(--u));
  border-radius: 999px;
  background: var(--chat-pill, var(--color-secondary));
  color: var(--chat-ink, var(--on-accent));
  font-size: calc(14 * var(--u));
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 calc(6 * var(--u)) calc(16 * var(--u)) calc(-4 * var(--u)) rgba(0, 0, 0, 0.4);
}

.chat-cluster .chat-bubble {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(56 * var(--u));
  height: calc(56 * var(--u));
  border-radius: 50%;
  background: var(--bubble, var(--color-main));
  color: #fff;
  box-shadow: 0 calc(8 * var(--u)) calc(20 * var(--u)) calc(-4 * var(--u)) rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.chat-cluster .chat-bubble svg {
  width: calc(24 * var(--u));
  height: calc(24 * var(--u));
}

@media (max-width: 860px) {
  .case__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .case__stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(2.5rem, 7vw, 3.25rem);
  }
  .device--laptop {
    width: 100%;
  }
  .device--phone {
    width: min(58%, 17rem);
  }
}
