/* =========================================================
   Neumayer Immobilien – Stylesheet
   Farben aus den Divi-Global-Colors der WordPress-Seite
   ========================================================= */

/* Fonts (selbst gehostet – DSGVO-konform, keine Google-Fonts-Abfrage) */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/playfair/playfair-display-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/playfair/playfair-display-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/playfair/playfair-display-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/manrope/manrope-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/manrope/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/manrope/manrope-latin-700-normal.woff2') format('woff2'); }

:root {
  --green: #133C2B;
  --green-2: #1E4535;
  --green-dark: #1F3A2E;
  --accent: #4E6D60;
  --cream: #F0E6DB;
  --gold: #CFB596;
  --gold-dark: #A8865E;
  --text: #1F2A25;
  --muted: #5d6b64;
  --white: #fff;
  --radius: 25px;
  --shadow: 0 12px 40px rgba(19, 60, 43, .14);
  --header-h: 96px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.75; color: var(--text); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.25; color: var(--green); margin: 0 0 .6em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.h4, h4 { font-size: 30px; text-transform: uppercase; color: var(--gold); letter-spacing: .03em; }
p { margin: 0 0 1.1em; }
.center { text-align: center; }
.lead { font-size: 1.15rem; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(900px, 100% - 40px); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--green); color: #fff; padding: 10px 16px; z-index: 2000; }
.skip-link:focus { left: 10px; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: 4px; text-transform: uppercase;
  text-decoration: none; color: var(--green); background: var(--gold); border: 2px solid var(--gold); border-radius: var(--radius);
  padding: 12px 30px; line-height: 1.4; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover, .btn:focus-visible { background: var(--green); border-color: var(--green); color: var(--gold); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--gold); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 999; background: var(--green); box-shadow: 0 2px 20px rgba(0,0,0,.18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { width: auto; height: 70px; }
.main-nav > ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 14px; text-decoration: none; color: var(--cream); font-weight: 600; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.main-nav > ul > li > a::after { content: ''; display: block; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s; margin-top: 4px; }
.main-nav > ul > li:hover > a::after, .main-nav > ul > li.active > a::after { transform: scaleX(1); }
.main-nav > ul > li:hover > a, .main-nav > ul > li.active > a { color: var(--gold); }
.sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--green-2); box-shadow: var(--shadow); border-top: 3px solid var(--gold);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.has-children:hover > .sub-menu, .has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { text-transform: none; letter-spacing: 0; font-weight: 500; padding: 8px 20px; }
.sub-menu a:hover, .sub-menu .active a { color: var(--gold); background: rgba(255,255,255,.06); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--cream); margin: 5px 0; transition: .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  :root { --header-h: 78px; }
  .brand img { height: 56px; }
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--green); overflow-y: auto; transform: translateX(100%); transition: transform .3s; }
  .nav-open .main-nav { transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 20px; gap: 0; }
  .main-nav a { padding: 14px 6px; border-bottom: 1px solid rgba(240,230,219,.12); font-size: 16px; }
  .main-nav > ul > li > a::after { display: none; }
  .main-nav > ul > li.active > a { color: var(--gold); }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
  body.nav-open { overflow: hidden; }
}

/* Sections & backgrounds */
.section { padding: clamp(60px, 8vw, 110px) 0; }
.paper { background: linear-gradient(rgba(240,230,219,.82), rgba(240,230,219,.82)), var(--paper) center / cover; }
.section-title { text-align: center; margin-bottom: 1.4em; position: relative; }
.section-title::after { content: ''; display: block; width: 70px; height: 2px; background: var(--gold); margin: .5em auto 0; }
.section-title.left { text-align: left; }
.section-title.left::after { margin-left: 0; }

/* Home hero */
.home-hero { position: relative; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: grid; place-items: center;
  background: linear-gradient(rgba(19,60,43,.30), rgba(19,60,43,.55)), var(--hero) center / cover no-repeat; }
.home-hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.home-hero-logo { width: min(640px, 86vw); filter: drop-shadow(0 4px 24px rgba(0,0,0,.45)); }
.scroll-down { position: absolute; bottom: 28px; left: 50%; width: 30px; height: 50px; margin-left: -15px; border: 2px solid #fff; border-radius: 20px; }
.scroll-down::after { content: ''; position: absolute; top: 10px; left: 50%; width: 4px; height: 10px; margin-left: -2px; background: #fff; border-radius: 2px; animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(16px); } }

/* Page hero */
.page-hero { min-height: 52vh; display: flex; align-items: center; text-align: center; color: #fff;
  background: linear-gradient(rgba(19,60,43,.35), rgba(19,60,43,.55)), var(--hero) center / cover no-repeat; padding: 80px 0; }
.page-hero.hero-tall { min-height: 70vh; }
.page-hero.hero-sepia { background: linear-gradient(rgba(31,42,37,.45), rgba(31,42,37,.6)), var(--hero) center 30% / cover no-repeat; }
.page-hero h1 { color: #fff; text-transform: uppercase; letter-spacing: .06em; text-shadow: 0 2px 20px rgba(0,0,0,.25); margin: 0; }
.page-hero h1 span { display: block; font-size: .55em; letter-spacing: .12em; color: var(--gold); margin-top: .3em; }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.7rem); margin: .8em 0 0; color: var(--cream); }

/* Cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.card { background: var(--green); color: var(--cream); border-radius: 8px; padding: 44px 34px 38px; box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform .3s; }
.card:hover { transform: translateY(-4px); }
.card .h4 { color: var(--gold); }
.team-member .h4 { color: var(--gold-dark); }
.card .icon { width: 80px; height: 80px; object-fit: contain; margin-bottom: 22px; }
.card p { flex: 1; }
.card .btn { margin-top: 8px; }
/* Startseite: drei Leistungen wie auf der früheren Seite – ohne Kästen, viel Luft */
.home-services { background: #4a6757; padding: 80px 0 90px; }
.home-services .cards-3 { gap: 60px; max-width: 1080px; }
.home-services .card { background: none; box-shadow: none; border-radius: 0; padding: 0 10px; }
.home-services .card:hover { transform: none; }
.home-services .card .icon { width: 120px; height: 120px; margin-bottom: 34px; }
.home-services .card .h4 { font-size: 30px; font-weight: 600; line-height: 1.6; margin: 0 0 30px; }
.home-services .card p { font-size: 15px; line-height: 1.6; color: var(--cream); max-width: 340px; margin: 0 auto 40px; }
.home-services .card .btn { font-size: 18px; letter-spacing: 4px; padding: 5px 18px; margin-top: auto; }
.home-services .card .btn:hover { background: var(--cream); border-color: var(--cream); color: var(--green); }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
/* Handy: lange Wörter (z. B. „Finanzierungsrechner“, „Datenschutzerklärung“) dürfen nichts über den Bildschirm hinaus drücken */
@media (max-width: 600px) {
  .cards-3 > * { min-width: 0; }
  .card { padding: 34px 20px 30px; }
  .card .h4, .home-services .card .h4 { font-size: clamp(18px, 5.6vw, 30px); overflow-wrap: anywhere; hyphens: auto; }
  .btn, .home-services .card .btn { max-width: 100%; font-size: 13px; letter-spacing: 1.5px; padding: 10px 16px; overflow-wrap: anywhere; }
  .page-hero h1 { font-size: clamp(1.5rem, 8vw, 2.4rem); overflow-wrap: anywhere; hyphens: auto; }
  h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
  .legal h1 { font-size: clamp(1.6rem, 8vw, 2.4rem); }
}

/* Projekte */
.project-card { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.project-img { position: relative; display: block; min-height: 340px; }
.project-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project-card:hover .project-img img { transform: scale(1.04); }
.img-badge { position: absolute; left: 20px; top: 20px; background: var(--gold); color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; padding: 8px 16px; border-radius: var(--radius); }
.project-body { padding: clamp(30px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
@media (max-width: 860px) { .project-card { grid-template-columns: 1fr; } .project-img { min-height: 260px; } }

/* Stadthäuser */
.anchor-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; margin-bottom: clamp(50px, 6vw, 80px); }
.feature:last-child { margin-bottom: 0; }
.feature.reverse .feature-img { order: 2; }
.feature-img { margin: 0; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.feature-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s; }
.feature-img:hover img { transform: scale(1.03); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature.reverse .feature-img { order: 0; } }
.feature-text h3 { font-weight: 600; }
.page-stadthaeuser .lead, .page-stadthaeuser .feature-text p, .page-stadthaeuser #standort p { text-align: justify; hyphens: auto; }
.tour { position: relative; display: block; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.tour img { width: 100%; transition: transform .6s; }
.tour:hover img { transform: scale(1.03); }
.tour-play { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: var(--green); padding: 14px 28px; border-radius: var(--radius); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; font-size: 14px; box-shadow: var(--shadow); }
.tour-play svg { width: 22px; height: 22px; fill: currentColor; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.units-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; }
.units-head h2 { margin: 0; }
.ic-wrap { margin: 10px 0 30px; min-height: 40px; }

/* Map (Zwei-Klick) */
.map-consent { position: relative; border-radius: 8px; overflow: hidden; background: var(--green-2); aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 30px; color: var(--cream); font-size: 14px; line-height: 1.6;
  background: linear-gradient(135deg, var(--green) 0%, var(--accent) 100%); }
.map-placeholder svg { width: 46px; height: 46px; fill: var(--gold); margin-bottom: 14px; }
.map-placeholder a { color: var(--gold); }
.map-placeholder .btn { margin: 6px 0 14px; }
.map-placeholder .btn:hover { background: var(--cream); border-color: var(--cream); color: var(--green); }

/* Über uns */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 60px; justify-content: center; text-align: center; }
.team-member img { width: 280px; height: 280px; object-fit: cover; border-radius: 50%; margin: 0 auto 26px; border: 6px solid #fff; box-shadow: var(--shadow); }
.team-member .h4 { margin-bottom: .2em; }
.team-member .role { font-weight: 600; color: var(--green); margin-bottom: .6em; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } .team-member img { width: 220px; height: 220px; } }
.band-image { background: var(--hero) center / cover fixed no-repeat; }
@media (hover: none) { .band-image { background-attachment: scroll; } }
.glass-box { max-width: 640px; background: rgba(19,60,43,.86); color: var(--cream); padding: clamp(30px, 5vw, 56px); border-radius: 8px; backdrop-filter: blur(4px); }
.glass-box h2 { color: var(--gold); }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.value { display: flex; align-items: center; gap: 22px; background: var(--green); padding: 22px 26px; border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 20px; }
.value img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.value h3 { margin: 0; font-size: 1.25rem; color: var(--cream); }
.values-images { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.values-images a { display: block; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.values-images img { width: 100%; aspect-ratio: 1 / 2; object-fit: cover; transition: transform .6s; }
.values-images a:hover img { transform: scale(1.04); }
.values-images a:nth-child(2) { margin-top: 50px; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } .values-images img { aspect-ratio: 3 / 4; } }

/* Familiengeschichte */
.timeline { position: relative; margin: 50px 0; padding-left: 40px; border-left: 2px solid var(--gold); }
.timeline-item { position: relative; margin-bottom: 50px; }
.timeline-item::before { content: ''; position: absolute; left: -50px; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); border: 3px solid var(--gold); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 20px; }
.gallery a { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(.15); transition: transform .5s, filter .5s; }
.gallery a:hover img { transform: scale(1.05); filter: none; }
.gallery-portraits img { aspect-ratio: 3 / 4; object-position: top; }
@media (max-width: 600px) { .timeline { padding-left: 26px; } .timeline-item::before { left: -36px; } }

/* Kontakt + Rechtliches (dunkler Hintergrund) */
.paper-dark { background: linear-gradient(rgba(31,58,46,.94), rgba(31,58,46,.94)), var(--paper) center / cover; color: var(--cream); padding: clamp(60px, 8vw, 110px) 0; }
.paper-dark h1, .paper-dark h2, .paper-dark h3 { color: var(--gold); }
.paper-dark a { color: var(--gold); }
.paper-dark a.btn { color: var(--green); }
.legal h1 { margin-bottom: 1em; }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal h3 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; margin-top: 1.4em; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .3em; }
.contact-title { text-align: center; text-transform: uppercase; letter-spacing: .06em; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 5vw, 70px); margin-top: 40px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; letter-spacing: .03em; margin-bottom: 6px; }
.field input, .field textarea { font: inherit; font-size: 16px; color: var(--text); background: var(--cream); border: 2px solid transparent; border-radius: 6px; padding: 12px 14px; transition: border-color .2s, background .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.field.check label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.field.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.field .err { color: #ffb4a8; margin-top: 4px; font-size: 13px; }
.field .btn { justify-self: start; align-self: flex-start; }
.hp { position: absolute !important; left: -9999px !important; }
@media (max-width: 600px) { .contact-form { grid-template-columns: 1fr; } }
.alert { padding: 16px 20px; border-radius: 6px; margin-bottom: 22px; }
.alert.success { background: rgba(207,181,150,.2); border: 1px solid var(--gold); }
.alert.error { background: rgba(200,60,40,.2); border: 1px solid #e0887a; }
.contact-info { font-size: 16px; }
.contact-info .map-consent { margin-top: 26px; }

/* Footer */
.site-footer { color: #fff; background: linear-gradient(180deg, rgba(19,60,43,.93), rgba(30,69,53,.97)), var(--paper) center / cover; padding: 0; font-size: 16px; font-weight: 500; line-height: 1.6; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: start; text-align: center; padding: 58px 0 70px; }
.site-footer h4 { font-size: 26px; font-weight: 600; line-height: 1.6; color: var(--gold); text-transform: uppercase; letter-spacing: 0; margin: 0 0 26px; }
.site-footer p { margin: 0 0 16px; }
.site-footer p.tight { margin-bottom: 8px; }
.site-footer p.spaced { margin-bottom: 32px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-brand img { width: 330px; max-width: 100%; margin: 0 auto 26px; }
.social { list-style: none; display: flex; justify-content: center; gap: 10px; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); transition: background .25s; }
.social a:hover { background: var(--cream); }
.social svg { width: 18px; height: 18px; fill: var(--green); }
.site-footer h4.footer-legal { margin: 10px 0 30px; }
.site-footer h4.footer-legal a { color: var(--gold); }
.site-footer h4.footer-legal a:hover { color: #fff; }
.footer-bottom { background: #222; color: #666; font-size: 14px; padding: 15px 0 15px; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: 50px; }
  .footer-brand { order: -1; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(10,25,18,.94); display: flex; align-items: center; justify-content: center; padding: 40px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; box-shadow: 0 10px 60px rgba(0,0,0,.6); }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 48px; line-height: 1; cursor: pointer; padding: 10px 16px; opacity: .8; }
.lightbox button:hover { opacity: 1; color: var(--gold); }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* Einblend-Animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; } }

/* Freie Einheiten aus Nimbus (Liste + Detail) */
.unit-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 30px; }
.unit-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.unit-img { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--green-2); overflow: hidden; }
.unit-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.unit-card:hover .unit-img img { transform: scale(1.04); }
.unit-noimg { display: block; width: 100%; height: 100%; }
.unit-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.unit-body h3 { margin-bottom: .3em; }
.unit-body h3 a { text-decoration: none; }
.unit-loc { color: var(--muted); font-size: 15px; margin-bottom: .8em; }
.unit-facts { list-style: none; margin: 0 0 .8em; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
.unit-price { font-family: var(--serif); font-size: 1.3rem; color: var(--green); flex: 1; }
.unit-body .btn { align-self: flex-start; }
.units-empty { text-align: center; background: #fff; border-radius: 8px; padding: 40px 24px; box-shadow: var(--shadow); }

.unit-detail h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .2em; }
.unit-back { font-size: 15px; margin-bottom: 1em; }
.unit-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 10px; margin: 24px 0 8px; }
.unit-gallery a { display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; }
.unit-gallery a.main { grid-row: span 2; aspect-ratio: auto; }
.unit-gallery img { width: 100%; height: 100%; object-fit: cover; }
.unit-more { font-size: 14px; color: var(--muted); }
.unit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(30px, 5vw, 60px); margin-top: 30px; align-items: start; }
.unit-side { background: #fff; border-radius: 8px; padding: 24px; box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 16px); }
.unit-table { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 16px; font-size: 15px; }
.unit-table dt { color: var(--muted); }
.unit-table dd { margin: 0; text-align: right; }
.unit-note { font-size: 13px; color: var(--muted); }
.unit-features { columns: 2; padding-left: 1.2em; }
.unit-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.unit-plans a { display: block; background: #fff; border-radius: 6px; padding: 8px; box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .unit-layout { grid-template-columns: 1fr; }
  .unit-side { position: static; }
  .unit-gallery { grid-template-columns: 1fr 1fr; }
  .unit-gallery a.main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 2; }
  .unit-features { columns: 1; }
}

/* Map: Zustimmung zurücknehmen */

/* Einwilligung externe Inhalte (Pop-up, Platzhalter, Footer-Link) */
.consent { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1600; width: min(720px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--green); color: var(--cream); border: 1px solid rgba(201,169,124,.45); border-radius: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.35); padding: 24px 26px; font-size: 14.5px; line-height: 1.6; }
.consent[hidden] { display: none; }
.consent-title { font-family: var(--serif); font-size: 22px; color: var(--gold); margin: 0 0 .4em; }
.consent a { color: var(--gold); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.consent-actions .btn { flex: 1 1 200px; text-align: center; }
.consent-actions .btn:hover, .consent-actions .btn:focus-visible { background: var(--cream); border-color: var(--cream); color: var(--green); }
.ext-placeholder { background: var(--green); color: var(--cream); border-radius: 8px; padding: 34px 24px; text-align: center; font-size: 15px; line-height: 1.6; box-shadow: var(--shadow); }
.ext-placeholder p { max-width: 560px; margin-inline: auto; }
.ext-placeholder a { color: var(--gold); }
.ext-placeholder .btn { margin: 6px 0 16px; }
.ext-placeholder .btn:hover { background: var(--cream); border-color: var(--cream); color: var(--green); }
.ext-alt { font-size: 14px; margin: 0; }
.consent-open { background: none; border: 0; padding: 0; font: inherit; color: var(--gold); cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
.consent-open:hover { color: #fff; }
@media print { .consent { display: none; } }

/* Barrierefreiheit */
.a11y { position: fixed; left: 16px; bottom: 16px; z-index: 1500; }
.a11y-toggle { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--gold); background: var(--green); cursor: pointer; box-shadow: var(--shadow); }
.a11y-toggle svg { width: 28px; height: 28px; fill: var(--gold); }
.a11y-toggle:hover, .a11y-toggle:focus-visible { background: var(--accent); }
.a11y-panel { position: absolute; left: 0; bottom: 64px; width: 250px; background: #fff; color: var(--text); border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.4; }
.a11y-panel[hidden] { display: none; }
.a11y-title { font-weight: 700; color: var(--green); margin: 0 0 4px; }
.a11y-row { display: flex; justify-content: space-between; align-items: center; }
.a11y-size { display: flex; gap: 6px; }
.a11y-panel button { font: inherit; font-weight: 600; cursor: pointer; border-radius: 6px; border: 1px solid #c9c9c9; background: #f6f3ef; color: var(--text); padding: 8px 12px; text-align: left; }
.a11y-panel button:hover { border-color: var(--green); }
.a11y-panel .a11y-opt[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.a11y-panel .a11y-reset { background: none; border-color: transparent; text-decoration: underline; padding-left: 0; }
.a11y-fs-1 body { zoom: 1.1; }
.a11y-fs-2 body { zoom: 1.2; }
.a11y-fs-3 body { zoom: 1.35; }
.a11y-links a { text-decoration: underline !important; }
.a11y-font body, .a11y-font h1, .a11y-font h2, .a11y-font h3, .a11y-font h4 { font-family: Verdana, Arial, sans-serif !important; letter-spacing: .02em; }
.a11y-motion { scroll-behavior: auto; }
.a11y-motion *, .a11y-motion *::before, .a11y-motion *::after { animation: none !important; transition: none !important; }
.a11y-motion .reveal { opacity: 1; transform: none; }
.a11y-contrast { --green: #000; --green-2: #000; --green-dark: #000; --accent: #000; --cream: #fff; --gold: #ffd84d; --text: #000; --muted: #000; }
.a11y-contrast body, .a11y-contrast .paper { background: #fff; }
.a11y-contrast .site-footer, .a11y-contrast .footer-bottom { background: #000; color: #fff; }
.a11y-contrast .page-hero h1, .a11y-contrast .hero-sub { text-shadow: 0 0 6px #000, 0 0 16px #000; }
.a11y-contrast .img-badge, .a11y-contrast .btn { color: #000; }
.a11y-contrast a:not(.btn) { text-decoration: underline; }
@media print { .a11y { display: none; } }
