/* =====================================================================
   Immo-Group-West – Theme „IGW 2027“ (Contao 5.3, ohne Bootstrap)
   Abschnitte = Artikel. Artikel-Klassen (Experteneinstellungen):
     section--sand   warmer Hintergrund
     section--navy   dunkler Hintergrund, helle Schrift
     section--tight  weniger Abstand oben/unten
     section--flush  ohne Innenabstand (volle Breite)
   Element-Klassen: btn, btn--accent, btn--ghost, btn--light, lead, eyebrow
   ===================================================================== */

@font-face { font-family: "Bitter"; src: url("../../theme/fonts/bitter/bitter-v33-latin-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bitter"; src: url("../../theme/fonts/bitter/bitter-v33-latin-500.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  --nav-breakpoint: 1320px; /* ab hier ausgeklappte Menüleiste; muss zu den beiden @media-Regeln „1320px“ unten passen (site.js liest den Wert) */
  --navy: #213a8f;
  --navy-700: #1a2f75;
  --navy-900: #111d4a;
  --navy-50: #eef1fa;
  --accent: #a65a22;
  --accent-700: #87481b;
  --accent-light: #f0b98b;
  --sand: #f6f3ee;
  --ink: #1a2133;
  --muted: #5a6275;
  --line: #e2ddd3;
  --font-head: "Bitter", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 8vw, 112px);
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgb(17 29 74 / .06), 0 8px 24px rgb(17 29 74 / .08);
  --shadow-lg: 0 18px 50px rgb(17 29 74 / .18);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
/* Touch-Tablets (ab 641px, Finger statt Maus): Grundgröße 112,5 % → Fließtext ≈ 19px. Gemessen 18.11.2026 auf einem
   Galaxy Tab (880 × 1408 CSS-px, DPR 1,5): 96 CSS-px = 16 mm, also Handy-Pixeldichte bei Tablet-Leseabstand – 17px wirkten wie 14px.
   Alles in rem wächst mit; die Menüleiste bleibt gleich groß (siehe „Kopf“), damit sie quer einzeilig passt. */
@media (pointer: coarse) and (min-width: 641px) { html { font-size: 112.5%; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font-body); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
figure { margin: 0; }
a { color: var(--navy); text-underline-offset: .18em; }
a:hover { color: var(--navy-700); }
/* Fokus-Ring überall mit gerundeten Ecken: die Outline folgt dem border-radius des Elements.
   Elemente ohne eigenen Radius bekommen per :where() (Spezifität 0) einen kleinen – eigene Radien (Buttons, Karten) gewinnen. */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
:where(:focus-visible) { border-radius: var(--focus-radius, 4px); }
/* in Containern mit overflow:hidden würde der Ring abgeschnitten → nach innen legen */
.grid--tiles > :focus-visible, .expose-gallery__item:focus-visible, .estate__img :focus-visible { outline-offset: -5px; }
p, ul, ol, dl, table { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 500; line-height: 1.18; margin: 0 0 .5em; color: var(--navy-900); letter-spacing: -.01em; hyphens: auto; overflow-wrap: break-word; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h4, h5, h6 { font-size: 1.1rem; }
.lead, .lead p { font-size: 1.18rem; color: var(--muted); }
.eyebrow, p.eyebrow { font: 600 .78rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .9rem; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: #fff; }
.skip:focus { left: 8px; }
.invisible, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Abschnitte (Artikel) ---------- */
.site-main > .mod_article {
  padding-block: var(--section-y);
  padding-inline: max(var(--gutter), (100% - var(--wrap)) / 2);
}
.site-main > .mod_article:not(.section--sand, .section--navy, .fullwidth-bg-gray, .section--flush, .section--tight):not(:has(> .stage, > .page-hero:first-child)) + .mod_article:not(.section--sand, .section--navy, .fullwidth-bg-gray) { padding-top: 0; }
.site-main > .mod_article:has(> .stage, > .page-hero:first-child), .site-main > .mod_article.section--flush { padding: 0; }
.section--sand, .fullwidth-bg-gray { background: var(--sand); }
.section--navy { background: var(--navy-900); color: #dfe4f5; }
.section--navy :is(h1, h2, h3, h4) { color: #fff; }
.section--navy a { color: #fff; }
.section--tight { --section-y: clamp(32px, 4vw, 56px); }
.mod_article > :last-child { margin-bottom: 0; }

/* ---------- Buttons (auch als Klasse an Hyperlink-Elementen: btn btn--accent …) ---------- */
.btn, .ce_hyperlink.btn a, a.btn, .content-hyperlink.btn a {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none;
  color: var(--fg); background: var(--bg); border: 2px solid var(--bg); border-radius: var(--radius);
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.ce_hyperlink.btn, .content-hyperlink.btn { all: unset; display: inline-block; }
.ce_hyperlink.btn.align-center, .content-hyperlink.btn.align-center { display: block; text-align: center; }
.btn:hover, .ce_hyperlink.btn a:hover { --bg: var(--navy-700); color: var(--fg); }
.btn--accent, .btn--accent a, .btn-primary { --bg: var(--accent) !important; }
.btn--accent:hover, .btn--accent a:hover { --bg: var(--accent-700) !important; }
.btn--ghost a, a.btn--ghost, .btn--ghost:is(button) { background: transparent; color: var(--navy); border-color: currentColor; }
.btn--ghost a:hover, a.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--light a, a.btn--light { --bg: #fff; --fg: var(--navy-900); }
.btn--outline-light a, a.btn--outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .6); }
.btn--outline-light a:hover, a.btn--outline-light:hover { background: #fff; color: var(--navy-900); }
.btn svg { width: 1.1em; height: 1.1em; }
.icon-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sand); color: var(--navy-900); font-size: 1.5rem; line-height: 1; cursor: pointer; }

/* ---------- Kopf ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.topbar { background: var(--navy-900); color: #c9d1ec; font-size: .86rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 38px; flex-wrap: wrap; }
.topbar p { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .mod_nodes, .topbar [class*="ce_"], .topbar [class*="content-"] { margin: 0; }
/* Sprachwechsel */
.lang-switch, .mod_changelanguage ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.lang-switch a, .lang-switch strong { display: block; padding: 2px 8px; border-radius: 3px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #fff; text-decoration: none; }
.lang-switch strong { background: rgb(255 255 255 / .14); }

.navbar__bar { background: #fff; border-bottom: 1px solid var(--line); }
.navbar__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { flex: none; display: block; line-height: 0; color: var(--navy); }
.brand svg, .brand img { width: 236px; height: auto; }
.navbar__panel { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.navbar__panel-head { display: none; }
.navbar__menu ul { list-style: none; margin: 0; padding: 0; }
.navbar__menu .level_1 { display: flex; gap: 4px; }
.navbar__menu .level_1 > li { position: relative; }
.navbar__menu .level_1 > li > :is(a, strong) { display: block; padding: 10px 14px; white-space: nowrap; font-weight: 500; font-size: .98rem; color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.navbar__menu .level_1 > li > a:hover, .navbar__menu .level_1 > li:has(:focus-visible) > a { background: var(--navy-50); color: var(--navy); }
.navbar__menu .level_1 > li > :is(strong, .trail) { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.navbar__menu .level_1 > .has-sub > :is(a, strong)::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.navbar__menu .sub-toggle { display: none; }
.navbar__menu .level_2 { position: absolute; left: 0; top: 100%; min-width: 290px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; z-index: 5; }
/* Aufklappmenü: Maus per Hover (nur Geräte mit Hover), Tastatur per :focus-visible, Touch per Pfeil-Knopf (aria-expanded).
   :focus-within würde auf Touchgeräten nach einem Tipp hängen bleiben bzw. nur kurz aufblitzen. */
@media (hover: hover) { .navbar__menu .has-sub:hover > .level_2 { opacity: 1; visibility: visible; transform: none; } }
.navbar__menu .has-sub:has(:focus-visible) > .level_2, .navbar__menu .sub-toggle[aria-expanded="true"] + .level_2 { opacity: 1; visibility: visible; transform: none; }
/* Touchgeräte mit Desktop-Leiste (z. B. Tablet quer): eigener Pfeil-Knopf neben dem Hauptpunkt, Tipp auf den Text öffnet die Seite */
@media (hover: none) and (min-width: 1320px) {
  .navbar__menu .level_1 > li { display: flex; align-items: center; }
  .navbar__menu .level_1 > li > :is(a, strong) { padding-inline: 12px; }
  .navbar__menu .level_1 > .has-sub > :is(a, strong) { padding-right: 0; }
  .navbar__menu .level_1 > .has-sub > :is(a, strong)::after { display: none; }
  .navbar__menu .sub-toggle { display: grid; place-items: center; width: 32px; height: 44px; padding: 0; border: 0; border-radius: var(--radius); background: none; color: var(--ink); cursor: pointer; }
  .navbar__menu .sub-toggle::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
  .navbar__menu .sub-toggle[aria-expanded="true"] { background: var(--navy-50); color: var(--navy); }
  .navbar__menu .sub-toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }
}
.navbar__menu .level_2 :is(a, strong) { display: block; padding: 8px 12px; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 400; }
.navbar__menu .level_2 a:hover { background: var(--sand); color: var(--navy); }
.navbar__menu .level_2 strong { color: var(--navy); font-weight: 600; }
.navbar__menu .invisible { display: none; }
.navbar__actions { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.navbar__actions p, .navbar__actions [class*="ce_"], .navbar__actions [class*="content-"] { margin: 0; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { content: ""; display: block; position: relative; width: 20px; height: 2px; margin: auto; background: var(--navy-900); }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.navbar-backdrop { position: fixed; inset: 0; z-index: 60; background: rgb(17 29 74 / .5); }
.site-header:has(.navbar__panel.is-open) { z-index: 70; }
/* Touch-Tablets mit Menüleiste: Menüpunkte und Kopf-Button nicht mit der größeren Grundgröße (112,5 %) wachsen lassen */
@media (pointer: coarse) and (min-width: 1320px) {
  .navbar__menu .level_1 > li > :is(a, strong) { font-size: calc(.98rem / 1.125); }
  .navbar__actions :is(a, .btn) { font-size: calc(1rem / 1.125); }
}

/* Seitenmenü unterhalb des Umbruchpunkts (--nav-breakpoint = 1320px) */
@media (max-width: 1319.98px) {
  .menu-btn { display: block; }
  .navbar__panel { position: fixed; inset: 0 0 0 auto; z-index: 61; width: min(420px, 92vw); margin: 0; flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto; background: #fff; box-shadow: var(--shadow-lg); transform: translateX(100%); visibility: hidden; }
  /* beim Öffnen sofort sichtbar (sonst kann der Fokus nicht ins Menü), beim Schließen erst nach der Animation verborgen */
  .navbar__panel.is-open { transform: none; visibility: visible; }
  /* Gleiten nur beim Öffnen/Schließen (site.js setzt .is-animating) – nicht beim Ändern der Fenstergröße */
  .navbar__panel.is-animating { transition: transform .2s ease-out, visibility 0s linear .2s; }
  .navbar__panel.is-open.is-animating { transition: transform .2s ease-out, visibility 0s; }
  .navbar__panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
  .navbar__panel-title { margin: 0; font: 600 1.1rem var(--font-head); color: var(--navy-900); }
  .navbar__menu { padding: 8px 20px; }
  .navbar__menu .level_1 { display: block; }
  .navbar__menu .level_1 > li { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .navbar__menu .level_1 > li > :is(a, strong) { padding: 14px 4px; font-size: 1.08rem; font-weight: 600; color: var(--navy-900); box-shadow: none; }
  .navbar__menu .level_1 > .has-sub > :is(a, strong)::after { display: none; }
  .navbar__menu .sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--accent); font-size: 1.4rem; }
  .navbar__menu .sub-toggle::before { content: "+"; }
  .navbar__menu .sub-toggle[aria-expanded="true"]::before { content: "–"; }
  .navbar__menu .level_2 { position: static; grid-column: 1 / -1; display: none; min-width: 0; padding: 0 0 12px 8px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .navbar__menu .sub-toggle[aria-expanded="true"] + .level_2 { display: block; }
  .navbar__actions { flex-direction: column; align-items: stretch; padding: 16px 20px 24px; }
  .navbar__actions .btn, .navbar__actions .btn a { width: 100%; }
}
@media (max-width: 640px) { .brand svg, .brand img { width: 190px; } }

/* ---------- Startseiten-Bühne ---------- */
.stage { position: relative; isolation: isolate; color: #fff; }
.stage__media { position: absolute; inset: 0; z-index: -1; }
.stage__media :is(figure, picture, img) { width: 100%; height: 100%; }
.stage__media img { object-fit: cover; object-position: 50% 40%; }
.stage__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(17 29 74 / .88) 0%, rgb(17 29 74 / .55) 45%, rgb(17 29 74 / .05) 80%); }
.stage__inner { min-height: min(78vh, 720px); display: grid; align-content: center; padding-block: 80px 120px; }
.stage h1 { color: #fff; max-width: 15ch; margin-bottom: .4em; }
.stage .lead, .stage .lead p { color: #e3e8f7; max-width: 46ch; }
.stage__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4rem 0 0; }
.stage__badge { display: inline-flex; align-items: center; gap: 10px; width: fit-content; margin: 0 0 1.2rem; padding: 6px 14px 6px 6px; border: 1px solid rgb(255 255 255 / .2); border-radius: 99px; background: rgb(255 255 255 / .12); font-size: .9rem; }
.stage__badge b { padding: 2px 10px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 640px) {
  .stage__inner { min-height: 0; padding-block: 56px 72px; }
  .stage__media::after { background: linear-gradient(180deg, rgb(17 29 74 / .55), rgb(17 29 74 / .9)); }
  .stage__actions .btn { flex: 1 1 100%; }
}

/* ---------- Seitenkopf Unterseiten ---------- */
.page-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 36%); min-height: 420px; background: var(--navy); color: #fff; }
.page-hero__img :is(figure, picture, img) { width: 100%; height: 100%; }
.page-hero__img img { object-fit: cover; }
.page-hero__text { display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding: clamp(28px, 4vw, 56px); }
.page-hero__text h1, .page-hero__title { margin: 0; color: #fff; font: 500 clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem)/1.18 var(--font-head); hyphens: auto; }
.page-hero__facts { display: grid; gap: 12px; margin: 0; }
.page-hero__facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #c3cbea; }
.page-hero__facts dd { margin: 0; font: 500 1.4rem var(--font-head); }
@media (max-width: 960px) { .page-hero { grid-template-columns: minmax(0, 1fr); } .page-hero__img { aspect-ratio: 16 / 9; } }

/* ---------- Bestandsinhalte (Text mit Bild, Infobox) ---------- */
.igwBox { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto; align-content: center; column-gap: clamp(24px, 5vw, 64px); }
.igwBox > :is(figure, .image_container) { grid-column: 1; grid-row: 1 / 3; align-self: center; border-radius: var(--radius-lg); overflow: hidden; margin: 0; }
.igwBox > :not(figure, .image_container) { grid-column: 2; }
.igwBox:is(.igwBox--imageRight, .igwBox--imageright) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.igwBox:is(.igwBox--imageRight, .igwBox--imageright) > :is(figure, .image_container) { grid-column: 2; }
.igwBox:is(.igwBox--imageRight, .igwBox--imageright) > :not(figure, .image_container) { grid-column: 1; }
.igwBox img { width: 100%; }
@media (max-width: 860px) {
  .igwBox, .igwBox:is(.igwBox--imageRight, .igwBox--imageright) { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .igwBox > *, .igwBox:is(.igwBox--imageRight, .igwBox--imageright) > * { grid-column: 1 !important; grid-row: auto !important; }
}
.info-box { padding: 24px 28px; border-left: 4px solid var(--accent); background: var(--sand); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 3rem; }


/* ---------- Angebotskarten (Maklermodul, Template makler_list_igw) ---------- */
.estates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 32px 0; }
.estate { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: box-shadow .2s, transform .2s; }
.estate:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.estate__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.estate__img :is(picture, img) { width: 100%; height: 100%; }
.estate__img img { object-fit: cover; transition: transform .5s; }
.estate:hover .estate__img img { transform: scale(1.04); }
.estate__tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.tag { padding: 4px 10px; border-radius: 99px; background: #fff; color: var(--navy-900); font: 600 .74rem/1.3 var(--font-body); letter-spacing: .04em; text-transform: uppercase; }
.tag--kauf { background: var(--navy); color: #fff; }
.tag--miete { background: #2f7a5b; color: #fff; }
.tag--neu { background: var(--accent); color: #fff; }
.estate__body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.estate__place { margin: 0 0 6px; font-size: .86rem; color: var(--muted); }
.estate__place::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: 6px; border-radius: 50% 50% 50% 0; background: var(--accent); transform: rotate(-45deg); }
.estate h3 { display: -webkit-box; margin: 0 0 14px; overflow: hidden; font-size: 1.12rem; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.estate h3 a { color: inherit; text-decoration: none; }
.estate h3 a::after { content: ""; position: absolute; inset: 0; }
.estate h3 a:focus-visible { outline: none; }
.estate:has(h3 a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.estate__facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: auto 0 16px; padding: 0; list-style: none; font-size: .92rem; color: var(--muted); }
.estate__facts b { color: var(--ink); font-weight: 600; }
.estate__price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.estate__price strong { font: 500 1.3rem var(--font-head); color: var(--navy-900); }
.estate__price span { font-size: .82rem; color: var(--muted); }
.estate-list__empty { padding: 32px; text-align: center; background: var(--sand); border-radius: var(--radius-lg); }
.align-center, .ce_hyperlink.align-center, .content-hyperlink.align-center { display: block; text-align: center; }
@media (max-width: 960px) { .estates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .estates { grid-template-columns: minmax(0, 1fr); } }


/* ---------- Abschnitts-Kopf, Raster, Karten (Inhaltselement „Karte / Kachel“) ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin-bottom: .3em; }
.section-head .lead { margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .15s; }
a:hover > .link-arrow::after, .link-arrow:hover::after { transform: translateX(3px); }
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid > * { margin: 0; }
.card__text > :last-child { margin-bottom: 0; }

/* Symbol (Vertrauensleiste) */
.card--icon { display: flex; gap: 14px; align-items: center; }
.card--icon .card__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy-50); overflow: hidden; }
.card--icon .card__icon img { width: 26px; height: 26px; object-fit: contain; }
.card--icon .card__icon:has(img[src$=".png"], img[src$=".webp"]) { background: none; border-radius: 6px; }
.card--icon .card__icon:has(img[src$=".png"], img[src$=".webp"]) img { width: 52px; height: 52px; }
.card__title { display: block; color: var(--navy-900); font-size: .98rem; }
.card--icon .card__text, .card--icon .card__text p { margin: 0; font-size: .86rem; line-height: 1.4; color: var(--muted); }

/* Kacheln (Leistungen) */
.grid--tiles { gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.card--tile { display: flex; flex-direction: column; gap: 10px; padding: 28px 26px; background: #fff; color: var(--ink); text-decoration: none; transition: background .15s; }
a.card--tile:hover { background: var(--navy-50); color: var(--ink); }
.card--tile .card__icon img { width: 32px; height: 32px; }
.card--tile h3 { margin: 6px 0 0; font-size: 1.08rem; }
.card--tile .card__text, .card--tile .card__text p { font-size: .93rem; line-height: 1.5; color: var(--muted); }
.card--tile .link-arrow { margin-top: auto; font-size: .9rem; color: var(--accent-700); }

/* Große Bildkarte (Zielgruppen) */
.card--feature { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 460px; overflow: hidden; border-radius: var(--radius-lg); color: #fff; }
.card--feature .card__media { position: absolute; inset: 0; z-index: -2; }
.card--feature .card__media :is(figure, picture, img) { width: 100%; height: 100%; }
.card--feature .card__media img { object-fit: cover; transition: transform .6s; }
.card--feature:hover .card__media img { transform: scale(1.04); }
.card--feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(17 29 74 / .05) 0%, rgb(17 29 74 / .6) 32%, rgb(17 29 74 / .94) 62%); }
.card--feature .card__body { padding: clamp(24px, 3vw, 40px); }
.card--feature .eyebrow { color: var(--accent-light); }
.card--feature h3 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); }
.card--feature .card__text p { color: #dbe1f3; max-width: 44ch; }
.card--feature .card__text ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.card--feature .card__text ul a { display: block; padding: 6px 12px; border: 1px solid rgb(255 255 255 / .35); border-radius: 99px; color: #fff; text-decoration: none; font-size: .88rem; }
.card--feature .card__text ul a:hover { background: #fff; color: var(--navy-900); }

/* Ablauf in Schritten */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split__aside { position: sticky; top: calc(var(--header-h) + 64px); }
.split__aside .lead { margin-bottom: 1.4rem; }
.steps { counter-reset: step; }
.card--step { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.card--step:last-child { border-bottom: 1px solid var(--line); }
.card--step::before { content: counter(step, decimal-leading-zero); padding-top: 2px; font: 500 1.5rem/1 var(--font-head); color: var(--accent); }
.card--step h3 { margin-bottom: 4px; font-size: 1.12rem; }
.card--step .card__text, .card--step .card__text p { color: var(--muted); font-size: .98rem; }

/* Ansprechpartner */
.card--person { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card--person .card__photo { aspect-ratio: 4 / 3; background: var(--navy-50); }
.card--person .card__photo :is(figure, picture, img) { width: 100%; height: 100%; }
.card--person .card__photo img { object-fit: cover; object-position: 50% 25%; }
.card--person .card__body { padding: 22px 24px 24px; }
.card--person h3 { margin-bottom: 8px; }
.card--person .card__text { color: var(--muted); }
.card--person .card__text a { font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }

/* Bewertungsbox */
.cta-band { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; overflow: hidden; padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-lg); background: var(--navy); color: #d5dcf2; }
.cta-band::after { content: ""; position: absolute; right: -70px; bottom: -110px; width: 300px; height: 300px; border: 14px solid rgb(255 255 255 / .06); pointer-events: none; }
.cta-band :is(h2, h3) { color: #fff; }
.cta-band .eyebrow { color: var(--accent-light); }
.cta-band ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cta-band li { display: flex; gap: 10px; color: #fff; }
.cta-band li::before { content: "✓"; color: var(--accent-light); font-weight: 700; }
.cta-band__actions { position: relative; z-index: 1; display: grid; gap: 12px; justify-items: start; }

/* Bild + Text nebeneinander */
.split--media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.split--media .split__media :is(figure, img) { width: 100%; border-radius: var(--radius-lg); }
.split__body .ce_hyperlink, .split__body .content-hyperlink { display: inline-block; margin: 0 8px 8px 0; }
.grid + :is(.ce_hyperlink, .content-hyperlink) { margin-top: 32px; }

@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--2, .split, .split--media, .cta-band { grid-template-columns: minmax(0, 1fr); }
  .split__aside { position: static; }
  .cta-band::after { display: none; }
}
@media (max-width: 640px) {
  .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .grid--4:not(.grid--tiles) { gap: 18px; }
  .card--feature { min-height: 420px; }
}


/* ---------- Gerüst für Bestandsinhalte (alte Bootstrap-Klassen, nur was im Inhalt vorkommt) ---------- */
.max-width-75ch > * { max-width: 75ch; }
.mb-0 { margin-bottom: 0 !important; } .mb-5 { margin-bottom: 3rem; } .d-none { display: none !important; }
.h3 { font: 500 1.3rem/1.25 var(--font-head); color: var(--navy-900); }
.info-box--primary { background: var(--navy-50); border-left-color: var(--navy); }
.alert { padding: 14px 18px; border-radius: var(--radius); background: var(--sand); }
.alert-danger { background: #fdecea; color: #8a1c13; }
.ce_hyperlink.btn-primary a { --bg: var(--navy); }
.igw-headline { margin-bottom: 1.2rem; }
.ce_headline { margin-top: 0; }
.mod_article > :is(.ce_text, .ce_headline, .content-text) + :is(.ce_text, .ce_headline, .content-text, .ce_form, .mod_faqpage) { margin-top: 1.5rem; }

/* Kontakt-Karten (Node „ContactCards“) */
.contactCards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.contactCards > .col { min-width: 0; }
.contactCards .border { height: 100%; padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.contactCards .h6 { font: 500 1.1rem/1.3 var(--font-head); color: var(--navy-900); }
.contactCards table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.contactCards td:first-child { width: 4.5em; }
.contactCards td { padding: 2px 12px 2px 0; vertical-align: top; overflow-wrap: anywhere; }
@media (max-width: 760px) { .contactCards { grid-template-columns: minmax(0, 1fr); } }

/* Sitemap (Template nav_list_group) */
.list-group { display: grid; gap: 2px; }
.list-group .list-group { margin: 2px 0 8px 20px; }
.list-group-item { display: block; padding: 8px 12px; border-radius: var(--radius); text-decoration: none; }
.list-group-item:hover { background: var(--sand); }
.list-group-item.active { font-weight: 600; color: var(--navy); }

/* FAQ (Template mod_faqpage im Theme: <details>) */
.faq { display: grid; gap: 28px; }
.faq__group > h2 { font-size: 1.5rem; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-of-type { border-top: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: 1.1rem; }
.faq__item summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--accent); }
.faq__item[open] summary::after { content: "–"; }
.faq__answer { padding: 0 4px 18px; color: var(--muted); }
.faq__answer > :last-child { margin-bottom: 0; }

/* Formulare */
.ce_form, .mod_login, .mod_lostPassword { max-width: 760px; }
.formbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.formbody > * { grid-column: 1 / -1; margin: 0; }
.formbody > .widget-text, .formbody > .widget-select:not(:has(select[multiple])) { grid-column: auto; }
.formbody label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9rem; }
.formbody :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="date"], select, textarea) { width: 100%; padding: 12px 14px; font: 400 1rem var(--font-body); color: var(--ink); background: #fff; border: 1px solid #cdc7bb; border-radius: var(--radius); }
.formbody :is(input, select, textarea):focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgb(33 58 143 / .18); }
.formbody textarea { min-height: 140px; }
.formbody fieldset { margin: 0; padding: 0; border: 0; }
.formbody .checkbox_container span, .formbody .radio_container span { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.formbody input[type="checkbox"], .formbody input[type="radio"] { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--navy); }
.formbody .mandatory .mandatory, .formbody span.mandatory { color: var(--accent); }
.formbody .error { color: #b3261e; font-size: .9rem; }
.form-alert { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0 0 4px; padding: 14px 16px; border: 1px solid #e8b4ae; border-left: 4px solid #b3261e; border-radius: var(--radius); background: #fdf1ef; color: #7a1a14; }
.form-alert::before { content: "!"; grid-row: span 2; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: #b3261e; color: #fff; font: 700 .9rem/1 var(--font-body); }
.form-alert p { margin: 0; line-height: 1.5; }
.form-alert__text { font-weight: 500; }
.form-alert__link a { color: #7a1a14; font-weight: 600; }
.form-alert:focus-visible { outline-offset: 3px; }
.formbody [aria-invalid="true"] { border-color: #b3261e; }

/* Downloads (Element „Downloads“/„Download“, z. B. Datenraum): Karten mit Dateityp, Titel, Größe und Download-Symbol */
:is(.ce_downloads, .content-downloads) ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.download-element { margin: 0; padding: 0; --ext: "Datei"; }
.download-element::marker { content: none; }
.download-element a { --focus-radius: var(--radius); display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 14px; height: 100%; box-sizing: border-box; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); font-weight: 600; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.download-element a::before { content: var(--ext); grid-row: 1 / 3; display: grid; place-items: center; min-width: 44px; height: 48px; padding: 0 6px; box-sizing: border-box; border-radius: 4px; background: var(--navy-50); color: var(--navy); font: 700 .72rem/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; }
.download-element a::after { content: ""; grid-column: 3; grid-row: 1 / 3; width: 22px; height: 22px; background: currentColor; color: var(--navy); -webkit-mask: var(--icon-download) center / contain no-repeat; mask: var(--icon-download) center / contain no-repeat; transition: color .15s, transform .15s; }
.download-element .size { grid-column: 2; color: var(--muted); font-size: .85rem; font-weight: 400; }
.download-element a:hover { border-color: var(--navy); background: var(--navy-50); box-shadow: var(--shadow); }
.download-element a:hover::before { background: #fff; }
.download-element a:hover::after { color: var(--accent); transform: translateY(2px); }
.download-element { --icon-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E"); }
.ext-pdf { --ext: "PDF"; }
:is(.ext-doc, .ext-docx, .ext-odt, .ext-rtf) { --ext: "DOC"; }
:is(.ext-xls, .ext-xlsx, .ext-ods, .ext-csv) { --ext: "XLS"; }
:is(.ext-ppt, .ext-pptx, .ext-odp) { --ext: "PPT"; }
:is(.ext-jpg, .ext-jpeg, .ext-png, .ext-webp, .ext-gif, .ext-svg) { --ext: "Bild"; }
:is(.ext-zip, .ext-rar, .ext-7z) { --ext: "ZIP"; }
:is(.ext-txt) { --ext: "TXT"; }
@media (prefers-reduced-motion: reduce) { .download-element a, .download-element a::after { transition: none; } .download-element a:hover::after { transform: none; } }
.formbody :is(button, input[type="submit"]), .widget-submit button { justify-self: start; min-height: 48px; padding: .7em 1.35em; font: 600 1rem var(--font-body); color: #fff; background: var(--accent); border: 0; border-radius: var(--radius); cursor: pointer; }
.formbody :is(button, input[type="submit"]):hover { background: var(--accent-700); }
.section--sand .formbody :is(input, select, textarea), .fullwidth-bg-gray .formbody :is(input, select, textarea) { background: #fff; }
:is(.mod_login, .mod_lostPassword, .mod_changePassword) .formbody { grid-template-columns: minmax(0, 420px); }
:is(.mod_login, .mod_lostPassword, .mod_changePassword) .formbody > * { grid-column: 1; }
@media (max-width: 640px) { .formbody { grid-template-columns: minmax(0, 1fr); } .formbody > * { grid-column: 1 !important; } }


/* ---------- Angebotsliste: Filter und Seiten ---------- */
.estate-filter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; align-items: end; margin: 8px 0 20px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.estate-filter label { display: block; margin-bottom: 6px; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.estate-filter select { width: 100%; padding: 11px 12px; font: 500 1rem var(--font-body); color: var(--ink); background: #fff; border: 1px solid #cdc7bb; border-radius: var(--radius); }
.estate-filter__reset { justify-self: start; min-height: 44px; }
.estate-list__count { margin: 0 0 4px; color: var(--muted); }
.estate-list__count strong { color: var(--navy-900); }
.estate-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 24px; }
.estate-pager__btn { min-width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font: 600 1rem var(--font-body); color: var(--navy); cursor: pointer; }
.estate-pager__btn[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.estate[hidden] { display: none; }
@media (max-width: 860px) { .estate-filter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 520px) { .estate-filter { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Exposé (Template makler_details_extended_igw) ---------- */
.expose-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 24px; }
.expose-head h1 { max-width: 28ch; margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.expose-head .estate__place { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.expose-head .estate__place::before { display: none; }
.expose-head__price { text-align: right; }
.expose-head__price strong { display: block; font: 500 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem) var(--font-head); color: var(--navy-900); }
.expose-head__price span { font-size: .88rem; color: var(--muted); }
.expose-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(300px, 44vw, 560px); overflow: hidden; border-radius: var(--radius-lg); }
.expose-gallery__item { position: relative; display: block; padding: 0; overflow: hidden; border: 0; background: var(--sand); cursor: zoom-in; }
.expose-gallery__item:first-child { grid-row: 1 / 3; }
.expose-gallery__item :is(picture, img) { width: 100%; height: 100%; }
.expose-gallery__item img { object-fit: cover; transition: transform .4s; }
.expose-gallery__item:hover img { transform: scale(1.03); }
.expose-gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(17 29 74 / .55); color: #fff; font-weight: 600; }
.expose-gallery--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.expose-gallery--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.expose-gallery--2 .expose-gallery__item:first-child, .expose-gallery--1 .expose-gallery__item:first-child { grid-row: auto; }
.expose-gallery--3 { grid-template-columns: 2fr 1fr; }
.expose-gallery--4 { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, 1fr); }
.expose-gallery--4 .expose-gallery__item:first-child { grid-row: 1 / 4; }
.keyfacts { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); margin: 24px 0 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.keyfacts li { padding: 16px 20px; border-left: 1px solid var(--line); }
.keyfacts li:first-child { border-left: 0; }
.keyfacts span { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.keyfacts strong { font: 500 1.3rem var(--font-head); color: var(--navy-900); }
.expose-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 64px); align-items: start; margin-top: 48px; }
.expose-main > .prose + .prose { margin-top: 40px; }
.data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; }
.data div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.data dt { color: var(--muted); }
.data dd { margin: 0; font-weight: 600; text-align: right; }
.features { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.features li { padding: 6px 12px; border-radius: 99px; background: var(--navy-50); color: var(--navy); font-size: .9rem; font-weight: 500; }
.prose ul { padding-left: 1.2em; }
.more summary { display: inline-flex; gap: .4em; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "\2193"; }
.more[open] summary { display: none; }
.energy { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 3px; margin: 8px 0 16px; }
.energy span { display: grid; place-items: center; height: 30px; border-radius: 3px; font-size: .78rem; font-weight: 700; color: #fff; }
.energy--ap { background: #1a9641; } .energy--a { background: #4cb04f; } .energy--b { background: #8cc63f; } .energy--c { background: #c6d932; } .energy--d { background: #e5c21b; }
.energy--e { background: #f2a01a; } .energy--f { background: #ec7024; } .energy--g { background: #e2442a; } .energy--h { background: #c4161c; }
.energy .on { outline: 3px solid var(--ink); outline-offset: 2px; }
.contact-card { position: sticky; top: calc(var(--header-h) + 64px); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.contact-card__person { display: flex; align-items: center; gap: 16px; padding: 22px; background: var(--sand); }
.contact-card__person img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.contact-card__person small { display: block; color: var(--muted); }
.contact-card__person strong { font: 500 1.12rem var(--font-head); color: var(--navy-900); }
.contact-card__body { display: grid; gap: 10px; padding: 22px; }
.contact-card__body .btn { width: 100%; }
.contact-card__mail { margin: 0; text-align: center; font-size: .92rem; overflow-wrap: anywhere; }
.contact-card__meta { margin: 0; text-align: center; font-size: .84rem; color: var(--muted); }
.photo-dialog { width: min(1100px, 96vw); height: 92dvh; max-height: none; padding: 0; border: 0; border-radius: var(--radius-lg); }
.photo-dialog::backdrop { background: rgb(10 16 40 / .82); }
.photo-dialog[open] { display: flex; flex-direction: column; }
.photo-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.photo-dialog__head strong { font: 500 1.05rem var(--font-head); color: var(--navy-900); }
.photo-dialog__body { display: grid; gap: 20px; padding: 20px; overflow-y: auto; }
.photo-dialog figure img { width: 100%; border-radius: var(--radius); }
.photo-dialog figcaption { padding-top: 6px; font-size: .9rem; color: var(--muted); }
.mobile-bar { display: none; }
#anfrage { scroll-margin-top: calc(var(--header-h) + 24px); }
@media (max-width: 960px) {
  .expose-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-card { position: static; }
  .keyfacts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .keyfacts li:nth-child(4) { border-left: 0; }
  .keyfacts li:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .expose-head__price { text-align: left; }
  .expose-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 380px; }
  .expose-gallery .expose-gallery__item:first-child { grid-column: 1 / -1; grid-row: auto; }
  .expose-gallery .expose-gallery__item:nth-child(n+4) { display: none; }
  .keyfacts { grid-template-columns: 1fr 1fr; }
  .keyfacts li { border-left: 0 !important; border-top: 1px solid var(--line); }
  .keyfacts li:nth-child(-n+2) { border-top: 0; }
  .keyfacts li:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .data { grid-template-columns: minmax(0, 1fr); }
  .mobile-bar { position: sticky; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 24px calc(-1 * var(--gutter)) 0; padding: 10px var(--gutter); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(0 0 0 / .08); }
}

/* ---------- Fuß ---------- */
.site-footer { background: var(--navy-900); color: #b9c2e2; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :is(h2, h3, h4, .footer-title) { margin: 0 0 1rem; color: #fff; font: 600 .8rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__main { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding-block: 64px 48px; }
.footer__main > * { margin: 0; }
.footer__brand svg, .footer__brand img { width: 230px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding-block: 20px; font-size: .86rem; border-top: 1px solid rgb(255 255 255 / .1); }
.footer__bottom > * { margin: 0; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer .btn a, .site-footer a.btn { min-height: 44px; padding: .45em 1.1em; font-size: .9rem; background: transparent; color: #fff; border-color: rgb(255 255 255 / .7); text-decoration: none; }
/* Hover/Fokus: weiß gefüllt (vorher überschrieb obige Regel den Hover-Hintergrund – Button reagierte nicht) */
.site-footer .btn a:hover, .site-footer a.btn:hover { background: #fff; color: var(--navy-900); border-color: #fff; text-decoration: none; }
/* Social-Icons im Footer: runde 44-px-Klickfläche, Hover/Fokus weiß gefüllt wie der Footer-Button */
.site-footer .socials ul { gap: 8px; }
.site-footer .socials a.nav-link { --focus-radius: 50%; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; transition: background-color .15s, color .15s, transform .15s; }
.site-footer .socials svg { width: 28px; height: 28px; }
.site-footer .socials a.nav-link:hover { background: #fff; color: var(--navy-900); transform: translateY(-2px); text-decoration: none; }
@media (max-width: 1100px) { .footer__main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { body { font-size: 1rem; } .footer__main { grid-template-columns: 1fr; gap: 32px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
