/* ==========================================================================
   Novum Fertighaus GmbH – Stylesheet
   Farben: Blautöne + Weiß + warmer Holzakzent
   ========================================================================== */

:root {
  --navy: #0f2a4a;
  --navy-2: #163a63;
  --blue: #1f5fa8;
  --blue-2: #2b7bbd;
  --sky: #eaf2fb;
  --sky-2: #f5f9fd;
  --line: #d9e4f0;
  --wood: #b9824f;
  --wood-2: #d9a873;
  --text: #1b2838;
  --muted: #5b6b7f;
  --white: #fff;
  --ok: #1f7a4d;
  --err: #b3261e;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 42, 74, .06), 0 8px 24px rgba(15, 42, 74, .07);
  --shadow-lg: 0 18px 50px rgba(15, 42, 74, .16);
  --container: 1200px;
  --header-h: 76px;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { overflow-x: hidden; margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--wood-2); outline-offset: 2px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
.center { text-align: center; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.ic { width: 1.4em; height: 1.4em; flex: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; font-family: inherit; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--wood-2); color: var(--navy); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Header / Navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand img { width: 180px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { display: block; padding: .55rem .7rem; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 8px; white-space: nowrap; }
.nav-link:hover, .nav-item.is-active > .nav-link { color: var(--blue); }
.nav-item.is-active > .nav-link { box-shadow: inset 0 -2px 0 var(--wood); border-radius: 0; }
.sub-toggle { display: none; background: none; border: 0; padding: .4rem; color: var(--muted); cursor: pointer; border-radius: 6px; }
.has-sub > .nav-link { padding-right: 1.4rem; }
.has-sub > .nav-link::after { content: ""; position: absolute; right: .45rem; top: 50%; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); opacity: .55; }
.sub-menu { list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: .6rem .8rem; color: var(--text); text-decoration: none; border-radius: 8px; font-size: .95rem; font-weight: 500; }
.sub-menu a:hover, .sub-menu a[aria-current] { background: var(--sky); color: var(--blue); }

.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .4rem .75rem; font: inherit; font-weight: 650; font-size: .9rem; color: var(--navy); cursor: pointer; }
.lang-btn .ic { width: 1.1em; height: 1.1em; }
.lang-list { list-style: none; margin: 0; padding: .4rem; position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: none; }
.lang-switch.is-open .lang-list { display: block; }
.lang-list a { display: block; padding: .5rem .7rem; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .95rem; }
.lang-list a strong { display: inline-block; width: 2rem; color: var(--blue); }
.lang-list a:hover, .lang-list a[aria-current] { background: var(--sky); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: .45rem; color: var(--navy); cursor: pointer; }

@media (max-width: 1180px) {
  .nav-link { padding: .5rem .5rem; font-size: .9rem; }
  .has-sub > .nav-link { padding-right: 1.2rem; }
  .brand img { width: 160px; }
}
@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .main-nav { height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.25rem 2rem; overflow-y: auto; display: none; }
  .main-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; padding: .95rem .25rem; font-size: 1.05rem; }
  .nav-item.is-active > .nav-link { box-shadow: none; color: var(--blue); }
  .has-sub > .nav-link { padding-right: .25rem; }
  .has-sub > .nav-link::after { display: none; }
  .sub-toggle { display: inline-flex; }
  .sub-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
  .sub-menu { position: static; width: 100%; box-shadow: none; border: 0; padding: 0 0 .6rem .5rem; opacity: 1; visibility: visible; transform: none; display: none; min-width: 0; }
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: none; }
  .has-sub.is-open > .sub-menu { display: block; }
  .lang-switch { margin-top: 1.2rem; }
  .lang-btn { display: none; }
  .lang-list { display: flex; flex-wrap: wrap; gap: .4rem; position: static; box-shadow: none; border: 0; padding: 0; }
  .lang-list a { border: 1px solid var(--line); }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero (Start) ---------- */
.hero { position: relative; min-height: min(82vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,31,56,.88) 0%, rgba(10,31,56,.62) 45%, rgba(10,31,56,.1) 100%); }
.hero-inner { position: relative; z-index: 1; padding-block: 6rem 5rem; max-width: var(--container); }
.hero-inner > * { max-width: 640px; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.88); font-size: 1.2rem; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: #8a5a2b; margin-bottom: .8rem; }
.hero .kicker { color: var(--wood-2); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

.usp-strip { background: var(--navy); color: #fff; }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-block: 1.8rem; }
.usp { display: flex; gap: .9rem; align-items: flex-start; }
.usp .ic { width: 2rem; height: 2rem; color: var(--wood-2); }
.usp strong { display: block; font-size: 1rem; }
.usp span { display: block; font-size: .9rem; color: rgba(255,255,255,.72); line-height: 1.45; }
@media (max-width: 900px) { .usp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .usp-grid { grid-template-columns: 1fr; } }

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-tight { padding-block: 2rem 4rem; }
.section-tint { background: var(--sky-2); }
.section-dark { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.8); }
.section-dark .kicker { color: var(--wood-2); }
.section-head { max-width: 720px; margin: 0 auto 2.8rem; text-align: center; }
.section-head p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.split-media img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow); }
.split-media img:last-child { margin-top: 3rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.1rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 1rem; }
.steps li::before { content: counter(s); grid-row: span 2; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--blue); color: var(--blue); font-weight: 800; font-family: var(--font-head); }
.steps strong { color: var(--navy); }
.steps span { color: var(--muted); font-size: .98rem; }

.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 1.8rem 1.4rem; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.3rem); color: #fff; }
.stat span { color: rgba(255,255,255,.75); }

/* ---------- Unterseiten-Kopf ---------- */
.page-hero { position: relative; background: linear-gradient(180deg, var(--sky) 0%, #fff 100%); padding-block: 3rem 2.5rem; overflow: hidden; }
.page-hero.has-image { color: #fff; padding-block: 7rem 3.5rem; background: var(--navy); }
.page-hero-media, .page-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,31,56,.9) 0%, rgba(10,31,56,.55) 55%, rgba(10,31,56,.25) 100%); }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero.has-image h1 { color: #fff; }
.page-hero.has-image .lead { color: rgba(255,255,255,.88); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero.has-image .breadcrumb { color: rgba(255,255,255,.8); }

/* ---------- Fließtext ---------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 2.2rem; font-size: 1.55rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }
.prose-intro { margin-bottom: 2.5rem; }
.prose-after { margin-top: 3rem; }
.check-list { list-style: none; padding-left: 0 !important; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .55rem; }
.check-list li::before { content: ""; position: absolute; left: .1rem; top: .45em; width: 1.05rem; height: .6rem; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
ol.check-list { counter-reset: c; }
ol.check-list li { counter-increment: c; }
ol.check-list li::before { content: counter(c); transform: none; border: 0; width: 1.5rem; height: 1.5rem; top: .15em; left: 0; background: var(--sky); color: var(--blue); border-radius: 50%; font-size: .8rem; font-weight: 800; display: grid; place-items: center; }
.callout { background: var(--sky); border-left: 4px solid var(--blue); padding: 1rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.callout-warn { background: #fbf4ec; border-left-color: var(--wood); }
.callout p:last-child { margin-bottom: 0; }
.notice { background: var(--sky-2); border: 1px dashed var(--line); padding: 1rem 1.2rem; border-radius: var(--radius-sm); color: var(--muted); }
.figure-small { max-width: 480px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 2rem 0; }
.gallery img { border-radius: var(--radius); aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.8rem 0; }
.stat-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.5rem; }
.stat-card strong { display: block; font-family: var(--font-head); font-size: 1.8rem; }
.stat-card span { color: rgba(255,255,255,.8); }
.wall-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; align-items: start; }
.wall-sections figure { margin: 0; }
.wall-sections .wall-img { grid-column: 1 / -1; max-width: 520px; }
.wall-sections figcaption { font-weight: 700; color: var(--navy); margin: 0 0 .5rem; font-size: 1rem; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table td { padding: .45rem .2rem; border-bottom: 1px solid var(--line); }
.spec-table td:last-child { text-align: right; white-space: nowrap; color: var(--muted); }
@media (max-width: 640px) { .wall-sections, .gallery { grid-template-columns: 1fr; } }

/* ---------- Häuser ---------- */
.house-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.6rem; }
.house-grid > div[hidden] { display: none; }
.house-card { height: 100%; }
.house-card-link { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.house-card-link:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: inherit; }
.house-card-media { position: relative; aspect-ratio: 16/10; background: var(--sky); overflow: hidden; }
.house-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.house-card-link:hover .house-card-media img { transform: scale(1.04); }
.badge { position: absolute; left: 1rem; top: 1rem; background: rgba(255,255,255,.94); color: var(--navy); font-size: .78rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; }
.house-card-body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.house-card-body h3 { margin-bottom: .4rem; font-size: 1.35rem; }
.house-card-body p { color: var(--muted); font-size: .97rem; }
.facts { list-style: none; padding: 1rem 0 0; margin: auto 0 1rem; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: .8rem; border-top: 1px solid var(--line); }
.facts li { min-width: 0; }
.facts li strong { white-space: nowrap; font-size: .95rem; }
.facts li span { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.facts li strong { color: var(--navy); }
.more { display: inline-flex; align-items: center; gap: .4rem; color: var(--blue); font-weight: 700; }
.more .ic { width: 1.1em; transition: transform .2s; }
a:hover .more .ic { transform: translateX(4px); }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--navy); padding: .5rem 1rem; border-radius: 999px; font: inherit; font-size: .93rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Haus-Detail */
.house-hero { background: linear-gradient(180deg, var(--sky) 0%, #fff 100%); padding-block: 2.5rem 1.5rem; }
.house-head { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-end; justify-content: space-between; }
.house-head h1 { margin-bottom: .3rem; }
.house-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 2rem; align-items: start; }
.house-main { margin: 0; }
.house-main img { border-radius: var(--radius); width: 100%; aspect-ratio: 16/10; object-fit: cover; box-shadow: var(--shadow); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .8rem; margin-top: .8rem; }
.thumbs img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; width: 100%; border: 1px solid var(--line); background: #fff; }
.thumbs a:hover img { border-color: var(--blue); }
.house-facts { position: sticky; top: calc(var(--header-h) + 1rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.house-facts h2 { font-size: 1.2rem; }
.house-facts dl { margin: 0 0 1rem; }
.house-facts dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.house-facts dt { color: var(--muted); }
.house-facts dd { margin: 0; font-weight: 700; color: var(--navy); text-align: right; }
.house-facts .btn { margin-top: .6rem; }
.house-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.room-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 1rem; box-shadow: var(--shadow); }
.room-table th, .room-table td { padding: .6rem .9rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .97rem; }
.room-table thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.room-table .num { text-align: right; white-space: nowrap; }
.room-table td:first-child { color: var(--muted); width: 2.5rem; }
.room-total th { color: var(--navy); }
.room-total td { font-weight: 800; color: var(--navy); }
.floor-h { font-size: 1rem; margin: 1.2rem 0 .5rem; color: var(--blue); }
@media (max-width: 900px) { .house-layout, .house-detail { grid-template-columns: 1fr; } .house-facts { position: static; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(7, 20, 36, .88); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: var(--radius-sm); background: #fff; }
.lightbox-close { position: fixed; right: 1rem; top: 1rem; background: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: var(--navy); }

/* ---------- Karten / Leistungen ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.link-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.link-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: inherit; }
.link-card-media { aspect-ratio: 16/9; overflow: hidden; background: var(--sky); }
.link-card-media img { width: 100%; height: 100%; object-fit: cover; }
.link-card-body { padding: 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.link-card-body p { color: var(--muted); font-size: .97rem; }
.link-card-body .more { margin-top: auto; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.service .ic { width: 2.6rem; height: 2.6rem; color: var(--blue); background: var(--sky); border-radius: 12px; padding: .5rem; margin-bottom: 1rem; }
.service p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ---------- Partner ---------- */
.trade { padding-block: 2rem; border-top: 1px solid var(--line); }
.trade:first-of-type { border-top: 0; }
.trade-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.3rem; }
.trade-head h2 { font-size: 1.45rem; margin-bottom: .2rem; }
.trade-head p { color: var(--muted); margin: 0; }
.trade-icon { flex: none; width: 3rem; height: 3rem; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.partner { display: flex; gap: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.partner-logo { flex: none; width: 64px; height: 64px; }
.partner-logo img, .monogram { width: 64px; height: 64px; border-radius: 14px; object-fit: contain; }
.partner h3 { font-size: 1.08rem; margin-bottom: .2rem; }
.partner p { margin: 0 0 .4rem; color: var(--muted); font-size: .95rem; }
.partner-city { display: flex; align-items: center; gap: .3rem; font-size: .88rem !important; }
.partner-city .ic { width: 1em; height: 1em; }

/* ---------- Kontakt ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .ic { color: var(--blue); margin-top: .15rem; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 1rem; color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(31, 95, 168, .14); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field.check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.field.check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--blue); }
.field.check label { font-weight: 400; color: var(--text); }
.field.check .err { grid-column: 2; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--err); }
.err { color: var(--err); font-size: .88rem; display: block; margin-top: .3rem; }
.error-box { background: #fdecea; color: var(--err); padding: .8rem 1rem; border-radius: var(--radius-sm); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success { text-align: center; padding: 2rem 1rem; }
.success .ic { width: 3.5rem; height: 3.5rem; color: var(--ok); background: #e6f4ec; border-radius: 50%; padding: .8rem; margin: 0 auto 1rem; }
@media (max-width: 860px) { .contact-layout, .field-row { grid-template-columns: 1fr; } }

/* ---------- CTA + Footer ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue) 0%, var(--navy) 100%); color: #fff; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 3rem; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.cta-band p { margin: 0; color: rgba(255,255,255,.82); }

.site-footer { background: #0a1f38; color: rgba(255,255,255,.75); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-block: 3.5rem 2.5rem; }
.footer-brand img { width: 190px; margin-bottom: 1rem; }
.footer-h { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current] { color: var(--wood-2); }
.footer-links { list-style: none; padding: 0; margin: 0; line-height: 2; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.3rem; font-size: .88rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- KI-Berater (Platzhalter) ---------- */
.ai-chat { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 150; }
.ai-chat-toggle { display: inline-flex; align-items: center; gap: .5rem; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: .85rem 1.2rem; font: inherit; font-weight: 650; box-shadow: var(--shadow-lg); cursor: pointer; }
.ai-chat-toggle:hover { background: var(--blue); }
.ai-chat-panel { position: absolute; right: 0; bottom: calc(100% + .8rem); width: min(370px, calc(100vw - 2.5rem)); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; max-height: min(560px, 75vh); }
.ai-chat-panel[hidden] { display: none; }
.ai-chat-panel header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.1rem; background: var(--navy); color: #fff; }
.ai-chat-panel header small { display: block; color: var(--wood-2); font-size: .8rem; }
.ai-chat-close { background: none; border: 0; color: #fff; cursor: pointer; padding: .3rem; }
.ai-chat-log { padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: .6rem; flex: 1; background: var(--sky-2); }
.msg { padding: .65rem .9rem; border-radius: 14px; max-width: 88%; font-size: .95rem; line-height: 1.45; }
.msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.msg.user { background: var(--blue); color: #fff; align-self: flex-end; }
.msg a { display: block; margin-top: .3rem; font-weight: 600; }
.ai-chat-form { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--line); }
.ai-chat-form input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: .6rem 1rem; font: inherit; min-width: 0; }
.ai-chat-form .btn { padding: .6rem 1rem; }
@media (max-width: 520px) { .ai-chat-toggle span { display: none; } .ai-chat-toggle { padding: .9rem; } }

@media print {
  .site-header, .ai-chat, .cta-band, .site-footer { display: none; }
}

/* Tabellen im Fließtext auf kleinen Bildschirmen */
@media (max-width: 600px) {
  .prose .room-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .prose .room-table th, .prose .room-table td { padding: .5rem .6rem; font-size: .88rem; }
  .stat-card strong { font-size: 1.5rem; }
}
