/* ==========================================================================
   KAUFMANN IMMOBILIEN – Premium Realtor CSS (UTF-8)
   ========================================================================== */

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

:root {
  --bg-light: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  
  --navy-dark: #0b2545;
  --navy: #134074;
  --navy-light: rgba(19, 64, 116, 0.05);
  
  --gold: #c5a880;
  --gold-hover: #b4966e;
  --gold-light: rgba(197, 168, 128, 0.1);
  
  --text-dark: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography & Layout ─────────────────────────────────────────────── */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-muted);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.section-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--navy-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background-color: var(--gold);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--navy-dark);
  color: var(--bg-light);
}

.btn-primary:hover {
  background-color: var(--navy);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--navy-dark);
  color: var(--navy-dark);
}

.btn-outline:hover {
  background-color: var(--navy-dark);
  color: var(--bg-light);
  transform: translateY(-2px);
}

/* ── Navigation ──────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 0;
  background-color: transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy-dark);
  text-decoration: none;
  font-weight: 600;
}

.nav-logo span {
  color: var(--gold);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy-dark);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--navy-dark);
  margin: 5px 0;
  transition: var(--transition);
}

/* ── Hero Section ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 90vh;
  min-height: 550px;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(11, 37, 69, 0.8), rgba(11, 37, 69, 0.6)), 
              url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80') no-repeat center center;
  background-size: cover;
  color: var(--bg-light);
  padding-top: 80px;
}

.hero-content {
  max-width: 650px;
}

.hero-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
}

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

.hero-actions .btn-outline {
  border-color: var(--bg-light);
  color: var(--bg-light);
}

.hero-actions .btn-outline:hover {
  background-color: var(--bg-light);
  color: var(--navy-dark);
}

/* ── About Section ───────────────────────────────────────────────────── */
.about {
  padding: 100px 0;
}

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

.about-visual {
  position: relative;
}

.about-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 4px;
}

.about-visual::after {
  content: '';
  position: absolute;
  top: 20px;
  left: -20px;
  right: 20px;
  bottom: -20px;
  border: 1px solid var(--gold);
  z-index: -1;
  border-radius: 4px;
}

.about-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--navy-dark);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1rem;
}

.about-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--navy);
  border-left: 2px solid var(--gold);
  padding-left: 20px;
  margin: 30px 0;
}

/* ── Benefits Sektion (3 Säulen) ─────────────────────────────────────── */
.benefits {
  padding: 100px 0;
  background-color: var(--bg-alt);
}

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

.benefit-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 6px;
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(11, 37, 69, 0.05);
  border-color: var(--gold);
}

.benefit-icon {
  width: 50px;
  height: 50px;
  background-color: var(--navy-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 24px;
}

.benefit-card h3 {
  font-size: 1.3rem;
  color: var(--navy-dark);
  margin-bottom: 16px;
}

.benefit-card p {
  font-size: 0.95rem;
}

/* ── Active Listings (Referenzen) ────────────────────────────────────── */
.listings {
  padding: 100px 0;
}

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

.listing-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: var(--transition);
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(11, 37, 69, 0.05);
}

.listing-img-wrapper {
  position: relative;
  height: 240px;
}

.listing-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
}

.badge-sale {
  background-color: var(--gold);
  color: var(--bg-light);
}

.badge-sold {
  background-color: var(--navy-dark);
  color: var(--bg-light);
}

.listing-content {
  padding: 24px;
}

.listing-location {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
}

.listing-title {
  font-size: 1.3rem;
  color: var(--navy-dark);
  margin-bottom: 12px;
}

.listing-details {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.listing-detail-item {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.listing-detail-item strong {
  color: var(--text-dark);
}

/* ── FAQ Accordion ───────────────────────────────────────────────────── */
.faq {
  padding: 100px 0;
  background-color: var(--bg-alt);
}

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy-dark);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-content {
  /* Dynamic height controlled by JS */
}

.faq-content-inner {
  padding: 0 24px 20px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Contact Section ─────────────────────────────────────────────────── */
.contact {
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: start;
}

.contact-form-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 6px;
}

.contact-form-container h3 {
  font-size: 1.6rem;
  color: var(--navy-dark);
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group-full {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--navy-dark);
  font-weight: 500;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-size: 0.9rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-success {
  display: none;
  text-align: center;
  padding: 40px 0;
}

.contact-success svg {
  color: var(--gold);
  margin-bottom: 16px;
}

.contact-success h4 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-info-card {
  background-color: var(--navy-dark);
  color: var(--bg-light);
  padding: 40px;
  border-radius: 6px;
}

.contact-info-card h4 {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 20px;
}

.contact-info-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.phone-large {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--bg-light);
  text-decoration: none;
  display: block;
  margin-bottom: 24px;
}

.phone-large:hover {
  color: var(--gold);
}

.address-block p {
  margin-bottom: 8px;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  background-color: var(--navy-dark);
  color: var(--bg-light);
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--bg-light);
  text-decoration: none;
}

.footer-logo span {
  color: var(--gold);
}

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

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

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

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--gold);
}

/* ── Responsive Styling ──────────────────────────────────────────────── */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .about-visual {
    max-width: 480px;
    margin: 0 auto;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .listings-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 260px;
    background-color: var(--bg-light);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px;
    gap: 24px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-links.open {
    right: 0;
  }
  .hamburger {
    display: block;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
