/* Wenzlhuber & Tochter – Demo von OBHOLZ SOLUTIONS. Granit, Graphit, Tannengrün; Holz ist die einzige satte Farbe. */
@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader.woff2') format('woff2'); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-italic.woff2') format('woff2'); font-weight: 300 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans.woff2') format('woff2'); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }

:root {
  --stein-0: #eeefeb;
  --stein-1: #e4e5e1;
  --stein-2: #d6d8d3;
  --buehne: #c9cbc6;
  --graphit: #1e2326;
  --graphit-2: #4d5458;
  --graphit-3: #5c6367;
  --tanne: #23402f;
  --tanne-2: #2e5540;
  --tanne-hell: #dfe7e0;
  --linie: rgba(30, 35, 38, 0.14);
  --linie-2: rgba(30, 35, 38, 0.26);
  --papier: #f6f6f3;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --karte-b: 404px;
  --kopf-h: 97px;   /* V19.14 (Owner 24.10., P43): Hinweisleiste 32 + Kopf 64 + Linie 1 */
  --rand: clamp(20px, 3.4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--kopf-h); }
body { margin: 0; font: 400 16px/1.55 var(--sans); color: var(--graphit); background: var(--stein-0); font-feature-settings: 'kern'; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
::selection { background: var(--tanne); color: var(--papier); }
:focus-visible { outline: 2px solid var(--tanne); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 340; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg use { pointer-events: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--graphit); color: var(--papier); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

/* ---------- Kopf ---------- */
/* V19.14 (Owner 24.10., P43): eigener ruhiger Kopf-Grund. Die Navigation lag über dem Bild und über der Kante zur Karte; der Kopf steht jetzt
   als feste Leiste mit eigenem Grund über der Bühne, die Bühne beginnt darunter */
.kopfzone { position: sticky; top: 0; z-index: 20; background: var(--stein-0); border-bottom: 1px solid var(--linie); }
.demo-bar { display: flex; align-items: center; justify-content: center; height: 32px; font-size: 12.5px; letter-spacing: 0.01em; color: var(--graphit-2); text-align: center; padding: 0 var(--rand); border-bottom: 1px solid var(--linie); }
.demo-bar a { display: inline-block; padding: 13px 0; margin: -13px 0; color: var(--graphit); font-weight: 600; text-decoration: none; }
.demo-bar a:hover { text-decoration: underline; }
.kopf { display: flex; align-items: center; gap: 28px; min-height: 64px; padding: 0 var(--rand); }
.marke { display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: center; min-height: 44px; text-decoration: none; margin-right: auto; }
.marke-zeichen { grid-row: span 2; width: 30px; height: 30px; fill: none; stroke: var(--graphit); stroke-width: 1.4; stroke-linejoin: round; }
.marke-name { font: 400 21px/1.05 var(--serif); letter-spacing: -0.01em; }
.marke-name i { font-style: italic; font-weight: 300; }
.marke-zusatz { font-size: 12.5px; color: var(--graphit-2); line-height: 1.2; font-stretch: 92%; }
.nav { display: flex; gap: 10px; font-size: 14.5px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--graphit-2); padding: 0 6px; }
.nav a:hover { color: var(--graphit); text-decoration: underline; }
.korb-knopf { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--linie-2); background: var(--papier); border-radius: 999px; min-height: 44px; padding: 8px 10px 8px 14px; font-size: 14.5px; font-weight: 500; }
.korb-knopf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.korb-knopf:hover { border-color: var(--graphit); }
.korb-zahl { min-width: 24px; height: 24px; border-radius: 12px; background: var(--graphit); color: var(--papier); font-size: 12.5px; display: inline-grid; place-items: center; padding: 0 6px; font-variant-numeric: tabular-nums; transition: transform 0.4s var(--ease), background 0.3s; }
.korb-zahl.is-bump { transform: scale(1.25); background: var(--tanne); }

/* ---------- Konfigurator ---------- */
.konf { display: grid; grid-template-columns: minmax(0, 1fr) var(--karte-b); background: var(--buehne); }
.buehne { position: sticky; top: var(--kopf-h); height: calc(100vh - var(--kopf-h)); height: calc(100svh - var(--kopf-h)); overflow: hidden; background: var(--buehne); }
.buehne-bild, .buehne-3d { position: absolute; inset: 0; width: 100%; height: 100%; }
.buehne-bild { object-fit: cover; object-position: 50% 75%; transition: opacity 0.9s var(--ease); }
.buehne-3d { cursor: grab; touch-action: none; outline: none; opacity: 0; transition: opacity 0.9s var(--ease); }
.buehne-3d.is-ready { opacity: 1; }
.buehne-3d.is-dragging { cursor: grabbing; }
.buehne-3d:focus-visible { box-shadow: inset 0 0 0 2px var(--tanne); }
.is-3d .buehne-bild { opacity: 0; }
.masse { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 0.45s var(--ease); overflow: visible; }
.masse.is-on { opacity: 1; }
.masse line { stroke: var(--graphit); stroke-width: 1; vector-effect: non-scaling-stroke; }
.masse .mk-tick { stroke-width: 1.2; }
.masse rect { fill: var(--stein-0); }
.masse text { font: 500 13px var(--sans); fill: var(--graphit); font-variant-numeric: tabular-nums; }

.buehne-kopf { position: absolute; left: var(--rand); top: 24px; max-width: 34rem; pointer-events: none; isolation: isolate; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.buehne-kopf::before { content: ''; position: absolute; inset: -70px -120px -60px -90px; z-index: -1; background: radial-gradient(closest-side, rgba(233, 234, 229, 0.62), rgba(233, 234, 229, 0)); transition: background 0.9s var(--ease); }
.is-abend .buehne-kopf::before { background: radial-gradient(closest-side, rgba(40, 43, 48, 0.5), rgba(40, 43, 48, 0)); }
.buehne-kopf h1 { font-size: clamp(2.5rem, 4.3vw, 4.35rem); line-height: 1.0; font-weight: 300; }
.buehne-kopf .lead { margin-top: 18px; max-width: 27rem; font-size: 17px; line-height: 1.5; color: var(--graphit-2); }
.buehne-fuss { position: absolute; left: var(--rand); right: var(--rand); bottom: 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ansichten { display: inline-flex; background: rgba(238, 239, 235, 0.82); border: 1px solid var(--linie); border-radius: 999px; padding: 4px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ansichten button { border: 0; background: transparent; min-height: 44px; padding: 0 15px; border-radius: 999px; font-size: 14px; color: var(--graphit-2); transition: background 0.25s, color 0.25s; }
.ansichten button:hover { color: var(--graphit); }
.ansichten button[aria-pressed='true'] { background: var(--graphit); color: var(--papier); }
.licht { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--linie); background: rgba(238, 239, 235, 0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; min-height: 44px; padding: 9px 16px 9px 12px; font-size: 14px; }
.licht svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.licht .licht-tag { display: none; }
.licht[aria-pressed='true'] .licht-tag { display: block; }
.licht[aria-pressed='true'] .licht-abend { display: none; }
.stamm-zettel { position: absolute; right: var(--rand); top: 24px; display: grid; justify-items: end; gap: 2px; text-align: right; }
.stamm-zettel span:first-child { font: italic 300 22px/1.1 var(--serif); }
.stamm-zettel span:last-child { font-size: 13px; color: var(--graphit-2); transition: color 0.6s var(--ease); }
.stamm-zettel.is-neu span:last-child { color: var(--tanne); font-weight: 600; }
.dreh-hinweis { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--graphit-2); background: rgba(238, 239, 235, 0.7); padding: 6px 12px; border-radius: 999px; transition: opacity 0.6s var(--ease); pointer-events: none; }
.dreh-hinweis svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dreh-hinweis.is-off { opacity: 0; }
.toast-an .dreh-hinweis { opacity: 0; transition: none; }
.is-busy .buehne-kopf { opacity: 0; transform: translateY(-12px); }
/* Abendlicht: Schrift auf der Bühne wird hell, die Kopfleiste dunkel wie der Raum (Desktop und Handy) */
.buehne-kopf h1, .buehne-kopf .lead, .stamm-zettel span { transition: color 0.9s var(--ease); }
.is-abend .buehne-kopf h1, .is-abend .stamm-zettel span:first-child { color: #f3f3ef; }
.is-abend .buehne-kopf .lead, .is-abend .stamm-zettel span:last-child { color: #d6d8d3; }
.kopfzone { transition: background-color 0.9s var(--ease), backdrop-filter 0.9s var(--ease); }
.is-abend .kopfzone { background-color: rgba(31, 30, 29, 0.96); border-bottom-color: rgba(255, 255, 255, 0.12); }
.demo-bar, .demo-bar a, .marke-name, .marke-zusatz, .nav a { transition: color 0.9s var(--ease), border-color 0.9s var(--ease); }
.marke-zeichen { transition: stroke 0.9s var(--ease); }
.is-abend .demo-bar { color: #c8c9c4; border-bottom-color: rgba(255, 255, 255, 0.12); }
.is-abend .demo-bar a, .is-abend .marke-name, .is-abend .nav a:hover { color: #f3f3ef; }
.is-abend .marke-zusatz, .is-abend .nav a { color: #c8c9c4; }
.is-abend .marke-zeichen { stroke: #f3f3ef; }
.buehne-notiz { position: absolute; left: var(--rand); bottom: 84px; max-width: 28rem; font-size: 13.5px; background: var(--stein-0); padding: 10px 14px; border-radius: 8px; border: 1px solid var(--linie); }
.no-3d .ansichten, .no-3d .licht, .no-3d .dreh-hinweis, .no-3d .neu-legen { display: none; }

/* Karte (Auftragszettel) */
.karte { background: var(--stein-0); border-left: 1px solid var(--linie); padding: 8px 28px 0; position: relative; z-index: 2; }
.karte-kopf { padding-bottom: 18px; border-bottom: 1px solid var(--linie); }
.karte-modell { font: 400 27px/1.15 var(--serif); letter-spacing: -0.01em; }
.karte-sub { margin-top: 4px; font-size: 14px; color: var(--graphit-2); }
.gruppe { border: 0; margin: 0; padding: 20px 0 22px; border-bottom: 1px solid var(--linie); min-width: 0; }
.gruppe legend { display: flex; width: 100%; justify-content: space-between; align-items: baseline; padding: 0; margin-bottom: 14px; float: left; }
.gruppe legend + * { clear: both; }
.gruppe legend span { font-size: 15px; font-weight: 600; }
.gruppe legend output { font-size: 14px; color: var(--graphit-2); }
.gruppe-notiz { margin-top: 12px; font-size: 13.5px; line-height: 1.45; color: var(--graphit-2); }
input[type='radio'] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }

.holz-wahl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.holz { display: grid; gap: 2px; cursor: pointer; position: relative; }
.holz-chip { aspect-ratio: 1 / 1.08; border-radius: 6px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); transition: transform 0.35s var(--ease), box-shadow 0.25s; margin-bottom: 6px; }
.holz-eiche { background-image: url('../img/chip-eiche.webp'); background-color: #b88a57; }
.holz-buche { background-image: url('../img/chip-buche.webp'); background-color: #c99272; }
.holz-esche { background-image: url('../img/chip-esche.webp'); background-color: #ddc59c; }
.holz-ulme { background-image: url('../img/chip-ulme.webp'); background-color: #9b6b45; }
.holz-nuss { background-image: url('../img/chip-nuss.webp'); background-color: #5e3f2b; }
.holz:hover .holz-chip { transform: translateY(-2px); }
.holz input:checked ~ .holz-chip { box-shadow: 0 0 0 2px var(--stein-0), 0 0 0 4px var(--tanne); }
.holz input:focus-visible ~ .holz-chip { outline: 2px solid var(--tanne); outline-offset: 5px; }
.holz-name { font-size: 13px; font-weight: 500; line-height: 1.25; }
.holz-preis { font-size: 12px; color: var(--graphit-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.holz input:checked ~ .holz-name { color: var(--tanne); }

.regler { display: block; margin-top: 4px; }
.regler + .regler { margin-top: 14px; }
.regler-kopf { display: flex; justify-content: space-between; font-size: 14px; color: var(--graphit-2); }
.regler-kopf output { color: var(--graphit); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 2px 0 0; cursor: pointer; touch-action: pan-y; }
input[type='range']::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--graphit) 0 var(--p, 50%), var(--linie-2) var(--p, 50%) 100%); border-radius: 2px; }
input[type='range']::-moz-range-track { height: 2px; background: var(--linie-2); border-radius: 2px; }
input[type='range']::-moz-range-progress { height: 2px; background: var(--graphit); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--papier); border: 2px solid var(--graphit); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); transition: transform 0.2s var(--ease); }
input[type='range']::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--papier); border: 2px solid var(--graphit); }
input[type='range']:active::-webkit-slider-thumb { transform: scale(1.15); border-color: var(--tanne); }
input[type='range']:focus-visible { outline: none; }
input[type='range']:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--stein-0), 0 0 0 5px var(--tanne); }
input[type='range']:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--stein-0), 0 0 0 5px var(--tanne); }

.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kachel { display: grid; grid-template-columns: 1fr; align-content: start; gap: 1px; padding: 12px 12px 11px; border-radius: 8px; background: var(--papier); box-shadow: inset 0 0 0 1px var(--linie); cursor: pointer; position: relative; transition: box-shadow 0.25s, background 0.25s; }
.kachel:hover { box-shadow: inset 0 0 0 1px var(--graphit-3); }
.kachel svg { width: 64px; height: auto; margin-bottom: 8px; fill: none; stroke: var(--graphit); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.kachel .profil { height: 28px; }
.kachel .gestell { height: 34px; }
.kachel span { font-size: 14px; font-weight: 500; line-height: 1.25; }
.kachel small { font-size: 12.5px; color: var(--graphit-3); font-variant-numeric: tabular-nums; }
.kachel:has(input:checked) { box-shadow: inset 0 0 0 2px var(--tanne); background: #fbfbf9; }
.kachel:has(input:checked) svg { stroke: var(--tanne); }
.kachel:has(input:focus-visible) { outline: 2px solid var(--tanne); outline-offset: 3px; }

.segmente { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--stein-1); border-radius: 999px; padding: 3px; }
.segmente label { position: relative; cursor: pointer; }
.segmente span { display: flex; align-items: center; justify-content: center; min-height: 44px; text-align: center; padding: 0 6px; border-radius: 999px; font-size: 14px; color: var(--graphit-2); transition: background 0.25s, color 0.25s; white-space: nowrap; }
.segmente label:hover span { color: var(--graphit); }
.segmente input:checked + span { background: var(--papier); color: var(--graphit); font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), inset 0 0 0 1px var(--linie); }
.segmente input:focus-visible + span { outline: 2px solid var(--tanne); outline-offset: 1px; }

.neu-legen { margin-top: 16px; width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; border: 1px dashed var(--linie-2); background: transparent; border-radius: 8px; padding: 13px 14px; transition: border-color 0.25s, background 0.25s; }
.neu-legen:hover { border-color: var(--tanne); background: var(--papier); }
.neu-legen svg { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--tanne); stroke-width: 1.4; stroke-linejoin: round; transition: transform 0.6s var(--ease); }
.neu-legen:hover svg { transform: rotate(-8deg); }
.neu-legen strong { display: block; font-size: 15px; font-weight: 600; color: var(--tanne); }
.neu-legen small { display: block; font-size: 13px; color: var(--graphit-2); line-height: 1.4; margin-top: 2px; }

.kasse { position: sticky; bottom: 0; background: var(--stein-0); margin: 0 -28px; padding: 18px 28px 22px; border-top: 1px solid var(--linie); box-shadow: 0 -18px 30px -24px rgba(30, 35, 38, 0.35); }
.preis-zeile { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.preis { font: 340 44px/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.preis-hinweis { font-size: 12.5px; line-height: 1.35; color: var(--graphit-2); text-align: right; }
.aufschluesselung { margin-top: 10px; font-size: 13.5px; }
.aufschluesselung summary { padding: 12px 0; cursor: pointer; color: var(--graphit-2); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--linie-2); width: fit-content; }
.aufschluesselung ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; }
.aufschluesselung li { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.aufschluesselung li span:last-child { white-space: nowrap; }
.lieferzeit { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; color: var(--graphit-2); }
.lieferzeit svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.kaufen { margin-top: 14px; width: 100%; height: 54px; border: 0; border-radius: 8px; background: var(--tanne); color: var(--papier); font-size: 16px; font-weight: 600; letter-spacing: 0.005em; transition: background 0.25s, transform 0.2s; }
.kaufen:hover { background: var(--tanne-2); }
.kaufen:active { transform: scale(0.99); }
.kasse-neben { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.kasse-neben button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; min-height: 44px; padding: 0; font-size: 13.5px; color: var(--graphit-2); }
.kasse-neben button:hover { color: var(--graphit); text-decoration: underline; text-underline-offset: 0.2em; }
.kasse-neben svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mobil-kauf { display: none; }

/* ---------- Vom Stamm ---------- */
.wald { position: relative; margin: 0; background: var(--graphit); overflow: hidden; }
.wald img { display: block; width: 100%; height: clamp(440px, 54vw, 780px); object-fit: cover; object-position: 50% 62%; }
.wald::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, var(--graphit) 0%, rgba(30, 35, 38, 0.6) 20%, rgba(30, 35, 38, 0) 46%); }
.wald figcaption { position: absolute; z-index: 1; left: var(--rand); bottom: clamp(24px, 3.4vw, 52px); max-width: min(42rem, 84%); font: 300 clamp(1.7rem, 2.7vw, 2.6rem)/1.18 var(--serif); letter-spacing: -0.01em; color: #f3f3ef; text-wrap: pretty; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .wald img { animation: wald-fahrt linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes wald-fahrt { from { transform: scale(1.1) translateY(-2.5%); } to { transform: scale(1.02) translateY(2%); } }
  }
}
.stamm { background: var(--graphit); color: #e6e7e3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding: clamp(64px, 8vw, 120px) var(--rand) clamp(80px, 11vw, 150px); }
.stamm-bild { position: relative; }
.scheibe { position: sticky; top: 12vh; aspect-ratio: 1; max-width: 640px; margin-left: auto; }
.scheibe img { width: 100%; height: 100%; object-fit: contain; }
.ringe { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ringe [data-ring] { opacity: 0; transition: opacity 0.6s var(--ease); }
.ringe [data-ring].is-on { opacity: 1; }
.ringe path, .ringe circle { fill: none; stroke: #f3efe6; stroke-width: 0.7; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke-width 0.6s var(--ease); }
.ringe .is-on path, .ringe .is-on circle { stroke-width: 1.6; }
.ringe text { font: italic 300 8.6px var(--serif); fill: #f6f3ec; stroke: rgba(30, 35, 38, 0.7); stroke-width: 0.8; paint-order: stroke; }
.stamm-text h2 { font-size: clamp(2.2rem, 3.6vw, 3.6rem); line-height: 1.04; color: #f3f3ef; max-width: 15ch; }
.stamm-text .lead { margin-top: 20px; font-size: 18px; color: #b9bdb8; max-width: 34rem; }
.jahre { list-style: none; margin: 56px 0 0; padding: 0; }
.jahre li { display: grid; grid-template-columns: 5.2rem 1fr; gap: 20px; padding: 26px 0 15vh; border-top: 1px solid rgba(255, 255, 255, 0.12); opacity: 0.6; transition: opacity 0.5s var(--ease); }
.jahre li:last-child { padding-bottom: 32px; }
.jahre li.is-on { opacity: 1; }
.jahre b { font: 300 30px/1 var(--serif); color: #f3f3ef; font-variant-numeric: lining-nums; }
.jahre p { font-size: 17px; color: #cfd2cd; max-width: 30rem; }
.stamm-schluss { margin-top: 8px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.12); font: italic 300 23px/1.35 var(--serif); color: #f3f3ef; max-width: 30rem; }

/* ---------- Hölzer ---------- */
.hoelzer { padding: clamp(80px, 10vw, 140px) var(--rand); }
.abschnitt-kopf { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 48px; }
.abschnitt-kopf h2 { font-size: clamp(2.1rem, 3.5vw, 3.4rem); line-height: 1.05; max-width: 17ch; }
.abschnitt-kopf .lead { font-size: 17px; color: var(--graphit-2); max-width: 30rem; }
.holz-karten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.holz-karte { display: grid; text-align: left; width: 100%; height: 100%; align-content: start; gap: 6px; border: 0; padding: 0 0 16px; background: none; border-radius: 10px; }
.holz-karte img { width: 100%; aspect-ratio: 640 / 420; height: auto; object-fit: cover; border-radius: 8px; margin-bottom: 10px; transition: transform 0.7s var(--ease), filter 0.5s; }
.holz-karte:hover img { transform: scale(1.025); }
.hk-name { font: 400 25px/1.1 var(--serif); }
.hk-text { font-size: 14.5px; line-height: 1.5; color: var(--graphit-2); }
.hk-preis { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--tanne); font-variant-numeric: tabular-nums; }

/* ---------- Handwerk ---------- */
.handwerk { padding: clamp(72px, 9vw, 130px) var(--rand); background: var(--stein-1); }
/* Bewusst kein Kartenraster: ein großes Bild, zwei versetzte, wie eine Bildstrecke im Magazin. */
.details { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: clamp(40px, 5vw, 80px); }
.detail { margin: 0; }
.detail:nth-child(1) { grid-column: 1 / span 7; }
.detail:nth-child(2) { grid-column: 9 / span 4; align-self: end; }
.detail:nth-child(3) { grid-column: 4 / span 5; }
.detail img { width: 100%; aspect-ratio: 9 / 7; height: auto; object-fit: cover; border-radius: 8px; background: var(--buehne); }
.detail figcaption { margin-top: 16px; font-size: 15px; line-height: 1.55; color: var(--graphit-2); max-width: 30rem; }
.detail figcaption b { display: block; font: 400 22px/1.2 var(--serif); color: var(--graphit); margin-bottom: 6px; }

/* ---------- Werkstatt ---------- */
.werkstatt { background: var(--graphit); color: #e6e7e3; padding-bottom: clamp(80px, 10vw, 140px); }
.werkstatt-band { position: relative; }
.werkstatt-band img { display: block; width: 100%; height: clamp(460px, 46vw, 700px); object-fit: cover; object-position: 50% 75%; }
.werkstatt-band::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(30, 35, 38, 0.97) 0%, rgba(30, 35, 38, 0.82) 36%, rgba(30, 35, 38, 0) 64%), linear-gradient(0deg, var(--graphit) 0%, rgba(30, 35, 38, 0) 16%); }
.werkstatt-zitat { position: absolute; z-index: 1; left: var(--rand); top: clamp(56px, 6vw, 96px); max-width: min(56rem, 64%); }
.werkstatt blockquote { margin: 0; }
.werkstatt blockquote p { font: 300 clamp(1.8rem, 3vw, 2.9rem)/1.18 var(--serif); letter-spacing: -0.012em; text-wrap: pretty; color: #f3f3ef; }
.werkstatt blockquote footer { margin-top: 22px; font-size: 15px; color: #c3c7c2; }
.werkstatt-fakten { padding: 0 var(--rand); margin-top: clamp(36px, 4vw, 56px); }
.werkstatt dl { margin: 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 24px clamp(20px, 3vw, 44px); }
.werkstatt dl div { display: grid; gap: 6px; align-content: start; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.werkstatt dt { font-size: 14px; color: #a9aeab; }
.werkstatt dd { margin: 0; font-size: 16px; }
.werkstatt a { color: #f3f3ef; }

/* ---------- Service ---------- */
.service { padding: clamp(72px, 9vw, 120px) var(--rand) clamp(80px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(56px, 7vw, 110px) clamp(32px, 6vw, 110px); }
.versprechen { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px clamp(20px, 3vw, 44px); }
.versprechen li { display: grid; gap: 6px; align-content: start; padding-top: 22px; border-top: 1px solid var(--graphit); }
.fakt { font: 300 clamp(2.4rem, 3.6vw, 3.5rem)/1 var(--serif); letter-spacing: -0.015em; font-variant-numeric: lining-nums; white-space: nowrap; margin-bottom: 12px; }
.versprechen b { font-size: 16px; font-weight: 600; }
.versprechen span { font-size: 14.5px; color: var(--graphit-2); line-height: 1.5; }
.faq { display: contents; }
.faq h3 { font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.05; max-width: 9ch; }
.faq-liste { min-width: 0; }
.faq-liste details { border-top: 1px solid var(--linie); }
.faq-liste details:last-child { border-bottom: 1px solid var(--linie); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-size: 16.5px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 32px 18px 0; color: var(--graphit-2); font-size: 15.5px; }

/* ---------- Fuß ---------- */
.fuss { background: var(--graphit); color: #c9ccc7; padding: 56px var(--rand) 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; font-size: 14.5px; }
.fuss-marke { display: flex; gap: 14px; align-items: flex-start; }
.fuss-marke svg { width: 28px; height: 28px; flex: none; fill: none; stroke: #e6e7e3; stroke-width: 1.4; stroke-linejoin: round; }
.fuss-hinweis { max-width: 46rem; line-height: 1.6; }
.fuss a { color: #f3f3ef; }

/* ---------- Warenkorb ---------- */
.korb { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100vw); height: 100%; max-height: 100%; max-width: 100vw; padding: 0; border: 0; background: var(--stein-0); color: var(--graphit); display: flex; flex-direction: column; box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.35); }
.korb:not([open]) { display: none; }
.korb[open] { animation: korb-rein 0.5s var(--ease); }
.korb::backdrop { background: rgba(22, 26, 28, 0.38); }
@keyframes korb-rein { from { transform: translateX(40px); opacity: 0; } }
.korb-kopf { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--linie); }
.korb-kopf h2 { font-size: 28px; }
.zu { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; }
.zu:hover { background: var(--stein-1); }
.zu svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.korb-inhalt { flex: 1; overflow: auto; padding: 8px 26px; }
.posten { list-style: none; margin: 0; padding: 0; }
.posten li { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--linie); }
.posten img { width: 112px; height: 76px; object-fit: cover; border-radius: 6px; background: var(--buehne); }
.posten h3 { font: 400 19px/1.2 var(--serif); }
.posten .p-info { margin-top: 3px; font-size: 13px; color: var(--graphit-2); line-height: 1.45; }
.posten .p-zeile { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; }
.menge { display: inline-flex; align-items: center; border: 1px solid var(--linie-2); border-radius: 999px; }
.menge button { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; }
.menge button:hover { background: var(--stein-1); }
.menge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.menge output { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }
.p-preis { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-weg { display: inline-flex; align-items: center; min-height: 44px; border: 0; background: none; padding: 0; font-size: 13px; color: var(--graphit-2); text-decoration: underline; text-underline-offset: 0.2em; }
.korb-leer { padding: 28px 0; color: var(--graphit-2); font-size: 15px; max-width: 30ch; }
.korb-fuss { padding: 18px 26px 24px; border-top: 1px solid var(--linie); }
.summe { margin: 0; display: grid; gap: 6px; font-size: 14.5px; }
.summe div { display: flex; justify-content: space-between; }
.summe dd { margin: 0; font-variant-numeric: tabular-nums; }
.summe-gesamt { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--linie); font-size: 16px; font-weight: 600; }
.summe-gesamt dd { font: 400 26px/1 var(--serif); }
.korb-notiz { margin-top: 10px; font-size: 13px; color: var(--graphit-2); text-align: center; }
.kasse-demo { flex: 1; padding: 40px 30px; display: grid; align-content: start; gap: 14px; }
.kasse-zeichen { width: 44px; height: 44px; fill: none; stroke: var(--tanne); stroke-width: 1.2; stroke-linejoin: round; }
.kasse-demo h3 { font-size: 32px; }
.kasse-demo p { color: var(--graphit-2); font-size: 15.5px; }

.toast { position: fixed; left: 50%; bottom: 96px; z-index: 60; transform: translate(-50%, 20px); background: var(--graphit); color: var(--papier); padding: 12px 18px; border-radius: 999px; font-size: 14.5px; opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Auftauchen beim Scrollen: nur mit JS und ohne reduzierte Bewegung */
.js-motion .auf { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.9s var(--ease); }
.js-motion .auf.is-in { opacity: 1; transform: none; }

/* ---------- Mittlere Breite ---------- */
@media (max-width: 1180px) {
  :root { --karte-b: 372px; }
  .nav { display: none; }
  .holz-karten { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .konf { grid-template-columns: minmax(0, 1fr); }   /* V19.13 (Rundgang 24.10., P30): 1fr wuchs mit dem breitesten Inhalt, bei 320 px bis 342 px */
  .buehne { position: relative; height: 72vh; min-height: 480px; }
  .karte { border-left: 0; padding-top: 8px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .karte-kopf, .kasse { grid-column: 1 / -1; }
  .kasse { margin: 0 -28px; }
  .stamm, .service { grid-template-columns: 1fr; }
  .werkstatt-zitat { max-width: 80%; }
  .werkstatt dl { grid-template-columns: 1fr 1fr; }
  .scheibe { position: relative; top: 0; max-width: 520px; margin: 0 auto; }
  .jahre li { padding-bottom: 40px; }
  .abschnitt-kopf { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr 1fr; }
  .detail:nth-child(1) { grid-column: 1 / -1; }
  .detail:nth-child(2), .detail:nth-child(3) { grid-column: auto; align-self: start; }
  .versprechen { grid-template-columns: 1fr 1fr; }
  .fuss { grid-template-columns: 1fr; }
}

/* ---------- Handy ---------- */
@media (max-width: 699.98px) {
  body { font-size: 15.5px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  html { scroll-padding-top: 16px; }
  .kopfzone { position: relative; background: var(--buehne); border-bottom: 0; }
  .demo-bar { height: auto; min-height: 32px; font-size: 12px; padding: 4px 16px; }
  .kopf { padding: 10px 16px; gap: 12px; }
  .marke-zeichen { width: 26px; height: 26px; }
  .marke-name { font-size: 18px; }
  .marke-zusatz { font-size: 12px; }
  .korb-knopf { padding: 7px 8px 7px 10px; }
  .korb-knopf > span:not(.korb-zahl) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .buehne { position: sticky; top: 0; z-index: 3; height: 54svh; min-height: 340px; max-height: 520px; }
  .buehne-3d { touch-action: pan-y; }
  .buehne-kopf { top: 14px; left: 16px; right: 16px; }
  .buehne-kopf h1 { font-size: 34px; }
  .buehne-kopf .lead { font-size: 14.5px; margin-top: 8px; max-width: 21rem; }
  .is-scrolled .buehne-kopf { opacity: 0; transform: translateY(-12px); }
  .stamm-zettel { top: 14px; right: 16px; opacity: 0; transition: opacity 0.5s var(--ease); }
  .is-scrolled .stamm-zettel, .is-busy .stamm-zettel { opacity: 1; }
  .stamm-zettel span:first-child { font-size: 18px; }
  .buehne-fuss { left: 12px; right: 12px; bottom: 12px; gap: 8px; }
  .ansichten button { padding: 7px 10px; font-size: 13px; }
  .licht { min-width: 44px; justify-content: center; padding: 8px 10px; }
  .licht span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .dreh-hinweis { bottom: 62px; left: 16px; transform: none; }
  .buehne-notiz { left: 12px; right: 12px; bottom: 60px; }
  .karte { display: block; padding: 4px 16px 0; }
  .karte-modell { font-size: 23px; }
  .kasse { position: static; margin: 0 -16px; padding: 18px 16px 26px; box-shadow: none; }
  .kasse .preis-zeile, .kasse .kaufen { display: none; }
  .aufschluesselung { margin-top: 0; }
  .holz-wahl { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }   /* V19.13 (P30): Spalten dürfen schmaler werden als der Preis */
  .holz-name, .holz-preis { overflow-wrap: anywhere; }
  .holz-name { font-size: 12px; }
  .holz-preis { font-size: 12px; }
  .holz-preis { white-space: normal; }
  .mobil-kauf { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(238, 239, 235, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--linie); }
  .mobil-kauf p { display: grid; font: 340 26px/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
  .mobil-kauf small { font: 400 12px/1.3 var(--sans); color: var(--graphit-2); margin-top: 3px; }
  .mobil-kauf button { flex: 1; height: 50px; border: 0; border-radius: 8px; background: var(--tanne); color: var(--papier); font-weight: 600; font-size: 15.5px; }
  .stamm { padding: 72px 16px; gap: 36px; }
  .wald img { height: 560px; object-position: 50% 50%; }
  .wald figcaption { left: 16px; right: 16px; max-width: none; bottom: 20px; font-size: 1.6rem; }
  .jahre { margin-top: 36px; }
  .jahre li { grid-template-columns: 4.2rem 1fr; gap: 14px; padding: 20px 0 24px; opacity: 1; }
  .jahre b { font-size: 24px; }
  .jahre p { font-size: 15.5px; }
  .hoelzer, .handwerk { padding: 72px 0; }
  .hoelzer .abschnitt-kopf, .handwerk .abschnitt-kopf { padding: 0 16px; margin-bottom: 28px; }
  .holz-karten { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; gap: 12px; padding: 0 16px 6px; scrollbar-width: none; }
  .holz-karten::-webkit-scrollbar { display: none; }
  .holz-karten li { flex: 0 0 74%; scroll-snap-align: start; }
  .details { grid-template-columns: 1fr; padding: 0 16px; gap: 36px; }
  .detail:nth-child(n) { grid-column: auto; }
  .werkstatt { padding-bottom: 72px; }
  .werkstatt-band img { height: auto; aspect-ratio: 390 / 560; }
  .werkstatt-band::after { background: linear-gradient(0deg, var(--graphit) 0%, rgba(30, 35, 38, 0.92) 14%, rgba(30, 35, 38, 0) 42%); }
  .werkstatt-zitat { position: relative; left: auto; top: auto; max-width: none; margin-top: -56px; padding: 0 16px; }
  .werkstatt-fakten { padding: 0 16px; }
  .werkstatt dl { grid-template-columns: 1fr; gap: 18px; }
  .service { padding: 0 16px 72px; }
  .versprechen { grid-template-columns: 1fr; gap: 32px; }
  .fuss { padding: 44px 16px calc(56px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

/* V19.13 (Rundgang 24.10., P30): Ansichten und Licht-Knopf passten bei 320 px nicht nebeneinander (Knopf angeschnitten) */
@media (max-width: 340px) {
  .buehne-fuss { gap: 6px; }
  .ansichten button { padding: 7px 7px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
