/* Entwurf 2 „Blaupause“ – Archivo (breit) + JetBrains Mono, Bauplan-Raster */
:root {
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(16px, 4vw, 64px);
  --line-dark: rgba(126, 179, 230, .16);
  --line-light: rgba(0, 90, 171, .08);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 18px/1.6 var(--sans); color: var(--hi-ink); background: var(--hi-navy); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); }
.label { font-size: 12px; letter-spacing: .12em; color: #7fb3e6; margin: 0 0 20px; }
.paper-grid .label, .details .label { color: var(--hi-blue); }
h1, h2, h3 { font-stretch: 125%; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--hi-blue); color: #fff; padding: 16px 26px; font: 600 15px var(--mono); letter-spacing: .04em; border: 1px solid var(--hi-blue); transition: all .3s; }
.btn:hover { background: #fff; color: var(--hi-blue); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: transparent; color: #fff; }

/* Raster-Hintergründe */
.grid-bg {
  background-color: var(--hi-navy); color: #e8eef6;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px),
    linear-gradient(rgba(126,179,230,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(126,179,230,.06) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.paper-grid {
  background-color: #F4F7FB;
  background-image: linear-gradient(var(--line-light) 1px, transparent 1px), linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Kopfleiste */
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 32px; padding: 14px var(--pad); background: rgba(11, 27, 46, .88); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(126,179,230,.2); color: #fff; }
.bar__logo { height: 60px; padding: 6px 10px; border-radius: 4px; }
.bar__nav { display: flex; gap: 32px; margin-left: auto; font: 500 14px var(--mono); }
.bar__nav span { color: #7fb3e6; margin-right: 8px; font-size: 11px; }
.bar__nav a:hover { color: #7fb3e6; }
.bar__cta { font: 600 14px var(--mono); border: 1px solid #fff; padding: 10px 16px; }
.bar__cta b { color: var(--hi-red); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--pad); padding: clamp(48px, 8vw, 120px) var(--pad); align-items: center; min-height: calc(100vh - 80px); }
.hero h1 { font: 800 clamp(54px, 8vw, 138px)/.88 var(--sans); letter-spacing: -.02em; margin: 0 0 32px; text-transform: uppercase; }
.hero h1 span { display: block; }
.hero h1 .thin { font-weight: 200; font-stretch: 100%; color: #7fb3e6; text-transform: none; font-size: .6em; letter-spacing: 0; padding: .1em 0; }
.hero h1 i { color: var(--hi-red); font-style: normal; }
.hero__lede { max-width: 40ch; color: #b8c7d9; font-size: 19px; margin: 0 0 36px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__plan { position: relative; display: block; padding: 34px 0 0 34px; }
.hero__plan figure { margin: 0; position: relative; }
.hero__plan img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: saturate(.9); transition: filter .6s; }
.hero__plan:hover img { filter: saturate(1.1); }
.dim { position: absolute; font-size: 12px; color: #7fb3e6; letter-spacing: .06em; }
.dim--top { top: 0; left: 34px; right: 0; text-align: center; border-bottom: 1px solid #7fb3e6; padding-bottom: 6px; }
.dim--top::before, .dim--top::after { content: ""; position: absolute; bottom: -6px; width: 1px; height: 11px; background: #7fb3e6; }
.dim--top::before { left: 0; } .dim--top::after { right: 0; }
.dim--side { top: 34px; bottom: 96px; left: 0; width: 22px; border-right: 1px solid #7fb3e6; writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; justify-content: center; }
.cross { position: absolute; width: 18px; height: 18px; }
.cross::before, .cross::after { content: ""; position: absolute; background: #fff; }
.cross::before { left: 8px; top: 0; width: 2px; height: 18px; } .cross::after { top: 8px; left: 0; height: 2px; width: 18px; }
.c1 { top: -9px; left: -9px; } .c2 { top: -9px; right: -9px; } .c3 { bottom: -9px; left: -9px; } .c4 { bottom: -9px; right: -9px; }
.titleblock { display: grid; grid-template-columns: 1fr 2fr 1fr 1.2fr; border: 1px solid rgba(255,255,255,.5); border-top: 0; font-size: 13px; background: rgba(11,27,46,.7); }
.titleblock div { padding: 10px 12px; border-right: 1px solid rgba(255,255,255,.3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.titleblock div:last-child { border-right: 0; color: #fff; font-weight: 700; }
.titleblock small, .tb small, .foot__tb small { display: block; font-size: 10px; letter-spacing: .12em; color: #7fb3e6; margin-bottom: 2px; }

/* Kennzahlen */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--hi-blue); color: #fff; }
.specs div { padding: 28px var(--pad); border-right: 1px solid rgba(255,255,255,.25); }
.specs b { display: block; font: 800 clamp(34px, 4vw, 56px)/1 var(--sans); font-stretch: 125%; }
.specs span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }

/* Katalog */
.catalog, .details { padding: clamp(64px, 9vw, 140px) var(--pad); }
.head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; margin-bottom: 56px; }
.head .label { grid-column: 1 / -1; margin: 0; }
.head h2 { font: 800 clamp(40px, 5.6vw, 92px)/.95 var(--sans); letter-spacing: -.02em; margin: 0; text-transform: uppercase; color: var(--hi-navy); }
.seg { display: flex; border: 1px solid var(--hi-navy); }
.seg button { font: 500 13px var(--mono); padding: 10px 16px; background: none; border: 0; border-right: 1px solid var(--hi-navy); cursor: pointer; color: var(--hi-navy); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--hi-navy); color: #fff; }
.sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 32px; }
.sheet { background: #fff; border: 1px solid #cfd9e6; padding: 14px; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s; }
.sheet:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -20px rgba(11,27,46,.35); }
.sheet.hide { display: none; }
.sheet figure { margin: 0; position: relative; overflow: hidden; background: #e9eef5; }
.sheet img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 1s var(--ease); }
.sheet:hover img { transform: scale(1.05); }
.fig { position: absolute; left: 10px; bottom: 10px; background: var(--hi-navy); color: #fff; font-size: 11px; padding: 4px 8px; letter-spacing: .08em; }
.stamp { position: absolute; top: 14px; right: 14px; border: 2px solid var(--hi-red); color: var(--hi-red); background: rgba(255,255,255,.92); font: 700 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; transform: rotate(-4deg); }
.trace { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.trace rect { fill: none; stroke: #fff; stroke-width: .4; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.2s var(--ease); vector-effect: non-scaling-stroke; }
.sheet:hover .trace rect { stroke-dashoffset: 0; }
.sheet h3 { font: 700 21px/1.2 var(--sans); font-stretch: 110%; margin: 16px 2px 14px; color: var(--hi-navy); flex: 1; }
.tb { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--hi-navy); font-size: 13px; }
.tb div { padding: 8px 10px; border-right: 1px solid #cfd9e6; border-bottom: 1px solid #cfd9e6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb .w2 { grid-column: span 2; }
.tb small { color: var(--hi-blue); }
.tb .price { background: var(--hi-navy); color: #fff; font-weight: 700; border-color: var(--hi-navy); }
.tb .price small { color: #7fb3e6; }

/* Lageplan */
.map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--pad); padding: clamp(64px, 9vw, 140px) var(--pad); align-items: center; }
.map h2, .team h2 { font: 800 clamp(36px, 4.6vw, 76px)/.95 var(--sans); letter-spacing: -.02em; margin: 0 0 24px; text-transform: uppercase; }
.map p { color: #b8c7d9; max-width: 40ch; }
.map__legend { list-style: none; padding: 0; font-size: 13px; color: #b8c7d9; }
.map__legend li { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--hi-red); display: inline-block; }
.dot--office { border-radius: 0; background: #fff; }
.dot--ref { background: none; border: 1px solid #7fb3e6; width: 8px; height: 8px; }
.plan { width: 100%; height: auto; border: 1px solid rgba(126,179,230,.4); background: rgba(0, 90, 171, .12); font-family: var(--mono); }
.plan .g { stroke: rgba(126,179,230,.12); stroke-width: 1; }
.plan .g2 { stroke: rgba(126,179,230,.28); }
.plan .river { fill: none; stroke: #3f8fd6; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.plan .coast { fill: none; stroke: #7fb3e6; stroke-width: 2; stroke-dasharray: 6 6; }
.plan .rl { fill: #3f8fd6; font-size: 11px; letter-spacing: .3em; }
.plan .ref { fill: none; stroke: #7fb3e6; }
.plan .rt { fill: #b8c7d9; font-size: 12px; }
.plan .office rect { fill: #fff; }
.plan .office text { fill: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.plan .pulse { fill: none; stroke: #fff; stroke-width: 1; animation: pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.plan .inset rect { fill: var(--hi-navy); stroke: #7fb3e6; stroke-dasharray: 4 4; }
.plan .inset text { fill: #7fb3e6; font-size: 10px; letter-spacing: .12em; }
.plan .pin circle { fill: var(--hi-red); stroke: #fff; stroke-width: 2; transition: r .3s; cursor: pointer; }
.plan .pin:hover circle, .plan .pin--on circle { r: 11; }
.plan .north path { fill: #fff; } .plan .north text, .plan .scale text { fill: #fff; font-size: 11px; }
.plan .scale line { stroke: #fff; stroke-width: 3; }

/* Details / Leistungen */
.details__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.detail { position: relative; background: #fff; border: 1px solid #cfd9e6; padding: 16px 16px 24px; }
.callout { position: absolute; top: -18px; left: -18px; width: 44px; height: 44px; border-radius: 50%; background: var(--hi-navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 16px; z-index: 2; border: 3px solid #F4F7FB; }
.detail img, .detail__ph { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s; }
.detail:hover img { filter: none; }
.detail__ph { display: grid; place-items: center; background: var(--hi-blue); color: #fff; font-size: 20px; letter-spacing: .1em; }
.detail h3 { font: 800 24px/1.1 var(--sans); text-transform: uppercase; margin: 20px 0 10px; color: var(--hi-navy); }
.detail p { font-size: 16px; color: #3d4a5a; margin: 0 0 18px; }
.more { font-size: 12px; color: var(--hi-blue); letter-spacing: .08em; }

/* Team */
.team { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--pad); padding: clamp(64px, 9vw, 140px) var(--pad); align-items: center; }
.team__img { margin: 0; position: relative; }
.team__img img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.lead { position: absolute; font-size: 12px; color: #fff; background: var(--hi-navy); padding: 8px 12px; border: 1px solid #7fb3e6; }
.lead b { display: block; font-size: 14px; }
.lead::before { content: ""; position: absolute; width: 60px; height: 1px; background: #7fb3e6; top: 50%; }
.lead--1 { left: -12px; top: 30%; } .lead--1::before { right: -60px; }
.lead--2 { right: -12px; top: 58%; } .lead--2::before { left: -60px; }
.team p { color: #b8c7d9; max-width: 44ch; }
.small { font-size: 13px; color: #7fb3e6 !important; }

/* Footer */
.foot { background: var(--hi-blue); color: #fff; padding: clamp(64px, 9vw, 120px) var(--pad) var(--pad); }
.foot h2 { font: 800 clamp(56px, 10vw, 180px)/.85 var(--sans); letter-spacing: -.03em; margin: 0 0 56px; text-transform: uppercase; }
.foot h2 i { color: var(--hi-red); font-style: normal; }
.foot__tb { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #fff; font-size: 15px; }
.foot__tb div { padding: 14px 16px; border-right: 1px solid rgba(255,255,255,.5); border-bottom: 1px solid rgba(255,255,255,.5); }
.foot__tb .w2 { grid-column: span 2; }
.foot__tb small { color: #cfe3f7; }
.foot__tb a:hover { text-decoration: underline; }

/* ---------- Exposé ---------- */
.xh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--pad); padding: clamp(40px, 6vw, 90px) var(--pad); align-items: start; }
.xh h1 { font: 800 clamp(34px, 4.4vw, 72px)/.98 var(--sans); letter-spacing: -.02em; margin: 0 0 28px; }
.xh__price { font: 800 clamp(30px, 3.4vw, 52px)/1 var(--sans); font-stretch: 125%; margin: 0 0 8px; }
.xh__price small { display: block; font: 500 12px var(--mono); letter-spacing: .12em; color: #7fb3e6; margin-bottom: 6px; }
.xh .tb { border-color: rgba(255,255,255,.5); margin: 28px 0; }
.xh .tb div { border-color: rgba(255,255,255,.2); }
.xh .tb small { color: #7fb3e6; }
.xh .tb .price { background: var(--hi-blue); }
.xh__main { position: relative; padding: 34px 0 0 34px; }
.xh__main figure { margin: 0; position: relative; }
.xh__main img { width: 100%; aspect-ratio: 3/2; object-fit: cover; cursor: zoom-in; }
.xs { padding: clamp(56px, 8vw, 120px) var(--pad); }
.xs__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--pad); }
.xs h2 { font: 800 clamp(28px, 3vw, 44px)/1 var(--sans); text-transform: uppercase; margin: 0 0 16px; color: var(--hi-navy); }
.xs .text p { font-size: 19px; line-height: 1.7; color: #26303c; margin: 0 0 1em; max-width: 68ch; }
.xs .block { margin-bottom: 64px; }
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.checks li { padding: 10px 0 10px 30px; border-bottom: 1px dashed #b6c4d6; position: relative; font-size: 17px; }
.checks li::before { content: "+"; position: absolute; left: 0; top: 8px; font: 700 16px var(--mono); color: var(--hi-blue); }
.areas { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin: 12px 0 16px; }
.areas div { position: relative; }
.areas .sq { border: 2px solid var(--hi-navy); background: repeating-linear-gradient(45deg, rgba(0,90,171,.1) 0 6px, transparent 6px 12px); }
.areas .sq--wf { background: var(--hi-blue); border-color: var(--hi-blue); }
.areas span { display: block; font: 500 12px var(--mono); margin-top: 8px; color: #3d4a5a; }
.eclass { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; margin: 12px 0 10px; }
.eclass span { font: 700 13px var(--mono); color: #fff; text-align: center; padding: 10px 0; clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%); opacity: .3; }
.eclass span.on { opacity: 1; outline: 3px solid var(--hi-navy); outline-offset: 2px; }
.contact-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.contact-sheet figure { margin: 0; background: #fff; padding: 8px 8px 4px; border: 1px solid #cfd9e6; cursor: zoom-in; }
.contact-sheet img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.contact-sheet figcaption { font: 500 11px var(--mono); padding: 6px 2px; color: #3d4a5a; display: flex; justify-content: space-between; gap: 8px; }
.contact-sheet figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xmap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--pad); padding: clamp(56px, 8vw, 120px) var(--pad); align-items: center; }
.xmap h2 { font: 800 clamp(28px, 3vw, 44px)/1 var(--sans); text-transform: uppercase; margin: 0 0 16px; }
.xmap p { color: #b8c7d9; }
.backlink { font: 500 13px var(--mono); color: #7fb3e6; display: inline-block; margin-bottom: 24px; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(11,27,46,.97); }
.lb.open { display: flex; }
.lb img { max-width: 90vw; max-height: 84vh; border: 1px solid #7fb3e6; }
.lb button { position: absolute; background: none; border: 1px solid #7fb3e6; color: #fff; font: 500 14px var(--mono); padding: 12px 16px; cursor: pointer; }
.lb .lb-x { top: 20px; right: 20px; } .lb .lb-p { left: 20px; } .lb .lb-n { right: 20px; }
.lb .lb-c { position: absolute; bottom: 20px; font: 12px var(--mono); color: #7fb3e6; letter-spacing: .1em; }

@media (max-width: 1000px) {
  .bar__nav { display: none; }
  .bar__cta { margin-left: auto; }
  .hero, .map, .team, .xh, .xs__cols, .xmap { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .head { grid-template-columns: 1fr; }
  .seg { flex-wrap: wrap; }
  .details__grid { grid-template-columns: 1fr 1fr; }
  .foot__tb { grid-template-columns: 1fr 1fr; }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .lead { display: none; }
  .checks { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sheets { grid-template-columns: 1fr; }
  .details__grid, .foot__tb { grid-template-columns: 1fr; }
  .foot__tb .w2 { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
