/* ═══════════════════════════════════════════════════════════════════
   haus hoch⁵ – Design System
   Monochrom (Schwarz/Offwhite/Grau) + EIN Terrakotta-Akzent.
   Architektur-Studio-Ästhetik: viel Weißraum, große Typo, dünne Linien.
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --ink:      #111214;   /* Schwarz – Text & dunkle Flächen        */
  --ink-2:    #2a2c30;   /* etwas heller                            */
  --paper:    #f7f6f4;   /* Offwhite Hintergrund                    */
  --paper-2:  #efedea;   /* zweite Fläche                           */
  --surface:  #ffffff;
  --muted:    #6c7078;   /* gedämpfter Text                         */
  --line:     #e2e0dc;   /* dünne Trennlinien                       */
  --line-2:   #d3d0cb;
  --clay:     #b5623c;   /* Terrakotta-Akzent                       */
  --clay-d:   #9c4f2f;
  --clay-l:   #c9764f;
  --clay-wash:#f0e2da;   /* helle Akzent-Fläche                     */
  --clay-ink: #9c4f2f;   /* Akzent-Text auf clay-wash               */
  --panel:    #111214;   /* dunkles Panel (bleibt dunkel in beiden Themes) */
  --panel-fg: #f2f1ee;   /* Text auf dunklem Panel                  */
  --head-bg:  rgba(247,246,244,.82);
  --badge-bg: rgba(247,246,244,.94);
  --radius:   14px;
  --radius-s: 9px;
  --shadow:   0 12px 34px rgba(17,18,20,.09);
  --shadow-lg:0 30px 70px rgba(17,18,20,.16);
  --maxw:     1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sp: cubic-bezier(.22,.61,.36,1);
}
/* ── Dunkles Theme (umschaltbar, Standard = hell) ────────────────── */
:root[data-theme="dark"] {
  --ink:      #e8e8e5;
  --ink-2:    #c3c5c9;
  --paper:    #14161a;
  --paper-2:  #1b1e23;
  --surface:  #1e2127;
  --muted:    #949aa3;
  --line:     #2b2f36;
  --line-2:   #3b4048;
  --clay-wash: rgba(201,118,79,.15);
  --clay-ink: #db8d62;
  --panel:    #0e1013;
  --panel-fg: #f2f1ee;
  --head-bg:  rgba(18,20,24,.82);
  --badge-bg: rgba(28,31,37,.94);
  --shadow:   0 12px 34px rgba(0,0,0,.45);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.6);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); color: var(--ink); background: var(--paper);
  line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01","cv05";
  transition: background .3s var(--sp), color .3s var(--sp);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1,h2,h3,h4 { line-height: 1.08; font-weight: 620; letter-spacing: -.02em; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--panel); color: var(--panel-fg); padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }

/* eyebrow / kicker */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--clay); font-weight: 600;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--clay); display: inline-block; }
.kicker.center::after { content: ""; width: 26px; height: 1px; background: var(--clay); display: inline-block; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 13px 24px; border-radius: 999px; font-weight: 560; font-size: .95rem;
  border: 1px solid transparent; transition: transform .16s var(--sp), background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--clay); color: #fff; }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: var(--clay-d); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.on-dark { border-color: rgba(255,255,255,.32); color: #fff; }
.btn-ghost.on-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-back { background: transparent; color: var(--muted); border: 1px solid var(--line-2); }
.btn-back:hover { color: var(--ink); border-color: var(--ink); }

/* ── Header ──────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: var(--head-bg); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: baseline; gap: .1em; font-weight: 680; font-size: 1.32rem; letter-spacing: -.03em; }
.brand b { font-weight: 780; }
.brand sup { color: var(--clay); font-size: .62em; font-weight: 780; top: -.55em; position: relative; }
.brand .brand-sub { display: block; font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: .93rem; color: var(--ink-2); font-weight: 500; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1.5px; background: var(--clay); transition: width .22s var(--sp); }
.nav a:hover::after { width: 100%; }
.nav .btn { padding: 9px 18px; }
/* Button in der Nav: weiße Schrift sicherstellen (sonst überschreibt .nav a die Farbe → grau auf schwarz) + kein Unterstrich */
.nav a.btn-solid { color: var(--paper); }
.nav a.btn-solid:hover { color: #fff; }
.nav a.btn::after { display: none; }
/* Sprach- + Theme-Umschalter */
.hd-ctrl { display: inline-flex; align-items: center; gap: 10px; }
.lang-seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.lang-seg button { padding: 6px 11px; font-size: .76rem; font-weight: 600; letter-spacing: .04em; background: transparent; color: var(--muted); border: 0; transition: .16s; }
.lang-seg button:hover { color: var(--ink); }
.lang-seg button.on { background: var(--ink); color: var(--paper); }
.theme-tog { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: .16s; }
.theme-tog:hover { border-color: var(--ink); }
.theme-tog svg { width: 19px; height: 19px; }
.theme-tog .ic-sun { display: none; }
:root[data-theme="dark"] .theme-tog .ic-sun { display: block; }
:root[data-theme="dark"] .theme-tog .ic-moon { display: none; }
.mnav-ctrl { display: flex; align-items: center; gap: 12px; padding: 16px 0 6px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { content: ""; display: block; width: 19px; height: 1.6px; background: var(--ink); transition: .25s var(--sp); }
.burger span::before { transform: translateY(-6px); } .burger span::after { transform: translateY(4.4px); }
.burger.open span { background: transparent; }
.burger.open span::before { transform: rotate(45deg); } .burger.open span::after { transform: rotate(-45deg) translateY(-1px); }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 74px 0 58px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 680; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--clay); }
.hero-lead { font-size: 1.14rem; color: var(--ink-2); max-width: 46ch; margin-top: 22px; }
.hero-tag { margin-top: 20px; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-tag span { color: var(--ink); }
.hero-cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-stats .num { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; }
.hero-stats .lbl { font-size: .8rem; color: var(--muted); }
/* Architektur-Visual (SVG-artig via CSS) */
.hero-visual { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--panel); }
.hero-visual svg, .hero-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-visual img { transition: transform 1.2s var(--sp); }
.hero-visual:hover img { transform: scale(1.04); }
.hero-badge {
  position: absolute; left: 18px; bottom: 18px; background: var(--badge-bg);
  padding: 12px 16px; border-radius: 11px; box-shadow: var(--shadow); display: flex; gap: 11px; align-items: center;
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 4px var(--clay-wash); }
.hero-badge b { font-size: .9rem; } .hero-badge small { display: block; color: var(--muted); font-size: .74rem; }

/* ── Sections ────────────────────────────────────────────────────── */
section { position: relative; }
.sec { padding: 78px 0; }
.sec-dark { background: var(--panel); color: var(--panel-fg); }
.sec-dark .kicker { color: var(--clay-l); }
.sec-dark .kicker::before, .sec-dark .kicker.center::after { background: var(--clay-l); }
.sec-paper2 { background: var(--paper-2); }
.sec-head { max-width: 640px; margin-bottom: 46px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin-top: 16px; }
.sec-head p { color: var(--muted); margin-top: 16px; font-size: 1.06rem; }
.sec-dark .sec-head p { color: #b9bcc2; }

/* ── Leistungen (Service-Karten) ─────────────────────────────────── */
.serv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.serv {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 30px 26px; transition: transform .3s var(--sp), box-shadow .3s, border-color .3s;
  overflow: hidden;
}
.serv::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--clay); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--sp); }
.serv:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.serv:hover::before { transform: scaleY(1); }
.serv-ico { width: 52px; height: 52px; color: var(--clay); margin-bottom: 20px; }
.serv-ico svg { width: 100%; height: 100%; }
.serv h3 { font-size: 1.32rem; }
.serv .serv-no { position: absolute; top: 24px; right: 28px; font-size: .82rem; color: var(--line-2); font-weight: 600; letter-spacing: .1em; }
.serv p { color: var(--muted); margin-top: 12px; font-size: .96rem; }
.serv ul { list-style: none; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.serv ul li { font-size: .78rem; color: var(--ink-2); background: var(--paper-2); padding: 5px 11px; border-radius: 999px; }
.serv-link { margin-top: 20px; display: inline-flex; align-items: center; gap: 7px; font-weight: 560; font-size: .9rem; color: var(--ink); }
.serv-link svg { width: 15px; transition: transform .2s var(--sp); }
.serv:hover .serv-link { color: var(--clay); } .serv:hover .serv-link svg { transform: translateX(4px); }

/* ── Prozess-Zeitachse ───────────────────────────────────────────── */
.proc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.proc-step { position: relative; padding: 24px 16px 0; }
.proc-step::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: rgba(255,255,255,.16); }
.proc-step .dot { position: absolute; top: 2px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--clay-l); }
.proc-step .p-no { font-size: .74rem; letter-spacing: .18em; color: var(--clay-l); text-transform: uppercase; }
.proc-step h4 { font-size: 1.06rem; margin-top: 8px; }
.proc-step p { color: #b9bcc2; font-size: .86rem; margin-top: 7px; }

/* ── Konfigurator ────────────────────────────────────────────────── */
.konf-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.konf-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.konf-tabs::-webkit-scrollbar { display: none; }
.konf-tab {
  flex: 1 0 auto; padding: 18px 20px; background: var(--paper); border: 0; border-right: 1px solid var(--line);
  color: var(--muted); font-weight: 540; font-size: .92rem; transition: .2s; display: flex; align-items: center; gap: 10px; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.konf-tab:last-child { border-right: 0; }
.konf-tab .t-no { font-size: .74rem; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; }
.konf-tab:hover { color: var(--ink); background: var(--surface); }
.konf-tab.active { background: var(--surface); color: var(--ink); border-bottom-color: var(--clay); }
.konf-tab.active .t-no { background: var(--clay); color: #fff; border-color: var(--clay); }

.konf-body { display: grid; grid-template-columns: 1fr 340px; }
.konf-form { padding: 34px 36px; }
.konf-form .intro { color: var(--muted); font-size: .97rem; margin-bottom: 26px; max-width: 54ch; }
.konf-form h3 { font-size: 1.5rem; }
.field { margin-bottom: 26px; }
.field > label.flabel { display: flex; justify-content: space-between; align-items: baseline; font-weight: 560; font-size: .95rem; margin-bottom: 12px; }
.field .fhint { color: var(--muted); font-weight: 400; font-size: .82rem; }
.field .fval { color: var(--clay); font-weight: 680; font-variant-numeric: tabular-nums; }

/* Chips (Auswahl) */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  font-size: .9rem; color: var(--ink-2); transition: .16s var(--sp); user-select: none;
}
.chip:hover { border-color: var(--ink); }
.chip.sel { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.sel.clay { background: var(--clay); border-color: var(--clay); color: #fff; }

/* Bausteine (Karten-Checkbox) */
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 15px; border: 1px solid var(--line-2);
  border-radius: 12px; background: var(--surface); transition: .16s var(--sp);
}
.opt:hover { border-color: var(--ink); }
.opt.sel { border-color: var(--clay); background: var(--clay-wash); }
.opt .box { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 6px; border: 1.6px solid var(--line-2); margin-top: 1px; display: grid; place-items: center; transition: .16s; }
.opt.sel .box { background: var(--clay); border-color: var(--clay); }
.opt .box svg { width: 12px; color: #fff; opacity: 0; transition: .16s; }
.opt.sel .box svg { opacity: 1; }
.opt .ot { display: block; font-weight: 550; font-size: .93rem; }
.opt .od { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; line-height: 1.35; }

/* Slider */
.rng { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--line-2); outline: none; }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); box-shadow: var(--shadow); cursor: pointer; transition: .15s; }
.rng::-webkit-slider-thumb:hover { background: var(--clay); }
.rng::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); box-shadow: var(--shadow); cursor: pointer; }
.rng-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .74rem; margin-top: 8px; }

/* Zusammenfassung (Sidebar) */
.konf-side { background: var(--panel); color: var(--panel-fg); padding: 34px 30px; display: flex; flex-direction: column; }
.konf-side .s-kick { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--clay-l); }
.konf-side h4 { font-size: 1.2rem; margin: 8px 0 4px; }
.price-tag { margin: 22px 0 6px; }
.price-tag .from { font-size: .8rem; color: #9a9ea6; }
.price-tag .amount { font-size: 2.4rem; font-weight: 720; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price-tag .amount small { font-size: 1rem; color: #b9bcc2; font-weight: 500; }
.price-note { font-size: .78rem; color: #9a9ea6; line-height: 1.5; }
.s-list { list-style: none; margin: 22px 0; border-top: 1px solid rgba(255,255,255,.13); padding-top: 18px; flex: 1; }
.s-list li { display: flex; justify-content: space-between; gap: 14px; font-size: .87rem; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.s-list li span:first-child { color: #b9bcc2; } .s-list li span:last-child { text-align: right; font-weight: 540; }
.s-list li.empty { color: #82868e; justify-content: center; border: 0; }
.konf-side .btn-clay { width: 100%; margin-bottom: 10px; }
.konf-side .s-contact { text-align: center; font-size: .8rem; color: #9a9ea6; }
.konf-side .s-contact a { color: #fff; border-bottom: 1px solid var(--clay); }

/* Anfrage-Formular (im Konfigurator) */
.konf-lead { padding: 34px 36px; border-top: 1px solid var(--line); display: none; }
.konf-lead.show { display: block; }
.konf-lead h4 { font-size: 1.25rem; margin-bottom: 6px; }
.konf-lead p.sub { color: var(--muted); margin-bottom: 22px; font-size: .95rem; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inp { display: flex; flex-direction: column; gap: 6px; }
.inp label { font-size: .82rem; color: var(--ink-2); font-weight: 520; }
.inp input, .inp textarea { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); font: inherit; font-size: .93rem; transition: .16s; }
.inp input:focus, .inp textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-wash); }
.inp.full { grid-column: 1 / -1; }
.lead-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.lead-done { display: none; text-align: center; padding: 20px; }
.lead-done.show { display: block; }
.lead-done .chk { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: var(--clay-wash); color: var(--clay); display: grid; place-items: center; }
.lead-done .chk svg { width: 30px; }

/* Honeypot (unsichtbar für Menschen) */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Lead-Blöcke: Checkliste + Upload */
.lead-block { margin-top: 22px; }
.lb-title { font-size: .95rem; font-weight: 600; }
.lb-hint { color: var(--muted); font-size: .84rem; margin: 4px 0 12px; }
.chklist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chk-item {
  display: flex; gap: 10px; align-items: flex-start; text-align: left;
  padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface);
  font-size: .86rem; color: var(--ink-2); transition: .15s var(--sp); line-height: 1.35;
}
.chk-item:hover { border-color: var(--ink); }
.chk-item.on { border-color: var(--clay); background: var(--clay-wash); color: var(--ink); }
.chk-item .cbox { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 5px; border: 1.6px solid var(--line-2); margin-top: 1px; display: grid; place-items: center; transition: .15s; }
.chk-item.on .cbox { background: var(--clay); border-color: var(--clay); }
.chk-item .cbox svg { width: 11px; color: #fff; opacity: 0; transition: .15s; }
.chk-item.on .cbox svg { opacity: 1; }

.drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 26px 20px; border: 1.6px dashed var(--line-2); border-radius: 12px; background: var(--paper);
  cursor: pointer; transition: .16s var(--sp);
}
.drop:hover { border-color: var(--clay); background: var(--clay-wash); }
.drop.over { border-color: var(--clay); background: var(--clay-wash); transform: scale(1.005); }
.drop .drop-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--clay); display: grid; place-items: center; margin-bottom: 6px; box-shadow: var(--shadow); }
.drop .drop-ic svg { width: 20px; }
.drop b { font-size: .92rem; }
.drop small { color: var(--muted); font-size: .78rem; }

.filelist { list-style: none; margin: 12px 0 0; display: flex; flex-direction: column; gap: 7px; }
.filelist li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: .86rem; }
.filelist .fn { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.filelist .fs { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.filelist .fx { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: 1.05rem; line-height: 1; display: grid; place-items: center; transition: .15s; }
.filelist .fx:hover { border-color: var(--clay); color: var(--clay); }

.lead-error { margin-top: 16px; padding: 12px 14px; background: var(--clay-wash); border-radius: 10px; color: var(--clay-ink); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lead-mailto { border: 1px solid var(--clay); color: var(--clay-ink); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: .84rem; font-weight: 540; }
.lead-mailto:hover { background: var(--clay); color: #fff; }

/* ── Wizard ──────────────────────────────────────────────────────── */
.wiz { display: flex; flex-direction: column; }
.wiz-head { padding: 22px 34px 0; }
.wiz-dots { display: flex; gap: 6px; }
.wiz-dot { flex: 1; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line-2); cursor: pointer; transition: background .2s, transform .15s; }
.wiz-dot:hover { transform: scaleY(1.35); }
.wiz-dot.done { background: var(--clay-l); }
.wiz-dot.cur { background: var(--clay); }
.wiz-count { margin-top: 12px; font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
.wiz-count b { color: var(--ink); font-weight: 620; }
.wiz-body { padding: 10px 34px 8px; min-height: 320px; }
.wiz-step { animation: wizin .32s var(--sp); }
@keyframes wizin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wiz-title { font-size: clamp(1.35rem, 2.6vw, 1.85rem); margin: 14px 0 6px; }
.wiz-hint { color: var(--muted); font-size: .95rem; margin-bottom: 22px; max-width: 60ch; }
.wiz-step .field { margin-bottom: 6px; }
.wiz-step .chips { gap: 11px; }
.wiz-step .chip { padding: 12px 20px; font-size: .97rem; }
.wiz-step .opts { grid-template-columns: 1fr 1fr; gap: 12px; }
.fval-big { font-size: 2.4rem; font-weight: 720; letter-spacing: -.03em; color: var(--clay); font-variant-numeric: tabular-nums; margin: 6px 0 18px; }
.fval-edit { display: inline-flex; align-items: baseline; gap: 6px; margin: 6px 0 18px; }
.fnum {
  min-width: 2ch; max-width: 9ch; font-size: 2.4rem; font-weight: 720; letter-spacing: -.03em; color: var(--clay);
  font-variant-numeric: tabular-nums; border: 0; border-bottom: 2px solid var(--line-2); background: transparent;
  padding: 0 2px 2px; text-align: left; -moz-appearance: textfield; transition: border-color .16s;
}
.fnum:hover { border-bottom-color: var(--line); }
.fnum:focus { outline: none; border-bottom-color: var(--clay); }
.fnum::-webkit-outer-spin-button, .fnum::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fnum-unit { font-size: 1.25rem; font-weight: 600; color: var(--clay); }
@media (max-width: 560px) { .fnum { font-size: 2rem; } .fnum-unit { font-size: 1.05rem; } }
.plot-suggest { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 11px 16px; border: 1px solid var(--clay); border-radius: 999px; background: var(--clay-wash); color: var(--clay-ink); font-size: .9rem; font-weight: 500; transition: .16s var(--sp); }
.plot-suggest:hover { background: var(--clay); color: #fff; }
.plot-suggest b { font-weight: 700; }
.plot-suggest .ps-ic { font-size: 1rem; }

.wiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 34px; border-top: 1px solid var(--line); background: var(--paper); }
.wiz-price { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.wiz-price b { color: var(--ink); font-weight: 680; font-variant-numeric: tabular-nums; }
.wiz-price.muted { color: var(--line-2); }
.nav-spacer { flex: 0 0 auto; width: 1px; }
.wiz-nav .btn-back, .wiz-nav .btn-clay { flex: 0 0 auto; }

/* ── Karten-Schritt ──────────────────────────────────────────────── */
.map-tools { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.map-search { display: flex; gap: 8px; flex: 1; min-width: 220px; }
.map-search input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; font-size: .93rem; }
.map-search .btn { flex: 0 0 auto; }
.map-search input:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-wash); }
.hh5-map { position: relative; z-index: 0; height: 380px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.hh5-map .leaflet-container { font: inherit; background: var(--paper-2); }
.hh5-map .leaflet-overlay-pane path { transition: fill-opacity .7s ease; filter: drop-shadow(0 1px 2px rgba(17,18,20,.35)); }
.map-readout { margin-top: 12px; font-size: .9rem; min-height: 22px; }
.map-readout .mr-ok { color: var(--ink); } .map-readout .mr-ok b { color: var(--clay-d); }
.map-readout .mr-none { color: var(--muted); }
.map-readout .mr-load { color: var(--clay); }

/* ── Zusammenfassung ─────────────────────────────────────────────── */
.summary .sum-price { background: var(--panel); color: var(--panel-fg); border-radius: 14px; padding: 22px 26px; margin-bottom: 20px; }
.summary .sp-from { font-size: .82rem; color: #b9bcc2; }
.summary .sp-amt { font-size: 2.2rem; font-weight: 720; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sum-list { list-style: none; margin: 0 0 18px; border-top: 1px solid var(--line); }
.sum-list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.sum-list li span:first-child { color: var(--muted); } .sum-list li span:last-child { font-weight: 540; text-align: right; }
.sum-note { color: var(--muted); font-size: .9rem; }
.sum-foot { color: var(--muted); font-size: .78rem; margin-top: 10px; line-height: 1.5; padding-top: 10px; border-top: 1px dashed var(--line); }

/* Anfrage-Schritt nutzt die bestehenden .lead-* Styles */
.lead-step .lead-grid { margin-top: 4px; }
.lead-step .lead-block:first-of-type { margin-top: 24px; }

@media (max-width: 640px) {
  .wiz-head { padding: 18px 22px 0; }
  .wiz-body { padding: 8px 22px; min-height: 280px; }
  .wiz-nav { padding: 14px 22px; gap: 8px; }
  .wiz-nav .btn { padding: 11px 16px; font-size: .9rem; }
  .wiz-price { font-size: .8rem; }
  .wiz-step .opts { grid-template-columns: 1fr; }
  .hh5-map { height: 320px; }
  .fval-big { font-size: 2rem; }
}

/* ── Über uns ────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-visual { aspect-ratio: 5/4; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--panel); }
.about-visual svg, .about-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about p { color: var(--muted); margin-top: 16px; font-size: 1.04rem; }
.about .feat { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 32px; }
.about .feat .f h4 { font-size: 1.06rem; display: flex; align-items: center; gap: 9px; }
.about .feat .f h4 svg { width: 20px; color: var(--clay); }
.about .feat .f p { margin-top: 6px; font-size: .9rem; }

/* ── Team / Gründer ──────────────────────────────────────────────── */
.team-wrap { margin-top: 64px; }
.team-lead { color: var(--muted); font-size: 1rem; text-align: center; max-width: 46ch; margin: 0 auto 30px; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tm { display: flex; flex-direction: column; text-align: left; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; font: inherit; color: inherit; transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s, border-color .28s; }
.tm:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--clay); }
.tm:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.tm-photo { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--paper-2); }
.tm-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.tm:hover .tm-photo img { transform: scale(1.04); }
.tm-meta { padding: 18px 20px 20px; }
.tm-meta b { font-size: 1.12rem; display: block; letter-spacing: -.01em; }
.tm-meta small { display: block; color: var(--muted); font-size: .84rem; margin-top: 4px; }
.tm-more { display: inline-block; margin-top: 12px; font-size: .82rem; font-weight: 600; color: var(--clay-ink); opacity: .85; transition: opacity .25s, transform .25s; }
.tm:hover .tm-more { opacity: 1; transform: translateX(3px); }

/* ── Gründer-Vita Modal ──────────────────────────────────────────── */
.fmodal[hidden] { display: none; }
.fmodal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 22px; }
.fmodal-back { position: absolute; inset: 0; background: rgba(17,18,20,.62); backdrop-filter: blur(4px); animation: fmfade .25s ease; }
.fmodal-card { position: relative; z-index: 1; width: min(680px, 100%); max-height: min(88vh, 720px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); animation: fmpop .3s cubic-bezier(.2,.7,.2,1); }
.fmodal-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s; }
.fmodal-x:hover { background: var(--paper-2); transform: rotate(90deg); }
.fmodal-body { display: grid; grid-template-columns: 220px 1fr; gap: 0; }
.fmodal-photo { aspect-ratio: 4/5; background: var(--paper-2); }
.fmodal-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; display: block; }
.fmodal-txt { padding: 30px 30px 32px; }
.fmodal-txt .kicker { color: var(--clay-ink); }
.fmodal-txt h3 { font-size: 1.5rem; margin: 12px 0 3px; letter-spacing: -.02em; }
.fmodal-role { color: var(--muted); font-size: .92rem; font-weight: 600; }
.fmodal-txt p { color: var(--ink-2); font-size: .96rem; line-height: 1.62; margin-top: 15px; }
.fmodal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.fmodal-tags span { font-size: .76rem; font-weight: 600; color: var(--clay-ink); background: var(--clay-wash); border-radius: 999px; padding: 5px 12px; }
@keyframes fmfade { from { opacity: 0; } }
@keyframes fmpop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
body.fmodal-open { overflow: hidden; }
@media (max-width: 760px) {
  .team { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
  .fmodal-body { grid-template-columns: 1fr; }
  .fmodal-photo { aspect-ratio: 16/10; }
  .fmodal-txt { padding: 24px 22px 26px; }
}

/* ── Partner ─────────────────────────────────────────────────────── */
.partners { display: flex; flex-wrap: wrap; gap: 26px 48px; align-items: center; justify-content: center; margin-top: 40px; }
.p-logo { height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.p-logo img {
  max-height: 48px; max-width: 160px; width: auto; height: auto; object-fit: contain; display: block;
  filter: grayscale(1); opacity: .6;
  transition: filter .3s var(--sp), opacity .3s var(--sp), transform .3s var(--sp);
}
.p-logo:hover img { filter: none; opacity: 1; transform: translateY(-2px); }
/* Dark-Mode: dunkle Logos aufhellen, damit sie sichtbar bleiben */
:root[data-theme="dark"] .p-logo img { filter: grayscale(1) invert(1) brightness(1.9) opacity(.72); }
:root[data-theme="dark"] .p-logo:hover img { filter: none; opacity: 1; }
@media (max-width: 560px) { .partners { gap: 22px 32px; } .p-logo { height: 38px; } .p-logo img { max-height: 38px; max-width: 130px; } }

/* ── Kontakt ─────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.c-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.c-row:last-child { border-bottom: 0; }
.c-row .ci { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 11px; background: var(--paper-2); color: var(--clay); display: grid; place-items: center; }
.c-row .ci svg { width: 20px; }
.c-row .cl { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.c-row .cv { font-size: 1.02rem; font-weight: 540; }
.c-row .cv a:hover { color: var(--clay); }

/* ── Footer ──────────────────────────────────────────────────────── */
.foot { background: var(--panel); color: var(--panel-fg); padding: 56px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.foot .brand { color: #fff; }
.foot p { color: #9a9ea6; margin-top: 14px; font-size: .92rem; max-width: 34ch; }
.foot h5 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #82868e; margin-bottom: 14px; }
.foot a.fl { display: block; color: #c9ccd1; font-size: .93rem; padding: 5px 0; }
.foot a.fl:hover { color: var(--clay-l); }
.foot-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #82868e; font-size: .84rem; }
.foot-bar a:hover { color: #fff; }

/* ── Scroll-Reveal ───────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--sp), transform .7s var(--sp); }
.reveal.in { opacity: 1; transform: none; }

/* ── Mobile-Nav-Panel ────────────────────────────────────────────── */
.mnav { position: fixed; inset: 72px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s var(--sp); z-index: 99; padding: 14px 22px 22px; box-shadow: var(--shadow); }
.mnav.open { transform: none; }
.mnav a { display: block; padding: 13px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.mnav .btn { width: 100%; margin-top: 14px; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .konf-body { grid-template-columns: 1fr; }
  /* Mobil/Tablet: erst konfigurieren (Formular), dann Ergebnis (Preis + CTA) */
  .konf-form { order: 1; }
  .konf-side { order: 2; }
  .s-list { flex: none; }
}
/* Mobil: Tabs als 2×2-Raster statt versteckter Horizontal-Scroll */
@media (max-width: 640px) {
  .konf-tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .konf-tab {
    flex: none; white-space: normal; text-align: left; align-items: flex-start;
    padding: 13px 14px; font-size: .84rem; line-height: 1.2;
    border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  }
  .konf-tab:nth-child(2n) { border-right: 0; }
  .konf-tab:nth-last-child(-n+2) { border-bottom: 0; }
  .konf-tab.active { border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--clay); }
  .konf-tab:nth-child(2n).active { box-shadow: inset 3px 0 0 var(--clay); }
  .konf-tab .t-no { flex: 0 0 auto; }
}
@media (max-width: 860px) {
  .nav { display: none; } .burger { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { max-width: 440px; }
  .serv-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .proc { grid-template-columns: 1fr 1fr; gap: 20px 10px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .sec { padding: 56px 0; }
  .hero { padding: 46px 0 40px; }
  .konf-form, .konf-lead { padding: 26px 22px; }
  .opts, .lead-grid, .about .feat, .chklist { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .proc { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
