/* ============================================================
   Immobilien Zürcher AG – Stylesheet
   Font: Outfit · Palette: Deep Navy + Blue + White
   ============================================================ */

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

:root {
  --deep:    #0b1f3a;
  --navy:    #1a3a6b;
  --blue:    #2563eb;
  --blue-l:  #3b82f6;
  --blue-xl: #dbeafe;
  --gold:    #d4a847;
  --bg:      #f5f7fb;
  --white:   #ffffff;
  --text:    #1e2b3c;
  --muted:   #64748b;
  --border:  #e2e8f0;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(0,0,0,0.08);
  --shadow-l:0 12px 48px rgba(0,0,0,0.14);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Animations ─────────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease calc(var(--d, 0s)), transform 0.65s ease calc(var(--d, 0s));
}
.reveal-up.visible {
  opacity: 1;
  transform: none;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-l); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.3); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-full { width: 100%; justify-content: center; }

/* ── Overline / Section Header ───────────────────────────── */
.overline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
  display: block;
}
.overline-light { color: rgba(255,255,255,0.55); }
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}
.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-header p { color: var(--muted); font-size: 1rem; }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-bg { background: var(--bg); }
.section-navy {
  background: var(--deep);
  padding: 96px 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  border-bottom-color: transparent;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-emblem {
  width: 42px; height: 42px;
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.logo-name {
  display: block;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.logo-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--bg);
}
.nav-links .nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 8px 18px;
}
.nav-links .nav-cta:hover { background: var(--blue-l); }

.nav-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-phone svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }
.nav-phone:hover { color: var(--blue); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 600;
}
.mobile-overlay.active { display: block; }
.mobile-menu {
  position: fixed;
  top: 0; right: -320px;
  width: 300px; height: 100vh;
  background: var(--white);
  z-index: 700;
  padding: 80px 28px 40px;
  display: flex; flex-direction: column; gap: 8px;
  transition: right 0.35s ease;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-close {
  position: absolute; top: 20px; right: 20px;
  background: var(--bg); border: none;
  width: 36px; height: 36px; border-radius: 8px;
  font-size: 1rem; cursor: pointer; color: var(--text);
}
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu ul a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.2s ease;
}
.mobile-menu ul a:hover { background: var(--bg); }
.mobile-contact {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-contact a {
  font-size: 0.88rem;
  color: var(--muted);
}
.mobile-contact a:hover { color: var(--blue); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-bottom: 120px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
  will-change: transform;
}
#hero.loaded .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,31,58,0.88) 0%, rgba(26,58,107,0.72) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
}
.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
  display: block;
}
.hero-content h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 22px;
}
.hero-accent { color: var(--gold); }
.hero-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-bottom: 36px;
  font-weight: 300;
}

/* Search Bar */
.search-bar-wrap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  transform: translateY(50%);
}
.search-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-l);
  overflow: hidden;
}
.search-tabs {
  display: flex;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.s-tab {
  flex: 1;
  padding: 14px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s ease;
}
.s-tab.active {
  background: var(--white);
  color: var(--blue);
  border-bottom: 2.5px solid var(--blue);
}
.search-fields {
  display: flex;
  align-items: flex-end;
  gap: 0;
  padding: 20px 24px;
}
.s-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 16px;
  border-right: 1px solid var(--border);
  margin-right: 16px;
}
.s-field:last-of-type { border-right: none; margin-right: 0; padding-right: 0; }
.s-field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.s-field input,
.s-field select {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border: none;
  outline: none;
  background: none;
  padding: 0;
  width: 100%;
}
.s-field select { cursor: pointer; }
.s-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.s-btn svg { width: 18px; height: 18px; }
.s-btn:hover { background: var(--blue-l); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.3); }

/* ============================================================
   STATS
   ============================================================ */
.stats-section {
  padding: 100px 0 56px;
  background: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-item {
  background: var(--white);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.stat-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  display: inline;
}
.stat-plus, .stat-prefix {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  display: inline;
}
.stat-prefix { font-size: 1.1rem; margin-right: 2px; }
.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}

/* ============================================================
   INSERATE / LISTINGS
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
}
.filter-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.filter-btn:not(.active):hover {
  border-color: var(--blue);
  color: var(--blue);
}
.filter-count {
  background: rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 1px 8px;
  font-size: 0.78rem;
}
.filter-btn:not(.active) .filter-count {
  background: var(--bg);
  color: var(--text);
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.listing-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-l);
  border-color: transparent;
}
.listing-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.listing-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.listing-card:hover .listing-img img { transform: scale(1.05); }
.listing-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.35) 100%);
}
.listing-type-badge {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}
.badge-kaufen { background: rgba(37,99,235,0.9); color: #fff; }
.badge-mieten { background: rgba(212,168,71,0.9); color: #1e2b3c; }
.listing-highlight {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,0.95);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.listing-new {
  position: absolute;
  bottom: 14px; right: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  background: #16a34a;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.listing-body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.listing-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.listing-location svg { width: 13px; height: 13px; flex-shrink: 0; }
.listing-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.listing-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.listing-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.listing-stats {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.listing-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
}
.listing-stats svg { width: 14px; height: 14px; color: var(--blue); flex-shrink: 0; }

.listing-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: none;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 0 0;
  transition: gap 0.2s ease;
  text-decoration: none;
}
.listing-btn svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.listing-card:hover .listing-btn svg { transform: translate(3px, -3px); }

.no-results-msg {
  text-align: center;
  color: var(--muted);
  padding: 48px;
  font-size: 1rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
}

/* ============================================================
   LEISTUNGEN
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 4px;
}
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.service-card p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.service-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  margin-top: 4px;
  display: inline-block;
  transition: gap 0.2s ease;
}
.service-link:hover { color: var(--blue-l); }

/* ============================================================
   ÜBER UNS
   ============================================================ */
.ueber-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.ueber-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.ueber-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}
.ueber-badge {
  position: absolute;
  bottom: 24px; right: 24px;
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  padding: 14px 20px;
  text-align: center;
  line-height: 1.3;
  box-shadow: var(--shadow);
}
.ueber-badge strong { display: block; font-size: 2rem; font-weight: 800; }
.ueber-badge span { font-size: 0.78rem; font-weight: 500; opacity: 0.85; }

.ueber-content h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 18px;
  color: var(--text);
}
.ueber-content h2 em { color: var(--blue); font-style: normal; }
.ueber-content .lead {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 14px;
}
.ueber-content p {
  font-size: 0.93rem;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.7;
}
.ueber-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 28px;
}
.u-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-xl);
  padding: 6px 14px;
  border-radius: 100px;
}

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-l);
  border-color: transparent;
}
.team-img-wrap {
  aspect-ratio: 1/1;
  overflow: hidden;
}
.team-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.team-card:hover .team-img-wrap img { transform: scale(1.04); }
.team-body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.team-role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.02em;
}
.team-spec {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.team-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 4px 0 10px;
}
.team-stat strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.team-stat span {
  font-size: 0.78rem;
  color: var(--muted);
}
.team-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}
.team-phone svg { width: 15px; height: 15px; color: var(--blue); flex-shrink: 0; }
.team-phone:hover { color: var(--blue); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s ease;
}
.review-card:hover { background: rgba(255,255,255,0.09); }
.review-quote {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--blue-l);
  font-weight: 800;
  opacity: 0.5;
  margin-bottom: -12px;
}
.review-card p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.review-avatar {
  width: 40px; height: 40px;
  background: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.review-author strong {
  display: block;
  font-size: 0.88rem;
  color: #fff;
}
.review-author span {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   KONTAKT
   ============================================================ */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.kontakt-info h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.kontakt-info > p {
  color: var(--muted);
  font-size: 0.97rem;
  margin-bottom: 32px;
  line-height: 1.65;
}
.kontakt-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}
.kontakt-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ki-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.kontakt-item strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.kontakt-item span,
.kontakt-item a {
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.5;
}
.kontakt-item a:hover { color: var(--blue); }
.kontakt-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.kontakt-map iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: none;
}

/* Kontakt Form */
.kontakt-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-group:last-of-type { margin-bottom: 24px; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
  background: var(--white);
}
.form-group input.error,
.form-group select.error { border-color: #ef4444; }
.form-note {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 48px 20px;
}
.form-success.visible { display: flex; }
.success-icon { font-size: 3.5rem; }
.form-success h3 { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.form-success p { font-size: 0.93rem; color: var(--muted); max-width: 300px; line-height: 1.6; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--deep); color: rgba(255,255,255,0.75); }
.footer-top { padding: 72px 0 56px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand .footer-logo .logo-emblem {
  width: 44px; height: 44px;
  background: var(--blue);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.footer-brand .footer-logo strong {
  display: block;
  font-size: 0.97rem;
  font-weight: 700;
  color: #fff;
}
.footer-brand .footer-logo span {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.45);
}
.footer-brand p { font-size: 0.84rem; line-height: 1.7; color: rgba(255,255,255,0.55); }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a,
.footer-col address p,
.footer-col address a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-style: normal;
  transition: color 0.2s ease;
  line-height: 1.5;
}
.footer-col ul a:hover,
.footer-col address a:hover { color: var(--gold); }
.footer-col address { display: flex; flex-direction: column; gap: 8px; }

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom-inner p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s ease;
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }
.footer-credit { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-credit a { color: var(--gold); }
.footer-credit a:hover { color: #e0bc6b; }

/* ── Back to Top ─────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  z-index: 400;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}
.back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--blue-l); transform: translateY(-3px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-phone { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-header h2 { font-size: 1.75rem; }
  .ueber-grid, .kontakt-grid { grid-template-columns: 1fr; gap: 40px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .search-fields { flex-direction: column; gap: 14px; }
  .s-field { border-right: none; margin-right: 0; padding-right: 0; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
  .s-field:last-of-type { border-bottom: none; padding-bottom: 0; }
  .s-btn { width: 100%; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .kontakt-form-wrap { padding: 28px 22px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  #hero { padding-bottom: 200px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .listings-grid, .team-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-content h1 { font-size: 2.4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .filter-bar { flex-wrap: wrap; }
  .search-bar-wrap { position: relative; transform: none; background: var(--bg); padding: 20px 0; }
  #hero { padding-bottom: 0; }
  .stats-section { padding-top: 32px; }
}
