/* Tischlerei Wendholt
   Farben: Sand (Wärme, Naturmaterial) · Schiefer-Navy (Verlässlichkeit, Vertrauen) · Zollstock-Gelb (Aufmerksamkeit, Tatkraft) */
:root {
  --sand: #EEE9DF;
  --paper: #F7F4EE;
  --ink: #1B2530;
  --ink-2: #4B5662;
  --line: rgba(27, 37, 48, .14);
  --accent: #E3A72F;
  --accent-deep: #C98E1A;
  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 17px/1.6 var(--font); font-variation-settings: "wdth" 100; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.08; }
p { margin: 0; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border: 0; border-radius: 3px; font: 600 16px/1 var(--font); font-stretch: 105%; text-decoration: none; cursor: pointer; transition: background .2s, transform .15s; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-deep); }
.btn:active { transform: translateY(1px); }
.arr { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.textlink { font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px; transition: background-size .25s; }
.textlink:hover { background-size: 0 1.5px; background-position: 100% 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Topbar */
.topbar { background: var(--ink); color: #C9CED4; font-size: 13.5px; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: var(--sand); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 40px; height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark { width: 38px; height: 38px; }
.logo__mark rect { fill: var(--ink); }
.logo__mark path { fill: var(--accent); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text b { font-size: 21px; font-weight: 700; font-stretch: 118%; letter-spacing: -.01em; }
.logo__text small { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; letter-spacing: .02em; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 15.5px; font-weight: 500; text-decoration: none; padding: 6px 0; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 2px no-repeat; transition: background-size .25s; }
.nav a:hover { background-size: 100% 2px; }
.header__cta { height: 46px; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); background: none; border-radius: 3px; cursor: pointer; padding: 0 12px; flex-direction: column; justify-content: center; gap: 6px; }
.burger span { display: block; height: 2px; background: var(--ink); transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobilenav { display: none; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 74px); font-stretch: 116%; max-width: 12ch; }
.hero__lead { margin-top: 28px; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 34em; }
.hero__actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 32px; margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line); justify-content: start; }
.facts dt { font-size: 34px; font-weight: 600; font-stretch: 120%; letter-spacing: -.02em; line-height: 1; }
.facts dd { margin: 8px 0 0; font-size: 14.5px; color: var(--ink-2); max-width: 13ch; line-height: 1.35; }
.hero__media { position: relative; margin: 0; }
.hero__media > img:first-child { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.hero__inset { position: absolute; left: -48px; bottom: 40px; width: 42%; aspect-ratio: 4 / 3; object-fit: cover; border: 8px solid var(--sand); border-radius: 3px; }

/* Sections */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #EEF0F2; }
.sechead { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.sechead h2 { font-size: clamp(32px, 3.6vw, 50px); }
.sechead p { margin-top: 18px; color: var(--ink-2); font-size: 18px; }
.section--ink .sechead p { color: #B8C0C8; }
.sechead--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.sechead--row > div:first-child { max-width: 640px; }

/* Services */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 80px 1fr 260px; gap: 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); transition: background .25s; }
.service__no { font-size: 15px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; align-self: start; padding-top: 6px; }
.service h3 { font-size: clamp(22px, 2.2vw, 30px); }
.service p { margin-top: 10px; color: var(--ink-2); max-width: 46em; }
.service img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; filter: saturate(.9); transition: filter .3s, transform .4s; }
.service:hover img { filter: saturate(1.05); transform: scale(1.02); }
.service:hover .service__no { color: var(--accent-deep); }

/* Projects */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { height: 40px; padding: 0 18px; border: 1px solid var(--line); background: transparent; border-radius: 40px; font: 500 15px/1 var(--font); color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s; }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.project--wide { grid-column: span 2; }
.project[hidden] { display: none; }
.project__img { overflow: hidden; border-radius: 3px; background: #ddd6c9; }
.project { display: flex; flex-direction: column; }
.project__img { position: relative; aspect-ratio: 4 / 3; }
.project--wide .project__img { aspect-ratio: auto; flex: 1; min-height: 240px; }
.project__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project:hover .project__img img { transform: scale(1.03); }
.project__meta { padding-top: 16px; }
.project h3 { font-size: 20px; font-stretch: 108%; }
.project p { margin-top: 4px; font-size: 15px; color: var(--ink-2); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.steps li { position: relative; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.18); }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 3px; background: var(--accent); }
.steps__no { display: block; font-size: 56px; font-weight: 300; font-stretch: 120%; line-height: 1; color: var(--accent); margin-bottom: 24px; }
.steps h3 { font-size: 21px; font-stretch: 108%; }
.steps p { margin-top: 10px; color: #B8C0C8; font-size: 16px; }

/* Werkstatt */
.werkstatt { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.werkstatt__media { position: relative; padding-bottom: 72px; }
.werkstatt__big { width: 88%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.werkstatt__small { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; object-fit: cover; border: 8px solid var(--sand); border-radius: 3px; }
.werkstatt__text h2 { font-size: clamp(30px, 3.2vw, 44px); }
.werkstatt__text > p { margin-top: 20px; color: var(--ink-2); font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 32px 0 36px; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; align-items: start; }
.checks li::before { content: ""; width: 16px; height: 9px; margin-top: 7px; border-left: 2.5px solid var(--accent-deep); border-bottom: 2.5px solid var(--accent-deep); transform: rotate(-45deg); }

/* FAQ */
.faqwrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: 19px; font-weight: 600; font-stretch: 106%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: 6px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__text h2 { font-size: clamp(32px, 3.6vw, 50px); }
.contact__text > p { margin-top: 18px; color: var(--ink-2); font-size: 18px; max-width: 30em; }
.contact__info { margin: 40px 0 0; display: grid; gap: 20px; }
.contact__info div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact__info dt { font-size: 14px; color: var(--ink-2); }
.contact__info dd { margin: 0; font-weight: 500; }
.form { background: var(--paper); padding: clamp(24px, 4vw, 48px); border-radius: 3px; display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: 400 16px/1.4 var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 3px; transition: border-color .2s; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(227,167,47,.45); }
.form .is-invalid { border-color: #B3261E !important; }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 15.5px; }
.form .check input { width: 20px; height: 20px; accent-color: var(--ink); }
.form .btn { justify-self: start; }
.form__note { font-size: 15px; min-height: 1.4em; }

/* Footer */
.footer { background: var(--ink); color: #C9CED4; padding: 80px 0 32px; }
.footer__top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer__word { display: block; font-size: clamp(48px, 7vw, 96px); font-weight: 700; font-stretch: 122%; color: #EEF0F2; letter-spacing: -.03em; line-height: .95; }
.footer__brand p { margin-top: 16px; max-width: 26em; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__cols h4 { color: #fff; font-size: 15px; font-stretch: 100%; letter-spacing: 0; margin-bottom: 14px; }
.footer__cols a, .footer__cols span { display: block; font-size: 15px; padding: 4px 0; text-decoration: none; }
.footer__cols a:hover { color: var(--accent); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; font-size: 13.5px; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: #fff; }
.footer__credit { margin-left: auto; }

/* Responsive */
@media (max-width: 1080px) {
  .nav, .header__cta { display: none; }
  .burger { display: flex; }
  .mobilenav { display: grid; gap: 4px; padding: 8px var(--gut) 24px; border-top: 1px solid var(--line); background: var(--sand); }
  .mobilenav:not(.is-open) { display: none; }
  .mobilenav a { padding: 14px 0; font-size: 18px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobilenav .btn { margin-top: 16px; justify-content: center; border: 0; }
  .service { grid-template-columns: 56px 1fr 200px; }
}
@media (max-width: 900px) {
  .hero__grid, .werkstatt, .faqwrap, .contact { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .hero__media > img:first-child { aspect-ratio: 4 / 3; }
  .hero__inset { display: none; }
  .projects { grid-template-columns: 1fr 1fr; }
  .project--wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar__hours { display: none; }
  .header__in { height: 68px; }
  html { scroll-padding-top: 76px; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .facts dt { font-size: 26px; }
  .facts dd { font-size: 13px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .service { grid-template-columns: 1fr; gap: 12px; }
  .service img { order: -1; aspect-ratio: 16 / 9; }
  .service__no { padding-top: 0; }
  .projects { grid-template-columns: 1fr; }
  .project--wide { grid-column: auto; }
  .project--wide .project__img { aspect-ratio: 4 / 3; flex: none; }
  .steps { grid-template-columns: 1fr; }
  .werkstatt__media { padding-bottom: 48px; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn { width: 100%; justify-content: center; }
  .contact__info div { grid-template-columns: 1fr; gap: 4px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__credit { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Bewegung ---------- */
.motion [data-reveal] {
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1), clip-path 1.2s cubic-bezier(.7,0,.2,1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.motion [data-reveal="up"]:not(.is-in) { opacity: 0; transform: translateY(36px); }
.motion [data-reveal="wipe"]:not(.is-in) { clip-path: inset(0 100% 0 0); }
.motion [data-reveal="wipe"] { clip-path: inset(0 0 0 0); }
.motion .hero__inset[data-reveal] { transition-delay: .55s; }

/* Fortschrittsbalken */
.header { position: sticky; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* Mehr Hover */
.logo__mark { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); }
.hero__media { overflow: visible; }
.hero__inset { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.hero__media:hover .hero__inset { transform: translate(-8px, -8px) rotate(-1.5deg); }
.service { position: relative; }
.service::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--accent); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.service:hover::before { width: 100%; }
.service__body { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.service:hover .service__body { transform: translateX(10px); }
.service img { transition: filter .3s, transform .6s cubic-bezier(.2,.7,.2,1), border-radius .4s; }
.service:hover img { border-radius: 40px 3px 3px 3px; }
.project h3 { display: inline; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1.5px no-repeat; transition: background-size .35s; }
.project:hover h3 { background-size: 100% 1.5px; }
.project { cursor: pointer; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.project:hover { transform: translateY(-3px); }
.steps li::before { transition: width .5s cubic-bezier(.2,.7,.2,1); }
.steps li:hover::before { width: 100%; }
.steps__no { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.steps li:hover .steps__no { transform: translateY(-6px); }
.werkstatt__media img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.werkstatt__media:hover .werkstatt__small { transform: translate(8px, 8px); }
.checks li { transition: transform .3s; }
.checks li:hover { transform: translateX(6px); }
.faq summary { transition: color .2s, padding .3s; }
.faq summary:hover { color: var(--accent-deep); padding-left: 8px; }
.filter { transition: background .2s, border-color .2s, color .2s, transform .2s; }
.filter:hover { transform: translateY(-2px); }
.footer__word { transition: letter-spacing .6s cubic-bezier(.2,.7,.2,1); }
.footer__brand:hover .footer__word { letter-spacing: .01em; }

@media (prefers-reduced-motion: reduce) {
  .progress { display: none; }
}
