/* Hobelhus Tischlerei · Konzept-Demo 05 · Tischlerei
   Stil: Werkstatt und Zeichenbrett. Papier mit Rasterlinien, Nussbaum, Eiche, Bleistiftrot für Maßlinien.
   Young Serif für Überschriften, Instrument Sans (auch schmal) für Text. */

:root {
  --papier: #F6F1E8;
  --papier-2: #EFE7DA;
  --raster: rgba(43, 31, 23, 0.07);
  --nuss: #2B1F17;
  --nuss-2: #3A2B21;
  --eiche: #C49A6C;
  --eiche-hell: #E2C9A6;
  --rot: #C8402B;
  --tinte: #241A13;
  --grau: #6A5D52;
  --hell: #F3E9DB;
  --hell-gedimmt: #CDBBA6;
  --linie: rgba(43, 31, 23, 0.16);
  --kopf: 62px;
  --abstand: clamp(48px, 6vw, 76px);
  --kopfschrift: "Young Serif", Georgia, serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (min-width: 960px) { :root { --kopf: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf) + 12px); }
body { margin: 0; background-color: var(--papier); background-image: linear-gradient(var(--raster) 1px, transparent 1px), linear-gradient(90deg, var(--raster) 1px, transparent 1px); background-size: 28px 28px; color: var(--tinte); font: 400 1.0625rem/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote, fieldset { margin: 0; }
ul, ol { list-style: none; padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; border-radius: 4px; }
.sprung { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; background: var(--nuss); color: var(--hell); text-decoration: none; }
.sprung:focus { top: 12px; }
.rahmen { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.abschnitt { padding-block: var(--abstand); }

/* ---------- Typo ---------- */
h1, .titel, h3, legend { font-family: var(--kopfschrift); font-weight: 400; }
.titel { font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.titel-hell { color: var(--hell); }
.etikett { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font-stretch: 80%; font-weight: 700; font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rot); }
.etikett::before { content: ""; width: 26px; height: 9px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.etikett-hell { color: var(--eiche-hell); }
.gross { font-size: clamp(1.1rem, 1.6vw, 1.26rem); line-height: 1.55; }
.kopfzeile { max-width: 780px; margin-bottom: clamp(26px, 4vw, 44px); }
.kopfzeile > p:not(.etikett) { margin-top: 12px; color: var(--grau); }
.textlink { font-weight: 700; text-decoration: underline; text-decoration-color: var(--rot); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.textlink:hover { color: var(--rot); }
.textlink-hell { color: var(--hell); }
.knopf-text { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 14px 24px; border: 0; border-radius: 6px; background: var(--nuss); color: var(--hell); font: 700 1rem/1.2 var(--text); text-decoration: none; white-space: nowrap; box-shadow: 4px 4px 0 var(--eiche); transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease; }
.knopf::after { content: ""; width: 16px; height: 9px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.knopf:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--eiche); }
.knopf:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--eiche); }
.knopf-gross { min-height: 58px; padding: 16px 28px; font-size: 1.05rem; }
.knopf-klein { min-height: 42px; padding: 9px 16px; font-size: 0.92rem; box-shadow: 3px 3px 0 var(--eiche); }
.knopf-klein::after { display: none; }
.knopf-voll { width: 100%; }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 50; background: rgba(246, 241, 232, 0.96); border-bottom: 2px solid transparent; transition: border-color 0.25s ease; }
.kopf.ist-gescrollt { border-color: var(--nuss); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--kopf); max-width: 1300px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 32px); }
.marke { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--nuss); }
.marke-zeichen { width: 36px; height: 36px; flex: none; }
.marke-text { display: flex; flex-direction: column; font-family: var(--kopfschrift); font-size: 1.35rem; line-height: 1; }
.marke-text small { margin-top: 4px; font-family: var(--text); font-stretch: 80%; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grau); }
.hauptnav { display: none; }
.kopf-aktion { display: flex; align-items: center; gap: 12px; }
.kopf-tel { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--nuss); border-radius: 6px; color: var(--nuss); text-decoration: none; font-weight: 700; }
.kopf-tel svg { width: 19px; height: 19px; }
.kopf-tel span { display: none; }
.kopf-aktion .knopf-klein { display: none; }
@media (min-width: 960px) {
  .hauptnav { display: flex; gap: clamp(14px, 1.8vw, 28px); }
  .hauptnav a { font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--grau); padding: 6px 0; }
  .hauptnav a:hover, .hauptnav a.ist-aktiv { color: var(--nuss); box-shadow: inset 0 -2px 0 var(--rot); }
  .kopf-aktion .knopf-klein { display: inline-flex; }
}
@media (min-width: 1180px) {
  .kopf-tel { display: inline-flex; gap: 8px; width: auto; height: auto; padding: 0; border: 0; }
  .kopf-tel span { display: inline; font-size: 0.95rem; }
  .kopf-tel svg { color: var(--rot); }
}

/* ---------- 1 · Hero ---------- */
.held { padding-top: clamp(0px, 3vw, 36px); }
.held-raster { display: grid; }
.held-bild { position: relative; order: -1; margin-inline: calc(clamp(16px, 4vw, 40px) * -1); height: min(52vw, 320px); }
.held-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.mass { display: none; }
.held-text { padding: 22px 0 26px; }
.vorzeile { margin-bottom: 12px; font-stretch: 80%; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rot); }
.held h1 { font-size: clamp(2.2rem, 9vw, 4.8rem); line-height: 1.02; letter-spacing: -0.015em; color: var(--nuss); text-wrap: balance; }
.held-satz { margin-top: 14px; max-width: 30rem; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--grau); }
.held-aktion { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 22px; }
.held-aktion .knopf { width: calc(100% - 4px); }
.belegleiste { display: grid; gap: 4px; padding: 14px clamp(16px, 4vw, 40px); background: var(--nuss); color: var(--eiche-hell); font-stretch: 85%; font-weight: 700; font-size: 0.98rem; letter-spacing: 0.02em; }
.belegleiste li { display: flex; align-items: center; gap: 10px; }
.belegleiste li::before { content: ""; width: 14px; height: 8px; border-left: 2px solid var(--rot); border-right: 2px solid var(--rot); background: linear-gradient(var(--rot), var(--rot)) center / 100% 2px no-repeat; }
@media (min-width: 960px) {
  .held-raster { grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: center; min-height: min(calc(100vh - var(--kopf) - 34px - 60px - 36px), 760px); }
  .held-bild { order: 2; margin: 0 34px 0 0; height: min(calc(100vh - var(--kopf) - 180px), 680px); border: 2px solid var(--nuss); }
  .mass { display: block; position: absolute; top: 0; bottom: 0; right: -30px; width: 16px; border-top: 2px solid var(--rot); border-bottom: 2px solid var(--rot); }
  .mass::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--rot); }
  .mass span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(90deg); padding: 2px 6px; background: var(--papier); color: var(--rot); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
  .held-text { padding: 20px 0; }
  .held-aktion { flex-direction: row; align-items: center; gap: 26px; margin-top: 30px; }
  .held-aktion .knopf { width: auto; }
  .belegleiste { grid-template-columns: repeat(3, auto); justify-content: space-between; margin-top: clamp(24px, 3vw, 36px); padding: 18px max(clamp(16px, 4vw, 40px), calc((100vw - 1220px) / 2 + 40px)); }
}
@media (max-width: 959px) and (max-height: 700px) {
  .held-bild { height: min(40vw, 220px); }
  .held h1 { font-size: clamp(1.9rem, 7.6vw, 2.4rem); }
  .held-satz { margin-top: 10px; font-size: 1rem; }
  .held-aktion { margin-top: 16px; }
}

/* ---------- 2 · Nische ausmessen ---------- */
.werkbank { display: grid; gap: 0; border: 2px solid var(--nuss); border-radius: 8px; background: #FBF8F2; overflow: hidden; box-shadow: 8px 8px 0 var(--eiche); }
.regler { order: 2; display: grid; gap: 18px; padding: 22px 18px 24px; border-top: 2px solid var(--nuss); }
.regler-feld { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 12px; }
.regler-feld > span, .regler-feld legend { font-stretch: 80%; font-weight: 700; font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grau); }
.regler-feld output { font-family: var(--kopfschrift); font-size: 1.5rem; color: var(--nuss); }
.regler-feld input[type=range] { grid-column: 1 / -1; width: 100%; height: 34px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; }
.regler-feld input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--nuss) 0 2px, transparent 2px 10px), var(--eiche-hell); }
.regler-feld input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--eiche-hell); }
.regler-feld input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--rot); border: 4px solid #FBF8F2; box-shadow: 0 0 0 2px var(--rot); }
.regler-feld input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--rot); border: 4px solid #FBF8F2; box-shadow: 0 0 0 2px var(--rot); }
.regler-feld fieldset, fieldset.regler-feld { display: block; }
fieldset.regler-feld legend { margin-bottom: 8px; }
.tiefe { display: flex; gap: 8px; }
.tiefe label, .wahl label { position: relative; }
.tiefe input, .wahl input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tiefe span, .wahl span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 2px solid var(--nuss); border-radius: 6px; background: #fff; font-weight: 700; }
.tiefe input:checked + span, .wahl input:checked + span { background: var(--nuss); color: var(--hell); }
.tiefe input:focus-visible + span, .wahl input:focus-visible + span { outline: 3px solid var(--rot); outline-offset: 2px; }
.wahl.ist-fehler span { border-color: var(--rot); }
.ergebnis { padding: 16px; border-radius: 6px; background: var(--papier-2); }
.ergebnis-zeile { font-family: var(--kopfschrift); font-size: 1.3rem; color: var(--nuss); }
.ergebnis-preis { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 4px; font-family: var(--kopfschrift); font-size: 1.8rem; color: var(--rot); }
.ergebnis-klein { color: var(--grau); font-size: 0.88rem; margin-bottom: 14px; }
.zeichnung { order: 1; padding: 16px 12px 10px; background-image: linear-gradient(rgba(200, 64, 43, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(200, 64, 43, 0.06) 1px, transparent 1px); background-size: 20px 20px; }
.zeichnung svg { width: 100%; height: auto; }
.zeichnung-notiz { margin-top: 6px; color: var(--grau); font-size: 0.84rem; text-align: center; }
.zeichnung .regal-holz { fill: #E7CFAD; stroke: var(--nuss); stroke-width: 2.5; }
.zeichnung .regal-boden { stroke: var(--nuss); stroke-width: 2.5; }
.zeichnung .wand { fill: none; stroke: var(--grau); stroke-width: 1.5; stroke-dasharray: 6 5; }
.zeichnung .masslinie { stroke: var(--rot); stroke-width: 2; fill: none; }
.zeichnung .masstext { fill: var(--rot); font: 700 15px var(--text); }
.zeichnung .buch { stroke: var(--nuss); stroke-width: 1.2; }
@media (min-width: 960px) {
  .werkbank { grid-template-columns: 5fr 7fr; }
  .regler { order: 1; border-top: 0; border-right: 2px solid var(--nuss); padding: 30px 28px; }
  .zeichnung { order: 2; padding: 30px 26px 16px; display: flex; flex-direction: column; justify-content: center; }
}

/* ---------- 3 · Projekt ---------- */
.projekt .kopfzeile .marke-beispiel { margin-left: 6px; }
.stationen { position: relative; display: grid; gap: 22px; }
.station img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid var(--nuss); border-radius: 6px; margin-bottom: 14px; }
.station-nr { font-stretch: 80%; font-weight: 700; font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rot); margin-bottom: 4px; }
.station h3 { font-size: 1.45rem; color: var(--nuss); margin-bottom: 6px; }
.station p:not(.station-nr) { color: var(--grau); }
@media (min-width: 960px) {
  .stationen { grid-template-columns: repeat(3, 1fr); gap: 34px; }
  .stationen::before { content: ""; position: absolute; left: 6%; right: 6%; top: calc((100% - 0px) * 0); height: 0; }
  .station img { aspect-ratio: 4 / 5; }
}

/* ---------- 4 · Für wen ---------- */
.fuer-wen { background: var(--papier-2); }
.eingaenge { display: grid; gap: 18px; }
.eingang { display: grid; border: 2px solid var(--nuss); border-radius: 8px; overflow: hidden; background: #FBF8F2; }
.eingang img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 2px solid var(--nuss); }
.eingang-text { padding: 18px 18px 22px; }
.eingang h3 { font-size: 1.5rem; color: var(--nuss); margin-bottom: 6px; }
.eingang p { color: var(--grau); margin-bottom: 14px; }
@media (min-width: 960px) { .eingaenge { grid-template-columns: repeat(3, 1fr); gap: 24px; } .eingang img { aspect-ratio: 4 / 5; } }

/* ---------- 5 · Ablauf ---------- */
.ablauf-raster { display: grid; gap: 30px; align-items: center; }
.schritte { display: grid; gap: 16px; }
.schritte li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; padding-bottom: 16px; border-bottom: 2px dashed var(--linie); }
.schritt-mass { font-family: var(--kopfschrift); font-size: 2.2rem; line-height: 1; color: var(--rot); }
.schritte h3 { font-size: 1.3rem; color: var(--nuss); margin-bottom: 2px; }
.schritte p { color: var(--grau); }
.ablauf-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid var(--nuss); border-radius: 8px; box-shadow: 8px 8px 0 var(--eiche); }
@media (min-width: 960px) { .ablauf-raster { grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 88px); } .ablauf-bild img { aspect-ratio: 4 / 5; } }

/* ---------- 6 · Werkstatt ---------- */
.werkstatt { background: var(--nuss); color: var(--hell); }
.werkstatt-raster { display: grid; gap: 28px; align-items: center; }
.werkstatt-bild { position: relative; }
.werkstatt-bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.werkstatt-bild .marke-beispiel { position: absolute; left: 12px; top: 12px; }
.werkstatt .titel { margin-bottom: 14px; }
.werkstatt .gross { color: var(--hell-gedimmt); }
.werkstatt-jobs { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(243, 233, 219, 0.2); color: var(--hell-gedimmt); }
.stimmen { display: grid; gap: 16px; margin-top: clamp(36px, 5vw, 60px); }
.stimme { padding: 22px; border-radius: 8px; background: var(--nuss-2); border: 1px solid rgba(243, 233, 219, 0.14); }
.stimme blockquote { margin: 12px 0 10px; font-family: var(--kopfschrift); font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.35; color: var(--hell); }
.stimme figcaption { color: var(--hell-gedimmt); font-weight: 700; font-size: 0.9rem; }
.stimme-bild { padding: 0; overflow: hidden; }
.stimme-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stimme-bild figcaption { display: flex; align-items: center; gap: 8px; padding: 12px 14px; }
@media (min-width: 960px) {
  .werkstatt-raster { grid-template-columns: 6fr 5fr; gap: clamp(40px, 6vw, 88px); }
  .stimmen { grid-template-columns: 5fr 3fr 5fr; align-items: stretch; }
  .stimme-bild img { aspect-ratio: auto; height: 220px; }
}

/* Beispiel-Kennzeichnung */
.marke-beispiel { display: inline-block; padding: 4px 9px; border-radius: 4px; background: var(--rot); color: #fff; font: 700 0.66rem/1.3 var(--text); font-stretch: 85%; letter-spacing: 0.1em; text-transform: uppercase; vertical-align: middle; }

/* ---------- 7 · FAQ ---------- */
.fragen-raster { display: grid; gap: 8px; }
.faq details { border-bottom: 2px dashed var(--linie); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 18px 52px 18px 0; font-family: var(--kopfschrift); font-size: 1.25rem; line-height: 1.3; color: var(--nuss); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border: 2px solid var(--nuss); border-radius: 4px; background: linear-gradient(var(--nuss), var(--nuss)) center / 12px 2px no-repeat, linear-gradient(var(--nuss), var(--nuss)) center / 2px 12px no-repeat; }
.faq details[open] summary::after { background: linear-gradient(var(--nuss), var(--nuss)) center / 12px 2px no-repeat; }
.faq details p { padding: 0 52px 20px 0; color: var(--grau); }
@media (min-width: 960px) { .fragen-raster { grid-template-columns: 4fr 7fr; gap: clamp(40px, 6vw, 88px); align-items: start; } .fragen-raster .kopfzeile { position: sticky; top: calc(var(--kopf) + 30px); } }

/* ---------- 8 · Aufmaß ---------- */
.aufmass { background: var(--eiche-hell); }
.aufmass-raster { display: grid; gap: 30px; }
.aufmass .titel { color: var(--nuss); margin-bottom: 14px; }
.aufmass .gross { color: var(--nuss-2); }
.aufmass-tel { margin-top: 16px; }
.formular { padding: 24px 20px; border: 2px solid var(--nuss); border-radius: 8px; background: #FBF8F2; box-shadow: 8px 8px 0 var(--nuss); }
.formular-kopf { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; font-stretch: 80%; font-weight: 700; font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grau); }
.formular-balken { position: relative; width: 120px; height: 10px; border-left: 2px solid var(--nuss); border-right: 2px solid var(--nuss); }
.formular-balken::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: var(--linie); }
.formular-balken::after { content: ""; position: absolute; left: 0; top: 4px; height: 2px; width: calc(var(--fortschritt, 0.5) * 100%); background: var(--rot); transition: width 0.35s ease; }
.formular legend { margin-bottom: 12px; font-size: 1.6rem; color: var(--nuss); }
.wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.masse-chip { display: inline-flex; margin-top: 14px; padding: 8px 12px; border: 2px dashed var(--rot); border-radius: 6px; color: var(--rot); font-weight: 700; }
.feld { display: grid; gap: 6px; margin-top: 16px; }
.feld span { font-stretch: 80%; font-weight: 700; font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grau); }
.feld input { height: 50px; padding: 0 14px; border: 2px solid var(--nuss); border-radius: 6px; background: #fff; font-size: 1rem; }
.feld input:focus { outline: none; box-shadow: 0 0 0 3px rgba(200, 64, 43, 0.35); }
.feld input.ist-fehler { border-color: var(--rot); }
.formular .knopf { margin-top: 20px; }
.formular-knoepfe { display: flex; align-items: flex-end; gap: 14px; }
.knopf-zurueck { border: 0; background: none; padding: 12px 4px; font-weight: 700; color: var(--grau); text-decoration: underline; text-underline-offset: 4px; }
.fertig-titel { font-family: var(--kopfschrift); font-size: 1.6rem; color: var(--nuss); margin-bottom: 6px; }
.formular .ww-demo-hinweis { margin-top: 16px; color: var(--grau); }
@media (min-width: 960px) { .aufmass-raster { grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 88px); align-items: start; } .formular { padding: 32px 30px; } }

/* ---------- Dialog ---------- */
.dialog { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 2px solid var(--nuss); border-radius: 8px; overflow: auto; background: #FBF8F2; color: var(--tinte); box-shadow: 10px 10px 0 var(--eiche); }
.dialog::backdrop { background: rgba(43, 31, 23, 0.7); }
.dialog-form { position: relative; padding: 28px 22px 22px; }
.dialog-titel { font-family: var(--kopfschrift); font-size: 1.6rem; color: var(--nuss); line-height: 1.15; padding-right: 30px; margin-bottom: 4px; }
.dialog-zu { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border: 2px solid var(--nuss); border-radius: 6px; background: none; font-size: 1.4rem; line-height: 1; }
.dialog .knopf { margin-top: 20px; }
.fertig-klein { margin-top: 14px; padding: 12px 14px; border-radius: 6px; background: var(--nuss); color: var(--hell); font-weight: 600; }
.dialog .ww-demo-hinweis { margin-top: 12px; color: var(--grau); }

/* ---------- Fuß ---------- */
.fuss { background: var(--nuss); color: var(--hell-gedimmt); padding: 44px 0 calc(100px + env(safe-area-inset-bottom, 0px)); font-size: 0.94rem; }
.fuss-raster { display: grid; gap: 26px; }
.marke-fuss { color: var(--hell); margin-bottom: 12px; }
.marke-fuss .marke-text small { color: var(--hell-gedimmt); }
.fuss p + p { margin-top: 6px; }
.fuss-nav { display: flex; gap: 20px; }
.fuss-nav a { color: var(--hell); font-weight: 700; }
.fuss-demo { padding: 16px; border: 1px dashed rgba(243, 233, 219, 0.3); border-radius: 8px; font-size: 0.88rem; }
.fuss-demo strong { color: var(--hell); }
@media (min-width: 960px) { .fuss { padding-bottom: 48px; } .fuss-raster { grid-template-columns: 5fr 2fr 5fr; } }

/* ---------- Feste Handyleiste ---------- */
.leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(246, 241, 232, 0.97); border-top: 2px solid var(--nuss); transform: translateY(110%); transition: transform 0.3s ease; }
.leiste.ist-sichtbar { transform: none; }
.leiste-tel { display: grid; place-items: center; width: 52px; min-height: 50px; border: 2px solid var(--nuss); border-radius: 6px; color: var(--nuss); }
.leiste-tel svg { width: 21px; height: 21px; }
.leiste-knopf { min-height: 50px; box-shadow: none; }
.leiste-knopf::after { display: none; }
@media (min-width: 960px) { .leiste { display: none; } }

/* ---------- Einblenden ---------- */
.js .einblenden { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .einblenden.ist-da { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .einblenden { opacity: 1; transform: none; }
}

/* ---------- Rechtsseiten ---------- */
.recht { padding-block: var(--abstand); }
.recht .rahmen { max-width: 820px; }
.recht h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--nuss); margin-bottom: 22px; }
.recht h2 { font-family: var(--kopfschrift); font-size: 1.35rem; color: var(--nuss); margin: 26px 0 6px; }
.recht p { color: var(--grau); }
.recht .platzhalter { display: inline-block; padding: 0 8px; border: 2px dashed var(--rot); border-radius: 4px; color: var(--rot); font-size: 0.88rem; font-weight: 700; }
.recht-knopf { margin-top: 40px; }
.recht-zurueck { font-weight: 700; color: var(--rot); }
