/* ============================================================
   JBP Projects & Development – zentrales Stylesheet
   ------------------------------------------------------------
   Alle Farben und Schriften werden HIER oben definiert.
   Eine Änderung an diesen Werten wirkt auf die ganze Website.
   ============================================================ */

:root {
  --farbe-dunkel: #141414;      /* Tiefes Schwarz für Text und dunkle Flächen */
  --farbe-akzent: #141414;      /* Buttons und Akzente: Schwarz */
  --farbe-akzent-hover: #000000;/* Reines Schwarz beim Überfahren */
  --farbe-gold: #b08d2e;        /* Gold-Akzent, auf Weiß leicht abgedunkelt (lesbar) */
  --farbe-hell: #f6f6f6;        /* Heller Sektionshintergrund */
  --farbe-weiss: #ffffff;
  --farbe-grau: #5f6368;        /* Fließtext-Grau */
  --schrift: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Auf dunklen Flächen darf das Gold kräftig leuchten. */
.trust-bar, .kontakt, footer {
  --farbe-gold: #d4af37;
}

/* ============================================================
   Grundlagen
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--schrift);
  color: var(--farbe-dunkel);
  background: var(--farbe-weiss);
  line-height: 1.65;
  font-size: 17px;
}

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

section { padding: 88px 0; }

.section-label {
  display: inline-block;
  color: var(--farbe-gold);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1 { font-size: 2.9rem; font-weight: 800; line-height: 1.15; margin-bottom: 22px; }
h2 { font-size: 2.1rem; font-weight: 800; line-height: 1.25; margin-bottom: 18px; }
h1 em { font-style: normal; color: var(--farbe-akzent); }

.intro-text { color: var(--farbe-grau); max-width: 680px; margin-bottom: 48px; }

/* Sektion mit hellem Hintergrund (im Wechsel mit Weiß) */
.hell { background: var(--farbe-hell); }

/* ============================================================
   Navigation (auf allen Seiten gleich)
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8ebef;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  max-width: 1140px;
  margin: 0 auto;
}
.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--farbe-dunkel);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img { height: 46px; width: 46px; }
.logo span { color: var(--farbe-grau); font-weight: 600; }
.nav-links { display: flex; gap: 26px; align-items: center; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a {
  text-decoration: none;
  color: var(--farbe-dunkel);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}
.logo span { white-space: nowrap; }
.nav-links a:hover { color: var(--farbe-akzent); }

/* Dropdown-Untermenüs (z. B. "Verkaufen", "Vermieten") */
.hat-dropdown > a::after { content: " ▾"; font-size: 0.7em; opacity: 0.6; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--farbe-weiss);
  border: 1px solid #e8ebef;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(28, 39, 51, 0.14);
  min-width: 250px;
  padding: 8px;
  margin: 0;
  list-style: none;
  z-index: 200;
}
.hat-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.92rem;
  white-space: nowrap;
}
.dropdown li a::after { content: none; }
.dropdown li a:hover { background: var(--farbe-hell); }
.nav-cta {
  background: var(--farbe-akzent);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--farbe-akzent-hover); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; }

/* Sprachumschalter DE / EN */
.lang-switch a {
  border: 1.5px solid #e8ebef;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.lang-switch a:hover { border-color: var(--farbe-akzent); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: var(--schrift);
}
.btn-primary { background: var(--farbe-akzent); color: #fff; }
.btn-primary:hover { background: var(--farbe-akzent-hover); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--farbe-akzent);
  border: 1.5px solid var(--farbe-akzent);
}
.btn-secondary:hover { background: var(--farbe-akzent); color: #fff; }
.btn-reihe { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   Hero-Bereich
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #f7f7f7 0%, #ebebeb 100%);
  padding: 96px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero p.sub {
  font-size: 1.15rem;
  color: var(--farbe-grau);
  margin-bottom: 34px;
  max-width: 540px;
}

/* Platzhalter für Fotos – nach dem Einsetzen echter Bilder löschen */
.bild-platzhalter {
  background: linear-gradient(160deg, var(--farbe-dunkel) 0%, #3d3d3d 120%);
  border-radius: 12px;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  text-align: center;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(28, 39, 51, 0.25);
}
/* Eingesetzte Fotos/Illustrationen */
.hero-foto {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(20, 20, 20, 0.25);
}
.portrait-foto {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #e8ebef;
}

/* Rundes Autorenfoto neben einer Überschrift (z. B. "Über uns") */
.avatar-rund {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--farbe-weiss);
  box-shadow: 0 4px 14px rgba(20, 20, 20, 0.15);
  flex-shrink: 0;
}
.autor-zeile {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.autor-zeile h2 { margin-bottom: 0; }

.bild-platzhalter.hell-variante {
  background: var(--farbe-hell);
  border: 1px solid #e8ebef;
  color: var(--farbe-grau);
  box-shadow: none;
}

/* ============================================================
   Trust-Leiste (dunkle Leiste mit Zahlen)
   ============================================================ */
.trust-bar {
  background: var(--farbe-dunkel);
  color: #fff;
  padding: 34px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-zahl { font-size: 1.9rem; font-weight: 800; color: var(--farbe-gold); }
.trust-text { font-size: 0.88rem; color: #c8d0d9; margin-top: 4px; }

/* ============================================================
   Zweispaltiges Layout (z. B. Über mich)
   ============================================================ */
.zwei-spalten {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: center;
}
.zwei-spalten .text p { color: var(--farbe-grau); margin-bottom: 16px; }
.zwei-spalten .text strong { color: var(--farbe-dunkel); }

/* ============================================================
   Karten (Leistungen)
   ============================================================ */
.karten-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.karten-grid.vier { grid-template-columns: repeat(4, 1fr); }
.karte {
  background: #fff;
  border-radius: 12px;
  padding: 34px 30px;
  border: 1px solid #e8ebef;
  transition: transform 0.2s, box-shadow 0.2s;
}
.karte:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(28,39,51,0.08); }
.karte .icon {
  width: 48px; height: 48px;
  background: rgba(30, 58, 95, 0.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.karte h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.karte p { color: var(--farbe-grau); font-size: 0.95rem; }
.karte ul { margin: 12px 0 0 0; padding-left: 0; list-style: none; }
.karte li {
  color: var(--farbe-grau);
  font-size: 0.95rem;
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}
.karte li::before { content: "✓"; position: absolute; left: 0; color: var(--farbe-gold); font-weight: 700; }
.karte .karte-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--farbe-akzent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.karte .karte-link:hover { text-decoration: underline; }

/* ============================================================
   Ablauf in Schritten
   ============================================================ */
.schritte-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.schritt-nummer {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--farbe-gold);
  opacity: 0.85;
  margin-bottom: 8px;
}
.schritt h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.schritt p { color: var(--farbe-grau); font-size: 0.93rem; }

/* ============================================================
   Kästen mit Goldbalken (Anlässe / Situationen)
   ============================================================ */
.anlass-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.anlass {
  background: #fff;
  border-left: 4px solid var(--farbe-gold);
  border-radius: 8px;
  padding: 24px 28px;
}
.anlass h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.anlass p { color: var(--farbe-grau); font-size: 0.95rem; }

/* ============================================================
   Immobilien-Karten (Angebotsseite)
   ============================================================ */
.objekt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.objekt-karte {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ebef;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.objekt-karte:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(28,39,51,0.08); }

/* Bildbereich der Karte – Platzhalter, bis echte Fotos eingesetzt sind */
.objekt-bild {
  height: 220px;
  background: linear-gradient(160deg, var(--farbe-dunkel) 0%, #3d3d3d 120%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  text-align: center;
  padding: 16px;
  position: relative;
}
.objekt-bild img { width: 100%; height: 100%; object-fit: cover; }
.objekt-bild.hat-galerie img { cursor: pointer; }
.foto-anzahl {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(20, 20, 20, 0.75);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 20px;
  pointer-events: none;
}

/* ============================================================
   Lightbox (Foto-Galerie der Objekte)
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.offen { display: flex; }
.lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #dfe4ea;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255,255,255,0.12);
  padding: 6px 16px;
  border-radius: 20px;
}
@media (max-width: 560px) {
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.3rem; }
  .lightbox-close { width: 40px; height: 40px; font-size: 1.3rem; top: 12px; right: 12px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* Farbiges Etikett oben links auf dem Bild (Kauf / Miete / Reserviert …) */
.objekt-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #d4af37;
  color: #141414;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
}
.objekt-badge.miete { background: #141414; color: #fff; }
.objekt-badge.status { background: #8b2e2e; }

.objekt-inhalt { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.objekt-inhalt h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.objekt-ort { color: var(--farbe-grau); font-size: 0.9rem; margin-bottom: 16px; }

/* Eckdaten-Zeilen (Zimmer, Fläche, Etage …) */
.objekt-daten {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  border-top: 1px solid #eef1f4;
}
.objekt-daten li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eef1f4;
  font-size: 0.92rem;
}
.objekt-daten li span:first-child { color: var(--farbe-grau); }
.objekt-daten li span:last-child { font-weight: 600; }

.objekt-preis {
  margin-top: auto;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--farbe-akzent);
}
.objekt-preis small { font-size: 0.82rem; font-weight: 500; color: var(--farbe-grau); }

/* ============================================================
   Kundenstimmen (Testimonials)
   ============================================================ */
.stimmen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.stimme {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ebef;
  padding: 30px;
}
.stimme .sterne { color: var(--farbe-gold); letter-spacing: 3px; margin-bottom: 14px; }
.stimme p { color: var(--farbe-grau); font-style: italic; margin-bottom: 14px; }
.stimme .quelle { font-size: 0.85rem; font-weight: 600; color: var(--farbe-dunkel); }

/* ============================================================
   FAQ (aufklappbar)
   ============================================================ */
.faq-item { border-bottom: 1px solid #e8ebef; }
.faq-frage {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--schrift);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--farbe-dunkel);
  padding: 22px 40px 22px 0;
  cursor: pointer;
  position: relative;
}
.faq-frage::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--farbe-gold);
}
.faq-item.offen .faq-frage::after { content: "–"; }
.faq-antwort {
  display: none;
  color: var(--farbe-grau);
  padding: 0 0 22px 0;
  max-width: 760px;
}
.faq-item.offen .faq-antwort { display: block; }

/* ============================================================
   Kontakt (dunkle Sektion mit Formular)
   ============================================================ */
.kontakt { background: var(--farbe-dunkel); color: #fff; }
.kontakt h2 { color: #fff; }
.kontakt .intro-text { color: #c8d0d9; }
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.kontakt-info p { color: #c8d0d9; margin-bottom: 20px; }
.kontakt-zeile {
  display: flex; gap: 12px; align-items: baseline;
  margin-bottom: 12px; color: #fff; font-weight: 500;
}
.kontakt-zeile span:first-child { color: var(--farbe-gold); }
.kontakt-zeile a { color: #fff; text-decoration: none; }
.kontakt-zeile a:hover { text-decoration: underline; }

form .feld { margin-bottom: 18px; }
label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #dfe4ea;
}
input, select, textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 6px;
  border: 1px solid #3e3e3e;
  background: #232323;
  color: #fff;
  font-family: var(--schrift);
  font-size: 0.98rem;
}
input::placeholder, textarea::placeholder { color: #7c8894; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--farbe-gold);
  border-color: transparent;
}
.form-hinweis { font-size: 0.8rem; color: #8b97a3; margin-top: 14px; }

/* Im dunklen Kontaktbereich wäre ein schwarzer Button unsichtbar –
   dort wird er gelb mit dunkler Schrift. */
.kontakt .btn-primary { background: #d4af37; color: #141414; }
.kontakt .btn-primary:hover { background: #c09a2e; }

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: #0a0a0a;
  color: #8b97a3;
  padding: 36px 0;
  font-size: 0.88rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { height: 32px; width: 32px; }
footer a { color: #c8d0d9; text-decoration: none; margin-left: 22px; }
footer a:hover { color: #fff; }
footer a:first-child { margin-left: 0; }

/* ============================================================
   Unterseiten mit Fließtext (Impressum, Datenschutz)
   ============================================================ */
.textseite { max-width: 760px; }
.textseite h1 { font-size: 2.2rem; margin-bottom: 30px; }
.textseite h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.textseite p, .textseite li { color: var(--farbe-grau); margin-bottom: 10px; }
.textseite ul { padding-left: 22px; }

/* ============================================================
   Mobile Ansicht
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid, .zwei-spalten, .kontakt-grid { grid-template-columns: 1fr; }
  .karten-grid, .karten-grid.vier, .stimmen-grid { grid-template-columns: 1fr; }
  .schritte-grid, .trust-grid, .anlass-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2.2rem; }
  .bild-platzhalter { min-height: 260px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid #e8ebef;
    gap: 18px;
  }
  .nav-links.offen { display: flex; }
  .nav-toggle { display: block; }

  /* Dropdowns im mobilen Menü: immer sichtbar, eingerückt statt Hover-Overlay */
  .dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 16px;
    margin-top: 6px;
    min-width: 0;
  }
  .hat-dropdown > a::after { content: none; }
}
@media (max-width: 560px) {
  .schritte-grid, .trust-grid, .anlass-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
