/* ══════════════════════════════════════════════════
   STANDORTE / LANDINGPAGES – CSS
   Ergänzt style.css aus dem Parent-Ordner
══════════════════════════════════════════════════ */

/* ── LAYOUT ── */
.lp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media(min-width:960px) {
  .lp-grid { grid-template-columns: 1fr 300px; align-items: start; }
}

/* ── CONTENT BOXES ── */
.lp-box {
  background: #fff;
  border: 1px solid #e8e6e2;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(26,39,68,.06);
  margin-bottom: 20px;
}
.lp-box:last-child { margin-bottom: 0; }
.lp-box h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  color: #1a2744;
  margin-bottom: 14px;
  line-height: 1.3;
}
.lp-box h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  color: #1a2744;
  margin: 18px 0 8px;
}
.lp-box p { font-size: 15px; line-height: 1.85; color: #3d3c3a; margin-bottom: 10px; }
.lp-box strong { color: #1a2744; }

/* Cross-links */
.lp-city-links { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-city-links a {
  font-size: 13px; font-weight: 600; color: #1a2744;
  background: #eef2f9; padding: 5px 12px; border-radius: 20px;
  text-decoration: none; transition: background .15s, color .15s;
}
.lp-city-links a:hover { background: #1a2744; color: #fff; }

/* ════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════ */
.lp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media(min-width:960px) {
  .lp-sidebar { position: sticky; top: 88px; }
}

/* ① Gutachter-Karte */
.sb-gutachter {
  background: #1a2744;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26,39,68,.22);
}
.sb-gut-header {
  padding: 10px 18px;
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sb-gut-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #f5a623;
}
.sb-gut-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 18px 12px;
}
.sb-gut-photo {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.sb-gut-photo img {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(255,255,255,.2);
  opacity: 0;
  transition: opacity .5s;
  position: relative;
  z-index: 1;
  display: block;
}
.sb-gut-photo.has-img img { opacity: 1; }
.sb-gut-photo-ph {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.3);
}
.sb-gut-photo.has-img .sb-gut-avail {
  position: absolute;
  bottom: -3px; right: -3px;
  background: #1a2744;
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 2px 6px 2px 4px;
  display: flex; align-items: center; gap: 4px;
  z-index: 2;
}
.sb-gut-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-green 2s infinite;
  flex-shrink: 0;
}
#sb-avail-text {
  font-size: 10px; font-weight: 700;
  color: #4ade80;
  white-space: nowrap;
}
.sb-gut-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px; font-weight: 700;
  color: #fff; line-height: 1.2; margin-bottom: 3px;
}
.sb-gut-title { font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.sb-gut-stars {
  display: flex; align-items: center; gap: 2px;
}
.sb-gut-stars span {
  font-size: 12px; font-weight: 700;
  color: #f59e0b; margin-left: 3px;
}
.sb-gut-pills {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 18px 18px;
}
.sb-pill {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
  white-space: nowrap;
}

/* ② Kontakt-Karte */
.sb-contact {
  background: #fff;
  border: 1px solid #e8e6e2;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(26,39,68,.06);
}
.sb-contact-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px; font-weight: 700;
  color: #1a2744; line-height: 1.3;
  margin-bottom: 3px;
}
.sb-contact-sub { font-size: 12px; color: #7c7a74; margin-bottom: 14px; }
.sb-phone-big {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: #eef2f9;
  border-radius: 10px;
  text-decoration: none;
  margin-bottom: 12px;
  transition: background .15s;
}
.sb-phone-big:hover { background: #1a2744; }
.sb-phone-big:hover svg { color: #fff !important; }
.sb-phone-big:hover span { color: #fff; }
.sb-phone-big svg { color: #c8102e; flex-shrink: 0; }
.sb-phone-big span {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px; font-weight: 800;
  color: #1a2744;
}
.sb-contact-btns { display: flex; flex-direction: column; gap: 8px; }
.btn-outline-navy {
  background: transparent !important;
  border: 1.5px solid #1a2744;
  color: #1a2744 !important;
  font-weight: 700;
}
.btn-outline-navy:hover { background: #1a2744 !important; color: #fff !important; }
.btn-wa {
  background: #25D366 !important;
  color: #fff !important;
}
.btn-wa:hover { background: #1ea851 !important; }

/* ③ USPs */
.sb-usps {
  background: #fff;
  border: 1px solid #e8e6e2;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(26,39,68,.06);
}
.sb-usps-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: #7c7a74; margin-bottom: 12px;
}
.sb-usp-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f4f2;
}
.sb-usp-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sb-usp-label {
  font-size: 13px; font-weight: 700;
  color: #1a2744; line-height: 1.3; margin-bottom: 2px;
}
.sb-usp-text { font-size: 12px; color: #7c7a74; line-height: 1.5; }

/* ④ Adresse */
.sb-address {
  background: #eef2f9;
  border-radius: 14px;
  padding: 16px 18px;
}
.sb-address-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: #1a2744; margin-bottom: 10px;
}
.sb-address-row {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: #3d3c3a;
  padding: 5px 0;
}
.sb-address-row svg { color: #c8102e; flex-shrink: 0; margin-top: 1px; }
.sb-address-row a { color: #1a2744; font-weight: 600; text-decoration: none; }
.sb-address-row a:hover { color: #c8102e; }

/* ⑤ Leistungen */
.sb-leistungen {
  background: #fff;
  border: 1px solid #e8e6e2;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(26,39,68,.06);
}
.sb-leistungen-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: #7c7a74; margin-bottom: 10px;
}
.sb-l-link {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600;
  color: #3d3c3a;
  padding: 9px 0;
  border-bottom: 1px solid #f5f4f2;
  text-decoration: none;
  transition: color .15s;
}
.sb-l-link:last-child { border-bottom: none; }
.sb-l-link:hover { color: #c8102e; }
.sb-l-link:hover svg { color: #c8102e !important; }
.sb-l-link svg { color: #c4c2bc; transition: color .15s; flex-shrink: 0; }
.sb-l-link.sb-l-active { color: #c8102e; font-weight: 700; }
.sb-l-link.sb-l-active svg { color: #c8102e !important; }

/* ── KARTE + STADTINFO ── */
.lp-map-box h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px; color: #1a2744;
}
.lp-map-wrap {
  border-radius: 10px; overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid #e8e6e2;
}
.lp-stadtinfo h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px; color: #1a2744; margin-bottom: 8px;
}
.lp-stadtinfo p {
  font-size: 14px; line-height: 1.8;
  color: #3d3c3a; margin-bottom: 16px;
}
.lp-stadtinfo-facts {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 12px; padding: 16px;
  background: #eef2f9; border-radius: 10px;
}
.lp-fact { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; }
.lp-fact-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px; font-weight: 800;
  color: #1a2744; line-height: 1.1;
}
.lp-fact-label {
  font-size: 11px; color: #7c7a74;
  font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}

/* ── Leistungen nav links in sidebar (old style, keep compat) ── */
.lp-nav-link {
  display: flex; align-items: center;
  font-size: 14px; font-weight: 600;
  color: #3d3c3a; padding: 8px 0;
  border-bottom: 1px solid #f5f4f2;
  text-decoration: none; transition: color .15s;
}
.lp-nav-link:last-child { border-bottom: none; }
.lp-nav-link:hover { color: #c8102e; }

/* ══════════════════════════════════════════════════
   MOBILE ORDER: 1. Ansprechpartner  2. Inhalt  3. Rest Sidebar
   Technisch: lp-grid wird flex; sb-gutachter bekommt order:1,
   der Hauptinhalt order:2, rest der sidebar order:3
══════════════════════════════════════════════════ */
@media(max-width:959px) {
  .lp-grid {
    display: flex;
    flex-direction: column;
  }
  /* Hauptinhalt → Mitte */
  .lp-grid > div:first-child {
    order: 2;
  }
  /* Gesamte Sidebar → flex-column, Gutachter oben */
  .lp-sidebar {
    order: 1;
    display: flex;
    flex-direction: column;
  }
  .sb-gutachter  { order: 1; }  /* Ansprechpartner zuerst  */
  .sb-contact    { order: 3; }  /* Nach dem Hauptinhalt (order:2 ist der div) */
  .sb-usps       { order: 4; }
  .sb-address    { order: 5; }
  .sb-leistungen { order: 6; }

  /* Trick: nach Gutachter-Karte den Hauptinhalt einschieben
     → wir wrappen lp-grid als column-flex und nutzen order */
}

/* ══════════════════════════════════════════════════
   PILL-DESIGN: "Jetzt erreichbar" als grüne Pill
══════════════════════════════════════════════════ */
.sb-pill-green {
  background: rgba(74, 222, 128, .15) !important;
  border-color: rgba(74, 222, 128, .35) !important;
  color: #4ade80 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
}
.sb-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulse-green 2s infinite;
}

/* ══════════════════════════════════════════════════
   MOBILE ORDER FIX:
   1. Ansprechpartner (sb-gutachter)
   2. Hauptinhalt (lp-grid > div:first-child)
   3. Rest der Sidebar
══════════════════════════════════════════════════ */
@media(max-width:959px) {
  /* lp-grid als flex-column damit order greift */
  .lp-grid {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Hauptinhalt → nach Ansprechpartner */
  .lp-grid > div:first-child {
    order: 2 !important;
  }

  /* Sidebar als flex-column für interne Reihenfolge */
  .lp-sidebar {
    order: 1 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Nur sb-gutachter oben zeigen (order:1) */
  .lp-sidebar > .sb-gutachter {
    order: 1;
  }

  /* Rest der Sidebar NACH dem Hauptinhalt → hoher order-Wert
     Da sie im lp-grid order:1 hat, kann der Inhalt (order:2) nicht 
     dazwischen. Trick: Sidebar splitten geht nicht mit CSS allein.
     Lösung: Rest der Sidebar ausblenden in der Sidebar-Position,
     und nach dem Hauptinhalt als eigene Sektion einblenden via
     .sb-rest-mobile das wir per JS einfügen ODER:
     Wir nutzen die Sidebar komplett nach order:3 und zeigen
     nur sb-gutachter oben via ein separates div */

  /* Einfachste Lösung: Sidebar komplett order:3 → 
     sb-gutachter aus Sidebar extrahieren via CSS nicht möglich.
     Daher: Sidebar bleibt order:1 aber Rest wird per CSS 
     NACH dem Grid-Ende angezeigt → geht nicht ohne JS.
     
     Pragmatischste CSS-Lösung: 
     - lp-grid erhält extra padding-top 0
     - sb-gutachter bleibt in Sidebar (order:1)
     - Rest der Sidebar (sb-contact, sb-usps etc.) werden hidden
       und eine Kopie am Ende des Hauptinhalts angezeigt via :after
     
     BESTE Lösung: JS snippet das sb-gutachter vor lp-grid zieht */
}

/* ═══════════════════════════════════════════════════════════
   HERO-BILD für Landingpages (wie Startseite)
   Hintergrundfoto + dunkles Overlay für Lesbarkeit
═══════════════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  isolation: isolate;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('../bilder/hero-hintergrund.webp');
  background-size: cover;
  background-position: center 55%;
  opacity: 0.28;
}
/* Dunkles Overlay damit weißer Text lesbar bleibt */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(150deg,
    rgba(26,39,68,.88) 0%,
    rgba(26,39,68,.72) 55%,
    rgba(26,39,68,.85) 100%);
  /* Roter Glow-Akzent bleibt erhalten */
}
/* Sicherstellen dass der Inhalt über den Layern liegt */
.page-hero .wrap {
  position: relative;
  z-index: 1;
}
