/* Grabbert Immobilien – Stylesheet
   Farben aus dem Logo: Navy #233881, Grau #8e8c91, Gold-Akzent #b78b4a
   Schriften (lokal): Playfair Display (Überschriften), Open Sans (Text) */

@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/playfair-display-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/playfair-display-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500; font-display: swap; src: url(fonts/playfair-display-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/open-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/open-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/open-sans-latin-700-normal.woff2) format("woff2"); }

:root {
  --navy: #233881;
  --navy-dark: #16244f;
  --navy-deep: #0f1a3a;
  --gold: #b78b4a;
  --gold-light: #d9b98a;
  --gold-soft: #f6efe4;
  --grey: #8e8c91;
  --ink: #1d2233;
  --text: #3d4256;
  --muted: #6c7085;
  --line: #e3e5ee;
  --mist: #f5f6fa;
  --cream: #faf8f4;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 18px 50px -24px rgba(15, 26, 58, .35);
  --shadow-s: 0 6px 20px -10px rgba(15, 26, 58, .25);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.7 var(--sans); color: var(--text); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }
address { font-style: normal; }
::selection { background: var(--gold-light); color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(860px, 100% - 40px); }
section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.bg-mist { background: var(--mist); }
.bg-cream { background: var(--cream); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Textstile aus dem Editor */
.accent { color: var(--gold); }
.soft { color: var(--muted); }

.kicker { display: inline-flex; align-items: center; gap: 12px; font: 600 .78rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.lead { font-size: 1.12rem; color: var(--muted); }
.head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 720px; }
.head.center { text-align: center; margin-inline: auto; }
.head.center .kicker::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; max-width: none; }
.head--row > :first-child { max-width: 640px; }
.head--row .lead { max-width: 420px; margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 .95rem/1 var(--sans); letter-spacing: .02em; padding: 16px 28px; border-radius: 999px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s; }
.btn svg { width: 18px; height: 18px; transition: transform .25s; }
.btn:hover svg { transform: translateX(3px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; box-shadow: var(--shadow-s); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #a37939; color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Kopfzeile ---------- */
.topbar { background: var(--navy-deep); color: rgba(255,255,255,.78); font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--gold-light); }
.topbar__r { display: flex; gap: 22px; }
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.top.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -16px rgba(15,26,58,.35); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--head-h); }
.logo img { width: 170px; height: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); background: var(--mist); }
.nav .nav-cta { background: var(--navy); color: #fff; margin-left: 8px; padding: 12px 20px; }
.nav .nav-cta:hover { background: var(--gold); color: #fff; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s, opacity .3s; content: ""; }
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -6px; left: 0; }
.nav-toggle span::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Startbereich ---------- */
.hero { padding: 0; background: var(--navy-deep); color: #fff; overflow: hidden; }
.hero__img { position: absolute; inset: 0; background: center right / cover no-repeat; }
.hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,26,58,.94) 0%, rgba(15,26,58,.82) 38%, rgba(15,26,58,.25) 75%, rgba(15,26,58,.1) 100%); }
.hero .wrap { position: relative; min-height: clamp(520px, 72vh, 700px); display: flex; flex-direction: column; justify-content: center; padding: 80px 0 120px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero h1 .accent { color: var(--gold-light); font-style: italic; }
.hero .lead { color: rgba(255,255,255,.82); max-width: 560px; font-size: 1.15rem; }
.hero .kicker { color: var(--gold-light); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__badge { position: absolute; right: 0; bottom: 120px; display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.96); color: var(--ink); padding: 12px 18px 12px 12px; border-radius: 14px; box-shadow: var(--shadow); font-size: .85rem; line-height: 1.35; }
.hero__badge img { width: 54px; height: 54px; border-radius: 6px; }
.hero__badge b { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--navy); }

/* Schnellzugriff unter dem Startbild */
.quick { position: relative; z-index: 2; margin-top: -64px; padding: 0; }
.quick__box { background: #fff; border-radius: 18px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.quick__item { padding: 26px 28px; border-right: 1px solid var(--line); text-decoration: none; color: var(--text); transition: background .25s; display: flex; gap: 16px; align-items: flex-start; }
.quick__item:last-child { border-right: 0; }
a.quick__item:hover { background: var(--cream); color: var(--text); }
.quick__item svg { width: 34px; height: 34px; flex: none; color: var(--gold); }
.quick__item b { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.quick__item span { font-size: .88rem; color: var(--muted); line-height: 1.5; display: block; }
.quick__item small { display: block; margin-top: 6px; font-weight: 700; color: var(--navy); font-size: .82rem; }

/* ---------- Über uns ---------- */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; }
.about__years { position: absolute; right: -26px; bottom: 34px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); text-align: center; }
.about__years b { display: block; font: 600 2.6rem/1 var(--serif); color: var(--gold-light); }
.about__years span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.checks ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 26px; }
.checks li { position: relative; padding-left: 30px; font-weight: 600; color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b78b4a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.signature { display: flex; align-items: center; gap: 16px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.signature b { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); display: block; }
.signature span { font-size: .9rem; color: var(--muted); }
.signature img { width: 58px; height: 58px; border-radius: 8px; }

/* ---------- Leistungen ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 4vw, 46px); position: relative; overflow: hidden; transition: box-shadow .3s, transform .3s; }
.svc:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.svc::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--navy), var(--gold)); }
.svc__icon { width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); margin-bottom: 22px; }
.svc__icon svg { width: 32px; height: 32px; }
.svc h3 { font-size: 1.75rem; }
.svc > p { color: var(--muted); }
.svc ul { list-style: none; margin-top: 22px; }
.svc li { padding: 14px 0 14px 34px; border-top: 1px solid var(--line); position: relative; font-size: .95rem; }
.svc li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 14px; height: 1.5px; background: var(--gold); }
.svc li strong { color: var(--ink); display: block; font-weight: 700; }
.svc__cta { margin-top: 26px; }

/* ---------- Kennzahlen-Band ---------- */
.band { background: var(--navy); color: #fff; padding: clamp(56px, 7vw, 90px) 0; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 300px at 90% 0%, rgba(183,139,74,.28), transparent 60%), radial-gradient(600px 300px at 0% 100%, rgba(255,255,255,.07), transparent 60%); }
.band .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 48px; align-items: center; }
.band h2 { color: #fff; }
.band h2 .accent { color: var(--gold-light); font-style: italic; }
.band p { color: rgba(255,255,255,.78); }
.band .kicker { color: var(--gold-light); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: rgba(255,255,255,.12); border-radius: 18px; overflow: hidden; }
.fact { background: var(--navy); padding: 26px; }
.fact b { display: block; font: 600 2.3rem/1.1 var(--serif); color: var(--gold-light); margin-bottom: 4px; }
.fact span { font-size: .9rem; color: rgba(255,255,255,.8); }

/* ---------- Bundesweit ---------- */
.nationwide { overflow: hidden; }
.nationwide__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.nationwide h2 .accent { font-style: italic; }
.nw-points { list-style: none; display: grid; gap: 18px; margin: 30px 0 34px; }
.nw-points li { display: flex; gap: 16px; align-items: flex-start; }
.nw-points b { display: block; color: var(--ink); font-weight: 700; margin-bottom: 2px; }
.nw-points li > span:last-child > span { color: var(--muted); font-size: .95rem; }
.nw-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--gold); box-shadow: var(--shadow-s); }
.nw-ico svg { width: 22px; height: 22px; }
.nationwide__map { position: relative; max-width: 470px; justify-self: center; width: 100%; }
.de-map { width: 100%; height: auto; overflow: visible; }
.de-land { fill: #fff; stroke: var(--navy); stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 18px 30px rgba(15,26,58,.12)); }
.de-routes path { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; opacity: .85; }
.reveal.in .de-routes path { animation: de-draw 1.6s cubic-bezier(.6,0,.2,1) forwards; animation-delay: calc(.3s + var(--i) * .12s); }
@keyframes de-draw { to { stroke-dashoffset: 0; } }
.de-cities circle { fill: var(--navy); stroke: #fff; stroke-width: 1.5; }
.de-cities text, .de-hub text { font: 600 11px/1 var(--sans); fill: var(--text); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.de-hub circle { fill: var(--gold); stroke: #fff; stroke-width: 2.5; }
.de-hub .de-pulse { fill: var(--gold); stroke: none; opacity: .5; transform-box: fill-box; transform-origin: center; animation: de-pulse 2.4s ease-out infinite; }
.de-hub text { font: 700 14px/1 var(--serif); fill: var(--navy); }
@keyframes de-pulse { from { transform: scale(1); opacity: .55; } to { transform: scale(3.2); opacity: 0; } }
.nationwide__badge { position: relative; margin: 6px auto 0; width: fit-content; text-align: center; background: var(--navy); color: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); max-width: 320px; font-size: .82rem; line-height: 1.4; }
.nationwide__badge b { display: block; font: 600 1.05rem var(--serif); color: var(--gold-light); margin-bottom: 2px; }
@media (prefers-reduced-motion: reduce) {
  .de-routes path { stroke-dashoffset: 0; animation: none !important; }
  .de-hub .de-pulse { display: none; }
}
@media (max-width: 900px) {
  .nationwide__grid { grid-template-columns: 1fr; }
  .nationwide__map { max-width: 400px; }
}

/* ---------- Objekte (Karten) ---------- */
.obj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.obj { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .3s, transform .3s, border-color .3s; position: relative; }
.obj:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.obj__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.obj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.obj:hover .obj__img img { transform: scale(1.05); }
.obj__badges { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-block; font: 700 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; background: #fff; color: var(--navy); }
.badge--kauf { background: var(--navy); color: #fff; }
.badge--miete { background: var(--gold); color: #fff; }
.badge--status { background: #fff; color: #a3430f; }
.obj__count { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; background: rgba(15,26,58,.72); color: #fff; font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.obj__count svg { width: 14px; height: 14px; }
.obj__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.obj__loc { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); margin-bottom: 8px; }
.obj__loc svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
.obj h3 { font-size: 1.18rem; line-height: 1.35; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.obj h3 a { color: var(--ink); text-decoration: none; }
.obj h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.obj h3 a:hover { color: var(--navy); }
.obj__facts { display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; color: var(--text); margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.obj__facts span { display: inline-flex; align-items: center; gap: 6px; }
.obj__facts svg { width: 16px; height: 16px; color: var(--grey); }
.obj__price { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 14px; }
.obj__price b { font: 600 1.4rem/1.1 var(--serif); color: var(--navy); }
.obj__price small { font-size: .78rem; color: var(--muted); text-align: right; }
.obj--sold .obj__img img { filter: grayscale(.5); }
.obj-empty { text-align: center; padding: 60px 20px; background: var(--mist); border-radius: 18px; color: var(--muted); }
.obj-empty b { display: block; font: 500 1.4rem var(--serif); color: var(--ink); margin-bottom: 6px; }
.obj-more { text-align: center; margin-top: 46px; }

/* Filter auf der Angebotsseite */
.filterbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 34px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font: 600 .9rem/1 var(--sans); padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: all .2s; }
.filters button small { font-weight: 600; color: var(--muted); margin-left: 4px; }
.filters button:hover { border-color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filters button[aria-pressed="true"] small { color: var(--gold-light); }
.sort { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.sort select { font: 600 .9rem var(--sans); padding: 10px 36px 10px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23233881' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 14px no-repeat; appearance: none; color: var(--ink); cursor: pointer; }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-head { background: var(--navy-deep); color: #fff; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: url("img/hero-wohnen.jpg") center right / cover no-repeat; opacity: .22; }
.page-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-deep) 30%, rgba(15,26,58,.6)); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; margin: 0; }
.page-head .lead { color: rgba(255,255,255,.8); margin: 14px 0 0; max-width: 640px; }
.page-head .kicker { color: var(--gold-light); }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { color: var(--gold-light); }

/* ---------- Exposé (Objektseite) ---------- */
.expose-head { padding: 34px 0 0; }
.expose-head .crumbs { color: var(--muted); }
.expose-head .crumbs a { color: var(--navy); }
.expose-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 26px; }
.expose-title h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 10px 0 8px; }
.expose-title .obj__loc { font-size: .95rem; margin: 0; }
.expose-price { text-align: right; flex: none; }
.expose-price b { display: block; font: 600 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--serif); color: var(--navy); }
.expose-price small { color: var(--muted); font-size: .85rem; }
.gallery-wrap { position: relative; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: clamp(320px, 46vw, 540px); border-radius: 18px; overflow: hidden; }
.gallery a { position: relative; display: block; overflow: hidden; background: var(--mist); }
.gallery a:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a.more { display: none; }
.gallery--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.gallery--2 a:first-child { grid-row: auto; }
.gallery__all { position: absolute; right: 16px; bottom: 16px; z-index: 2; background: #fff; color: var(--ink); font: 700 .85rem/1 var(--sans); padding: 12px 16px; border-radius: 999px; box-shadow: var(--shadow-s); display: inline-flex; gap: 8px; align-items: center; border: 0; cursor: pointer; }
.gallery__all svg { width: 16px; height: 16px; }

.expose { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: clamp(32px, 5vw, 64px); align-items: start; padding-top: 44px; }
.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 44px; }
.keyfacts div { background: #fff; padding: 20px 18px; }
.keyfacts b { display: block; font: 600 1.35rem/1.2 var(--serif); color: var(--ink); }
.keyfacts span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.ex-block { margin-bottom: 44px; }
.ex-block h2 { font-size: 1.6rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.ex-text p { margin-bottom: .9em; }
.datatable { width: 100%; border-collapse: collapse; font-size: .95rem; }
.datatable th, .datatable td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.datatable th { font-weight: 400; color: var(--muted); width: 50%; padding-right: 16px; }
.datatable td { font-weight: 600; color: var(--ink); }
.datatable--2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.datatable--2 tbody { display: contents; }
.datatable--2 tr { display: flex; border-bottom: 1px solid var(--line); }
.datatable--2 th, .datatable--2 td { border: 0; }
.chips-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips-list li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--mist); font-size: .9rem; font-weight: 600; color: var(--ink); }
.chips-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.energy-scale { position: relative; display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; margin: 6px 0 40px; }
.energy-scale span { height: 14px; border-radius: 3px; color: #fff; font: 700 .62rem/14px var(--sans); text-align: center; }
.energy-scale span:nth-child(1) { background: #0a8a3a; } .energy-scale span:nth-child(2) { background: #3fa535; } .energy-scale span:nth-child(3) { background: #8cc63e; }
.energy-scale span:nth-child(4) { background: #b9cf2c; } .energy-scale span:nth-child(5) { background: #e6d81c; } .energy-scale span:nth-child(6) { background: #fbb812; }
.energy-scale span:nth-child(7) { background: #f37021; } .energy-scale span:nth-child(8) { background: #e3301f; } .energy-scale span:nth-child(9) { background: #b4151b; }
.energy-scale i { position: absolute; top: 24px; transform: translateX(-50%); font: 700 .8rem/1 var(--sans); font-style: normal; color: var(--ink); white-space: nowrap; }
.energy-scale i::before { content: ""; position: absolute; left: 50%; top: -9px; transform: translateX(-50%); border: 5px solid transparent; border-bottom-color: var(--ink); border-top: 0; }
.note { font-size: .88rem; color: var(--muted); }

.aside { position: sticky; top: calc(var(--head-h) + 20px); display: grid; gap: 18px; }
.agent { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-s); }
.agent__who { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.agent__who img { width: 56px; height: 56px; border-radius: 10px; }
.agent__who b { display: block; font: 600 1.1rem var(--serif); color: var(--ink); }
.agent__who span { font-size: .85rem; color: var(--muted); }
.agent__links { display: grid; gap: 8px; margin-bottom: 18px; }
.agent__links a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; color: var(--ink); padding: 10px 14px; border-radius: 12px; background: var(--mist); font-size: .92rem; }
.agent__links a:hover { background: var(--gold-soft); color: var(--navy); }
.agent__links svg { width: 18px; height: 18px; color: var(--gold); }
.agent .btn { width: 100%; }
.refbox { font-size: .85rem; color: var(--muted); background: var(--cream); border-radius: 14px; padding: 16px 18px; }
.refbox b { color: var(--ink); }

/* ---------- Kontakt & Formular ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.ccards { display: grid; gap: 12px; margin-top: 30px; }
.ccard { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s; }
a.ccard:hover { border-color: var(--gold); box-shadow: var(--shadow-s); color: var(--text); }
.ccard__i { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: #fff; }
.ccard__i svg { width: 20px; height: 20px; }
.ccard small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ccard b { color: var(--ink); font-weight: 700; }
.form { background: #fff; border-radius: 22px; padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; }
.form h3 { font-size: 1.6rem; margin-bottom: 22px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fgrid .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form input, .form textarea, .form select { width: 100%; font: inherit; font-size: .98rem; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--ink); transition: border-color .2s, background .2s; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--navy); background: #fff; }
.form textarea { min-height: 140px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .85rem; color: var(--muted); }
.form .check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.form .btn { width: 100%; }
.form--compact { padding: 0; box-shadow: none; border: 0; }
.form--compact .fgrid { grid-template-columns: 1fr; gap: 12px; }
.form--compact textarea { min-height: 100px; }
.hp { position: absolute !important; left: -9999px !important; }
.form-note { margin: 16px 0 0; font-weight: 600; font-size: .95rem; }
.form-note:empty { display: none; }
.form-note.ok { color: #11602f; } .form-note.err { color: #8a1c1c; }
.seg-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-radio label { margin: 0; position: relative; }
.seg-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-radio span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem; cursor: pointer; background: #fff; }
.seg-radio input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg-radio input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Rechtstexte ---------- */
.legal h2 { font-size: 1.45rem; margin-top: 1.8em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.08rem; margin-top: 1.4em; font-family: var(--sans); font-weight: 700; }
.legal ol, .legal ul { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: .6em; }

/* ---------- Fußzeile ---------- */
.foot { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 72px 0 28px; font-size: .93rem; }
.foot a { color: rgba(255,255,255,.88); text-decoration: none; }
.foot a:hover { color: var(--gold-light); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.foot h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 18px; font-weight: 700; }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot .logo img { width: 190px; }
.foot-ivd { display: flex; gap: 12px; align-items: center; margin-top: 22px; font-size: .85rem; }
.foot-ivd img { width: 46px; height: 46px; border-radius: 6px; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .85rem; }
.foot-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-bottom .credit { color: rgba(255,255,255,.5); }
.foot-bottom .credit a { color: rgba(255,255,255,.75); }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(10,16,36,.95); display: none; align-items: center; justify-content: center; }
.lb.on { display: flex; }
.lb img { max-width: min(92vw, 1400px); max-height: 82vh; width: auto; height: auto; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 54px; height: 54px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; transition: background .2s; }
.lb button:hover { background: rgba(255,255,255,.25); }
.lb-x { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-size: .9rem; padding: 0 70px; }

/* ---------- Einblenden ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .obj-grid { grid-template-columns: repeat(2, 1fr); }
  .quick__box { grid-template-columns: 1fr 1fr; }
  .quick__item:nth-child(2) { border-right: 0; }
  .quick__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .expose { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .band .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --head-h: 70px; }
  .topbar { display: none; }
  .logo img { width: 140px; }
  .nav-toggle { display: block; }
  .nav { position: fixed; top: var(--head-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: #fff; padding: 14px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(15,26,58,.35); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 12px; border-radius: 10px; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .split, .contact, .svc-grid { grid-template-columns: 1fr; }
  .about__years { right: 16px; }
  .head--row { flex-direction: column; align-items: flex-start; }
  .keyfacts { grid-template-columns: 1fr 1fr; }
  .datatable--2 { grid-template-columns: 1fr; }
  .hero__badge { display: none; }
  .expose-title { flex-direction: column; align-items: flex-start; }
  .expose-price { text-align: left; }
}
@media (max-width: 640px) {
  .wrap, .wrap--narrow { width: calc(100% - 32px); }
  .obj-grid, .quick__box { grid-template-columns: 1fr; }
  .quick { margin-top: -40px; }
  .quick__item { border-right: 0 !important; border-bottom: 1px solid var(--line); padding: 20px; }
  .quick__item:last-child { border-bottom: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 20px 18px; }
  .fact b { font-size: 1.8rem; }
  .checks ul { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .aside { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 280px; }
  .gallery a:not(:first-child) { display: none; }
  .gallery a:first-child { grid-row: auto; }
  .hero .wrap { padding: 60px 0 90px; min-height: 480px; }
  .btn { padding: 15px 22px; }
  .filterbar { flex-direction: column; align-items: stretch; }
  .about__years { padding: 16px 18px; bottom: 16px; }
  .about__years b { font-size: 2rem; }
}
