/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-light); color: #fff; }

.btn-accent {
  background: var(--color-primary-light);
  color: #fff;
}
.btn-accent:hover { opacity: 0.85; color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: calc(var(--space-xl) * 1.6) 0;
  min-height: max(500px, 90vh);
  display: flex;
  align-items: center;
}
.hero-bg-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ai-label {
  position: absolute;
  right: var(--space-xs);
  bottom: var(--space-xs);
  z-index: 2;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(20,36,29,0.92) 0%, rgba(20,36,29,0.72) 40%, rgba(20,36,29,0.3) 75%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-text { max-width: 620px; }
.hero-text h1 { color: #fff; font-size: 3rem; }
.hero-text p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 480px; }
.hero-text .btn { margin-top: var(--space-sm); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stats strong { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; }
.hero-stats span { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* Kennzahlen-Leiste (z.B. Ueber uns) - grosse hochzaehlende Zahlen statt Karten */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  text-align: center;
}
.stat-item { position: relative; padding: 0 var(--space-md); }
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: calc(var(--space-lg) / -2);
  top: 8%;
  bottom: 8%;
  width: 1px;
  background: var(--color-border);
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}
.stat-item p { margin: 0; }
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .stat-item + .stat-item::before { display: none; }
}

/* Ueber-proHaus-Abschnitt (Startseite) */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-lg);
  align-items: center;
}
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.credential-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-sm) 0 var(--space-md);
}
.credential-tags span {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  /* Gestaffeltes Einfaden/Hochgleiten beim Scrollen (reveal.js) - macht die
     unterschiedlich breiten Tags zu einer bewussten Bewegung statt einer
     starren Treppe aus Zeilen. */
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.credential-tags span.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Verbandslogo (z.B. VDIV) neben dem "Mehr ueber uns"-Button statt gestapelt */
.vdiv-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-md);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: 0.25s;
}
.vdiv-cta-row.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.vdiv-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.vdiv-badge span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.vdiv-badge img {
  height: 40px;
  width: auto;
}

/* Zwei Buttons nebeneinander (z.B. "Noch Fragen?"-Abschnitte) - am Handy
   sauber untereinander statt durch inline-block-Umbruch leicht ueberschnitten. */
.cta-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

@media (max-width: 800px) {
  .hero-text { max-width: none; text-align: center; margin: 0 auto; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; text-align: center; }
  .hero-overlay { background: rgba(20,36,29,0.78); }
  .about-split { grid-template-columns: 1fr; text-align: center; }
  .about-media { order: -1; }
  .credential-tags { justify-content: center; }
  .vdiv-cta-row { flex-direction: column; }
  .cta-btn-group { flex-direction: column; align-items: center; }
}

/* "Lernen Sie uns kennen"-Banner (Startseite) */
.meet-banner {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 340px;
  display: flex;
  align-items: center;
}
.meet-banner-bg { position: absolute; inset: 0; z-index: 0; }
.meet-banner-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.meet-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(20,36,29,0.72);
}
.meet-banner-inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.meet-banner-inner h2 { color: #fff; }
.meet-banner-inner p { color: rgba(255,255,255,0.85); font-size: 1.05rem; }
.meet-banner-inner .btn { margin-top: var(--space-sm); }

/* Card (generic) */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-body {
  padding: var(--space-md);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.card h3 { margin-bottom: var(--space-xs); }
.card-body .btn { margin-top: auto; align-self: flex-start; }

/* Pill-Tag (z. B. Objekt-Status, im Stil der Credential-Tags) */
.tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-xs);
}

/* Feste 3er-Grid-Reihe (Objektkarten) statt auto-fit */
.grid-3-fixed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
@media (max-width: 860px) { .grid-3-fixed { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3-fixed { grid-template-columns: 1fr; } }

/* Google-Maps-Einbettung (Kontaktseite) */
.map-embed {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.map-embed iframe { width: 100%; height: 100%; display: block; }
.map-consent-overlay {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  text-align: center;
  background: var(--color-bg-alt);
}
.map-consent-overlay p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 320px;
}

/* Platzhalter-Box ohne echtes Bild */
.placeholder-img {
  background: repeating-linear-gradient(45deg, var(--color-bg-alt), var(--color-bg-alt) 10px, #e6e4da 10px, #e6e4da 20px);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Bild-Container mit festem Seitenverhältnis (Objektfotos, Detailseite) */
.media-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-alt);
}

/* Ribbon fuer bereits vermarktete Objekte (Eigenwerbung) - schraeg ueber die
   obere linke Ecke, .media-thumb's overflow:hidden schneidet den Ueberstand
   sauber am Kartenrand ab. */
.ribbon {
  position: absolute;
  top: 32px;
  left: -48px;
  z-index: 2;
  width: 225px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.4rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transform: rotate(-45deg);
  transform-origin: center;
}
.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fotogalerie (Objekt-Detailseite) */
.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  overflow-x: auto;
}
.gallery-thumb {
  flex: 0 0 72px;
  width: 72px;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: none;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active { border-color: var(--color-primary); }

/* Objektkarte (Immobilien) */
.property-card .price {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1rem;
}
.property-card .teaser {
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}
.property-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: var(--space-xs) 0 var(--space-sm);
}
.property-card .meta span {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
}
.property-card .card-footer {
  margin-top: auto;
  padding-top: var(--space-sm);
}
.property-card .card-footer .btn { margin-top: var(--space-sm); }
.property-card .badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: var(--space-xs);
}

/* Leistungskarte */
.service-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
}

.role { color: var(--color-text-muted); font-size: 0.9rem; font-weight: 600; margin-bottom: var(--space-xs); }

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: var(--space-md) 0 var(--space-xs);
}

/* Werdegang-Timeline (z. B. Über uns) */
.timeline {
  list-style: none;
  margin: var(--space-sm) 0 0;
  padding: 0;
}
.timeline li {
  position: relative;
  padding-left: 1.75rem;
  padding-bottom: var(--space-md);
  border-left: 2px solid var(--color-border);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0.2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-surface);
}
.timeline-year {
  display: block;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.9rem;
}
.timeline-text {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Werdegang-Timeline, horizontale Variante (weniger Detail) - scrollt bei
   Platzmangel seitlich statt umzubrechen, analog .steps-row (Leistungen). */
.timeline-h {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  overflow-x: auto;
  position: relative;
  padding: var(--space-md) 0.5rem var(--space-sm);
  margin-top: var(--space-sm);
  /* Zeile nur so breit wie die tatsaechlichen Punkte, zentriert - eine kurze
     Timeline (z.B. nur 3 Punkte) zieht sich sonst leer ueber die volle Breite.
     justify-content zusaetzlich zu width:fit-content, damit die Punkte auch
     dann mittig sitzen, falls der Container aus irgendeinem Grund breiter bleibt. */
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}
.timeline-h::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  top: calc(var(--space-md) + 10px);
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}
.timeline-h-item {
  position: relative;
  z-index: 1;
  flex: 0 0 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.timeline-h-dot {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-border);
  margin-bottom: var(--space-xs);
}
.timeline-h-year {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.9rem;
}
.timeline-h-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

/* Persoenliches Zitat in Team-Bios */
.bio-quote {
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-alt);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  font-style: italic;
  color: var(--color-text);
  margin-top: var(--space-sm);
}

/* Team-Seite: Gründerin (gross) */
.team-lead {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-lg);
  align-items: stretch;
  margin-bottom: var(--space-xl);
}
.team-lead-media {
  height: 100%;
  min-height: 320px;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.team-lead-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Werdegang-Karten (Ueber uns): feste statt textlaengenabhaengige Bildhoehe */
.card .team-lead-media { height: 320px; }

/* Ueber uns: Team-Mitglieder "mittlere" Stufe (Nadine, Celine) - gleiche
   Bildsprache wie .team-lead, aber kompakter und der Gruenderin untergeordnet. */
.team-member {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
  align-items: start;
  margin-top: var(--space-xl);
}
/* Textspalte (erstes Kind) darf unter ihre Inhaltsbreite schrumpfen - sonst
   zieht die nowrap-scrollbare Timeline darin die ganze Grid-Spur breiter. */
.team-member > div:first-child { min-width: 0; }
.team-member-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.team-member-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 800px) {
  .team-member { grid-template-columns: 1fr; text-align: center; }
  .team-member-media { order: -1; }
  .team-member .credential-tags { justify-content: center; }
}

/* Ueber uns: kleinste Stufe (Teamassistenz etc.) - Foto + Name/Rolle/Tags in einer Zeile */
.team-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-md);
}
.team-mini { display: flex; gap: var(--space-md); align-items: center; }
.team-mini-media {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.team-mini-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-mini-text h3 { margin: 0 0 0.15rem; font-size: 1rem; }
.team-mini-text .role { margin-bottom: 0.4rem; }
@media (max-width: 560px) {
  .team-mini-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .team-lead { grid-template-columns: 1fr; text-align: center; }
  .team-lead-media { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .team-lead .credential-tags { justify-content: center; }
}

/* Steckbrief (Objekt-Detail) */
.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-sm);
}
.fact-list li {
  background: var(--color-bg-alt);
  padding: var(--space-sm);
  border-radius: var(--radius);
}
.fact-list .label { display: block; font-size: 0.8rem; color: var(--color-text-muted); }
.fact-list .value { font-weight: 700; }

/* Filter-Leiste (Immobilien-Uebersicht) */
.filter-bar {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}
.filter-bar a {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text);
}
.filter-bar a.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Formular (Kontakt) */
.form-group { margin-bottom: var(--space-sm); }
/* Honeypot-Feld gegen Spam-Bots: fuer Menschen unsichtbar, fuer Screenreader ausgeblendet */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.9rem; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
  cursor: pointer;
}
.radio-option input[type="radio"],
.radio-option input[type="checkbox"] { width: auto; }
input, textarea, select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-surface);
  color: var(--color-text);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}
.form-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent);
  padding: var(--space-sm);
  border-radius: var(--radius);
}
.newsletter-status-icon {
  display: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}
.newsletter-status-icon-success { background: rgba(58, 125, 68, 0.12); color: var(--color-success); }
.newsletter-status-icon-error { background: rgba(179, 69, 44, 0.12); color: var(--color-danger); }

.form-feedback {
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}
.form-feedback.success {
  display: block;
  background: rgba(58, 125, 68, 0.12);
  color: var(--color-success);
}
.form-feedback.error {
  display: block;
  background: rgba(179, 69, 44, 0.12);
  color: var(--color-danger);
}

/* Newsletter: breiter Abschnitt (Immobilien-Seite) */
.newsletter-inline-grid { align-items: center; }
.newsletter-inline-grid .card-body .form-group:last-of-type { margin-bottom: var(--space-sm); }

/* Newsletter: kompakte Einbindung (Kontakt-Seite, unter dem Kontaktformular) */
.newsletter-compact {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}
.newsletter-compact h3 { margin-bottom: var(--space-xs); }

/* Newsletter: Popup, fliegt rechts unten ein */
.newsletter-popup {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 300;
  width: 300px;
  max-width: calc(100vw - 2.5rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: var(--space-md);
  transform: translateY(1rem) translateX(calc(100% + 1.5rem));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease, width 0.3s ease;
}
.newsletter-popup.is-visible {
  transform: translateY(0) translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.newsletter-popup.is-expanded { width: 340px; }
.newsletter-popup-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
}
.newsletter-popup-teaser p {
  font-size: 0.9rem;
  margin: 0 0 var(--space-sm);
  padding-right: 1rem;
}
.newsletter-popup-expand { width: 100%; }
.newsletter-popup-form { display: none; }
.newsletter-popup-form h3 { font-size: 1.05rem; margin-bottom: var(--space-xs); }
.newsletter-popup.is-expanded .newsletter-popup-teaser { display: none; }
.newsletter-popup.is-expanded .newsletter-popup-form { display: block; }
@media (max-width: 600px) {
  .newsletter-popup { left: 1rem; right: 1rem; width: auto; }
  .newsletter-popup.is-expanded { width: auto; }
}

/* Breadcrumb */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: var(--space-lg);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.breadcrumb:hover { border-color: var(--color-primary); color: var(--color-primary); }
.breadcrumb a { color: var(--color-text-muted); }

/* Seiten-Header: links durchgehend grau (Text), rechts ~2/3 Foto (Unterseiten statt reinem Grau) */
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  background: var(--color-bg-alt);
}
.page-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 65%;
  z-index: 0;
}
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 20%; display: block; }
.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(240,239,233,1) 0%, rgba(240,239,233,1) 40%, rgba(240,239,233,0) 60%);
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 340px;
  padding: 0 var(--space-md);
  margin-left: max(0px, calc((100vw - var(--max-width)) / 2));
}
.page-hero-inner .breadcrumb { color: var(--color-text-muted); }

@media (max-width: 860px) {
  .page-hero-bg, .page-hero-overlay { display: none; }
  .page-hero-inner { max-width: none; margin-left: 0; padding: 0 var(--space-md); }
}
.breadcrumb a:hover { color: var(--color-accent); }

/* Akkordeon (Leistungen, Fragen & Antworten) */
.service-accordion { display: flex; flex-direction: column; gap: var(--space-sm); }
.faq-grid {
  /* Zwei komplett unabhaengige Spalten (eigene Flex-Container) statt Grid:
     Aufklappen in einer Spalte hat null Einfluss auf die andere Spalte.
     flex-direction hier explizit setzen, da .service-accordion (zweite Klasse
     auf demselben Element) sonst "column" durchreicht und alles stapelt. */
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-lg);
}
.faq-column {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
@media (max-width: 700px) {
  .faq-grid { flex-direction: column; align-items: stretch; gap: var(--space-sm); }
}

.accordion-item {
  border: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  background: var(--color-surface);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.accordion-item:hover { border-color: var(--color-primary-light); box-shadow: var(--shadow); }
.accordion-item.open { border-left-color: var(--color-primary); box-shadow: var(--shadow); }

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.accordion-icon { font-size: 1.6rem; flex: 0 0 auto; }
.accordion-heading { flex: 1 1 auto; }
.accordion-heading h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  color: var(--color-primary);
  transition: color 0.2s ease;
}
.accordion-heading p { margin: 0; }
.accordion-chevron {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.25s ease, background 0.2s ease;
}
.accordion-item.open .accordion-chevron { transform: rotate(45deg); background: var(--color-primary); color: #fff; }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-panel-inner {
  padding: 0 var(--space-md) var(--space-md);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
}
.accordion-panel-inner p + p { margin-top: var(--space-sm); }

/* Eigentuemer-Portal-Hinweisbox (Fragen & Antworten) */
.portal-callout {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
}
.portal-callout-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portal-callout-icon svg { width: 26px; height: 26px; }
.portal-callout-text { flex: 1 1 auto; }
.portal-callout-text h3 { margin: 0 0 0.3rem; }
.portal-callout-text p { margin: 0; }
.portal-callout .btn { flex: 0 0 auto; }
@media (max-width: 640px) {
  .portal-callout { flex-direction: column; text-align: center; }
}

.process-steps {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  display: grid;
  gap: var(--space-sm);
}
.process-steps li { display: flex; gap: var(--space-sm); align-items: flex-start; }
.step-number {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.process-steps h4 { margin: 0 0 0.15rem; font-size: 1rem; }
.process-steps p { margin: 0; font-size: 0.9rem; color: var(--color-text-muted); }

/* Leistungen-Seite: Anker-Nav */
#verwaltung, #verkauf, #vermietung,
#interessenten, #eigentuemer, #portal { scroll-margin-top: 90px; }
.service-nav {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.service-nav a {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
}
.service-nav a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* Leistungen-Seite: Intro-Zeile (Text | kleineres Bild) */
.service-intro-grid { grid-template-columns: 1.4fr 1fr; align-items: center; }
.service-intro-grid .about-media img { max-width: 450px; margin-left: auto; }
@media (max-width: 800px) {
  .service-intro-grid { grid-template-columns: 1fr; }
  .service-intro-grid .about-media img { margin: 0 auto; }
}

/* Leistungen-Seite: horizontale Ablaufschritte (offen statt Akkordeon) */
.steps-row {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  position: relative;
  padding: var(--space-lg) 0.5rem var(--space-sm);
  margin-top: var(--space-md);
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.steps-row::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  top: calc(var(--space-lg) + 18px);
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}
.step-flow-item {
  position: relative;
  z-index: 1;
  flex: 0 0 220px;
}
.step-flow-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.step-flow-item h4 { margin: 0 0 0.25rem; font-size: 1rem; }
.step-flow-item p { margin: 0; font-size: 0.88rem; color: var(--color-text-muted); }

/* Eigentuemer-Portal-Button: runder Icon-Button, waechst beim Hover zur Pille */
.owner-portal-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 0 11px;
  flex: 0 0 auto;
}
.owner-portal-link:hover { color: #fff; }
.owner-portal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}
.owner-portal-icon svg { width: 100%; height: 100%; }
.owner-portal-text {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  margin-left: 0;
  font-size: 0.85rem;
  font-weight: 600;
  transition: max-width 0.3s ease, opacity 0.25s ease, margin-left 0.3s ease;
}
.owner-portal-link:hover .owner-portal-text {
  max-width: 160px;
  opacity: 1;
  margin-left: 8px;
}

/* Portal-Link klappt am Handy nicht per Hover/Tap auf - nur das Icon bleibt
   sichtbar. Muss NACH den Basis-/Hover-Regeln oben stehen, da CSS-Regeln
   gleicher Spezifitaet sich sonst nach Datei-Reihenfolge (nicht Media Query)
   durchsetzen. */
@media (max-width: 960px) {
  .owner-portal-text,
  .owner-portal-link:hover .owner-portal-text {
    display: none;
  }
}

/* Objekt-Detailseite: CTA-Reihe (Exposé, Video) */
.detail-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* Objekt-Detailseite: hervorgehobene Besichtigungs-CTA */
.detail-visit-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}
.detail-visit-cta p { margin: 0; font-weight: 600; }

.detail-cta-row .btn,
.detail-visit-cta .btn {
  font-size: 1.05rem;
  padding: 0.85rem 1.75rem;
}

/* Objekt-Detailseite: Ansprechpartnerin-Karte statt reinem Text-CTA */
.detail-agent-card {
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}
.detail-agent-card-body {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-lg);
}
.detail-agent-photo {
  width: 250px;
  height: 400px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}
.detail-agent-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.detail-agent-name { margin: 0.15rem 0; margin-top: 10px; margin-bottom: 20px; }
.detail-agent-role { margin: 0 0 var(--space-sm); font-size: 0.9rem; }

@media (max-width: 800px) {
  .detail-agent-card { max-width: 100%; }
}

@media (max-width: 560px) {
  .detail-agent-card-body { flex-direction: column; align-items: center; text-align: center; }
  .detail-agent-photo { width: 140px; height: 184px; }
  .detail-agent-card .credential-tags { justify-content: center; }
}

/* Zwei-Schritt-Bestaetigung nach Exposé-/Besichtigungsanfrage: "Nachricht
   gesendet" + "Bestaetigung erforderlich" (Provisionsvereinbarung wird erst
   mit Klick auf den Bestaetigungslink in der E-Mail rechtssicher
   geschlossen, siehe RECHTSCHECK-MAKLERVERTRAG.md). */
.confirm-step {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  text-align: left;
  border-left: 3px solid var(--color-success);
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
}
.confirm-step-info { border-left-color: var(--color-primary); }
.confirm-step-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(58, 125, 68, 0.15);
  color: var(--color-success);
}
.confirm-step-info .confirm-step-icon { background: rgba(39, 85, 68, 0.12); color: var(--color-primary); }
.confirm-step h3 { margin: 0 0 0.2rem; font-size: 0.95rem; }
.confirm-step p { margin: 0; font-size: 0.85rem; color: var(--color-text-muted); }

/* Modal (Video-Player, Exposé-Formular) */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(20, 36, 29, 0.72);
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.modal-overlay.is-open { display: flex; }
.modal-box {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: var(--space-lg);
}
.modal-box-video {
  width: auto;
  max-width: min(800px, 92vw);
  padding: 0;
  background: #000;
  line-height: 0;
}
.modal-box-video video { max-width: 100%; max-height: 80vh; display: block; }
.modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 1;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.modal-box:not(.modal-box-video) .modal-close {
  background: var(--color-bg-alt);
  color: var(--color-text);
}
