/* IR Design Malermeisterbetrieb — site.css
   Concept „Der erste Strich": the page is a freshly painted wall; one roller pass
   carries the headline. Tokens in .impeccable.md. */

/* ---------- tokens ---------- */
:root {
  --wall: oklch(97.5% 0.004 268);
  --wall-2: oklch(94.6% 0.006 268);
  --wall-3: oklch(91.5% 0.008 268);
  --ink: oklch(27% 0.11 268);
  --ink-2: oklch(35% 0.115 268);
  --ink-deep: oklch(22.5% 0.09 268);
  --text: oklch(22% 0.02 268);
  --muted: oklch(47% 0.022 268);
  --line: oklch(86.5% 0.008 268);
  --line-2: oklch(79% 0.012 268);
  --on-ink: oklch(96.5% 0.006 268);
  --on-ink-2: oklch(80% 0.03 268);
  --line-ink: oklch(38% 0.07 268);
  --gelb: #f2c21b;

  --font: "Mona Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wide: 112%;
  --narrow: 90%;

  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-lg: clamp(1.2rem, 1.02rem + 0.75vw, 1.5rem);
  --t-xl: clamp(1.9rem, 1.25rem + 2.4vw, 3.1rem);
  --t-2xl: clamp(2.3rem, 1.05rem + 4vw, 4.2rem);

  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem; --sp-5: 1.5rem;
  --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem;
  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --wrap: 82rem;
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  --sec: clamp(4.5rem, 11vw, 9rem);
  --header-h: 4.75rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-fade: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--wall);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 1px; }
.sec--ink :focus-visible { outline-color: var(--on-ink); }
[hidden] { display: none !important; }

/* ---------- type ---------- */
.eyebrow {
  font-size: var(--t-xs);
  font-weight: 560;
  font-stretch: var(--narrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.sec--ink .eyebrow { color: var(--on-ink-2); }
.h1 { font-size: var(--t-2xl); font-weight: 520; font-stretch: var(--wide); line-height: 1.02; letter-spacing: -0.025em; }
.h2 {
  font-size: var(--t-xl); font-weight: 500; font-stretch: var(--wide);
  line-height: 1.08; letter-spacing: -0.02em; max-width: 18ch; text-wrap: balance;
}
.h3 { font-size: var(--t-lg); font-weight: 540; font-stretch: 106%; line-height: 1.2; letter-spacing: -0.01em; }
.lead { font-size: var(--t-lg); line-height: 1.45; font-weight: 380; max-width: 42ch; text-wrap: pretty; }
.body { max-width: 56ch; color: var(--muted); text-wrap: pretty; }
.sec--ink .body { color: var(--on-ink-2); }
.num { font-variant-numeric: tabular-nums; }
.tag {
  font-size: var(--t-xs); font-weight: 520; font-stretch: var(--narrow);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec); }
.sec--tint { background: var(--wall-2); }
.sec--ink { background: var(--ink); color: var(--on-ink); }
.sec__head { display: grid; gap: var(--sp-4); margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.sec__head .h2 { margin-top: var(--sp-2); }
@media (min-width: 60rem) {
  .sec__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--sp-8); }
  .sec__head > :last-child { justify-self: end; padding-bottom: 0.35rem; width: 100%; max-width: 30rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3rem; padding: 0.85rem 1.35rem;
  background: var(--ink); color: var(--on-ink);
  font-weight: 540; font-size: var(--t-sm); letter-spacing: 0.02em;
  text-decoration: none; border-radius: 2px;
  transition: background-color 0.18s var(--ease-io), transform 0.18s var(--ease-io);
}
.btn:hover { background: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: var(--wall-2); box-shadow: inset 0 0 0 1px var(--text); }
.sec--ink .btn { background: var(--on-ink); color: var(--ink); }
.sec--ink .btn:hover { background: #fff; }
.link {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 540; font-size: var(--t-sm); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 0.15em;
}
.link svg { width: 0.9em; height: 0.9em; transition: transform 0.2s var(--ease-io); }
.link:hover svg { transform: translateX(3px); }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--wall); transition: box-shadow 0.3s var(--ease-io); }
.hd.on { box-shadow: 0 1px 0 var(--line); }
.hd__in { height: 100%; display: flex; align-items: center; gap: var(--sp-6); }
.hd__brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; position: relative; z-index: 2; }
.hd__brand img { height: 2.55rem; width: auto; }
.nav__list { display: flex; gap: clamp(1rem, 2.4vw, 2rem); }
.nav__list a { font-size: var(--t-sm); font-weight: 500; text-decoration: none; padding: 0.5rem 0; position: relative; display: inline-block; }
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.1rem; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease-out);
}
.nav__list a:hover::after { transform: scaleX(1); }
.hd__tel { font-size: var(--t-sm); font-weight: 540; text-decoration: none; white-space: nowrap; }
.hd__cta { display: none; }
.nav__foot { display: none; }
.hd__burger {
  display: none; width: 2.75rem; height: 2.75rem; margin-right: -0.5rem; position: relative; z-index: 2;
  align-items: center; justify-content: center; flex-direction: column; gap: 6px;
}
.hd__burger span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease-io), opacity 0.2s; }
@media (min-width: 64rem) { .hd__cta { display: inline-flex; min-height: 2.5rem; padding: 0.55rem 1.05rem; } }

/* mobile menu: a white panel, not a poster */
@media (max-width: 52rem) {
  .nav__list, .hd__tel { display: none; }
  .hd__burger { display: flex; }
  .nav-open .hd__burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-open .hd__burger span:nth-child(2) { opacity: 0; }
  .nav-open .hd__burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav-open { overflow: hidden; }
  .nav-open .hd { box-shadow: 0 1px 0 var(--line); }
  .nav-open .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
    background: var(--wall);
    display: flex; flex-direction: column;
    padding: var(--sp-4) var(--gutter) var(--sp-6);
    overflow-y: auto;
    animation: navin 0.35s var(--ease-out);
  }
  .nav-open .nav__list { display: block; }
  .nav-open .nav__list li { border-bottom: 1px solid var(--line); animation: navitem 0.5s var(--ease-out) backwards; animation-delay: calc(60ms + var(--i, 0) * 45ms); }
  .nav-open .nav__list a {
    display: flex; align-items: center; justify-content: space-between;
    font-size: clamp(1.5rem, 6.5vw, 1.9rem); font-weight: 480; font-stretch: 106%;
    letter-spacing: -0.015em; line-height: 1.2; padding: 1.05rem 0;
  }
  .nav-open .nav__list a::after {
    content: ""; position: static; width: 0.55em; height: 0.55em; transform: none; background: none;
    border-right: 1.5px solid var(--muted); border-top: 1.5px solid var(--muted); rotate: 45deg;
    margin-right: 0.2em; transition: translate 0.25s var(--ease-out);
  }
  .nav-open .nav__list a:active::after { translate: 3px 0; }
  .nav-open .nav__foot {
    display: grid; gap: var(--sp-3); margin-top: auto; padding-top: var(--sp-6);
    animation: navitem 0.5s var(--ease-out) 0.3s backwards;
  }
  .nav-open .nav__foot .btn { width: 100%; }
  .nav-open .nav__foot p { font-size: var(--t-sm); color: var(--muted); text-align: center; margin-top: var(--sp-2); line-height: 1.5; }
}
@keyframes navin { from { opacity: 0; } to { opacity: 1; } }
@keyframes navitem { from { opacity: 0; transform: translateY(10px); } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-7);
  min-height: calc(100svh - var(--header-h)); padding-block: clamp(2.5rem, 6vw, 5rem) 0;
}
.hero__text { display: grid; gap: var(--sp-5); align-content: center; padding-bottom: clamp(1rem, 3vw, 2rem); }
.hero__text .eyebrow { margin-bottom: var(--sp-2); }

/* the roller band */
.band {
  display: inline-block; width: fit-content; max-width: 100%;
  margin-left: -0.42em; padding: 0.16em 0.62em 0.2em 0.42em;
  background: var(--ink); color: var(--on-ink);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 200' preserveAspectRatio='none'><path d='M0 0H970C984 12 966 30 976 48C988 68 964 86 978 106C990 126 966 146 980 168C988 182 972 192 982 200H0Z' fill='%23000'/><path d='M958 30h34v1.8h-34zM962 92h32v1.6h-32zM956 152h36v1.8h-36z' fill='%23000'/></svg>") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 200' preserveAspectRatio='none'><path d='M0 0H970C984 12 966 30 976 48C988 68 964 86 978 106C990 126 966 146 980 168C988 182 972 192 982 200H0Z' fill='%23000'/><path d='M958 30h34v1.8h-34zM962 92h32v1.6h-32zM956 152h36v1.8h-36z' fill='%23000'/></svg>") 0 0 / 100% 100% no-repeat;
}
.band .t { display: block; }

.hero__sub { max-width: 38ch; font-size: var(--t-base); line-height: 1.6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: var(--sp-3); }
.proof li { padding: var(--sp-4) var(--sp-4) 0 0; font-size: var(--t-sm); line-height: 1.35; }
.proof li + li { padding-left: var(--sp-4); border-left: 1px solid var(--line); }
.proof strong { display: block; font-weight: 560; letter-spacing: -0.005em; }
.proof span { color: var(--muted); }
.proof .star { display: inline-block; width: 0.8em; height: 0.8em; vertical-align: -0.05em; margin-right: 0.2em; fill: var(--ink); }

.hero__photo { position: relative; margin: 0; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 50%; }
@media (min-width: 56rem) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); padding-block: 0; align-items: center; }
  .hero__text { padding-block: clamp(3rem, 7vw, 6rem); }
  .hero__photo { align-self: center; margin-right: calc(-1 * var(--gutter)); }
  .hero__photo img { aspect-ratio: 4 / 5; max-height: min(36rem, 72vh); }
}
@media (max-width: 55.99rem) {
  .proof { grid-template-columns: 1fr; border-top: 0; }
  .proof li { display: flex; gap: var(--sp-3); align-items: baseline; padding: var(--sp-3) 0; border-top: 1px solid var(--line); }
  .proof li + li { padding-left: 0; border-left: 0; }
  .proof strong { display: inline; }
  .hero__photo { margin-inline: calc(-1 * var(--gutter)); }
  .hero__photo img { aspect-ratio: 4 / 3; }
}

/* ---------- Leistungen: tiles with hairline seams ---------- */
.tiles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--wall); padding: clamp(1.4rem, 2.6vw, 2.1rem);
  display: grid; gap: var(--sp-3); align-content: start;
}
.tile > :not(.tile__bg) { position: relative; z-index: 1; }
.tile svg {
  width: 2.1rem; height: 2.1rem; margin-bottom: var(--sp-4);
  fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.5s var(--ease-fade);
}
.tile h3 { font-size: 1.0625rem; font-weight: 560; letter-spacing: -0.008em; line-height: 1.3; transition: color 0.5s var(--ease-fade); }
.tile p { font-size: var(--t-sm); color: var(--muted); line-height: 1.55; text-wrap: pretty; transition: color 0.5s var(--ease-fade); }

/* the photo behind each tile: hover on desktop, scroll-spotlight on touch.
   Uses --ease-fade (a gentle, even curve), not --ease-out (used for
   entrances elsewhere) — --ease-out decelerates so hard that a fade using
   it is visually ~95% done in the first tenth of its duration, which reads
   as a pop, not a crossfade. */
.tile__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 0.6s var(--ease-fade);
}
.tile__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease-fade); }
.tile__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, oklch(25% 0.1 268 / 0.42) 0%, oklch(23% 0.09 268 / 0.6) 45%, oklch(20% 0.08 268 / 0.84) 100%);
}
.tile.is-on .tile__bg { opacity: 1; transition-duration: 0.7s; }
.tile.is-on .tile__bg img { transform: none; }
.tile.is-on svg { stroke: var(--on-ink); }
.tile.is-on h3 { color: var(--on-ink); }
.tile.is-on p { color: var(--on-ink-2); }
@media (hover: hover) {
  .tile:hover .tile__bg { opacity: 1; transition-duration: 0.7s; }
  .tile:hover .tile__bg img { transform: none; }
  .tile:hover svg { stroke: var(--on-ink); }
  .tile:hover h3 { color: var(--on-ink); }
  .tile:hover p { color: var(--on-ink-2); }
}
/* touch: the reveal is scroll-driven rather than a deliberate hover, so it
   needs to complete well inside the time a tile spends near the middle of
   the screen — the slower hover zoom would still be mid-motion when the
   next tile takes over, which read as an abrupt jump rather than a fade. */
@media (hover: none) {
  .tile__bg, .tile.is-on .tile__bg { transition-duration: 0.55s; }
  .tile__bg img { transform: scale(1.03); transition-duration: 0.55s; }
  .tile svg, .tile h3, .tile p { transition-duration: 0.45s; }
}
@media (min-width: 40rem) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tile { min-height: 15rem; } }

/* ---------- filter ---------- */
.flt-bar { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin-top: var(--sp-4); }
.flt { font-size: var(--t-sm); font-weight: 540; padding: 0.4rem 0; position: relative; color: var(--muted); transition: color 0.2s; }
.flt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out);
}
.flt:hover, .flt[aria-pressed="true"] { color: var(--text); }
.flt[aria-pressed="true"]::after { transform: scaleX(1); }

/* ---------- carousel (shared) ---------- */
.car { position: relative; }
.car__track {
  display: flex; gap: clamp(0.75rem, 1.6vw, 1.5rem);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-inline: var(--edge);
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.car__track::-webkit-scrollbar { display: none; }
.car__track.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.car__track.is-drag * { pointer-events: none; }
.car__slide { flex: none; scroll-snap-align: start; }
.car__slide:last-child { margin-right: var(--edge); }
.car__foot {
  display: flex; align-items: center; gap: var(--sp-4);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.car__bar { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.car__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform 0.45s var(--ease-out); }
.car__count { font-size: var(--t-sm); color: var(--muted); letter-spacing: 0.02em; }
.car__count b { color: var(--text); font-weight: 540; }
.car__btn {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 0.2s, background-color 0.2s, opacity 0.2s;
}
.car__btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.car__btn:hover { background: var(--wall-2); box-shadow: inset 0 0 0 1px var(--text); }
.car__btn[disabled] { opacity: 0.3; cursor: default; box-shadow: inset 0 0 0 1px var(--line-2); background: none; }
.car__btn + .car__btn { margin-left: calc(-1 * var(--sp-2)); }

/* references: fixed height, width from the photo's own aspect */
.car--ref { --slide-h: clamp(280px, 52vh, 560px); }
.car__img {
  height: var(--slide-h); width: calc(var(--slide-h) * var(--w, 1.5));
  max-width: calc(100vw - 2 * var(--gutter));
  overflow: hidden; background: var(--wall-2);
}
.car__img img { width: 100%; height: 100%; object-fit: cover; }
.car__cap { display: flex; align-items: center; gap: var(--sp-3); padding-top: var(--sp-3); font-size: var(--t-sm); color: var(--muted); }
.car__cap i { font-style: normal; }
.car__cap b { font-weight: 540; color: var(--text); }
.car__cap .tag { margin-left: auto; }
.chip { flex: none; width: 0.95rem; height: 0.95rem; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08); }
@media (max-width: 40rem) { .car--ref { --slide-h: clamp(240px, 46vh, 380px); } }

/* quotes carousel on the navy chapter */
.car--quotes .car__slide { width: min(88vw, 30rem); }
.car--quotes .car__foot .car__bar { background: var(--line-ink); }
.car--quotes .car__foot .car__bar i { background: var(--on-ink); }
.car--quotes .car__count { color: var(--on-ink-2); }
.car--quotes .car__count b { color: var(--on-ink); }
.car--quotes .car__btn { color: var(--on-ink); box-shadow: inset 0 0 0 1px var(--line-ink); }
.car--quotes .car__btn:hover { background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--on-ink-2); }
.car--quotes .car__btn[disabled] { box-shadow: inset 0 0 0 1px var(--line-ink); background: none; }
.quote { display: grid; gap: var(--sp-5); align-content: start; padding-top: var(--sp-5); border-top: 1px solid var(--line-ink); min-height: 100%; }
.quote p { font-size: var(--t-lg); line-height: 1.42; font-weight: 380; letter-spacing: -0.005em; text-wrap: pretty; color: var(--on-ink); }
.quote footer { display: flex; gap: var(--sp-3); align-items: baseline; font-size: var(--t-sm); color: var(--on-ink-2); }
.quote footer b { font-weight: 540; color: var(--on-ink); flex: none; white-space: nowrap; }

/* ---------- Stimmen header ---------- */
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 1.05rem; height: 1.05rem; fill: var(--gelb); }
.rating .num { font-size: var(--t-lg); font-weight: 560; letter-spacing: -0.01em; }
.rating .link { color: var(--on-ink); }

/* ---------- Der Betrieb ---------- */
.meister { display: grid; gap: var(--sp-7); }
.meister__media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.meister__media figcaption, .ablauf__photo figcaption { font-size: var(--t-xs); color: var(--muted); padding-top: var(--sp-2); letter-spacing: 0.04em; }
.meister__copy { display: grid; gap: var(--sp-5); align-content: start; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-5); border-top: 1px solid var(--line); margin-top: var(--sp-2); }
.facts div { padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.12em; font-stretch: var(--narrow); color: var(--muted); font-weight: 520; }
.facts dd { font-weight: 540; margin-top: 0.2rem; letter-spacing: -0.005em; }
@media (min-width: 60rem) {
  .meister { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .meister__media { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.ablauf-wrap { display: grid; gap: var(--sp-7); margin-top: var(--sp-9); }
.ablauf__photo img { width: 100%; height: auto; }
@media (min-width: 60rem) {
  .ablauf-wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .ablauf__photo { position: sticky; top: calc(var(--header-h) + 1.5rem); order: 2; }
}
.ablauf { counter-reset: schritt; display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: var(--sp-5); }
.ablauf li {
  counter-increment: schritt; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--sp-4);
  padding: var(--sp-5) 0; border-bottom: 1px solid var(--line);
}
.ablauf li::before {
  content: counter(schritt, decimal-leading-zero); font-variant-numeric: tabular-nums;
  font-weight: 500; font-stretch: var(--wide); font-size: var(--t-lg); color: var(--ink); line-height: 1.2;
}
.ablauf p { color: var(--muted); max-width: 52ch; margin-top: 0.25rem; text-wrap: pretty; }

/* ---------- Kontakt ---------- */
.kontakt { display: grid; gap: var(--sp-8); }
.kdl { border-top: 1px solid var(--line); }
.kdl div { display: grid; gap: var(--sp-1); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.kdl dt { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.12em; font-stretch: var(--narrow); color: var(--muted); font-weight: 520; }
.kdl dd { font-size: var(--t-lg); font-weight: 480; letter-spacing: -0.01em; }
.kdl dd a { text-decoration: none; }
.kdl dd a:hover { color: var(--ink); text-decoration: underline; }
.kdl dd small { display: block; font-size: var(--t-sm); color: var(--muted); font-weight: 400; margin-top: 0.15rem; }
@media (min-width: 60rem) {
  .kontakt { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
  .kdl { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--sp-6); }
  .kdl div.wide { grid-column: 1 / -1; }
}
.form { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: var(--sp-2); }
.field label { font-size: var(--t-sm); font-weight: 540; }
.field input, .field textarea {
  font: inherit; color: var(--text); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-2); padding: 0.65rem 0; border-radius: 0; transition: border-color 0.2s;
}
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field textarea { min-height: 7.5rem; resize: vertical; }
.form__row { display: grid; gap: var(--sp-5); }
@media (min-width: 40rem) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
.form__hint { font-size: var(--t-sm); color: var(--muted); max-width: 30ch; }
.form__done { font-size: var(--t-sm); color: var(--ink); font-weight: 540; }

/* ---------- footer ---------- */
.ft { border-top: 1px solid var(--line); padding-block: var(--sp-8) var(--sp-6); }
.ft__grid { display: grid; gap: var(--sp-6); }
.ft__brand img { width: clamp(11rem, 18vw, 15rem); height: auto; }
.ft__brand p { margin-top: var(--sp-4); color: var(--muted); font-size: var(--t-sm); max-width: 32ch; }
.ft__col h3 { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.12em; font-stretch: var(--narrow); color: var(--muted); font-weight: 520; margin-bottom: var(--sp-3); }
.ft__col li { padding: 0.2rem 0; font-size: var(--t-sm); }
.ft__col a { text-decoration: none; }
.ft__col a:hover { text-decoration: underline; }
.ft__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-7); padding-top: var(--sp-4); border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--muted); }
.ft__meta a { text-decoration: none; }
.ft__meta a:hover { text-decoration: underline; }
@media (min-width: 60rem) { .ft__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr); gap: var(--sp-6); } }

/* ---------- legal page ---------- */
.legal { max-width: 68ch; display: grid; gap: var(--sp-5); }
.legal h2 { font-size: var(--t-lg); font-weight: 540; font-stretch: 106%; margin-top: var(--sp-5); }
.legal p, .legal address { color: var(--muted); font-style: normal; }
.legal strong { color: var(--text); font-weight: 540; }

/* ---------- motion ---------- */
/* hero: nothing moves until JS says the page has arrived (html.is-in).
   Resting state = final state; animations run `backwards` from a hidden
   keyframe, so removing them (reduced motion, screenshot freeze) can never
   leave the hero invisible. */
.js:not(.is-in) .band { clip-path: inset(0 100% 0 0); }
.js:not(.is-in) .band .t { opacity: 0; }
.js:not(.is-in) .hero__photo { clip-path: inset(0 100% 0 0); }
.js:not(.is-in) .hrv { opacity: 0; }
.hero__photo img { transform-origin: 30% 50%; }

.js.is-in .band { animation: roll 1.1s var(--ease-out) 0.15s backwards; }
.js.is-in .band .t { animation: fade 0.55s ease-out 0.8s backwards; }
.js.is-in .hero__photo { animation: roll 1.25s var(--ease-out) 0.4s backwards; }
.js.is-in .hero__photo img { animation: settle 1.6s var(--ease-out) 0.4s backwards; }
.js.is-in .hrv { animation: up 0.75s var(--ease-out) backwards; animation-delay: calc(1s + var(--i, 0) * 90ms); }

/* scroll reveals */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rv.in { opacity: 1; transform: none; }

@keyframes roll { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }
@keyframes settle { from { transform: scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js:not(.is-in) .band, .js:not(.is-in) .band .t, .js:not(.is-in) .hero__photo, .js:not(.is-in) .hrv,
  .js .band, .js .band .t, .js .hero__photo, .js .hero__photo img, .js .hrv, .js .rv {
    animation: none !important; transition: none !important;
    clip-path: none !important; opacity: 1 !important; transform: none !important;
  }
  .nav-open .nav, .nav-open .nav__list li, .nav-open .nav__foot { animation: none; }
  .car__bar i { transition: none; }
  .tile__bg img { transform: none !important; transition: none; }
  .tile__bg { transition-duration: 0.25s !important; }
}
