/* Hafizi Parkett: main stylesheet
   Palette from Logo.pdf. Type: Saira Condensed (display) + Archivo (text). */

:root {
  --ink: rgb(65 63 60);
  --ink-soft: rgb(82 80 76);
  --char: rgb(94 91 88);
  --stone: rgb(132 123 116);
  --warm: rgb(150 144 132);
  --cream: rgb(216 213 197);
  --paper: #f4f1ea;
  --paper-2: #ece7dc;
  --line: rgb(65 63 60 / 16%);
  --line-dark: rgb(244 241 234 / 14%);
  --on-dark: rgb(244 241 234 / 72%);

  /* wood tones for material swatches */
  --oak: #b08a5e;
  --oak-dark: #8d6a43;
  --oak-light: #c9a77c;

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

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

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

body {
  font-family: var(--ui);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  line-height: 1.55;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

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

.on-dark :focus-visible { outline-color: var(--paper); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-family: var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
  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: 3px;
}

/* ── Intro: scroll runway + fixed stage ───────────────── */
.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: var(--paper);
  border-bottom: 1px solid var(--line);
  opacity: 0;
}

.h-mark {
  position: absolute;
  display: block;
  transform-origin: 50% 50%;
  will-change: transform, width, height, top, left;
  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;
}

.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: 1px;
  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: 10px 18px !important;
  border-radius: 999px;
  font-size: 12px;
  transition: background .2s ease;
}

.pill:hover { background: var(--char); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 8px 0;
  color: var(--ink);
  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-soft);
}

.scroll-hint .line {
  width: 1px;
  height: 56px;
  background: var(--ink-soft);
  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 panel */
.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;
  gap: 4px;
}

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

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

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

/* ── Shared section scaffolding ───────────────────────── */
main {
  position: relative;
  z-index: 1;
  background: var(--paper);
}

section {
  padding: clamp(80px, 12vh, 160px) var(--gutter);
  scroll-margin-top: calc(var(--header-h) - 1px);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

.label {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 64px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.section-head h2 {
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: .92;
  margin: 16px 0 0;
}

.section-head .desc {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 48ch;
  margin: 0;
  justify-self: end;
}

.on-dark .label,
.on-dark .section-head .desc { color: var(--on-dark); }
.on-dark .section-head { border-color: var(--line-dark); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: var(--paper);
  padding: 18px 28px;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  border: 0;
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}

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

.btn .arrow {
  position: relative;
  width: 26px;
  height: 1px;
  background: currentcolor;
}

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

.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }

/* Photo placeholders: replaced by real photos later */
.photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgb(65 63 60 / 7%) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, rgb(132 123 116 / 18%), rgb(132 123 116 / 8%));
  border: 1px solid var(--line);
}

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

.photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--paper);
  padding: 4px 8px;
  border: 1px solid var(--line);
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 24px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--ink-soft);
}

.headline {
  font-size: clamp(56px, 8.6vw, 138px);
  line-height: .86;
  margin: 0 0 28px;
}

.headline em {
  font-style: italic;
  color: var(--stone);
}

.plank-mark {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: clamp(160px, 22vw, 240px);
  margin: 0 0 32px;
}

.plank-mark span {
  display: block;
  height: 8px;
  background: var(--ink);
}

.plank-mark span:nth-child(1) { width: 64%; }
.plank-mark span:nth-child(2) { width: 100%; }
.plank-mark span:nth-child(3) { width: 48%; }

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

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

.facts {
  display: flex;
  gap: 28px;
  margin: 0;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.facts div {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  line-height: 1;
}

.facts dt {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.facts dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 1.8vw, 28px);
}

/* ── Leistungen ───────────────────────────────────────── */
.material-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

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

/* Each swatch draws its floor type in CSS: herringbone parquet, long vinyl planks, staggered laminate. */
.swatch {
  height: 180px;
  border-bottom: 1px solid var(--line);
}

.swatch--parkett {
  background: var(--oak) url("../assets/img/herringbone.svg") center / cover;
}

.swatch--vinyl {
  background:
    repeating-linear-gradient(0deg, transparent 0 44px, rgb(65 63 60 / 25%) 44px 45px),
    linear-gradient(90deg, #a49b8e, #b5ad9f 40%, #9c9386);
}

.swatch--laminat {
  background: #c2ad8c url("../assets/img/laminat.svg") center / cover;
}

.material-body { padding: 32px 28px 40px; }

.material h3 {
  font-size: clamp(32px, 3vw, 44px);
  line-height: .95;
  margin: 0;
}

.material .tagline {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--char);
  margin: 8px 0 18px;
}

.material p:last-child {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 40ch;
}

.renovation {
  margin-top: clamp(64px, 9vh, 120px);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.renovation h3 {
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: .95;
  margin: 12px 0 0;
}

.renovation .text p {
  margin: 0 0 16px;
  font-size: 17px;
  max-width: 56ch;
}

.renovation .text p:first-child {
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.4;
}

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

.why-intro {
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.5;
  max-width: 60ch;
  margin: 0 0 56px;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 40px;
}

.why-list li {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.why-list h3 {
  font-size: 26px;
  line-height: 1;
  margin: 0 0 10px;
}

.why-list p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42ch;
}

.goal {
  margin-top: 56px;
  padding: 32px 0 0;
  border-top: 2px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.goal p { margin: 0; }

.goal .goal-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.05;
}

/* ── Motto ────────────────────────────────────────────── */
.motto {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.motto-title {
  font-size: clamp(64px, 12vw, 200px);
  line-height: .84;
  margin: 18px 0 48px;
  letter-spacing: -.02em;
}

.motto-title span { display: block; }
.motto-title .small { font-size: .38em; color: var(--warm); margin: .1em 0; }

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

.motto-body p {
  margin: 0;
  color: var(--on-dark);
  font-size: 16.5px;
}

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

.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.about .photo {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  background-color: rgb(65 63 60 / 6%);
}

.about h2 {
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: .95;
  margin: 16px 0 28px;
}

.about .intro {
  font-size: clamp(18px, 1.5vw, 21px);
  max-width: 54ch;
  margin: 0 0 40px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--ink);
}

.timeline li {
  position: relative;
  padding: 0 0 32px 32px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--cream);
  border: 2px solid var(--ink);
}

.timeline .when {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  margin-bottom: 6px;
}

.timeline p {
  margin: 0;
  max-width: 56ch;
}

.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { background: var(--ink); }

.signature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  font-family: var(--display);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--ink-soft);
}

.signature::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink-soft);
}

/* ── Beratung ─────────────────────────────────────────── */
.beratung {
  background: var(--ink);
  color: var(--paper);
}

.advice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  margin-bottom: clamp(64px, 9vh, 112px);
}

.advice h3 {
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1;
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}

.advice p {
  color: var(--on-dark);
  margin: 0 0 14px;
  max-width: 54ch;
}

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

.form-title {
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: .95;
  margin: 0 0 32px;
}

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

.field label {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.field input,
.field textarea,
.field select {
  font-family: var(--ui);
  font-size: 16px;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgb(244 241 234 / 30%);
  border-radius: 0;
  padding: 12px 0;
  transition: border-color .2s ease;
}

.field select option { color: var(--ink); }

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: var(--paper);
  box-shadow: 0 1px 0 var(--paper);
}

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

.field [aria-invalid="true"] { border-color: #e8a48c; }

.field .error {
  color: #f0b8a4;
  font-size: 14px;
  min-height: 1em;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-note {
  font-size: 14px;
  color: var(--on-dark);
  margin: 16px 0 0;
}

.form-side {
  border-left: 1px solid var(--line-dark);
  padding-left: clamp(24px, 3vw, 48px);
}

.form-side h3 {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
  margin: 0 0 18px;
}

.form-side ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.form-side li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgb(244 241 234 / 10%);
  color: rgb(244 241 234 / 88%);
}

.form-side li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 4px;
  margin-top: .65em;
  background: var(--warm);
}

.form-success {
  background: rgb(244 241 234 / 8%);
  border: 1px solid rgb(244 241 234 / 18%);
  padding: 28px 32px;
}

.form-success h3 {
  font-size: 30px;
  margin: 0 0 8px;
}

.form-success p { margin: 0; color: var(--on-dark); }

/* ── Kontakt ──────────────────────────────────────────── */
.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.kontakt-block .label { margin-bottom: 14px; }

.k-value {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.15;
  font-style: normal;
}

.k-value a { border-bottom: 1px solid var(--line); }
.k-value a:hover { border-color: var(--ink); }

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

.footer-row {
  max-width: var(--maxw);
  margin: 0 auto;
  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: 22px;
  letter-spacing: .04em;
  color: var(--paper);
}

.footer-row nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-row nav a {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.footer-row nav a:hover { color: var(--paper); }

.footer-mini {
  max-width: var(--maxw);
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--on-dark);
}

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

  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: calc(var(--header-h) + 48px); }
  .facts { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); width: 100%; }
  .section-head,
  .renovation,
  .goal,
  .about-grid,
  .advice-grid,
  .form-grid,
  .kontakt-grid { grid-template-columns: 1fr; }
  .section-head .desc { justify-self: start; }
  .material-grid { grid-template-columns: 1fr; }
  .motto-body { grid-template-columns: 1fr; gap: 20px; }
  .about .photo { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .form-side { border-left: 0; padding: 24px 0 0; border-top: 1px solid var(--line-dark); }
  .site-nav { gap: 18px; }
  .site-nav a:not(.pill) { display: none; }
  .menu-toggle { display: inline-flex; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (width <= 480px) {
  .site-nav .pill { display: none; }
  .facts { gap: 20px; }
}

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

  .scroll-hint { display: none; }
  .scroll-hint .line { animation: none; }

  * { transition-duration: .01ms !important; }
}
