/*
Theme Name: BtoB Bau & Sanierung
Description: Individuelles Theme für BtoB – Bau & Sanierung GmbH. Alle Texte, Bilder und Inhalte lassen sich direkt im WordPress-Editor pflegen.
Author: jonoda / Fricaud IT Solutions
Version: 0.1.0
Text Domain: btob-bau
*/

/* ==========================================================================
   Design-Tokens (1:1 aus references/*.dc.html übernommen)
   ========================================================================== */
:root {
  --color-bg: #F6F1EA;
  --color-bg-alt: #EFE7DE;
  --color-text: #2B2A2E;
  --color-text-muted: #55525A;
  --color-accent: #8A6D3B;
  --color-accent-hover: #6E5730;
  --color-mauve: #8C6E7C;
  --color-border: rgba(43, 42, 46, 0.08);
  --color-trust-bg: #2B2A2E;
  --color-trust-label: #C9AEB8;
  --color-input-border: #D9D2C8;
  --color-error: #B5432E;
  --color-success: #2B7A4B;

  --font-heading: 'Sora', sans-serif;
  --font-body: 'Work Sans', sans-serif;

  --container-max: 1920px;
  --container-max-narrow: 1440px;
}

/* ==========================================================================
   Basis
   ========================================================================== */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  font-family: var(--font-body);
  color: var(--color-text);
  overflow-x: hidden;
  max-width: 100%;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  background: var(--color-bg);
}

/* Bereich-/Immobilien-/Rechtstext-Seiten nutzen im Mockup 1440px statt der
   1920px der Startseite. */
.container.container--narrow { max-width: var(--container-max-narrow); }

.container-narrow {
  max-width: var(--container-max-narrow);
  margin: 0 auto;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 32px;
  padding: 22px 56px;
  background: rgba(246, 241, 234, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-decoration: none;
}
.site-logo img { height: 44px; width: auto; }

.nav-desktop {
  display: flex;
  gap: 36px;
  justify-content: center;
  flex-wrap: wrap;
  min-width: 0;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 15px;
}
.nav-desktop a { color: var(--color-text); }
.nav-desktop .current-menu-item > a,
.nav-desktop .current_page_item > a,
.nav-mobile .current-menu-item > a,
.nav-mobile .current_page_item > a { color: var(--color-accent); font-weight: 600; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  background: none;
  border: 0;
  padding: 11px;
  margin: -11px;
  cursor: pointer;
  justify-self: end;
}
.menu-toggle span { height: 2px; background: var(--color-text); display: block; }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 8px 20px 20px;
  list-style: none;
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
}
.nav-mobile a {
  color: var(--color-text);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  display: block;
}
.nav-mobile a:last-child { border-bottom: 0; }
.site-header.is-open + .nav-mobile { display: flex; }

/* ==========================================================================
   Hero (Startseite)
   ========================================================================== */
.hero {
  position: relative;
  height: 760px;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroPhotoIn 1.3s ease 0s both;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,42,46,0.55) 0%, rgba(43,42,46,0.15) 45%, rgba(43,42,46,0.55) 100%);
}

.hero-formation-wrap {
  position: absolute;
  left: 0; right: 0;
  top: 120px;
  display: flex;
  justify-content: center;
}
.hero-formation {
  position: relative;
  width: 340px;
  height: 220px;
  transform-origin: top center;
}
.hero-shape {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  color: #fff;
  font-size: 13px;
  text-align: center;
}
.hero-shape--a { left: 20px; top: 20px; background: rgba(140,110,124,0.85); animation: floatShapeA 2.6s cubic-bezier(.2,.8,.25,1) 1.3s both; }
.hero-shape--b { right: 20px; top: 20px; background: rgba(138,109,59,0.85); animation: floatShapeB 2.6s cubic-bezier(.2,.8,.25,1) 1.3s both; }
.hero-shape--c { left: 95px; bottom: 0; background: rgba(43,42,46,0.85); animation: floatShapeC 2.6s cubic-bezier(.2,.8,.25,1) 1.3s both; }
.hero-badge {
  position: absolute;
  left: 95px; top: 35px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(246,241,234,0.55);
  backdrop-filter: blur(3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; box-sizing: border-box;
  animation: wordmarkIn 1.4s ease 3.6s both;
}
.hero-badge img { width: 100%; height: 100%; object-fit: contain; }

.hero-text {
  position: absolute;
  left: 56px; right: 56px;
  bottom: 72px;
  max-width: 640px;
  animation: headlineUp 1.2s ease 4.2s both;
}
.hero-text h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 52px;
  line-height: 1.1;
  color: var(--color-bg);
  margin: 0 0 18px;
}
.hero-text p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: #EFE7DE;
  margin: 0 0 28px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
}
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-hover); color: #fff; }
.btn--outline { border: 1px solid var(--color-bg); color: var(--color-bg); }

@keyframes floatShapeA { 0% { transform: translate(-230px,-100px) scale(1.6); opacity:0; } 18% { opacity:1; } 45% { transform: translate(-90px,-50px) scale(1.3); } 72% { transform: translate(25px,20px) scale(1.08); } 100% { transform: translate(0,0) scale(1); opacity:1; } }
@keyframes floatShapeB { 0% { transform: translate(230px,-90px) scale(1.6); opacity:0; } 18% { opacity:1; } 45% { transform: translate(90px,-40px) scale(1.3); } 72% { transform: translate(-20px,25px) scale(1.08); } 100% { transform: translate(0,0) scale(1); opacity:1; } }
@keyframes floatShapeC { 0% { transform: translate(20px,190px) scale(1.6); opacity:0; } 18% { opacity:1; } 45% { transform: translate(-40px,90px) scale(1.3); } 72% { transform: translate(15px,-15px) scale(1.08); } 100% { transform: translate(0,0) scale(1); opacity:1; } }
@keyframes wordmarkIn { 0% { opacity:0; transform: scale(0.85); } 70% { opacity:0; } 100% { opacity:1; transform: scale(1); } }
@keyframes heroPhotoIn { 0% { opacity:0; } 100% { opacity:1; } }
@keyframes headlineUp { 0% { opacity:0; transform: translateY(18px); } 100% { opacity:1; transform: translateY(0); } }

/* ==========================================================================
   Sektionen (generisch, für alle Seitentypen)
   ========================================================================== */
.section { padding: 88px 56px; background: var(--color-bg); }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-trust-bg); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  color: var(--color-text);
  margin: 0 0 32px;
  max-width: 640px;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  display: block;
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(30,25,20,0.3);
  text-decoration: none;
}
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 28px; }
.card-icon { width: 36px; height: 36px; margin-bottom: 16px; }
.card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-text);
  margin: 0 0 10px;
  overflow-wrap: break-word;
}
.card-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.ref-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
}
.ref-header h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 30px;
  color: var(--color-text);
  margin: 0;
}
.ref-card { border-radius: 2px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px -28px rgba(30,25,20,0.3); }
.ref-card img { width: 100%; height: 240px; object-fit: cover; }
.ref-card-body { padding: 22px; }

/* ==========================================================================
   Trust-Bar
   ========================================================================== */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--color-trust-bg);
  padding: 56px;
}
.trust-item { text-align: center; color: var(--color-bg); padding: 12px 0; }
.trust-number { font-family: var(--font-heading); font-weight: 800; font-size: 32px; }
.trust-label { font-family: var(--font-body); font-size: 13px; color: var(--color-trust-label); margin-top: 6px; }

/* ==========================================================================
   Contact-Band
   ========================================================================== */
.contact-band {
  padding: 80px 56px;
  background: var(--color-mauve);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}
.contact-band h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  max-width: 520px;
  margin: 0;
}
.contact-band .btn { background: var(--color-bg); color: var(--color-text); white-space: nowrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 56px 56px 40px;
  background: var(--color-bg);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-muted);
}
.site-footer .footer-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--color-text);
  margin-bottom: 10px;
}

/* ==========================================================================
   Kontaktformular (Contact Form 7 — Selektoren auf das echte Plugin-Markup,
   nicht auf .contact-form-field aus dem Mockup, das CF7 nie erzeugt)
   ========================================================================== */
.kontakt-form-panel .wpcf7-form p { margin-bottom: 16px; }
.kontakt-form-panel .wpcf7-form label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
}
.kontakt-form-panel .wpcf7-form-control-wrap { display: block; }
.kontakt-form-panel .wpcf7-form input[type=text],
.kontakt-form-panel .wpcf7-form input[type=email],
.kontakt-form-panel .wpcf7-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 2px;
  border: 1px solid var(--color-input-border);
  font-size: 15px;
  font-family: var(--font-body);
}
.wpcf7-not-valid-tip { color: var(--color-error); font-size: 13px; display: block; margin-top: 4px; }
/* Wie im Original-Mockup: nur farbiger Text, keine Box/kein Rahmen — passt
   zum zurückhaltenden Look der restlichen Seite. Höher spezifisch als
   Contact Form 7s eigene Default-Box, damit die wirklich verschwindet. */
.kontakt-form-panel .wpcf7-response-output {
  font-family: var(--font-body);
  font-size: 14px;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  padding: 0 !important;
  margin-top: 16px !important;
}
.kontakt-form-panel .wpcf7-form.sent .wpcf7-response-output {
  color: var(--color-success);
}
.kontakt-form-panel .wpcf7-form.failed .wpcf7-response-output,
.kontakt-form-panel .wpcf7-form.invalid .wpcf7-response-output,
.kontakt-form-panel .wpcf7-form.spam .wpcf7-response-output {
  color: var(--color-error);
}
.kontakt-form-panel .wpcf7-form input[type="submit"] {
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 2px;
  border: 0;
  cursor: pointer;
  margin-top: 6px;
}
.kontakt-form-panel .wpcf7-form input[type="submit"]:hover { background: var(--color-accent-hover); }
.kontakt-form-panel .wpcf7-spinner { margin-left: 10px; }

/* ==========================================================================
   Sub-Navigation (Bereich-Seiten: Architektur / Bau & Sanierung / Immobilien)
   ========================================================================== */
.subnav {
  display: flex;
  gap: 28px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0 56px;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-muted);
  scrollbar-width: none;
  /* Fade am rechten Rand als Hinweis, dass die Leiste weiter wischbar ist —
     die Scrollbar ist absichtlich versteckt, ohne diesen Hinweis wirkt die
     Liste sonst wie abgeschnitten statt fortsetzbar. */
  mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent 100%);
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  padding: 20px 0;
  border-bottom: 2px solid transparent;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.subnav a.is-active { color: var(--color-accent); font-weight: 600; border-bottom-color: var(--color-accent); }

/* ==========================================================================
   Seiten-Hero (klein, Bereich-Seiten — nicht zu verwechseln mit .hero der Startseite)
   ========================================================================== */
.page-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,42,46,0.6) 0%, rgba(43,42,46,0.25) 100%);
}
.page-hero-content { position: absolute; left: 56px; bottom: 32px; }
.page-hero-content .eyebrow { color: var(--color-trust-label); margin-bottom: 12px; }
.page-hero-content h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 44px;
  color: var(--color-bg);
  margin: 0;
}

/* ==========================================================================
   Profil (Bereich-Seiten)
   ========================================================================== */
.profil-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: start; }
.profil-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-muted);
}
.chips-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chip { background: var(--color-bg-alt); border-radius: 2px; padding: 24px; }
.chip-icon { width: 30px; height: 30px; margin-bottom: 14px; }
.chip-icon--circle { border-radius: 50%; background: var(--color-mauve); }
.chip-icon--diamond { background: var(--color-text); transform: rotate(45deg); }
.chip-label { font-family: var(--font-body); font-size: 14px; color: var(--color-text); overflow-wrap: break-word; }

/* ==========================================================================
   Referenzen nach Kategorie (Architektur / Bau & Sanierung)
   ========================================================================== */
.ref-category-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-text);
  margin: 0 0 20px;
}
.ref-category { margin-bottom: 40px; }
.ref-category:last-child { margin-bottom: 0; }
.ref-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ref-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ref-grid-4 .ref-card img { height: 180px; }
.ref-grid-4 .ref-card-body { padding: 18px; }
.ref-card-title { font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--color-text); overflow-wrap: break-word; }
.ref-grid-2 .ref-card-title { font-size: 16px; }

/* ==========================================================================
   Team / Partner
   ========================================================================== */
.team-item { text-align: center; }
.team-photo { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; margin-bottom: 16px; }
.team-name { font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--color-text); }
.team-role { font-family: var(--font-body); font-size: 13px; color: var(--color-text-muted); margin-top: 4px; }

.carousel { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.carousel__row { display: flex; align-items: center; gap: 12px; width: 100%; }
.carousel__viewport { overflow: hidden; flex: 1; min-width: 0; }
.carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 calc((100% - 24px * 4) / 5); scroll-snap-align: start; }
.carousel__arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  border: 0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.carousel__arrow:hover { background: var(--color-accent-hover); }
.carousel.is-single-page .carousel__arrow { visibility: hidden; }
.carousel.is-single-page .carousel__track { justify-content: center; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; }
.carousel.is-single-page .carousel__dots { display: none; }
.carousel__dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--color-input-border); cursor: pointer; }
.carousel__dot.is-active { background: var(--color-accent); }
.partner-item {
  background: var(--color-bg-alt);
  border-radius: 2px;
  padding: 20px;
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: none;
}
a.partner-item { cursor: pointer; }
a.partner-item:hover { color: var(--color-text); }
/* Logos in Graustufen, damit uneinheitliche Marken-Farben nicht mit dem
   Seitendesign kollidieren (Standard-Muster für Partner-/Kunden-Logo-Reihen).
   Beim Hover kurz einblenden in Farbe — kleines, verbreitetes Detail. */
.partner-logo {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
  transition: filter 0.2s ease;
}
.partner-item:hover .partner-logo { filter: grayscale(0) opacity(1); }

/* ==========================================================================
   Aktuelles
   ========================================================================== */
.news-card { background: #fff; border-radius: 2px; padding: 28px; box-shadow: 0 18px 40px -28px rgba(30,25,20,0.3); }
.news-date { font-family: var(--font-body); font-size: 13px; color: var(--color-accent); margin-bottom: 10px; }
.news-title { font-family: var(--font-heading); font-weight: 600; font-size: 17px; color: var(--color-text); margin-bottom: 10px; }
.news-text { font-family: var(--font-body); font-size: 14px; line-height: 1.6; color: var(--color-text-muted); }

/* ==========================================================================
   Jobs
   ========================================================================== */
.jobs-list { display: flex; flex-direction: column; gap: 16px; }
.jobs-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--color-bg-alt);
  border-radius: 2px;
  padding: 24px 28px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.jobs-item:hover { background: #e6ddd0; }
.jobs-title { font-family: var(--font-heading); font-weight: 600; font-size: 17px; color: var(--color-text); margin-bottom: 4px; }
.jobs-meta { font-family: var(--font-body); font-size: 14px; color: var(--color-text-muted); }
.jobs-cta { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--color-accent); white-space: nowrap; }

/* ==========================================================================
   Kontakt (dunkle Sektion, Bereich-Seiten)
   ========================================================================== */
.kontakt-dark { padding: 80px 56px; background: var(--color-trust-bg); }
.kontakt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.kontakt-info .eyebrow { color: var(--color-trust-label); }
.kontakt-info h2 { font-family: var(--font-heading); font-weight: 700; font-size: 32px; color: var(--color-bg); margin: 0 0 24px; }
.kontakt-address { font-family: var(--font-body); font-size: 15px; line-height: 1.8; color: #D9D2C8; margin-bottom: 28px; }
.kontakt-address a { color: #D9D2C8; }
.kontakt-map {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 2px;
  display: block;
}
.kontakt-map-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 13px;
}
.kontakt-map-links a { color: var(--color-trust-label); }
.kontakt-map-links a:hover { color: var(--color-bg); }
.kontakt-form-panel {
  background: var(--color-bg);
  border-radius: 2px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--font-body);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.kontakt-form-panel a { font-weight: 600; }

/* ==========================================================================
   Immobilien-Objekte (Filter + Karten)
   ========================================================================== */
.objekte-filter { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-pill {
  padding: 10px 22px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 0;
}
.filter-pill.is-active { background: var(--color-text); color: var(--color-bg); }
.objekte-subtitle { font-family: var(--font-heading); font-weight: 700; font-size: 22px; color: var(--color-text); margin: 0 0 24px; }
.objekte-card { background: #fff; border-radius: 2px; overflow: hidden; box-shadow: 0 18px 40px -28px rgba(30,25,20,0.3); }
.objekte-card img { width: 100%; height: 220px; object-fit: cover; }
.objekte-card-body { padding: 24px; }
.objekte-card-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 8px; }
.objekte-ort { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent); }
.objekte-badge {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  padding: 3px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
.objekte-badge--vermietung { background: var(--color-mauve); }
.objekte-badge--verkauf { background: var(--color-text); }
.objekte-titel { font-family: var(--font-heading); font-weight: 600; font-size: 18px; color: var(--color-text); margin-bottom: 6px; overflow-wrap: break-word; }
.objekte-beschreibung { font-family: var(--font-body); font-size: 13px; color: var(--color-text-muted); margin-bottom: 14px; }
.objekte-kennzahlen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.objekte-kennzahlen dt { grid-column: 1; }
.objekte-kennzahlen dd { grid-column: 2; margin: 0; color: var(--color-text); font-weight: 500; text-align: right; }

/* ==========================================================================
   Nach-oben-Button
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  border: 0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(30, 25, 20, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
  z-index: 20;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--color-accent-hover); }

/* ==========================================================================
   Responsive (Breakpoint 860px, aus dc-Format übernommen)
   ========================================================================== */
@media (max-width: 860px) {
  .site-header { padding: 14px 20px; column-gap: 16px; }
  .site-logo { font-size: 18px; }
  .site-logo img { height: 32px; }
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }

  .hero { height: 560px; }
  .hero-formation-wrap { top: 54px; }
  .hero-formation { transform: scale(0.6); }
  .hero-text { left: 20px; right: 20px; bottom: 32px; }
  .hero-text h1 { font-size: 30px; }
  .hero-text p { font-size: 15px; }

  .section { padding: 48px 20px; }
  .section-title { font-size: 26px; }
  .ref-header { flex-direction: column; align-items: flex-start; }
  .ref-header h2 { font-size: 24px; }
  .grid-3 { grid-template-columns: 1fr; }

  .trust-bar { grid-template-columns: repeat(2, 1fr); padding: 32px 20px; }

  .contact-band { flex-direction: column; align-items: flex-start; padding: 48px 20px; }
  .contact-band h2 { font-size: 24px; }

  .site-footer { flex-direction: column; padding: 40px 20px 32px; }

  .subnav { gap: 18px; padding: 4px 20px 0; }
  .subnav a { padding: 8px 0; }

  .page-hero { height: 280px; }
  .page-hero-content { left: 20px; }
  .page-hero-content h1 { font-size: 30px; }

  .profil-grid { grid-template-columns: 1fr; }
  .chips-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .ref-grid-2 { grid-template-columns: 1fr; }
  .ref-grid-4 { grid-template-columns: repeat(2, 1fr); }

  .carousel__slide { flex-basis: 100%; }
  .carousel__arrow { width: 36px; height: 36px; font-size: 16px; }

  .jobs-item { flex-direction: column; align-items: flex-start; }

  .kontakt-dark { padding: 48px 20px; }
  .kontakt-grid { grid-template-columns: 1fr; }
}
