/* ==========================================================================
   SEM-MAS — Redesign Layer  ·  "Refined Neutral + Gold Accent" (editorial)
   --------------------------------------------------------------------------
   Wird als LETZTES Stylesheet auf allen öffentlichen Seiten geladen und
   definiert das neue Designsystem: warmer neutraler Unterbau, Gold nur als
   Akzent, Serifen-Display + Manrope, ruhige redaktionelle Kompositionen.
   Additiv – kein HTML-Umbau nötig (Komponenten werden per Selektor neu
   gestaltet). Reihenfolge: style.css + *-modern.css zuerst, dann diese Datei.
   ========================================================================== */

/* ==========================================================================
   1 · DESIGN TOKENS
   ========================================================================== */
:root {
  /* — Neutraler, warmer Unterbau — */
  --paper:        #FBFAF6;   /* Seitenhintergrund, warmes Off-White        */
  --surface:      #FFFFFF;   /* Karten / erhöhte Flächen                   */
  --surface-2:    #F4F1EA;   /* gefüllte, ruhige Sektionen                 */
  --ink:          #1A1714;   /* Überschriften / primärer Text (warm-black) */
  --ink-2:        #423C33;   /* Fließtext                                  */
  --ink-3:        #6E665A;   /* sekundärer Text                            */
  --line:         #E9E3D7;   /* Haarlinien / Rahmen, warm                  */
  --line-strong:  #D9D1C0;

  /* — Gold ausschließlich als Akzent — */
  --gold:        #B99D5F;
  --gold-dark:   #9A7F45;
  --gold-light:  #D2BB87;
  --gold-soft:   rgba(185, 157, 95, 0.12);
  --gold-line:   rgba(185, 157, 95, 0.35);

  /* Alias-Kompatibilität zu bestehenden Variablen */
  --brand:       #B99D5F;
  --brand-dark:  #9A7F45;
  --brand-light: #D2BB87;
  --background:  #FBFAF6;
  --foreground:  #1A1714;
  --muted:       #6E665A;
  --border:      #E9E3D7;

  /* Schrift-Rollen */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radius-Skala (redaktionell, zurückhaltend) */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Weiche Schatten-Skala */
  --sh-1: 0 1px 2px rgba(26, 23, 20, 0.04), 0 1px 1px rgba(26, 23, 20, 0.03);
  --sh-2: 0 4px 16px rgba(26, 23, 20, 0.06);
  --sh-3: 0 14px 40px rgba(26, 23, 20, 0.10);

  /* Bewegung */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:  220ms;
}

/* ==========================================================================
   2 · BASIS & TYPOGRAFIE
   ========================================================================== */
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink-2);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

input, select, textarea, button { font-family: inherit; }

/* Display-Überschriften: elegante Serife (nur Schrift, KEINE Farbe –
   Farbe wird je nach hellem/dunklem Hintergrund separat gesetzt) */
.hero-main-title,
.section-title,
.section-title-modern,
.cta-content-modern h2,
.cta-title-modern,
.about-hero h1,
.story-text h2,
.values-header h2,
.team-header h2,
.partners-header h2,
.listings-hero h1,
.listing-detail-title,
.search-box-title,
.process-step-title,
.feature-title,
.team-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.12;
}

/* Tinte für Überschriften auf hellem Grund */
.section-title,
.section-title-modern,
.story-text h2,
.values-header h2,
.team-header h2,
.listings-hero h1,
.listing-detail-title,
.search-box-title,
.process-step-title,
.feature-title,
.team-name,
.about-cta .cta-content-modern h2 {
  color: var(--ink);
}

/* Helle Überschriften auf dunklem Grund (Hero, CTA, Partner) */
.hero-main-title,
.about-hero h1,
.cta-title-modern,
.cta-modern .cta-content-modern h2,
.partners-header h2 {
  color: #fff;
}

/* Sektionstitel: ruhiger, größer, redaktionell */
.section-title-modern {
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hero-main-title { letter-spacing: 0; }

/* Gold-Eyebrow: kleine, getrackte Kapitälchen statt Pillen-Badge ---------- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.section-badge::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--gold);
}

/* Lesbarkeitsfix: Untertitel war GROSSBUCHSTABEN mit weitem Tracking ------- */
.section-subtitle-modern {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-3);
  max-width: 60ch;
}
.section-subtitle-modern strong { color: var(--ink); font-weight: 600; }

::selection { background: rgba(185, 157, 95, 0.26); color: var(--ink); }

/* ==========================================================================
   3 · HEADER / NAVIGATION  (Gold-Fill → redaktionelle Unterstreichung)
   ========================================================================== */
header {
  background: rgba(251, 250, 246, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 2.5rem;
}
header .logo { height: 54px; }

nav a {
  position: relative;
  margin-left: 1.9rem;
  padding: 0.4rem 0.15rem;
  border-radius: 0;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: color var(--dur) var(--ease);
}
nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--gold);
  transition: right var(--dur) var(--ease);
}
nav a:hover { background: none; color: var(--ink); }
nav a:hover::after { right: 0; }

nav a.active {
  background: none;
  color: var(--ink);
  font-weight: 600;
}
nav a.active::after { right: 0; }
/* Alten weißen Unterstrich der aktiven Pille entfernen */
nav a.active::before { display: none; }

/* ==========================================================================
   4 · BUTTONS  (primär = Tinte/Charcoal, Gold als Akzent)
   ========================================================================== */
.btn-primary,
.btn-modern-primary,
.btn-modern-cta {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-2);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn-primary:hover,
.btn-modern-primary:hover,
.btn-modern-cta:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: var(--sh-3);
}

/* Gold-Outline-Variante (für sekundäre Akzent-CTAs) */
.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: var(--gold-dark); }

/* CTA-Button auf dunklem Grund: Gold, damit er trägt */
.cta-modern .btn-modern-cta,
.cta-modern .btn-modern-primary {
  background: var(--gold);
  color: #1a1714;
  font-weight: 700;
}
.cta-modern .btn-modern-cta:hover,
.cta-modern .btn-modern-primary:hover {
  background: var(--gold-light);
}

/* Karten-Hover global etwas weicher */
.card { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }

/* ==========================================================================
   5 · HERO + SUCHE  (Gold-Box → redaktionelle, ruhige Glas-Karte)
   ========================================================================== */
.hero-search { min-height: 92vh; }

/* Video aufhellen (war zu dunkel) – Klarheit + leichte Wärme */
.hero-search .hero-video {
  filter: brightness(1.04) contrast(1.02) saturate(0.92);
}

/* Lesbarer Scrim: dunkler oben (Titel) + unten, heller in der Mitte */
.hero-overlay {
  background:
    linear-gradient(180deg,
      rgba(18, 16, 13, 0.58) 0%,
      rgba(18, 16, 13, 0.30) 42%,
      rgba(18, 16, 13, 0.52) 100%);
}

.hero-main-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 600;
  line-height: 1.06;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55);
}

/* Suchkarte: warmes Off-White-Glas statt Vollgold */
.search-box {
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-top: 2px solid var(--gold);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 70px rgba(20, 18, 15, 0.35);
  padding: 2rem 2.5rem 2.25rem;
}
.search-box-title {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
}

.search-select,
.search-input {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
  box-shadow: none;
  font-size: 1rem;
}
.search-select:hover,
.search-input:hover { box-shadow: none; border-color: var(--gold-line); }
.search-select:focus,
.search-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.search-input::placeholder { color: #9c9484; }

/* Radio-Pillen: dunkle Tinte statt Weiß-auf-Gold */
.radio-custom { border-color: var(--ink-3); }
.search-radio input[type="radio"]:checked + .radio-custom {
  background: var(--ink);
  border-color: var(--ink);
}
.search-radio input[type="radio"]:checked + .radio-custom::after { background: var(--gold); }
.radio-label { color: var(--ink-2); font-weight: 600; }

/* Such-Button: Tinte, Gold beim Hover */
.search-button {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-2);
  letter-spacing: 0.12em;
}
.search-button:hover { background: var(--gold); color: #1a1714; transform: translateY(-2px); }

/* ==========================================================================
   6 · "WARUM" / FEATURES  →  redaktionelles, linksbündiges Raster
   ========================================================================== */
.why-section {
  background: var(--paper);
  padding: clamp(4rem, 8vw, 7rem) 2rem;
}
.why-section::before { display: none; }   /* dekorativen Goldfleck entfernen */

.section-header-modern {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}
.section-header-modern .section-subtitle-modern { margin-left: auto; margin-right: auto; }
.section-header-modern .section-badge::before { width: 26px; }

.features-grid-modern {
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;                        /* Trennung über Haarlinien statt Lücken */
  border-top: 1px solid var(--line);
}
.feature-card-modern {
  text-align: left;
  padding: 2.5rem 2rem 2.5rem 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.feature-card-modern:last-child { border-right: 1px solid var(--line); }

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  margin: 0 0 1.5rem;
}
.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
  stroke: var(--gold);
  stroke-width: 1.4;
}
.feature-card-modern:hover .feature-icon { transform: none; color: var(--gold-dark); stroke: var(--gold-dark); }

.feature-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.feature-description {
  color: var(--ink-3);
  font-size: 0.98rem;
  line-height: 1.7;
}

@media (min-width: 769px) {
  /* Innenabstand zwischen Spalten, damit Text nicht an Haarlinie klebt */
  .feature-card-modern { padding-left: 2rem; }
  .feature-card-modern:first-child { padding-left: 0; }
}

/* ==========================================================================
   7 · CTA-SEKTION  (dunkel, redaktionell ruhiger)
   ========================================================================== */
.cta-modern {
  background: var(--ink);
  padding: clamp(4.5rem, 9vw, 7rem) 2rem;
}
.cta-modern::before {
  background: radial-gradient(circle, rgba(185, 157, 95, 0.14) 0%, transparent 70%);
}
.cta-decoration { background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.cta-title-modern {
  font-size: clamp(2.2rem, 4.4vw, 3.25rem);
  font-weight: 600;
  color: #fff;
}
.cta-subtitle-modern { color: rgba(255, 255, 255, 0.78); font-size: 1.08rem; }

/* ==========================================================================
   8 · LISTING-KARTEN + FILTERLEISTE  (redaktionell, ruhige Rahmen)
   ========================================================================== */
.listings-main-container { background: var(--paper); }

.listings-header { border: none; }
.listings-count { color: var(--ink-3); font-size: 0.95rem; letter-spacing: 0.01em; }
.listings-count-number { color: var(--ink); font-weight: 700; }

.listing-card-modern {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: none;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.listing-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
  border-color: var(--line-strong);
}
.listing-image-container { aspect-ratio: 4 / 3; overflow: hidden; }
.listing-image-modern { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.listing-card-modern:hover .listing-image-modern { transform: scale(1.045); }

.listing-content-modern { padding: 1.4rem 1.5rem 1.6rem; }
.listing-title-modern {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.listing-address-modern { color: var(--ink-3); }
.listing-address-modern svg { color: var(--gold); }
.listing-feature { color: var(--ink-2); }
.listing-feature svg { color: var(--gold); }

.listing-price-modern {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.price-period { color: var(--ink-3); font-weight: 500; }

/* Statusbadges: ruhiger, on-brand */
.listing-badge-modern {
  backdrop-filter: blur(6px);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-available { background: rgba(26, 23, 20, 0.88); color: #fff; }
.badge-rented   { background: rgba(255, 255, 255, 0.92); color: var(--ink-3); }

/* Filterleiste: warme Karte, dezente Linien */
.filters-bar-horizontal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.filter-dropdown-label { color: var(--ink-3); letter-spacing: 0.04em; }
.filter-input-compact,
.filter-select-compact {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
}
.filter-input-compact:focus,
.filter-select-compact:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.reset-filters-btn-compact {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  background: var(--surface);
  transition: all var(--dur) var(--ease);
}
.reset-filters-btn-compact:hover { border-color: var(--gold); color: var(--gold-dark); }

.empty-state-icon, .empty-state-title { color: var(--ink); }
.empty-state-text { color: var(--ink-3); }
.spinner { border-top-color: var(--gold) !important; }

/* ==========================================================================
   9 · FOOTER  (dunkel beibehalten, Akzente verfeinert)
   ========================================================================== */
footer { background: var(--ink) !important; }
.footer-section h3 {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.footer-divider { background: linear-gradient(90deg, transparent, var(--gold-line), transparent); }

/* ==========================================================================
   10 · STAT-ZAHLEN (falls genutzt) + globale Akzente
   ========================================================================== */
.stat-number { color: var(--ink); }
.stat-label { color: var(--ink-3); }

/* ==========================================================================
   11 · ACCESSIBILITY & MOTION
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   12 · ÜBER-UNS-SEITE  (Kohärenz mit dem neuen System)
   ========================================================================== */
/* Kühle #f8f9fa-Sektionen auf warmes Papier angleichen */
.about-values,
.about-cta { background: var(--surface-2); }
.about-team { background: var(--paper); }

/* Dunkle Sektionen (Hero, Partner) auf warmes Tinte-Schwarz */
.about-hero,
.about-partners { background: var(--ink); }

/* Story-Akzentlinie & Highlight schon korrekt (Gold) – Text wärmer */
.story-text p { color: var(--ink-3); }
.values-header p, .team-header p { color: var(--ink-3); }

/* Value-Karten: ruhigere Rahmen statt schwerer Schatten */
.value-card-modern {
  box-shadow: var(--sh-1);
  border: 1px solid var(--line);
}
.value-card-modern:hover { box-shadow: var(--sh-3); border-color: var(--gold-line); }
.team-member-modern { box-shadow: var(--sh-2); border: 1px solid var(--line); }
.team-name { font-family: var(--font-display); }

/* About-CTA-Button auf Tinte-Primär (konsistent mit Startseite) */
.cta-button-modern {
  background: var(--ink);
  box-shadow: var(--sh-2);
}
.cta-button-modern:hover { background: #000; box-shadow: var(--sh-3); }

/* Hero-Badge: dezenter */
.about-hero-badge {
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  background: rgba(185, 157, 95, 0.16);
  border-color: var(--gold-line);
}

/* ==========================================================================
   13 · LISTING-DETAIL + KONTAKTFORMULAR
   ========================================================================== */
.listing-detail-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.listing-detail-card h3 { font-family: var(--font-display); font-size: 1.3rem; }
.listing-detail-title { letter-spacing: -0.01em; }
.listing-detail-address { color: var(--ink-3); }

.listing-price-large {
  color: var(--gold-dark);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.back-link { color: var(--ink-3); transition: color var(--dur) var(--ease); }
.back-link:hover { color: var(--gold-dark); }

.listing-detail-info-card {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.listing-detail-info-card svg { color: var(--gold); }

/* Kontaktformular + Inputs */
.contact-card { border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1); }
.contact-icon svg { color: var(--gold); }
.form-group label { color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.form-group input,
.form-group textarea {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

/* Generischer .btn-primary (Kontakt/Detail) auf Tinte-Primär */
.btn.btn-primary { background: var(--ink); color: #fff; }
.btn.btn-primary:hover { background: #000; }

/* Plain section-subtitle (nicht-„modern" Seiten) wärmer */
.section-subtitle { color: var(--ink-3); }
