/* Holzwerk Ost — Gestaltung
   Farben: Gipsweiss, Graphit, Tanne, Hobelspan, Schlagschnur-Blau, Eiche */

:root {
  --paper: #EDEBE5;
  --paper-2: #E3E0D8;
  --ink: #1D1B18;
  --ink-soft: #55504A;
  --forest: #1F362B;
  --on-forest: #E9E2B0;
  --on-forest-soft: #C9C59E;
  --span: #E6DC9C;
  --chalk: #2B55A0;
  --oak: #9C6431;
  --line: rgba(29, 27, 24, .18);

  --font: "Schibsted Grotesk", system-ui, sans-serif;

  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  --step-4: clamp(2.2rem, 1.4rem + 3vw, 3.75rem);
  --step-5: clamp(2.6rem, 1.2rem + 5.4vw, 6rem);

  --gutter: clamp(16px, 3vw, 28px);
  --max: 1360px;
  --radius-pill: 999px;
  --radius-tile: 6px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --z-header: 40;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

/* Versteckte Elemente bleiben versteckt, auch wenn eine Klasse display setzt */
[hidden] { display: none !important; }
img { height: auto; }

a { color: inherit; }

h1, h2, h3 { font-weight: 500; line-height: 1.05; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius-pill);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  padding-block: 12px;
  transition: background-color .3s ease;
}
.site-header.is-scrolled { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo-word { font-size: 1.3rem; font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.logo-word span { font-weight: 400; }

.nav { display: flex; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  background: #fff; border-radius: var(--radius-pill);
  font-size: var(--step--1); font-weight: 500; text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.nav a:hover { background: var(--span); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

.nav { margin-left: auto; }

.cart-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px 0 16px;
  background: #fff; border-radius: var(--radius-pill); text-decoration: none;
  font-size: var(--step--1); font-weight: 500; transition: background-color .2s ease;
}
.cart-link:hover { background: var(--span); }
.cart-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
@media (max-width: 760px) {
  .cart-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.cart-link[aria-current="page"] { background: var(--ink); color: var(--paper); }
.cart-count {
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: var(--radius-pill);
  display: inline-grid; place-items: center; background: var(--paper-2); color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cart-link.has-items .cart-count { background: var(--span); }
.cart-link[aria-current="page"] .cart-count { background: var(--paper); }

.menu-toggle {
  display: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius-pill);
  background: #fff; color: var(--ink); font: 500 var(--step--1) var(--font); cursor: pointer;
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; align-items: center; order: 3; }
  .cart-link { order: 2; margin-left: auto; min-height: 44px; }
  .site-header .wrap { gap: 6px; }
  .nav {
    position: absolute; left: var(--gutter); right: var(--gutter); top: 64px;
    flex-direction: column; gap: 6px; padding: 10px;
    background: var(--paper-2); border-radius: 14px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s var(--ease-out), visibility 0s .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s var(--ease-out); }
  .nav a { min-height: 48px; font-size: var(--step-1); }
}

/* ---------- Kopfteil Startseite ---------- */

.hero { position: relative; min-height: calc(100dvh - 68px); display: grid; place-items: center; overflow: hidden; padding-block: 64px; }
.hero-copy { position: relative; z-index: 2; text-align: center; padding-inline: var(--gutter); }
.hero h1 { font-size: var(--step-5); max-width: 13ch; margin-inline: auto; }
.hero-lead { margin: 24px auto 0; font-size: var(--step-1); color: var(--ink-soft); max-width: 44ch; }

.float { position: absolute; z-index: 1; will-change: transform; }
.float img, .float svg { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.float--photo { box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.float svg { stroke: var(--ink); fill: none; stroke-width: 1.6; stroke-linejoin: round; }
.float--tint { background: #D9E0CF; padding: 10px; }
.float--tint-2 { background: #EBC7A6; padding: 10px; }

.f1 { width: 13vw; aspect-ratio: 3/2; left: 7vw; top: 14%; }
.f2 { width: 7vw; aspect-ratio: 3/4; left: 31vw; top: 9%; }
.f3 { width: 9vw; aspect-ratio: 1; right: 30vw; top: 12%; }
.f4 { width: 15vw; aspect-ratio: 3/2; right: 6vw; top: 22%; }
.f5 { width: 8vw; aspect-ratio: 3/4; left: 12vw; bottom: 14%; }
.f6 { width: 12vw; aspect-ratio: 3/2; left: 34vw; bottom: 6%; }
.f7 { width: 6vw; aspect-ratio: 3/4; right: 30vw; bottom: 5%; }
.f8 { width: 11vw; aspect-ratio: 1; right: 9vw; bottom: 9%; }

@media (max-width: 760px) {
  .hero { min-height: auto; padding-block: 40px 56px; }
  .f2, .f3, .f6, .f7 { display: none; }
  .f1 { width: 34vw; left: -4vw; top: 2%; }
  .f4 { width: 36vw; right: -6vw; top: auto; bottom: 2%; }
  .f5 { width: 18vw; left: 6vw; bottom: 4%; }
  .f8 { width: 20vw; right: 4vw; top: 4%; bottom: auto; }
  .hero-copy { padding-block: 120px 140px; }
}

/* ---------- Abschnitte allgemein ---------- */

.section { padding-block: clamp(64px, 9vw, 128px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: var(--step-4); max-width: 18ch; }
.section-head p { color: var(--ink-soft); margin: 0; max-width: 40ch; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em; min-height: 44px;
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.link-arrow:hover { text-decoration-color: var(--chalk); color: var(--chalk); }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: var(--radius-pill); background: var(--ink); color: var(--paper);
  font: 500 var(--step-0) var(--font); text-decoration: none; border: 0; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.button:hover { background: var(--forest); }
.button:active { transform: scale(.98); }
.button--light { background: #fff; color: var(--ink); }
.button--light:hover { background: var(--span); }

/* ---------- Produktkacheln ---------- */

.tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
.tile {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  background: var(--paper-2); border-radius: var(--radius-tile); overflow: hidden;
  min-height: 520px;
}
.tile--wide { grid-column: span 7; }
.tile--narrow { grid-column: span 5; }
.tile--full { grid-column: span 12; min-height: 0; }
.tile-head { position: relative; z-index: 2; padding: 22px 24px 0; }
.tile-head h3 { font-size: var(--step-2); margin-top: 10px; letter-spacing: -.015em; }
.tile-price { color: var(--ink-soft); margin-top: 4px; }
.tile-media { flex: 1; display: grid; place-items: center; padding: 24px; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; transition: transform .6s var(--ease-out); }
.tile:hover .tile-media img { transform: scale(1.025); }
.tile-media svg { width: min(70%, 380px); stroke: var(--ink); fill: none; stroke-width: 1.4; }
.tile-foot { padding: 0 24px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tile-foot span { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 4px; border-radius: var(--radius-pill);
  font-size: var(--step--1); font-weight: 500; line-height: 1.3;
}
.chip svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.chip--kueche { background: #EBC7A6; }
.chip--wohnen { background: #D2DBC4; }
.chip--eingang { background: #C9D3E6; }

@media (max-width: 860px) {
  .tile--wide, .tile--narrow { grid-column: span 12; min-height: 440px; }
}

/* ---------- Jahresringe (Scroll) ---------- */

.rings { position: relative; height: 320vh; background: var(--paper); }
.rings-stage {
  position: sticky; top: 0; height: 100dvh; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(16px, 4vw, 64px);
}
.rings-art { position: relative; height: min(78dvh, 720px); display: grid; place-items: center; }
.rings-art svg { width: 100%; height: 100%; overflow: visible; }
.rings-art path { fill: none; stroke: var(--oak); stroke-linecap: round; }
.rings-art .pith { fill: var(--oak); stroke: none; }
.rings-art .crack { stroke: var(--ink); stroke-width: 1.2; }

.rings-steps { position: relative; min-height: 320px; }
.ring-step {
  position: absolute; inset: 0 0 auto 0;
  opacity: 0; transform: translateY(16px);
  transition: opacity .45s ease, transform .45s var(--ease-out);
}
.ring-step.is-active { opacity: 1; transform: none; }
.ring-step strong { display: block; font-size: var(--step-5); font-weight: 500; letter-spacing: -.04em; line-height: .95; font-variant-numeric: tabular-nums; }
.ring-step p { font-size: var(--step-2); line-height: 1.35; margin-top: 18px; max-width: 24ch; }

.rings-progress { display: flex; gap: 6px; margin-top: 28px; position: absolute; bottom: -40px; left: 0; }
.rings-progress i { width: 28px; height: 3px; background: var(--line); border-radius: 2px; transition: background-color .3s ease; }
.rings-progress i.is-on { background: var(--ink); }

@media (max-width: 860px) {
  .rings { height: 300vh; }
  .rings-stage { grid-template-columns: 1fr; grid-template-rows: 1fr auto; align-content: center; padding-block: 72px 48px; }
  .rings-art { height: 44dvh; }
  .rings-steps { min-height: 210px; }
  .ring-step p { font-size: var(--step-1); }
}

/* ---------- Dunkler Block (Abschlussarbeit) ---------- */

.forest { background: var(--forest); color: var(--on-forest); }
.forest .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: stretch; }
.forest-intro { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.forest-meta { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; color: var(--on-forest-soft); }
.forest-meta p { margin: 0; }
.forest-names { color: var(--on-forest); font-weight: 500; }
.forest blockquote { margin: 0; font-size: var(--step-4); line-height: 1.04; letter-spacing: -.03em; font-weight: 500; }
.forest figure { margin: 0; position: relative; }
.forest figure img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; min-height: 360px; }
/* Gruppenfoto im Querformat zeigen, damit beide ganz im Bild sind */
.forest figure:has(.crew-photo) { align-self: center; }
.forest figure img.crew-photo { aspect-ratio: 3 / 2; height: auto; min-height: 0; object-position: 50% 40%; }
.forest figure img.oak-image { object-fit: contain; background: #E9E2B0; }
.forest figcaption { position: absolute; left: 18px; bottom: 16px; color: #fff; font-weight: 500; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.forest .link-arrow:hover { color: #fff; text-decoration-color: #fff; }

@media (max-width: 860px) { .forest .wrap { grid-template-columns: 1fr; } }

/* ---------- Ablauf ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.step { padding: 28px 28px 8px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num { font-size: var(--step--1); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.step svg { height: 120px; width: auto; margin: 20px 0 24px; stroke: var(--ink); fill: none; stroke-width: 1.4; }
.step h3 { font-size: var(--step-2); margin-bottom: 10px; }
.step p { color: var(--ink-soft); }

.steps--four { grid-template-columns: repeat(4, 1fr); }
.steps--four .step h3 { margin-top: 28px; }
@media (max-width: 1000px) {
  .steps--four { grid-template-columns: 1fr 1fr; }
  .steps--four .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps--four .step:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .steps, .steps--four { grid-template-columns: 1fr; }
  .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Strichzeichnungen zeichnen sich beim Erscheinen (pathLength=1 setzt main.js) */
.js .draw :is(path, line, rect, circle, ellipse, polyline) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-out); }
.js .draw.is-drawn :is(path, line, rect, circle, ellipse, polyline) { stroke-dashoffset: 0; }

/* ---------- Unterseiten ---------- */

.page-head { padding-block: clamp(48px, 8vw, 112px) clamp(32px, 5vw, 64px); }
.page-head h1 { font-size: var(--step-5); max-width: 14ch; }
.page-head p { font-size: var(--step-1); color: var(--ink-soft); margin-top: 24px; max-width: 52ch; }

.product { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 64px); padding-block: 40px; border-top: 1px solid var(--line); }
.product-gallery { display: grid; gap: 8px; align-content: start; }
.product-gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 3px; }
.product-gallery .sketch-box { background: var(--paper-2); border-radius: var(--radius-tile); aspect-ratio: 3/2; display: grid; place-items: center; }
.product-gallery .sketch-box svg { width: 60%; stroke: var(--ink); fill: none; stroke-width: 1.4; }
.product-info { align-self: start; position: sticky; top: 96px; }
@media (max-width: 860px) { .product-info { position: static; } }
.product-info h2 { font-size: var(--step-4); margin: 14px 0 16px; }
.product-price { font-size: var(--step-3); font-weight: 500; letter-spacing: -.02em; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.product-info .actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 24px; }

.specs { margin: 24px 0 0; display: grid; grid-template-columns: max-content 1fr; border-top: 1px solid var(--line); }
.specs dt, .specs dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.specs dt { color: var(--ink-soft); padding-right: 24px; }

@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

.note {
  display: inline-block; background: var(--span); padding: 2px 8px; border-radius: 4px; font-size: var(--step--1);
}

.custom-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; table-layout: fixed; }
.custom-table thead th:nth-child(1) { width: 26%; }
.custom-table thead th:nth-child(3) { width: 28%; }
.custom-table caption { text-align: left; font-size: var(--step-3); font-weight: 500; letter-spacing: -.02em; padding-bottom: 16px; }
.custom-table th, .custom-table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.custom-table thead th { font-size: var(--step--1); color: var(--ink-soft); font-weight: 500; border-bottom-color: var(--ink); }
.custom-table td:last-child { white-space: nowrap; }
.custom-table caption span { display: block; margin-top: 4px; letter-spacing: 0; }
.table-scroll { overflow-x: auto; }
.custom-block + .custom-block { margin-top: 56px; }
.custom-cta { margin-top: 20px; }
.custom-heading { font-size: var(--step-3); letter-spacing: -.02em; padding-bottom: 16px; border-bottom: 1px solid var(--ink); margin-bottom: 14px; }
.custom-off { color: var(--ink-soft); }

@media (max-width: 640px) {
  .custom-table thead { display: none; }
  .custom-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .custom-table th, .custom-table td { border: 0; padding: 0; }
  .custom-table td:nth-child(2) { grid-column: 1; color: var(--ink-soft); }
  .custom-table td:last-child { grid-row: 1; grid-column: 2; }
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); }
.split h2 { font-size: var(--step-3); margin-bottom: 16px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.people { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.person { background: var(--paper-2); border-radius: var(--radius-tile); padding: 20px; }
.person-photo {
  aspect-ratio: 4/5; border-radius: 3px; background: #D6D2C7; display: grid; place-items: center;
  font-size: var(--step-5); font-weight: 500; letter-spacing: -.04em; color: var(--ink-soft); margin-bottom: 18px;
}
.person-photo { overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 3px; }
.person h3 { font-size: var(--step-2); }
.person p { color: var(--ink-soft); margin: 4px 0 0; }
@media (max-width: 560px) { .people { grid-template-columns: 1fr; } }

.contact-list { font-size: var(--step-3); line-height: 1.3; letter-spacing: -.02em; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-color: var(--chalk); color: var(--chalk); }
.legal h2 { font-size: var(--step-2); margin: 40px 0 12px; }
.legal p { color: var(--ink-soft); }

/* ---------- Preisgestaltung ---------- */

.pricing { background: var(--span); margin-top: clamp(40px, 6vw, 80px); }
.pricing h2 { font-size: var(--step-4); margin-bottom: 24px; max-width: 14ch; }
.pricing p { font-size: var(--step-1); }
.price-breakdown { margin: 0; border-top: 1px solid var(--ink); align-self: end; }
.price-breakdown div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(29, 27, 24, .25); }
.price-breakdown dt { font-size: var(--step-2); letter-spacing: -.015em; }
.price-breakdown dd { margin: 0; color: var(--ink-soft); text-align: right; }

/* ---------- Anfrage-Formular ---------- */

.request { background: var(--forest); color: var(--on-forest); }
.request-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.request-intro { position: sticky; top: 96px; }
.request-intro h2 { font-size: var(--step-4); margin-bottom: 20px; max-width: 12ch; }
.request-intro p { color: var(--on-forest-soft); font-size: var(--step-1); }
.request-facts { margin: 28px 0 0; border-top: 1px solid var(--on-forest-soft); }
.request-facts div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(233, 226, 176, .25); }
.request-facts dt { color: var(--on-forest); font-weight: 500; }
.request-facts dd { margin: 0; color: var(--on-forest-soft); }

.request-box { background: var(--paper); color: var(--ink); border-radius: 10px; padding: clamp(20px, 3vw, 36px); }
.request-form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 500; padding: 0; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid #B9B4A8; border-radius: 6px;
  background: #fff; color: var(--ink); font: 400 var(--step-0) var(--font); transition: border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--chalk); outline-offset: 1px; border-color: var(--chalk); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-hint { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.field-error { font-size: var(--step--1); color: #B3261E; margin: 0; font-weight: 500; }
.req { color: #B3261E; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row--plz { grid-template-columns: 120px 1fr; }
.field-row > [hidden] { display: none; }
.product-choice { gap: 8px; }
.product-choice legend { margin-bottom: 8px; }
.choice {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px;
  background: #fff; border-radius: 6px; cursor: pointer; box-shadow: inset 0 0 0 1.5px #D6D2C7; transition: box-shadow .15s ease;
}
.choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.choice input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); }
.choice strong { display: block; font-weight: 500; }
.choice small { display: block; color: var(--ink-soft); font-size: var(--step--1); }
.form-errors { border: 2px solid #B3261E; border-radius: 8px; padding: 14px 18px; background: #FBEDEC; }
.form-errors h3 { font-size: var(--step-0); font-weight: 600; letter-spacing: 0; margin-bottom: 6px; }
.form-errors ul { margin: 0; padding-left: 18px; }
.form-errors a { color: #8C1D18; }
.form-required { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.request-form .button { justify-self: start; min-width: 200px; }
.request-form .button:disabled { opacity: .6; cursor: progress; }
.form-status { margin: 0; font-size: var(--step--1); }
.form-status.is-error { color: #8C1D18; }
.form-status a { color: inherit; }
.request-done h3 { font-size: var(--step-3); margin-bottom: 12px; }
.request-done:focus { outline: none; }

@media (max-width: 900px) {
  .request-grid { grid-template-columns: 1fr; }
  .request-intro { position: static; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .field-row--plz { grid-template-columns: 110px 1fr; }
}

/* ---------- 3D-Ansicht ---------- */

.viewer {
  position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 78vh;
  background: radial-gradient(ellipse at 50% 40%, #F4F2EC 0%, var(--paper-2) 70%);
  border-radius: var(--radius-tile); overflow: hidden; touch-action: none; cursor: grab;
}
.viewer:active { cursor: grabbing; }
.viewer canvas { display: block; width: 100% !important; height: 100% !important; }
.viewer-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; pointer-events: none;
  padding: 6px 14px; border-radius: var(--radius-pill); background: rgba(255,255,255,.85); font-size: var(--step--1);
}
.viewer--bare { background: none; cursor: default; touch-action: auto; aspect-ratio: 1; }
.viewer-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.viewer-tabs button {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius-pill); background: #fff;
  font: 500 var(--step--1) var(--font); color: var(--ink); cursor: pointer;
}
.viewer-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.scroll-demo { height: 260vh; margin-top: 64px; }
.scroll-demo-stage { position: sticky; top: 0; height: 100dvh; display: grid; align-items: center; }
.scroll-demo-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; }
.scroll-demo h2 { font-size: var(--step-4); margin-bottom: 16px; max-width: 14ch; }
@media (max-width: 760px) { .scroll-demo-grid { grid-template-columns: 1fr; } .viewer { aspect-ratio: 4 / 3; } }

.view3d {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; padding: 0;
  border: 0; background: none; color: var(--ink); cursor: pointer;
  font: 500 var(--step-0) var(--font); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.view3d svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.view3d:hover { color: var(--chalk); }

.dialog-3d {
  width: min(960px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0;
  border-radius: 12px; background: var(--paper); color: var(--ink); overflow: hidden;
}
.dialog-3d::backdrop { background: rgba(29, 27, 24, .55); }
.dialog-3d[open] { animation: dialog-in .25s var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.dialog-3d-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 14px 10px 24px; }
.dialog-3d-head h2 { font-size: var(--step-2); letter-spacing: -.015em; }
.dialog-close {
  width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--radius-pill);
  background: #fff; cursor: pointer; color: var(--ink);
}
.dialog-close:hover { background: var(--paper-2); }
.dialog-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.viewer--dialog { border-radius: 0; aspect-ratio: 16 / 10; max-height: calc(100dvh - 200px); }
.viewer.is-loading::after {
  content: "3D-Modell wird geladen …"; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--ink-soft); font-size: var(--step--1);
}
.viewer-error { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--ink-soft); }
.dialog-3d-note { margin: 0; padding: 12px 24px 18px; font-size: var(--step--1); color: var(--ink-soft); max-width: none; }
@media (max-width: 640px) { .viewer--dialog { aspect-ratio: 1; } }
@media (prefers-reduced-motion: reduce) { .dialog-3d[open] { animation: none; } }

/* ---------- Bestellbedingungen ---------- */

.terms { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 5vw, 72px); padding-bottom: clamp(64px, 9vw, 128px); align-items: start; }
.terms-toc { position: sticky; top: 96px; border-top: 1px solid var(--ink); padding-top: 14px; }
.terms-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.terms-toc a { display: block; padding: 6px 0; font-size: var(--step--1); color: var(--ink-soft); text-decoration: none; }
.terms-toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.terms-body section { border-top: 1px solid var(--line); padding: 24px 0 8px; scroll-margin-top: 96px; }
.terms-body section:first-child { border-top-color: var(--ink); }
.terms-body h2 { font-size: var(--step-2); letter-spacing: -.015em; margin-bottom: 12px; }
.terms-body p { color: var(--ink-soft); max-width: 68ch; }
.terms-body strong { color: var(--ink); font-weight: 500; }
@media (max-width: 860px) {
  .terms { grid-template-columns: 1fr; }
  .terms-toc { position: static; }
}

/* ---------- Kauf-Knöpfe ---------- */

.button--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button--outline:hover { background: var(--ink); color: var(--paper); }
.button.is-added { background: var(--forest); }
.page-head .handmade-note {
  font-size: var(--step-0); color: var(--ink); margin-top: 20px; padding: 14px 18px;
  background: var(--paper-2); border-left: 3px solid var(--oak); border-radius: 0 6px 6px 0; max-width: 62ch;
}
.product-note { font-size: var(--step--1); color: var(--ink-soft); padding-top: 12px; border-top: 1px solid var(--line); margin-top: 4px; }
.buy-status { min-height: 1.5em; margin: 10px 0 0; font-size: var(--step--1); color: var(--ink-soft); }
.buy-status a { color: var(--ink); }

/* ---------- Bild-Platzhalter ---------- */

.placeholder {
  display: grid; place-items: center; align-content: center; gap: 10px; text-align: center;
  min-height: 360px; height: 100%; padding: 24px; border-radius: 3px;
  border: 1.5px dashed currentColor; color: var(--ink-soft);
}
.placeholder svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.placeholder strong { font-size: var(--step-1); font-weight: 500; color: var(--ink); }
.placeholder span { font-size: var(--step--1); max-width: 30ch; }
.forest .placeholder { color: var(--on-forest-soft); }
.forest .placeholder strong { color: var(--on-forest); }

/* ---------- Warenkorb ---------- */

.cart-layout { display: grid; grid-template-columns: 1fr minmax(300px, 400px); gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: clamp(64px, 9vw, 128px); }
.cart-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.cart-item {
  display: grid; grid-template-columns: 120px 1fr auto auto; gap: 20px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.cart-item img { width: 120px; aspect-ratio: 3/2; object-fit: cover; border-radius: 3px; }
.cart-item h2 { font-size: var(--step-2); letter-spacing: -.015em; }
.cart-item p { margin: 4px 0 0; color: var(--ink-soft); font-size: var(--step--1); }
.cart-item-total { font-weight: 500; font-variant-numeric: tabular-nums; min-width: 7ch; text-align: right; color: var(--ink) !important; font-size: var(--step-0) !important; }
.text-button {
  background: none; border: 0; padding: 8px 0; margin-top: 2px; font: inherit; font-size: var(--step--1);
  color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.qty { display: inline-flex; align-items: center; background: #fff; border-radius: var(--radius-pill); }
.qty button {
  width: 44px; height: 44px; border: 0; background: none; border-radius: var(--radius-pill);
  font: 500 1.2rem var(--font); color: var(--ink); cursor: pointer;
}
.qty button:hover { background: var(--paper-2); }
.qty output { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; font-weight: 500; }
.cart-empty { padding: 32px 0; border-bottom: 1px solid var(--line); }

.cart-summary { background: var(--paper-2); border-radius: var(--radius-tile); padding: 24px; position: sticky; top: 96px; }
.cart-summary h2 { font-size: var(--step-2); margin-bottom: 14px; }
.delivery { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.delivery-option {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start;
  padding: 14px; background: #fff; border-radius: 6px; cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow .2s ease;
}
.delivery-option:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.delivery-option input { margin: 4px 0 0; accent-color: var(--ink); width: 18px; height: 18px; }
.delivery-option strong { display: block; font-weight: 500; }
.delivery-option small { display: block; color: var(--ink-soft); font-size: var(--step--1); }
.delivery-price { font-variant-numeric: tabular-nums; font-size: var(--step--1); }
.ship-intro { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 12px; }
.ship-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ship-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; background: #fff; border-radius: 6px; font-variant-numeric: tabular-nums; }
.ship-list li > span:last-child { white-space: nowrap; }
.ship-list small { display: block; color: var(--ink-soft); font-size: var(--step--1); }
.ship-explain { margin-top: 10px; font-size: var(--step--1); color: var(--ink-soft); }
.ship-explain summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.ship-explain p { margin: 8px 0; }
.ship-explain ul { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 2px; }
.ship-explain li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.totals { display: grid; grid-template-columns: 1fr auto; margin: 24px 0; font-variant-numeric: tabular-nums; }
.totals dt, .totals dd { margin: 0; padding: 8px 0; }
.totals dd { text-align: right; }
.totals .total { border-top: 1px solid var(--ink); padding-top: 12px; margin-top: 4px; font-size: var(--step-2); font-weight: 500; }
.checkout { width: 100%; }
.checkout:disabled { opacity: .45; cursor: not-allowed; }
.checkout:disabled:hover { background: var(--ink); }
.checkout-note { font-size: var(--step--1); color: var(--ink-soft); margin: 12px 0 0; }
.checkout-note.is-error { color: #8C1D18; }
.checkout-note a { color: inherit; }

@media (max-width: 860px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 560px) {
  .cart-item { grid-template-columns: 88px 1fr; gap: 12px 16px; }
  .cart-item img { width: 88px; }
  .qty { grid-column: 1; justify-self: start; }
  .cart-item-total { grid-column: 2; }
}

/* ---------- Kontakt ---------- */

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.contact-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  min-height: 240px; padding: 24px; border-radius: var(--radius-tile);
  background: var(--paper-2); text-decoration: none; transition: background-color .25s ease;
}
a.contact-card:hover { background: var(--span); }
.contact-card--dark { background: var(--forest); color: var(--on-forest); }
.contact-card-label { font-size: var(--step--1); color: var(--ink-soft); }
.contact-card--dark .contact-card-label { color: var(--on-forest-soft); }
.contact-card { container-type: inline-size; }
.contact-card-value { display: block; font-size: var(--step-3); font-weight: 500; letter-spacing: -.025em; line-height: 1.15; overflow-wrap: anywhere; }
/* E-Mail-Adresse bleibt auf einer Zeile und wird mit der Karte kleiner */
.contact-card-value--nowrap { white-space: nowrap; overflow-wrap: normal; font-size: min(var(--step-3), 9cqi); }
.contact-card-hint { font-size: var(--step--1); margin-top: 8px; color: var(--ink-soft); }
.contact-card--dark .contact-card-hint { color: var(--on-forest-soft); }
@media (max-width: 960px) { .contact-cards { grid-template-columns: 1fr; } .contact-card { min-height: 0; gap: 28px; } }

.legal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.legal-grid > div { border-top: 1px solid var(--ink); padding-top: 20px; }
.legal-grid h2 { font-size: var(--step-2); letter-spacing: -.015em; margin-bottom: 14px; }
.legal-grid p { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.6; }
.legal-grid a { color: var(--ink); }
@media (max-width: 860px) { .legal-grid { grid-template-columns: 1fr; } }

/* ---------- Fusszeile ---------- */

.site-footer { background: var(--span); position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 5fr 7fr; min-height: 560px; }
.footer-mark { position: relative; }
.footer-mark svg { position: absolute; left: 0; top: 40px; width: min(90%, 460px); height: auto; fill: var(--ink); }
.footer-body { padding-block: 72px 48px; display: grid; gap: 48px; align-content: start; }
.footer-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 28px; border-top: 1px solid var(--ink); }
.footer-row h2 { font-size: var(--step-2); letter-spacing: -.015em; margin-bottom: 10px; }
.footer-row p { margin: 0; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-nav { list-style: none; margin: 0; padding: 0; font-size: var(--step-2); line-height: 1.35; }
.footer-nav a { display: inline-block; min-height: 32px; }
.footer-small { font-size: var(--step--1); display: flex; gap: 20px; flex-wrap: wrap; }
.footer-sketch { position: absolute; right: var(--gutter); bottom: 0; width: 220px; stroke: var(--ink); fill: none; stroke-width: 1.3; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; min-height: 0; }
  .footer-mark { height: 220px; }
  .footer-mark svg { width: 200px; top: 32px; }
  .footer-row { grid-template-columns: 1fr; }
  .footer-sketch { width: 140px; opacity: .6; }
  .footer-body { padding-bottom: 160px; }
}

/* ---------- Einblenden ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .float { transform: none !important; }
  .js .draw :is(path, line, rect, circle, ellipse, polyline) { stroke-dashoffset: 0; }
  .rings { height: auto; }
  .rings-stage { position: static; height: auto; padding-block: 64px; }
  .rings-steps { min-height: 0; }
  .ring-step { position: static; opacity: 1; transform: none; margin-bottom: 40px; }
  .rings-progress { display: none; }
}
