/* ==========================================================================
   NPA Immobilien — Stylesheet
   ========================================================================== */

:root {
  --charcoal: #1a1815;
  --charcoal-2: #242119;
  --charcoal-3: #322d24;
  --gold: #a9824e;
  --gold-light: #d4b483;
  --gold-dark: #8a6a3a;
  --cream: #faf7f2;
  --cream-2: #f3ede1;
  --cream-3: #ece3d2;
  --text: #2b2823;
  --text-light: #6b6459;
  --white: #ffffff;
  --border: #e5ddc9;
  --sage: #6b7455;
  --shadow: 0 10px 40px -12px rgba(26, 24, 21, 0.18);
  --shadow-sm: 0 4px 16px -6px rgba(26, 24, 21, 0.15);
  --radius: 6px;
  --radius-lg: 14px;
  --maxw: 1240px;
  /* Offener Eck-Rahmen (nicht geschlossen) wie in der Design-Vorlage:
     vier dicke L-förmige Ecken statt einer durchgehenden Linie */
  --frame-corners:
    linear-gradient(var(--gold), var(--gold)) top    left  / 42px 5px  no-repeat,
    linear-gradient(var(--gold), var(--gold)) top    left  / 5px  42px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top    right / 42px 5px  no-repeat,
    linear-gradient(var(--gold), var(--gold)) top    right / 5px  42px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left  / 42px 5px  no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left  / 5px  42px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 42px 5px  no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 5px  42px no-repeat;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--gold);
  display: inline-block;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-family: 'Playfair Display', serif; font-weight: 800; letter-spacing: 0; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { color: var(--text-light); }
.lead { font-size: 1.15rem; color: var(--text-light); }

section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-header { max-width: 680px; margin-bottom: 46px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header p { margin-top: 14px; }

.bg-cream2 { background: var(--cream-2); }
.bg-charcoal { background: var(--charcoal); color: #cfc9bd; }
.bg-charcoal h2, .bg-charcoal h3, .bg-charcoal h4 { color: var(--white); }
.bg-charcoal p { color: #b9b2a3; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-outline { border-color: var(--border); color: var(--charcoal); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-light { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.8rem; }

/* ---------- Icons ---------- */
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 34px; height: 34px; }
.icon-xl { width: 44px; height: 44px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--charcoal);
  color: #cabfa8;
  font-size: 0.8rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar-links { display: flex; gap: 22px; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; opacity: 0.92; }
.topbar-links a:hover { color: var(--gold-light); }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar-right > a { opacity: 0.92; }
.topbar-right > a:hover { color: var(--gold-light); }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a { opacity: 0.8; }
.topbar-social a:hover { opacity: 1; color: var(--gold-light); }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 40px; width: auto; }

nav.main-nav { display: flex; align-items: center; gap: 0; }
nav.main-nav > ul { display: flex; align-items: center; gap: 0; }
nav.main-nav > ul > li { position: relative; }
nav.main-nav > ul > li > a, .nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 11px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  background: none;
  border: none;
  white-space: nowrap;
}
nav.main-nav > ul > li > a:hover,
nav.main-nav > ul > li.active > a,
.nav-dropdown-btn:hover { color: var(--gold-dark); background: var(--cream-2); }
nav.main-nav .icon-sm { width: 14px; height: 14px; margin-top: 1px; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 200px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
  z-index: 50;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 5px;
  font-size: 0.86rem;
  color: var(--text);
}
.dropdown-menu a:hover { background: var(--cream-2); color: var(--gold-dark); }
.nav-caret { display: inline-flex; transition: transform 0.2s ease; }
.dropdown:hover .nav-caret, .dropdown:focus-within .nav-caret { transform: rotate(180deg); }
.dropdown-menu-wide { min-width: 460px; column-count: 2; column-gap: 4px; left: auto; right: 0; }
.dropdown-menu-wide a { break-inside: avoid; }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-phone { display: flex; align-items: center; gap: 8px; font-family: 'Poppins', sans-serif; font-size: 0.86rem; font-weight: 500; }
.nav-phone .icon { color: var(--gold); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background-size: cover;
  background-position: center;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero.hero-inner { min-height: 380px; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, rgba(20,18,15,0.86) 0%, rgba(20,18,15,0.55) 55%, rgba(20,18,15,0.35) 100%);
}
.hero-bg-video {
  position: absolute; inset: 0;
  z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-watermark {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 480px;
  opacity: 0.08;
  filter: brightness(0) invert(1);
  pointer-events: none;
  z-index: 1;
}

/* ---------- Animierter "Video-Look" Hero (Startseite) ---------- */
.hero-video-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  background: var(--charcoal);
}
.hero-video-bg img, .hero-video-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Der Ken-Burns-Zoom simuliert bei einem Standbild Bewegung ("sieht aus wie
   Video") – bei einem echten Video sorgt die Kamera bereits für Bewegung,
   der zusätzliche CSS-Zoom überlagerte sich damit und wirkte wackelig.
   Daher nur noch auf das Foto (Fallback/Vorher-Video) angewendet. */
.hero-video-bg img {
  transform-origin: 62% 45%;
  animation: heroKenBurns 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroKenBurns {
  0%   { transform: scale(1) translate3d(0,0,0); }
  100% { transform: scale(1.1) translate3d(-1.2%, -1%, 0); }
}
/* Eigene Ebene ÜBER dem abdunkelnden Verlauf (::before), damit die
   Lichtpunkte durch das Dunkel hindurchscheinen statt darunter zu verschwinden */
.hero-glow-layer {
  position: absolute; inset: 0; z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,190,120,0.55) 0%, rgba(255,166,64,0.22) 40%, rgba(255,166,64,0) 70%);
  filter: blur(9px);
  mix-blend-mode: screen;
  animation: heroGlow 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroGlow {
  0%, 38% { opacity: 0.1; transform: scale(0.86); }
  50%, 60% { opacity: 1; transform: scale(1.18); }
  100% { opacity: 0.1; transform: scale(0.86); }
}
.hero-glow-room {
  border-radius: 50%;
  filter: blur(28px);
  animation-name: heroGlowRoom;
  animation-duration: 7.5s;
}
@keyframes heroGlowRoom {
  0%, 44% { opacity: 0.05; transform: scale(0.8); }
  55%, 68% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0.05; transform: scale(0.8); }
}
.hero-frame-box {
  display: block;
  padding: 30px 34px 34px;
  background: var(--frame-corners), rgba(20,18,15,0.28);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.hero-frame-box .eyebrow { margin-bottom: 10px; }
.hero-frame-box h1 { margin-bottom: 0; }
.hero-stats-row {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-bottom: 18px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.hero-stats-row div { display: flex; align-items: center; gap: 7px; }
.hero-stats-row span {
  font-size: 0.72rem; font-family: 'Poppins', sans-serif; font-weight: 500;
  color: #e7dfcc; text-transform: uppercase; letter-spacing: 0.04em;
}
.hero-stats-row .icon { color: var(--gold-light); width: 15px; height: 15px; }
@media (max-width: 560px) {
  .hero-frame-box { padding: 20px 20px 22px; }
  .hero-stats-row { gap: 12px 16px; }
}

@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; }
  .hero-actions a.btn { width: 100%; }
  .btn-mobile-full { width: 100%; }
  .check-list-2col { grid-template-columns: 1fr !important; }
}

.check-list-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }

.hero-scroll-cue {
  position: absolute; z-index: 2; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #e7dfcc; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.8;
}
.hero-scroll-cue .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold-light);
  animation: heroScrollDot 1.8s ease-in-out infinite;
}
@keyframes heroScrollDot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%      { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video-bg img { animation: none; }
  .hero-glow { animation: none; opacity: 0.7; }
  .hero-scroll-cue .dot { animation: none; }
}
@media (max-width: 860px) {
  .hero-glow { display: none; }
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-content .eyebrow { color: var(--gold-light); }
.hero-content .eyebrow::before { background: var(--gold-light); }
.hero-content h1 { color: var(--white); margin-bottom: 18px; }
.hero-content p { color: #ded7c8; font-size: 1.1rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: #cabfa8; margin-top: 12px; }

/* ---------- Kontaktseite Layout ---------- */
.kontakt-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
@media (max-width: 860px) {
  .kontakt-grid { grid-template-columns: 1fr; }
}

/* ---------- Service-Icon-Raster ---------- */
.service-icon-grid { display: flex; flex-wrap: wrap; }
.service-icon-grid > a { flex: 1 1 calc(16.666% - 12px); min-width: 0; }
.service-icon-grid .feature-card h4 { word-break: break-word; }
@media (max-width: 860px) {
  .service-icon-grid > a { flex: 1 1 calc(33.333% - 10px); }
}
@media (max-width: 560px) {
  .service-icon-grid > a { flex: 1 1 calc(50% - 8px); }
  .service-icon-grid .feature-card { padding: 22px 12px; }
  .service-icon-grid .feature-card h4 { font-size: 0.92rem; }
}

/* ---------- Search box ---------- */
.search-box {
  position: relative;
  z-index: 3;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-top: -64px;
}
.search-box form {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.search-field { display: flex; flex-direction: column; gap: 6px; }
.search-field label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
}
.search-field select, .search-field input {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--cream);
  color: var(--text);
}
.search-field select:focus, .search-field input:focus,
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; border-color: var(--gold); }
.search-box .btn { padding: 13.5px 22px; }

/* ---------- Trust bar / stats ---------- */
.statbar {
  background: var(--white);
  border-top: 1px solid var(--border);
}
.statbar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.stat { display: flex; align-items: center; gap: 14px; }
.stat .icon-wrap {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat strong { display: block; font-family: 'Poppins', sans-serif; font-size: 1.3rem; color: var(--charcoal); }
.stat span { font-size: 0.82rem; color: var(--text-light); }

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.about-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.about-split > * { min-width: 0; }
.about-media { position: relative; }
.about-media::before {
  content: "";
  position: absolute;
  top: -22px; right: -22px;
  width: 58%; height: 58%;
  background: var(--frame-corners);
  z-index: 0;
}
.about-media img { position: relative; z-index: 1; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-media .badge-float { z-index: 2; }
.about-media .badge-float {
  position: absolute;
  bottom: -24px; left: -24px;
  background: var(--charcoal);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-media .badge-float strong { display: block; font-family: 'Poppins',sans-serif; font-size: 1.8rem; color: var(--gold-light); }
.about-media .badge-float span { font-size: 0.78rem; color: #cabfa8; }

/* Stand-alone stat callout (dark box, e.g. Provisionshinweis) */
.stat-callout {
  display: inline-block;
  background: var(--charcoal);
  color: var(--white);
  padding: 22px 26px;
  border-radius: var(--radius);
  min-width: 220px;
}
.stat-callout .stat-callout-num { display: block; font-family: 'Poppins',sans-serif; font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--gold-light); }
.stat-callout .stat-callout-label { display: block; font-family: 'Poppins',sans-serif; font-weight: 600; font-size: 1rem; margin-top: 8px; }
.stat-callout .stat-callout-sub { display: block; font-size: 0.82rem; color: #cabfa8; margin-top: 4px; line-height: 1.5; }

/* Stat-Callout als über das Bild gelegtes "Badge" (z. B. 0%-Provisionshinweis) */
.about-media .stat-callout-float {
  position: absolute;
  bottom: -24px;
  left: -24px;
  z-index: 2;
  box-shadow: var(--shadow);
}

.check-list { display: flex; flex-direction: column; gap: 12px; margin: 22px 0; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 0.96rem; }
.check-list .icon { color: var(--gold); margin-top: 2px; }

/* Legal / AGB prose */
.legal-prose { max-width: 780px; margin: 0 auto; }
.legal-prose p { color: var(--text); line-height: 1.7; margin-top: 10px; }
.agb-clause { margin-bottom: 30px; }
.agb-clause:last-child { margin-bottom: 0; }
.agb-clause h3 { font-family: 'Poppins',sans-serif; font-size: 1.15rem; color: var(--charcoal); margin-bottom: 10px; }
.agb-clause p { font-size: 0.96rem; }

.legal-prose-wide { max-width: 860px; }
.legal-prose-wide .legal-h2 { font-family: 'Poppins',sans-serif; font-size: 1.5rem; color: var(--charcoal); margin: 46px 0 16px; padding-top: 22px; border-top: 1px solid var(--border, #e6ddd0); }
.legal-prose-wide .legal-h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-prose-wide h3 { font-family: 'Poppins',sans-serif; font-size: 1.12rem; color: var(--charcoal); margin: 28px 0 8px; }
.legal-prose-wide h4 { font-family: 'Poppins',sans-serif; font-size: 0.98rem; color: var(--gold-dark); margin: 20px 0 6px; }
.legal-prose-wide p { color: var(--text); line-height: 1.7; margin-top: 8px; font-size: 0.96rem; }
.legal-prose-wide p.legal-addr { line-height: 1.6; margin: 14px 0; }
.legal-prose-wide em { color: var(--text-light); font-style: italic; }
.legal-prose-wide a { color: var(--gold-dark); text-decoration: underline; }

/* Feature / service cards */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: transparent; }
.feature-card .icon-wrap {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: var(--cream-2);
  color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: 0.92rem; }
.feature-card .more-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-size: 0.84rem; font-weight: 600; color: var(--gold-dark); font-family: 'Poppins', sans-serif; }

/* Photo service cards (with image) */
.photo-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.photo-card .photo-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.photo-card .photo-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.photo-card:hover .photo-wrap img { transform: scale(1.06); }
.photo-card .photo-wrap .icon-badge {
  position: absolute; top: 16px; left: 16px;
  width: 46px; height: 46px;
  background: rgba(250,247,242,0.92);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-dark);
}
.photo-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.photo-card h3 { margin-bottom: 8px; }
.photo-card p { font-size: 0.92rem; flex: 1; }
.photo-card .more-link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.84rem; color: var(--gold-dark); }

/* Property cards */
.property-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.property-card:hover .photo-wrap img { transform: scale(1.05); }
.property-card .photo-wrap img { transition: transform 0.4s ease; }
.property-card .photo-wrap { position: relative; aspect-ratio: 4/3; }
.property-card .photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.property-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
}
.property-tag.tag-sale { background: var(--gold); }
.property-tag.tag-rent { background: var(--sage); }
.property-sample {
  position: absolute; top: 14px; right: 14px;
  background: rgba(26,24,21,0.72);
  color: #f1ece2;
  font-size: 0.66rem;
  padding: 5px 10px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}
.property-price {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(250,247,242,0.95);
  color: var(--charcoal);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 7px 14px;
  border-radius: 6px;
}
.property-card .body { padding: 22px; }
.property-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.property-loc { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-light); margin-bottom: 16px; }
.property-loc .icon { color: var(--gold); }
.property-meta { display: flex; gap: 16px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.property-meta div { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-light); }
.property-meta .icon { color: var(--gold-dark); }

/* ---------- Immobilien-Detail: Galerie ---------- */
.detail-topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.detail-breadcrumb { font-size: 0.85rem; color: var(--text-light); }
.detail-breadcrumb a:hover { color: var(--gold-dark); }
.detail-tags { display: flex; gap: 10px; align-items: center; }

.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: zoom-in;
  background: var(--cream-2);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-main .expand-hint {
  position: absolute; bottom: 16px; right: 16px;
  background: rgba(26,24,21,0.78); color: #fff;
  padding: 8px 14px; border-radius: 6px; font-size: 0.78rem;
  display: flex; gap: 6px; align-items: center;
}
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.gallery-thumb {
  border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  padding: 0; aspect-ratio: 4/3; cursor: pointer; background: none;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active { border-color: var(--gold); }

.lightbox {
  position: fixed; inset: 0; background: rgba(15,14,12,0.95); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 60px 90px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,0.1); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.22); }
.lightbox-close { top: 22px; right: 24px; width: 42px; height: 42px; border-radius: 50%; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #cabfa8; font-size: 0.85rem; font-family: 'Poppins', sans-serif; }

.detail-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: start; }
.detail-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.price-box { background: var(--charcoal); color: #fff; border-radius: var(--radius-lg); padding: 28px; }
.price-box .price-tag-label { font-size: 0.78rem; color: #cabfa8; text-transform: uppercase; letter-spacing: 0.06em; font-family: 'Poppins', sans-serif; }
.price-box .price { font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 700; color: var(--gold-light); margin: 6px 0 18px; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.14); }
.fact-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #d8d2c4; }
.fact-item .icon { color: var(--gold-light); }
.sidebar-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* ---------- Filter bar (Immobilien) ---------- */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}
.filter-bar form { display: grid; grid-template-columns: repeat(6, 1fr) auto; gap: 14px; align-items: end; }
.filter-bar .search-field select, .filter-bar .search-field input { padding: 11px 13px; }
.filter-results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.filter-results-bar .count { font-size: 0.9rem; color: var(--text-light); }
.filter-results-bar .count strong { color: var(--charcoal); }
.sort-select { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; }
.sort-select select { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 8px 12px; background: var(--white); }

/* ---------- Numbered steps ---------- */
.step-list { display: flex; flex-direction: column; gap: 26px; }
.step-item { display: flex; gap: 20px; }
.step-num {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 600;
}
.step-item h4 { margin-bottom: 6px; }
.step-item p { font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); padding: 4px 22px; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.98rem; color: var(--charcoal);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex-shrink: 0; color: var(--gold-dark); transition: transform 0.2s ease; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { padding-bottom: 20px; margin-top: -6px; color: var(--text-light); font-size: 0.92rem; }

/* ---------- Ansprechpartner ---------- */
.contact-person { display: flex; align-items: center; gap: 24px; }
.contact-person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.contact-person h4 { margin-bottom: 2px; }
.contact-person .role { font-size: 0.85rem; color: var(--text-light); margin-bottom: 10px; }
.contact-person .links { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
.contact-person .links a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.contact-person .links a:hover { color: var(--gold-dark); }

/* ---------- Tabs (Eigentümer sub-nav) ---------- */
.pill-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.pill-tabs a {
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
}
.pill-tabs a:hover, .pill-tabs a.active { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }

.area-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.area-pills span {
  padding: 9px 18px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
}
.area-pills span.area-primary { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-family: 'Poppins', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em; color: var(--text); margin-bottom: 7px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--cream);
  color: var(--text);
}
.form-grid textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.8rem; color: var(--text-light); margin-top: 16px; }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.9rem; color: var(--text); text-transform: none; letter-spacing: 0; }
.radio-row input { width: auto; }

/* ---------- Info cards (contact page) ---------- */
.info-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; gap: 16px; }
.info-card .icon-wrap { width: 48px; height: 48px; border-radius: 10px; background: var(--cream-2); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-card h4 { margin-bottom: 6px; }
.info-card p { font-size: 0.9rem; margin: 0; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.hours-table td { padding: 7px 0; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.hours-table td:first-child { color: var(--text); font-weight: 500; }
.hours-table td:last-child { color: var(--text-light); text-align: right; }
.hours-table tr:last-child td { border-bottom: none; }

/* ---------- Testimonial / quote ---------- */
.quote-block { border-left: 3px solid var(--gold); padding-left: 24px; margin: 30px 0; }
.quote-block p { font-size: 1.1rem; font-style: italic; color: var(--charcoal); }

/* ---------- Partner logos ---------- */
.partner-strip { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.partner-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 22px;
  font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--text-light);
  font-size: 0.9rem;
}
.partner-chip .icon { color: var(--gold); }
.partner-logos-label {
  text-align: center;
  margin-top: 36px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}
.partner-logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 40px; margin-top: 16px;
}
.partner-logos img { height: 130px; width: auto; opacity: 0.95; transition: opacity 0.2s, transform 0.2s; }
.partner-logos img:hover { opacity: 1; transform: translateY(-2px); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band > div { min-width: 0; }
.cta-band h2 { overflow-wrap: break-word; }
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(169,130,78,0.35), transparent 55%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: #cabfa8; margin: 0; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-coins {
  position: absolute; right: -10px; bottom: -22px; z-index: 0;
  display: flex; align-items: flex-end; gap: 10px; pointer-events: none;
}
.cta-coins .icon { color: var(--gold-light); }
.cta-coins .icon:nth-child(1) { width: 46px; height: 46px; opacity: 0.16; transform: rotate(-8deg); }
.cta-coins .icon:nth-child(2) { width: 70px; height: 70px; opacity: 0.22; transform: rotate(6deg); }
.cta-coins .icon:nth-child(3) { width: 32px; height: 32px; opacity: 0.14; transform: rotate(-14deg) translateY(-8px); }

/* ---------- News ---------- */
.news-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.news-card img { aspect-ratio: 16/10; object-fit: cover; }
.news-card .body { padding: 22px; }
.news-date { font-family: 'Poppins', sans-serif; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; display: block; }

/* ---------- Tipps-Grid ("Interessantes auf einen Klick") ---------- */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px 24px;
  margin-top: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.tip-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
}
.tip-link .icon { color: var(--gold-dark); width: 20px; height: 20px; transition: transform 0.15s ease; }
.tip-link:hover { color: var(--gold-dark); }
.tip-link:hover .icon { transform: translateX(4px); }
.bg-charcoal .tips-grid { border-bottom-color: rgba(255,255,255,0.12); }
.bg-charcoal .tip-link { color: var(--white); }
.bg-charcoal .tip-link .icon { color: var(--gold-light); }
.bg-charcoal .tip-link:hover { color: var(--gold-light); }
@media (max-width: 860px) {
  .tips-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
}
@media (max-width: 480px) {
  .tips-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
footer.site-footer { background: var(--charcoal); color: #b9b2a3; padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-grid img.footer-logo { height: 38px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-grid p { color: #9a927f; font-size: 0.9rem; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: #cabfa8;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 0.92rem; letter-spacing: 0.03em; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: #b9b2a3; font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; color: #b9b2a3; font-size: 0.9rem; }
.footer-contact .icon { color: var(--gold-light); margin-top: 2px; flex-shrink: 0; }
.footer-contact li.hotline-item { align-items: center; margin-top: 4px; }
.footer-contact .hotline-icon { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.footer-contact .hotline-label { color: var(--gold-light); font-weight: 600; display: block; }
.footer-contact .hotline-sublabel { color: #b9b2a3; font-size: 0.82rem; display: block; margin-top: 6px; }
.footer-contact .hotline-item a { display: block; margin-top: 2px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: 0.82rem; color: #857d6c; flex-wrap: wrap; gap: 10px; }
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-bottom .legal-links a:hover { color: var(--gold-light); }

/* ---------- Placeholder photo tag ---------- */
.sample-note {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; color: var(--text-light);
  background: var(--cream-2); padding: 4px 10px; border-radius: 4px;
  margin-top: 4px;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .about-split { grid-template-columns: 1fr; }
  .about-media::before { right: 0; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-box form { grid-template-columns: repeat(2, 1fr); }
  .filter-bar form { grid-template-columns: repeat(2, 1fr); }
  .statbar .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1220px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: flex; }
  .nav-phone { display: none; }
}

@media (max-width: 860px) {
  .topbar-links span.hide-mobile, .topbar { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { min-height: 520px; }
  .search-box { padding: 18px; margin-top: -40px;}
  .search-box form { grid-template-columns: 1fr; }
  .filter-bar form { grid-template-columns: 1fr; }
  .about-media .badge-float { position: absolute; bottom: -18px; left: 16px; margin: 0; max-width: calc(100% - 32px); }
  .about-media .stat-callout-float { position: absolute; bottom: -18px; left: 16px; margin: 0; max-width: calc(100% - 32px); }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .lightbox { padding: 70px 20px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .facts-grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--charcoal);
  z-index: 500;
  padding: 24px;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-menu-top img { height: 34px; filter: brightness(0) invert(1); }
.mobile-menu-close { background: none; border: none; color: var(--white); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu > ul > li > a, .mobile-menu-group > summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 6px; color: var(--white);
  font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  list-style: none;
}
.mobile-menu-group summary::-webkit-details-marker { display: none; }
.mobile-menu-group[open] summary { color: var(--gold-light); }
.mobile-menu-group ul { padding: 4px 0 10px 14px; }
.mobile-menu-group ul a { display: block; padding: 10px 6px; color: #cabfa8; font-size: 0.95rem; }
.mobile-menu-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

/* ==========================================================================
   Immobilienbewertung — Multi-Step-Wizard
   ========================================================================== */
.bw-wrap { max-width: 900px; margin: 0 auto; }
.bw-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 18px; }
.bw-step-sep { color: var(--border); width: 14px; height: 14px; flex-shrink: 0; }
.bw-step-item { display: flex; align-items: center; gap: 8px; }
.bw-step-circle {
  position: relative; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-size: 0.78rem; font-weight: 600; color: var(--text-light);
  flex-shrink: 0; background: var(--white);
}
.bw-step-num { display: block; }
.bw-step-check { display: none; width: 15px; height: 15px; color: var(--white); }
.bw-step-item.active .bw-step-circle { border-color: var(--gold); color: var(--gold-dark); }
.bw-step-item.done .bw-step-circle { background: var(--gold); border-color: var(--gold); }
.bw-step-item.done .bw-step-num { display: none; }
.bw-step-item.done .bw-step-check { display: block; }
.bw-step-label { font-size: 0.86rem; font-weight: 600; color: var(--text-light); white-space: nowrap; }
.bw-step-item.active .bw-step-label, .bw-step-item.done .bw-step-label { color: var(--charcoal); }
.bw-progress-track { height: 5px; border-radius: 3px; background: var(--cream-2); overflow: hidden; margin-bottom: 34px; }
.bw-progress-fill { height: 100%; background: var(--gold); border-radius: 3px; transition: width 0.3s ease; width: 0%; }

@media (max-width: 760px) {
  .bw-step-label { display: none; }
  .bw-steps { justify-content: center; }
}

.bw-screen { display: none; }
.bw-screen.active { display: block; animation: bwFade 0.25s ease; }
@keyframes bwFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.bw-screen-title { margin-bottom: 22px; font-size: 1.3rem; }
.bw-pflicht { text-align: right; font-size: 0.8rem; color: var(--text-light); margin-bottom: 12px; }

.bw-option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bw-option-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.bw-option-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.bw-option-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 760px) {
  .bw-option-grid.cols-3, .bw-option-grid.cols-4, .bw-option-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
}

.bw-option-card {
  position: relative; text-align: left; background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 20px 16px; cursor: pointer; transition: all 0.2s ease;
  font-family: inherit; display: flex; flex-direction: column; gap: 10px;
}
.bw-option-card:hover { border-color: var(--gold-light); transform: translateY(-2px); }
.bw-option-card.selected { border-color: var(--gold); background: var(--cream-2); box-shadow: 0 0 0 1px var(--gold); }
.bw-option-card .icon-wrap {
  width: 40px; height: 40px; border-radius: 10px; background: var(--cream-2); color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
}
.bw-option-card.selected .icon-wrap { background: var(--gold); color: var(--white); }
.bw-option-card .bw-option-title { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.94rem; color: var(--charcoal); }
.bw-info {
  position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--text-light); font-size: 0.68rem; font-style: italic;
  display: flex; align-items: center; justify-content: center; font-family: Georgia, serif; cursor: help;
}
.bw-stars { display: flex; gap: 2px; }
.bw-star { color: var(--border); font-size: 1rem; line-height: 1; }
.bw-star.filled { color: var(--gold); }

.bw-toggle-card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 18px 14px; cursor: pointer; transition: all 0.2s ease; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: inherit;
}
.bw-toggle-card:hover { border-color: var(--gold-light); }
.bw-toggle-card.selected { border-color: var(--gold); background: var(--cream-2); }
.bw-toggle-card .icon-wrap {
  width: 40px; height: 40px; border-radius: 10px; background: var(--cream-2); color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
}
.bw-toggle-card.selected .icon-wrap { background: var(--gold); color: var(--white); }
.bw-toggle-card .bw-option-title { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.88rem; color: var(--charcoal); }

.bw-counters { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 18px; }
.bw-counter label { display: block; font-family: 'Poppins', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em; color: var(--text); margin-bottom: 8px; }
.bw-counter-row { display: flex; align-items: center; gap: 10px; }
.bw-counter-row input { width: 56px; text-align: center; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 10px 6px; background: var(--cream); color: var(--text); }
.bw-count-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--gold); color: var(--white);
  font-size: 1.1rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.bw-count-btn:hover { background: var(--gold-dark); }

.bw-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; gap: 14px; }
.bw-error { color: #b23b3b; font-size: 0.85rem; margin-top: 12px; min-height: 1.1em; }

.bw-cta-final { text-align: center; padding: 40px 0; }
.bw-cta-final p { margin-bottom: 22px; font-size: 1.05rem; color: var(--text); }
.btn-lg { padding: 17px 36px; font-size: 0.96rem; }

.pill-toggle { display: inline-flex; border: 1.5px solid var(--border); border-radius: 999px; padding: 4px; gap: 4px; }
.pill-toggle button {
  border: none; background: transparent; padding: 9px 22px; border-radius: 999px; cursor: pointer;
  font-family: 'Poppins', sans-serif; font-size: 0.86rem; font-weight: 600; color: var(--text-light);
  transition: all 0.2s ease;
}
.pill-toggle button.active { background: var(--charcoal); color: var(--white); }

.bw-checkbox, .form-checkbox { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 0.86rem; color: var(--text-light); cursor: pointer; }
.bw-checkbox input, .form-checkbox input { margin-top: 3px; width: auto; }
.bw-checkbox a, .form-checkbox a { color: var(--gold-dark); text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.form-error { margin-top: 16px; padding: 14px 16px; background: #fbeaea; border: 1px solid #eec7c7; border-radius: 6px; color: #7a2222; font-size: 0.9rem; }
.avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.avatar-placeholder .icon { width: 26px; height: 26px; }

/* only-for-objektart visibility, driven by data-objektart on .bw-wrap */
.bw-objekttyp-group { display: none; }
.bw-wrap[data-objektart="haus"] .bw-objekttyp-group[data-cat="haus"] { display: block; }
.bw-wrap[data-objektart="wohnung"] .bw-objekttyp-group[data-cat="wohnung"] { display: block; }
.bw-wrap[data-objektart="grundstueck"] .bw-objekttyp-group[data-cat="grundstueck"] { display: block; }

.bw-only-haus, .bw-only-wohnung, .bw-only-grundstueck { display: none; }
.bw-wrap[data-objektart="haus"] .bw-only-haus { display: block; }
.bw-wrap[data-objektart="wohnung"] .bw-only-wohnung { display: block; }
.bw-wrap[data-objektart="grundstueck"] .bw-only-grundstueck { display: block; }
h2.bw-screen-title.bw-only-haus, h2.bw-screen-title.bw-only-wohnung, h2.bw-screen-title.bw-only-grundstueck { display: none; }
.bw-wrap[data-objektart="haus"] h2.bw-only-haus,
.bw-wrap[data-objektart="wohnung"] h2.bw-only-wohnung,
.bw-wrap[data-objektart="grundstueck"] h2.bw-only-grundstueck { display: block; }

/* ---------- Toast-Hinweis (z. B. "noch im Aufbau" bei Social-Media-Icons) ---------- */
.site-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--charcoal);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 90vw;
  text-align: center;
  pointer-events: none;
}
.site-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   NPA Immobilien – FAQ-Chat-Widget
============================================================ */
.npa-chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(139,100,45,0.35);
  z-index: 999;
  transition: transform 0.2s ease;
}
.npa-chat-bubble:hover { transform: scale(1.06); }
.npa-chat-bubble.open { background: var(--charcoal); }

.npa-chat-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 580px;
  max-height: calc(100vh - 110px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(20,18,15,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
}
.npa-chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.npa-chat-header {
  background: var(--charcoal);
  color: var(--white);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.npa-chat-header strong { display: block; font-family: 'Poppins', sans-serif; font-size: 0.95rem; }
.npa-chat-header span { display: block; font-size: 0.76rem; color: #cabfa8; margin-top: 2px; }
.npa-chat-close { background: none; border: none; color: var(--white); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px 8px; }

.npa-chat-body {
  flex: 1 1 auto;
  min-height: 140px;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--cream);
}
.npa-chat-msg { font-size: 0.95rem; line-height: 1.55; padding: 12px 15px; border-radius: 14px; max-width: 88%; }
.npa-chat-msg a { color: inherit; text-decoration: underline; font-weight: 600; }
.npa-chat-msg-bot { background: var(--white); box-shadow: 0 2px 10px rgba(20,18,15,0.1); border: 1px solid rgba(20,18,15,0.06); color: var(--charcoal); font-weight: 500; align-self: flex-start; border-bottom-left-radius: 4px; }
.npa-chat-msg-user { background: var(--gold-dark); color: var(--white); font-weight: 500; align-self: flex-end; border-bottom-right-radius: 4px; }

.npa-chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  flex-shrink: 0;
  max-height: 120px;
  overflow-y: auto;
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.npa-chat-quick-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--gold-light);
  background: var(--white);
  color: var(--gold-dark);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.npa-chat-quick-btn:hover { background: var(--gold-light); color: var(--white); }

.npa-chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--white);
}
.npa-chat-input-row input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.95rem;
  font-family: inherit;
}
.npa-chat-input-row input:focus { outline: 2px solid var(--gold-light); outline-offset: 1px; }
.npa-chat-input-row button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--gold-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .npa-chat-panel { right: 16px; left: 16px; width: auto; bottom: 88px; }
  .npa-chat-bubble { right: 16px; bottom: 16px; }
}

/* ============================================================
   Eigenes Sprachmenü mit Länderflaggen
============================================================ */
.npa-lang-switcher {
  position: relative;
  z-index: 2000;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,0.2);
}
/* Googles eigenes Widget bleibt komplett unsichtbar und außerhalb des
   sichtbaren Bereichs, damit es niemals Klicks auf unserem eigenen
   Button abfangen kann, selbst wenn Google seinen Container per
   Skript wieder "sichtbar" macht. */
.npa-gt-hidden,
.npa-gt-hidden * {
  position: absolute !important;
  left: -99999px !important;
  top: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
.npa-lang-trigger {
  position: relative;
  z-index: 2001;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--white);
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background 0.15s ease;
}
.npa-lang-trigger:hover { background: rgba(255,255,255,0.16); }
.npa-lang-flag { display: inline-flex; align-items: center; }
.npa-lang-flag img { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,0.3); }
.npa-lang-arrow { font-size: 0.55rem; opacity: 0.8; }
.npa-lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(20,18,15,0.28);
  padding: 6px;
  min-width: 190px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 2001;
}
.npa-lang-menu.open { display: block; }
.npa-lang-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  color: var(--charcoal);
  cursor: pointer;
}
.npa-lang-item:hover { background: var(--cream-2); }
.npa-lang-item img { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(20,18,15,0.15); flex-shrink: 0; }

@media (max-width: 860px) {
  .npa-lang-switcher { margin-left: 8px; padding-left: 8px; }
}
@media (max-width: 560px) {
  .npa-lang-switcher:not(.npa-lang-switcher-mobile) { display: none; }
}
.npa-lang-switcher-mobile {
  margin: 12px 0 4px;
  padding: 0;
  border-left: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
  width: 100%;
}
.npa-lang-switcher-mobile .npa-lang-trigger { width: 100%; justify-content: center; padding: 10px 14px; }
.npa-lang-switcher-mobile .npa-lang-menu { position: static; margin-top: 8px; width: 100%; box-shadow: none; border: 1px solid var(--border); }
/* Sicherheitsnetz: Googles eigenen Übersetzungsbalken/Tooltips ausblenden,
   falls sie trotz versteckter Engine kurz aufblitzen */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0px !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* Generelles Sicherheitsnetz: JEDES von Google Translate zusätzlich
   eingefügte Element (Tooltips, Overlays, Popups) darf niemals Klicks
   auf unseren eigenen Inhalten (z.B. Bildergalerie) abfangen. Wir nutzen
   ausschließlich das Präfix "npa-" für eigene Klassen, daher ist dieser
   Riegel für alles mit "goog-" im Namen unbedenklich. */
[class*="goog-"], [id*="goog-"] {
  pointer-events: none !important;
}
.gallery-main, .gallery-thumb, .lightbox-prev, .lightbox-next, .lightbox-close {
  position: relative;
  z-index: 5;
}
