/* Neuberger Immobilien & Finanzen — Basis-Stylesheet
   Corporate Design nach 60-30-10-Regel:
   60 % Neutral (Weiß, helles Grau, Anthrazit für Text/Flächen),
   30 % dunkle Flächen (Anthrazit: Hero, Footer, Topbar),
   10 % CI-Grün aus dem Logo (#006F00) — nur für CTAs, Links und Akzente. */

:root {
  --gruen: #006F00;          /* CI-Primärgrün (logo.svg) — nur Akzente */
  --gruen-dunkel: #004000;   /* CI-Dunkelgrün — Hover-Zustände */
  --akzent: #006F00;         /* Primär-CTA */
  --akzent-hell: #b8e0b8;    /* helle Grün-Nuance, sparsam */
  --anthrazit: #232B26;      /* dunkle Neutralfläche (Hero, CTA-Banner) */
  --anthrazit-tief: #1A211C; /* Footer, Topbar */
  --ueberschrift: #1F2823;   /* Überschriften: dunkles Anthrazit statt Grün */
  --grau: #595959;           /* CI-Grau (logo.svg) — Sekundärtext */
  --grau-hell: #f5f6f5;
  --linie: #e3e6e3;
  --text: #262b27;
  --radius: 10px;
  --schatten: 0 2px 12px rgba(26, 33, 28, 0.08);
  --maxw: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: #fff;
}

img { max-width: 100%; height: auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
.topbar {
  background: var(--anthrazit-tief);
  color: #e8ebe8;
  font-size: 0.85rem;
  padding: 0.35rem 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: var(--akzent-hell); text-decoration: none; }

header.site {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--linie);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.8rem; padding-bottom: 0.8rem; gap: 1rem;
}
.logo { text-decoration: none; color: var(--gruen); line-height: 1.2; }
.logo strong { font-size: 1.15rem; display: block; }
.logo span { font-size: 0.78rem; color: var(--grau); letter-spacing: 0.06em; text-transform: uppercase; }
.logo img { height: 52px; width: auto; display: block; }

nav.haupt ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
nav.haupt a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.95rem; }
nav.haupt a:hover, nav.haupt a[aria-current="page"] { color: var(--gruen); }
.tel-cta {
  background: var(--gruen); color: #fff !important; padding: 0.5rem 1rem;
  border-radius: var(--radius); font-weight: 600; white-space: nowrap;
}
.tel-cta:hover { background: var(--gruen-dunkel); }

.nav-toggle { display: none; background: none; border: 1px solid var(--linie); border-radius: 6px; padding: 0.4rem 0.6rem; font-size: 1.2rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  nav.haupt { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--linie); box-shadow: var(--schatten); }
  nav.haupt.offen { display: block; }
  nav.haupt ul { flex-direction: column; gap: 0; padding: 0.5rem 1.25rem 1rem; }
  nav.haupt li { border-top: 1px solid var(--grau-hell); }
  nav.haupt a { display: block; padding: 0.7rem 0; }
  .tel-cta { display: inline-block; margin-top: 0.5rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(150deg, var(--anthrazit-tief) 0%, var(--anthrazit) 55%, #2e3b32 100%);
  color: #fff;
  padding: 4rem 0 4.5rem;
}
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.25; margin: 0 0 1rem; }
.hero p.sub { font-size: 1.15rem; max-width: 640px; color: #c9d1ca; margin: 0 0 1.8rem; }
.hero .badges { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; font-size: 0.9rem; color: var(--akzent-hell); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 0.75rem 1.5rem; border-radius: var(--radius); border: 0; cursor: pointer; font-size: 1rem;
}
.btn-gold { background: var(--akzent); color: #fff; }
.btn-gold:hover { background: var(--gruen-dunkel); }
.btn-hell { background: #fff; color: var(--ueberschrift); }
.btn-hell:hover { background: var(--grau-hell); }
.btn-blau { background: var(--anthrazit); color: #fff; }
.btn-blau:hover { background: var(--anthrazit-tief); }
.btn + .btn { margin-left: 0.75rem; }

/* ---------- Abschnitte ---------- */
section { padding: 3.5rem 0; }
section.grau { background: var(--grau-hell); }
h2 { color: var(--ueberschrift); font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 0.6rem; }
h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--gruen); border-radius: 2px; margin-top: 0.5rem; }
.cta-banner h2::after { margin-left: auto; margin-right: auto; }
.einleitung { color: var(--grau); max-width: 700px; margin-bottom: 2rem; }
h3 { color: var(--ueberschrift); margin: 1.6rem 0 0.5rem; }

/* ---------- Karten ---------- */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 1.5rem; }
.karte {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--schatten);
}
.karte h3 { margin-top: 0; font-size: 1.1rem; }
.karte .icon { font-size: 1.8rem; margin-bottom: 0.4rem; display: block; }
.karte a.mehr { color: var(--gruen); font-weight: 600; text-decoration: none; }
.karte a.mehr:hover { text-decoration: underline; }

/* ---------- FAQ (details/summary) ---------- */
.faq details {
  border: 1px solid var(--linie); border-radius: var(--radius);
  margin-bottom: 0.7rem; background: #fff;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 0.9rem 1.2rem; color: var(--ueberschrift);
  list-style: none; position: relative;
}
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; color: var(--akzent); font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.2rem 1rem; margin: 0; }

/* ---------- Formulare & Rechner ---------- */
form.block, .rechner {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--schatten);
}
.feld { margin-bottom: 1rem; }
.feld label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; color: var(--ueberschrift); }
.feld input, .feld select, .feld textarea {
  width: 100%; padding: 0.65rem 0.8rem; border: 1px solid var(--linie);
  border-radius: 6px; font-size: 1rem; font-family: inherit; background: #fff;
}
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: 2px solid var(--gruen); border-color: var(--gruen); }
.felder-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .felder-2 { grid-template-columns: 1fr; } }

.ergebnis {
  margin-top: 1.5rem; padding: 1.4rem; border-radius: var(--radius);
  background: var(--grau-hell); border-left: 4px solid var(--akzent); display: none;
}
.ergebnis.sichtbar { display: block; }
.ergebnis .wert { font-size: 1.7rem; font-weight: 700; color: var(--gruen); }
.hinweis { font-size: 0.82rem; color: var(--grau); }

/* ---------- Tabellen ---------- */
table.daten { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
table.daten th, table.daten td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--linie); }
table.daten th { color: var(--ueberschrift); background: var(--grau-hell); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--grau); padding: 1rem 0 0; }
.breadcrumb a { color: var(--grau); text-decoration: none; }
.breadcrumb a:hover { color: var(--gruen); }

/* ---------- CTA-Banner ---------- */
.cta-banner { background: var(--anthrazit); color: #fff; text-align: center; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #c9d1ca; max-width: 620px; margin: 0.5rem auto 1.5rem; }

/* ---------- Objekt-Platzhalter ---------- */
.objekt-bild {
  height: 180px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(135deg, #3a453d, #232B26);
  display: flex; align-items: center; justify-content: center; color: #9aa79d; font-size: 2.5rem;
}
.objekt { border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--schatten); }
.objekt .inhalt { padding: 1.2rem 1.4rem; }
.objekt .preis { color: var(--gruen); font-weight: 700; font-size: 1.15rem; }
.objekt .ort { color: var(--grau); font-size: 0.9rem; }

/* ---------- Footer ---------- */
footer.site { background: var(--anthrazit-tief); color: #c6cdc6; padding: 3rem 0 1.5rem; font-size: 0.92rem; }
footer.site h4 { color: #fff; font-size: 1rem; margin: 0 0 0.7rem; }
footer.site a { color: #c6cdc6; text-decoration: none; }
footer.site a:hover { color: var(--akzent-hell); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 0.35rem; }
.footer-unten { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2rem; padding-top: 1.2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: 0.82rem; color: #99a19a; }

/* ---------- Sonstiges ---------- */
.zwei-spalten { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 800px) { .zwei-spalten { grid-template-columns: 1fr; } }
ul.haken { list-style: none; padding: 0; }
ul.haken li { padding-left: 1.6rem; position: relative; margin-bottom: 0.5rem; }
ul.haken li::before { content: "✓"; position: absolute; left: 0; color: var(--akzent); font-weight: 700; }
.autor-box {
  display: flex; gap: 1rem; align-items: center; background: var(--grau-hell);
  border-radius: var(--radius); padding: 1rem 1.4rem; margin-top: 2rem;
}
.autor-box .avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--gruen);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}

/* ---------- Objektkarten & Exposés ---------- */
.objekt-foto { position: relative; display: block; }
.objekt-foto img { width: 100%; height: 210px; object-fit: cover; display: block; }
.badge {
  position: absolute; top: 0.8rem; left: 0.8rem; padding: 0.22rem 0.75rem;
  border-radius: 999px; font-size: 0.78rem; font-weight: 600; color: #fff; letter-spacing: 0.02em;
}
.badge-verfuegbar { background: var(--gruen); }
.badge-reserviert { background: #a87b00; }
.badge-verkauft, .badge-vermietet { background: #5a615b; }
.badge-gesuch { background: var(--anthrazit); }
.objekt h3 { margin: 0.35rem 0 0.3rem; font-size: 1.05rem; line-height: 1.35; }
.objekt h3 a { color: var(--ueberschrift); text-decoration: none; }
.objekt h3 a:hover { color: var(--gruen); }
.objekt .preis-label { font-size: 0.8rem; color: var(--grau); font-weight: 500; }
.objekt .fakten { color: var(--grau); font-size: 0.9rem; margin: 0.4rem 0 0; }
.objekt { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.objekt:hover { box-shadow: 0 6px 22px rgba(26, 33, 28, 0.14); transform: translateY(-2px); }
.expose-bild { position: relative; }
.expose-bild img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); display: block; }
@media (prefers-reduced-motion: reduce) { .objekt { transition: none; } .objekt:hover { transform: none; } }
