/* ==========================================================================
   ALPEA HOMES – Stylesheet
   Design nach Vorlage (Screenshots) · Farben, Typografie, Komponenten
   ========================================================================== */

:root {
  /* Farben */
  --green:        #111111;
  --green-dark:   #333333;
  --green-deep:   #111111;
  --mint:         #f2f2f2;
  --pink:         #6f6f6f;
  --taupe:        #1c1c1c;
  --taupe-light:  #8f8f8f;
  --taupe-panel:  #1c1c1c;
  --teal:         #111111;
  --teal-footer:  #101010;
  --ink:          #1c1c1c;
  --grey-bg:      #f5f5f4;
  --grey-line:    #e6e6e4;
  --grey-text:    #5f5f5d;
  --white:        #ffffff;

  /* Typografie */
  --font: 'Poppins', 'Segoe UI', Arial, sans-serif;

  /* Layout */
  --maxw: 1240px;
  --radius: 14px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(20, 70, 63, .10);
  --transition: all .25s ease;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
}

.section { padding: 90px 0; }
.section--grey { background: var(--grey-bg); }
.section--dark { background: #000; color: var(--white); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--ink); }

.h-xl { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.h-lg { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.h-md { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

.text-green { color: var(--green); }
.text-mint  { color: var(--mint); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

.lead { max-width: 900px; }

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: .95rem;
  padding: 15px 40px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn--green {
  background: var(--green);
  color: var(--white);
}
.btn--green:hover { background: var(--green-dark); transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn--outline:hover { background: rgba(255, 255, 255, .15); }

.btn--dark-green {
  background: var(--green-deep);
  color: var(--white);
  border-radius: 8px;
  padding: 14px 30px;
}
.btn--dark-green:hover { background: #333333; }

.btn--ghost-square {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white);
  border-radius: 4px;
  padding: 14px 28px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .9rem;
}
.btn--ghost-square:hover { background: rgba(255,255,255,.12); }

/* Badges (Pills auf Immobilienkarten) */
.badge {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--white);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  line-height: 1.4;
  white-space: nowrap;
}
.badge--green { background: var(--green); }
.badge--pink  { background: var(--white); color: #111; box-shadow: 0 0 0 1px #111 inset; }
.badge--taupe { background: var(--taupe-light); }
.badge--dark  { background: var(--teal); }

/* Grosse Pill-Labels (Sektions-Titel wie im Design) */
.pill-label {
  display: inline-block;
  color: var(--white);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  padding: 18px 40px;
  border-radius: 28px;
  line-height: 1.35;
}
.pill-label--green { background: var(--green); }
/* Auf farbigen Bannern ist das schwarze Label kaum zu lesen. */
.pill-label--white { background: var(--white); color: var(--ink); }
.pill-label--pink  { background: #111; }
.pill-label--taupe { background: var(--taupe-light); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: var(--transition);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 56px);
  height: 96px;
}

/* Logo */
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo__main {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--ink);
}
.logo__sub {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .28em;
  color: var(--ink);
  margin-top: 2px;
}
.logo__sub::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--ink);
}
.header--light .logo__main,
.header--light .logo__sub { color: var(--white); }
.header--light .logo__sub::before { background: var(--white); }

/* Weisser Verlauf hinter dem Logo wie in der Vorlage */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.82) 100%);
  z-index: -1;
  transition: var(--transition);
}
.header--scrolled::before {
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
}
.header--scrolled { height: auto; }
.header--scrolled .logo__main,
.header--scrolled .logo__sub { color: #111; }
.header--scrolled .logo__sub::before { background: #111; }

/* Nav-Links */
.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); }
.nav__link {
  color: #111;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: #111;
  transition: var(--transition);
}
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

/* Burger */
.burger {
  width: 44px; height: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}
.burger span {
  height: 4px;
  width: 100%;
  border-radius: 2px;
  background: #111;
  transition: var(--transition);
}
.burger.is-open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* Dropdown-Panel (Unternehmen / Burger) */
.menu-panel {
  position: absolute;
  top: 110px;
  right: clamp(16px, 4vw, 56px);
  background: rgba(17, 17, 17, .96);
  padding: 46px 40px;
  width: min(360px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: var(--transition);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.menu-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.menu-panel a {
  color: var(--white);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.4;
}
.menu-panel a:hover { color: var(--mint); }

/* Mobile Navigation */
.nav-mobile-links { display: none; }

/* ==========================================================================
   Hero (Startseite)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--teal);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.72);
  transform: scale(1.02);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 0 90px;
}
.hero__title {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  margin-bottom: 40px;
  max-width: 900px;
}
.hero--sub {
  min-height: 72vh;
  align-items: center;
}
.hero--sub .hero__content { padding: 140px 0 70px; }

/* Sound-Button (dekorativ wie in der Vorlage) */
.hero__sound {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.8);
  background: rgba(0,0,0,.15);
  color: var(--white);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* Ueber .hero__content (z-index 2): der Knopf steht frueher im DOM und
     laege bei Gleichstand darunter — die Klicks landeten dann auf
     .hero__actions statt auf ihm. */
  z-index: 3;
  transition: var(--transition);
}
.hero__sound:hover { background: rgba(0,0,0,.4); }

/* ==========================================================================
   Zitat-/Textsektionen
   ========================================================================== */
.quote-block h2 { margin-bottom: 34px; }
.quote-block p { max-width: 980px; color: var(--ink); }
.quote-block .bold-line { font-weight: 700; margin-top: 6px; }
.quote-block .btn { margin-top: 48px; }

/* Team-Bild + Statement */
.team-statement {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
}
.team-statement__img {
  aspect-ratio: 4 / 3;
  background-color: #2b2b2b;
  background-image: linear-gradient(160deg, #2b2b2b, #161616);
  background-size: cover;
  background-position: center;
}
.team-statement__quote {
  background: var(--taupe-panel);
  color: var(--white);
  padding: clamp(40px, 6vw, 90px) clamp(32px, 5vw, 80px);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 700;
  line-height: 1.5;
  margin-left: -80px;
  z-index: 2;
}

/* ==========================================================================
   Immobilienkarten
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 34px;
}
.cards-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.prop-card {
  position: relative;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.prop-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(20,70,63,.18); }

.cards-grid--flat .prop-card__media { aspect-ratio: 4 / 3; }

.prop-card__media {
  position: relative;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  background: linear-gradient(160deg, #2b2b2b, #161616);
}
.prop-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.prop-card:hover .prop-card__media img { transform: scale(1.05); }

.prop-card__badges {
  position: absolute;
  top: 16px; left: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 2;
}

/* Ecke "Jetzt registrieren" */
.prop-card__corner {
  position: absolute;
  top: 0; right: 0;
  width: 130px; height: 130px;
  overflow: hidden;
  z-index: 2;
}
.prop-card__corner span {
  position: absolute;
  top: 30px; right: -42px;
  transform: rotate(45deg);
  background: var(--teal);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 48px;
  text-align: center;
  line-height: 1.35;
}

.prop-card__body {
  padding: 26px 26px 30px;
  background: #fafbfa;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.prop-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.prop-card__title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.3;
}
.prop-card__facts {
  margin-top: 6px;
  font-size: .95rem;
  color: var(--grey-text);
}
.prop-card__arrow {
  margin-top: auto;
  padding-top: 18px;
  font-size: 1.5rem;
  color: var(--teal);
  transition: var(--transition);
}
.prop-card:hover .prop-card__arrow { transform: translateX(8px); color: var(--green); }

/* ==========================================================================
   Filterleiste (Immobilienübersicht)
   ========================================================================== */
.filterbar {
  background: var(--grey-bg);
  padding: 34px clamp(20px, 3vw, 40px);
  margin-bottom: 26px;
}
.filterbar__title {
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 20px;
}
.filterbar__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.filterbar select {
  width: 100%;
  appearance: none;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23111111' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid #cfd6d3;
  border-radius: 4px;
  padding: 16px 40px 16px 16px;
  cursor: pointer;
}
.filterbar select:focus { outline: 2px solid var(--green); }

.filter-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 26px;
  background: var(--grey-bg);
  padding: 6px;
  border-radius: var(--radius-pill);
}
.filter-tabs button {
  font-family: var(--font);
  font-weight: 700;
  font-size: .95rem;
  border: none;
  background: transparent;
  color: var(--teal);
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}
.filter-tabs button.is-active {
  background: var(--green);
  color: var(--white);
}

.result-count { margin: 4px 0 34px; }
.result-count strong { font-weight: 700; }

/* ==========================================================================
   Detailseite
   ========================================================================== */
.detail-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--teal);
  overflow: hidden;
}
.detail-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.6);
}
.detail-hero__content {
  position: relative;
  z-index: 2;
  padding: 160px 0 80px;
  max-width: 800px;
}
.detail-hero__badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}
.detail-hero__badges .avail {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.detail-hero__title {
  color: var(--mint);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 24px;
}
.detail-hero__desc { max-width: 640px; margin-bottom: 40px; }
.detail-hero__actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font);
  font-size: .95rem;
  letter-spacing: .1em;
  cursor: pointer;
}
.share-btn .icon {
  width: 46px; height: 46px;
  border: 1.5px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Eckdaten-Kacheln */
.facts-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  position: relative;
  z-index: 3;
  margin-top: -70px;
}
.fact-tile {
  background: var(--grey-bg);
  border-radius: var(--radius);
  padding: 28px 22px 30px;
}
.fact-tile .icon {
  font-size: 1.5rem;
  color: var(--teal);
  margin-bottom: 14px;
  display: block;
}
.fact-tile h4 { font-size: 1.02rem; color: var(--ink); }
.fact-tile p { font-size: .95rem; color: var(--grey-text); }

/* Beschreibung + Merkmale */
.detail-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 6vw, 90px);
}
.detail-body h2 { margin-bottom: 24px; }
.detail-body .features { margin-top: 24px; }
.detail-body .features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}
.detail-body .features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* Kontaktkarte */
.contact-card {
  background: var(--grey-bg);
  padding: 40px 36px;
  height: fit-content;
}
.contact-card h3 { margin-bottom: 6px; }
.contact-card .role {
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-bottom: 20px;
}
.contact-card a.line {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--teal);
}
.contact-card a.line:hover { color: var(--green); }
.contact-card .btn { margin-top: 24px; width: 100%; }

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.gallery a {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: block;
  background: var(--grey-bg);
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery a:hover img { transform: scale(1.06); }

/* ==========================================================================
   CTA-Sektion (Immobilie verkaufen)
   ========================================================================== */
.cta-sell {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.cta-sell__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .18;
}
.cta-sell__content { position: relative; z-index: 2; padding: 60px 24px; }
.cta-sell__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.cta-sell h2 {
  color: var(--green);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  margin-bottom: 20px;
}
.cta-sell p {
  color: var(--white);
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0,0,0,.15);
  margin-bottom: 44px;
}
.cta-sell--light p { color: var(--ink); text-shadow: none; }

/* Kategorien-Karten (Unternehmen) */
.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.category-card:hover { transform: translateY(-6px); }
.category-card__media {
  aspect-ratio: 4 / 4.6;
  background-color: #2b2b2b;
  background-image: linear-gradient(160deg, #2b2b2b, #161616);
  background-size: cover;
  background-position: center;
}
/* flex:1 — sonst bleibt der Balken so hoch wie sein Text, und bei ungleich
   langen Titeln endet er vor dem Kartenrand, den das Grid auf die hoechste
   Karte streckt. */
.category-card__label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
  padding: 30px 20px;
  line-height: 1.45;
}
.category-card--green .category-card__label { background: var(--green); }
.category-card--pink  .category-card__label { background: var(--pink); }
.category-card--taupe .category-card__label { background: var(--taupe-light); }

/* Banner-Sektion (z. B. Neubauprojekt Mauren) */
.project-banner {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--taupe);
}
.project-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.project-banner__box {
  position: relative;
  z-index: 2;
  margin-left: auto;
  background: rgba(20, 20, 20, .66);
  padding: clamp(36px, 5vw, 70px) clamp(30px, 5vw, 80px);
  max-width: 620px;
  width: 100%;
}
.project-banner__box h2 {
  color: var(--white);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin-bottom: 32px;
}
.project-banner__box .tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.project-banner__box .tag {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  padding: 12px 34px;
  border-radius: var(--radius-pill);
}
.tag--taupe { background: var(--taupe-light); }
.tag--pink  { background: var(--white); color: #111; }

/* Seiten-Header für Unterseiten mit Bild + Pill */
.page-banner {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--teal);
}
.page-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.85);
}
.page-banner .container { position: relative; z-index: 2; }

/* ==========================================================================
   Google Reviews
   ========================================================================== */
.reviews-head {
  background: var(--grey-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 28px 36px;
  margin-bottom: 40px;
}
.reviews-head__score {
  display: flex;
  align-items: center;
  gap: 18px;
}
.reviews-head__score .num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}
.stars { color: #f5b400; letter-spacing: 2px; font-size: 1.1rem; }
.reviews-head__score small { display: block; color: var(--grey-text); }
.reviews-head .g-word { font-weight: 700; }

/* Bewertungen als Slider: drei pro Ansicht, weiterschalten per Knopf oder
   automatisch. Umgesetzt mit scroll-snap statt transform — so laesst sich auf
   dem Handy auch wischen, und die Breite regelt das Layout selbst. */
.reviews-slider { position: relative; }

.review-cards {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.review-cards::-webkit-scrollbar { display: none; }
.review-cards > .review-card {
  flex: 0 0 calc((100% - 60px) / 3);
  scroll-snap-align: start;
}

.reviews-slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 34px;
}
.reviews-slider__btn {
  width: 46px; height: 46px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--grey-line);
  background: var(--white);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}
.reviews-slider__btn:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.reviews-slider__btn:disabled { opacity: .35; cursor: default; }
.reviews-slider__btn:disabled:hover { border-color: var(--grey-line); background: var(--white); color: var(--ink); }

.reviews-slider__dots { display: flex; gap: 8px; }
.reviews-slider__dot {
  width: 8px; height: 8px;
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--grey-line);
  cursor: pointer;
  transition: var(--transition);
}
.reviews-slider__dot.is-active { background: var(--ink); width: 22px; }

@media (max-width: 900px) {
  .review-cards > .review-card { flex-basis: calc((100% - 30px) / 2); }
}
@media (max-width: 620px) {
  .review-cards > .review-card { flex-basis: 100%; }
}
.review-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}
.review-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.review-card__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.review-card__name { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.review-card__name .check { color: var(--green); font-size: .95rem; }
.review-card__date { font-size: .85rem; color: var(--grey-text); }
.review-card p { font-size: .95rem; color: var(--grey-text); margin-top: 10px; }

/* ==========================================================================
   Kooperationen
   ========================================================================== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 60px;
  align-items: center;
  justify-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.partner {
  font-weight: 700;
  font-size: 1.15rem;
  color: #3c4441;
  opacity: .85;
  text-align: center;
  transition: var(--transition);
  filter: grayscale(.2);
}
.partner:hover { opacity: 1; transform: scale(1.04); }
.partner small { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .06em; color: var(--grey-text); }

/* ==========================================================================
   Team
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto;
}
.team-card { position: relative; overflow: hidden; }
.team-card__img {
  aspect-ratio: 3 / 4;
  background: linear-gradient(170deg, #bdbdbd 0%, #8a8a8a 55%, #4a4a4a 100%);
  position: relative;
}
.team-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.35) 0 14%, transparent 15%),
    radial-gradient(ellipse at 50% 68%, rgba(255,255,255,.3) 0 26%, transparent 27%);
}
.team-card__caption {
  position: absolute;
  left: 22px; bottom: 20px;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
  z-index: 2;
}
.team-card__caption small { font-size: .9rem; display: block; }
.team-card__caption strong { font-size: 1.35rem; }

/* Kontaktdaten beim Darueberfahren. Sie liegen ueber dem Foto statt darunter,
   damit die Kacheln gleich hoch bleiben und die Rasterzeile nicht springt.
   Auf Touch gibt es kein Hover — dort blendet :focus-within die Karte ein,
   sobald ein Link angetippt wird. */
.team-card__kontakt {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 26px 22px 24px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(17,17,17,.15) 0%, rgba(17,17,17,.88) 55%);
  opacity: 0;
  transition: opacity .28s ease;
}
.team-card:hover .team-card__kontakt,
.team-card:focus-within .team-card__kontakt { opacity: 1; }
.team-card:hover .team-card__caption,
.team-card:focus-within .team-card__caption { opacity: 0; }
.team-card__caption { transition: opacity .28s ease; }

.team-card__kontakt strong { font-size: 1.3rem; color: var(--white); line-height: 1.3; }
.team-card__kontakt small { font-size: .9rem; opacity: .8; margin-bottom: 10px; }
.team-card__kontakt a {
  font-size: .95rem;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.35);
  align-self: flex-start;
  word-break: break-word;
}
.team-card__kontakt a:hover { border-bottom-color: var(--white); }

/* Ohne Hover (Touch) wuerde die Karte sonst nur beim Antippen eines Links
   reagieren — dort die Daten dauerhaft zeigen. */
@media (hover: none) {
  .team-card__kontakt { position: static; opacity: 1; background: var(--ink); padding: 20px 22px 24px; }
  .team-card__caption { display: none; }
}

/* ==========================================================================
   Kontaktseite / Formulare
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 90px);
}
.office-card {
  background: var(--grey-bg);
  padding: 34px 32px;
  margin-bottom: 24px;
}
.office-card h3 { color: var(--teal); margin-bottom: 8px; }
.office-card p { color: var(--grey-text); }
.office-card a { font-weight: 600; color: var(--teal); }
.office-card a:hover { color: var(--green); }

.form label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 18px 0 6px;
}
.form input,
.form textarea,
.form select {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid #cfd6d3;
  border-radius: 6px;
  background: var(--white);
}
.form input:focus,
.form textarea:focus { outline: 2px solid var(--green); border-color: transparent; }
.form textarea { min-height: 150px; resize: vertical; }
.form .btn { margin-top: 28px; }
.form__success {
  display: none;
  background: #eaeaea;
  color: #111;
  font-weight: 600;
  padding: 16px 20px;
  border-radius: 8px;
  margin-top: 24px;
}
.form__success.is-visible { display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--teal-footer);
  color: #cfcfcf;
  padding: 80px 0 40px;
  font-size: .98rem;
}
.footer a:hover { color: var(--white); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1.4fr;
  gap: 50px;
}
/* Die Logodatei ist schwarze Zeichnung auf Transparenz. brightness(0) macht
   sie vollflaechig schwarz, invert(1) daraus weiss — so steht sie im dunklen
   Footer, ohne dass es eine zweite Datei braucht. */
.footer__brand {
  height: 44px;
  width: auto;
  margin-bottom: 30px;
  filter: brightness(0) invert(1);
}
.footer h4 {
  color: var(--white);
  font-size: 1.02rem;
  margin-bottom: 14px;
}
.footer p { margin-bottom: 4px; }
.footer .spacer { height: 18px; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { font-weight: 600; }
.footer .kontakt-btn {
  display: inline-block;
  background: var(--white);
  color: var(--teal-footer);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 14px 34px;
  margin-top: 26px;
}
.footer .kontakt-btn:hover { background: var(--mint); color: var(--teal-footer); }

/* Newsletter */
.newsletter h4 { margin-bottom: 18px; }
.newsletter__row { display: flex; gap: 10px; }
.newsletter input[type="email"] {
  flex: 1;
  font-family: var(--font);
  padding: 14px 16px;
  border: none;
  border-radius: 2px;
  font-size: .95rem;
}
.newsletter button {
  font-family: var(--font);
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 0 26px;
  cursor: pointer;
  transition: var(--transition);
}
.newsletter button:hover { background: var(--white); color: var(--teal-footer); }
.newsletter .checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  margin-top: 14px;
}
.newsletter .checkline a { text-decoration: underline; }

.footer__social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.footer__social a {
  width: 36px; height: 36px;
  border: 1.5px solid #cfcfcf;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
}
.footer__social a:hover { border-color: var(--white); }

.footer__bottom {
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.footer__powered { color: #8a8a8a; transition: var(--transition); }
.footer__powered:hover { color: var(--white); }

@media (max-width: 560px) {
  .footer__bottom { justify-content: flex-start; }
}

/* ==========================================================================
   Sonstiges
   ========================================================================== */
.breadcrumbs {
  font-size: .85rem;
  color: var(--grey-text);
  margin-bottom: 30px;
}
.breadcrumbs a { color: var(--teal); font-weight: 600; }
.breadcrumbs a:hover { color: var(--green); }

.legal-content h1 { margin-bottom: 30px; }
.legal-content h2 { font-size: 1.3rem; margin: 34px 0 12px; }
.legal-content p, .legal-content li { color: var(--grey-text); }
.legal-content ul { list-style: disc; padding-left: 22px; }

/* Scroll-Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Empty-State */
.empty-state {
  grid-column: 1 / -1;
  background: var(--grey-bg);
  text-align: center;
  padding: 60px 30px;
  color: var(--grey-text);
  font-weight: 600;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .cards-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .facts-row { grid-template-columns: repeat(3, 1fr); }
  .filterbar__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav__link { display: none; }
  .nav-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-bottom: 26px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,.3);
  }
  .nav-mobile-links a {
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  .team-statement { grid-template-columns: 1fr; }
  .team-statement__quote { margin: -60px 24px 0; }
  .category-cards, .team-grid { grid-template-columns: 1fr; }
  .cards-grid--3 { grid-template-columns: 1fr; }
  .detail-body, .contact-layout { grid-template-columns: 1fr; }
  .facts-row { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
  .filterbar__grid { grid-template-columns: 1fr 1fr; }
  .header__bar { height: 84px; }
  .menu-panel { top: 92px; }
  .hero__title { margin-bottom: 30px; }
  .project-banner__box { margin: 0; }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .filterbar__grid { grid-template-columns: 1fr; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .newsletter__row { flex-direction: column; }
  .newsletter button { padding: 14px; }
  .btn { width: 100%; }
  .detail-hero__actions .btn { width: auto; }
}


/* Weisser Tag im Projekt-Banner: Text dunkel */
.project-banner__box .tag--pink { color: #111; }

/* Schatten neutral */
.prop-card { box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.prop-card:hover { box-shadow: 0 18px 44px rgba(0, 0, 0, .16); }

/* Team: Portraits oben ausrichten, Grid wickelt bei 5 Personen */
.team-card__img { background-size: cover; background-position: center top; }
.team-card__img::after { background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45) 100%); }

/* ==========================================================================
   Google-Maps-Einbettung (Detailseite)
   ========================================================================== */
.map-embed {
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}
.map-embed iframe {
  filter: grayscale(1) contrast(1.02);
  transition: filter .4s ease;
}
.map-embed:hover iframe { filter: grayscale(0); }
.map-note {
  margin-top: 18px;
  font-size: .9rem;
  color: var(--grey-text);
}

/* ==========================================================================
   Tippgeber-Seite
   ========================================================================== */
.overline {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey-text);
}
.tip-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tip-step {
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 36px 30px;
  background: var(--white);
  transition: var(--transition);
}
.tip-step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tip-step__num {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  margin-bottom: 18px;
}
.tip-step h3 { font-weight: 800; margin-bottom: 10px; }
.tip-step p { font-size: .95rem; color: var(--grey-text); }

.tip-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: start;
}
.tip-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 46px;
  box-shadow: var(--shadow);
}
.tip-form__legend {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey-text);
  border-bottom: 1px solid var(--grey-line);
  padding-bottom: 10px;
  margin-bottom: 22px;
}
.tip-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 22px;
}
.tip-form__grid label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.tip-form__grid input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--grey-line);
  border-radius: 10px;
  font-family: var(--font);
  font-size: .95rem;
  background: var(--white);
}
.tip-form__grid input:focus { outline: 2px solid var(--green); border-color: transparent; }
.tip-form__grid .tip-form__full { grid-column: 1 / -1; }
.tip-form input.is-error { border-color: #b00020; outline: 2px solid #b00020; }
.tip-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 30px;
  font-size: .88rem;
  color: var(--grey-text);
  cursor: pointer;
}
.tip-consent input { margin-top: 5px; accent-color: var(--green); }
.tip-consent.is-error span { color: #b00020; }
.tip-fineprint { margin-top: 22px; font-size: .8rem; color: var(--grey-text); }

.tip-call {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 34px;
  position: sticky;
  top: 110px;
}
.tip-call h3 { font-weight: 800; font-size: 1.3rem; margin-bottom: 14px; }
.tip-call > p { font-size: .95rem; color: rgba(255,255,255,.75); margin-bottom: 26px; }
.tip-call__person {
  border-top: 1px solid rgba(255,255,255,.16);
  padding: 16px 0;
}
.tip-call__person strong { display: block; font-size: .9rem; }
.tip-call__person a {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.tip-call__person a:hover { text-decoration: underline; }
.tip-call__note {
  margin-top: 22px;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
}

@media (max-width: 900px) {
  .tip-steps { grid-template-columns: 1fr; }
  .tip-layout { grid-template-columns: 1fr; }
  .tip-form { padding: 30px 22px; }
  .tip-form__grid { grid-template-columns: 1fr; }
  .tip-call { position: static; }
}

/* Tippgeber-Korrekturen */
.tip-call h3 { color: var(--white); }
.tip-consent span { text-transform: none; letter-spacing: normal; font-weight: 500; }

/* Tippgeber-Banner: Bild monochrom, gut sichtbar */
.page-banner__bg--mono {
  filter: grayscale(1) brightness(.72) contrast(1.05);
}

/* ==========================================================================
   Neubauprojekte-Seite
   ========================================================================== */
.np-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 34px;
  box-shadow: var(--shadow);
}
.np-card__media {
  min-height: 380px;
  background-size: cover;
  background-position: center;
}
.np-card--flip .np-card__media { order: 2; }
.np-card__body { padding: 46px 44px; }
.np-card__body h3 { font-size: 1.6rem; font-weight: 800; margin-top: 16px; }
.np-card__ort {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-top: 4px;
}
.np-card__text { color: var(--grey-text); margin-top: 16px; }
.np-units { margin-top: 26px; border-top: 1px solid var(--grey-line); }
.np-unit {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--grey-line);
  font-size: .92rem;
  transition: var(--transition);
}
.np-unit:hover { background: var(--grey-bg); }
.np-unit__title { font-weight: 600; }
.np-unit__meta { color: var(--grey-text); white-space: nowrap; }
.np-unit__arrow { font-weight: 700; }
.np-unit .badge { position: static; }

.np-steps {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
}
.np-step img,
.np-step__fallback {
  width: 74px;
  height: 74px;
  filter: grayscale(1);
  margin-bottom: 20px;
}
.np-step__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 800;
}
.np-step h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 10px; }
.np-step p { font-size: .88rem; color: var(--grey-text); }

.np-promo {
  position: relative;
  padding: 120px 0;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}
.np-promo__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .22;
  filter: grayscale(1);
}
.np-promo__inner { position: relative; z-index: 2; }
.np-promo__points { display: grid; gap: 12px; max-width: 620px; }
.np-promo__points li {
  padding-left: 30px;
  position: relative;
  color: rgba(255,255,255,.9);
}
.np-promo__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 8px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

@media (max-width: 1000px) {
  .np-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .np-card { grid-template-columns: 1fr; }
  .np-card--flip .np-card__media { order: 0; }
  .np-card__media { min-height: 240px; }
  .np-card__body { padding: 30px 24px; }
  .np-unit { grid-template-columns: 1fr auto; }
  .np-unit__meta, .np-unit .badge { display: none; }
  .np-steps { grid-template-columns: 1fr; }
}

/* Outline-Button auf dunklem Grund */
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.8);
}
.btn--outline-white:hover { background: var(--white); color: var(--ink); transform: translateY(-2px); }

/* Status-Tags in Projektkarten */
.np-card .tags { display: flex; flex-wrap: wrap; gap: 10px; }
.np-card .tag {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
}
.np-card .tag--green { background: var(--ink); color: var(--white); }
.np-card .tag--taupe { background: var(--taupe-light); color: var(--white); }
.np-card .tag--pink  { background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); }

/* ==========================================================================
   Rückruf-Karte (Variante 1) – Seite Verkaufen
   ========================================================================== */
.cb-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.18);
  padding: 40px 40px 34px;
}
.cb-label {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-bottom: 10px;
}
.cb-pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 26px; }
.cb-pill {
  border: 1.5px solid var(--grey-line);
  background: var(--white);
  border-radius: 10px;
  padding: 12px 6px 10px;
  text-align: center;
  cursor: pointer;
  font-family: var(--font);
  transition: var(--transition);
}
.cb-pill:hover { border-color: var(--ink); }
.cb-pill:active { transform: scale(.98); }
.cb-pill svg { width: 20px; height: 20px; stroke: var(--grey-text); margin: 0 auto 6px; display: block; }
.cb-pill .t { display: block; font-size: .82rem; font-weight: 700; color: var(--ink); }
.cb-pill .z { display: block; font-size: .72rem; color: var(--grey-text); margin-top: 2px; }
.cb-pill.on { border-color: var(--ink); background: var(--mint); }
.cb-pill.on svg { stroke: var(--ink); }
.cb-field { margin-bottom: 18px; }
.cb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cb-card input[type=text], .cb-card input[type=tel], .cb-card input[type=email], .cb-card select {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  padding: 13px 14px;
  border: 1.5px solid var(--grey-line);
  border-radius: 10px;
  background: var(--white);
  outline: none;
  transition: var(--transition);
  appearance: none;
}
.cb-card select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%235f5f5d' stroke-width='1.8' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.cb-card input:focus, .cb-card select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,17,17,.12); }
.cb-card input.is-error { border-color: #b00020; }
.cb-phone { display: grid; grid-template-columns: 118px 1fr; gap: 10px; }
.cb-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .82rem;
  color: var(--grey-text);
  line-height: 1.55;
  margin: 6px 0 22px;
  cursor: pointer;
}
.cb-consent input { position: absolute; opacity: 0; pointer-events: none; }
.cb-box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid var(--grey-line);
  border-radius: 6px;
  background: var(--white);
  display: grid;
  place-items: center;
  transition: var(--transition);
}
.cb-box svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 2.6; opacity: 0; }
.cb-consent input:checked + .cb-box { background: var(--ink); border-color: var(--ink); }
.cb-consent input:checked + .cb-box svg { opacity: 1; }
.cb-box.is-error { border-color: #b00020; }
.cb-consent a { color: var(--ink); font-weight: 700; border-bottom: 1px solid currentColor; }
.cb-btn {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--green);
  border: none;
  border-radius: 10px;
  padding: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}
.cb-btn:hover { background: var(--green-dark); transform: translateY(-2px); }
.cb-btn svg { width: 18px; height: 18px; stroke: #fff; }
.cb-trust {
  text-align: center;
  font-size: .78rem;
  color: var(--grey-text);
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cb-trust svg { width: 14px; height: 14px; stroke: var(--grey-text); }
.cb-done { display: none; text-align: center; padding: 34px 10px; }
.cb-done.show { display: block; }
.cb-ring {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--mint);
  display: grid;
  place-items: center;
}
.cb-ring svg { width: 28px; height: 28px; stroke: var(--ink); stroke-width: 2.2; }
.cb-done h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.cb-done p { color: var(--grey-text); }
.cb-done strong { color: var(--ink); }

@media (max-width: 560px) {
  .cb-card { padding: 26px 20px; }
  .cb-pills { grid-template-columns: repeat(2, 1fr); }
  .cb-grid2 { grid-template-columns: 1fr; }
}

/* Bauherrenberatung: Zielgruppen-Karten */
.bb-persona {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: var(--transition);
}
.bb-persona:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.bb-persona h3 { font-weight: 800; font-size: 1.15rem; margin-bottom: 12px; }
.bb-persona p { font-size: .95rem; color: var(--grey-text); }

/* ==========================================================================
   Umbau August 2026: Video-Hero, Logo, Kategorien, Kooperationen, Akkordeon
   ========================================================================== */

/* Logo als Bild (monochrom eingefärbt) */
.logo__img { height: 46px; width: auto; filter: brightness(0); transition: var(--transition); }
.header--scrolled .logo__img { height: 40px; }
.logo__fallback { display: inline-flex; flex-direction: column; }

/* Hero-Video */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Nur .hero__content: .hero__sound bringt seine eigene absolute
   Positionierung mit (weiter oben) und wuerde als Flex-Kind des
   Hero sonst nach links aus dem Bild rutschen. */
.hero__content { position: relative; z-index: 2; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__sound.is-on { background: var(--white); color: var(--ink); }

/* Hero auf dem Handy: nicht bildschirmhoch. Das Video ist 16:9 — in einem
   hochformatigen Vollbild-Kasten schneidet object-fit:cover links und rechts
   den Grossteil weg. Ein niedrigerer Hero zeigt mehr vom Film und laesst
   den Anfang der Seite im ersten Blick sichtbar werden.
   svh statt vh: vh zaehlt auf iOS die ausgeblendete Adressleiste mit, der
   Hero wuerde beim Scrollen springen. vh bleibt als Rueckfall davor stehen.
   min-height, nicht height: bei kleinen Geraeten waechst er mit dem Inhalt
   und schneidet nichts ab. */
@media (max-width: 560px) {
  .hero {
    min-height: 68vh;
    min-height: 68svh;
  }
  .hero__content { padding-bottom: 84px; }
  .hero__title { margin-bottom: 28px; }

  /* Mittig unten lag der Knopf auf "Immobilie bewerten" — die Buttons sind
     hier volle Breite und gestapelt. In der Ecke unter ihnen ist Platz. */
  .hero__sound {
    left: auto;
    right: 18px;
    bottom: 20px;
    transform: none;
    width: 48px;
    height: 48px;
    font-size: 1.05rem;
  }
}

/* Kategorie-Karten: monochrom, Hover-Hervorhebung */
.category-cards--mono .category-card__media { filter: grayscale(1); transition: var(--transition); }
.category-cards--mono .category-card { transition: var(--transition); }
.category-cards--mono .category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(0,0,0,.25);
}
.category-cards--mono .category-card:hover .category-card__media { filter: grayscale(0); }
.category-cards--mono .category-card__label { transition: var(--transition); }
.category-cards--mono .category-card:hover .category-card__label { letter-spacing: .06em; }

/* Kooperationen: ein Feld, Logos beim Hover in Originalfarbe */
.section--dark-panel { background: var(--white); }
.partners-box {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 54px 50px;
  box-shadow: var(--shadow);
}
.partners-box__head { margin-bottom: 40px; }
.partners-box__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 20px;
}
.partners-box .partner {
  text-align: center;
  font-weight: 700;
  font-size: 1.02rem;
  color: rgba(255,255,255,.72);
  transition: var(--transition);
  cursor: default;
}
.partners-box .partner small { display: block; font-size: .68rem; font-weight: 500; color: rgba(255,255,255,.45); }
.partners-box .partner:hover { color: var(--pc, #fff); transform: translateY(-2px); }
/* Hinweis: sobald echte Logo-Dateien vorliegen, <img class="partner-logo"> verwenden */
.partners-box img.partner-logo { filter: grayscale(1) brightness(10); transition: var(--transition); max-height: 40px; }
.partners-box img.partner-logo:hover { filter: none; }

/* Akkordeon (Verkaufen) */
.accordion { border: 1px solid var(--grey-line); border-radius: var(--radius); background: var(--white); overflow: hidden; box-shadow: var(--shadow); }
.acc-item { border-bottom: 1px solid var(--grey-line); }
.acc-item:last-child { border-bottom: none; }
.acc-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { background: var(--grey-bg); }
.acc-num {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .95rem;
}
.acc-icon { margin-left: auto; position: relative; width: 16px; height: 16px; }
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 16px;
  height: 2px;
  background: var(--ink);
  transition: var(--transition);
}
.acc-icon::after { transform: rotate(90deg); }
.acc-item[open] .acc-icon::after { transform: rotate(0); }
.acc-body { padding: 0 26px 26px 82px; color: var(--grey-text); }

/* Suchprofil-Box (Filter ohne Treffer) */
/* Heller Kasten statt schwarzem Block: der schwarze Kasten riss mitten in
   einer hellen Seite ein Loch auf. Der gruene Knopf traegt die Betonung. */
.searchprofile {
  margin-top: 40px;
  background: var(--grey-bg);
  border: 1px solid var(--grey-line);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 38px 40px;
}
.searchprofile h3 { font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.searchprofile p { color: var(--grey-text); margin: 10px 0 22px; }
.searchprofile .btn { white-space: nowrap; }
/* Das Suchabo hatte hier ein eigenes Formular; es fuehrt jetzt in den
   gehosteten Funnel, deshalb nur noch Knopf und Hinweis. */
.searchprofile__hint {
  color: var(--grey-text) !important;
  opacity: .75;
  font-size: .85rem;
  margin: 16px 0 0 !important;
}

/* Freitext-Suchfeld im Filter */
.filterbar__grid--search input[type=search] {
  font: inherit;
  font-size: .95rem;
  padding: 14px 16px;
  border: 1px solid var(--grey-line);
  border-radius: 10px;
  background: var(--white);
  outline: none;
  min-width: 0;
}
.filterbar__grid--search input[type=search]:focus { outline: 2px solid var(--green); border-color: transparent; }
.filterbar__grid--search select.is-error, .filterbar select.is-error { outline: 2px solid #b00020; }

/* Buttons */
.btn--outline-dark {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn--outline-dark:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

/* Zitat-Bild monochrom (Übergabe-Foto) */
.team-statement__img--mono { filter: grayscale(1); }

/* Bewertungs-Select im Kartenstil */
.cb-card select.is-error { border-color: #b00020; }

@media (max-width: 900px) {
  .partners-box { padding: 36px 26px; }
  .partners-box__grid { grid-template-columns: repeat(2, 1fr); }
  .acc-body { padding-left: 26px; }
}

/* ==========================================================================
   Formulare: CRM-Anbindung
   ========================================================================== */

/* Honigtopf. Nicht display:none — manche Bots ueberspringen genau das.
   Aus dem Blickfeld geschoben, aus der Tabfolge und aus dem Screenreader
   genommen, damit ihn nur ausfuellt, wer das Formular maschinell liest. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Fehlermeldung ueber dem Absendeknopf. js/crm.js legt sie bei Bedarf an,
   damit kein Formular dafuer eigenes Markup braucht. */
.form__error {
  display: none;
  margin: 18px 0 0;
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 600;
  background: var(--grey-bg, #f5f5f4);
  color: #1c1c1c;
}
.form__error.is-visible { display: block; }
.form__error.is-error {
  background: #fdecec;
  color: #b00020;
}

/* Der Leerzustand traegt jetzt Ueberschrift, Text und einen CTA. */
.empty-state h3 {
  font-weight: 800;
  font-size: 1.25rem;
  color: #1c1c1c;
  margin-bottom: 10px;
}
.empty-state p { font-weight: 400; margin: 0 auto; max-width: 46ch; }
.empty-state .btn { margin-top: 24px; }

/* ==========================================================================
   Schnellschaetzung: Objektart-Kacheln
   Fuehren direkt in den Wizard auf alpeahomes.avendo.ch, Objektart
   vorausgewaehlt (?type=house|apartment|mfh|land).
   ========================================================================== */

.sb-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.sb-tile {
  display: block;
  text-align: center;
  padding: 26px 14px 22px;
  border: 1.5px solid var(--grey-line);
  border-radius: 12px;
  background: var(--white);
  text-decoration: none;
  transition: var(--transition);
}
.sb-tile:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
}
.sb-tile svg {
  width: 34px;
  height: 34px;
  stroke: var(--grey-text);
  margin: 0 auto 14px;
  display: block;
  transition: var(--transition);
}
.sb-tile:hover svg { stroke: var(--ink); }
.sb-tile__t {
  display: block;
  font-weight: 700;
  font-size: .98rem;
  color: var(--ink);
}
.sb-tile__z {
  display: block;
  font-size: .8rem;
  color: var(--grey-text);
  margin-top: 5px;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .sb-tiles { grid-template-columns: repeat(2, 1fr); }
}
