/* =========================================================
   Fensterkant – Stylesheet (Kant Projekt GmbH)
   Hanseatisch: Marineblau, Papierweiß, Backsteinrot als Akzent
   ========================================================= */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --navy-900: #0d1c35;
  --navy: #14284a;
  --navy-700: #23395f;
  --navy-100: #dfe4ec;
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --white: #fffefb;
  --ink: #1a1f27;
  --ink-2: #4a515c;
  --ink-3: #7a808a;
  --line: #d3cdc0;
  --line-strong: #b7af9f;
  --brick: #a33a24;
  --brick-dark: #86301d;

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
sub, sup { font-size: 0.7em; line-height: 0; }
abbr[title] { text-decoration: none; color: var(--brick); }
::selection { background: var(--navy); color: var(--white); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; }
.muted { color: var(--ink-3); font-weight: 400; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  font: 500 15px/1 var(--sans); letter-spacing: 0.02em;
  color: var(--white); background: var(--navy);
  border: 1px solid var(--navy); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--navy-900); border-color: var(--navy-900); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--accent { background: var(--brick); border-color: var(--brick); }
.btn--accent:hover { background: var(--brick-dark); border-color: var(--brick-dark); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--paper); border-color: var(--navy); color: var(--navy); }
.btn--light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--light:hover { background: var(--paper); border-color: var(--paper); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow {
  margin-top: auto; padding: 0; background: none; border: 0; cursor: pointer;
  font: 500 14px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase;
  color: var(--navy); border-bottom: 1px solid var(--navy); padding-bottom: 4px; align-self: flex-start;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--brick); border-color: var(--brick); }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--navy-900); color: #c6cedb; font-size: 13px; letter-spacing: .02em; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar__sep { margin: 0 10px; opacity: .4; }

.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--navy); }
.brand__logo { height: 46px; width: auto; }

.nav__list { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__list a:not(.btn) { text-decoration: none; font-size: 15px; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav__list a:not(.btn):hover { color: var(--navy); border-bottom-color: var(--navy); }
.nav__toggle, .nav__close, .nav__panel-head, .nav__panel-foot, .nav__backdrop, .nav__no, .nav__mobile { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }

/* Fotoband: Backsteinhaus mit Sprossenfenstern, links abgedunkelt für den Text */
.hero__band {
  position: relative; color: #dfe5ee;
  background-color: var(--navy-900);
  background-image:
    linear-gradient(90deg, rgba(13,28,53,.95) 0%, rgba(13,28,53,.88) 40%, rgba(13,28,53,.6) 60%, rgba(13,28,53,.12) 86%, rgba(13,28,53,.04) 100%),
    url("../img/hero-haus-1920.jpg");
  background-image:
    linear-gradient(90deg, rgba(13,28,53,.95) 0%, rgba(13,28,53,.88) 40%, rgba(13,28,53,.6) 60%, rgba(13,28,53,.12) 86%, rgba(13,28,53,.04) 100%),
    image-set(url("../img/hero-haus-1920.webp") type("image/webp"), url("../img/hero-haus-1920.jpg") type("image/jpeg"));
  background-size: cover; background-position: 70% 55%;
}
.hero__band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brick); }
.hero__band-inner { padding-block: clamp(30px, 3.6vw, 52px) clamp(100px, 9vw, 124px); }
.hero__band-inner > * { max-width: 640px; }
.hero__band-inner > .hero__title, .hero__band-inner > .hero__facts { max-width: 820px; }
.eyebrow { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--brick); font-weight: 500; margin-bottom: 16px; }
.hero__band .eyebrow { color: #e5b9ac; }
.hero__title { font-size: clamp(30px, 3.4vw, 46px); color: var(--white); text-shadow: 0 1px 18px rgba(13,28,53,.45); font-weight: 500; text-wrap: balance; }
.hero__title em { font-style: italic; font-weight: 400; color: #c9d3e2; }
.hero__lead { margin-top: 14px; font-size: 17px; color: #dfe5ee; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; padding: 0; margin: 16px 0 0; font-size: 14.5px; color: #c6cedb; }
.hero__facts li { position: relative; padding-left: 16px; }
.hero__facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: #d9826b; }
.hero__facts strong { color: var(--white); font-weight: 600; }

/* Konfigurator überlappt das Fotoband */
.hero__form { position: relative; margin-top: clamp(-96px, -7vw, -72px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero__form .funnel__form { box-shadow: 0 18px 40px rgba(13,28,53,.16); }
.hero__form .summary__inner { box-shadow: 0 18px 40px rgba(13,28,53,.22); }
.funnel__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin-bottom: 16px; }
.funnel__title h2 { font-size: clamp(21px, 2vw, 25px); color: var(--navy); }
.funnel__title span { font-size: 13px; color: var(--ink-3); }

.hero__drawing { margin: 0; background: var(--white); border: 1px solid var(--line); padding: 28px 28px 20px; color: var(--navy); position: relative; }
.hero__drawing::before { content: "Ansicht von innen · M 1:20"; position: absolute; top: 10px; left: 14px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hero__drawing svg { width: 100%; height: auto; }
.hero__drawing figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hero__drawing figcaption span:first-child { color: var(--navy); font-weight: 600; }

/* technische Zeichnungen */
.dwg__frame { fill: none; stroke: var(--navy); stroke-width: 2.4; }
.dwg__sash { fill: none; stroke: var(--navy); stroke-width: 1.4; }
.dwg__thin { fill: none; stroke: var(--navy); stroke-width: .9; }
.dwg__glass { fill: #e9eef4; stroke: var(--navy); stroke-width: .6; }
.dwg__open { fill: none; stroke: var(--navy); stroke-width: .9; }
.dwg__open--tilt { stroke-dasharray: 5 4; }
.dwg__arrow { fill: none; stroke: var(--brick); stroke-width: 1.6; }
.dwg__handle { fill: var(--navy); }
.dwg__dim { fill: none; stroke: var(--brick); stroke-width: .9; color: var(--brick); }
.dwg__ext { fill: none; stroke: var(--ink-3); stroke-width: .6; }
.dwg__txt { font: 500 12px var(--sans); fill: var(--navy); letter-spacing: .04em; }
.dwg__txt--sm { font-size: 14px; fill: var(--ink-3); }

/* ---------- Strip ---------- */
.strip { background: var(--navy); color: #d5dbe5; }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__grid > div { display: flex; gap: 14px; padding: 30px 24px 30px 0; }
.strip__grid > div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.strip__num { font: italic 400 22px/1 var(--serif); color: #e5b9ac; flex: none; width: 28px; }
.strip p { font-size: 14px; line-height: 1.5; }
.strip strong { display: block; color: var(--white); font: 500 17px/1.3 var(--serif); margin-bottom: 4px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--navy { background: var(--navy); color: #d5dbe5; }
.section__head { display: grid; grid-template-columns: 90px 1fr; gap: 24px; margin-bottom: clamp(36px, 5vw, 60px); padding-top: 18px; border-top: 2px solid var(--navy); max-width: 920px; }
.section__head--light { border-top-color: rgba(255,255,255,.6); }
.section__no { font: 400 15px/1 var(--sans); letter-spacing: .14em; color: var(--brick); padding-top: 10px; font-variant-numeric: tabular-nums; }
.section__head--light .section__no { color: #e5b9ac; }
.section__head h2 { font-size: clamp(30px, 3.6vw, 44px); color: var(--navy); }
.section__head--light h2 { color: var(--white); }
.section__head p { margin-top: 14px; max-width: 40em; color: var(--ink-2); font-size: 17.5px; }
.section__head--light p { color: #c6cedb; }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.product { display: flex; flex-direction: column; gap: 12px; padding: 32px 30px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); transition: background .2s; }
.product:hover { background: var(--paper); }
.product__dwg { height: 120px; width: auto; margin-bottom: 14px; color: var(--navy); }
.product h3 { font-size: 23px; color: var(--navy); }
.product p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 12px; }

/* ---------- Profil-Intro mit Zeichnung ---------- */
.profile__intro { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; margin-bottom: clamp(36px, 5vw, 56px); }
.profile__intro .section__head { margin-bottom: 0; }
.profile__drawing { max-width: 340px; width: 100%; }

/* ---------- Spec table ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 860px; font-variant-numeric: tabular-nums; }
.spec th, .spec td { text-align: left; padding: 14px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec thead th { font: 500 12px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); border-bottom: 1px solid var(--line-strong); }
.spec tbody th { font: 500 17px/1.3 var(--serif); color: var(--navy); min-width: 190px; }
.spec tbody tr:last-child > * { border-bottom: 0; }
.spec tbody tr:hover { background: #faf8f3; }
.spec .is-recommended { background: #f7f0e4; }
.spec .is-recommended th { box-shadow: inset 3px 0 0 var(--brick); }
.tag { display: inline-block; margin: 6px 0 0; padding: 2px 7px; font: 500 10.5px/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--brick); border: 1px solid var(--brick); vertical-align: 2px; }
.price { font-weight: 600; color: var(--navy); letter-spacing: .08em; }
.footnote { margin-top: 14px; font-size: 13px; color: var(--ink-3); max-width: 60em; }

.glossary { margin-top: 48px; }
.glossary dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 0; }
.glossary dt { font: 500 18px/1.3 var(--serif); color: var(--navy); padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line-strong); }
.glossary dd { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- Columns ---------- */
.columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.col h3 { font-size: 22px; color: var(--navy); margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px; }
.col__no { font: italic 400 18px/1 var(--serif); color: var(--brick); }
.col p { color: var(--ink-2); font-size: 15.5px; }

.quote { margin-top: clamp(48px, 7vw, 88px); padding: 36px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 90px 1fr; gap: 24px; }
.quote p { grid-column: 2; font: italic 400 clamp(22px, 2.6vw, 32px)/1.35 var(--serif); color: var(--navy); max-width: 30em; }
.quote span { grid-column: 2; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.2); }
.steps li { padding: 28px 22px 8px 0; position: relative; }
.steps li + li { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.14); }
.steps span { font: 400 42px/1 var(--serif); color: #e5b9ac; display: block; margin-bottom: 18px; }
.steps h3 { font-size: 21px; color: var(--white); margin-bottom: 8px; }
.steps p { font-size: 14.5px; color: #c6cedb; }

/* ---------- Funnel ---------- */
.funnel { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.funnel__form { background: var(--white); border: 1px solid var(--line); padding: clamp(20px, 3vw, 36px); }

.progress { display: grid; grid-template-columns: repeat(7, 1fr); list-style: none; margin: 0 0 26px; padding: 0; counter-reset: p; }
.progress li { counter-increment: p; position: relative; padding-top: 12px; border-top: 3px solid var(--paper-2); font-size: 12px; color: var(--ink-3); letter-spacing: .02em; }
.progress li::before { content: counter(p, decimal-leading-zero); display: block; font-variant-numeric: tabular-nums; font-weight: 600; margin-bottom: 2px; }
.progress li + li { margin-left: 4px; }
.progress li.is-done { border-top-color: var(--navy); color: var(--ink-2); }
.progress li.is-active { border-top-color: var(--brick); color: var(--navy); font-weight: 500; }

.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step legend { padding: 0; margin-bottom: 20px; font: 500 clamp(24px, 2.6vw, 30px)/1.2 var(--serif); color: var(--navy); }
.step__count { display: block; font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brick); margin-bottom: 12px; }

.field-group { margin-bottom: 26px; }
.field-label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); margin-bottom: 9px; }
.hint { font-size: 13px; color: var(--ink-3); margin-top: 10px; }

.choices { display: grid; gap: 10px; }
.choices--3 { grid-template-columns: repeat(3, 1fr); }
.choice { position: relative; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__body { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 18px 16px 44px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); transition: border-color .15s, background .15s, box-shadow .15s; position: relative; }
.choice--compact .choice__body { padding-top: 14px; padding-bottom: 13px; }
.choice__body::before { content: ""; position: absolute; left: 16px; top: 19px; width: 16px; height: 16px; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.choice--compact .choice__body::before { top: 15px; }
.choice__body strong { font-weight: 600; font-size: 15.5px; color: var(--navy); line-height: 1.3; }
.choice__body small { font-size: 13px; color: var(--ink-3); line-height: 1.35; }
.choice:hover .choice__body { border-color: var(--navy); }
.choice input:checked + .choice__body { border-color: var(--navy); background: #f3f5f9; box-shadow: inset 0 0 0 1px var(--navy); }
.choice input:checked + .choice__body::before { border-color: var(--navy); box-shadow: inset 0 0 0 4px var(--white); background: var(--navy); }
.choice input:focus-visible + .choice__body { outline: 2px solid var(--brick); outline-offset: 2px; }

.segmented { display: flex; flex-wrap: wrap; border: 1px solid var(--line-strong); border-radius: var(--radius); width: fit-content; max-width: 100%; }
.segmented label { position: relative; cursor: pointer; }
.segmented label + label { border-left: 1px solid var(--line-strong); }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; padding: 12px 20px; font-size: 14.5px; font-weight: 500; color: var(--navy); font-variant-numeric: tabular-nums; transition: background .15s, color .15s; }
.segmented label:hover span { background: var(--paper); }
.segmented input:checked + span { background: var(--navy); color: var(--white); }
.segmented input:focus-visible + span { outline: 2px solid var(--brick); outline-offset: -2px; }

.checks { display: grid; gap: 10px 24px; margin-bottom: 22px; }
.checks--2 { grid-template-columns: 1fr 1fr; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink); cursor: pointer; line-height: 1.45; }
.check input { appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1.5px solid var(--line-strong); border-radius: 1px; background: var(--white); cursor: pointer; display: grid; place-content: center; transition: background .15s, border-color .15s; }
.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--white); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--navy); border-color: var(--navy); }
.check input:checked::after { opacity: 1; }
.check--inline { margin: 4px 0 18px; color: var(--ink-2); font-size: 14.5px; }
.check--consent { margin: 20px 0 4px; font-size: 14px; color: var(--ink-2); }
.check--consent a { color: var(--navy); }

.field { display: block; margin-bottom: 18px; }
.field input, .field select, .field textarea, .positions input, .positions select {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select, .positions select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314284a' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field input:focus, .field select:focus, .field textarea:focus, .positions input:focus, .positions select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,40,74,.12); }
.field.is-invalid input, .field.is-invalid select, .is-invalid .choice__body, .is-invalid .segmented { border-color: var(--brick); }
.check.is-invalid input { border-color: var(--brick); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: 140px 1fr 1fr; gap: 0 18px; }
.grid-plz { display: grid; grid-template-columns: 140px 1fr 1fr; gap: 0 18px; }

.positions__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.positions__head .check--inline { margin: 0 0 10px; }
.positions { display: grid; gap: 8px; margin-bottom: 12px; }
.positions__row { display: grid; grid-template-columns: 44px 1fr 1fr 74px 1.7fr 36px; gap: 8px; align-items: center; }
.positions__row--labels span { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.positions__no { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; font-size: 14px; }
.positions input { font-variant-numeric: tabular-nums; padding: 10px 10px; }
.positions__remove { width: 36px; height: 36px; border: 1px solid var(--line); background: var(--white); color: var(--ink-3); font-size: 20px; line-height: 1; cursor: pointer; border-radius: var(--radius); }
.positions__remove:hover { border-color: var(--brick); color: var(--brick); }
.positions.is-disabled { opacity: .45; pointer-events: none; }

/* Hinweis auf den nächsten offenen Punkt */
@keyframes next-pulse { 0% { box-shadow: 0 0 0 0 rgba(163,58,36,.0); } 25% { box-shadow: 0 0 0 6px rgba(163,58,36,.18); } 100% { box-shadow: 0 0 0 0 rgba(163,58,36,0); } }
.is-next { animation: next-pulse 1.5s ease-out; border-radius: var(--radius); }
.is-next > .field-label, .is-next .field-label:first-child { color: var(--brick); transition: color .3s; }
@media (prefers-reduced-motion: reduce) { .is-next { animation: none; outline: 2px solid rgba(163,58,36,.35); outline-offset: 4px; } }

.error { margin-top: 6px; padding: 10px 14px; font-size: 14px; color: var(--brick-dark); background: #f8ebe6; border-left: 3px solid var(--brick); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.funnel__nav { display: flex; align-items: center; gap: 14px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.funnel__note { margin-right: auto; font-size: 13.5px; color: var(--ink-3); }
[data-prev]:not([hidden]) + .funnel__note { margin-left: auto; margin-right: 0; }
.funnel__nav [data-next], .funnel__nav [data-submit] { margin-left: 0; }

.done { padding: 12px 0 8px; color: var(--navy); }
.done svg { width: 48px; height: 48px; color: var(--navy); margin-bottom: 22px; }
.done h3 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 12px; }
.done p { color: var(--ink-2); max-width: 36em; }
.done__ref { margin-top: 18px; font-size: 14px; font-variant-numeric: tabular-nums; }
.done__mail { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 16px 18px; background: var(--paper); border-left: 3px solid var(--navy); }
.done__mail svg { width: 22px; height: 22px; flex: none; color: var(--navy); margin: 1px 0 0; }
.done__mail p { font-size: 14.5px; }
.done__mail strong { color: var(--navy); overflow-wrap: anywhere; }
.funnel__form.is-done .progress, .funnel__form.is-done .funnel__nav { display: none; }

/* Zusammenfassung */
.summary { position: sticky; top: 100px; }
.summary__inner { background: var(--navy); color: #d5dbe5; padding: 26px 26px 24px; }
.summary__title { font: 500 20px/1.2 var(--serif); color: var(--white); padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.2); }
.summary__list { margin: 0; }
.summary__list div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 13.5px; }
.summary__list dt { color: #95a2b8; }
.summary__list dd { margin: 0; color: var(--white); word-break: break-word; }
.summary__list dd.is-empty { color: #6e7d97; }
.summary__contact { margin-top: 20px; font-size: 13.5px; }
.summary__contact p { font: italic 400 16px/1.3 var(--serif); color: #e5b9ac; margin-bottom: 4px; }
.summary__contact a { display: block; font: 500 21px/1.3 var(--serif); color: var(--white); text-decoration: none; }
.summary__contact span { color: #95a2b8; }

/* ---------- FAQ ---------- */
.faq__list { border-top: 1px solid var(--line); max-width: 920px; margin-left: 114px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font: 500 20px/1.35 var(--serif); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy); transform: translateY(-75%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq summary:hover { color: var(--brick); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 46em; }

/* ---------- CTA ---------- */
.cta { background: var(--brick); color: #f6dcd4; }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(28px, 3.2vw, 38px); color: var(--white); margin-bottom: 10px; }
.cta p { max-width: 36em; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn--light { color: var(--brick-dark); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #a9b4c6; font-size: 14.5px; padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.footer__logo { width: 220px; height: auto; margin: 0 0 20px; }
.footer__operator { font-size: 13.5px; line-height: 1.5; margin-bottom: 16px; }
.footer__operator strong { color: var(--white); font-weight: 500; }
.footer__head { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.footer address { font-style: normal; line-height: 1.8; }
.footer ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.footer a { color: #a9b4c6; text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }

/* ---------- Mobile Sticky-CTA ---------- */
.mobile-cta { display: none; }

/* ---------- Rechtliche Seiten ---------- */
.legal { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 96px) 0; }
.legal__inner { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 4.4vw, 52px); color: var(--navy); margin-bottom: 28px; }
.legal__lead { font-size: 18px; color: var(--ink-2); margin-bottom: 12px; max-width: 40em; }
.legal section { padding: 26px 0; border-top: 1px solid var(--line); }
.legal section:first-of-type { margin-top: 28px; }
.legal h2 { font-size: 21px; color: var(--navy); margin-bottom: 10px; }
.legal p { color: var(--ink-2); max-width: 44em; }
.legal p + p { margin-top: 10px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--navy); }
.legal__date { margin-top: 28px; font-size: 13px; color: var(--ink-3) !important; }
.todo { background: #f8ebe6; color: var(--brick-dark); padding: 0 4px; font-size: .92em; }
.link-arrow--back { margin: 0; align-self: center; text-decoration: none; }
.link-arrow--back::after { content: ""; }
.link-arrow--back::before { content: "← "; }
.footer--slim { padding-top: 0; }
.footer--slim .footer__bottom { border-top: 0; padding-top: 24px; }
.footer--slim .footer__bottom span:last-child a { margin: 0 4px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav__list { gap: 22px; }
  .funnel { grid-template-columns: 1fr; }
  .summary { position: static; }
  .columns { grid-template-columns: 1fr 1fr; }
  .glossary dl { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li:nth-child(4) { padding-left: 0; border-left: 0; }
}

@media (max-width: 900px) {
  .profile__intro { grid-template-columns: 1fr; }
  .hero__band {
    background-image:
      linear-gradient(180deg, rgba(13,28,53,.72) 0%, rgba(13,28,53,.86) 55%, rgba(13,28,53,.94) 100%),
      url("../img/hero-haus-1000.jpg");
    background-image:
      linear-gradient(180deg, rgba(13,28,53,.72) 0%, rgba(13,28,53,.86) 55%, rgba(13,28,53,.94) 100%),
      image-set(url("../img/hero-haus-1000.webp") type("image/webp"), url("../img/hero-haus-1000.jpg") type("image/jpeg"));
    background-position: 62% 40%;
  }
  .hero__band-inner { padding-block: 32px 96px; }
  .profile__drawing { max-width: 420px; }
  .mobile-cta { display: flex; flex-direction: column; align-items: stretch; gap: 6px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(13,28,53,.08); padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); transform: translateY(110%); transition: transform .25s ease; }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn { min-height: 50px; }
  .mobile-cta span { text-align: center; font-size: 12px; color: var(--ink-3); }
  body.nav-open .mobile-cta { transform: translateY(110%); }
  .footer__bottom { padding-bottom: 110px; }
  /* Off-Canvas-Navigation */
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: var(--white); cursor: pointer; border-radius: var(--radius); }
  .nav__toggle-bar, .nav__toggle-bar::before, .nav__toggle-bar::after { display: block; width: 18px; height: 1.5px; background: var(--navy); position: relative; content: ""; }
  .nav__toggle-bar::before { position: absolute; top: -6px; }
  .nav__toggle-bar::after { position: absolute; top: 6px; }

  .nav__panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 120; width: min(88vw, 380px); display: flex; flex-direction: column; background: var(--white); border-left: 1px solid var(--line); box-shadow: -24px 0 48px rgba(13,28,53,.18); transform: translateX(100%); visibility: hidden; transition: transform .32s cubic-bezier(.2,.7,.2,1), visibility 0s linear .32s; overscroll-behavior: contain; }
  .nav.is-open .nav__panel { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2,.7,.2,1), visibility 0s; }
  .nav__backdrop { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(13,28,53,.55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }
  .nav.is-open .nav__backdrop { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }

  .nav__panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 0 20px 0 24px; border-bottom: 1px solid var(--line); }
  .nav__panel-head img { height: 32px; width: auto; }
  .nav__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--navy); cursor: pointer; }
  .nav__close svg { width: 20px; height: 20px; }
  .nav__close:hover { border-color: var(--navy); }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 0; overflow-y: auto; flex: 1; }
  .nav__list li a:not(.btn) { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font: 500 22px/1.2 var(--serif); color: var(--navy); }
  .nav__list li a:not(.btn):hover { color: var(--brick); border-bottom-color: var(--line); }
  .nav__no { display: inline; font: 500 12px/1 var(--sans); letter-spacing: .12em; color: var(--brick); width: 22px; flex: none; font-variant-numeric: tabular-nums; }
  .nav__mobile { display: list-item; }
  .nav__cta { margin-top: 24px; }
  .nav__list .btn { width: 100%; min-height: 52px; font-size: 15px; }

  .nav__panel-foot { display: block; padding: 22px 24px calc(24px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
  .nav__panel-foot p { font: italic 400 16px/1.3 var(--serif); color: var(--brick); margin-bottom: 4px; }
  .nav__panel-foot a { display: block; font: 500 22px/1.3 var(--serif); color: var(--navy); text-decoration: none; margin-bottom: 4px; }
  body.nav-open { overflow: hidden; }

  .strip__grid { grid-template-columns: 1fr 1fr; }
  .strip__grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .strip__grid > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .products { grid-template-columns: 1fr 1fr; }
  .faq__list { margin-left: 0; }
  .quote { grid-template-columns: 1fr; }
  .quote p, .quote span { grid-column: 1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar__inner > span:first-child { display: none; }
  .topbar__inner { justify-content: flex-end; }
  .brand__logo { height: 38px; }
  .header__inner { min-height: 64px; }
  .strip__grid { grid-template-columns: 1fr; }
  .strip__grid > div, .strip__grid > div + div { padding: 20px 0; border-left: 0; }
  .strip__grid > div + div { border-top: 1px solid rgba(255,255,255,.14); }
  .section__head { grid-template-columns: 1fr; gap: 6px; }
  .section__no { padding-top: 0; }
  .products { grid-template-columns: 1fr; }
  .product { padding: 26px 22px; }
  .columns, .glossary dl { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0 10px; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: 52px 1fr; column-gap: 8px; }
  .steps span { grid-row: span 2; font-size: 32px; margin: 0; }

  .progress { grid-template-columns: repeat(7, 1fr); margin-bottom: 28px; }
  .progress li span { display: none; }
  .choices--3, .grid-2, .checks--2 { grid-template-columns: 1fr; }
  .grid-3, .grid-plz { grid-template-columns: 1fr 1fr; }
  .grid-3 > :first-child { grid-column: 1 / -1; max-width: 160px; }
  .grid-plz > :last-child { grid-column: 1 / -1; }
  .segmented { width: 100%; }
  .segmented label { flex: 1 1 auto; text-align: center; }
  .segmented span { padding: 12px 10px; }

  .positions__row--labels { display: none; }
  .positions__row label .sr-only { position: static; width: auto; height: auto; clip: auto; overflow: visible; display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
  .positions__row { grid-template-columns: 1fr 1fr 64px; grid-template-areas: "no no rm" "b h s" "o o o"; padding: 12px; border: 1px solid var(--line); background: #faf9f6; }
  .positions__no { grid-area: no; }
  .positions__row > label:nth-of-type(1) { grid-area: b; }
  .positions__row > label:nth-of-type(2) { grid-area: h; }
  .positions__row > label:nth-of-type(3) { grid-area: s; }
  .positions__row > label:nth-of-type(4) { grid-area: o; }
  .positions__remove { grid-area: rm; justify-self: end; }

  .funnel__nav { flex-wrap: wrap; }
  .funnel__note { width: 100%; order: 3; text-align: center; margin: 4px 0 0 !important; }
  .funnel__nav .btn { flex: 1; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { flex: 1; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Mobil: Auswahlgruppen als gleichmäßiges Kachelraster ---------- */
@media (max-width: 640px) {
  .segmented:not(.segmented--full) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; border: 0; }
  .segmented:not(.segmented--full) label,
  .segmented:not(.segmented--full) label + label { border: 1px solid var(--line-strong); border-radius: var(--radius); }
  .segmented:not(.segmented--full) label:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .segmented:not(.segmented--full) span { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 8px 6px; text-align: center; line-height: 1.25; }
  .segmented:not(.segmented--full) label:has(input:checked) { border-color: var(--navy); }
  .segmented.segmented--row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .segmented.segmented--row label:last-child:nth-child(odd) { grid-column: auto; }
  .segmented.segmented--row span { padding: 8px 2px; font-size: 14px; }
  .is-invalid .segmented:not(.segmented--full) { border: 0; }
  .is-invalid .segmented:not(.segmented--full) label { border-color: var(--brick); }
  .funnel__nav { margin-top: 22px; padding-top: 18px; }
}

/* ---------- Datumsfeld (iOS Safari: feste Mindestbreite, kein Platzhalter) ---------- */
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; width: 100%; min-height: 48px; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
input[type="date"]::-webkit-calendar-picker-indicator { opacity: .7; }
.date-wrap { position: relative; display: block; }
.date-ph { display: none; position: absolute; left: 1px; top: 1px; bottom: 1px; right: 44px; align-items: center; gap: 10px; padding-left: 14px; color: var(--ink-3); font-size: 16px; pointer-events: none; background: var(--white); }
.date-ph::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3.5' y='5' width='17' height='15.5' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M3.5 9.5h17M8 3v4M16 3v4' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3.5' y='5' width='17' height='15.5' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M3.5 9.5h17M8 3v4M16 3v4' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Nur auf iPhone/iPad: dort zeigt Safari bei leerem Datum gar nichts an */
@supports (-webkit-touch-callout: none) {
  .date-wrap:not(.has-value) .date-ph { display: flex; }
  .date-wrap:not(.has-value) input[type="date"] { color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
