/* Farbfläche (demo) — one stylesheet for the whole page.
   Visual idea: the page is a wall being worked on. Mid plaster grey, flat colour
   fields per section (no gradients: flat paint is flat), blue masking tape as the
   seam between them, stencil lettering like a site sign. The room colours in the
   drawing are the visitor's data, not the brand.
   Sections below are named like the data-sid in index.html. */

/* ======== FONTS — self-hosted, latin subset with äöüß; fallbacks metric-matched so the swap moves nothing ======== */
@font-face {
  font-family: "Saira Stencil One";
  src: url("fonts/sairastencil-latin.woff2?v=1071c187") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hankengrotesk-var-latin.woff2?v=c501f578") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
/* Measured in Chrome: the same sentence set in both faces, width ratio = size-adjust.
   Ascent/descent come from the webfont tables (hhea), divided by that ratio. */
@font-face {
  font-family: "Hanken Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 97.8%; ascent-override: 102.2%; descent-override: 31%; line-gap-override: 0%;
}
@font-face {
  font-family: "Stencil Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 104.3%; ascent-override: 108.8%; descent-override: 42.1%; line-gap-override: 0%;
}

/* ======== TOKENS — two neutrals (plaster, ink) + one accent (tape blue) ======== */
:root {
  --plaster: #CFCAC0;      /* the wall: page background, luminance ~200, on purpose not white */
  --plaster-hi: #DCD8CF;   /* a fresh coat of the same wall */
  --putty: #B3AC9F;        /* filler grey, the "what makes it expensive" field */
  --sheet: #F2EFE8;        /* paper: inputs, the plan taped to the wall */
  --ink: #1E1C1A;
  --ink-2: #48443D;        /* secondary text, only on plaster or sheet (AA there, not on putty) */
  --tape: #2B6CB3;         /* painter's tape; white text on it passes AA */
  --tape-deep: #1D5595;
  --err: #8C2A16;
  --gut: clamp(16px, 4vw, 56px);
  --display: "Saira Stencil One", "Stencil Fallback", Arial, sans-serif;
  --body: "Hanken Grotesk", "Hanken Fallback", Arial, sans-serif;
  --wdm-lang-bg: #1E1C1A; --wdm-lang-fg: #F2EFE8; --wdm-lang-border: #48443D; --wdm-lang-font: var(--body);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--plaster); color: var(--ink);
  font: 400 17px/1.55 var(--body); font-feature-settings: "tnum" 1;
  overflow-x: clip;            /* the rotated tape strips may poke past the edge; the page must never scroll sideways */
}
h1, h2 { font-family: var(--display); font-weight: 400; line-height: .98; margin: 0; letter-spacing: 0; }
h3 { font: 700 1.08rem/1.3 var(--body); margin: 0 0 .4em; }
p { margin: 0 0 .8em; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--tape); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; }
.field--tape :focus-visible, .field--ink :focus-visible { outline-color: var(--sheet); }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { left: -9999px; }
[hidden] { display: none !important; }

/* ======== SKIP LINK + DEMO NOTE — the note is a strip of tape across the top ======== */
.skip { position: absolute; left: 12px; top: -80px; z-index: 20; background: var(--ink); color: var(--sheet); padding: .6em 1em; }
.skip:focus { top: 12px; }
.demo-note {
  display: flex; align-items: center; gap: 12px;
  background: var(--tape); color: #fff; padding: 9px var(--gut);
  font-size: 14px; line-height: 1.45;
}
.demo-note p { margin: 0; flex: 1; }
.demo-note a { text-decoration-color: #fff; }
.demo-note__x {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center;
  background: transparent; border: 2px solid rgba(255,255,255,.55); border-radius: 2px; color: #fff; cursor: pointer;
}
.demo-note__x:hover { background: var(--tape-deep); }
.demo-note :focus-visible { outline-color: #fff; }

/* ======== KOPF — stencil wordmark left, links, the one button ======== */
.top {
  display: flex; align-items: center; gap: clamp(12px, 2.5vw, 36px);
  padding: 14px var(--gut); border-bottom: 2px solid var(--ink);
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__word { font: 400 clamp(1.5rem, 2.6vw, 2rem)/1 var(--display); }
.brand__sub { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.nav { display: flex; gap: clamp(14px, 2vw, 28px); font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--tape); }
.top__cta {
  background: var(--ink); color: var(--sheet); font-weight: 700; font-size: 15px;
  padding: 10px 16px; border-radius: 2px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
}
.top__cta:hover { background: var(--tape-deep); }
.lang-host { min-width: 58px; min-height: 30px; }   /* reserved before i18n.js fills it: no shift */
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 420px) { .brand__sub { display: none; } }

/* ======== BUTTONS — flat, square-cornered like a scraper blade ======== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.2em; border: 2px solid var(--ink); border-radius: 2px;
  font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--ink { background: var(--ink); color: var(--sheet); }
.btn--ink:hover { background: var(--tape-deep); border-color: var(--tape-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink-2); }
.btn--ghost:hover:not(:disabled) { background: var(--ink); color: var(--sheet); }
.btn--tape { background: var(--tape); color: #fff; border-color: var(--tape); }
.btn--tape:hover { background: var(--tape-deep); border-color: var(--tape-deep); }
.btn--line { background: transparent; color: var(--sheet); border-color: var(--sheet); }
.btn--line:hover { background: var(--sheet); color: var(--ink); }

/* ======== FIELDS + TAPE — full-bleed colour per section, blue tape as the seam ======== */
/* overflow-x: clip per field, not only on body: body's value is handed to the
   viewport, which still reports the torn tape ends as scroll width. */
.field { position: relative; padding: clamp(48px, 7vw, 96px) var(--gut); overflow-x: clip; }
.field--plaster { background: var(--plaster); }
.field--plaster-hi { background: var(--plaster-hi); }
.field--putty { background: var(--putty); }
.field--ink { background: var(--ink); color: var(--sheet); }
.field--tape { background: var(--tape); color: #fff; }

/* A torn strip of masking tape. clip-path draws the torn ends; the transform is
   the only thing that animates (peel-on), so it can never shift layout. */
.tape {
  position: absolute; display: block; height: 30px; width: min(380px, 58vw);
  background: var(--tape); opacity: .94; pointer-events: none;
  clip-path: polygon(0 12%, 2% 0, 97% 5%, 100% 16%, 98.4% 34%, 100% 52%, 98.6% 70%, 100% 90%, 97.4% 100%, 2.5% 95%, 0 82%, 1.5% 62%, 0 44%, 1.7% 27%);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.14), inset 0 -3px 0 rgba(0,0,0,.1);
  transform: rotate(-2deg); transform-origin: 0 50%;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}
.tape.is-armed { transform: rotate(-2deg) scaleX(0); }
.tape.is-armed.is-on { transform: rotate(-2deg) scaleX(1); }
.tape--seam { top: -15px; left: var(--gut); }
.tape--light { background: var(--sheet); }
.tape--corner { top: 18px; right: -30px; width: 150px; transform: rotate(38deg); transform-origin: 50% 50%; }
.tape--corner.is-armed { transform: rotate(38deg) scaleX(0); }
.tape--corner.is-armed.is-on { transform: rotate(38deg) scaleX(1); }

/* The label in the first screen is a piece of tape somebody wrote on. */
.tape-label { margin: 0 0 18px; }
.tape-label span {
  display: inline-block; background: var(--tape); color: #fff; padding: 6px 16px 6px 12px;
  font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  transform: rotate(-1.5deg);
  clip-path: polygon(0 8%, 3% 0, 97% 6%, 100% 30%, 98% 55%, 100% 92%, 96% 100%, 2% 94%, 0 70%, 1.5% 40%);
}

/* ======== RECHNER — intro: stencil headline across the top, the lead under it ======== */
.rechner { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 80px); }
.rechner__intro {
  display: grid; gap: 12px 48px; align-items: end; margin-bottom: clamp(24px, 3vw, 40px);
}
/* Set to run across the full width in one or two lines: the plan and the editor
   have to be on the first screen too, the headline only names what they do. */
/* min-height reserves 2 lines (line-height × 2) in each: js/i18n.js swaps this
   text after first paint for a non-German visitor, and English runs close
   enough in length to German (checked against lang/en.json) that 2 lines
   covers both — same fix as the room-chip/total reservations below, needed
   here because main.js's language load is now async (no more sync XHR). */
.rechner h1 { font-size: clamp(2.1rem, 3.9vw, 3.7rem); max-width: 26ch; min-height: 1.96em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 500; max-width: 36ch; margin: 0; min-height: 3.1em; }
@media (min-width: 1000px) {
  .rechner__intro { grid-template-columns: 1fr minmax(280px, 25rem); }
  .rechner__intro .tape-label { grid-column: 1 / -1; margin-bottom: 4px; }
}
.noscript { background: var(--sheet); padding: 16px; border-left: 6px solid var(--tape); }

/* ======== RECHNER — the working area: room buttons, editor, the plan on the wall ======== */
.calc { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .calc { grid-template-columns: minmax(330px, 440px) 1fr; column-gap: clamp(24px, 3vw, 48px); align-items: start; }
  /* The plan starts level with the room buttons, so it is on the first screen at 1440×900. */
  .rooms { grid-column: 1; grid-row: 1; }
  .editor { grid-column: 1; grid-row: 2; }
  .net { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 16px; }
}
/* min-height reserves the first room chip's row before main.js draws it into
   .rooms__list — same reasoning as .lang-host and .roomsum above: no shift. */
.rooms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 92px; }
.rooms__label { width: 100%; margin: 0; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.rooms__list { display: contents; }
/* Before main.js draws the first room chip, .rooms__list is empty and the
   "+ Raum hinzufügen" button (static HTML, always present) sits alone at the
   LEFT of the row; the chip then appears to its left and shoves it right — a
   real, measured horizontal shift (0.009, Lighthouse). An empty spacer box,
   sized like one room-btn and shown only while the list is :empty, holds that
   spot from first paint; it goes away the moment a real chip exists. */
.rooms__list:empty::before { content: ""; display: block; width: 138.72px; height: 52px; }
.room-btn {
  display: grid; text-align: left; gap: 1px; min-height: 52px; padding: 7px 12px;
  background: var(--sheet); border: 2px solid var(--ink); border-radius: 2px; cursor: pointer;
}
.room-btn__n { font-weight: 700; font-size: 15px; }
.room-btn__r { font-size: 13px; color: var(--ink-2); }
.room-btn[aria-pressed="true"] { background: var(--ink); color: var(--sheet); box-shadow: inset 0 5px 0 var(--tape); }
.room-btn[aria-pressed="true"] .room-btn__r { color: #CFCAC0; }
.room-btn:hover:not([aria-pressed="true"]) { background: var(--plaster-hi); }
.rooms__add { min-height: 52px; }

/* ======== RECHNER — editor: one room at a time, fieldsets ruled like a spec sheet ======== */
.editor { display: grid; gap: 18px; }
.editor__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.fs { border: 0; border-top: 2px solid var(--ink); margin: 0; padding: 10px 0 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.fs legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.fs:disabled { opacity: .5; }
.fs--dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fs--dims legend, .fs--dims .f--wide, .fs--dims .hint, .fs--dims .err { grid-column: 1 / -1; }
.f { display: grid; gap: 4px; font-size: 14px; font-weight: 600; min-width: 0; }
.f input, .f select, .f textarea, .step input {
  width: 100%; min-height: 46px; padding: 8px 10px; background: var(--sheet);
  border: 2px solid var(--ink-2); border-radius: 2px; font-size: 17px; font-weight: 500;
}
.f textarea { resize: vertical; min-height: 88px; }
.f input:focus-visible, .f select:focus-visible, .f textarea:focus-visible, .step input:focus-visible { border-color: var(--ink); }
[aria-invalid="true"] { border-color: var(--err) !important; box-shadow: inset 0 -3px 0 var(--err); }
.hint { font-size: 13.5px; color: var(--ink-2); margin: 0; width: 100%; }
.err { font-size: 14px; font-weight: 700; color: var(--err); margin: 0; width: 100%; }

/* Stepper: label, minus, number, plus — thumb-sized on a phone */
.step { display: grid; grid-template-columns: 1fr 44px 64px 44px; align-items: center; gap: 6px; width: 100%; font-weight: 600; font-size: 15px; }
.step input { text-align: center; padding: 8px 4px; }
.step__b {
  height: 46px; background: var(--sheet); border: 2px solid var(--ink-2); border-radius: 2px;
  font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer;
}
.step__b:hover { background: var(--ink); color: var(--sheet); }

/* Choice tiles: the native input stays (keyboard, screen readers), the label is the tile */
.rad, .chk {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px 6px 10px;
  background: var(--sheet); border: 2px solid var(--ink-2); border-radius: 2px; cursor: pointer;
  font-size: 15px; font-weight: 600; line-height: 1.25;
}
.rad input, .chk input { width: 18px; height: 18px; margin: 0; accent-color: var(--tape); flex: none; }
.rad:has(input:checked), .chk:has(input:checked) { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.rad:has(input:focus-visible), .chk:has(input:focus-visible) { outline: 3px solid var(--tape); outline-offset: 2px; }
.rad input:focus-visible, .chk input:focus-visible { outline: none; }
.editor__acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* ======== RECHNER — the net: a plan on paper, taped to the wall at two corners ======== */
.net { margin: 0; }
.net__stage {
  /* Plaster-grey, not paper-white: the fresh white coat must stand out from the
     sheet it is drawn on, or the roller pass paints white onto white. */
  position: relative; aspect-ratio: 4 / 3; background: var(--plaster-hi);
  border: 2px solid var(--ink); padding: clamp(8px, 1.5vw, 18px);
}
.net__stage::before, .net__stage::after {
  content: ""; position: absolute; top: -12px; width: 86px; height: 24px; background: var(--tape); opacity: .9;
  clip-path: polygon(0 15%, 4% 0, 96% 8%, 100% 30%, 97% 60%, 100% 88%, 94% 100%, 3% 92%, 0 65%, 2% 40%);
}
.net__stage::before { left: -18px; transform: rotate(-24deg); }
.net__stage::after { right: -18px; transform: rotate(22deg); }
.net__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.net figcaption { margin-top: 14px; }
.net__cap { font-size: 14px; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 899px) { .net { order: -1; } .rooms { order: -2; } .net__stage { aspect-ratio: 5 / 4; } }

/* ======== RECHNER — SVG parts of the net (class names set in main.js netSvg) ======== */
.n-bare { fill: url(#hatch); }
.n-hatch-bg { fill: #DCD7CD; }
.n-hatch { stroke: #ABA497; stroke-width: .035; }
.n-edge { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.n-fold { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 7 5; vector-effect: non-scaling-stroke; }
.n-win { fill: #A9BDD0; stroke: var(--tape); stroke-width: 4; vector-effect: non-scaling-stroke; }
.n-door { fill: #C9C2B6; stroke: var(--tape); stroke-width: 4; vector-effect: non-scaling-stroke; }
.n-sockel { fill: none; stroke: #6B6155; stroke-width: 5; vector-effect: non-scaling-stroke; }
.n-floor--vinyl { fill: #CDB696; }
.n-floor--parkett { fill: #B98F62; }
.n-floor--schleifen { fill: #D9C29A; }
.n-plank { fill: none; stroke: rgba(30, 28, 26, .28); stroke-width: 1; vector-effect: non-scaling-stroke; }
.n-t { font: 600 calc(var(--fs) * 1px) var(--body); fill: var(--ink); text-anchor: middle; dominant-baseline: middle; }
.n-big { font-family: var(--display); font-weight: 400; font-size: calc(var(--fs) * 1.7px); }
.n-soft { fill: var(--ink-2); font-weight: 500; }
.roller rect { fill: var(--ink); opacity: .55; }

/* One roller pass per coat: each coat group wipes in left to right, the bar rides the wet edge. */
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes roll { from { transform: translateX(0); } to { transform: translateX(calc(var(--w) * 1px)); } }
@keyframes gone { to { opacity: 0; } }
.coat { animation: wipe .8s cubic-bezier(.55, 0, .35, 1) both; animation-delay: calc(var(--i) * .8s + .1s); }
.roller { animation: roll .8s cubic-bezier(.55, 0, .35, 1) .1s var(--n) both, gone .2s calc(var(--n) * .8s + .1s) forwards; }

/* ======== RECHNER — this room's numbers under the plan ======== */
/* Reserved before main.js fills it, same as .lang-host above: no shift when the
   dictionary for an auto-detected language loads after first paint (measured
   CLS 2026-09-24, Lighthouse mobile — this box growing from empty pushed the
   editor form down). */
.roomsum { min-height: 6.6em; }
.roomsum__dl { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0 0 10px; }
.roomsum__dl div { display: grid; }
.roomsum__dl dt { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.roomsum__dl dd { margin: 0; font-size: 1.35rem; font-weight: 700; }
.roomsum__r { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0; padding-top: 10px; border-top: 2px solid var(--ink); }
.roomsum__r span { font-weight: 700; }
.roomsum__r strong { font: 400 clamp(1.6rem, 2.4vw, 2.1rem)/1.1 var(--display); }

/* Phone: the running total rides along the bottom while the editor scrolls */
.sticky-total { display: none; }
@media (max-width: 899px) {
  .sticky-total {
    position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    margin: 0 calc(var(--gut) * -1); padding: 12px var(--gut); background: var(--ink); color: var(--sheet);
    text-decoration: none; font-weight: 700; box-shadow: inset 0 4px 0 var(--tape);
  }
  .sticky-total strong { font: 400 1.35rem/1 var(--display); }
}

/* ======== AUFMASS — every room, the total, the drivers; one sheet, no boxes inside it ======== */
.aufmass {
  margin-top: clamp(40px, 6vw, 72px); background: var(--sheet); border-top: 6px solid var(--ink);
  padding: clamp(20px, 3vw, 40px); display: grid; gap: 28px;
}
@media (min-width: 1000px) {
  .aufmass { grid-template-columns: 7fr 5fr; column-gap: 56px; }
  .aufmass__head, .aufmass__rows { grid-column: 1; }
  .total { grid-column: 2; grid-row: 1 / span 2; }
  .drivers { grid-column: 1; }
  .aufmass__cta { grid-column: 2; align-self: start; justify-self: start; }
}
.aufmass h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 8px; }
.aufmass__head p { color: var(--ink-2); margin: 0; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 12px 0;
  border-bottom: 1px solid #CFCAC0;
}
.row p { margin: 0; }
.row__n { font-weight: 700; grid-column: 1 / -1; text-align: left; }
button.row__n { justify-self: start; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.row__a { font-size: 14.5px; color: var(--ink-2); }
.row__r { font-weight: 700; white-space: nowrap; }
@media (min-width: 640px) {
  .row { grid-template-columns: minmax(9rem, 1fr) 2fr auto; align-items: baseline; }
  .row__n { grid-column: auto; }
}
.total__label { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }
.total__num { font: 400 clamp(2.3rem, 5.2vw, 4.4rem)/1 var(--display); margin: 0 0 16px; min-height: 1em; white-space: nowrap; }
.total__note { font-size: 15px; padding: 12px 14px; background: var(--plaster-hi); border-left: 6px solid var(--tape); margin: 0; }
.drivers h3 { margin-bottom: 10px; }
.drivers__list { list-style: none; margin: 0; padding: 0; counter-reset: d; }
.drivers__list li {
  counter-increment: d; display: grid; grid-template-columns: 2.2rem 1fr auto; gap: 0 12px; align-items: baseline;
  padding: 10px 0; border-top: 1px solid #CFCAC0;
}
.drivers__list li::before { content: counter(d); font: 400 1.6rem/1 var(--display); color: var(--tape); grid-row: span 2; }
.drv__l { font-weight: 700; }
.drv__room { grid-column: 2; grid-row: 2; font-size: 14px; color: var(--ink-2); }
.drv__v { grid-column: 3; grid-row: 1 / span 2; font-weight: 700; white-space: nowrap; }
.drivers__list .drv--none { display: block; color: var(--ink-2); }
.drivers__list .drv--none::before { content: none; }

/* ======== PREISTREIBER — putty field: four factors in words, then the example rates ======== */
.preis__head { display: grid; gap: 16px 48px; margin-bottom: clamp(28px, 4vw, 48px); }
.preis h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.preis__lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 600; max-width: 34ch; margin: 0; }
@media (min-width: 900px) { .preis__head { grid-template-columns: 1fr 1fr; align-items: end; } }
.preis__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px clamp(24px, 4vw, 64px); counter-reset: p; }
@media (min-width: 720px) { .preis__list { grid-template-columns: 1fr 1fr; } }
.preis__list li { counter-increment: p; border-top: 2px solid var(--ink); padding-top: 12px; display: grid; grid-template-columns: 3.4rem 1fr; }
.preis__list li::before { content: "0" counter(p); font: 400 2.2rem/1 var(--display); grid-row: span 2; }
.preis__list p { margin: 0; max-width: 46ch; }
.rates { margin-top: clamp(40px, 6vw, 72px); max-width: 60rem; }
.rates > p { max-width: 62ch; }
.rates table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 14px; }
.rates caption { text-align: left; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding-bottom: 8px; }
.rates th, .rates td { text-align: left; padding: 8px 12px 8px 0; border-top: 1px solid rgba(30, 28, 26, .35); vertical-align: baseline; }
.rates th { font-weight: 600; }
.rates td:last-child { font-weight: 700; white-space: nowrap; padding-right: 0; text-align: right; }
.rates__open { font-size: 14px; margin-top: 10px; }
@media (max-width: 560px) { .rates td:nth-child(2) { display: none; } }

/* ======== LEISTUNGEN — two full-bleed halves: painting on fresh plaster, floors on ink ======== */
.leist { display: grid; }
@media (min-width: 800px) { .leist { grid-template-columns: 1fr 1fr; } }
.leist__half { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) var(--gut); }
.leist__half.field--ink { background: var(--ink); color: var(--sheet); }
.leist h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 24px; }
.leist ul { list-style: none; margin: 0; padding: 0; font-size: 1.1rem; font-weight: 500; }
.leist li { padding: 10px 0 10px 28px; border-top: 1px solid currentColor; position: relative; }
.leist li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 14px; height: 8px; background: var(--tape); transform: rotate(-8deg); }
.leist__who { margin: 28px 0 0; max-width: 40ch; color: #D8D3C9; }

/* ======== ABLAUF — the blue field, four steps with stencil numerals ======== */
.ablauf h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); margin-bottom: clamp(28px, 4vw, 48px); }
.ablauf__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px clamp(20px, 3vw, 40px); counter-reset: s; }
@media (min-width: 640px) { .ablauf__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ablauf__list { grid-template-columns: repeat(4, 1fr); } }
.ablauf__list li { counter-increment: s; border-top: 2px solid rgba(255, 255, 255, .7); padding-top: 14px; }
.ablauf__list li::before { content: counter(s); display: block; font: 400 clamp(3.4rem, 6vw, 5.4rem)/.9 var(--display); margin-bottom: 10px; }
.ablauf__list h3 { font-size: 1.25rem; }
.ablauf__list p { margin: 0; max-width: 34ch; }

/* ======== ANFRAGE — what gets sent on the left, the form on the right ======== */
.anfrage__head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 44px); }
.anfrage h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); margin-bottom: 14px; }
.anfrage__grid { display: grid; gap: 28px clamp(24px, 4vw, 64px); align-items: start; }
@media (min-width: 900px) { .anfrage__grid { grid-template-columns: 5fr 7fr; } .done { grid-column: 2; grid-row: 1; } }
.sheet { background: var(--sheet); border-top: 6px solid var(--tape); padding: clamp(16px, 2.4vw, 28px); }
.sheet .row { grid-template-columns: minmax(0, 1fr) auto; }
.sheet .row__n { grid-column: 1 / -1; }
.sheet .row__a { grid-column: 1; }
.sheet__total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-weight: 700; margin: 14px 0 6px; }
.sheet__total strong { font: 400 1.6rem/1.1 var(--display); }
.sheet__kv { font-size: 13.5px; color: var(--ink-2); margin: 0 0 12px; }
.sheet__edit { font-weight: 700; font-size: 15px; }
.req__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.req__fields .f--wide, .req__fields .hint, .req__fields .err, .req__fields .chk { grid-column: 1 / -1; }
@media (max-width: 560px) { .req__fields { grid-template-columns: 1fr; } }
.chk--consent { align-items: flex-start; font-weight: 500; font-size: 14.5px; line-height: 1.45; padding: 10px 12px; }
.chk--consent input { margin-top: 2px; }
.chk--consent:has(input:checked) a { text-decoration-color: #fff; }
.req__send { margin-top: 18px; width: 100%; font-size: 17px; }
.req__demo { font-size: 13.5px; color: var(--ink-2); margin: 10px 0 0; }
.req__status { font-weight: 700; margin: 10px 0 0; min-height: 1.55em; }
.done { background: var(--sheet); border-top: 6px solid var(--ink); padding: clamp(20px, 3vw, 36px); }
.done:focus { outline: 3px solid var(--tape); outline-offset: 2px; }
.done__head { font: 400 clamp(2rem, 4vw, 3rem)/1 var(--display); margin-bottom: 16px; }
.done__nr { font: 400 clamp(2.6rem, 6vw, 4.6rem)/1 var(--display); color: var(--tape-deep); margin-bottom: 16px; }

/* ======== STUDIO — the one section about Wild Digital Moments, on ink ======== */
.studio h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); max-width: 22ch; margin-bottom: 16px; }
.studio p { max-width: 52ch; }
.studio__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ======== FUSS — footer, and the seal sits at its bottom-left ======== */
.foot { background: #151412; color: #CFCAC0; padding: 36px var(--gut) 20px; font-size: 15px; }
.foot__brand { color: var(--sheet); font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
.foot__brand .brand__word { font-size: 1.6rem; }
.foot__credit { font-size: 14px; }
.foot a { text-decoration-color: #CFCAC0; }
.foot + .wdm-seal, body > .wdm-seal { background: #151412; padding-top: 4px; }

/* ======== REDUCED MOTION — everything already painted, tape already stuck ======== */
@media (prefers-reduced-motion: reduce) {
  .coat, .roller { animation: none !important; }
  .tape, .tape.is-armed { transition: none; }
  .btn, .demo-note__x { transition: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
