/* =====================================================================
   bauantrag-bw.de – Frank Ritthaler, Architekt
   Gestaltungsidee: Pauspapier, Lichtpause und der rote Punkt der Freigabe
   ===================================================================== */

/* ---------- Schriften (selbst gehostet, keine Verbindung zu Dritten) -- */
@font-face { font-family: "Fira Sans"; src: url("../fonts/fira-sans-light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/fira-sans-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/fira-sans-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/fira-sans-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Gestaltungswerte ----------------------------------------- */
:root {
  --pausblau: #0e2d52;
  --pausblau-tief: #0a2240;
  --pausblau-hell: #17406f;
  --papier: #f1f3f4;
  --papier-alt: #e6ebee;
  --tusche: #172133;
  --graphit: #5b6878;
  --linie: #a9c9ee;
  --linie-gedeckt: #9db6d3;
  --rot: #d42117;
  --rot-tief: #b51a11;
  --rot-leucht: #ff6b5e;
  --weiss: #ffffff;

  --font: "Fira Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-sm: 0.875rem;
  --fs-0: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --fs-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.375rem);
  --fs-2: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);
  --fs-3: clamp(2.5rem, 1.45rem + 3.3vw, 4.35rem);
  --fs-statement: clamp(1.6rem, 1.05rem + 2.3vw, 2.85rem);

  --wrap: 1260px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(84px, 9vw, 148px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Grundlagen ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-0);
  line-height: 1.6;
  color: var(--tusche);
  background: var(--papier);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-weight: 500; font-size: var(--fs-1); line-height: 1.25; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--rot); color: var(--weiss); }

:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--weiss); color: var(--tusche); font-weight: 500; text-decoration: none; }
.skip-link:focus { top: 12px; }

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

/* ---------- Schaltflächen und Links ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 2px;
  font-weight: 500; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--rot); color: var(--weiss); }
.btn-primary:hover { background: var(--rot-tief); }
.btn-lg { min-height: 54px; padding: 15px 28px; font-size: 1.0625rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; text-decoration: none; color: var(--tusche);
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.text-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }
.text-link.on-dark { color: var(--weiss); }

/* ---------- Kopfzeile ------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--weiss);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.site-header.is-solid {
  color: var(--tusche);
  background: rgba(241, 243, 244, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 rgba(23, 33, 51, .1);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; line-height: 1.1; }
.brand-name { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.01em; display: inline-flex; align-items: baseline; }
.brand-dot { display: inline-block; width: .34em; height: .34em; margin: 0 .09em; border-radius: 50%; background: var(--rot); transform: translateY(-.02em); }
.on-hero .brand-dot, .site-footer .brand-dot { background: var(--rot-leucht); }
.is-solid .brand-dot { background: var(--rot); }
.brand-sub { font-size: .8125rem; opacity: .75; }

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.site-nav ul { display: flex; gap: clamp(14px, 1.9vw, 30px); }
.site-nav ul a { text-decoration: none; font-size: .975rem; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.site-nav ul a:hover { background-size: 100% 1px; }
.nav-cta { min-height: 42px; padding: 10px 18px; font-size: .95rem; }

.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; margin-right: -10px; padding: 0;
    background: none; border: 0; cursor: pointer; position: relative; z-index: 60;
  }
  .nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after {
    display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), background-color .2s;
  }
  .nav-toggle-lines { position: relative; }
  .nav-toggle-lines::before, .nav-toggle-lines::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-lines::before { top: -7px; }
  .nav-toggle-lines::after { top: 7px; }
  .nav-open .nav-toggle { color: var(--weiss); }
  .nav-open .nav-toggle-lines { background: transparent; }
  .nav-open .nav-toggle-lines::before { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle-lines::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 40px;
    padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
    background: var(--pausblau);
    background-image:
      linear-gradient(rgba(169, 201, 238, .07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(169, 201, 238, .07) 1px, transparent 1px);
    background-size: 32px 32px;
    color: var(--weiss);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transition: opacity .3s; }
  .site-nav ul { flex-direction: column; gap: 6px; }
  .site-nav ul a { font-size: clamp(1.9rem, 7vw, 2.6rem); font-weight: 300; letter-spacing: -0.02em; }
  .nav-open .site-header { color: var(--weiss); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-open .brand { position: relative; z-index: 60; }
  .nav-open .brand-dot { background: var(--rot-leucht); }
}

/* ---------- Hero ------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 28px) 0 28px;
  color: var(--weiss);
  background-color: var(--pausblau);
  background-image:
    radial-gradient(120% 90% at 78% 40%, rgba(40, 92, 156, .55), transparent 62%),
    linear-gradient(rgba(169, 201, 238, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 201, 238, .09) 1px, transparent 1px),
    linear-gradient(rgba(169, 201, 238, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 201, 238, .045) 1px, transparent 1px);
  background-size: auto, 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  background-position: center, -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: center; gap: clamp(24px, 4vw, 64px);
  flex: 1;
}
.hero-text { max-width: 38rem; position: relative; z-index: 2; }
.hero h1 { font-size: var(--fs-3); line-height: 1.02; letter-spacing: -0.03em; }
.hero-lead { margin-top: 28px; max-width: 30em; font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem); color: #d4e2f2; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-audience { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; font-size: .95rem; }
.hero-audience p { color: var(--linie-gedeckt); }
.hero-audience ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-audience a { color: var(--weiss); text-decoration: none; border-bottom: 1px solid rgba(169, 201, 238, .5); padding-bottom: 2px; transition: border-color .2s; }
.hero-audience a:hover { border-color: var(--weiss); }

.hero-figure { margin: 0; position: relative; }
@media (min-width: 1200px) { .hero-figure { margin-right: calc(var(--gutter) * -0.8); } }
.hero-drawing { width: 100%; height: auto; overflow: visible; }

/* Plankopf */
.plankopf {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.2fr 1.2fr 1.4fr .8fr;
  margin-top: clamp(20px, 3vw, 36px);
  border: 1px solid rgba(169, 201, 238, .4);
  background: rgba(10, 34, 64, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.plankopf > div { padding: 12px 16px 13px; border-left: 1px solid rgba(169, 201, 238, .4); }
.plankopf > div:first-child { border-left: 0; }
.plankopf dt { font-size: .75rem; color: var(--linie-gedeckt); line-height: 1.3; }
.plankopf dd { font-size: .95rem; line-height: 1.35; margin-top: 3px; }

/* ---------- Hero-Zeichnung: Animation -------------------------------- */
.hero-drawing .h-axes .axis { stroke: rgba(169, 201, 238, .22); stroke-width: 1; stroke-dasharray: 2 7; }
.hero-drawing .h-axes .axis-c { fill: none; stroke: rgba(169, 201, 238, .45); stroke-width: 1; }
.hero-drawing .h-axes .axis-t { fill: var(--linie-gedeckt); font: 500 13px var(--font); }

.hero-drawing .hl, .hero-drawing .cr, .hero-drawing .dim {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.1s var(--ease) forwards; animation-delay: var(--d, 0s);
}
.hero-drawing .hl { stroke: var(--linie); stroke-width: 1.4; }
.hero-drawing .hl.strong { stroke-width: 2.2; }
.hero-drawing .hl.thin { stroke-width: .9; }
.hero-drawing .hl.hatch { stroke-width: .8; stroke: rgba(169, 201, 238, .5); }
.hero-drawing .hl.dash { stroke-dasharray: .015 .012; stroke-dashoffset: 0; opacity: 0; stroke-width: 1; stroke: rgba(169, 201, 238, .55); animation-name: fade; }
.hero-drawing .hl-c { fill: none; stroke: var(--linie); stroke-width: .9; opacity: 0; animation: fade .6s forwards; animation-delay: var(--d, 0s); }

.hero-drawing .cr { stroke: rgba(169, 201, 238, .42); stroke-width: 1.1; animation-duration: 1.4s; }
.hero-drawing .cr.thin { stroke-width: .7; }
.hero-drawing .cr-fill { fill: rgba(169, 201, 238, .16); stroke: rgba(169, 201, 238, .45); stroke-width: .8; }
.hero-drawing .h-crane > rect { opacity: 0; animation: fade .8s .8s forwards; }
.hero-drawing .hook { transform: translateY(-120px); opacity: 0; animation: lower 1.3s var(--ease) 1.0s forwards; }
.hero-drawing .hook line { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }

.hero-drawing .new { stroke: var(--rot-leucht); }
.hero-drawing .new-fill { fill: rgba(255, 107, 94, .14); opacity: 0; animation: fade .9s forwards; animation-delay: var(--d, 0s); }

.hero-drawing .dim { stroke: rgba(169, 201, 238, .7); stroke-width: 1; }
.hero-drawing .dim.tick { stroke-width: 1.8; }
.hero-drawing .dim.new { stroke: var(--rot-leucht); }
.hero-drawing .dim-t { fill: var(--linie); font: 400 12.5px var(--font); opacity: 0; animation: fade .6s forwards; animation-delay: var(--d, 0s); }
.hero-drawing .dim-t.new { fill: var(--rot-leucht); }

.hero-drawing .kote { opacity: 0; animation: fade .6s forwards; animation-delay: var(--d, 0s); }
.hero-drawing .kote path { fill: var(--linie); }
.hero-drawing .kote line { stroke: var(--linie); stroke-width: 1; }
.hero-drawing .kote text { fill: var(--linie); font: 400 12.5px var(--font); }
.hero-drawing .kote.new path { fill: var(--rot-leucht); }
.hero-drawing .kote.new line { stroke: var(--rot-leucht); }
.hero-drawing .kote.new text { fill: var(--rot-leucht); font-weight: 500; }

.hero-drawing .h-note { opacity: 0; animation: fade .7s forwards; animation-delay: var(--d, 0s); }
.hero-drawing .h-note path { fill: none; stroke: var(--rot-leucht); stroke-width: 1; }
.hero-drawing .h-note text { fill: var(--rot-leucht); font: 500 14px var(--font); }

.hero-drawing .stamp { opacity: 0; transform: scale(1.7) rotate(-24deg); animation: stamp .55s cubic-bezier(.3, 1.5, .5, 1) 3.75s forwards; }
.hero-drawing .stamp-dot { fill: var(--rot); }
.hero-drawing .stamp-ring { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; }
.hero-drawing .stamp-t { fill: var(--weiss); font: 500 13.5px var(--font); letter-spacing: .2em; }
.hero-drawing .stamp-check { fill: none; stroke: var(--weiss); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes lower { 0% { opacity: 0; transform: translateY(-120px); } 15% { opacity: 1; } 100% { opacity: 1; transform: translateY(0); } }
@keyframes stamp { to { opacity: 1; transform: scale(1) rotate(-9deg); } }

/* ---------- Versprechen ---------------------------------------------- */
.statement { padding: var(--section) 0 calc(var(--section) * .35); }
.statement-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px clamp(20px, 3vw, 40px); }
.statement-text { grid-column: 1 / span 10; font-size: var(--fs-statement); font-weight: 300; line-height: 1.22; letter-spacing: -0.018em; }
.statement-points { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 40px); }
.statement-points li { position: relative; padding-top: 22px; border-top: 1px solid rgba(23, 33, 51, .25); color: var(--graphit); max-width: 26em; }
.statement-points li::before { content: ""; position: absolute; left: -5px; top: -6px; width: 11px; height: 11px; border-left: 1.6px solid var(--tusche); transform: rotate(45deg); }
.statement-points strong { color: var(--tusche); font-weight: 500; }

/* ---------- Leistungsbereiche --------------------------------------- */
.leistung { padding: var(--section) 0; position: relative; }
.theme-paper { background: var(--papier); }
.theme-paper-alt { background: var(--papier-alt); }
.theme-blue { background: var(--pausblau); color: var(--weiss); }

.leistung-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "head head head head head draw draw draw draw draw draw draw"
    "list list list list list draw draw draw draw draw draw draw";
  grid-template-rows: auto 1fr;
  column-gap: clamp(20px, 3vw, 40px);
}
.is-flipped .leistung-grid {
  grid-template-areas:
    "draw draw draw draw draw draw draw head head head head head"
    "draw draw draw draw draw draw draw list list list list list";
}
.leistung-head { grid-area: head; }
.leistung-head h2 { font-size: var(--fs-2); }
.leistung-head p { margin-top: 22px; max-width: 32em; color: var(--graphit); }
.theme-blue .leistung-head p { color: #c9d9ec; }

.leistung-list { grid-area: list; margin-top: 40px; }
.drawing { grid-area: draw; margin: 0; align-self: start; position: sticky; top: calc(var(--header-h) + 28px); padding: clamp(16px, 2.4vw, 32px); }
.drawing figcaption { margin-top: 10px; font-size: .8125rem; color: var(--graphit); text-align: center; }
.theme-blue .drawing figcaption { color: var(--linie-gedeckt); }

/* Schnittmarken um die Zeichnung */
.drawing::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  --m: rgba(23, 33, 51, .45);
  background:
    linear-gradient(var(--m), var(--m)) left top / 22px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) left top / 1px 22px no-repeat,
    linear-gradient(var(--m), var(--m)) right top / 22px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) right top / 1px 22px no-repeat,
    linear-gradient(var(--m), var(--m)) left bottom / 22px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) left bottom / 1px 22px no-repeat,
    linear-gradient(var(--m), var(--m)) right bottom / 22px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) right bottom / 1px 22px no-repeat;
}
.theme-blue .drawing::before { --m: rgba(169, 201, 238, .55); }

/* Legende */
.legend { border-bottom: 1px solid rgba(23, 33, 51, .16); }
.theme-blue .legend { border-color: rgba(169, 201, 238, .28); }
.legend li { border-top: 1px solid rgba(23, 33, 51, .16); }
.theme-blue .legend li { border-color: rgba(169, 201, 238, .28); }
.legend-item {
  display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start;
  width: 100%; padding: 20px 12px 20px 0; margin: 0;
  background: none; border: 0; text-align: left; cursor: pointer;
  position: relative;
}
.legend-item::after {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--rot);
  transition: width .35s var(--ease);
}
.theme-blue .legend-item::after { background: var(--rot-leucht); }
.legend-key {
  display: grid; place-items: center; width: 30px; height: 30px; margin-top: 1px;
  border: 1px solid currentColor; border-radius: 50%;
  font-size: .8125rem; font-weight: 600; line-height: 1;
  transition: background-color .25s, border-color .25s, color .25s;
}
.legend-title { display: block; font-size: var(--fs-1); font-weight: 500; line-height: 1.3; letter-spacing: -0.005em; }
.legend-text { display: block; margin-top: 6px; color: var(--graphit); font-size: .975rem; line-height: 1.55; max-width: 34em; }
.theme-blue .legend-text { color: #c3d4e8; }

.legend-item:hover .legend-key, .legend-item.is-active .legend-key { background: var(--rot); border-color: var(--rot); color: var(--weiss); }
.theme-blue .legend-item:hover .legend-key, .theme-blue .legend-item.is-active .legend-key { background: var(--rot-leucht); border-color: var(--rot-leucht); color: var(--pausblau-tief); }
.legend-item.is-active::after { width: 100%; }

.leistung-list .text-link { margin-top: 32px; }
.theme-blue .text-link { color: var(--weiss); }

/* ---------- Isometrische Zeichnungen -------------------------------- */
.iso { width: 100%; height: auto; overflow: visible; }
.theme-paper, .theme-paper-alt {
  --d-ln: #1d2a3d;
  --d-ground: #e3e8eb;
  --d-t: #ffffff;
  --d-l: #e8ecef;
  --d-r: #cfd7de;
  --d-win: #93a8bd;
  --d-door: #5f7389;
  --d-new-t: #fbfcfc;
  --d-new-l: #f2f4f6;
  --d-new-r: #e6eaee;
  --d-hi: var(--rot);
  --d-hi-t: #fde9e7;
  --d-hi-l: #f8d3cf;
  --d-hi-r: #f0b8b2;
  --d-tree: #dfe6e2;
  --d-road: #d4dbe0;
  --d-parcel: #edf0f2;
  --d-pin: #ffffff;
}
.theme-paper-alt { --d-ground: #d9e0e4; --d-tree: #d6dfda; }
.theme-blue {
  --d-ln: #cfe1f6;
  --d-ground: #123563;
  --d-t: #2a578a;
  --d-l: #1f4a7c;
  --d-r: #183f6c;
  --d-win: #4f7fb3;
  --d-door: #0e2d52;
  --d-new-t: #1d4a7f;
  --d-new-l: #173f70;
  --d-new-r: #133763;
  --d-hi: var(--rot-leucht);
  --d-hi-t: #7a3a4a;
  --d-hi-l: #6a3043;
  --d-hi-r: #5a283d;
  --d-tree: #1e4f73;
  --d-road: #0b2747;
  --d-parcel: #15396a;
  --d-pin: var(--pausblau);
}
.iso path, .iso line, .iso circle, .iso rect, .iso ellipse { vector-effect: non-scaling-stroke; }
.iso path, .iso line { stroke: var(--d-ln); stroke-width: 1; stroke-linejoin: round; stroke-linecap: round; }
.iso .ground { fill: var(--d-ground); stroke: none; }
.iso .f-t { fill: var(--d-t); }
.iso .f-l { fill: var(--d-l); }
.iso .f-r { fill: var(--d-r); }
.iso .glass { fill: var(--d-win); }
.iso .win { fill: var(--d-win); stroke-width: .6; }
.iso .win.door { fill: var(--d-door); }
.iso .win.tall { fill: var(--d-win); opacity: .85; }
.iso .faint { stroke-opacity: .35; }
.iso .dash { stroke-dasharray: 5 5; }
.iso .nofill { fill: none; }
.iso .path-ground { fill: var(--d-t); stroke: none; opacity: .8; }
.iso .hatch-ln { stroke: var(--d-ln); stroke-opacity: .35; stroke-width: 1; }
.iso .hatch-area { stroke: none; }
.iso .fire-edge { fill: none; stroke: none; }
.iso .shadow { fill: var(--d-ln); opacity: .07; stroke: none; }
.iso .crown { fill: var(--d-tree); stroke: var(--d-ln); stroke-width: .9; }
.iso .crown-hi { fill: var(--d-t); stroke: none; opacity: .55; }
.iso .trunk { stroke-width: 1.2; }
.iso .road { fill: var(--d-road); stroke: none; }
.iso .road-mark { stroke-dasharray: 6 7; stroke-opacity: .5; }
.iso .parcel { fill: var(--d-parcel); stroke-opacity: .45; }
.iso .baugrenze { fill: none; stroke-width: 1.4; stroke-dasharray: 9 3 2 3; }
.iso .geltung { fill: none; stroke-width: 3.6; stroke-dasharray: 11 5; stroke-opacity: .85; }
.iso .schablone { fill: var(--d-t); stroke: var(--d-ln); stroke-width: 1; }
.iso .tab-t, .iso .tag-t { fill: var(--d-ln); font: 600 11.5px var(--font); }
.iso .tag-t { font-size: 12.5px; }
.iso .doc { fill: var(--d-t); stroke: var(--d-ln); stroke-width: 1; }
.iso .doc-ln { stroke-opacity: .55; }
.iso .seal { fill: var(--d-hi); stroke: none; }
.iso .seal-check { fill: none; stroke: #fff; stroke-width: 2.2; }
.iso .tag { fill: var(--d-t); stroke: var(--d-ln); stroke-width: 1; }

/* Geplante Bauteile: gestrichelt, hell */
.iso .new path { stroke-dasharray: 5 3.5; }
.iso .new .win { stroke-dasharray: none; }
.iso .new .f-t { fill: var(--d-new-t); }
.iso .new .f-l { fill: var(--d-new-l); }
.iso .new .f-r { fill: var(--d-new-r); }

/* Hervorhebung */
.iso .part, .iso .part-label { transition: transform .4s var(--ease); cursor: pointer; }
.iso .part path, .iso .part line, .iso .part-label rect, .iso .part-label path { transition: fill .3s, stroke .3s; }
.iso .part.is-active { transform: translateY(-7px); }
.iso .part.is-active path, .iso .part.is-active line { stroke: var(--d-hi); stroke-dasharray: none; stroke-width: 1.4; }
.iso .part.is-active .f-t { fill: var(--d-hi-t); }
.iso .part.is-active .f-l { fill: var(--d-hi-l); }
.iso .part.is-active .f-r { fill: var(--d-hi-r); }
.iso .part.is-active .win { stroke-width: .7; }
.iso .part.is-active .baugrenze, .iso .part.is-active .geltung { stroke: var(--d-hi); }
.iso .part.is-active .baugrenze { stroke-dasharray: 9 3 2 3; }
.iso .part.is-active .geltung { stroke-dasharray: 11 5; stroke-width: 3.6; }
.iso .part.is-active .hatch-area { fill: var(--d-hi-l); }
.iso .part-label.is-active { transform: translateY(-4px); }
.iso .part-label.is-active .schablone, .iso .part-label.is-active .doc, .iso .part-label.is-active .tag { stroke: var(--d-hi); stroke-width: 1.6; }

/* Brandwand: auch im Grundzustand erkennbar */
.iso [data-part="d"] .f-t, .iso [data-part="d"] .f-r, .iso [data-part="d"] .f-l { }

.iso .marker { cursor: pointer; }
.iso .marker .leader { stroke-dasharray: 2 3; stroke-opacity: .7; }
.iso .marker .anchor { fill: var(--d-ln); }
.iso .marker .pin { fill: var(--d-pin); stroke: var(--d-ln); stroke-width: 1; transition: fill .25s, stroke .25s; }
.iso .marker text { fill: var(--d-ln); font: 600 12px var(--font); pointer-events: none; }
.iso .marker.is-active .pin { fill: var(--d-hi); stroke: var(--d-hi); }
.iso .marker.is-active text { fill: #fff; }
.theme-blue .iso .marker.is-active text { fill: var(--pausblau-tief); }
.iso .marker.is-active .leader { stroke: var(--d-hi); stroke-opacity: 1; }
.iso .marker.is-active .anchor { fill: var(--d-hi); }

/* ---------- Bauturbo ------------------------------------------------- */
.turbo {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid rgba(169, 201, 238, .35);
}
.turbo h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.12; }
.turbo-text p { margin-top: 18px; color: #c9d9ec; max-width: 32em; }
.turbo-facts { border: 1px solid rgba(169, 201, 238, .4); align-self: start; }
.turbo-facts > div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 14px 20px; border-top: 1px solid rgba(169, 201, 238, .4); }
.turbo-facts > div:first-child { border-top: 0; }
.turbo-facts dt { color: var(--linie-gedeckt); font-size: .9375rem; }
.turbo-facts dd { font-size: .975rem; line-height: 1.5; }

/* ---------- Ablauf als Maßkette ------------------------------------- */
.ablauf { padding: var(--section) 0; background: var(--papier); }
.section-head { max-width: 46rem; }
.section-head h2 { font-size: var(--fs-2); }
.section-head p { margin-top: 22px; color: var(--graphit); max-width: 34em; }

.steps {
  --tick: var(--tusche);
  position: relative; margin-top: clamp(56px, 6vw, 84px);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
}
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: var(--tusche); }
.steps li { position: relative; padding: 70px clamp(12px, 2vw, 28px) 0 0; }
/* Hilfslinie + Schrägstrich am Anfang jedes Abschnitts */
.steps li::before { content: ""; position: absolute; left: 0; top: 20px; width: 1px; height: 30px; background: var(--tusche); }
.steps li::after { content: ""; position: absolute; left: -6px; top: 28px; width: 13px; height: 1.8px; background: var(--tusche); transform: rotate(-45deg); }
.steps li:last-child { padding-right: 0; }
.step-n {
  position: absolute; top: 2px; left: 0; right: 0; text-align: center;
  font-size: 1.05rem; font-weight: 500; font-variant-numeric: lining-nums tabular-nums;
}
.steps h3 { font-size: 1.25rem; }
.steps p { margin-top: 10px; color: var(--graphit); font-size: .975rem; max-width: 24em; }
.step-goal .step-n { color: var(--weiss); }
.step-goal .step-n::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%; background: var(--rot); z-index: -1;
}
.step-goal .step-n { z-index: 0; }
.steps .step-goal { isolation: isolate; }
/* Abschluss rechts */
.steps > li:last-child > h3::before { content: ""; position: absolute; right: 0; top: 20px; width: 1px; height: 30px; background: var(--tusche); }
.steps > li:last-child > h3::after { content: ""; position: absolute; right: -6px; top: 28px; width: 13px; height: 1.8px; background: var(--tusche); transform: rotate(-45deg); }

/* ---------- Architekt ----------------------------------------------- */
.about { padding: var(--section) 0; background: var(--papier-alt); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-visual img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.monogram {
  position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center;
  background-color: var(--pausblau);
  background-image:
    linear-gradient(rgba(169, 201, 238, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 201, 238, .1) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px;
  overflow: hidden;
}
.monogram::before, .monogram::after { content: ""; position: absolute; background: rgba(169, 201, 238, .45); }
.monogram::before { left: 12%; right: 12%; top: 50%; height: 1px; }
.monogram::after { top: 12%; bottom: 12%; left: 50%; width: 1px; }
.monogram-letters {
  position: relative; z-index: 1;
  font-size: clamp(6rem, 3rem + 10vw, 12rem); font-weight: 300; letter-spacing: -0.06em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.4px var(--linie);
}
.monogram-dot { position: absolute; z-index: 1; right: 14%; bottom: 13%; width: 46px; height: 46px; border-radius: 50%; background: var(--rot); }
.about-text h2 { font-size: var(--fs-2); }
.about-text p { margin-top: 22px; max-width: 34em; color: var(--graphit); font-size: 1.0625rem; }
.about-text p:first-of-type { color: var(--tusche); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.5; }
.about-facts { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(23, 33, 51, .2); }
.about-facts > div { padding: 16px 20px 0 0; }
.about-facts dt { font-size: .8125rem; color: var(--graphit); }
.about-facts dd { margin-top: 4px; }

/* ---------- Kontakt -------------------------------------------------- */
.kontakt {
  padding: var(--section) 0; color: var(--weiss);
  background-color: var(--pausblau);
  background-image:
    linear-gradient(rgba(169, 201, 238, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 201, 238, .06) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
}
.kontakt-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.kontakt-info h2 { font-size: var(--fs-2); }
.kontakt-info > p { margin-top: 22px; color: #c9d9ec; max-width: 28em; }
.kontakt-card { margin-top: 40px; border: 1px solid rgba(169, 201, 238, .4); }
.kontakt-card > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 13px 18px; border-top: 1px solid rgba(169, 201, 238, .4); }
.kontakt-card > div:first-child { border-top: 0; }
.kontakt-card dt { color: var(--linie-gedeckt); font-size: .9375rem; }
.kontakt-card a { color: var(--weiss); text-decoration: none; border-bottom: 1px solid rgba(169, 201, 238, .5); }
.kontakt-card a:hover { border-color: var(--weiss); }
.kontakt-info .text-link { margin-top: 28px; }

.form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px;
  padding: clamp(24px, 3.4vw, 44px);
  background: rgba(10, 34, 64, .6);
  border: 1px solid rgba(169, 201, 238, .3);
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .9375rem; color: #d4e2f2; }
.optional { color: var(--linie-gedeckt); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  color: var(--weiss); background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(169, 201, 238, .35); border-bottom: 1.5px solid var(--linie);
  border-radius: 2px; transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { background: rgba(255, 255, 255, .09); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--weiss); background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 3px rgba(255, 107, 94, .45); }
.field.has-error input, .field.has-error textarea { border-color: var(--rot-leucht); }
.field-error { min-height: 0; font-size: .875rem; color: #ffb3ab; }
.field-error:empty { display: none; }

.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select select option, .select select optgroup { color: var(--tusche); background: var(--weiss); }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--linie); border-bottom: 1.5px solid var(--linie); transform: rotate(45deg); pointer-events: none; }

.field-choice { border: 0; margin: 0; padding: 0; }
.field-choice legend { padding: 0; margin-bottom: 10px; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-item { position: relative; cursor: pointer; }
.choice-item input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-item span {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px;
  border: 1px solid rgba(169, 201, 238, .45); border-radius: 999px; font-size: .95rem; transition: background-color .2s, border-color .2s, color .2s;
}
.choice-item span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--linie); transition: background-color .2s, border-color .2s; }
.choice-item input:checked + span { background: var(--weiss); color: var(--pausblau); border-color: var(--weiss); }
.choice-item input:checked + span::before { background: var(--rot); border-color: var(--rot); }
.choice-item input:focus-visible + span { outline: 3px solid var(--rot-leucht); outline-offset: 2px; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .9375rem; color: #d4e2f2; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1.5px solid var(--linie); border-radius: 2px; background: transparent; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--rot); border-color: var(--rot); }
.check input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: translate(0, -1px) rotate(45deg); }
.check a { color: var(--weiss); }
.field-consent.has-error .check input { border-color: var(--rot-leucht); }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 20px; }
.form-status { grid-column: 1 / -1; }
.form-status p { padding: 14px 18px; border-left: 3px solid; font-size: .975rem; }
.form-status .is-ok { border-color: #7fe0a8; background: rgba(127, 224, 168, .1); }
.form-status .is-error { border-color: var(--rot-leucht); background: rgba(255, 107, 94, .1); }

/* ---------- Fußzeile ------------------------------------------------- */
.site-footer { background: var(--pausblau-tief); color: #c3d4e8; padding: 48px 0 40px; font-size: .9375rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 24px 40px; align-items: start; }
.footer-brand .brand-name { color: var(--weiss); font-size: 1.2rem; }
.footer-brand p { margin-top: 10px; line-height: 1.55; }
.footer-contact li + li { margin-top: 4px; }
.footer-contact a, .footer-legal a { color: #e2ecf7; text-decoration: none; border-bottom: 1px solid rgba(169, 201, 238, .35); }
.footer-contact a:hover, .footer-legal a:hover { border-color: var(--weiss); }
.footer-legal { display: flex; gap: 22px; }
.footer-copy { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(169, 201, 238, .2); font-size: .8125rem; color: var(--linie-gedeckt); }

/* ---------- Rechtstexte --------------------------------------------- */
.legal { padding: calc(var(--header-h) + clamp(48px, 6vw, 96px)) 0 var(--section); }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: var(--fs-2); }
.legal h2 { font-size: 1.45rem; font-weight: 500; letter-spacing: -0.01em; margin-top: 48px; }
.legal h3 { font-size: 1.1rem; margin-top: 28px; }
.legal p, .legal ul { margin-top: 14px; max-width: 42em; }
.legal ul { list-style: disc; padding-left: 1.3em; }
.legal li + li { margin-top: 6px; }
.legal .note { margin-top: 28px; padding: 14px 18px; border-left: 3px solid var(--rot); background: var(--weiss); font-size: .95rem; }
.legal a { color: var(--tusche); }
mark.todo { background: #ffe1dd; color: var(--rot-tief); padding: 0 4px; }

/* ---------- Responsiv ------------------------------------------------ */
@media (max-width: 1100px) {
  .plankopf { grid-template-columns: 1fr 1fr; }
  .plankopf > div:nth-child(3) { border-left: 0; }
  .plankopf > div:nth-child(n + 3) { border-top: 1px solid rgba(169, 201, 238, .4); }
}

@media (max-width: 920px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { max-width: 40rem; }
  .hero-figure { max-width: 620px; width: 100%; margin: 8px auto 0; }

  .statement-text { grid-column: 1 / -1; }
  .statement-points { grid-template-columns: 1fr; gap: 28px; }

  .leistung-grid, .is-flipped .leistung-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "draw" "list";
    grid-template-rows: auto;
  }
  .drawing { position: relative; top: auto; margin-top: 32px; max-width: 640px; width: 100%; justify-self: center; }
  .leistung-list { margin-top: 24px; }

  .turbo { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; margin-top: 48px; }
  .steps::before { left: 34px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps li { padding: 0 0 36px 76px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li::before { left: 20px; top: 0; width: 30px; height: 1px; }
  .steps li::after { left: 28px; top: -1px; }
  .step-n { left: 0; right: auto; top: 10px; width: 28px; text-align: center; }
  .steps > li:last-child > h3::before, .steps > li:last-child > h3::after { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 420px; }

  .kontakt-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --header-h: 68px; }
  .brand-name { font-size: 1.15rem; }
  .brand-sub { font-size: .75rem; }
  .hero h1 { font-size: clamp(2.3rem, 1.2rem + 6vw, 3rem); }
  .hero-lead { margin-top: 20px; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .btn { width: 100%; }
  .hero-audience { margin-top: 30px; }
  .plankopf > div { padding: 10px 12px; }
  .plankopf dd { font-size: .875rem; }
  .form { grid-template-columns: 1fr; padding: 22px 18px; }
  .form-actions .btn { width: 100%; }
  .turbo-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .kontakt-card > div { grid-template-columns: 1fr; gap: 2px; }
  .about-facts { grid-template-columns: 1fr; }
  .legend-item { grid-template-columns: 30px 1fr; gap: 14px; }
  .drawing { padding: 10px; }
}

/* ---------- Bewegung reduzieren ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  .hero-drawing .hl, .hero-drawing .cr, .hero-drawing .dim { stroke-dasharray: none; stroke-dashoffset: 0; }
  .hero-drawing .hl.dash { stroke-dasharray: .015 .012; }
}

/* ---------- Druck ---------------------------------------------------- */
@media print {
  .site-header, .nav-toggle, .form, .hero-audience, .hero-actions { display: none !important; }
  .hero, .kontakt, .theme-blue { background: #fff !important; color: #000 !important; }
}
