/* Hafizi Parkett: main stylesheet
   Brand palette from Logo.pdf; oak tones come from the floors themselves.
   Type: Saira Condensed (display, matches the logo) + Archivo (text). */

:root {
  --ink: rgb(65 63 60);
  --ink-2: rgb(82 80 76);
  --char: rgb(94 91 88);
  --stone: rgb(132 123 116);
  --warm: rgb(150 144 132);
  --sand: rgb(216 213 197);
  --wall: #e8dfcf;      /* warm plaster: hero + header */
  --wall-2: #dbcdb4;
  --paper: #fbf8f2;     /* cards, lightest surface */
  --linen: #f0e8da;     /* light sections */
  --sand-warm: #d8c9ad; /* Über uns */
  --oak: #a8743f;
  --oak-light: #d2a873;
  --oak-deep: #82532a; /* oak for text on light backgrounds (WCAG AA) */
  --ink-deep: #2f2d2a;
  --ink-deepest: #262422;
  --oak-hover: #e0bb8a;
  --error: #f0b8a4;
  --skirting: #d8d3c5;
  --h2: clamp(44px, 5.4vw, 84px);
  --h2-xl: clamp(56px, 7vw, 112px);
  --line: rgb(65 63 60 / 16%);
  --line-dark: rgb(243 241 234 / 14%);
  --on-dark: rgb(243 241 234 / 74%);

  --display: "Saira Condensed", "Bahnschrift", "Arial Narrow", sans-serif;
  --ui: "Archivo", "Helvetica Neue", system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1320px;
  --header-h: 96px;
  --runway: 320vh;
  --radius: 4px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --section-y: clamp(88px, 13vh, 168px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--ui);
  font-size: 17px;
  color: var(--ink);
  background: var(--wall);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
p { margin: 0; }

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

::selection { background: var(--oak-light); color: var(--ink); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Unknown facts the client still has to supply. Deliberately visible. */
.todo { outline: 1px dashed currentcolor; outline-offset: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; }
section { padding: var(--section-y) var(--gutter); scroll-margin-top: calc(var(--header-h) - 1px); }
.on-dark { background: var(--ink); color: var(--paper); }

/* Floor textures (rendered by scripts/textures.py) */
.tex-parkett { background-image: url("../assets/img/floor-parkett.webp"); }
.tex-vinyl { background-image: url("../assets/img/floor-vinyl.webp"); }
.tex-laminat { background-image: url("../assets/img/floor-laminat.webp"); }
.tex-worn { background-image: url("../assets/img/floor-worn.webp"); }

/* ── Buttons & links ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 0 28px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .04em;
  transition: background .2s ease, transform .2s var(--ease-out);
}

.btn:hover { background: var(--ink-deep); }
.btn:active { transform: translateY(1px); }

.btn .arrow {
  position: relative;
  width: 24px;
  height: 1.5px;
  background: currentcolor;
  transition: transform .25s var(--ease-out);
}

.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3.5px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentcolor;
  border-right: 1.5px solid currentcolor;
  transform: rotate(45deg);
}

.btn:hover .arrow { transform: translateX(4px); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--paper); filter: brightness(1.04); }

.link {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .04em;
  padding: 6px 0;
  background: linear-gradient(currentcolor, currentcolor) 0 100% / 100% 1.5px no-repeat;
  transition: background-size .3s var(--ease-out);
}

.link:hover { background-size: 40% 1.5px; }

/* ── Intro: scroll runway + fixed stage (unchanged choreography) ── */
.intro-runway { height: var(--runway); }

.stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
}

.header-bg {
  position: absolute;
  inset: 0 0 auto;
  height: var(--header-h);
  background: rgb(232 223 207 / 90%);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  opacity: 0;
}

.h-mark {
  position: absolute;
  display: block;
  transform-origin: 50% 50%;
  will-change: transform;
  pointer-events: auto;
}

.h-mark img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }

.wordmark {
  position: absolute;
  display: flex;
  align-items: center;
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform-origin: 0 0;
  will-change: transform, opacity;
}

.wm-row { display: flex; flex-direction: column; line-height: .85; letter-spacing: .02em; }
.wm-top { font-size: .45em; }
.wm-bot { font-size: 1em; }

.site-nav {
  position: absolute;
  top: 0;
  right: 0;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 36px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
}

.site-nav a { position: relative; padding: 6px 0; }

.site-nav a:not(.pill)::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after { transform: scaleX(1); }

.pill {
  background: var(--ink);
  color: var(--paper);
  padding: 11px 20px !important;
  border-radius: 999px;
  font-size: 12px;
  transition: background .2s ease;
}

.pill:hover,
.pill[aria-current="true"] { background: var(--ink-deep); box-shadow: 0 0 0 2px var(--wall), 0 0 0 3.5px var(--ink); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 10px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.menu-toggle .bars { display: grid; gap: 4px; width: 22px; }
.menu-toggle .bars span { height: 2px; background: currentcolor; }
.menu-toggle .bars span:nth-child(2) { width: 70%; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.scroll-hint .line {
  width: 1px;
  height: 56px;
  background: var(--ink-2);
  transform-origin: top;
  animation: drip 2.4s infinite ease-in-out;
}

@keyframes drip {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
}

.mobile-menu[hidden] { display: none; }

.mobile-menu a {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 11vw, 64px);
  line-height: 1.1;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-dark);
}

.mobile-menu .close {
  position: absolute;
  top: 22px;
  right: var(--gutter);
  background: none;
  border: 0;
  padding: 10px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ── Hero: a room ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: max(100svh, 820px);
  padding: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 85% 10%, rgb(255 250 238 / 70%), transparent 60%),
    linear-gradient(180deg, var(--wall) 0%, var(--wall-2) 70%);
}

.hero-wall {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + clamp(32px, 7vh, 80px)) var(--gutter) clamp(28px, 5vh, 56px);
}

.hero-copy {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 0 clamp(32px, 5vw, 80px);
  align-items: end;
}

.hero-side { padding-bottom: 10px; }

.hero h1 {
  font-size: clamp(54px, 7.6vw, 124px);
  line-height: .88;
  letter-spacing: -.02em;
}

.lede {
  font-size: clamp(17px, 1.3vw, 20px);
  max-width: 46ch;
  color: var(--ink-2);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* Floor plane: the herringbone recedes toward the wall */
.hero-floor {
  position: relative;
  min-height: clamp(300px, 44vh, 560px);
  perspective: 700px;
  perspective-origin: 50% -40%;
}

.skirting {
  position: absolute;
  inset: 0 0 auto;
  height: 14px;
  z-index: 2;
  background: linear-gradient(180deg, var(--paper) 0 3px, var(--skirting) 3px 11px, rgb(65 63 60 / 30%) 11px 12px, transparent 12px);
  box-shadow: 0 6px 14px -6px rgb(40 30 20 / 35%);
}

.floor-plane {
  position: absolute;
  left: -60%;
  right: -60%;
  top: 0;
  height: 260%;
  transform-origin: 50% 0;
  transform: rotateX(68deg);
  overflow: hidden;
}

/* Moved by JS with translate3d (one tile height of travel), so the texture is painted once. */
.floor-tex {
  position: absolute;
  inset: -280px 0 0;
  background: url("../assets/img/floor-tile.webp") 50% 0 / 420px auto repeat;
  will-change: transform;
}

.hero-floor::after {
  /* window light falling across the floor */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 120% at 70% 0%, rgb(255 236 200 / 28%), transparent 60%),
    linear-gradient(180deg, rgb(40 30 20 / 25%), transparent 30%, transparent 70%, rgb(40 30 20 / 25%));
  pointer-events: none;
}

.hero-facts {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: clamp(20px, 4vh, 40px);
  display: flex;
  gap: 2px;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px -18px rgb(30 22 14 / 55%);
}

.hero-facts div {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding: 14px 20px;
  background: rgb(243 241 234 / 92%);
  backdrop-filter: blur(8px);
}

.hero-facts dt { font-size: 13px; color: var(--ink-2); line-height: 1.2; }
.hero-facts dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; }

/* ── Shared section head ──────────────────────────────── */
.head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 6vh, 72px);
}

.head h2 { font-size: var(--h2); line-height: .92; }
.head p { color: var(--ink-2); max-width: 50ch; font-size: 18px; }

/* ── Showroom ─────────────────────────────────────────── */
.showroom { background: var(--linen); }

.materials {
  display: grid;
  grid-template-columns: minmax(240px, .38fr) 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}

.material-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }

.material-tabs [role="tab"] {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 0 26px 28px;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--stone);
  transition: color .25s ease;
}

.material-tabs [role="tab"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 26px;
  width: 4px;
  border-radius: 2px;
  background: var(--oak);
  transform: scaleY(0);
  transition: transform .35s var(--ease-out);
}

.material-tabs [role="tab"]:hover { color: var(--ink-2); }
.material-tabs [aria-selected="true"] { color: var(--ink); }
.material-tabs [aria-selected="true"]::before { transform: scaleY(1); }

.tab-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 3.6vw, 56px);
  line-height: 1;
}

.tab-tag { font-size: 15px; color: var(--char); }

.material-panels {
  position: relative;
  display: grid;
}

.material-panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-rows: 1fr auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -36px rgb(60 40 20 / 45%);
  transition: opacity .45s ease, visibility .45s;
}

.js .material-panel[hidden] { display: grid; opacity: 0; visibility: hidden; }

/* Without JS, show every material one after another. */
html:not(.js) .material-panel { grid-area: auto; }
html:not(.js) .material-panel[hidden] { display: grid; margin-top: 24px; }

.sample {
  min-height: clamp(260px, 38vw, 480px);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease-out);
}

.material-panel:not([hidden]) .sample { transform: scale(1); }

.panel-text {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 16px 40px;
  padding: 28px clamp(20px, 3vw, 36px) 32px;
}

.panel-text h3 { font-size: 28px; line-height: 1.05; }
.panel-text p { color: var(--ink-2); }

/* ── Renovation: before/after ─────────────────────────── */
.renovation-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.renovation h2 { font-size: var(--h2); line-height: .92; margin-bottom: 28px; }
.renovation-text p { color: var(--on-dark); margin-bottom: 16px; max-width: 48ch; }
.renovation-text .big { color: var(--paper); font-size: clamp(20px, 1.6vw, 24px); line-height: 1.4; }
.renovation-text .btn { margin-top: 20px; }

.compare { margin: 0; }

.compare-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  --pos: 50%;
  user-select: none;
}

.compare-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.compare-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--paper);
  pointer-events: none;
}

.compare-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper);
  box-shadow: 0 8px 24px rgb(0 0 0 / 35%);
}

.compare-handle span::before,
.compare-handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.compare-handle span::before { left: 13px; transform: translateY(-50%) rotate(45deg); }
.compare-handle span::after { right: 13px; transform: translateY(-50%) rotate(-135deg); }

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.compare-stage:has(.compare-range:focus-visible) .compare-handle span { outline: 2px solid var(--oak-light); outline-offset: 3px; }

.compare-tag {
  position: absolute;
  top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  background: rgb(30 28 26 / 62%);
  color: var(--paper);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.compare-tag--before { left: 16px; }
.compare-tag--after { right: 16px; }

.compare figcaption { margin-top: 14px; font-size: 14px; color: var(--on-dark); }

/* ── Warum wir ────────────────────────────────────────── */
.why { background: var(--paper); }

.why-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.why-head { position: sticky; top: calc(var(--header-h) + 40px); }
.why-head h2 { font-size: var(--h2-xl); line-height: .88; }
.why-head .sub { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; margin: 14px 0 28px; color: var(--oak-deep); }
.why-head p:not(.sub) { color: var(--ink-2); margin-bottom: 16px; max-width: 46ch; }

.why-list-title {
  font-size: 15px;
  font-family: var(--ui);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.why-list { list-style: none; margin: 0; padding: 0; counter-reset: why; }

.why-list li {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 8px 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list h4 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.05; }
.why-list p { color: var(--ink-2); }

.goal {
  margin: clamp(48px, 7vh, 80px) 0 0;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  color: var(--paper);
  background:
    linear-gradient(100deg, rgb(48 36 24 / 86%), rgb(48 36 24 / 55%)),
    url("../assets/img/wood-grain.webp") center / cover;
}

.goal-label { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .04em; color: var(--oak-light); }
.goal-text { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.02; margin: 10px 0 18px; text-wrap: balance; }
.goal-foot { color: rgb(243 241 234 / 82%); }

/* ── Motto ────────────────────────────────────────────── */
.motto { background: var(--ink-deep); overflow: hidden; }
.motto-label { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--oak-light); }

.motto-title {
  margin: 20px 0 clamp(48px, 7vh, 80px);
  font-size: clamp(76px, 15vw, 248px);
  line-height: .82;
  letter-spacing: -.03em;
}

.motto-title span { display: block; }

.motto-title .grain {
  background: url("../assets/img/wood-grain.webp") center / cover;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.motto-title .vor {
  font-size: .3em;
  line-height: 1.2;
  margin-left: .1em;
  color: var(--sand);
  font-weight: 600;
}

.motto-title .outline { color: transparent; -webkit-text-stroke: 2px var(--paper); }

.motto-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
}

.motto-body p { color: var(--on-dark); }

/* ── Über uns ─────────────────────────────────────────── */
.about { background: var(--sand-warm); }

.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.about-head { position: sticky; top: calc(var(--header-h) + 40px); }
.about-head h2 { font-size: var(--h2-xl); line-height: .88; }
.about-lead { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.1; margin: 18px 0 22px; text-wrap: balance; }
.about-head p:not(.about-lead, .signature) { color: var(--ink-2); max-width: 44ch; }

.signature {
  margin-top: 28px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.signature::before { content: ""; width: 32px; height: 2px; background: var(--oak); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / 100% var(--progress, 0%) no-repeat, rgb(65 63 60 / 18%);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 28px;
  padding: 0 0 44px 44px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sand-warm);
  border: 2px solid var(--ink);
}

.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { background: var(--oak); border-color: var(--oak); }
.timeline .when { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; color: var(--oak-deep); }
.timeline h3 { font-size: 26px; line-height: 1.05; margin-bottom: 8px; }
.timeline p { color: var(--ink-2); max-width: 58ch; }

/* ── Beratung ─────────────────────────────────────────── */
.beratung { background: var(--paper); padding-bottom: calc(var(--section-y) * .6); }

.advice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  margin-bottom: clamp(48px, 7vh, 88px);
}

.advice {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--linen);
  border: 1px solid var(--line);
  overflow: hidden;
  padding-bottom: 28px;
}

.advice-img { aspect-ratio: 16 / 7; background-size: cover; background-position: center; margin-bottom: 28px; }
.advice h3 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1; margin: 0 28px 14px; }
.advice p { margin: 0 28px 12px; max-width: 62ch; color: var(--ink-2); }
.advice .link { align-self: flex-start; margin: auto 28px 0; padding-top: 16px; }

.form-card {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

/* Left column becomes a floor sample: it shows the material chosen in the form. */
.form-intro {
  position: relative;
  padding: clamp(28px, 4.5vw, 56px);
  background: var(--ink-deep) center / cover;
  transition: background-image .4s ease;
}

.form-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgb(38 30 22 / 86%), rgb(38 30 22 / 50%));
}

.form-intro > * { position: relative; }
.form-intro .sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.form-card[data-material="Parkett"] .form-intro { background-image: url("../assets/img/floor-parkett.webp"); }
.form-card[data-material="Vinyl"] .form-intro { background-image: url("../assets/img/floor-vinyl.webp"); }
.form-card[data-material="Laminat"] .form-intro { background-image: url("../assets/img/floor-laminat.webp"); }
.form-intro h3 { font-size: clamp(36px, 3.8vw, 56px); line-height: .95; }
.form-intro p { color: rgb(243 241 234 / 86%); margin: 16px 0 28px; max-width: 36ch; }
.promises { list-style: none; margin: 0; padding: 0; }

.promises li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line-dark);
  color: rgb(243 241 234 / 92%);
}

.promises li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 9px;
  margin-top: .45em;
  border-left: 2px solid var(--oak-light);
  border-bottom: 2px solid var(--oak-light);
  transform: rotate(-45deg) scale(.8);
}

#consult-form {
  display: grid;
  gap: 22px;
  align-content: start;
  padding: clamp(28px, 4.5vw, 56px);
}

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

legend,
.field label {
  display: block;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark);
  margin-bottom: 10px;
}

.opt { color: rgb(243 241 234 / 68%); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }

.chips span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgb(243 241 234 / 40%);
  font-size: 15px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.chips .swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-size: 160px auto;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 20%);
}

.chips .swatch--open { background: var(--wall); }
.chips label:has(.swatch) span { padding-left: 10px; }
.chips label:hover span { border-color: rgb(243 241 234 / 75%); }
.chips input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chips input:focus-visible + span { outline: 2px solid var(--oak-light); outline-offset: 3px; }

.field { display: flex; flex-direction: column; }
.field label { margin-bottom: 8px; }

.field input,
.field textarea {
  font: inherit;
  font-size: 17px;
  color: var(--paper);
  background: rgb(243 241 234 / 8%);
  border: 1px solid rgb(243 241 234 / 40%);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.field input:hover,
.field textarea:hover { border-color: rgb(243 241 234 / 65%); }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--oak-light);
  background: rgb(243 241 234 / 12%);
  box-shadow: 0 0 0 2px var(--oak-light);
}

.field textarea { resize: vertical; min-height: 110px; }
.field textarea::placeholder { color: rgb(243 241 234 / 65%); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .error { color: var(--error); font-size: 14px; line-height: 1.4; margin-top: 8px; }
.field .error:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-card .btn { background: var(--oak-light); color: var(--ink); }
.form-card .btn:hover { background: var(--oak-hover); }
.form-note { font-size: 14px; color: var(--on-dark); }
.form-status:empty { display: none; }
.form-status[data-tone="error"] { border-style: solid; border-color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.form-card .btn[aria-busy="true"] { opacity: .7; cursor: progress; }

.form-status {
  font-size: 15px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px dashed rgb(243 241 234 / 50%);
  color: var(--paper);
}

.form-success {
  margin: clamp(28px, 4.5vw, 56px);
  padding: 28px 32px;
  border-radius: var(--radius);
  border: 1px solid rgb(243 241 234 / 22%);
  background: rgb(243 241 234 / 6%);
}

.form-success h3 { font-size: 32px; margin-bottom: 8px; }
.form-success p { color: var(--on-dark); }

/* ── Kontakt ──────────────────────────────────────────── */
.kontakt { background: var(--ink-deep); }
.kontakt-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vh, 72px);
}

.kontakt h2 { font-size: var(--h2); line-height: .92; max-width: 14ch; }

.k-value a { overflow-wrap: anywhere; border-bottom: 1.5px solid var(--line-dark); transition: border-color .2s ease; }
.k-value a:hover { border-color: var(--oak-light); }

.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
}

.k-label { font-size: 14px; color: var(--on-dark); margin-bottom: 10px; }
.k-value { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2vw, 30px); line-height: 1.15; font-style: normal; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: var(--ink-deepest); color: var(--on-dark); padding: 56px var(--gutter) 32px; }

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-row .brand { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: .02em; color: var(--paper); }
.footer-row .brand span { color: var(--warm); }
.footer-row nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-row nav a { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .06em; }
.footer-row nav a:hover { color: var(--paper); }

.footer-mini {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 14px;
}

/* ── Responsive ───────────────────────────────────────── */
@media (width <= 1080px) {
  .materials { grid-template-columns: 1fr; }

  .material-tabs {
    flex-direction: row;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    gap: 28px;
  }

  .material-tabs [role="tab"] { padding: 12px 0 16px; border-bottom: 0; }
  .material-tabs [role="tab"]::before { inset: auto 0 -1px; top: auto; width: auto; height: 3px; transform: scaleX(0); }
  .material-tabs [aria-selected="true"]::before { transform: scaleX(1); }
  .tab-tag { display: none; }
}

@media (width <= 960px) {
  :root { --header-h: 76px; }

  .head,
  .hero-copy,
  .renovation-grid,
  .why-grid,
  .about-grid,
  .advice-grid,
  .form-card,
  .kontakt-grid,
  .panel-text,
  .why-list li { grid-template-columns: 1fr; }

  .why-head,
  .about-head,
  .form-intro .sticky { position: static; }

  .motto-body { grid-template-columns: 1fr; gap: 18px; }
  .site-nav { gap: 18px; }
  .site-nav a:not(.pill) { display: none; }
  .menu-toggle { display: inline-flex; }

  .hero-facts {
    position: relative;
    right: auto;
    bottom: auto;
    margin: -64px var(--gutter) 24px;
  }

  .hero-side { padding: 24px 0 0; }
  .hero-facts div { flex: 1; padding: 12px 14px; }
  .hero-facts dd { font-size: 20px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 36px; }
}

@media (width <= 560px) {
  .site-nav .pill { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .hero-facts { flex-direction: column; }
  .hero-floor { min-height: 240px; }
}

/* Touch devices: live blur behind fixed/large layers is costly while scrolling on phones. */
@media (hover: none) {
  .header-bg { backdrop-filter: none; background: rgb(232 223 207 / 97%); }
  .hero-facts div,
  .compare-tag { backdrop-filter: none; }
}

/* Reduced motion: no scroll choreography, logo sits in its final spot. */
@media (prefers-reduced-motion: reduce) {
  :root { --runway: 0px; }

  .scroll-hint { display: none; }

  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
