/* Tischlerei — „Maß & Maserung"
   Werkstattgrün, Birke, Eiche, Nussbaum. Große ruhige Serifenschrift, viel Luft.
   Messwerkzeug als Motiv: Maßband oben als Scrollanzeige, Zollstock-Regler, Zollstock, der sich aufklappt. */
:root {
  --gruen: #1e3b34; --gruen-2: #28493f; --birke: #f1ece4; --birke-2: #e9e2d6;
  --eiche: #c99a5b; --eiche-hell: #ddb57f; --nuss: #3b2a1f; --nuss-2: #6b5645;
  --gelb: #f2c230;
  --fokus: var(--eiche-hell);
  --rand: clamp(1.1rem, 5vw, 5rem);
  --seg-r: 2px; --seg-an: var(--nuss); --seg-an-text: var(--birke);
}
:root {
  /* Bausteine aus gemeinsam/rahmen.css */
  --b-akzent: var(--eiche); --b-akzent-text: var(--nuss); --b-radius: 2px;
  --b-titel: "Instrument Serif", Georgia, serif; --b-zitat: "Instrument Serif", Georgia, serif;
  --b-linie: rgb(241 236 228 / .16); --b-text-2: #b9c4be; --b-karte: rgb(241 236 228 / .05); --b-fehler: #ffb4a8; --b-gut: #9fd3b0;
  --kopf-fest-grund: rgb(30 59 52 / .9); --kopf-fest-text: var(--birke); --kopf-fest-rand: rgb(201 154 91 / .35);
  --menue-grund: var(--gruen); --menue-text: var(--birke); --menue-akzent: var(--eiche-hell); --menue-linie: rgb(241 236 228 / .14);
  --menue-schrift: "Instrument Serif", Georgia, serif; --menue-gewicht: 400; --menue-knopf-r: 2px;
}
body { background: var(--gruen); color: var(--birke); font: 400 1.06rem/1.65 "Inter Tight", system-ui, sans-serif; }
h1, h2, h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -.01em; line-height: 1; }
h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.rahmen { width: min(100% - 2 * var(--rand), 1240px); margin-inline: auto; }

/* Maßband als Scrollanzeige */
.massband { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 12px; transform-origin: left; scale: 0 1;
  background: repeating-linear-gradient(90deg, #1c1a17 0 1px, transparent 1px 10px) 0 0 / 100% 5px no-repeat,
              repeating-linear-gradient(90deg, #1c1a17 0 1.5px, transparent 1.5px 50px) 0 0 / 100% 9px no-repeat, var(--gelb);
  box-shadow: 0 1px 3px rgb(0 0 0 / .3); }
@supports (animation-timeline: scroll()) { .massband { animation: abrollen linear both; animation-timeline: scroll(root); } @keyframes abrollen { to { scale: 1 1; } } }
@supports not (animation-timeline: scroll()) { .massband { display: none; } }

/* ---------- Kopf ---------- */
.kopf { position: absolute; inset: 12px 0 auto; z-index: 10; display: flex; justify-content: space-between; align-items: baseline; padding: 1.3rem var(--rand); }
.marke { font: 400 1.7rem/1 "Instrument Serif", serif; text-decoration: none; }
.kopf nav { display: flex; gap: clamp(1rem, 3vw, 2.4rem); font-size: .95rem; letter-spacing: .01em; }
.kopf nav a { text-decoration: none; opacity: .85; }
.kopf nav a:hover, .kopf nav a.ist-aktiv { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--eiche); }
@media (max-width: 700px) { .kopf nav { display: none; } }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.4rem; border-radius: 2px; text-decoration: none; font-weight: 600; border: 1px solid transparent; transition: background-color .25s, color .25s; }
.knopf-eiche { background: var(--eiche); color: var(--nuss); }
.knopf-eiche:hover { background: var(--eiche-hell); }
.knopf-linie { border-color: rgb(241 236 228 / .45); }
.knopf-linie:hover { background: rgb(241 236 228 / .08); }

/* ---------- Held ---------- */
.held { height: 100svh; min-height: 640px; max-height: 1100px; overflow: hidden; }
.held-ersatz { background: radial-gradient(circle at 72% 50%, #c99a5b 0 26%, var(--gruen) 27%); }
.held-text { position: absolute; z-index: 2; left: var(--rand); top: 50%; translate: 0 -45%; max-width: 34rem; }
.held h1 { font-size: clamp(3.8rem, 8.4vw, 8rem); line-height: .92; }
.held-text p { margin-top: 1.6rem; max-width: 28rem; color: #cfd8d2; font-size: 1.1rem; }
.held-aktionen { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.ringzaehler { position: absolute; z-index: 2; left: var(--rand); bottom: clamp(1.5rem, 5vh, 3rem); display: flex; align-items: center; gap: 1rem; font-size: .9rem; color: #cfd8d2; }
.ringzaehler b { font: 400 clamp(3rem, 6vw, 4.6rem)/1 "Instrument Serif", serif; color: var(--eiche-hell); min-width: 2ch; text-align: right; }
@media (max-width: 800px) {
  .held { height: auto; min-height: 100svh; max-height: none; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 2rem; }
  .held-text { position: relative; top: auto; left: auto; translate: none; padding: 52svh var(--rand) 0; }
  .ringzaehler { position: relative; right: auto; bottom: auto; padding: 1.5rem var(--rand) 0; }
}

/* ---------- Werkstatt ---------- */
.werkstatt { padding: clamp(5rem, 10vw, 9rem) 0; }
.arbeiten { margin-top: 3rem; border-top: 1px solid rgb(241 236 228 / .25); }
.arbeiten li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: baseline; padding: 1.6rem 0; border-bottom: 1px solid rgb(241 236 228 / .25); isolation: isolate; }
.arbeiten li::before { content: ""; position: absolute; inset: 0 -1rem; z-index: -1; background: var(--holz-bild, var(--eiche)) center / cover; clip-path: inset(0 100% 0 0); transition: clip-path .6s cubic-bezier(.6,0,.2,1); }
.arbeiten li::after { content: ""; position: absolute; inset: 0 -1rem; z-index: -1; background: linear-gradient(90deg, rgb(30 59 52 / .15), rgb(30 59 52 / .75)); clip-path: inset(0 100% 0 0); transition: clip-path .6s cubic-bezier(.6,0,.2,1); }
.arbeiten li:hover::before, .arbeiten li:hover::after { clip-path: inset(0 0 0 0); }
.arbeiten h3 { font-size: clamp(2rem, 4vw, 3.2rem); transition: color .4s; }
.arbeiten li:hover h3 { color: #fff; text-shadow: 0 2px 16px rgb(0 0 0 / .35); }
.arbeiten p { color: #cfd8d2; max-width: 30rem; }
@media (max-width: 700px) { .arbeiten li { grid-template-columns: 1fr; } }

/* ---------- Konfigurator ---------- */
.konfigurator { background: var(--birke-2); color: var(--nuss); padding: clamp(5rem, 10vw, 8rem) 0; --fokus: var(--nuss); }
.tisch { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "kopf kopf" "modell ein" "werte werte" "fuss fuss"; gap: 2rem clamp(2rem, 4vw, 4rem); }
.tisch-kopf { grid-area: kopf; display: grid; grid-template-columns: auto minmax(0, 26rem); gap: 1rem 3rem; align-items: end; justify-content: space-between; }
.tisch-kopf p { color: var(--nuss-2); }
.modell { grid-area: modell; aspect-ratio: 4 / 3; width: 100%; }
.modell-ersatz { background: radial-gradient(circle, #d8c9b3, var(--birke-2)); }
.modell-tipp { position: absolute; left: 0; bottom: .3rem; font-size: .82rem; color: var(--nuss-2); pointer-events: none; }
.eingaben { grid-area: ein; display: grid; gap: 1.4rem; align-content: start; }
.feld { border: 0; margin: 0; padding: 0; display: grid; gap: .5rem; }
.feld legend, .eingaben label { font-size: .92rem; color: var(--nuss-2); }
.eingaben output { font: 400 1.6rem/1 "Instrument Serif", serif; color: var(--nuss); }
.segmente > button { border-color: rgb(59 42 31 / .3); font-size: .95rem; }
.holzwahl > button { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .75rem .35rem .35rem; }
.holzwahl i { width: 1.7rem; height: 1.7rem; border-radius: 2px; background: var(--muster) center / cover; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }

/* Zollstock-Regler: Spur als Gliedermaßstab, Knopf als Messingschieber */
.zollstock input[type="range"] {
  --spur-h: 22px; --spur-r: 2px; --knopf-g: 30px; --knopf-r: 3px;
  --knopf: linear-gradient(#e6c77a, #b8913f); --knopf-rand: 1px solid #7a5a1c; --knopf-schatten: 0 2px 5px rgb(0 0 0 / .35);
  height: 34px;
}
.zollstock input[type="range"]::-webkit-slider-runnable-track {
  background:
    repeating-linear-gradient(90deg, #1c1a17 0 1px, transparent 1px 8px) 0 0 / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, #1c1a17 0 1.5px, transparent 1.5px 40px) 0 0 / 100% 11px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 calc(20% - 2px), rgb(0 0 0 / .35) calc(20% - 2px) 20%),
    linear-gradient(90deg, var(--gelb) var(--p), #f5e8b8 var(--p));
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / .08);
}
.zollstock input[type="range"]::-moz-range-track {
  background:
    repeating-linear-gradient(90deg, #1c1a17 0 1px, transparent 1px 8px) 0 0 / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, #1c1a17 0 1.5px, transparent 1.5px 40px) 0 0 / 100% 11px no-repeat,
    linear-gradient(90deg, var(--gelb) var(--p), #f5e8b8 var(--p));
}
.zollstock input[type="range"]::-webkit-slider-thumb { width: 14px; height: 34px; margin-top: -6px; background: var(--knopf); }
.zollstock input[type="range"]::-moz-range-thumb { width: 14px; height: 34px; background: linear-gradient(#e6c77a, #b8913f); }

.werte { grid-area: werte; display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); border-top: 1px solid rgb(59 42 31 / .25); }
.werte > div { padding: 1.2rem 1rem 0 0; }
.werte > div + div { padding-left: 1.2rem; border-left: 1px solid rgb(59 42 31 / .15); }
.werte dt { font-size: .9rem; color: var(--nuss-2); }
.werte dd { font: 400 clamp(1.8rem, 3vw, 2.5rem)/1.05 "Instrument Serif", serif; margin-top: .25rem; }
.werte .gross dd { font-size: clamp(4rem, 8vw, 6.5rem); line-height: .95; color: var(--gruen); }
.tisch-fuss { grid-area: fuss; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.hinweis { font-size: .85rem; color: var(--nuss-2); max-width: 40rem; }
@media (max-width: 900px) {
  .tisch { grid-template-columns: 1fr; grid-template-areas: "kopf" "modell" "ein" "werte" "fuss"; }
  .tisch-kopf { grid-template-columns: 1fr; }
  .werte { grid-template-columns: 1fr 1fr; }
  .werte .gross { grid-column: 1 / -1; }
  .werte > div + div { border-left: 0; padding-left: 0; }
}

/* ---------- Ablauf mit Zollstock ---------- */
.ablauf { padding: clamp(5rem, 10vw, 8rem) 0; }
.zollstock-leiste { display: flex; margin: 3rem 0 2.5rem; height: 26px; perspective: 800px; }
.zollstock-leiste i {
  flex: 1; height: 100%; transform-origin: left center; border-right: 2px solid #8a6d2a;
  background:
    repeating-linear-gradient(90deg, #1c1a17 0 1px, transparent 1px 7px) 0 0 / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, #1c1a17 0 1.5px, transparent 1.5px 35px) 0 0 / 100% 12px no-repeat, var(--gelb);
  box-shadow: 0 3px 8px rgb(0 0 0 / .25);
}
@supports (animation-timeline: view()) {
  .zollstock-leiste i { animation: aufklappen linear both; animation-timeline: view(); }
  .zollstock-leiste i:nth-child(odd) { --von: -165deg; } .zollstock-leiste i:nth-child(even) { --von: 165deg; }
  .zollstock-leiste i:nth-child(1) { animation-range: entry 30% cover 35%; } .zollstock-leiste i:nth-child(2) { animation-range: entry 38% cover 38%; }
  .zollstock-leiste i:nth-child(3) { animation-range: entry 46% cover 41%; } .zollstock-leiste i:nth-child(4) { animation-range: entry 54% cover 44%; }
  .zollstock-leiste i:nth-child(5) { animation-range: entry 62% cover 47%; } .zollstock-leiste i:nth-child(6) { animation-range: entry 70% cover 50%; }
  .zollstock-leiste i:nth-child(7) { animation-range: entry 78% cover 53%; } .zollstock-leiste i:nth-child(8) { animation-range: entry 86% cover 56%; }
  @keyframes aufklappen { from { transform: rotateZ(var(--von)); opacity: 0; } 20% { opacity: 1; } to { transform: rotateZ(0deg); } }
}
.schritte { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: s; }
.schritte li { counter-increment: s; }
.schritte li::before { content: counter(s) "0 cm"; display: block; font-size: .8rem; letter-spacing: .02em; color: var(--eiche); margin-bottom: .6rem; }
.schritte b { display: block; font: 400 2.2rem/1 "Instrument Serif", serif; margin-bottom: .6rem; }
.schritte span { color: #cfd8d2; }
@media (max-width: 800px) { .schritte { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .schritte { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.kontakt-bereich { background: var(--birke); color: var(--nuss); padding: clamp(5rem, 10vw, 8rem) 0; --fokus: var(--nuss); }
.kontakt { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.kontakt p { margin-top: 1rem; color: var(--nuss-2); }
.kontakt-ruf a { font: 400 clamp(2.4rem, 5vw, 3.6rem)/1 "Instrument Serif", serif; color: var(--nuss); text-decoration: none; }
.anfrage { display: grid; gap: 1.1rem; }
.anfrage label { display: grid; gap: .35rem; font-size: .92rem; color: var(--nuss-2); }
.anfrage input, .anfrage select, .anfrage textarea { padding: .8rem 0; border: 0; border-bottom: 1.5px solid rgb(59 42 31 / .4); background: transparent; color: var(--nuss); font-size: 1.05rem; }
.anfrage input:focus-visible, .anfrage select:focus-visible, .anfrage textarea:focus-visible { outline: none; border-bottom-color: var(--nuss); box-shadow: 0 2px 0 var(--eiche); }
.anfrage .knopf { justify-self: start; margin-top: .5rem; }
.anfrage-antwort { min-height: 1.4em; color: var(--gruen); font-weight: 600; }
@media (max-width: 800px) { .kontakt { grid-template-columns: 1fr; } }

/* ---------- Fuß ---------- */
.fuss { background: var(--gruen); color: #aebdb6; padding: 0 0 5.5rem; font-size: .95rem; }

/* ---------- Neue Abschnitte ---------- */
.ton-birke { background: var(--birke); color: var(--nuss); }
.ton-birke, .kontakt-bereich, .konfigurator { --b-linie: rgb(59 42 31 / .16); --b-text-2: var(--nuss-2); --b-akzent: #9a6b2f; --b-akzent-text: #fff; --b-fehler: #b3261e; --b-gut: #2d6a4f; --b-karte: #fff; }
.kopf .menue-knopf, .kopf .kopf-ruf { border-color: rgb(241 236 228 / .45); }
.menue-nav a { font-size: clamp(2.4rem, 11vw, 3.6rem); letter-spacing: -.01em; }
.menue-nr { font-family: "Inter Tight", sans-serif; }
.projekt h3 { font-weight: 400; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; }
.projekt-ort { letter-spacing: .14em; font-size: .75rem; }
.projekt-daten dd { font: 400 1.5rem/1.1 "Instrument Serif", serif; }
.projekt-bild { box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
.projekte-hinweis, .stimmen-hinweis { margin-top: 2.5rem; }
.betrieb-lead { font-family: "Instrument Serif", serif; font-style: italic; font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.25; }
.siegel li { background: #fff; border-color: rgb(59 42 31 / .1); }
.grundsaetze h3 { font-weight: 400; font-size: 2rem; }
.team-bild { background: repeating-radial-gradient(circle at 18% 115%, #d7ab6c 0 2px, #c3924f 2px 4.5px); color: var(--nuss); font: italic 400 1.7rem/1 "Instrument Serif", serif; box-shadow: inset 0 0 0 3px #7a5230; }
.stimme { background: none; border: 0; border-top: 1px solid var(--b-linie); border-radius: 0; padding: 1.8rem 0 0; }
.stimme blockquote { font-style: italic; font-size: clamp(1.45rem, 2vw, 1.8rem); line-height: 1.3; }
.stimme figcaption { border-top: 0; padding-top: 0; }
.fragen-liste summary { font: 400 clamp(1.4rem, 2vw, 1.75rem)/1.2 "Instrument Serif", serif; }
.fragen-liste details[open] > summary::after { color: var(--nuss); }
.fragen-kopf a { color: var(--eiche-hell); }
.kontakt-mail a, .zeiten, .gebiet { color: var(--nuss); }
.anfrage select { background-color: transparent; }
.fuss-raster { --fuss-linie: rgb(241 236 228 / .14); }
.fuss .marke, .fuss a { color: var(--birke); }
.fuss .marke { font-size: 2rem; }
.fuss .fuss-titel { color: var(--eiche-hell); opacity: 1; }
