@font-face { font-family: Archivo; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(fonts/archivo-var.woff2) format("woff2-variations"), url(fonts/archivo-var.woff2) format("woff2"); }
@font-face { font-family: Archivo; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(fonts/archivo-var-italic.woff2) format("woff2-variations"), url(fonts/archivo-var-italic.woff2) format("woff2"); }

/* Aufmaßblatt: Karopapier, Navy als Zeichentusche, Orange nur als Kreppband und für die Handlung. */
/* Hell und dunkel: Im Dunkelmodus wird das Aufmaßblatt zur Blaupause (siehe Block am Dateiende).
   Eigene Farben für beide Modi verhindern, dass Handy-Browser die Seite selbst umfärben. */
:root {
  color-scheme: light dark;
  --navy: #14304f;
  --navy-deep: #0c2138;
  --graphite: #23303b;
  --muted: #4f5d69;
  --paper: #f6f8f9;
  --grid: #dfe6ec;
  --line: #8fa1b1;
  --line-soft: #c5d1db;
  --orange: #f08c1a;
  --orange-hot: #ffa23d;
  --orange-press: #d97a0c;
  --on-navy: #e8eef4;
  --on-navy-muted: #aebfd0;
  --err: #b3261e;
  --ink-fixed: #14304f;  /* bleibt immer Navy: Text auf Orange */
  --on-ink: #fff;        /* Text auf Flächen in Zeichenfarbe */
  --sheet: #fff;         /* Flächen, die auf dem Blatt aufliegen */
  --foot: #14304f;
  --grid-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M24 .5H.5V24' fill='none' stroke='%23dfe6ec'/%3E%3C/svg%3E");
  --max: 1240px;
  --font: Archivo, system-ui, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2 10L10 2' stroke='%2314304f' stroke-width='1.6'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--navy) var(--grid); accent-color: var(--navy); }
body {
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--graphite); caret-color: var(--navy);
  background: var(--paper) var(--grid-img);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol, dl { list-style: none; padding: 0; }
a { color: var(--navy); text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--navy); color: var(--on-ink); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.foot :focus-visible { outline-color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
section { padding: 96px 0; }
.pt0 { padding-top: 0; }

h1, h2, h3 { color: var(--navy); text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
h1 { font-size: clamp(2.3rem, 4.4vw, 4.2rem); font-weight: 820; font-stretch: 108%; line-height: 1.02; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); font-weight: 800; font-stretch: 106%; line-height: 1.06; letter-spacing: -.015em; }
h3 { font-size: 1.2rem; font-weight: 750; line-height: 1.2; }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 56ch; margin-top: 18px; text-wrap: pretty; }
.lbl { display: block; font-size: .78rem; font-weight: 650; font-stretch: 88%; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tel { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Maßketten */
.dim { position: relative; display: flex; justify-content: center; align-items: center; min-height: 22px; color: var(--navy); }
.dim::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--navy); }
.dim::after { content: ""; position: absolute; left: -6px; right: -6px; top: calc(50% - 6px); height: 12px; background: var(--tick) left center / 12px no-repeat, var(--tick) right center / 12px no-repeat; }
.dim > span { position: relative; z-index: 1; padding: 0 10px; background: var(--paper); font-style: italic; font-stretch: 88%; font-weight: 520; font-size: .9rem; line-height: 1.2; white-space: nowrap; }
.dim-v { position: relative; display: flex; justify-content: center; align-items: center; width: 22px; color: var(--navy); }
.dim-v::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid var(--navy); }
.dim-v::after { content: ""; position: absolute; top: -6px; bottom: -6px; left: calc(50% - 6px); width: 12px; background: var(--tick) center top / 12px no-repeat, var(--tick) center bottom / 12px no-repeat; }
.dim-v > span { position: relative; z-index: 1; writing-mode: vertical-rl; transform: rotate(180deg); padding: 10px 0; background: var(--paper); font-style: italic; font-stretch: 88%; font-weight: 520; font-size: .9rem; white-space: nowrap; }

/* Kreppband */
.tape { position: absolute; z-index: 3; width: 120px; height: 26px; background: url(tape.svg) center / 100% 100% no-repeat; pointer-events: none; }
.tape-tl { top: 6px; left: -18px; transform: rotate(-32deg); }
.tape-br { bottom: 10px; right: -20px; transform: rotate(-28deg); }
.tape-tr { top: 4px; right: -22px; transform: rotate(30deg); }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 8px 24px; border: 0; border-radius: 0;
  background: var(--orange); color: var(--ink-fixed); font: inherit; font-weight: 750; font-size: 1.02rem; text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { background: var(--orange-hot); }
.btn:active { background: var(--orange-press); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-line { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--on-ink); }
.btn-sm { min-height: 44px; padding: 6px 18px; font-size: .98rem; }
.btn svg { flex: none; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.skip { position: absolute; left: 16px; top: -80px; z-index: 50; padding: 10px 16px; background: var(--navy); color: var(--on-ink); }
.skip:focus { top: 12px; }

/* Kopf */
.head { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--navy); }
.head-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo { flex: none; display: block; color: var(--navy); text-decoration: none; }
.logo svg { width: 232px; height: auto; }
.logo text { font-family: var(--font); }
.logo .l-big { font-weight: 900; font-stretch: 100%; }
.logo .l-small { font-weight: 800; font-stretch: 100%; letter-spacing: .14em; }
.nav { display: flex; gap: 26px; }
.nav a { position: relative; padding: 10px 0; color: var(--navy); font-weight: 650; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: .35em; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: -2px; height: 9px; background: url(tape.svg) center / 100% 100% no-repeat; }
.head-act { display: flex; align-items: center; gap: 18px; }
.head-tel { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 650; text-decoration: none; }
.head-tel:hover { text-decoration: underline; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 48px; height: 48px; color: var(--navy); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--navy); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--navy); color: var(--on-ink); }
.menu nav { position: absolute; right: 0; top: 58px; width: min(300px, calc(100vw - 40px)); display: flex; flex-direction: column; padding: 8px; background: var(--sheet); box-shadow: 0 24px 40px -16px rgba(0,0,0,.35), 0 0 0 1px var(--navy); }
.menu nav a:not(.btn) { padding: 13px 12px; color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--grid); }
.menu nav a:not(.btn):hover, .menu nav a[aria-current="page"] { background: var(--grid); }
.menu nav .btn { margin-top: 8px; }

/* Startbereich */
.hero { padding: 48px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 3.5vw, 3.4rem); font-stretch: 104%; }
.hero h1 + .dim { margin-top: 22px; max-width: 30rem; }
.hero .acts { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 340px; margin-top: 30px; }
.hero .tel-line { margin-top: 16px; color: var(--muted); }
.hero .tel-line a { font-weight: 700; }
.plan { display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: 22px auto; gap: 12px; }
.plan > .dim { grid-column: 2; }
.plan > .dim-v { grid-row: 2; }
.plan > .frame { grid-column: 2; grid-row: 2; position: relative; }

.titleblock { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 40px; border: 1px solid var(--navy); background: var(--sheet); }
.titleblock > div { padding: 12px 16px 14px; border-left: 1px solid var(--navy); }
.titleblock > div:first-child { border-left: 0; }
.titleblock .lbl { font-size: .7rem; margin-bottom: 4px; }
.titleblock strong { display: block; color: var(--navy); font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.titleblock a { text-decoration: none; }

/* Vorher/Nachher */
.ba { margin: 0; }
.ba-stage { position: relative; --pos: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--navy); aspect-ratio: 4 / 3; touch-action: pan-y; }
.ba-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba-grip { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; background: var(--sheet); color: var(--navy); box-shadow: 0 0 0 1.5px var(--navy), 0 6px 16px -6px rgba(0,0,0,.4); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-stage:focus-within { outline: 2px solid var(--navy); outline-offset: 3px; }
.ba-tag { position: absolute; bottom: 12px; z-index: 2; padding: 3px 9px; background: var(--navy); color: var(--on-ink); font-size: .78rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.ba-tag-l { left: 12px; }
.ba-tag-r { right: 12px; }
.ba figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.ba figcaption strong { color: var(--navy); }
.ba figcaption span { color: var(--muted); font-style: italic; font-stretch: 88%; }

/* Leistungen als Legende */
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin-top: 40px; border-top: 1px solid var(--navy); }
.legend li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 18px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.code { display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--navy); color: var(--navy); background: var(--sheet); font-weight: 800; font-stretch: 112%; font-size: .95rem; letter-spacing: .04em; }
.legend p { color: var(--muted); margin-top: 2px; }
.legend-wide li { grid-template-columns: 64px minmax(0, 1fr); padding: 26px 0; }
.legend-wide .code { width: 56px; height: 56px; font-size: 1.05rem; }
.legend-wide h2 { font-size: 1.45rem; letter-spacing: -.01em; }
.more { margin-top: 32px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }

.ba-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; margin-top: 40px; }
.ba-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Rechner und Termin auf der Startseite */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--navy); background: var(--sheet); }
.tools > div { padding: 36px 36px 32px; }
.tools > div + div { border-left: 1px solid var(--navy); }
.tools p { color: var(--muted); margin: 10px 0 22px; max-width: 46ch; }
.mini-plan { width: 100%; max-width: 360px; height: auto; margin: 26px 0 0; color: var(--navy); }
.mini-plan rect { fill: var(--paper); }
.mini-plan text { font-family: var(--font); font-style: italic; font-stretch: 88%; font-size: 13px; fill: var(--navy); }
a.mini-week { text-decoration: none; }
a.mini-week:hover span { border-color: var(--navy); color: var(--navy); }
.mini-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; max-width: 360px; margin-top: 26px; }
.mini-week span { display: grid; place-items: center; height: 40px; border: 1px solid var(--line); background: var(--paper); font-size: .85rem; font-weight: 600; color: var(--muted); }
.mini-week .on { position: relative; border-color: var(--navy); color: var(--navy); background: var(--sheet); }
.mini-week .on::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -5px; height: 9px; background: url(tape.svg) center / 100% 100% no-repeat; }

/* Ablauf als Maßkette */
.chain { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 48px; }
.chain li { position: relative; padding: 0 22px 0 0; }
.chain .seg { position: relative; display: flex; align-items: center; height: 22px; margin-bottom: 20px; }
.chain .seg::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--navy); }
.chain .seg::after { content: ""; position: absolute; left: -6px; top: 5px; width: 12px; height: 12px; background: var(--tick) center / 12px no-repeat; }
.chain li:last-child .seg { margin-right: -22px; }
.chain li:last-child .seg > i { position: absolute; right: -6px; top: 5px; width: 12px; height: 12px; background: var(--tick) center / 12px no-repeat; }
.chain .seg span { position: relative; margin-left: 14px; padding: 0 8px; background: var(--paper); font-style: italic; font-stretch: 88%; font-weight: 600; color: var(--navy); }
.chain p { color: var(--muted); margin-top: 6px; font-size: 1rem; }

/* Abschluss */
.close { border-top: 1px solid var(--navy); background: var(--sheet); padding: 72px 0; }
.close-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 48px; align-items: center; }
.close p { color: var(--muted); margin-top: 10px; max-width: 52ch; font-size: 1.1rem; }

/* Unterseiten */
.ph { padding: 56px 0 48px; }
.ph h1 { max-width: 20ch; }
.ph .dim { margin-top: 22px; max-width: 34rem; }
.prose p { max-width: 62ch; font-size: 1.1rem; color: var(--muted); margin-bottom: 16px; }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin-top: 32px; border-top: 1px solid var(--navy); }
.values li { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.values p { color: var(--muted); margin-top: 4px; }
.plist { margin-top: 24px; border-top: 1px solid var(--navy); }
.plist > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.plist dt { font-weight: 750; color: var(--navy); }
.plist dd { color: var(--muted); }
.plist dd strong { display: block; color: var(--graphite); font-weight: 650; }
.h2-gap { margin-top: 72px; }
.h2-gap-sm { margin-top: 18px; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.filter button { position: relative; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 0; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line); color: var(--navy); font: inherit; font-weight: 650; cursor: pointer; }
.filter button:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.filter button[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--navy); }
.filter button[aria-pressed="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -5px; height: 9px; background: url(tape.svg) center / 100% 100% no-repeat; }
[hidden] { display: none !important; }

.detail { margin-top: 56px; }
.detail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.detail-head h3 { font-size: 1.4rem; }
.detail-head .lbl { color: var(--navy); }
.seq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.seq figure { margin: 0; }
.seq img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; box-shadow: 0 0 0 1px var(--navy); background: var(--sheet); }
.seq figcaption { margin-top: 10px; color: var(--muted); }
.seq figcaption b { color: var(--navy); font-style: italic; font-stretch: 88%; margin-right: 6px; }
.seq-dim { margin-top: 18px; }

/* Formulare */
.form { display: grid; gap: 18px; }
.f2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; }
.field > span:first-child { font-size: .78rem; font-weight: 650; font-stretch: 88%; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; min-height: 50px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0; background: var(--sheet); color: var(--graphite); font: inherit;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; padding-right: 36px; background: var(--sheet) var(--select-arrow, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2314304f' stroke-width='2' fill='none'/%3E%3C/svg%3E")) right 14px center no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
[aria-invalid="true"] { border-color: var(--err) !important; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.check input { flex: none; width: 20px; height: 20px; margin-top: 3px; }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: 12px 16px; font-weight: 600; }
.form-msg.err { background: #fbe9e7; color: var(--err); }
.form-msg.ok { background: #e7f3ea; color: #1d5b2c; }
.form .btn { justify-self: start; }
.kontakt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 64px; align-items: start; }
.kbox { border-top: 1px solid var(--navy); }
.kway { display: block; padding: 18px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.kway strong { display: block; margin-top: 4px; color: var(--navy); font-size: 1.3rem; font-weight: 750; }
.kway:hover strong { text-decoration: underline; }
.khint { margin-top: 18px; color: var(--muted); }

/* Auswahlzeilen A, B, C */
.pick { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.pick label { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 52px; padding: 8px 4px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick .key { display: grid; place-items: center; width: 32px; height: 32px; border: 1.5px solid var(--navy); color: var(--navy); background: var(--sheet); font-weight: 800; font-size: .9rem; }
.pick label:hover { background: var(--sheet); }
.pick input:checked + .key { background: var(--navy); color: var(--on-ink); }
.pick input:checked ~ span:last-child { color: var(--navy); font-weight: 700; }
.pick input:focus-visible + .key { outline: 2px solid var(--navy); outline-offset: 3px; }
.pick .key.code-key { font-stretch: 112%; font-size: .78rem; }
.week.need { outline: 2px solid var(--err); outline-offset: 3px; }
.chosen.err { color: var(--err); font-weight: 600; }

/* Richtpreis-Rechner */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.calc-steps { display: grid; gap: 40px; }
.step-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.step-h b { display: grid; place-items: center; width: 30px; height: 30px; background: var(--navy); color: var(--on-ink); font-size: .9rem; }
.step-h h2 { font-size: 1.35rem; letter-spacing: 0; }
.dims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.unit { position: relative; }
.unit input { padding-right: 44px; }
.unit::after { content: "m"; position: absolute; right: 14px; bottom: 14px; color: var(--muted); font-style: italic; }
.calc-plan { position: sticky; top: 100px; border: 1px solid var(--navy); background: var(--sheet); padding: 28px; }
.room { width: 100%; height: auto; color: var(--navy); }
.room text { font-family: var(--font); font-style: italic; font-stretch: 88%; font-size: 15px; fill: var(--navy); }
.room .area { font-style: normal; font-stretch: 105%; font-weight: 800; font-size: 26px; }
.room rect.room-r { fill: var(--paper); stroke: var(--navy); stroke-width: 3; transition: x .5s var(--ease), y .5s var(--ease), width .5s var(--ease), height .5s var(--ease); }
.result { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--navy); }
.result .price { margin-top: 6px; color: var(--navy); font-size: 1.6rem; font-weight: 800; font-stretch: 105%; }
.result .note { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.result .btn { margin-top: 18px; }
.flag { display: inline-block; margin-top: 10px; padding: 4px 10px; background: #fff3e0; color: #7a4200; font-size: .85rem; font-weight: 600; }

/* Termin */
.slots-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.slots-nav { display: flex; gap: 8px; }
.slots-nav button { min-width: 44px; min-height: 44px; border: 0; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--navy); color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.slots-nav button { display: grid; place-items: center; }
.slots-nav button:disabled { opacity: .35; cursor: default; }
.slots-nav [data-prev] svg { transform: scaleX(-1); }
.week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--navy); background: var(--sheet); }
.day + .day { border-left: 1px solid var(--line-soft); }
.day h3 { padding: 12px 10px; border-bottom: 1px solid var(--navy); font-size: .95rem; text-align: center; }
.day h3 small { display: block; color: var(--muted); font-weight: 500; font-style: italic; font-stretch: 88%; font-size: .85rem; }
.day ul { display: grid; gap: 8px; padding: 12px 10px 16px; }
.slot { position: relative; width: 100%; min-height: 44px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--navy); font: inherit; font-weight: 650; font-variant-numeric: tabular-nums; cursor: pointer; }
.slot:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.slot[aria-pressed="true"] { background: var(--navy); color: var(--on-ink); box-shadow: none; }
.slot[aria-pressed="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -6px; height: 10px; background: url(tape.svg) center / 100% 100% no-repeat; }
.chosen { margin: 18px 0 0; color: var(--muted); }
.chosen strong { color: var(--navy); }
.termin-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.legal { max-width: 800px; }
.legal h1 { margin-bottom: 24px; }
.legal h2 { font-size: 1.15rem; margin: 26px 0 6px; letter-spacing: 0; }
.legal p { color: var(--muted); }
.gap { background: #ffe9a8; color: #5c4400; padding: 0 4px; }

/* Fuß */
.foot { background: var(--foot); color: var(--on-navy-muted); padding: 64px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1.2fr 1fr 1fr; gap: 40px; }
.foot .logo { color: #fff; margin-bottom: 16px; }
.foot h2 { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.foot li { margin-bottom: 6px; }
.foot a { color: var(--on-navy-muted); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-copy { position: relative; margin-top: 44px; padding-top: 20px; font-size: .9rem; }
.foot-copy::before { content: ""; position: absolute; top: 0; left: 32px; right: 32px; height: 1px; background: rgba(255,255,255,.2); }

.dock { display: none; }

/* Ablauf als Geschichte: lsh-inks die Schritte als senkrechte Maßkette, rechts ein Aufmaßblatt, das stehen bleibt,
   leicht zur Maus schaut und zu jedem Schritt zeigt, was passiert. Ohne Skript zeigt es das Ergebnis. */
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.story .lead { max-width: 46ch; }
.steps { position: relative; margin-top: 44px; padding-left: 36px; }
.steps::before { content: ""; position: absolute; left: 11px; top: 11px; bottom: 11px; border-left: 1px solid var(--navy); }
.steps li { position: relative; padding-bottom: 34px; transition: opacity .5s; }
.steps li::before { content: ""; position: absolute; left: -31px; top: 5px; width: 12px; height: 12px; background: var(--tick) center / 12px no-repeat; }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { content: ""; position: absolute; left: -31px; bottom: 5px; width: 12px; height: 12px; background: var(--tick) center / 12px no-repeat; }
.steps-n { position: relative; display: inline-block; font-style: italic; font-stretch: 88%; font-weight: 650; font-size: 1.2rem; color: var(--navy); }
.steps-n::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: -4px; height: 9px; background: url(tape.svg) center / 100% 100% no-repeat; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.steps p { color: var(--muted); margin-top: 6px; max-width: 44ch; }

.story-side { perspective: 1400px; }
.sheet { position: relative; background: var(--sheet); box-shadow: 0 0 0 1px var(--navy); container-type: inline-size; transform-style: preserve-3d; will-change: transform; }
.sheet .tape { z-index: 4; }
/* Kopf rückt nach innen, damit das Kreppband an den Ecken die Beschriftung nicht verdeckt */
.sheet-head { display: flex; justify-content: space-between; gap: 16px; padding: 12px clamp(56px, 16cqi, 84px); border-bottom: 1px solid var(--navy); }
.sheet-head .lbl { font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-body { position: relative; aspect-ratio: 1 / .8; overflow: hidden; }
.sh-layer { position: absolute; inset: 0; padding: 6cqi; opacity: 0; transition: opacity .45s; }
.story[data-step="1"] .l1, .story[data-step="2"] .l2, .story[data-step="3"] .l3,
.story[data-step="4"] .l4, .story[data-step="5"] .l5 { opacity: 1; }

/* 1 Erstgespräch: Notiz im Stil des Schriftfelds, die Werte schreiben sich ein */
.sh-note { display: grid; border-top: 1px solid var(--navy); }
.sh-note > div { padding: 2.6cqi 0; border-bottom: 1px solid var(--line-soft); }
.sh-note dd { margin: .6cqi 0 0; color: var(--navy); font-weight: 700; font-size: clamp(1rem, 4.4cqi, 1.6rem); line-height: 1.2; clip-path: inset(0 100% 0 0); transition: clip-path .7s var(--ease); }
.story[data-step="1"] .sh-note dd { clip-path: inset(0 0 0 0); }
.story[data-step="1"] .sh-note > div:nth-child(2) dd { transition-delay: .25s; }
.story[data-step="1"] .sh-note > div:nth-child(3) dd { transition-delay: .5s; }
.story[data-step="1"] .sh-note > div:nth-child(4) dd { transition-delay: .75s; }

/* 2 Angebot: Raum wird mit Tusche gezeichnet, darunter die Positionen */
.sh-room { width: 84%; height: auto; margin: 0 auto; color: var(--navy); }
.sh-room .sh-ink { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 1.4s var(--ease); }
.sh-room .sh-wall { stroke-width: 2.5; fill: var(--paper); }
.sh-room text { fill: currentColor; font-family: var(--font); font-style: italic; font-stretch: 88%; font-size: 12px; opacity: 0; transition: opacity .4s .9s; }
.story[data-step="2"] .sh-room .sh-ink { stroke-dashoffset: 0; }
.story[data-step="2"] .sh-room text { opacity: 1; }
.sh-offer { margin-top: 3cqi; border-top: 1px solid var(--navy); }
.sh-offer li { display: flex; gap: 3cqi; align-items: baseline; padding: 1.2cqi 0; border-bottom: 1px solid var(--line-soft); font-size: clamp(.8rem, 3cqi, 1.05rem); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease); }
.sh-offer span { font-style: italic; font-stretch: 88%; color: var(--muted); }
.sh-offer b { color: var(--navy); }
.story[data-step="2"] .sh-offer li { opacity: 1; transform: none; }
.story[data-step="2"] .sh-offer li:nth-child(1) { transition-delay: 1s; }
.story[data-step="2"] .sh-offer li:nth-child(2) { transition-delay: 1.15s; }
.story[data-step="2"] .sh-offer li:nth-child(3) { transition-delay: 1.3s; }

/* 3 Planung: Bauablauf als Balken, die nacheinander wachsen */
.sh-gantt { margin-top: 3cqi; border-top: 1px solid var(--navy); }
.sh-gantt li { display: grid; grid-template-columns: 26cqi minmax(0, 1fr); align-items: center; gap: 3cqi; padding: 3.2cqi 0; border-bottom: 1px solid var(--line-soft); }
.sh-gantt span { color: var(--navy); font-weight: 650; font-size: clamp(.85rem, 3.4cqi, 1.15rem); }
.sh-gantt i { display: block; height: 4cqi; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.sh-gantt li:nth-child(1) i { width: 24%; }
.sh-gantt li:nth-child(2) i { width: 26%; margin-left: 20%; }
.sh-gantt li:nth-child(3) i { width: 42%; margin-left: 40%; }
.sh-gantt li:nth-child(4) i { width: 22%; margin-left: 78%; }
.story[data-step="3"] .sh-gantt i { transform: none; }
.story[data-step="3"] .sh-gantt li:nth-child(2) i { transition-delay: .3s; }
.story[data-step="3"] .sh-gantt li:nth-child(3) i { transition-delay: .6s; }
.story[data-step="3"] .sh-gantt li:nth-child(4) i { transition-delay: .9s; }

/* 4 Ausführung und 5 Übergabe: echte Fotos */
.sh-photo { padding: 0; }
.sh-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sh-wipe { position: absolute; inset: 0; clip-path: inset(0 0 0 0); transition: clip-path 2.4s var(--ease) .3s; }
.sh-wipe-line { position: absolute; top: 0; bottom: 0; left: 100%; width: 2px; margin-left: -1px; background: #fff; transition: left 2.4s var(--ease) .3s; }
.story[data-step="4"] .sh-wipe { clip-path: inset(0 52% 0 0); }
.story[data-step="4"] .sh-wipe-line { left: 48%; }
.sh-stamp {
  position: absolute; top: 7cqi; right: 6cqi; z-index: 2; padding: 1.4cqi 3cqi; border: 2px solid var(--navy); background: color-mix(in srgb, var(--sheet) 92%, transparent);
  color: var(--navy); font-style: italic; font-stretch: 88%; font-weight: 800; font-size: clamp(.9rem, 4cqi, 1.5rem); letter-spacing: .06em; text-transform: uppercase;
  transform: rotate(-7deg) scale(1.5); opacity: 0; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1) .3s, opacity .2s .3s;
}
.story[data-step="5"] .sh-stamp { transform: rotate(-7deg); opacity: 1; }

/* Mit Skript: Blatt bleibt beim Lesen stehen, der aktive Schritt ist hervorgehoben */
.story.live .steps li { min-height: 46vh; opacity: .4; }
.story.live .steps li:last-child { min-height: 0; padding-bottom: 18vh; }
.story.live .steps li.on { opacity: 1; }
.story.live .steps li.on .steps-n::after { transform: none; }
.story.live .story-side { position: sticky; top: 116px; }

@media (max-width: 1180px) { .head-tel span { display: none; } .nav { gap: 18px; } .titleblock { grid-template-columns: repeat(3, minmax(0, 1fr)); } .titleblock > div:nth-child(4) { border-left: 0; } .titleblock > div:nth-child(n+4) { border-top: 1px solid var(--navy); } }
@media (max-width: 980px) {
  .nav, .head-act { display: none; }
  .menu { display: block; }
  .head-bar { height: 66px; }
  .logo svg { width: 190px; }
  .hero-grid, .close-grid, .about, .kontakt, .calc, .termin-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .legend, .values { grid-template-columns: minmax(0, 1fr); }
  .ba-grid { grid-template-columns: minmax(0, 1fr); }
  .tools { grid-template-columns: minmax(0, 1fr); }
  .tools > div + div { border-left: 0; border-top: 1px solid var(--navy); }
  .chain { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  /* Ablauf auf schmalen Bildschirmen: Blatt oben stehend, die Schritte laufen darunter vorbei */
  /* Blatt und Schritte teilen sich eine Rasterzelle, sonst könnte das Blatt nicht stehen bleiben */
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-text { display: contents; }
  .story-text > h2 { grid-row: 1; }
  .story-text > .lead { grid-row: 2; margin-bottom: 28px; }
  .story-side { grid-row: 3; }
  .story .steps { grid-row: 4; }
  .story.live .story-side, .story.live .steps { grid-row: 3; grid-column: 1; }
  .story.live .story-side {
    align-self: start; top: 66px; z-index: 5; margin: 0 -32px; padding: 12px 32px 16px; border-bottom: 1px solid var(--navy);
    background: var(--paper) var(--grid-img);
  }
  .story.live .sheet { max-width: 440px; margin: 0 auto; }
  /* Platz für das Blatt (Kopf + Fläche im Verhältnis 4:3) über dem ersten Schritt */
  .story.live .steps { margin-top: calc(min(440px, 100vw - 64px) * .75 + 120px); }
  .story.live .steps li { min-height: 38vh; }
  .chain li { padding: 0; }
  .chain li:last-child .seg { margin-right: 0; }
  .calc-plan { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .foot a { display: inline-block; padding: 8px 0; }
  .dock { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--foot); padding-bottom: env(safe-area-inset-bottom); }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; color: #fff; font-weight: 750; text-decoration: none; }
  .dock a + a { background: var(--orange); color: var(--ink-fixed); }
  body { padding-bottom: 56px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .foot-copy::before { left: 20px; right: 20px; }
  section { padding: 64px 0; }
  .hero { padding-top: 28px; }
  .titleblock { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .titleblock > div { border-left: 0; border-top: 1px solid var(--navy); }
  .titleblock > div:nth-child(even) { border-left: 1px solid var(--navy); }
  .titleblock > div:nth-child(-n+2) { border-top: 0; }
  .titleblock > div:last-child { grid-column: 1 / -1; border-left: 0; }
  .f2, .dims, .plist > div { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .plist > div { gap: 2px; }
  .seq { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .seq figure:last-child { grid-column: 1 / -1; }
  .seq figure:last-child img { aspect-ratio: 4 / 3; }
  .week { grid-template-columns: minmax(0, 1fr); }
  .day + .day { border-left: 0; border-top: 1px solid var(--navy); }
  .day ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tools > div { padding: 26px 20px; }
  .acts .btn { width: 100%; }
  .tape { width: 90px; height: 22px; }
  .tape-tl { left: -6px; }
  .tape-tr { right: -6px; }
  .story.live .story-side { margin: 0 -20px; padding: 12px 20px 16px; }
  /* Schmal: nur „Aufmaßblatt“ im Kopf, sonst würden beide Beschriftungen abgeschnitten */
  .sheet-head { justify-content: center; }
  .sheet-head .lbl + .lbl { display: none; }
  .story.live .steps { margin-top: calc(min(440px, 100vw - 40px) * .75 + 110px); }
}
/* Blaupause: dunkles Navy als Papier, helle Zeichentusche, Kreppband bleibt Orange. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --navy: #dce7f3;
    --graphite: #c9d5e1;
    --muted: #9fb2c5;
    --paper: #0f2236;
    --grid: #1a324d;
    --line: #56708c;
    --line-soft: #27415e;
    --on-ink: #0f2236;
    --sheet: #15304b;
    --foot: #091726;
    --on-navy-muted: #9fb2c5;
    --grid-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M24 .5H.5V24' fill='none' stroke='%231a324d'/%3E%3C/svg%3E");
    --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2 10L10 2' stroke='%23dce7f3' stroke-width='1.6'/%3E%3C/svg%3E");
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23dce7f3' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  }
  .head { border-bottom-color: var(--line); }
  .foot { border-top: 1px solid var(--line-soft); }
  .menu nav { box-shadow: 0 24px 40px -16px rgba(0,0,0,.6), 0 0 0 1px var(--line); }
  .ba-stage, .seq img { box-shadow: 0 0 0 1px var(--line); }
  .form-msg.err { background: #3a1716; color: #ffb4ab; }
  .form-msg.ok { background: #13321c; color: #a6dcb0; }
  .flag { background: #3a2508; color: #ffcf94; }
  .gap { background: #3d3105; color: #ffe08a; }
  [aria-invalid="true"] { border-color: #ff8a80 !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
