/* ============================================================
   IMMOFAIR360 — Main Stylesheet
   CVI: Light Blue + Slate
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@300;400;500&display=swap');

/* --- CSS Custom Properties --------------------------------- */
:root {
  --green:        #2E6B9E;
  --green-mid:    #3A7DB5;
  --green-light:  #EDF3F8;
  --blue:         #5B9ECF;
  --blue-light:   #EDF2F6;
  --sage:         #89ADC4;
  --sage-light:   #C6D8E5;
  --dark:         #1A1A1A;
  --gray:         #555555;
  --gray-light:   #F4F7FA;
  --white:        #FFFFFF;
  --border:       #D4DEE6;

  --font-head:    'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  --radius:       6px;
  --shadow:       0 4px 24px rgba(0,0,0,0.08);
  --transition:   0.25s ease;

  --container:    1400px;
  --section-v:    96px;
}

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--green);
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

p  { margin-bottom: 1rem; color: var(--gray); }
p:last-child { margin-bottom: 0; }

/* --- Layout Helpers --------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: var(--section-v) 0;
}
.section--gray  { background: var(--gray-light); }
.section--green { background: var(--green); }
.section--sage  { background: var(--green-light); }

.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 20px;
}

.section-lead {
  font-size: 1.1rem;
  max-width: 620px;
  color: var(--gray);
  line-height: 1.7;
}

/* --- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(46,107,158,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--green-light);
  border-color: var(--green-light);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(236,241,243,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 46px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links li { position: relative; }

.nav-links > li > a {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--dark);
  transition: color var(--transition);
  display: block;
  padding: 24px 0;
}

.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--green); }

/* Dropdown chevron */
.nav-links > .menu-item-has-children > a { padding-right: 14px; }
.nav-links > .menu-item-has-children > a::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-60%) rotate(45deg);
  opacity: 0.5;
  transition: transform var(--transition);
}
.nav-links > .menu-item-has-children:hover > a::after {
  transform: translateY(-30%) rotate(-135deg);
}

/* Desktop dropdown — no gap between parent and sub-menu */
.nav-links .sub-menu {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 6px 0;
  z-index: 200;
  list-style: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  pointer-events: none;
}
.nav-links .menu-item-has-children:hover > .sub-menu,
.nav-links .menu-item-has-children:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.nav-links .sub-menu li a {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  padding: 10px 20px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.nav-links .sub-menu li a:hover {
  background: var(--green-light);
  color: var(--green);
}

/* CTA button in nav */
.nav-cta-wrap { margin-left: 4px; }
.nav-cta-wrap > a.nav-cta { color: var(--white) !important; padding: 14px 32px !important; }
.nav-cta-wrap > a.nav-cta:hover { color: var(--white) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #F0F5FA 0%, var(--green-light) 50%, #E8EFF6 100%);
}

/* --- Video Hero Variant --- */
.hero--video {
  background: #0a1a2a;
}
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 26, 42, 0.82) 0%,
    rgba(17, 32, 48, 0.65) 50%,
    rgba(46, 107, 158, 0.35) 100%
  );
  z-index: 0;
}
.hero--video .hero-eyebrow {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.hero--video .hero-title {
  color: var(--white);
}
.hero--video .hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
}
.hero--video .hero-text {
  color: rgba(255, 255, 255, 0.7);
}
.hero--video .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.hero--video .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}
.hero--video .hero-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero--video .hero-card-tag {
  color: rgba(255, 255, 255, 0.7);
}
.hero--video .hero-card-title {
  color: var(--white);
}
.hero--video .hero-card-item {
  color: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.hero--video .hero-card-item::before {
  color: var(--blue);
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(91,127,158,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero--video::before,
.hero--video::after {
  display: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -50px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(46,107,158,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(46,107,158,0.08);
  color: var(--green);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 1px solid rgba(46,107,158,0.15);
}

.hero-title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  color: var(--green);
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-family: var(--font-head);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 24px;
  line-height: 1.4;
}

.hero-text {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--white);
  border-radius: 16px;
  padding: 56px 52px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  width: 100%;
}

.hero-card-tag {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 8px;
}

.hero-card-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 32px;
  font-family: var(--font-head);
}

.hero-card-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-card-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  color: var(--gray);
}

.hero-card-item::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  background: var(--green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* ============================================================
   INTRO
   ============================================================ */
.intro {
  padding: var(--section-v) 0;
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-text h2 { margin-bottom: 20px; }

.intro-tagline {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--green-mid);
  border-left: 3px solid var(--sage);
  padding-left: 20px;
  margin-top: 28px;
  line-height: 1.6;
}

.intro-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.intro-stat {
  background: var(--green-light);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--border);
}
.intro-stat:first-child {
  grid-column: 1 / -1;
  background: var(--green);
}
.intro-stat:first-child .intro-stat-num,
.intro-stat:first-child .intro-stat-label { color: var(--white); }

.intro-stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.intro-stat-label {
  font-size: 0.82rem;
  color: var(--gray);
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   TWO WAYS — ZWEI WEGE
   ============================================================ */
.zwei-wege {
  padding: var(--section-v) 0;
  background: var(--gray-light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .section-lead {
  margin: 0 auto;
}

.wege-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.weg-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.weg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

.weg-card::before {
  display: none;
}

.weg-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.weg-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.weg-card:hover .weg-card-img img {
  transform: scale(1.05);
}
.weg-card-img .weg-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  margin: 0;
}

.weg-card h3,
.weg-card > p,
.weg-card > .weg-list,
.weg-card > a,
.weg-card > p[style] {
  padding-left: 40px;
  padding-right: 40px;
}
.weg-card h3 {
  padding-top: 28px;
}
.weg-card > a {
  margin-left: 40px;
  margin-right: 40px;
  padding-left: 24px;
  padding-right: 24px;
  margin-bottom: 36px;
}

.weg-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green);
  backdrop-filter: blur(4px);
}

.weg-card h3 { margin-bottom: 12px; }
.weg-card > p { margin-bottom: 28px; font-size: 0.95rem; }

.weg-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}

.weg-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray);
}

.weg-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 1px;
}

.weg-card--private .weg-list li::before {
  background: var(--blue-light);
  color: var(--blue);
}
.weg-card--makler .weg-list li::before {
  background: var(--green-light);
  color: var(--green);
}

/* ============================================================
   SERVICE SHOWCASE
   ============================================================ */
.service-showcase {
  padding: var(--section-v) 0;
  background: var(--gray-light);
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.showcase-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
}
.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
.showcase-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-banner--visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner-inner {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  min-width: 260px;
}
.cookie-banner-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 4px;
}
.cookie-banner-text p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--gray);
  margin: 0;
}
.cookie-banner-text a {
  color: var(--green);
  text-decoration: underline;
}
.cookie-banner-actions {
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-form {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  max-width: 600px;
}
.search-form input[type="search"] {
  flex-grow: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
}
.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--green);
}
.search-results {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.search-result {
  display: flex;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.search-result:last-child {
  border-bottom: 0;
}
.search-result-thumb {
  flex-shrink: 0;
  width: 180px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
}
.search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-result-body {
  flex-grow: 1;
}
.search-result-type {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 8px;
}
.search-result h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.search-result h3 a {
  color: var(--dark);
  transition: color 0.2s ease;
}
.search-result h3 a:hover {
  color: var(--green);
}
.search-result p {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 12px;
}
.search-result-link {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
}
.search-empty {
  padding: 20px 0;
}
.pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.pagination .page-numbers {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--dark);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

@media (max-width: 720px) {
  .search-result { flex-direction: column; }
  .search-result-thumb { width: 100%; height: 180px; }
  .search-form { flex-direction: column; }
}

/* ============================================================
   HONEYPOT — hidden spam-protection field
   ============================================================ */
.hp-wrap {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ============================================================
   INFO PAGES (Verkäufer, Käufer, Grundsteuer, Topaktuell)
   ============================================================ */

/* Numbered steps */
.info-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 28px;
}
.info-step {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--gray-light);
  border-radius: 12px;
  border-left: 3px solid var(--green);
}
.info-step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
}
.info-step h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--dark);
}
.info-step p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  color: var(--gray);
}

/* Styled lists */
.info-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}
.info-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.info-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
ol.info-list {
  counter-reset: info-counter;
}
ol.info-list li {
  counter-increment: info-counter;
}
ol.info-list li::before {
  content: counter(info-counter);
  width: 22px;
  height: 22px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  top: 2px;
}

/* Info tables */
.info-table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 24px 0;
}
.info-table-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.info-table-row:last-child {
  border-bottom: 0;
}
.info-table-head {
  background: var(--gray-light);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
}
.info-table-total {
  background: var(--green-light);
  font-size: 1rem;
}

/* Highlight box */
.info-highlight {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 28px 32px;
  margin: 40px 0 0;
}
.info-highlight h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--green);
}
.info-highlight p {
  margin-bottom: 20px;
  line-height: 1.6;
}
.info-highlight .btn {
  margin-top: 4px;
}

/* Formula box */
.info-formula {
  background: var(--dark);
  color: var(--white);
  padding: 20px 24px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 1rem;
  text-align: center;
  margin: 20px 0;
  letter-spacing: 0.02em;
}

/* Topaktuell article blocks */
.topaktuell-article {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.topaktuell-article:first-of-type {
  padding-top: 12px;
}
.topaktuell-article:last-of-type {
  border-bottom: 0;
}
.topaktuell-article h3 {
  margin-bottom: 14px;
}
.topaktuell-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.topaktuell-date {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.topaktuell-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--green-light);
  color: var(--green);
}

/* Sidebar link list */
.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-links li {
  border-bottom: 1px solid var(--border);
}
.sidebar-links li:last-child {
  border-bottom: 0;
}
.sidebar-links a {
  display: block;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--dark);
  transition: color 0.2s ease, padding 0.2s ease;
}
.sidebar-links a:hover {
  color: var(--green);
  padding-left: 4px;
}

/* Mobile tweaks for info pages */
@media (max-width: 720px) {
  .info-step { flex-direction: column; gap: 12px; padding: 20px; }
  .info-table-row { flex-direction: column; gap: 4px; }
  .info-highlight { padding: 24px 20px; }
}

/* ============================================================
   404 ERROR PAGE
   ============================================================ */
.error-404-section {
  padding: var(--section-v) 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.error-404 {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.error-404-number {
  font-family: var(--font-head);
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 800;
  line-height: 1;
  color: var(--green);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.error-404-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
  color: var(--dark);
}
.error-404-text {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 32px;
  line-height: 1.6;
}
.error-404-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.error-404-suggestions {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.error-404-suggestions h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 16px;
}
.error-404-suggestions ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
}
.error-404-suggestions a {
  color: var(--green);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.error-404-suggestions a:hover {
  border-bottom-color: var(--green);
}

/* ============================================================
   HUB PAGES — cards grid linking to subpages
   ============================================================ */
.hub-intro {
  max-width: 720px;
  font-size: 1.05rem;
  color: var(--gray);
  margin: 0 auto 56px;
  text-align: center;
  line-height: 1.7;
}
.hub-grid {
  display: grid;
  gap: 24px;
}
.hub-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hub-grid--3 { grid-template-columns: repeat(3, 1fr); }

.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  border-color: var(--green);
}
.hub-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.hub-card-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  background: var(--green-light);
  color: var(--green);
  align-self: flex-start;
}
.hub-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--dark);
}
.hub-card p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}
.hub-card-link {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.02em;
}
.hub-card-link span {
  display: inline-block;
  transition: transform 0.2s ease;
}
.hub-card:hover .hub-card-link span {
  transform: translateX(4px);
}

.hub-cta {
  margin-top: 64px;
  padding: 40px;
  background: var(--gray-light);
  border-radius: 16px;
  text-align: center;
}
.hub-cta p {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 960px) {
  .hub-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .hub-grid--2,
  .hub-grid--3 { grid-template-columns: 1fr; }
  .hub-cta { padding: 28px 20px; }
}

/* ============================================================
   TEAM CARDS
   ============================================================ */
.content-grid--team {
  grid-template-columns: 1fr 280px;
}
.team-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  padding: 0;
}
.team-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
}
.team-info {
  padding: 24px 28px 32px;
}
.team-info h3 {
  margin-bottom: 4px;
}
.team-role {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 8px;
}
.team-location {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
}

/* ============================================================
   MAP EMBED
   ============================================================ */
.map-embed {
  border-radius: 12px;
  overflow: hidden;
}
.map-embed iframe {
  display: block;
  width: 100%;
}

/* ============================================================
   FORM MESSAGES
   ============================================================ */
.form-message {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.form-message--success {
  background: #e3f0fc;
  color: #1a5276;
  border: 1px solid #a9cce3;
}
.form-message--error {
  background: #fde8e8;
  color: #922b21;
  border: 1px solid #f1948a;
}

/* ============================================================
   WHY IMMOFAIR360
   ============================================================ */
.warum {
  padding: var(--section-v) 0;
  background: var(--white);
}

.warum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.warum-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.warum-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.warum-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--green-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.warum-item-body h4 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
  text-transform: none;
  letter-spacing: 0;
}
.warum-item-body p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.6;
  margin: 0;
}

.warum-statement {
  background: var(--green);
  border-radius: 16px;
  padding: 48px 40px;
  color: var(--white);
  position: sticky;
  top: 90px;
}

.warum-statement h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.warum-statement p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

.warum-statement .btn {
  margin-top: 32px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: var(--section-v) 0;
  background-color: #112030;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 26, 42, 0.88) 0%,
    rgba(17, 32, 48, 0.78) 50%,
    rgba(46, 107, 158, 0.65) 100%
  );
  z-index: 0;
}

.cta-section::after {
  display: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-section .section-label {
  color: var(--sage-light);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section .section-lead {
  color: rgba(255,255,255,0.75);
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

.cta-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.cta-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  border-radius: 100px;
  padding: 8px 20px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #112030;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 50px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1) opacity(0.9);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0;
}

.footer-col h5 {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--white); }

.footer-contact li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}
.footer-contact li strong {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Tablet: ≤ 960px --------------------------------------- */
@media (max-width: 960px) {
  :root { --section-v: 72px; }

  .container { padding: 0 28px; }

  /* Hero */
  .hero          { min-height: auto; padding: 110px 0 72px; }
  .hero-inner    { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual   { max-width: 540px; margin: 0 auto; width: 100%; }
  .hero-card     { padding: 40px 36px; }

  /* Sections */
  .intro-grid      { grid-template-columns: 1fr; gap: 48px; }
  .warum-grid      { grid-template-columns: 1fr; gap: 40px; }
  .warum-statement { position: static; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* --- Mobile: ≤ 720px --------------------------------------- */
@media (max-width: 720px) {
  :root { --section-v: 56px; }

  .container { padding: 0 20px; }

  /* Nav — toggle visible, CTA hidden from top-level */
  .nav-toggle { display: flex; }
  .nav-cta    { display: none; }

  /* Hero */
  .hero                 { padding: 96px 0 56px; }
  .hero-inner           { gap: 36px; }
  .hero-visual          { max-width: 100%; }
  .hero-card            { padding: 32px 28px; }
  .hero-card-title      { font-size: 1.6rem; }
  .hero-actions         { flex-direction: column; }
  .hero-actions .btn    { width: 100%; justify-content: center; }

  /* Sections */
  .section-header   { margin-bottom: 40px; }
  .wege-grid        { grid-template-columns: 1fr; }
  .showcase-grid    { grid-template-columns: 1fr; }
  .team-cards       { grid-template-columns: 1fr; }
  .intro-visual     { grid-template-columns: 1fr; }
  .intro-stat:first-child { grid-column: 1; }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* --- Small mobile: ≤ 480px --------------------------------- */
@media (max-width: 480px) {
  :root { --section-v: 48px; }

  .container { padding: 0 16px; }

  /* Hero */
  .hero             { padding: 88px 0 48px; }
  .hero-card        { padding: 28px 20px; }
  .hero-card-title  { font-size: 1.4rem; }

  /* Buttons */
  .btn { padding: 13px 24px; font-size: 0.85rem; }

  /* Cards */
  .weg-card h3,
  .weg-card > p,
  .weg-card > .weg-list,
  .weg-card > a,
  .weg-card > p[style] {
    padding-left: 24px;
    padding-right: 24px;
  }
  .weg-card > a {
    margin-left: 24px;
    margin-right: 24px;
  }
  .warum-statement  { padding: 36px 28px; }
  .warum-statement h3 { font-size: 1.3rem; }

  /* Footer */
  .footer-legal { flex-direction: column; gap: 12px; }
}

/* ============================================================
   INNER PAGES — Shared styles
   ============================================================ */

/* Page hero variants */
.page-hero {
  padding: 120px 0 64px;
  background: var(--green-light);
  border-bottom: 1px solid var(--border);
}
.page-hero--green { background: linear-gradient(135deg, var(--green) 0%, #1E3512 100%); }
.page-hero--green .page-hero-title,
.page-hero--green .section-label,
.page-hero--green .page-hero-lead { color: var(--white); }
.page-hero--green .section-label { color: var(--sage-light); }

.page-hero--blue { background: linear-gradient(135deg, var(--blue) 0%, #3a5c76 100%); }
.page-hero--blue .page-hero-title,
.page-hero--blue .section-label,
.page-hero--blue .page-hero-lead { color: var(--white); }
.page-hero--blue .section-label { color: rgba(255,255,255,0.7); }

.page-hero--sage  { background: var(--green-light); }
.page-hero--dark  { background: #112030; }
.page-hero--dark .page-hero-title { color: var(--white); }

.page-hero-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--green);
  margin-bottom: 12px;
  margin-top: 8px;
}
.page-hero-lead {
  font-size: 1.1rem;
  color: var(--gray);
  margin: 0;
}

/* Content grid — sidebar layout */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

.content-main h2 { margin-bottom: 16px; }
.content-main h3 { margin: 32px 0 10px; font-size: 1.1rem; }
.content-main p  { color: var(--gray); line-height: 1.8; }

/* Checklist */
.content-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 28px;
}
.content-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--gray);
}
.content-checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  margin-top: 2px;
}

/* Highlight box */
.content-highlight {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 28px 32px;
  margin-top: 40px;
}
.content-highlight h3 { margin-top: 0; color: var(--green); }

/* Sidebar */
.content-sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.sidebar-card h3 { font-size: 1.05rem; margin-bottom: 12px; }

.sidebar-card-label {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
  display: block;
}

.sidebar-card--green {
  background: var(--green);
  border-color: var(--green);
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}
.sidebar-list li {
  font-size: 0.9rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-list li::before { content: '→'; color: var(--blue); font-weight: 700; }
.sidebar-list a { color: var(--gray); transition: color var(--transition); }
.sidebar-list a:hover { color: var(--green); }

/* Calculator */
.rechner-card {
  background: var(--gray-light);
  border-radius: 12px;
  padding: 36px;
  margin-top: 32px;
  border: 1px solid var(--border);
}
.rechner-card h3 { margin-top: 0; margin-bottom: 24px; }

.rechner-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rechner-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rechner-field label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
}
.rechner-field input,
.rechner-field select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--dark);
  transition: border-color var(--transition);
}
.rechner-field input:focus,
.rechner-field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,107,158,0.08);
}

.rechner-result {
  margin-top: 24px;
  padding: 24px;
  background: var(--green);
  border-radius: 8px;
  color: var(--white);
}
.rechner-result-label { font-size: 0.82rem; opacity: 0.7; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.rechner-result-value { font-size: 2rem; font-weight: 800; font-family: var(--font-head); margin-top: 4px; }
.rechner-result .rechner-hint,
.rechner-result p.rechner-hint { font-size: 0.78rem; opacity: 0.85; margin-top: 12px; margin-bottom: 0; color: var(--white); line-height: 1.5; }

/* Contact form */
.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--dark);
  transition: border-color var(--transition);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,107,158,0.08);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gray);
  cursor: pointer;
  line-height: 1.5;
}
.form-checkbox input { flex-shrink: 0; margin-top: 3px; accent-color: var(--green); }

/* Team card — old avatar style removed, see TEAM CARDS section above */
.team-info h3 { margin-bottom: 4px; }
.team-role {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue);
  margin-bottom: 8px;
}

/* Tätigkeitsfelder grid */
.taetigkeits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.taetigkeits-card {
  background: var(--gray-light);
  border-radius: 12px;
  padding: 28px 24px;
  border: 1px solid var(--border);
}
.taetigkeits-icon { font-size: 2rem; margin-bottom: 14px; }
.taetigkeits-card h3 { font-size: 1rem; margin-bottom: 8px; }
.taetigkeits-card p { font-size: 0.88rem; margin-bottom: 12px; }
.taetigkeits-card a { font-size: 0.85rem; font-weight: 700; color: var(--green); font-family: var(--font-head); }

/* Lexikon */
.lexikon-entry {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 24px;
}
.lexikon-entry:last-child { border-bottom: none; }
.lexikon-entry h3 { font-size: 1.05rem; color: var(--green); margin-bottom: 8px; }

/* Impressum */
.impressum-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.impressum-nav a {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--green);
  transition: var(--transition);
}
.impressum-nav a:hover { background: var(--green); color: var(--white); }

.impressum-content { max-width: 860px; }
.impressum-section {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.impressum-section:last-child { border-bottom: none; }
.impressum-section h2 { margin-bottom: 20px; }
.impressum-section h3 { font-size: 1rem; margin: 24px 0 8px; }
.impressum-section p { margin-bottom: 12px; }

.impressum-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.9rem; }
.impressum-table th { background: var(--green); color: var(--white); padding: 10px 14px; text-align: left; font-family: var(--font-head); font-size: 0.8rem; }
.impressum-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--gray); }

/* Default page content */
.page-content { max-width: 800px; }
.page-content h2, .page-content h3 { margin: 28px 0 12px; }
.page-content p { color: var(--gray); line-height: 1.8; }
.page-content ul { margin: 8px 0 20px 20px; list-style: disc; }
.page-content ul li { color: var(--gray); margin-bottom: 6px; }

/* Responsive — inner pages */
@media (max-width: 960px) {
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .content-sidebar { order: -1; }
  .page-hero { padding: 100px 0 48px; }
  .taetigkeits-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; }
  .taetigkeits-grid { grid-template-columns: 1fr; }
  /* team-card is already vertical by default */
  .rechner-card { padding: 24px 20px; }
  .page-hero { padding: 88px 0 40px; }
  .impressum-nav { gap: 8px; }
}

/* ============================================================
   NAV — Mobile menu (≤ 720px)
   ============================================================ */
@media (max-width: 720px) {

  /* Mobile menu panel — hidden by default
     NOTE: position: absolute (not fixed) because .site-nav has
     backdrop-filter which creates a new containing block for fixed elements */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 150;
  }
  .nav-links.open {
    display: flex;
  }

  /* Top-level items */
  .nav-links > li {
    border-bottom: 1px solid var(--border);
  }
  .nav-links > li > a {
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
  }
  .nav-links > li > a:hover { color: var(--green); background: var(--green-light); }

  /* Dropdown toggle chevron (mobile) */
  .nav-links > .menu-item-has-children > a::after {
    content: '' !important;
    position: absolute;
    right: 20px;
    top: 50%;
    width: 8px; height: 8px;
    border-right: 2px solid var(--gray);
    border-bottom: 2px solid var(--gray);
    transform: translateY(-60%) rotate(45deg);
    margin: 0;
    opacity: 1;
    transition: transform 0.2s ease;
  }
  .nav-links > .menu-item-has-children.sub-open > a::after {
    transform: translateY(-30%) rotate(-135deg);
  }

  /* Sub-menu — accordion, hidden by default */
  .nav-links .sub-menu {
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    min-width: 0 !important;
    background: var(--gray-light) !important;
    border: none !important;
    border-top: 1px solid var(--border) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    pointer-events: auto !important;
    display: none !important;
    flex-direction: column;
    transition: none !important;
  }
  .nav-links .menu-item-has-children.sub-open > .sub-menu {
    display: flex !important;
  }

  .nav-links .sub-menu li a {
    padding: 14px 20px 14px 36px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    white-space: normal;
  }
  .nav-links .sub-menu li:last-child a { border-bottom: none; }
  .nav-links .sub-menu li a:hover {
    color: var(--green);
    background: rgba(46,107,158,0.04);
  }

  /* CTA at bottom of mobile menu */
  .nav-cta-wrap {
    margin: 0;
    padding: 20px;
    border-top: 1px solid var(--border);
    background: var(--green-light);
  }
  .nav-cta-wrap > a.nav-cta {
    display: flex !important;
    width: 100%;
    justify-content: center;
    color: var(--white) !important;
  }
}

/* ============================================================
   SINGLE PROPERTY LISTING
   ============================================================ */

/* --- Gallery ------------------------------------------------ */
.prop-gallery-section {
  background: var(--dark);
  position: relative;
  z-index: 2;
}
.prop-gallery {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}
.prop-gallery-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4px;
  aspect-ratio: 21/9;
  max-height: 500px;
  overflow: hidden;
}
.prop-gallery-grid--single {
  grid-template-columns: 1fr;
}
.prop-gallery-main {
  overflow: hidden;
  height: 100%;
}
.prop-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.3s ease;
}
.prop-gallery-main img:hover {
  transform: scale(1.02);
}
.prop-gallery-thumbs {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
}
.prop-gallery-thumb {
  overflow: hidden;
  position: relative;
}
.prop-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.prop-gallery-thumb img:hover {
  transform: scale(1.05);
}
.prop-gallery-more {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  pointer-events: none;
}
.prop-gallery-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition), box-shadow var(--transition);
  z-index: 5;
}
.prop-gallery-btn:hover {
  background: var(--green-light);
  box-shadow: var(--shadow);
}
.prop-gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--sage);
  gap: 12px;
}
.prop-gallery-placeholder p {
  font-family: var(--font-head);
  font-size: 0.9rem;
}

/* --- Layout ------------------------------------------------- */
.prop-detail {
  padding: 48px 0 80px;
  position: relative;
  z-index: 1;
}
.prop-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

/* --- Header ------------------------------------------------- */
.prop-header {
  margin-bottom: 32px;
}
.prop-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.prop-badge {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--green);
  color: var(--white);
}
.prop-badge--outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.prop-title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 10px;
}
.prop-address {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray);
  font-size: 0.95rem;
}

/* --- Key Facts Bar ------------------------------------------ */
.prop-keyfacts {
  display: flex;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 36px;
}
.prop-keyfact {
  flex: 1;
  padding: 20px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.prop-keyfact:last-child {
  border-right: none;
}
.prop-keyfact-value {
  display: block;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 2px;
}
.prop-keyfact--price .prop-keyfact-value {
  color: var(--green);
  font-size: 1.5rem;
}
.prop-keyfact-label {
  font-size: 0.78rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* --- Sections ----------------------------------------------- */
.prop-section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.prop-section:last-of-type {
  border-bottom: none;
}
.prop-section-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.prop-section-title svg {
  color: var(--green);
  flex-shrink: 0;
}

/* --- Specs Grid --------------------------------------------- */
.prop-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.prop-spec {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--green-light);
}
.prop-spec:nth-last-child(-n+2) {
  border-bottom: none;
}
.prop-spec:nth-child(odd) {
  padding-right: 24px;
  border-right: 1px solid var(--green-light);
}
.prop-spec:nth-child(even) {
  padding-left: 24px;
}
.prop-spec-label {
  color: var(--gray);
  font-size: 0.9rem;
}
.prop-spec-value {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
  text-align: right;
}

/* --- Text blocks -------------------------------------------- */
.prop-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--gray);
}
.prop-text p {
  margin-bottom: 12px;
}
.prop-text p:last-child {
  margin-bottom: 0;
}
.prop-note {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--green-light);
  border-radius: 8px;
}

/* --- Extras Tags -------------------------------------------- */
.prop-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.prop-extra-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: var(--green-light);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dark);
}

/* --- Updated line ------------------------------------------- */
.prop-updated {
  font-size: 0.8rem;
  color: var(--sage);
  margin-top: 12px;
}

/* --- Sidebar ------------------------------------------------ */
.prop-sidebar {
  position: sticky;
  top: 90px;
}
.prop-sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.prop-sidebar-heading {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.prop-sidebar-text {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.6;
}
.prop-sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 10px;
  font-size: 0.88rem;
  padding: 13px 20px;
}
.prop-sidebar-btn:last-child {
  margin-bottom: 0;
}
.prop-sidebar-card--facts {
  background: var(--green-light);
  border: none;
  box-shadow: none;
}
.prop-sidebar-facts {
  margin-top: 16px;
}
.prop-sidebar-fact {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(46,107,158,0.1);
}
.prop-sidebar-fact:last-child {
  border-bottom: none;
}
.prop-sidebar-fact-label {
  color: var(--gray);
  font-size: 0.85rem;
}
.prop-sidebar-fact-value {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.85rem;
}

/* --- Lightbox ----------------------------------------------- */
.prop-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.prop-lightbox[hidden] {
  display: none;
}
.prop-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.prop-lightbox-close:hover {
  opacity: 1;
}
.prop-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}
.prop-lightbox-nav:hover {
  background: rgba(255,255,255,0.3);
}
.prop-lightbox-prev { left: 20px; }
.prop-lightbox-next { right: 20px; }
.prop-lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prop-lightbox-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}
.prop-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Responsive --------------------------------------------- */
@media (max-width: 960px) {
  .prop-layout {
    grid-template-columns: 1fr;
  }
  .prop-sidebar {
    position: static;
  }
  .prop-gallery-grid {
    max-height: 360px;
  }
}

@media (max-width: 720px) {
  .prop-gallery-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .prop-gallery-main {
    height: auto;
    aspect-ratio: 16/10;
  }
  .prop-gallery-thumbs {
    grid-template-rows: auto;
    grid-template-columns: repeat(3, 1fr);
    height: 120px;
  }
  .prop-keyfacts {
    flex-wrap: wrap;
  }
  .prop-keyfact {
    flex: 1 1 45%;
    border-bottom: 1px solid var(--border);
    padding: 14px 16px;
  }
  .prop-keyfact:nth-child(odd) {
    border-right: 1px solid var(--border);
  }
  .prop-keyfact:nth-child(even) {
    border-right: none;
  }
  .prop-keyfact:nth-last-child(-n+2) {
    border-bottom: none;
  }
  .prop-specs {
    grid-template-columns: 1fr;
  }
  .prop-spec:nth-child(odd) {
    padding-right: 0;
    border-right: none;
  }
  .prop-spec:nth-child(even) {
    padding-left: 0;
  }
  .prop-spec:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--green-light);
  }
  .prop-spec:last-child {
    border-bottom: none;
  }
  .prop-detail {
    padding: 28px 0 50px;
  }
  .prop-title {
    font-size: 1.3rem;
  }
  .prop-lightbox-nav {
    width: 36px;
    height: 36px;
  }
  .prop-lightbox-prev { left: 8px; }
  .prop-lightbox-next { right: 8px; }
}

/* ============================================================
   PROPERTY ARCHIVE / GRID
   ============================================================ */
.prop-archive {
  padding: 48px 0 80px;
}
.prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.prop-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.prop-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.prop-card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--green-light);
}
.prop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.prop-card:hover .prop-card-img img {
  transform: scale(1.05);
}
.prop-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.prop-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 16px;
}
.prop-card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.prop-card-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prop-card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 14px;
}
.prop-card-stats {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--green-light);
}
.prop-card-price {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green);
}
.prop-card-stat {
  font-size: 0.82rem;
  color: var(--gray);
  font-weight: 500;
}
.prop-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--sage);
}
.prop-empty h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin-top: 16px;
  color: var(--dark);
}
.prop-empty p {
  margin-top: 8px;
  color: var(--gray);
}
.prop-pagination {
  margin-top: 40px;
  text-align: center;
}
.prop-pagination .nav-links {
  display: inline-flex;
  gap: 4px;
}
.prop-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.prop-pagination .page-numbers.current,
.prop-pagination .page-numbers:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

@media (max-width: 960px) {
  .prop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .prop-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .prop-archive {
    padding: 28px 0 50px;
  }
}

/* =========================================================
   PROPERTY FILTERS, SORT, BREADCRUMBS, SHARE, SIMILAR, MAP
   ========================================================= */

/* ----- Breadcrumbs ----- */
.prop-breadcrumbs {
  margin: 0 0 20px;
  font-size: 0.9rem;
}
.prop-breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.prop-breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray, #6b7a7d);
}
.prop-breadcrumbs li + li::before {
  content: "›";
  color: var(--sage);
  margin-right: 4px;
}
.prop-breadcrumbs a {
  color: var(--green);
  text-decoration: none;
}
.prop-breadcrumbs a:hover { text-decoration: underline; }
.prop-breadcrumbs [aria-current="page"] {
  color: var(--dark, #1f2d2f);
  font-weight: 500;
}

/* ----- Filter bar ----- */
.prop-filters {
  background: #fff;
  border: 1px solid var(--border, #D4DEE6);
  border-radius: 14px;
  padding: 18px;
  margin: 0 0 20px;
  box-shadow: 0 1px 3px rgba(15, 35, 60, 0.04);
}
.prop-filters-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}
.prop-filters-toggle:hover { background: var(--green-mid, #3A7DB5); }
.prop-filters-count {
  background: #fff;
  color: var(--green);
  border-radius: 999px;
  padding: 0 8px;
  font-size: 0.8rem;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.prop-filters-panel {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  align-items: end;
}
.prop-filter-group {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
}
.prop-filter-group--range { grid-column: span 3; }
.prop-filter-group--search { grid-column: span 6; }
.prop-filter-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray, #6b7a7d);
  margin-bottom: 6px;
}
.prop-filter-select,
.prop-filter-input,
.prop-filter-range input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border, #D4DEE6);
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
  color: var(--dark, #1f2d2f);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.prop-filter-select:focus,
.prop-filter-input:focus,
.prop-filter-range input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 107, 158, 0.15);
}
.prop-filter-range {
  display: flex;
  align-items: center;
  gap: 8px;
}
.prop-filter-range input { min-width: 0; flex: 1; }
.prop-filter-range span { color: var(--sage); font-weight: 600; }

/* Typ pills (Kauf/Miete) */
.prop-filter-typ {
  grid-column: span 12;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--border, #D4DEE6);
  margin-bottom: 4px;
}
.prop-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1.5px solid var(--border, #D4DEE6);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark, #1f2d2f);
  cursor: pointer;
  transition: all 0.15s ease;
}
.prop-filter-pill:hover { border-color: var(--green); }
.prop-filter-pill.is-active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.prop-filter-pill input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.prop-filter-actions {
  grid-column: span 12;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border, #D4DEE6);
}
.prop-filter-reset {
  color: var(--gray, #6b7a7d);
  text-decoration: underline;
  font-size: 0.9rem;
}
.prop-filter-reset:hover { color: var(--green); }

/* ----- Sort bar ----- */
.prop-sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 24px;
  padding: 0 4px;
}
.prop-result-count {
  color: var(--gray, #6b7a7d);
  font-size: 0.95rem;
}
.prop-result-count strong {
  color: var(--dark, #1f2d2f);
  font-size: 1.05rem;
}
.prop-sort-form {
  display: flex;
  align-items: center;
  gap: 10px;
}
.prop-sort-label {
  font-size: 0.9rem;
  color: var(--gray, #6b7a7d);
  font-weight: 500;
}
.prop-sort-select {
  padding: 8px 30px 8px 12px;
  border: 1px solid var(--border, #D4DEE6);
  border-radius: 8px;
  background: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ----- Card badges (update for multiple) ----- */
.prop-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  z-index: 2;
}
.prop-card-badge--ghost {
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark, #1f2d2f);
  backdrop-filter: blur(4px);
}

/* 3-up grid for similar */
.prop-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ----- Share buttons ----- */
.prop-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.prop-share-label {
  font-size: 0.85rem;
  color: var(--gray, #6b7a7d);
  margin-right: 4px;
}
.prop-share-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border, #D4DEE6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  text-decoration: none;
}
.prop-share-btn:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  transform: translateY(-1px);
}
.prop-share-copy-feedback {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  background: var(--dark, #1f2d2f);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.prop-share-copy.is-copied .prop-share-copy-feedback { opacity: 1; }

/* ----- Map section ----- */
.prop-map {
  width: 100%;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border, #D4DEE6);
  background: #eef3f8;
  position: relative;
}
.prop-map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray, #6b7a7d);
  font-size: 0.95rem;
}
.prop-map-note {
  font-size: 0.8rem;
  color: var(--gray, #6b7a7d);
  margin-top: 10px;
}
.prop-map-note a { color: var(--green); }

/* Leaflet container consistency */
.prop-map .leaflet-container {
  height: 100%;
  border-radius: 12px;
  font-family: inherit;
}

/* ----- Inline sidebar contact form ----- */
.prop-contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.prop-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.prop-contact-form input,
.prop-contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border, #D4DEE6);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--dark, #1f2d2f);
}
.prop-contact-form input:focus,
.prop-contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 107, 158, 0.15);
}
.prop-contact-form textarea {
  resize: vertical;
  min-height: 90px;
}
.prop-contact-consent {
  font-size: 0.8rem;
  color: var(--gray, #6b7a7d);
  line-height: 1.5;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 4px;
}
.prop-contact-consent input {
  margin-top: 3px;
  accent-color: var(--green);
}
.prop-contact-consent a { color: var(--green); }

/* ----- Similar section background ----- */
.section--sage {
  background: linear-gradient(180deg, #F7FAFC 0%, #EDF3F8 100%);
}
.prop-similar .section-title { text-align: center; margin-bottom: 8px; }
.prop-similar .section-label { display: block; text-align: center; margin-bottom: 10px; }

/* ----- Empty state (enhanced) ----- */
.prop-empty {
  text-align: center;
  padding: 60px 24px;
  background: #fff;
  border: 1px dashed var(--border, #D4DEE6);
  border-radius: 14px;
}
.prop-empty h2 { margin: 16px 0 8px; }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .prop-filter-group { grid-column: span 6; }
  .prop-filter-group--range { grid-column: span 6; }
  .prop-filter-group--search { grid-column: span 12; }
  .prop-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .prop-filters { padding: 12px; }
  .prop-filters-toggle { display: flex; }
  .prop-filters-panel {
    display: none;
    margin-top: 14px;
  }
  .prop-filters-panel.is-open { display: grid; }
  .prop-filter-group { grid-column: span 12; }
  .prop-filter-group--range { grid-column: span 12; }
  .prop-filter-typ { padding-bottom: 10px; }
  .prop-filter-pill { flex: 1; justify-content: center; font-size: 0.9rem; padding: 10px 12px; }

  .prop-sort-bar { flex-direction: column; align-items: stretch; }
  .prop-sort-form { justify-content: space-between; }

  .prop-map { height: 280px; }
  .prop-grid--3 { grid-template-columns: 1fr; }

  .prop-share { margin-top: 14px; }
  .prop-share-label { width: 100%; margin-bottom: 2px; }
}

/* ----- Print styles ----- */
@media print {
  .site-nav,
  .site-footer,
  .cookie-banner,
  .prop-filters,
  .prop-sort-bar,
  .prop-pagination,
  .prop-share,
  .prop-gallery-btn,
  .prop-sidebar,
  .prop-similar,
  .prop-map,
  .prop-map-note,
  .prop-breadcrumbs {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  .prop-layout { display: block !important; }
  .prop-main { width: 100% !important; max-width: 100% !important; }
  .prop-section { page-break-inside: avoid; }
  .prop-gallery-main img { max-height: 360px; }
  a { color: #000; text-decoration: none; }
  a[href]:after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
  a[href^="#"]:after, a[href^="javascript:"]:after { content: ""; }
}

/* ============================================================
   PROPERTY CATEGORY LANDING INTRO
   Rendered on /immobilien/<category>/ pages from inc/partials/category-intro.php
   ============================================================ */
.prop-category-intro {
  background: #f7f7f2;
  border: 1px solid #e9e9e0;
  border-left: 4px solid var(--sage, #9cb97e);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 18px 0 28px;
}
.prop-category-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #3a3a33;
  margin: 0 0 14px;
}
.prop-category-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 22px;
}
.prop-category-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #4a4a40;
}
.prop-category-bullets svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--sage, #9cb97e);
}
@media (max-width: 720px) {
  .prop-category-intro { padding: 18px 18px; }
  .prop-category-lead  { font-size: 1rem; }
}

/* ============================================================
   PROPERTY ARCHIVE AJAX LOADING STATE
   ============================================================ */
.prop-results {
  transition: opacity .18s ease-out;
  min-height: 200px;
}
.prop-results.is-loading {
  opacity: 0.55;
  pointer-events: none;
  position: relative;
}
.prop-results.is-loading::after {
  content: "";
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border: 3px solid #e2e2d6;
  border-top-color: var(--sage, #9cb97e);
  border-radius: 50%;
  animation: imf-spin 0.8s linear infinite;
  z-index: 2;
}
@keyframes imf-spin {
  to { transform: translateX(-50%) rotate(360deg); }
}
