/* Bauwerksbuch Kaiser – Gestaltung "Lichtpause"
   Tinte auf Papier, eine Zeichnung als Signatur, Rot nur für Befunde und die Hauptaktion. */

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1b2a44;
  --ink-soft: #33415c;
  --pencil: #5b6577;
  --line: #c9d2de;
  --fog: #eef2f6;
  --paper: #ffffff;
  --befund: #b3261e;
  --befund-dark: #8f1d17;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --measure: 64ch;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 112px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--befund); }
:focus-visible { outline: 2px solid var(--befund); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(44px, 6.2vw, 84px); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 3.6vw, 48px); }
h3 { font-size: 24px; line-height: 1.25; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; color: var(--ink-soft); }
.quiet { color: var(--pencil); }
.small { font-size: 14px; line-height: 1.5; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space-6) 0; }
.section--fog { background: var(--fog); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink a:hover { color: #fff; opacity: .8; }
.section-head { max-width: 760px; margin-bottom: var(--space-5); }
.section-head p { margin-top: var(--space-3); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* Vorschau-Hinweis */
.preview-note { background: var(--ink); color: #fff; font-size: 13px; text-align: center; padding: 6px var(--gutter); }

/* Kopf */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 76px; }
.brand { display: block; width: 168px; flex: none; }
.brand img { width: 100%; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: var(--radius); font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--sans); line-height: 1.2; transition: background-color .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--befund); color: #fff; }
.btn--primary:hover { background: var(--befund-dark); color: #fff; }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.nav .btn { padding: 10px 16px; color: #fff; }
.nav .btn:hover { color: #fff; text-decoration: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: #fff; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--fog); }
  .nav .btn { margin-top: 16px; width: auto; border-bottom: 0; }
}

/* Hero */
.hero { padding: var(--space-5) 0 var(--space-6); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr); gap: var(--space-5); align-items: center; }
.hero h1 { max-width: 11ch; }
.hero .lead { margin-top: var(--space-4); max-width: 34ch; }
.hero-meta { margin-top: var(--space-4); font-size: 14px; color: var(--pencil); max-width: 46ch; }
.hero-figure { position: relative; color: var(--ink); margin: 0 -24px 0 0; }
@media (min-width: 1100px) { .hero-figure .elevation { width: 112%; margin-left: -6%; } }
.hero-figure figcaption { margin-top: var(--space-2); font-size: 13px; color: var(--pencil); max-width: 44ch; }

.elevation { width: 100%; height: auto; overflow: visible; }
.elevation .draw path, .elevation .draw rect { stroke: var(--ink); }
.elevation .hidden-line { stroke-dasharray: 4 5; stroke: var(--pencil) !important; }
.elevation .kamin-line { stroke: var(--befund); stroke-width: 2.2; fill: none; }
.elevation .kamin-head { stroke: var(--befund); stroke-width: 1.4; fill: #fff; }
.elevation .axis path { stroke: var(--line); stroke-width: 1; fill: none; }
.elevation .axis-label { font-family: var(--sans); font-size: 12px; fill: var(--pencil); }
.elevation .mark circle { fill: var(--befund); }
.elevation .mark text { font-family: var(--sans); font-size: 10.5px; font-weight: 700; fill: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .js .elevation .draw path, .js .elevation .draw rect { stroke-dasharray: 1100; stroke-dashoffset: 1100; }
  .js .elevation.in-view .draw path, .js .elevation.in-view .draw rect { animation: draw 2.4s cubic-bezier(.4,.1,.2,1) forwards; }
  .js .elevation .draw .hidden-line { stroke-dasharray: 4 5; stroke-dashoffset: 0; animation: none; }
  .js .elevation .kamin-line { stroke-dasharray: 520; stroke-dashoffset: 520; }
  .js .elevation.in-view .kamin-line { animation: draw 1.2s 1.8s ease-out forwards; }
  .js .elevation .kamin-head { opacity: 0; }
  .js .elevation.in-view .kamin-head { animation: appear .4s 2.8s forwards; }
  .js .elevation .mark { opacity: 0; transform-box: fill-box; transform-origin: center; }
  .js .elevation.in-view .mark { animation: pop .45s calc(2.9s + var(--i) * .25s) cubic-bezier(.2,.9,.3,1.4) forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }

/* Preisrechner im Hero */
.quick-price { margin-top: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); max-width: 480px; background: #fff; }
.quick-price legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: var(--space-2); }
.quick-price fieldset { border: 0; padding: 0; margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 14px; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.seg input:checked + label { border-color: var(--ink); background: var(--ink); color: #fff; }
.seg input:focus-visible + label { outline: 2px solid var(--befund); outline-offset: 2px; }
.quick-price .size { margin-top: 12px; }
.quick-price .result { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--fog); }
.price-big { font-family: var(--serif); font-size: 40px; line-height: 1; }
.price-note { font-size: 13px; color: var(--pencil); margin: 6px 0 0; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 520px; }
}

/* Person */
.person { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-5); align-items: end; }
.person-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--radius); }
.quote { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.2; margin: 0 0 var(--space-4); max-width: 22ch; font-style: italic; font-weight: 300; }
.quote-by { font-size: 15px; color: var(--pencil); margin-bottom: var(--space-4); }
.credentials { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; font-size: 15px; }
.credentials li { padding-top: 10px; border-top: 1px solid var(--line); }
.media-row { margin-top: var(--space-4); }
.media-row p { font-size: 14px; color: var(--pencil); margin-bottom: 10px; }
.media-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; font-family: var(--serif); font-size: 21px; }
.media-list a { text-decoration: none; color: var(--ink); }
.media-list a:hover { color: var(--befund); }
@media (max-width: 820px) { .person { grid-template-columns: 1fr; } .credentials { grid-template-columns: 1fr; } }

/* Was Sie bekommen – Ablauf */
.process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-5); align-items: start; }
.process-figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }
.process-figure figcaption { font-size: 13px; color: var(--pencil); margin-top: 10px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 0 18px; padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--befund); grid-row: 1 / span 9; }
.steps li > * { grid-column: 2; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-soft); }
.steps .parallel { font-size: 14px; color: var(--pencil); margin-top: 6px; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr; } .process-figure { max-width: 420px; } }

/* Preise */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--ink); }
.price-col { padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: 1px solid var(--line); }
.price-col + .price-col { padding-left: var(--space-3); border-left: 1px solid var(--line); }
.price-col h3 { font-size: 20px; margin-bottom: var(--space-2); }
.price-col .price-big { display: block; margin: 6px 0 4px; }
.price-col ul { list-style: none; padding: 0; margin: var(--space-2) 0 0; font-size: 15px; }
.price-col li { padding: 4px 0; }
.price-foot { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
@media (max-width: 760px) { .price-col + .price-col { padding-left: 0; border-left: 0; } }

/* Weiterführen – Umschalter */
.switch { display: inline-flex; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 4px; margin: var(--space-4) 0 var(--space-5); }
.switch button { background: none; border: 0; color: #fff; font: 600 15px/1 var(--sans); padding: 12px 20px; border-radius: 999px; cursor: pointer; }
.switch button[aria-selected="true"] { background: #fff; color: var(--ink); }
.continue { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-5); align-items: center; }
.continue h3 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: var(--space-3); }
.continue ul { padding-left: 1.1em; margin: 0 0 var(--space-4); }
.continue li { margin-bottom: 8px; max-width: 52ch; }
.continue .price-line { font-family: var(--serif); font-size: 22px; margin-bottom: var(--space-4); }
.screen { border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); background: #fff; }
.screen-bar { display: flex; gap: 6px; padding: 10px 12px; background: #f3f5f8; border-bottom: 1px solid #e3e8ef; }
.screen-bar span { width: 9px; height: 9px; border-radius: 50%; background: #c9d2de; }
[hidden] { display: none !important; }
@media (max-width: 860px) { .continue { grid-template-columns: 1fr; } }

/* Baujuwelen */
.jewel { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-5); align-items: center; }
.jewel img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }
.jewel blockquote { margin: var(--space-3) 0; font-family: var(--serif); font-size: 22px; line-height: 1.45; max-width: 36ch; }
.jewel cite { font-style: normal; font-size: 14px; color: var(--pencil); display: block; margin-bottom: var(--space-4); }
@media (max-width: 860px) { .jewel { grid-template-columns: 1fr; } }

/* Fuß */
.site-footer { background: var(--ink); color: #dfe5ee; padding: var(--space-5) 0 var(--space-4); font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-4); }
.footer-grid h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; color: #9fb0c7; margin-bottom: 12px; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-logo { width: 200px; margin-bottom: var(--space-3); }
.signature { font-family: var(--serif); font-style: italic; font-size: 20px; color: #fff; margin-top: var(--space-3); }
.footer-base { margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; color: #9fb0c7; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Unterseiten */
.page-head { padding: var(--space-5) 0 var(--space-4); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(40px, 5vw, 64px); max-width: 18ch; }
.page-head .lead { margin-top: var(--space-3); }
.crumb { font-size: 14px; color: var(--pencil); margin-bottom: var(--space-3); }
.crumb a { color: var(--pencil); }
.prose { max-width: 720px; }
.prose h2 { font-size: 32px; margin: var(--space-5) 0 var(--space-3); }
.prose h3 { margin: var(--space-4) 0 var(--space-2); }
.prose ul, .prose ol { padding-left: 1.2em; max-width: var(--measure); }
.prose li { margin-bottom: 6px; }
.two-col { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-5); align-items: start; }
.aside-box { border-top: 2px solid var(--ink); padding-top: var(--space-3); position: sticky; top: 100px; }
.aside-box h2 { font-size: 24px; margin-bottom: var(--space-2); }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .aside-box { position: static; } }

.service { padding: var(--space-4) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-4); }
.service h2 { font-size: 30px; }
.service .price-tag { font-size: 15px; color: var(--pencil); margin-top: 8px; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: var(--space-2); } }

.press { list-style: none; padding: 0; margin: 0; }
.press li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.press time { font-size: 14px; color: var(--pencil); padding-top: 3px; }
.press .outlet { font-size: 14px; color: var(--pencil); }
.press .title { font-family: var(--serif); font-size: 21px; line-height: 1.3; }
.press .title a { text-decoration: none; }
.press .title a:hover { text-decoration: underline; }
.press p { margin: 4px 0 0; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 600px) { .press li { grid-template-columns: 1fr; } }

.series { list-style: none; margin: 0; padding: 0; }
.series li { border-top: 1px solid var(--line); }
.series details { padding: 0; }
.series summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: baseline; padding: 20px 0; }
.series summary::-webkit-details-marker { display: none; }
.series .no { font-family: var(--serif); font-size: 26px; color: var(--befund); }
.series .t { font-family: var(--serif); font-size: 24px; line-height: 1.25; }
.series .q { font-size: 14px; color: var(--pencil); }
.series summary::after { content: "+"; font-size: 24px; color: var(--pencil); }
.series details[open] summary::after { content: "–"; }
.series .body { padding: 0 0 var(--space-4) 72px; }
.series .body p { font-family: var(--serif); font-size: 20px; line-height: 1.6; max-width: 60ch; }
@media (max-width: 600px) { .series summary { grid-template-columns: 40px 1fr auto; } .series .body { padding-left: 0; } }

.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: " +"; color: var(--pencil); }
.faq details[open] summary::after { content: " –"; }
.faq details p { margin-top: 10px; }

/* Rechner & Formular */
.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-5); align-items: start; }
.calc-steps fieldset { border: 0; border-top: 1px solid var(--line); padding: var(--space-3) 0; margin: 0; }
.calc-steps legend { font-family: var(--serif); font-size: 24px; padding: 0 0 12px; }
.calc-steps .hint { font-size: 14px; color: var(--pencil); margin: 10px 0 0; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.check span small { display: block; color: var(--pencil); font-size: 14px; }
.check b { font-weight: 600; }
select, input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
select:focus, input:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.summary { border: 1px solid var(--ink); border-radius: var(--radius); padding: var(--space-3); position: sticky; top: 100px; background: #fff; }
.summary h2 { font-size: 22px; margin-bottom: var(--space-2); }
.summary dl { margin: 0; font-size: 15px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--fog); }
.summary dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary .total { font-family: var(--serif); font-size: 36px; margin: var(--space-2) 0 0; }
.summary .net { font-size: 14px; color: var(--pencil); margin: 0 0 var(--space-3); }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .summary { position: static; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--fog); font-size: 15px; }
.form-status.is-error { background: #fbeaea; color: var(--befund-dark); }

.legal { max-width: 760px; }
.legal h2 { font-size: 26px; margin: var(--space-4) 0 var(--space-2); }
.legal p, .legal li { font-size: 16px; }

/* Kopfbereich mit 3D-Wien */
.hero--map { position: relative; color: #fff; background: #1a2740; padding: 0; min-height: min(860px, 92vh); display: flex; flex-direction: column; justify-content: center; isolation: isolate; }
.hero-stage { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transition: opacity 1.6s ease; }
.hero-map, .hero-map.maplibregl-map { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.map-ready .hero-map { opacity: 1; }
.map-ready .hero-poster { opacity: 0; }
.hero-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #e9a25f 0%, #b0705a 14%, #3a3f5a 34%, #1a2740 60%); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,24,40,.86) 0%, rgba(16,24,40,.55) 36%, rgba(16,24,40,0) 62%), linear-gradient(0deg, rgba(16,24,40,.7) 0%, rgba(16,24,40,0) 28%); }
.hero--map .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: var(--space-5); align-items: end; padding-top: var(--space-4); padding-bottom: var(--space-4); }
.hero--map h1 { color: #fff; max-width: 12ch; }
.hero--map .lead { color: rgba(255,255,255,.86); margin-top: var(--space-3); max-width: 36ch; }
.hero--map .quick-price { color: var(--ink); border-color: transparent; box-shadow: 0 18px 50px rgba(5,10,20,.35); }
.hero--map .hero-meta { color: rgba(255,255,255,.72); }
.hero--map .hero-meta a { color: #fff; }
.hero-proof { text-align: left; }
.proof-num { font-family: var(--serif); font-size: clamp(64px, 8vw, 112px); line-height: .9; margin: 0; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.proof-label { font-size: 17px; margin: 10px 0 0; max-width: 22ch; }
.proof-sub { font-size: 14px; color: rgba(255,255,255,.72); margin: 8px 0 0; }
.proof-sub b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-person { display: flex; align-items: center; gap: 14px; margin: var(--space-4) 0 0; padding-top: var(--space-3); border-top: 1px solid rgba(255,255,255,.22); }
.hero-person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 18%; }
.hero-person figcaption { font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.8); }
.hero-person b { color: #fff; font-weight: 600; }
.hero-credit { position: absolute; right: var(--gutter); bottom: 10px; margin: 0; font-size: 11px; color: rgba(255,255,255,.55); max-width: 60ch; text-align: right; }
.hero-credit a { color: inherit; }
.office-pin { font-family: var(--sans); font-size: 12px; font-weight: 600; color: #1a2740; background: #fff; padding: 5px 9px; border-radius: 3px; white-space: nowrap; display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.3); transform: translateY(-6px); transition: opacity .8s; }
.office-pin span { width: 8px; height: 8px; border-radius: 50%; background: var(--befund); }
.office-pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; transform: translateX(-50%); }
@media (max-width: 960px) {
  .hero--map .hero-grid { grid-template-columns: 1fr; padding-top: var(--space-5); }
  .hero-shade { background: linear-gradient(180deg, rgba(16,24,40,.55) 0%, rgba(16,24,40,.85) 55%, rgba(16,24,40,.95) 100%); }
  .hero-credit { position: static; text-align: left; padding: 0 var(--gutter) 14px; }
}

/* Zeichnung im Abschnitt „Was Sie bekommen“ */
.process-figure .elevation { color: var(--ink); }

.proof-row { display: flex; align-items: center; gap: 18px; margin: var(--space-3) 0 0; max-width: 36ch; }
.proof-row .proof-num { font-family: var(--serif); font-size: 64px; line-height: .9; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; min-width: 3.1ch; }
.proof-row .proof-label { font-size: 15px; line-height: 1.4; color: rgba(255,255,255,.86); border-left: 1px solid rgba(255,255,255,.3); padding-left: 18px; }
@media (min-width: 961px) { .hero--map .hero-grid { grid-template-columns: minmax(0, 1fr) auto; } }
.hero--map .hero-person { align-self: end; margin: 0; border-top: 0; padding: 10px 16px 10px 10px; background: rgba(16,24,40,.6); backdrop-filter: blur(6px); border-radius: 40px; }
.service-figure { display: block; margin-top: var(--space-3); max-width: 320px; color: var(--ink); }
.scan { margin: var(--space-2) 0 0; }
.scan img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.scan figcaption { font-size: 13px; color: var(--pencil); margin-top: 6px; }
.process-figure img { width: 100%; height: auto; border-radius: var(--radius); }
@media (max-width: 960px) { .hero--map .hero-person { justify-self: start; } }

@media (max-width: 960px) { .proof-row .proof-num { font-size: 48px; } .hero--map .hero-person { margin-top: var(--space-2); } }
video.loop { width: 100%; height: auto; display: block; border-radius: var(--radius); background: var(--fog); }
.process-figure video.loop { max-width: 340px; }
.jewel-video { margin: 0; }
.jewel-video video.loop { max-width: 360px; }
.jewel-video figcaption, figure.wide figcaption, .pair figcaption, .media-hero figcaption { font-size: 13px; color: var(--pencil); margin-top: 8px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: var(--space-2); }
.pair figure { margin: 0; } .pair img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); }
figure.wide { margin: var(--space-4) 0; } figure.wide img { width: 100%; height: auto; border-radius: var(--radius); }
.media-hero { float: right; width: 280px; margin: 0 0 24px 32px; } .media-hero img { width: 100%; height: auto; border-radius: var(--radius); }
@media (max-width: 760px) { .media-hero { float: none; width: 100%; margin: 0 0 24px; } .pair { grid-template-columns: 1fr; } }

/* Fahrt durch Wien: Fenster-Szenen */
.scene { margin: 0; width: 230px; pointer-events: none; opacity: 0; transform: translateY(14px) scale(.92); transform-origin: 50% 100%; transition: opacity .7s ease, transform .9s cubic-bezier(.2,.9,.3,1.2); }
.scene.is-open { opacity: 1; transform: none; }
.scene-window { width: 160px; margin: 0 auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.45)); }
.scene-window svg { display: block; width: 100%; height: auto; }
.scene figcaption { margin-top: 8px; background: rgba(16,24,40,.82); color: #fff; font-family: var(--sans); font-size: 12.5px; line-height: 1.4; padding: 8px 10px; border-radius: 4px; text-align: left; }
.scene figcaption b { font-family: var(--serif); font-weight: 400; font-size: 16px; color: #ffcf9e; margin-right: 4px; }
.scene .lift { transform-box: fill-box; transform-origin: center; }
.scene.is-open .lift { animation: lift 2.4s ease-in-out .4s infinite alternate; }
.scene.is-open .cry { animation: cry .6s ease-in-out infinite alternate; }
.scene .sway { transform-box: fill-box; transform-origin: 50% 0; }
.scene.is-open .sway { animation: sway 2.2s ease-in-out var(--d) infinite alternate; }
.scene.is-open .kamin { animation: appear 1s 1s both; }
@keyframes lift { from { transform: translateY(14px); } to { transform: translateY(-6px); } }
@keyframes cry { from { opacity: .2; } to { opacity: 1; } }
@keyframes sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.hero-controls { position: absolute; right: var(--gutter); top: 18px; display: flex; gap: 8px; }
.hero-btn { font: 600 13px var(--sans); color: #fff; background: rgba(16,24,40,.55); border: 1px solid rgba(255,255,255,.35); border-radius: 30px; padding: 8px 14px; cursor: pointer; backdrop-filter: blur(4px); }
.hero-btn:hover { background: rgba(16,24,40,.85); }
@media (max-width: 760px) { .hero-controls { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero--map:not(.map-ready) .hero-poster { animation: kenburns 28s ease-out both; transform-origin: 70% 45%; }
}
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }

/* Fachdialog 2017 */
.hero-side { display: grid; gap: 12px; justify-items: end; align-self: end; }
.hero-film { display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; color: #fff; background: rgba(16,24,40,.6); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.25); border-radius: 10px; padding: 8px 14px 8px 8px; cursor: pointer; max-width: 340px; transform-origin: 100% 100%; transition: transform .35s cubic-bezier(.2,.8,.2,1), background .2s; }
.hero-film:hover, .hero-film:focus-visible { transform: scale(1.12); background: rgba(16,24,40,.85); }
.hero-film-thumb { position: relative; flex: none; width: 112px; aspect-ratio: 16/10; border-radius: 6px; overflow: hidden; }
.hero-film-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-film-text { font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.85); }
.hero-film-text b { display: block; color: #fff; font-weight: 600; font-size: 14px; }
.play { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: var(--befund); box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.play::after { content: ""; position: absolute; left: 15px; top: 11px; border: 8px solid transparent; border-left: 12px solid #fff; border-right: 0; }
.film-section { align-items: center; }
.film-poster { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; }
.film-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.film-poster:hover img { transform: scale(1.04); }
.film-poster .play { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
.film-poster .play::after { left: 28px; top: 21px; border-width: 15px; border-left-width: 22px; border-right-width: 0; }
.film-label { position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: 13px; background: rgba(16,24,40,.7); padding: 4px 10px; border-radius: 3px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.film-dialog { width: min(1000px, 94vw); padding: 0; border: 0; border-radius: 6px; background: #000; color: #fff; }
.film-dialog::backdrop { background: rgba(10,15,25,.8); }
.film-frame { aspect-ratio: 16/9; } .film-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.film-close { position: absolute; right: 8px; top: 8px; z-index: 2; font: 600 13px var(--sans); background: rgba(255,255,255,.9); border: 0; border-radius: 20px; padding: 6px 12px; cursor: pointer; }
.film-note { margin: 0; padding: 8px 14px; font-size: 12px; color: #aab; } .film-note a { color: #fff; }
@media (max-width: 960px) { .hero-side { justify-items: start; } .hero-film { transform-origin: 0 100%; } }
.section--ink .lead, .section--ink p { color: rgba(255,255,255,.86); }
button.btn--light { background: transparent; color: #fff; }
button.btn--light:hover { background: #fff; color: var(--ink); }
/* Kopfbereich: Film oben rechts, kompakter Preis */
.hero-top { position: absolute; top: 28px; left: 0; right: 0; display: flex; justify-content: flex-end; pointer-events: none; z-index: 2; }
.hero-top .hero-film { pointer-events: auto; transform-origin: 100% 0; }
.hero--map .quick-price { max-width: 520px; padding: 14px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero--map .quick-price fieldset { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero--map .quick-price legend { float: left; margin: 0 4px 0 0; font-size: 13px; color: var(--pencil); font-weight: 500; }
.hero--map .quick-price .seg label { padding: 7px 11px; font-size: 13px; }
.hero--map .quick-price .size { margin: 0; }
.hero--map .quick-price .size label { display: none; }
.hero--map .quick-price .size select { padding: 6px 8px; font-size: 13px; }
.hero--map .quick-price .result { margin: 0; padding: 0; border: 0; gap: 12px; align-items: center; flex: 1; justify-content: flex-end; }
.hero--map .quick-price .price-big { font-size: 28px; }
.hero--map .quick-price .price-note { display: none; }
.hero--map .quick-price .btn { padding: 9px 14px; font-size: 14px; }
@media (max-width: 960px) {
  .hero-top { position: static; justify-content: flex-start; padding-top: 20px; }
  .hero-top .hero-film { transform-origin: 0 0; }
}
.hero-top { display: block; }
.hero-top .hero-film { display: flex; margin-left: auto; }
.hero--map .quick-price { max-width: 620px; flex-wrap: nowrap; }
.hero--map .quick-price fieldset { flex: none; flex-wrap: nowrap; }
.hero--map .quick-price .result { flex-wrap: nowrap; }
.hero--map .quick-price .btn { white-space: nowrap; }
@media (max-width: 960px) {
  .hero-top .hero-film { margin-left: 0; }
  .hero--map .quick-price, .hero--map .quick-price fieldset, .hero--map .quick-price .result { flex-wrap: wrap; }
}
@media (min-width: 961px) {
  .hero-top { left: auto; right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); width: auto; max-width: none; padding: 0; }
  .hero-top .hero-film { margin: 0; }
}
@media (min-width: 961px) { .hero-top { width: 340px; } }
@media (min-width: 961px) { .hero-top .hero-film { width: 100%; max-width: none; } }
@media (min-width: 961px) { .hero-top .hero-film { width: 340px !important; box-sizing: border-box; } }
/* Film unten links, Porträt unten rechts auf gleicher Höhe */
.hero-film--bottom { margin-top: var(--space-3); transform-origin: 0 100%; }
.hero--map .hero-grid { align-items: end; }

/* Schrift: Josefin Sans für Überschriften, Zahlen und Preise */
@font-face { font-family: "Josefin Sans"; src: url("/fonts/josefin.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }
:root { --display: "Josefin Sans", "Century Gothic", "Futura", sans-serif; }
h1, h2, h3, .price-big, .proof-num, .proof-row .proof-num, .quote, .steps li::before, .series .no, .scene figcaption b { font-family: var(--display); font-weight: 300; letter-spacing: 0.01em; font-style: normal; }
h1 { font-weight: 300; line-height: 1.05; }
h3 { font-weight: 400; }
/* Bauhaus: Überschriften in Kleinbuchstaben */
h1, h2 { text-transform: lowercase; }
.hero--map h1 { max-width: 14ch; }

/* Leitsatz mit aufklappendem Gedanken */
.manifest { position: relative; }
.manifest-trigger { all: unset; cursor: pointer; display: inline; }
.manifest-trigger:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 4px; }
.manifest-under { position: relative; }
.manifest-hint { display: none; margin-top: 12px; background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: #fff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (hover: none) { .manifest-hint { display: inline-block; } }
.manifest-text { position: absolute; z-index: 5; top: -8px; left: -20px; width: min(800px, calc(100vw - 2 * var(--gutter) + 20px)); max-height: min(520px, 62vh); overflow: auto; padding: 22px 26px 18px; background: rgba(14,21,36,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; color: rgba(255,255,255,.9); font-size: 15px; line-height: 1.55; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s; }
.manifest-text p { max-width: 68ch; margin: 0 0 .85em; }
.manifest-sign { font-family: var(--display); font-weight: 300; font-size: 18px; color: #fff; margin: 4px 0 0 !important; }
.manifest.is-open .manifest-text { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s ease, visibility 0s; }
@media (hover: hover) { .manifest-trigger:hover { opacity: .88; } }
@media (prefers-reduced-motion: reduce) { .manifest-text { transition: none; transform: none; } }
@media (max-width: 960px) { .manifest-text { position: relative; top: auto; left: auto; width: auto; max-height: none; display: none; margin-top: 16px; } .manifest.is-open .manifest-text { display: block; } }

/* Drei Ziele */
.chapters { list-style: none; margin: 0; padding: 0; }
.chapter { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-5); align-items: center; padding: var(--space-5) 0; border-top: 1px solid var(--line); }
.chapter:first-child { border-top: 1px solid var(--ink); }
.chapter:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.chapter:nth-child(even) .chapter-media { order: 2; }
.chapter-media { margin: 0; }
.chapter-media img, .chapter-media video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--fog); }
.chapter-media--screen img { aspect-ratio: 4 / 3; object-position: left top; box-shadow: 0 20px 50px rgba(27,42,68,.18); }
.chapter-word { font-size: clamp(56px, 7vw, 104px); line-height: .95; letter-spacing: -0.01em; font-weight: 300; margin-bottom: var(--space-3); }
.goals { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: flex; flex-wrap: wrap; gap: 8px; }
.goals li { font-size: 14px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 30px; color: var(--ink-soft); }
.chapter-body > p { max-width: 54ch; color: var(--ink-soft); }
.chapter-ref { font-size: 14px; margin: 0; }
.chapter-ref a { color: var(--pencil); }
.claim { border-top: 1px solid var(--ink); padding-top: var(--space-5); max-width: 760px; }
.claim-line { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; max-width: 22ch; margin-bottom: var(--space-3); }
.claim p:not(.claim-line) { color: var(--ink-soft); }
@media (max-width: 860px) {
  .chapter, .chapter:nth-child(even) { grid-template-columns: 1fr; gap: var(--space-3); padding: var(--space-4) 0; }
  .chapter:nth-child(even) .chapter-media { order: 0; }
  .chapter-media { max-width: 420px; }
  .chapter-media img, .chapter-media video { aspect-ratio: 4 / 3; }
}

/* Vorausgedacht */
.lead-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-5); align-items: center; }
.milestones { list-style: none; margin: 0; padding: 0; }
.milestones li { display: grid; grid-template-columns: 110px 1fr; gap: 4px 20px; padding: var(--space-3) 0; border-top: 1px solid rgba(255,255,255,.2); }
.milestones li:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.ms-when { font-family: var(--display); font-weight: 300; font-size: 26px; line-height: 1.1; color: #fff; grid-row: 1 / span 2; }
.milestones h3 { color: #fff; font-size: 22px; }
.milestones p { margin: 0; color: rgba(255,255,255,.78); font-size: 16px; }
.section--ink .section-head .lead { color: rgba(255,255,255,.8); }
@media (max-width: 860px) { .lead-grid { grid-template-columns: 1fr; } .milestones li { grid-template-columns: 1fr; } .ms-when { grid-row: auto; } }
.hero--map .lead-sub { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.72); max-width: 44ch; }
.manifest-text { cursor: pointer; padding-top: 44px; }
.manifest-close { position: absolute; top: 12px; right: 14px; background: none; border: 1px solid rgba(255,255,255,.35); border-radius: 20px; color: #fff; font: inherit; font-size: 13px; padding: 4px 12px; cursor: pointer; }
.manifest-close:hover { background: rgba(255,255,255,.12); }
@media (max-width: 960px) { .manifest-text { padding: 44px 18px 14px; background: rgba(14,21,36,.85); border-radius: 10px; } }

/* Adresssuche */
.adr-field { position: relative; }
.adr-field label { display: block; font-size: 13px; color: var(--pencil); margin-bottom: 6px; }
.adr-field input[type="text"] { width: 100%; font: inherit; font-size: 16px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: #fff; }
.adr-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 6px 0; list-style: none; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 40px rgba(10,20,40,.18); max-height: 280px; overflow: auto; }
.adr-list li { padding: 9px 14px; cursor: pointer; font-size: 15px; }
.adr-list li:hover, .adr-list li[aria-selected="true"] { background: var(--fog); }

/* Schnellpreis mit Adresse im Hero */
.hero--map .quick-adr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; align-items: center; max-width: 640px; padding: 16px 18px; }
.hero--map .quick-adr .adr-field { grid-column: 1 / -1; }
.hero--map .quick-adr .adr-field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.hero--map .quick-adr .result { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0; padding: 0; border: 0; flex-wrap: wrap; }
.hero--map .quick-adr .price-big { font-size: 30px; }
.hero--map .quick-adr .price-note { display: block; margin: 2px 0 0; font-size: 13px; color: var(--pencil); }
.hero--map .quick-adr [data-quick-facts] { margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); max-width: 40ch; }
.hero--map .quick-adr [data-quick-facts]:empty { display: none; }
.hero--map .quick-adr.is-busy .price-big { opacity: .4; }
@media (max-width: 960px) { .hero--map .quick-adr { max-width: none; } }

/* Preistabelle */
.price-table-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-5); align-items: start; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th { text-align: left; font-weight: 600; font-size: 14px; color: var(--pencil); padding: 0 0 10px; border-bottom: 1px solid var(--ink); }
.price-table th + th, .price-table td + td { text-align: right; }
.price-table td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.price-table td:nth-child(2) { font-family: var(--display); font-size: 22px; font-weight: 400; }
.price-table td:nth-child(3) { color: var(--pencil); font-size: 15px; }
.price-notes p { max-width: 56ch; }
.price-notes b { font-weight: 600; }
.price-foot { margin-top: var(--space-4); display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.price-foot .small { max-width: 60ch; }
@media (max-width: 860px) { .price-table-wrap { grid-template-columns: 1fr; } }

/* Rechner: Gebäudekarte und Regler */
.adr-field--big input[type="text"] { font-size: 18px; padding: 14px 16px; }
.adr-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); margin-top: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.adr-map { position: relative; min-height: 280px; background: var(--fog); overflow: hidden; }
.adr-tiles img { position: absolute; display: block; max-width: none; }
.adr-outline { position: absolute; inset: 0; width: 100%; height: 100%; }
.adr-outline path { fill: rgba(179,38,30,.22); stroke: var(--befund); stroke-width: 2.5; stroke-linejoin: round; }
.adr-outline circle { fill: var(--befund); stroke: #fff; stroke-width: 3; }
.adr-credit { position: absolute; right: 6px; bottom: 4px; margin: 0; font-size: 10px; color: #fff; text-shadow: 0 0 4px rgba(0,0,0,.9); }
.adr-credit a { color: #fff; }
.adr-map.is-plan .adr-credit, .adr-map.is-plan .adr-credit a { color: var(--ink-soft); text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.adr-mapswitch { position: absolute; left: 8px; top: 8px; display: flex; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.adr-mapswitch button { border: 0; background: #fff; padding: 5px 10px; font: 12.5px var(--sans); color: var(--ink-soft); cursor: pointer; }
.adr-mapswitch button + button { border-left: 1px solid var(--line); }
.adr-mapswitch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.adr-mapswitch button:focus-visible, .adr-mapswitch select:focus-visible { outline: 2px solid var(--befund); outline-offset: -2px; }
.adr-mapswitch select { border: 0; border-left: 1px solid var(--line); background: #fff; padding: 5px 6px; font: 12.5px var(--sans); color: var(--ink-soft); cursor: pointer; max-width: 150px; }
.adr-mapswitch select.is-active { background: var(--ink); color: #fff; }
.adr-maplegend { position: absolute; left: 8px; bottom: 22px; margin: 0; padding: 6px 8px; list-style: none; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: var(--radius); font-size: 11.5px; line-height: 1.5; color: var(--ink); }
.adr-maplegend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.25); }
.adr-info { padding: 18px 20px 14px 0; }
.adr-info h3 { font-size: 22px; margin-bottom: 12px; }
.adr-facts { margin: 0 0 12px; }
.adr-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; }
.adr-facts dt { color: var(--pencil); }
.adr-facts dd { margin: 0; text-align: right; font-weight: 600; }
.adr-info .hint { margin-top: 8px; }
@media (max-width: 720px) { .adr-card { grid-template-columns: 1fr; } .adr-info { padding: 0 18px 14px; } .adr-map { min-height: 220px; } }
.seg--type { margin-bottom: var(--space-3); }
.area-row label { display: block; font-size: 14px; color: var(--pencil); }
.area-out { display: block; font-family: var(--display); font-size: 34px; font-weight: 300; margin: 2px 0 10px; }
.area-row input[type="range"] { width: 100%; accent-color: var(--befund); margin: 0; }
.area-row .hint b { color: var(--ink); font-weight: 600; }
.summary .total { font-size: 44px; }
/* Anfrageformular */
.form-label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.seg--small label { padding: 8px 14px; font-size: 14px; }
.name-row { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 16px; }
.addr-row { display: grid; grid-template-columns: 1fr 90px 110px; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 600px) { .name-row { grid-template-columns: 1fr 1fr; } .name-row > div:first-child { grid-column: 1 / -1; } .addr-row { grid-template-columns: 1fr 1fr; } .addr-row > div:first-child { grid-column: 1 / -1; } }
/* Presse auf der Startseite */
.press-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.press-cards li { border-bottom: 1px solid var(--line); }
.press-cards li:nth-child(3n+2), .press-cards li:nth-child(3n+3) { border-left: 1px solid var(--line); }
.press-cards a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px 22px 20px; text-decoration: none; color: var(--ink); transition: background .15s; }
.press-cards li:nth-child(3n+1) a { padding-left: 0; }
.press-cards a:hover { background: #fff; color: var(--ink); }
.pc-outlet { font-family: var(--display); font-size: 22px; font-weight: 400; }
.pc-title { font-size: 16px; line-height: 1.45; color: var(--ink-soft); }
.pc-date { margin-top: auto; font-size: 13px; color: var(--pencil); }
@media (max-width: 860px) { .press-cards { grid-template-columns: 1fr; } .press-cards li:nth-child(n) { border-left: 0; } .press-cards a, .press-cards li:nth-child(3n+1) a { padding: 18px 0; } }
.small-house { background: #fff; border-left: 3px solid var(--befund); padding: 18px 22px; margin-bottom: var(--space-3); }
.small-house-title { font-family: var(--display); font-size: 24px; font-weight: 300; margin: 0 0 8px; }
.small-house p:not(.small-house-title):not(.small) { font-size: 16px; line-height: 1.6; }
.small-house-hint { margin: 12px 0 0; padding: 12px 14px; background: var(--fog); border-left: 3px solid var(--befund); font-size: 14px; line-height: 1.5; }
.series .body h3 { font-size: 17px; font-weight: 600; margin: 28px 0 6px; }
.aside-press-h { margin-top: 48px; }
.aside-press { list-style: none; margin: 0 0 16px; padding: 0; }
.aside-press li { border-top: 1px solid var(--line); padding: 10px 0; font-size: 15px; line-height: 1.4; }
.aside-press li a { display: block; color: inherit; text-decoration: none; }
.aside-press li a:hover { text-decoration: underline; }
.aside-press li span { font-size: 13px; color: var(--pencil); }
.aside-box:has(.aside-press) { position: static; }
a.hero-person { text-decoration: none; color: inherit; transition: background-color .2s; }
.hero-person-cap { font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.8); }
.hero--map a.hero-person:hover, .hero--map a.hero-person:focus-visible { background: rgba(16,24,40,.85); }
a.hero-person:hover b { text-decoration: underline; text-underline-offset: 3px; }
.degrees { text-transform: none; font-size: .5em; letter-spacing: .04em; white-space: nowrap; vertical-align: .35em; }
.members { background: #fff; border-top: 1px solid var(--line); padding: var(--space-4) 0; text-align: center; }
.members h2 { font-size: 22px; margin-bottom: 8px; }
.members p { font-size: 14px; color: var(--pencil); margin: 0 auto var(--space-3); max-width: 60ch; }
.member-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 56px; }
.member-logos img { height: 52px; width: auto; max-width: 150px; object-fit: contain; }
.member-logos li:nth-child(4) img, .member-logos li:nth-child(5) img { height: 64px; }
@media (max-width: 600px) { .member-logos { gap: 20px 32px; } .member-logos img { height: 40px; } .member-logos li:nth-child(4) img, .member-logos li:nth-child(5) img { height: 50px; } }
.refs { padding: var(--space-4) 0; background: #fff; border-top: 1px solid var(--line); }
.refs h2 { font-size: 22px; margin-bottom: var(--space-3); }
.refs-track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.refs-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; width: max-content; animation: refs-scroll 60s linear infinite; }
.refs-track:hover .refs-list { animation-play-state: paused; }
.refs-list li { flex: 0 0 auto; width: 150px; height: 150px; background: #fff; border: 1px solid var(--fog); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.refs-list img { width: 150px; height: 150px; object-fit: contain; }
@keyframes refs-scroll { to { transform: translateX(calc(-50% - 12px)); } }
@media (prefers-reduced-motion: reduce) { .refs-list { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 var(--gutter); } .refs-list li[aria-hidden] { display: none; } .refs-track { -webkit-mask-image: none; mask-image: none; } }
@media (max-width: 600px) { .refs-list li, .refs-list img { width: 110px; height: 110px; } }
.aside-list { list-style: none; margin: 0 0 16px; padding: 0; font-size: 15px; }
.aside-list li { padding: 6px 0; border-top: 1px solid var(--line); }
.slogan-band { background: var(--ink); color: #fff; padding: var(--space-5) 0; text-align: center; }
.slogan { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 4vw, 44px); line-height: 1.25; margin: 0 auto; max-width: 26ch; }
.slogan span { display: block; }
.slogan span:first-child { font-size: .6em; color: #c9d3e0; margin-bottom: 8px; }
/* KI-Assistent */
.kchat { position: fixed; right: 20px; bottom: 20px; z-index: 60; font-family: var(--sans); }
.kchat-open { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 600 15px/1 var(--sans); box-shadow: 0 6px 24px rgba(16,24,40,.25); cursor: pointer; }
.kchat-open:hover { background: #24324a; }
.kchat-dot { width: 9px; height: 9px; border-radius: 50%; background: #5bd38a; box-shadow: 0 0 0 3px rgba(91,211,138,.25); }
.kchat.is-open .kchat-open { display: none; }
.kchat-panel { width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100vh - 40px)); display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 18px 60px rgba(16,24,40,.28); overflow: hidden; border: 1px solid var(--line); }
.kchat-panel[hidden] { display: none; }
.kchat-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--ink); color: #fff; }
.kchat-head strong { display: block; font-size: 16px; }
.kchat-head span { font-size: 12.5px; color: #c9d3e0; }
.kchat-x { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.kchat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f6f7f9; }
.kchat-msg { max-width: 88%; padding: 10px 13px; border-radius: 12px; font-size: 15px; line-height: 1.45; }
.kchat-msg p { margin: 0 0 6px; } .kchat-msg p:last-child { margin: 0; }
.kchat-msg ul { margin: 4px 0; padding-left: 18px; }
.kchat-bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.kchat-user { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.kchat-user a { color: #fff; }
.kchat-sys { align-self: center; font-size: 13.5px; color: var(--pencil); background: none; text-align: center; }
.kchat-typing span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--pencil); animation: kchat-b 1s infinite; }
.kchat-typing span:nth-child(2) { animation-delay: .15s; } .kchat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes kchat-b { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.kchat-card { align-self: stretch; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 14px; }
.kchat-map { position: relative; height: 170px; min-height: 170px; border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.kchat-card-title { font-weight: 600; margin: 2px 2px 6px; }
.kchat-facts { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.kchat-facts dt { color: var(--pencil); } .kchat-facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.kchat-total { font-family: var(--serif); font-size: 26px; margin: 8px 2px 0; } .kchat-total span { font-family: var(--sans); font-size: 13px; color: var(--pencil); }
.kchat-sugg { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; background: #f6f7f9; }
.kchat-sugg:empty { display: none; }
.kchat-sugg button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font: 14px var(--sans); cursor: pointer; }
.kchat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.kchat-form textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 15px/1.4 var(--sans); max-height: 120px; }
.kchat-send { width: 44px; border: 0; border-radius: 10px; background: var(--befund); color: #fff; font-size: 18px; cursor: pointer; }
.kchat-note { margin: 0; padding: 0 12px 10px; font-size: 11.5px; color: var(--pencil); }
.kchat-note button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 600px) { .kchat { right: 12px; bottom: 12px; } .kchat-panel { height: calc(100vh - 24px); } }
@media print { .kchat { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kchat-voice { background: none; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; color: #fff; font-size: 16px; line-height: 1; padding: 6px 8px; cursor: pointer; margin-right: 8px; }
.kchat-voice[aria-pressed="true"] { background: rgba(255,255,255,.18); }
.kchat-mic { width: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 18px; cursor: pointer; }
.kchat-mic.is-on { background: var(--befund); color: #fff; border-color: var(--befund); animation: kchat-pulse 1.2s infinite; }
@keyframes kchat-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(179,38,30,.4); } 50% { box-shadow: 0 0 0 8px rgba(179,38,30,0); } }
.kchat-head > div { flex: 1; }
.kchat.is-speaking .kchat-voice { animation: kchat-pulse 1.2s infinite; }
/* Hausgeschichte aus dem Häuser-Kataster 1928 */
.adr-history { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 4px 0 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.adr-history-label { font-weight: 600; color: var(--ink); }
.adr-history-short { color: var(--ink-soft); font-size: 14.5px; }
.adr-history-more { border: 0; background: none; padding: 0; font: 13px var(--sans); color: var(--befund); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.adr-history-more:focus-visible, .adr-history-close:focus-visible { outline: 2px solid var(--befund); outline-offset: 2px; }
.kchat-card .adr-history { margin: 8px 2px 2px; }
.adr-history-dlg { width: min(640px, calc(100vw - 32px)); max-height: min(80vh, 760px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); overflow: auto; }
.adr-history-dlg::backdrop { background: rgba(20, 24, 32, .45); }
.adr-history-dlg-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 24px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.adr-history-dlg-head h3 { margin: 0; font-size: 22px; line-height: 1.25; text-transform: none; }
.adr-history-close { flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.adr-history-dlg .adr-history-body { padding: 8px 24px 22px; }
.adr-history-dlg p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.adr-history-tag { display: inline-block; margin-right: 6px; padding: 0 6px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 12px; color: var(--pencil); vertical-align: 1px; }
.adr-history-dlg .adr-history-src { font-size: 12.5px; color: var(--pencil); }
.adr-history-dlg .adr-history-dm, .adr-history-dlg .adr-history-links { font-size: 14px; }
.adr-history-links a { color: var(--ink); }
.adr-list li.adr-street small { color: var(--pencil); font-size: 13px; }
