/* Investoren-Seite HIS Hausbau (29.10.2026) – Town & Country CI, hochwertig aufbereitet.
   Farben aus dem Markenhandbuch: Rot #E20000, Gruen #76B82A, Schwarz, Grau #C6C6C6, Hellgruen #F1F5EF.
   Schriften Roboto / Roboto Slab lokal (keine Google-Server, datenschutzfreundlich). Bewusst nur ein (heller) Auftritt
   mit dunklen Abschnitten – alle Farben explizit gesetzt, damit die Seite in jedem Browser-Modus gleich aussieht. */

@font-face { font-family: 'Roboto'; font-weight: 300; font-display: swap; src: url('../fonts/Roboto-Light.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-weight: 400; font-display: swap; src: url('../fonts/Roboto-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-weight: 500; font-display: swap; src: url('../fonts/Roboto-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-weight: 700; font-display: swap; src: url('../fonts/Roboto-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Roboto Slab'; font-weight: 400; font-display: swap; src: url('../fonts/RobotoSlab-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Roboto Slab'; font-weight: 700; font-display: swap; src: url('../fonts/RobotoSlab-Bold.woff2') format('woff2'); }

:root {
    --rot: #E20000;
    --rot-tief: #B30000;
    --gruen: #76B82A;
    --gruen-tief: #4E8A14;
    --tinte: #101316;          /* fast schwarz, leicht kuehl */
    --tinte-2: #191D21;
    --tinte-3: #262B30;
    --text: #1B1F23;
    --leise: #5B636B;
    --leise-hell: #A9B0B6;
    --linie: #E3E6E8;
    --linie-dunkel: rgba(255, 255, 255, .12);
    --grund: #FFFFFF;
    --grund-2: #F1F5EF;        /* T&C-Hellgruen als ruhige Flaeche */
    --grund-3: #F6F7F7;
    --rand: clamp(16px, 4.2vw, 56px);
    --breite: 1240px;
    --rund: 14px;
    --schatten: 0 1px 2px rgba(16, 19, 22, .06), 0 12px 32px -12px rgba(16, 19, 22, .18);
    --schrift: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --schrift-slab: 'Roboto Slab', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--grund); color: var(--text); font: 400 17px/1.6 var(--schrift); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; border-radius: 4px; }
.zahl, table { font-variant-numeric: tabular-nums; }
.innen { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typografie ---------- */
h1, h2, h3 { font-family: var(--schrift-slab); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.vorspann { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--leise); max-width: 62ch; }
.augenbraue { display: inline-flex; align-items: center; gap: 10px; font: 700 12px/1 var(--schrift); letter-spacing: .16em; text-transform: uppercase; color: var(--rot); margin-bottom: 18px; }
.augenbraue::before { content: ''; width: 28px; height: 2px; background: currentColor; }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--linie); }
.kopf .innen { display: flex; align-items: center; gap: 22px; height: 68px; }
.marke { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.marke img { height: 40px; width: auto; }
.marke-text { display: flex; flex-direction: column; line-height: 1.15; border-left: 1px solid var(--linie); padding-left: 14px; }
.marke-text b { font: 700 15px var(--schrift); letter-spacing: .01em; }
.marke-text span { font-size: 12px; color: var(--leise); }
.kopf-nav { display: flex; gap: 4px; margin-left: auto; }
.kopf-nav a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; color: var(--text); }
.kopf-nav a:hover { background: var(--grund-3); }
.kopf-nav a[aria-current="page"] { color: var(--rot); }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
    font: 500 16px var(--schrift); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.knopf-rot { background: var(--rot); color: #fff; }
.knopf-rot:hover { background: var(--rot-tief); }
.knopf-hell { background: #fff; color: var(--tinte); }
.knopf-hell:hover { background: var(--grund-2); }
.knopf-rahmen { border-color: currentColor; color: inherit; background: transparent; }
.knopf-rahmen:hover { background: rgba(127, 127, 127, .1); }
.kopf .knopf { min-height: 42px; padding: 0 18px; font-size: 15px; }
.pfeil { width: 18px; height: 18px; flex: none; }
@media (max-width: 900px) { .kopf-nav { display: none; } .kopf .knopf { margin-left: auto; } }
@media (max-width: 480px) { .marke-text { display: none; } .marke img { height: 36px; } .kopf .knopf span { display: none; } .kopf .knopf { padding: 0 14px; } }

/* ---------- Buehne (Startseite & Haustyp) ---------- */
.buehne { position: relative; color: #fff; background: var(--tinte); overflow: hidden; isolation: isolate; }
.buehne-bild { position: absolute; inset: 0; z-index: -2; }
.buehne-bild img { width: 100%; height: 100%; object-fit: cover; }
.buehne::before { content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(10, 12, 14, .86) 0%, rgba(10, 12, 14, .62) 42%, rgba(10, 12, 14, .12) 78%),
                linear-gradient(0deg, rgba(10, 12, 14, .78) 0%, rgba(10, 12, 14, 0) 46%); }
.buehne .innen { padding-top: clamp(72px, 12vw, 150px); padding-bottom: clamp(28px, 4vw, 44px); min-height: min(86vh, 820px); display: flex; flex-direction: column; }
.buehne h1 { max-width: 15ch; }
.buehne .vorspann { color: rgba(255, 255, 255, .84); margin-top: 22px; }
.buehne .augenbraue { color: #fff; }
.buehne .augenbraue::before { background: var(--rot); }
.buehne-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.buehne-zahlen { margin-top: auto; padding-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .22); }
.buehne-zahlen div { padding: 20px 20px 4px 0; }
.buehne-zahlen div + div { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .14); }
.buehne-zahlen b { display: block; font: 300 clamp(1.5rem, 3.3vw, 2.8rem)/1.05 var(--schrift); white-space: nowrap; letter-spacing: -.02em; }
.buehne-zahlen span { display: block; font-size: 13.5px; color: rgba(255, 255, 255, .72); margin-top: 6px; }
@media (max-width: 760px) {
    .buehne::before { background: linear-gradient(0deg, rgba(10, 12, 14, .92) 0%, rgba(10, 12, 14, .55) 55%, rgba(10, 12, 14, .35) 100%); }
    .buehne .innen { min-height: 0; padding-top: 64px; }
    .buehne-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .buehne-zahlen div:nth-child(3) { padding-left: 0; border-left: 0; }
    .buehne-zahlen div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
    .buehne-knoepfe .knopf { flex: 1 1 auto; }
}
.buehne-haus .innen { min-height: min(78vh, 720px); }
.brotkrume { font-size: 14px; color: rgba(255, 255, 255, .72); margin-bottom: 26px; }
.brotkrume a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(64px, 9vw, 120px) 0; }
.abschnitt-hell { background: var(--grund-2); }
.abschnitt-grau { background: var(--grund-3); }
.abschnitt-dunkel { background: var(--tinte); color: #fff; }
.abschnitt-dunkel .vorspann { color: var(--leise-hell); }
.abschnitt-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px); }
.abschnitt-kopf > div { max-width: 720px; }
.abschnitt-kopf h2 + .vorspann { margin-top: 16px; margin-bottom: 0; }

/* ---------- Haustyp-Karten (Startseite) ---------- */
.haeuser { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
@media (max-width: 980px) { .haeuser { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; } }
.haus-karte { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--rund); overflow: hidden; text-decoration: none; color: var(--text);
    box-shadow: var(--schatten); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.haus-karte:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(16, 19, 22, .06), 0 28px 48px -18px rgba(16, 19, 22, .32); }
.haus-karte-bild { position: relative; aspect-ratio: 4 / 3.3; overflow: hidden; background: var(--grund-3); }
.haus-karte-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.haus-karte:hover .haus-karte-bild img { transform: scale(1.045); }
.haus-karte-marke { position: absolute; left: 16px; top: 16px; background: rgba(16, 19, 22, .78); color: #fff; font: 500 12.5px var(--schrift); letter-spacing: .04em; padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.haus-karte-inhalt { padding: 24px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.haus-karte h3 { font-size: 1.55rem; }
.haus-karte-unter { color: var(--leise); font-size: 15px; margin: 6px 0 18px; }
.eckdaten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--linie); border: 1px solid var(--linie); border-radius: 10px; overflow: hidden; margin: 0 0 20px; }
.eckdaten div { background: #fff; padding: 12px 12px 10px; }
.eckdaten dt { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); }
.eckdaten dd { margin: 2px 0 0; font: 500 17px var(--schrift); }
.haus-karte-fuss { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--linie); }
.ab-preis small { display: block; font-size: 12.5px; color: var(--leise); }
.ab-preis b { font: 300 1.65rem/1.1 var(--schrift); letter-spacing: -.01em; }
.rendite-chip { display: inline-flex; flex-direction: column; align-items: flex-end; text-align: right; }
.rendite-chip small { font-size: 12.5px; color: var(--leise); }
.rendite-chip b { color: var(--gruen-tief); font: 700 1.2rem var(--schrift); }
.haus-karte-pfeil { position: absolute; right: 16px; top: 16px; width: 42px; height: 42px; border-radius: 50%; background: var(--rot); color: #fff; display: grid; place-items: center;
    transform: translateX(6px); opacity: 0; transition: .3s; }
.haus-karte:hover .haus-karte-pfeil, .haus-karte:focus-visible .haus-karte-pfeil { opacity: 1; transform: none; }
@media (hover: none) { .haus-karte-pfeil { opacity: 1; transform: none; } }

/* ---------- Argumente fuer Investoren ---------- */
.argumente { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--linie-dunkel); }
.argument { padding: 32px 32px 34px 0; border-bottom: 1px solid var(--linie-dunkel); }
.argument:nth-child(3n+2), .argument:nth-child(3n+3) { padding-left: 32px; border-left: 1px solid var(--linie-dunkel); }
.argument-symbol { width: 44px; height: 44px; border-radius: 12px; background: rgba(226, 0, 0, .14); color: #FF4D4D; display: grid; place-items: center; margin-bottom: 18px; }
.argument-symbol svg { width: 22px; height: 22px; }
.argument h3 { font-size: 1.2rem; margin-bottom: 10px; color: #fff; }
.argument p { color: var(--leise-hell); font-size: 15.5px; margin: 0; }
.argument small { display: block; margin-top: 10px; font-size: 12.5px; color: #7E878F; }
@media (max-width: 980px) {
    .argumente { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .argument:nth-child(n) { padding: 28px 24px 30px 0; border-left: 0; }
    .argument:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--linie-dunkel); }
}
@media (max-width: 620px) {
    .argumente { grid-template-columns: minmax(0, 1fr); }
    .argument:nth-child(n) { padding: 26px 0; border-left: 0; }
}

/* ---------- Standorte ---------- */
.standorte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 880px) { .standorte { grid-template-columns: minmax(0, 1fr); } }
.standort { background: #fff; border-radius: var(--rund); overflow: hidden; box-shadow: var(--schatten); display: flex; flex-direction: column; }
.standort-bild { display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grund-3); }
.standort-bild img { width: 100%; height: 100%; object-fit: cover; }
.standort-inhalt { padding: 26px 28px 28px; }
.standort-ort { font-size: 14px; color: var(--leise); margin: 6px 0 14px; }
.standort-inhalt p { font-size: 15.5px; color: #3A4148; }
.marken { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
.marken li { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--grund-2); color: #33531A; }

/* ---------- Angebotstabelle ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter button { font: 500 14.5px var(--schrift); padding: 9px 16px; min-height: 40px; border-radius: 999px; border: 1px solid var(--linie); background: #fff; color: var(--text); cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.tabelle-huelle { background: #fff; border-radius: var(--rund); box-shadow: var(--schatten); overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.angebote { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 860px; }
.angebote th { text-align: left; font: 500 12px var(--schrift); letter-spacing: .06em; text-transform: uppercase; color: var(--leise); padding: 16px 16px 12px; border-bottom: 1px solid var(--linie); white-space: nowrap; }
.angebote td { padding: 16px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.angebote tr:last-child td { border-bottom: 0; }
.angebote .r { text-align: right; white-space: nowrap; }
.angebote td b { font-weight: 500; }
.angebote td small { display: block; color: var(--leise); font-size: 13px; }
.angebote tr.paket td { background: #FBFCFA; }
.angebote .rendite { color: var(--gruen-tief); font-weight: 700; }
.etikett { display: inline-block; font: 500 11.5px var(--schrift); letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; background: var(--grund-2); color: #33531A; margin-left: 6px; vertical-align: 1px; }
.etikett-paket { background: var(--tinte); color: #fff; }
.angebote a { text-decoration: none; }
.angebote a:hover b { color: var(--rot); }
/* Handy: Tabelle als Kartenliste (am Messestand nichts seitlich schieben) */
@media (max-width: 760px) {
    .tabelle-huelle { background: transparent; box-shadow: none; overflow: visible; }
    table.angebote { min-width: 0; }
    .angebote thead { display: none; }
    .angebote tbody { display: grid; gap: 12px; }
    .angebote tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #fff; border-radius: 12px; box-shadow: var(--schatten); padding: 6px 4px; }
    .angebote tr[hidden] { display: none; }
    .angebote tr.paket td { background: transparent; }
    .angebote tr.paket { background: #FBFCFA; border: 1px solid var(--linie); }
    .angebote td { border: 0; padding: 8px 12px; text-align: left !important; white-space: normal !important; }
    .angebote td.objekt { grid-column: 1 / -1; border-bottom: 1px solid var(--linie); padding-bottom: 12px; font-size: 16px; }
    .angebote td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); margin-bottom: 2px; }
    .angebote td.rendite { font-size: 16px; }
}
.hinweis-tabelle { font-size: 13px; color: var(--leise); margin-top: 14px; }

/* ---------- Haustyp-Seite ---------- */
.unternav { position: sticky; top: 68px; z-index: 40; background: #fff; border-bottom: 1px solid var(--linie); }
.unternav .innen { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.unternav .innen::-webkit-scrollbar { display: none; }
.unternav a { flex: none; text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--leise); padding: 15px 14px 13px; border-bottom: 2px solid transparent; }
.unternav a:hover, .unternav a.aktiv { color: var(--text); border-bottom-color: var(--rot); }
html:has(.unternav) { scroll-padding-top: 124px; }

.ueberblick { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .ueberblick { grid-template-columns: minmax(0, 1fr); } }
.kennzahlen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--linie); border: 1px solid var(--linie); border-radius: var(--rund); overflow: hidden; }
.kennzahlen div { background: #fff; padding: 22px 22px 20px; }
.kennzahlen dt { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--leise); }
.kennzahlen dd { margin: 6px 0 0; font: 300 clamp(1.6rem, 2.6vw, 2.15rem)/1.1 var(--schrift); letter-spacing: -.015em; }
.kennzahlen dd small { font-size: .5em; letter-spacing: 0; color: var(--leise); font-weight: 400; }
.haken { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.haken li { position: relative; padding-left: 32px; font-size: 16px; }
.haken li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--gruen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Galerie */
.galerie { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 15vw, 210px); gap: clamp(8px, 1.2vw, 14px); }
.galerie button { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--grund-3); grid-column: span 4; grid-row: span 1; }
.galerie button:nth-child(1) { grid-column: span 8; grid-row: span 2; }
.galerie button:nth-child(2) { grid-row: span 2; }
.galerie button:nth-child(n+3) { grid-column: span 3; }   /* untere Reihe: vier gleich breite Bilder */
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.galerie button:hover img { transform: scale(1.04); }
.galerie figcaption { position: absolute; left: 10px; bottom: 10px; font-size: 12.5px; font-weight: 500; color: #fff; background: rgba(16, 19, 22, .62); padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
@media (max-width: 700px) {
    .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; }
    .galerie button, .galerie button:nth-child(2), .galerie button:nth-child(n+3) { grid-column: span 1; grid-row: span 1; }
    .galerie button:nth-child(1) { grid-column: span 2; grid-row: span 1; }
}

/* Grundrisse */
.reiter { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--grund-3); border-radius: 999px; margin-bottom: 22px; }
.reiter button { font: 500 15px var(--schrift); border: 0; background: transparent; color: var(--leise); padding: 9px 18px; min-height: 40px; border-radius: 999px; cursor: pointer; }
.reiter button[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(16, 19, 22, .14); }
.grundriss { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.grundriss[hidden] { display: none; }
@media (max-width: 880px) { .grundriss { grid-template-columns: minmax(0, 1fr); } }
.grundriss-bild { display: block; width: 100%; background: #fff; border: 1px solid var(--linie); border-radius: var(--rund); padding: 12px; cursor: zoom-in; }
.grundriss-bild img { margin: 0 auto; max-height: 640px; width: auto; }
.raeume { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.raeume caption { text-align: left; font: 700 1.15rem var(--schrift-slab); padding-bottom: 12px; }
.raeume td { padding: 10px 0; border-bottom: 1px solid var(--linie); }
.raeume td.r { text-align: right; white-space: nowrap; color: var(--leise); }
.raeume-hinweis { font-size: 13px; color: var(--leise); margin-top: 14px; }

/* Angebote als Karten (Haustyp-Seite) */
.angebot-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(14px, 2vw, 22px); }
/* Karten einer Reihe teilen sich ein Raster (subgrid): Kopf, Preis, Werte und Knopf stehen auf gleicher Hoehe (Wunsch Nutzer 29.10.2026) */
.angebot { background: #fff; border: 1px solid var(--linie); border-radius: var(--rund); padding: 24px; display: flex; flex-direction: column; }
@supports (grid-template-rows: subgrid) {
    .angebot { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
}
.angebot-paket { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.angebot-kopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; align-content: start; }
.angebot-kopf .angebot-art { grid-column: 1 / -1; }
.angebot h3 { font-size: 1.25rem; }
.angebot-art { font-size: 14px; color: var(--leise); margin: 2px 0 0; }
.angebot-paket .angebot-art { color: var(--leise-hell); }
.angebot-status { flex: none; font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 999px; background: #FFF4E5; color: #8A5300; }
.angebot-paket .angebot-status { background: rgba(255, 255, 255, .1); color: #FFD08A; }
.angebot-preis { align-self: start; margin: 20px 0 16px; padding: 16px 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.angebot-paket .angebot-preis { border-color: var(--linie-dunkel); }
.angebot-preis small { display: block; font-size: 12.5px; color: var(--leise); }
.angebot-paket .angebot-preis small { color: var(--leise-hell); }
.angebot-preis b { font: 300 1.9rem/1.1 var(--schrift); letter-spacing: -.015em; }
.angebot-preis .rendite-chip b { color: var(--gruen-tief); font-size: 1.45rem; }
.angebot-paket .angebot-preis .rendite-chip b { color: #9BD65A; }
.werte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 0; font-size: 14.5px; }
.werte dt { color: var(--leise); font-size: 12.5px; }
.angebot-paket .werte dt { color: var(--leise-hell); }
.werte dd { margin: 1px 0 0; font-weight: 500; }
.angebot .knopf { margin-top: auto; align-self: end; min-height: 44px; font-size: 15px; }
.angebot .werte { margin-bottom: 22px; align-self: start; }
.angebot-paket .knopf-rahmen { color: #fff; }

/* Energie */
.energie { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 880px) { .energie { grid-template-columns: minmax(0, 1fr); } }
.skala { position: relative; margin-top: 8px; padding-top: 58px; }
.skala-balken { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); height: 34px; border-radius: 8px; overflow: hidden; }
.skala-balken span { display: grid; place-items: center; font: 700 13px var(--schrift); color: #fff; }
.skala-marke { position: absolute; top: 0; transform: translateX(-50%); text-align: center; font: 500 13px/1.25 var(--schrift); white-space: nowrap; }
.skala-strich { position: absolute; top: 36px; width: 2px; height: 22px; margin-left: -1px; background: var(--tinte); }   /* Strich exakt am Wert, Beschriftung bleibt im Bild */
.skala-marke b { font-size: 1.05rem; }
.skala-legende { display: flex; justify-content: space-between; font-size: 12px; color: var(--leise); margin-top: 8px; }
.pflicht { margin: 24px 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 22px; font-size: 15px; }
.pflicht dt { color: var(--leise); }
.pflicht dd { margin: 0; font-weight: 500; }

/* Kontakt */
.kontakt { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 880px) { .kontakt { grid-template-columns: minmax(0, 1fr); } }
.kontakt-karte { background: var(--tinte-2); border: 1px solid var(--linie-dunkel); border-radius: var(--rund); padding: clamp(24px, 3vw, 36px); }
.kontakt-name { font: 700 1.4rem var(--schrift-slab); }
.kontakt-rolle { color: var(--leise-hell); font-size: 15px; margin: 2px 0 22px; }
.kontakt-wege { display: grid; gap: 10px; }
.kontakt-wege a { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 14px 16px; border-radius: 12px; background: var(--tinte-3); transition: background .2s; }
.kontakt-wege a:hover { background: #31373D; }
.kontakt-wege svg { width: 20px; height: 20px; color: #FF4D4D; flex: none; }
.kontakt-wege small { display: block; font-size: 12.5px; color: var(--leise-hell); }
.kontakt-wege b { font-weight: 500; }
.kontakt-adresse { font-size: 14px; color: var(--leise-hell); margin-top: 18px; line-height: 1.5; }

/* Fuss */
.fuss { background: #0A0C0E; color: #8C949B; font-size: 13.5px; padding: 44px 0 52px; }
.fuss .innen { display: grid; gap: 22px; }
.fuss-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.fuss a { color: #C9CED2; text-decoration: none; }
.fuss a:hover { color: #fff; }
.fuss nav { display: flex; gap: 22px; flex-wrap: wrap; }
.rechtliches { max-width: 110ch; line-height: 1.55; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 22px; }

/* Lichtbox */
.lichtbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 10, 12, .94); display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; padding: 56px 16px 20px; }
.lichtbox[hidden] { display: none; }
.lichtbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; object-fit: contain; background: #fff; }
.lichtbox-text { color: #DDE1E4; font-size: 14.5px; padding-top: 14px; text-align: center; }
.lichtbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lichtbox button:hover { background: rgba(255, 255, 255, .22); }
.lichtbox .lb-zu { top: 12px; right: 12px; }
.lichtbox .lb-zurueck { left: 12px; top: 50%; }
.lichtbox .lb-weiter { right: 12px; top: 50%; }
.lichtbox svg { width: 22px; height: 22px; }

/* sanftes Einblenden: Startzustand sichtbar (kein opacity 0 ohne Skript), nur leichte Bewegung */
@media (prefers-reduced-motion: no-preference) {
    .js .einblenden { transform: translateY(14px); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
    .js .einblenden.da { transform: none; }
}

@media print {
    .kopf, .unternav, .lichtbox, .buehne-knoepfe, .filter { display: none !important; }
    .buehne { color: #000; background: none; } .buehne::before, .buehne-bild { display: none; }
    .abschnitt-dunkel { background: none; color: #000; }
    .angebot-paket { background: none; color: #000; }
}

/* Impressum (29.10.2026) */
.rechtstext { max-width: 900px; }
.rechtstext h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 36px; }
.brotkrume-hell { font-size: 14px; color: var(--leise); margin-bottom: 26px; }
.brotkrume-hell a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--linie); }
.impressum { margin: 0; border-top: 1px solid var(--linie); }
.impressum div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 6px 32px; padding: 18px 0; border-bottom: 1px solid var(--linie); }
.impressum dt { font-weight: 500; }
.impressum dd { margin: 0; color: #3A4148; line-height: 1.65; overflow-wrap: anywhere; }
.impressum a { color: var(--rot); }
@media (max-width: 640px) { .impressum div { grid-template-columns: minmax(0, 1fr); } }

/* ---------- QNG-PLUS (29.10.2026, Nutzer: „alle Häuser QNG+, extrem wichtig“) – Gruen aus dem T&C-CI ---------- */
.kopf-nav a.kopf-qng { color: var(--gruen-tief); font-weight: 700; }
.qng-chip { display: inline-flex; align-items: center; font: 700 11.5px var(--schrift); letter-spacing: .06em; padding: 5px 9px; border-radius: 999px;
    background: var(--gruen); color: #fff; white-space: nowrap; }
.angebot-chips { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.angebot-paket .qng-chip { background: #9BD65A; color: var(--tinte); }
.werte .kfw-zeile { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; margin-top: 4px;
    border-radius: 8px; background: var(--grund-2); }
.werte .kfw-zeile dt { color: #33531A; font-weight: 500; }
.werte .kfw-zeile dd { color: var(--gruen-tief); font-weight: 700; }
.angebot-paket .werte .kfw-zeile { background: rgba(155, 214, 90, .12); }
.angebot-paket .werte .kfw-zeile dt { color: #C8E8A5; }
.angebot-paket .werte .kfw-zeile dd { color: #9BD65A; }
.qng-siegel { position: absolute; right: 16px; bottom: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 68px; height: 68px; border-radius: 50%; background: var(--gruen); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    font: 700 10.5px/1 var(--schrift); letter-spacing: .12em; border: 2px solid rgba(255, 255, 255, .85); }
.qng-siegel b { font: 700 19px/1 var(--schrift-slab); letter-spacing: .02em; margin-bottom: 3px; }
.qng-text { color: var(--gruen-tief) !important; font-weight: 700 !important; }
.buehne-zahlen b.qng-gross { color: #9BD65A; font-weight: 500; }

.qng-abschnitt { background: linear-gradient(180deg, #F1F5EF 0%, #FFFFFF 100%); border-top: 4px solid var(--gruen); }
.qng-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; margin-bottom: clamp(32px, 5vw, 56px); max-width: 980px; }
.qng-kopf .augenbraue { color: var(--gruen-tief); }
.qng-logo { width: clamp(110px, 14vw, 156px); aspect-ratio: 1; border-radius: 50%; background: var(--gruen); color: #fff; display: flex; flex-direction: column;
    align-items: center; justify-content: center; box-shadow: 0 0 0 8px rgba(118, 184, 42, .16), 0 18px 40px -16px rgba(78, 138, 20, .7); }
.qng-logo b { font: 700 clamp(2rem, 3.6vw, 2.9rem)/1 var(--schrift-slab); }
.qng-logo span { font: 700 clamp(.8rem, 1.2vw, 1rem)/1 var(--schrift); letter-spacing: .28em; margin-top: 6px; padding-left: .28em; }
@media (max-width: 620px) { .qng-kopf { grid-template-columns: minmax(0, 1fr); } }
.qng-vorteile { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
@media (max-width: 1100px) { .qng-vorteile { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .qng-vorteile { grid-template-columns: minmax(0, 1fr); } }
.qng-vorteil { background: #fff; border: 1px solid #DCE8D2; border-radius: var(--rund); padding: 24px 22px 22px; display: flex; flex-direction: column; }
.qng-vorteil > b { font: 300 clamp(1.9rem, 2.6vw, 2.3rem)/1.05 var(--schrift); color: var(--gruen-tief); letter-spacing: -.015em; white-space: nowrap; }
.qng-vorteil-titel { font: 700 15px var(--schrift); margin: 8px 0 10px; }
.qng-vorteil p { font-size: 14.5px; color: #3A4148; margin: 0; }
.qng-kopf h2 + .vorspann { margin: 16px 0 0; }
.qng-vorteile + .hinweis-tabelle { margin-top: 18px; }
/* Haustyp-Kacheln: gemeinsames Raster wie die Angebotskarten – Titel, Untertitel, Kennzahlen und Preis stehen bei allen drei auf gleicher Hoehe */
@supports (grid-template-rows: subgrid) {
    .haeuser { grid-auto-rows: auto; }
    .haus-karte { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
    .haus-karte-inhalt { display: contents; }
    .haus-karte-inhalt > * { margin-left: 24px; margin-right: 24px; }
    .haus-karte h3 { padding-top: 24px; }
    .haus-karte-fuss { margin-bottom: 22px; }
    .haus-karte .eckdaten { align-self: start; }
}
.eckdaten { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
.eckdaten div { padding: 12px 10px 10px; }
.eckdaten dd { white-space: nowrap; font-size: 16px; }
@media (min-width: 981px) and (max-width: 1240px) {   /* drei schmale Kacheln (iPad Pro hochkant): Kennzahlen etwas kleiner, kein Ueberlauf */
    .haus-karte-inhalt > * { margin-left: 18px; margin-right: 18px; }
    .eckdaten div { padding: 10px 8px 8px; }
    .eckdaten dt { font-size: 10.5px; letter-spacing: .04em; }
    .eckdaten dd { font-size: 14.5px; }
}
@media (min-width: 981px) and (max-width: 1040px) { .eckdaten dd { font-size: 13.5px; } .haus-karte-inhalt > * { margin-left: 14px; margin-right: 14px; } }
