/* =============================================================================
   Viktor Hirt · Malerbetrieb Westerstede
   Design system: "Modern Craftsman / Warm" — warm neutrals, cobalt-blue accent
   from the logo, sparse brush-stroke motif. Light mode, committed.
   Foto-frei: Farbe selbst ist das Bildmaterial (Farbfächer, Farbwelten,
   Farbchips, generative Wellen/Pinselstriche) — keine Fotos nötig.
   Author notes:
   - All motion is transform/opacity only and respects prefers-reduced-motion.
   - Content is fully visible without JS; JS only enhances (see .no-js fallbacks).
   ========================================================================== */

/* ---------- 1. Tokens ------------------------------------------------------ */
:root {
  color-scheme: light;

  /* Surfaces */
  --bg:          #F6F2EA;   /* warm bone page background */
  --surface:     #FFFFFF;
  --surface-2:   #EFE8D8;   /* sand — alternating sections, insets */
  --surface-3:   #E7DEC9;
  --line:        #E1D8C4;   /* hairlines / borders */
  --line-strong: #CFC3A6;

  /* Ink */
  --ink:    #211D16;        /* headings / primary text  (16.9:1 on --bg) */
  --ink-2:  #574F3D;        /* body / secondary text     (6.9:1 on --bg) */
  --ink-3:  #7A705A;        /* muted captions            (4.6:1 on --bg) */

  /* Brand — cobalt blue from the logo */
  --brand:      #1C3F94;    /* links, primary button bg  (8.6:1 on white) */
  --brand-600:  #16336F;    /* hover / pressed */
  --brand-100:  #E9EEF8;    /* tint fills */
  --brand-050:  #F2F5FB;

  /* Warm graphic accents from the brush stroke — decorative / large only */
  --brick: #B83C22;         /* red   — 5.0:1 on white, ok for large/bold text */
  --gold:  #E0A014;         /* yellow — DECORATIVE ONLY, never as text on light */

  /* Feedback */
  --ok:    #1F7A46;
  --warn:  #B5641A;
  --err:   #B42318;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Shadow — soft, warm-tinted */
  --sh-1: 0 1px 2px rgba(33, 29, 22, .06), 0 1px 1px rgba(33, 29, 22, .04);
  --sh-2: 0 4px 12px -4px rgba(33, 29, 22, .12), 0 2px 6px -3px rgba(33, 29, 22, .08);
  --sh-3: 0 22px 48px -20px rgba(28, 39, 60, .28), 0 6px 16px -10px rgba(33, 29, 22, .12);

  /* Spacing (4 / 8 rhythm) */
  --s-1: .25rem; --s-2: .5rem;  --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem;   --s-8: 3rem;   --s-10: 4rem;
  --section-y: clamp(4rem, 9vw, 7.25rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);

  /* Type */
  --font-display: "Calistoga", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs--1: clamp(.8rem, .78rem + .1vw, .875rem);
  --fs-0:  1.0625rem;                      /* 17px body */
  --fs-1:  clamp(1.15rem, 1.05rem + .4vw, 1.35rem);
  --fs-2:  clamp(1.45rem, 1.25rem + .8vw, 1.9rem);
  --fs-3:  clamp(1.9rem, 1.55rem + 1.5vw, 2.75rem);
  --fs-4:  clamp(2.4rem, 1.9rem + 2.6vw, 4rem);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .18, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-1: .18s;
  --dur-2: .32s;
  --dur-3: .6s;

  --z-header: 100;
  --z-menu: 200;
  --z-top: 300;
}

/* ---------- 2. Reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  overflow-x: hidden;           /* contains the off-canvas mobile drawer */
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-0);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-600); }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, textarea, select { font: inherit; }
:target { scroll-margin-top: 6rem; }

::selection { background: var(--brand); color: #fff; }

/* Visible focus — never removed */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
.no-js [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ---------- 3. Layout helpers ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--sand { background: var(--surface-2); }
.section--ink {
  background: #1A2A4A;
  color: #D9E0EE;
}
.section--ink h2, .section--ink h3, .section--ink .eyebrow { color: #fff; }

.stack > * + * { margin-top: var(--s-4); }
.grid { display: grid; gap: var(--s-5); }

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

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100%;
  z-index: var(--z-top);
  background: var(--surface);
  color: var(--brand);
  padding: .7rem 1rem;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-2);
  font-weight: 600;
}
.skip-link:focus { top: var(--s-4); }

/* ---------- 4. Typographic blocks ---------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-size: var(--fs--1);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--brick);
  border-radius: 2px;
}
.section__head {
  max-width: 46ch;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section__head h2 { font-size: var(--fs-3); margin-top: .6rem; }
.section__head p { margin-top: var(--s-4); font-size: var(--fs-1); color: var(--ink-2); }
.lede { font-size: var(--fs-1); color: var(--ink-2); }

/* ---------- 5. Buttons ------------------------------------------------ */
.btn {
  --_bg: var(--brand);
  --_fg: #fff;
  --_shadow: var(--sh-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.5rem;
  min-height: 48px;
  border-radius: var(--r-pill);
  background: var(--_bg);
  color: var(--_fg);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.15;
  white-space: nowrap;
  letter-spacing: .005em;
  text-decoration: none;
  box-shadow: var(--_shadow);
  transition: transform var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* Colour variants — each owns its own tokens so states never collide */
.btn--ghost {
  --_bg: transparent;
  --_fg: var(--brand);
  --_shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--wa { --_bg: #1FA855; --_fg: #fff; }

/* Hover only on devices that truly hover — prevents "stuck" dark state after a tap */
@media (hover: hover) {
  .btn { will-change: transform; }
  .btn:hover { --_bg: var(--brand-600); transform: translateY(-2px); --_shadow: var(--sh-2); }
  .btn--ghost:hover { --_bg: var(--brand-050); --_fg: var(--brand-600); --_shadow: inset 0 0 0 1.5px var(--brand); }
  .btn--wa:hover { --_bg: #167f3f; }
}

/* Press feedback for everyone (touch + mouse) */
.btn:active { transform: translateY(0) scale(.985); }

.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform var(--dur-1) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. Header / Nav ---------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-bottom-color: var(--line);
  box-shadow: var(--sh-1);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 4.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand__stroke {
  width: clamp(250px, 34vw, 460px);
  height: auto;
  display: block;
  flex: none;
  /* grafik/pinselstrich.png ist freigestellt (transparent) – kein Blend-Trick nötig */
}
@media (max-width: 40rem) {
  .brand { gap: .55rem; }
  .brand__stroke { width: 250px; }
}
.brand__mark {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--r-xs);
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  box-shadow: var(--sh-1);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.brand__sub { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.9rem); }
.nav__link {
  position: relative;
  font-weight: 500;
  font-size: .98rem;
  color: var(--ink-2);
  text-decoration: none;
  padding: .4rem 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav__link[aria-current="true"] { color: var(--ink); }

.header__cta { display: inline-flex; gap: .6rem; align-items: center; }
.nav__drawer-cta { display: none; }
.header__phone {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .88rem; white-space: nowrap;
  color: var(--ink); text-decoration: none;
  padding: .4rem .3rem;
}
.header__phone svg { width: 1.15em; height: 1.15em; color: var(--brand); flex: none; }
.header__phone:hover { color: var(--brand); }
.header__cta .btn { padding: .68rem 1.15rem; font-size: .9rem; min-height: 42px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--r-xs);
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }

/* ---------- 7. Hero ------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section-y);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}
.hero__eyebrow { margin-bottom: 1.25rem; }
.hero h1 {
  font-size: var(--fs-4);
  letter-spacing: -0.02em;
}
.hero__sub {
  margin-top: 1.5rem;
  font-size: var(--fs-1);
  max-width: 44ch;
  color: var(--ink-2);
}
.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}
.hero__trust {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
}
.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs--1);
  font-weight: 500;
  color: var(--ink-2);
}
.hero__trust svg { width: 1.1em; height: 1.1em; color: var(--ok); flex: none; }

.hero__media { position: relative; }

/* Farbfächer-Studio: Wand + Fächer ersetzen das Hero-Foto */
.studio { margin-bottom: clamp(1.5rem, 4vw, 2rem); }
.studio__wall {
  --wall: #637D96;
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--wall);
  box-shadow: var(--sh-3), inset 0 0 0 1px rgba(0, 0, 0, .06);
  transition: background-color .5s var(--ease);
}
.studio__paint {
  position: absolute; inset: 0;
  background: var(--wall-next, var(--wall));
  clip-path: inset(0 100% 0 0);
}
.studio__roller {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 18px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45) 45%, rgba(0, 0, 0, .12) 60%, transparent);
  pointer-events: none;
}
.studio.is-rolling .studio__paint { animation: roll .9s var(--ease) forwards; }
.studio.is-rolling .studio__roller { animation: rollBar .9s var(--ease) forwards; }
@keyframes roll { to { clip-path: inset(0 0 0 0); } }
@keyframes rollBar {
  0%   { left: 0; opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(100% - 18px); opacity: 0; }
}
.studio__texture {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  mix-blend-mode: soft-light;
  opacity: .9;
  pointer-events: none;
}
.studio__chip {
  position: absolute;
  top: clamp(.75rem, 2.5vw, 1.25rem);
  left: clamp(.75rem, 2.5vw, 1.25rem);
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .95rem .6rem .6rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-2);
  line-height: 1.2;
}
.studio__dot {
  width: 2rem; height: 2rem; flex: none;
  border-radius: 50%;
  background: var(--wall);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
  transition: background-color .5s var(--ease);
}
.studio__label { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.studio__chip strong { display: block; font-size: .92rem; color: var(--ink); font-weight: 600; }

/* Der Fächer — Streifen drehen sich um einen gemeinsamen Niet */
.fan {
  --n: 8;
  position: absolute;
  right: clamp(-.5rem, -1.5vw, -1.5rem);
  bottom: clamp(-2.25rem, -3vw, -1.25rem);
  width: 17em; height: 15.5em;
  font-size: clamp(10px, 1.25vw + 4px, 17px);
  pointer-events: none;           /* nur die Streifen sind klickbar */
}
.fan__blade {
  --a: calc((var(--k) - (var(--n) - 1) / 2) * 8.5deg);
  --lift: 0em;
  position: absolute;
  left: 50%; bottom: .6em;
  width: 3.2em; height: 14em;
  margin-left: -1.6em;
  padding: 0;
  border-radius: .55em;
  background:
    linear-gradient(#FBFAF6 0 1.9em, var(--sw) 1.9em);
  box-shadow: 0 1px 2px rgba(33, 29, 22, .18), inset 0 0 0 1px rgba(0, 0, 0, .08);
  transform-origin: 50% calc(100% - 1.5em);
  transform: rotate(var(--a)) translateY(var(--lift));
  transition: transform .45s var(--ease-out), box-shadow var(--dur-2) var(--ease);
  pointer-events: auto;
  cursor: pointer;
}
.fan__code {
  position: absolute;
  left: 0; right: 0; top: .75em;
  font-size: .72em;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.fan__blade[aria-pressed="true"] {
  --lift: -2em;
  box-shadow: 0 10px 22px -8px rgba(33, 29, 22, .45), inset 0 0 0 1px rgba(0, 0, 0, .08), inset 0 0 0 .2em #fff;
}
@media (hover: hover) {
  .fan__blade:not([aria-pressed="true"]):hover { --lift: -.8em; }
}
.fan__blade:focus-visible { outline-offset: 3px; border-radius: .55em; }
.fan__rivet {
  position: absolute;
  left: 50%; bottom: .6em;
  width: 1.1em; height: 1.1em;
  margin: 0 0 .95em -.55em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #B9B2A2 60%, #8F8776);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  z-index: 1;
}

.hero__badge {
  position: absolute;
  left: clamp(-.5rem, -2vw, -1.75rem);
  bottom: clamp(1rem, 4vw, 2.25rem);
  z-index: 2;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--sh-2);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  max-width: 15rem;
}
.hero__badge strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); line-height: 1; }
.hero__badge span { font-size: var(--fs--1); color: var(--ink-3); }
.hero__badge .dot {
  width: 2.6rem; height: 2.6rem; flex: none;
  border-radius: 50%;
  background: var(--brand-100);
  display: grid; place-items: center;
  color: var(--brand);
}
.hero__badge .dot svg { width: 1.4rem; height: 1.4rem; }

/* Generative Wellen (Hero + Zahlen-Band): zwei Kopien je Reihe → nahtloser Loop */
.waves {
  position: absolute;
  z-index: -1;
  left: 0; bottom: 0;
  width: 100%; height: clamp(4rem, 9vw, 7.5rem);
  overflow: hidden;
  pointer-events: none;
}
.waves__row { animation: waveDrift 38s linear infinite; }
.waves__row--1 { fill: var(--brand-100); }
.waves__row--2 { fill: color-mix(in srgb, var(--gold) 16%, var(--bg)); animation-duration: 27s; animation-direction: reverse; }
.waves__row--3 { fill: var(--surface-2); animation-duration: 46s; }
@keyframes waveDrift { to { transform: translateX(-1200px); } }

.hero__blob {
  position: absolute;
  z-index: -1;
  width: 46vw; max-width: 520px; aspect-ratio: 1;
  right: -12vw; top: -10vw;
  background: radial-gradient(circle at 30% 30%, var(--brand-100), transparent 70%);
  filter: blur(10px);
}

/* ---------- 8. Logos / trust bar --------------------------------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding-block: 1rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee__track span {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink-3);
  white-space: nowrap;
}
.marquee__track span::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 9. Services ------------------------------------------- */
.services__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
@media (min-width: 62rem) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
}
.svc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.svc:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: var(--line-strong);
}
.svc__icon {
  width: 3rem; height: 3rem;
  border-radius: var(--r-sm);
  background: var(--brand-100);
  color: var(--brand);
  display: grid; place-items: center;
  transition: background-color var(--dur-2) var(--ease);
}
.svc__icon svg { width: 1.6rem; height: 1.6rem; }
.svc:hover .svc__icon { background: var(--brand); color: #fff; }
.svc h3 { font-size: var(--fs-1); }
.svc p { font-size: .96rem; color: var(--ink-2); }

/* ---------- 10. Process ----------------------------------------- */
.steps {
  counter-reset: step;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.step {
  list-style: none;
  position: relative;
  padding: 1.75rem 1.5rem 1.6rem;
  background: var(--surface);
  border-radius: var(--r);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
/* Nummer als Farbklecks in der Farbe des Schritts */
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 3.6rem; height: 3.4rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: #fff;
  line-height: 1;
  background: var(--sw, var(--brand));
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  box-shadow: inset -4px -5px 0 rgba(0, 0, 0, .1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.step:nth-child(2)::before { border-radius: 45% 55% 42% 58% / 60% 44% 56% 40%; }
.step:nth-child(3)::before { border-radius: 52% 48% 60% 40% / 42% 58% 44% 56%; }
.step:nth-child(4)::before { border-radius: 40% 60% 48% 52% / 55% 45% 58% 42%; }
.step h3 { font-size: var(--fs-2); margin-top: 1rem; }
.step p { font-size: .98rem; margin-top: .5rem; color: var(--ink-2); }
@media (min-width: 60rem) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -1.4rem; top: 3.2rem;
    width: 2.8rem; height: 10px;
    z-index: 1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 10'%3E%3Cpath d='M2 6c8-4 14 1 22-1s12-4 20-1 8 2 10 1' fill='none' stroke='%23CFC3A6' stroke-width='3' stroke-linecap='round' stroke-dasharray='5 5'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

/* ---------- 11. Farbwelten ------------------------------------ */
.fw {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 62rem) { .fw { grid-template-columns: 1.15fr .85fr; } }
.fw__scene {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-3);
  background: var(--surface);
}
.fw__scene svg { width: 100%; height: auto; }
.fw-ceil { fill: #F7F5F0; }
.fw-part { transition: fill .6s var(--ease), opacity var(--dur-2) var(--ease); }
.fw-wall   { fill: var(--c-wall); }
.fw-accent { fill: var(--c-accent); }
.fw-floor  { fill: var(--c-floor); }
.fw-trim   { fill: var(--c-trim); }
/* Beim Überfahren eines Chips wird der passende Bereich hervorgehoben */
.fw__scene[data-focus] .fw-part { opacity: .35; }
.fw__scene[data-focus="wall"] .fw-wall,
.fw__scene[data-focus="accent"] .fw-accent,
.fw__scene[data-focus="floor"] .fw-floor,
.fw__scene[data-focus="trim"] .fw-trim { opacity: 1; }

.fw__tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.no-js .fw__tabs { display: none; }
.fw__tab {
  padding: .6rem 1.05rem;
  min-height: 44px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink-2);
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.fw__tab:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--brand); }
.fw__tab[aria-selected="true"] { background: var(--brand); color: #fff; box-shadow: none; }
.fw__set[hidden] { display: none; }
.fw__set:not([hidden]) { animation: fadeUp var(--dur-3) var(--ease) both; }
.fw__mood { font-size: var(--fs-1); color: var(--ink); line-height: 1.5; }
.fw__note { margin-top: 1.25rem; font-size: var(--fs--1); color: var(--ink-3); }

.chips { display: grid; gap: .6rem; margin-top: 1.4rem; }
@media (min-width: 30rem) { .chips { grid-template-columns: 1fr 1fr; } }
.chips li {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  line-height: 1.25;
  transition: border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.chips li:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.chips strong { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.chips li span span { font-size: .92rem; color: var(--ink); font-weight: 500; }
.chip {
  display: inline-block;
  width: 2.6rem; height: 2.6rem; flex: none;
  border-radius: var(--r-xs);
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}
.chip--sm {
  width: .95rem; height: .95rem;
  border-radius: 3px;
  vertical-align: -.12em;
  margin-right: .35rem;
}

/* ---------- 11b. Referenzen als Text-Cases ------------------------ */
.cases {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}
.case {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0 1.5rem 1.4rem;
  overflow: hidden;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.case:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.case__band {
  position: relative;
  display: flex;
  height: 4.5rem;
  margin: 0 -1.5rem 1.25rem;
}
.case__band span { flex: 1; background: var(--sw); }
.case__band span + span { flex: .45; }
/* Pinselkante unten am Farbband */
.case__band::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 14px;
  background: var(--surface);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M0 14V8c20-4 34 2 52-1s30-6 48-2 26 5 44 1 32-5 50-1 28 4 46 0 42-3 60 1v8Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M0 14V8c20-4 34 2 52-1s30-6 48-2 26 5 44 1 32-5 50-1 28 4 46 0 42-3 60 1v8Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.case__band--texture span {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .25) 0 2px, transparent 3px) 0 0 / 23px 19px,
    radial-gradient(circle at 70% 60%, rgba(0, 0, 0, .12) 0 1.5px, transparent 2.5px) 0 0 / 17px 21px,
    linear-gradient(120deg, rgba(255, 255, 255, .18), transparent 60%),
    var(--sw);
}
.case__kind {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--fs--1); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
}
.case__kind svg { width: 1.15rem; height: 1.15rem; flex: none; }
.case h3 { font-size: var(--fs-1); margin-top: .45rem; }
.case > p:not(.case__kind) { margin-top: .5rem; font-size: .95rem; color: var(--ink-2); }
.case__facts {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: .9rem 1.75rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line-strong);
}
.case > p + .case__facts { margin-top: 1.1rem; }
.case__facts dt { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.case__facts dd { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); line-height: 1.25; }
.case__tone { grid-column: 1 / -1; }
.case__tone dd { font-family: var(--font-body); font-size: .92rem; font-weight: 600; }

/* ---------- 12. About ------------------------------------------- */
.about__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 60rem) { .about__grid { grid-template-columns: .8fr 1.2fr; } }
.about__media { position: relative; isolation: isolate; max-width: 26rem; }
.about__grid h2 { font-size: var(--fs-3); margin: .6rem 0 1.25rem; }
.about__card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--r-lg);
  background: var(--brand);
  color: #DCE3F2;
  box-shadow: var(--sh-3);
}
.about__strokes { position: absolute; inset: 0; width: 100%; height: 100%; }
.about__card > :not(svg) { position: relative; }
.about__since {
  margin-bottom: auto;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2.4rem + 5vw, 5.5rem);
  line-height: .95;
  color: #fff;
  padding-top: 38%;
}
.about__since span { display: block; font-family: var(--font-body); font-size: .9rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #BFCBE6; margin-bottom: .35rem; }
.about__name { font-family: var(--font-display); font-size: var(--fs-2); color: #fff; line-height: 1.1; }
.about__role { font-size: .92rem; color: #BFCBE6; margin-top: .2rem; }
.about__seals { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .18); display: grid; gap: .5rem; }
.about__seals li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.about__seals svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--gold); }
.about__media::after {
  content: "";
  position: absolute; inset: auto -1rem -1rem auto;
  width: 60%; height: 60%;
  border: 2px solid var(--brick);
  border-radius: var(--r-lg);
  z-index: -1;
}
.quote {
  font-family: var(--font-display);
  font-size: var(--fs-2);
  line-height: 1.3;
  color: var(--ink);
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--brick);
}
.pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.pills li {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs--1);
  font-weight: 600;
  color: var(--ink-2);
}
.pills li svg { width: 1.05em; height: 1.05em; color: var(--ok); flex: none; }

/* ---------- 13. Stats ----------------------------------------- */
.stats-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(4.5rem, 10vw, 8rem); }
.waves--ink { top: auto; height: clamp(5rem, 12vw, 9rem); z-index: -1; }
.waves--ink .waves__row--1 { fill: rgba(255, 255, 255, .04); }
.waves--ink .waves__row--2 { fill: rgba(224, 160, 20, .07); }
.stats {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  text-align: center;
}
.stats > div { position: relative; }
@media (min-width: 48rem) {
  .stats > div + div::before {
    content: "";
    position: absolute; left: calc(var(--s-5) / -2); top: 12%; bottom: 12%;
    width: 1px; background: rgba(255, 255, 255, .14);
  }
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.2rem + 3.6vw, 4.6rem);
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label { margin: .6rem auto 0; max-width: 18ch; font-size: .98rem; color: #C2CBDC; }
.stat__num::after {
  content: "";
  display: block;
  width: 2.5rem; height: 4px;
  margin: .9rem auto 0;
  border-radius: 4px;
  background: var(--gold);
}
.stats > div:nth-child(2) .stat__num::after { background: #C1876B; }
.stats > div:nth-child(3) .stat__num::after { background: #89AC76; }
.stats > div:nth-child(4) .stat__num::after { background: #8FA6D8; }

/* ---------- 14. Testimonials --------------------------------- */
.tstm__grid { display: grid; gap: var(--s-5); }
@media (min-width: 56rem) {
  .tstm__grid { grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; }
  .tstm--feature { grid-row: span 2; }
}
.tstm {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.6rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.tstm__stars { display: inline-flex; gap: .15rem; color: var(--gold); }
.tstm--feature {
  position: relative;
  overflow: hidden;
  justify-content: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: var(--sh-3);
}
.tstm--feature blockquote p { font-family: var(--font-display); font-size: var(--fs-2); line-height: 1.3; color: #fff; }
.tstm--feature .tstm__name { color: #fff; }
.tstm--feature .tstm__meta { color: #BFCBE6; }
.tstm--feature .tstm__avatar { background: rgba(255, 255, 255, .14); color: #fff; }
.tstm--feature .tstm__who { margin-top: 1rem; }
.tstm__mark {
  position: absolute;
  top: -.2em; right: .08em;
  font-family: var(--font-display);
  font-size: 13rem;
  line-height: 1;
  color: rgba(255, 255, 255, .08);
  pointer-events: none;
}
.tstm__stars svg { width: 1.1rem; height: 1.1rem; }
.tstm p { color: var(--ink); font-size: 1rem; }
.tstm__who { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.tstm__avatar {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--brand-100); color: var(--brand);
  display: grid; place-items: center;
  font-weight: 700; font-family: var(--font-display);
}
.tstm__name { font-weight: 600; color: var(--ink); font-size: .95rem; }
.tstm__meta { font-size: var(--fs--1); color: var(--ink-3); }

/* ---------- 15. FAQ ---------------------------------------- */
.faq { max-width: 52rem; margin-inline: auto; }
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  font-family: var(--font-display);
  font-size: var(--fs-1);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .chev {
  flex: none;
  width: 1.6rem; height: 1.6rem;
  color: var(--brand);
  transition: transform var(--dur-2) var(--ease);
}
.faq__item[open] summary .chev { transform: rotate(45deg); }
.faq__body { padding-bottom: 1.4rem; color: var(--ink-2); max-width: 62ch; }
.faq__item[open] .faq__body { animation: fadeUp var(--dur-3) var(--ease) both; }

/* ---------- 16. Contact ----------------------------------- */
.contact__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 60rem) { .contact__grid { grid-template-columns: 1.1fr .9fr; align-items: center; } }

.contact__actions { display: flex; flex-direction: column; gap: var(--s-4); margin-top: var(--s-5); }
@media (min-width: 30rem) { .contact__actions { flex-direction: row; flex-wrap: wrap; } }

.info-list { margin-top: var(--s-6); display: grid; gap: var(--s-4); }
.info-list > div { display: flex; gap: .9rem; align-items: flex-start; }
.info-list svg { width: 1.4rem; height: 1.4rem; color: var(--brand); flex: none; margin-top: .1rem; }
.info-list dt { font-weight: 600; color: var(--ink); font-size: .95rem; }
.info-list dd { color: var(--ink-2); font-size: .95rem; }
.info-list a { text-decoration: none; }
.info-list a:hover { text-decoration: underline; }

.contact__grid h2 { font-size: var(--fs-3); margin: .6rem 0 1rem; }
.contact__card {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}
.contact__card .info-list { margin-top: 0; }

/* ---------- 17. Footer ---------------------------------- */
.footer {
  background: #17130E;
  color: #B7AE9C;
  padding-block: var(--s-10) var(--s-6);
  font-size: .92rem;
}
.footer a { color: #D9D1BF; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  padding-bottom: var(--s-6);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: #8B8371; }
.footer__brand p { margin-top: 1rem; max-width: 30ch; }
.footer ul.stack-sm > li { margin-bottom: .5rem; }
.footer__bottom {
  padding-top: var(--s-5);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: #8B8371;
}
.footer__bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer__credit { white-space: nowrap; }
.footer__bottom .footer__credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); }
.footer__bottom .footer__credit a:hover { color: #fff; text-decoration-color: currentColor; }

/* ---------- 18. Reveal animation -------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

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

/* Hero entrance (CSS-driven, runs without JS too) */
.hero .anim-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp .8s var(--ease-out) forwards;
}
.hero .anim-up:nth-child(1) { animation-delay: .05s; }
.hero .anim-up:nth-child(2) { animation-delay: .15s; }
.hero .anim-up:nth-child(3) { animation-delay: .25s; }
.hero .anim-up:nth-child(4) { animation-delay: .35s; }
.hero .anim-up:nth-child(5) { animation-delay: .45s; }
.hero__media { opacity: 0; transform: translateY(30px) scale(.98); animation: fadeUp 1s .2s var(--ease-out) forwards; }


/* ---------- 19. Mobile nav ------------------------------- */
@media (max-width: 60rem) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 22rem);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 6rem 1.75rem 2.5rem;
    background: var(--surface);
    box-shadow: var(--sh-3);
    transform: translateX(100%);
    transition: transform var(--dur-2) var(--ease), visibility var(--dur-2);
    visibility: hidden;
    z-index: var(--z-menu);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }
  .header__cta .btn,
  .header__phone--desktop { display: none; }
  .nav__drawer-cta {
    display: block;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
  }
  .nav__drawer-cta .header__phone { font-size: 1.1rem; padding-left: 0; margin-bottom: 1rem; }
  .nav__drawer-cta { display: grid; gap: .75rem; border-top: 0; padding-top: 0; }
  .nav-toggle { position: relative; z-index: calc(var(--z-menu) + 1); }
  body.nav-open { overflow: hidden; }
  /* backdrop-filter macht den Header zum Bezugsrahmen für position:fixed – solange das Menü
     offen ist, abschalten, damit die Schublade die volle Höhe bekommt; Header über den Schleier legen */
  body.nav-open .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
    z-index: calc(var(--z-menu) + 1);
  }
  .nav-toggle.is-open .icon-open { display: none; }
  .nav-toggle.is-open .icon-close { display: block; }
  .nav-scrim {
    position: fixed; inset: 0;
    background: rgba(20,17,12,.4);
    opacity: 0; pointer-events: none;
    transition: opacity var(--dur-2) var(--ease);
    z-index: var(--z-menu);
  }
  .nav-scrim.is-open { opacity: 1; pointer-events: auto; }
}

@media (max-width: 40rem) {
  .hero__badge { position: static; margin-top: 1rem; max-width: none; }
  .studio { margin-bottom: 0; }
  /* Badge steht hier unter der Wand → Fächer an der Wandunterkante ausrichten */
  .studio { container-type: inline-size; }
  .fan { right: .1rem; bottom: auto; top: calc(100cqw * 11 / 16 - 15.5em - .1rem); }
  .studio__label { display: none; }
  .header__phone span { display: none; }
}

/* ---------- 20. Reduced motion -------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero .anim-up, .hero__media { opacity: 1 !important; transform: none !important; }
  .marquee__track, .waves__row { animation: none !important; }
  .studio__paint, .studio__roller { animation: none !important; }
}

/* ---------- 21. Print ---------------------------------- */
@media print {
  .header, .nav, .marquee, .fan, .fw__tabs, .waves, .footer__bottom nav, .hero__blob, .jobmodal { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
}

/* ---------- 21b. Stellenanzeige-Popup ------------------ */
.jobmodal {
  position: fixed;
  inset: 0;
  z-index: var(--z-top);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-2) var(--ease), visibility var(--dur-2);
}
.jobmodal.is-open { opacity: 1; visibility: visible; }
/* hidden am Markup schaltet die Stellenanzeige komplett ab (JS überspringt sie dann auch) */
.jobmodal[hidden] { display: none; }
body.jobmodal-open { overflow: hidden; }

.jobmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 12, .55);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}

.jobmodal__card {
  position: relative;
  z-index: 1;
  width: min(30rem, 100%);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  padding: clamp(1.6rem, 5vw, 2.5rem);
  max-height: calc(100svh - 2.5rem);
  overflow-y: auto;
  transform: translateY(16px) scale(.97);
  transition: transform .35s var(--ease-out);
}
.jobmodal.is-open .jobmodal__card { transform: none; }
.jobmodal__card h2 { font-size: var(--fs-2); margin-top: .55rem; }
.jobmodal__card > p { margin-top: .9rem; color: var(--ink-2); }

.jobmodal__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.jobmodal__actions .btn--ghost { --_bg: transparent; }

.jobmodal__close {
  position: absolute;
  top: .6rem;
  right: .6rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-3);
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.jobmodal__close:hover { background: var(--surface-2); color: var(--ink); }
.jobmodal__close svg { width: 1.25rem; height: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  .jobmodal__backdrop,
  .jobmodal__card { transition: none; }
  .jobmodal.is-open .jobmodal__card { transform: none; }
}

/* ---------- 22. Legal pages --------------------------- */
.legal { max-width: 46rem; margin-inline: auto; padding-block: clamp(3rem, 8vw, 6rem); }
.legal h1 { font-size: var(--fs-3); margin-bottom: 1.5rem; }
.legal h2 { font-size: var(--fs-1); margin: 2.25rem 0 .6rem; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: .6rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal a { word-break: break-word; }
.legal .todo {
  background: #FFF7E6;
  border: 1px dashed var(--warn);
  color: #7A4E12;
  padding: .15rem .4rem;
  border-radius: var(--r-xs);
  font-size: .95em;
}
.legal__back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 2rem; font-weight: 600; text-decoration: none; }
.legal__back svg { width: 1.1em; height: 1.1em; }

/* ---------- 23. 404 ----------------------------------- */
.notfound { min-height: 55vh; display: flex; flex-direction: column; justify-content: center; }
.notfound__chips { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.notfound__chips .chip { width: 2.2rem; height: 2.2rem; border-radius: 50%; }
