/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  color: #221f1f;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  max-width: var(--maxw);   /* prevent full-bleed sections stretching/upscaling on wide screens */
  margin-inline: auto;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h4 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  word-break: break-word;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.values-grid h3 { text-transform: uppercase; letter-spacing: 0.05em; }

.teal       { color: #2eaf8e; }
.text-muted { color: #808285; }

/* ---------- Colors ---------- */
:root {
  --bg:             #ffffff;    /* Main background */
  --bg-dark:        #343A40;    /* Dark charcoal — footer, dark panels, CTA */
  --bg-alt:         #f5f5f5;    /* Light gray — alternate sections */
  --accent:         #2eaf8e;    /* Brand teal — accent, icons, teal panels */
  --accent-hover:   #0c6e59;    /* Deep teal — hover states only */
  --cta:            #221f1f;    /* Primary CTA button */
  --cta-hover:      #3a3737;
  --text:           #221f1f;
  --muted:          #808285;
  --text-dark:      #221f1f;
  --text-dark-muted:#808285;
  --overlay:        rgba(0,0,0,0.55);
  --maxw:           1600px;    
}

/* ---------- Buttons ---------- */
.btn,
.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  border: 2px solid transparent;
  white-space: nowrap;
  width: fit-content;
  min-width: 300px;
  text-align: center;
}

.btn {
  background: var(--cta);
  color: #fff;
  border-color: var(--cta);
}
.btn:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
}

.btn-outline {
  background: transparent;
  color: #221f1f;
  border-color: #221f1f;
}
.btn-outline:hover {
  background: #221f1f;
  color: #fff;
}

/* Teal btn — inside dark containers */
.section-dark .btn,
.split-content.bg-dark .btn,
.service-card .btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.section-dark .btn:hover,
.split-content.bg-dark .btn:hover,
.service-card .btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* White btn-outline — inside dark/teal containers */
.hero .btn-outline,
.hero-inner .btn-outline,
.section-dark .btn-outline,
.split-content.bg-dark .btn-outline,
.split-content.bg-teal .btn-outline,
.service-card .btn-outline {
  color: #fff;
  border-color: #fff;
}
.hero .btn-outline:hover,
.hero-inner .btn-outline:hover,
.section-dark .btn-outline:hover,
.split-content.bg-dark .btn-outline:hover,
.split-content.bg-teal .btn-outline:hover,
.service-card .btn-outline:hover {
  background: #fff;
  color: #221f1f;
}

/* ---------- Utility ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 60px 0;
}

.section-dark {
  background: var(--bg-dark);
  border-top: 3px solid var(--accent);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #ffffff;
}
.section-dark p {
  color: var(--muted);
}

.section-teal {
  background: var(--accent);
}


/* Light alternate sections (#F4F4F4) — text switches to dark */
.section-light {
  background: var(--bg-alt);
}
.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4 {
  color: var(--text-dark);
}
.section-light p,
.section-light .hero-sub,
.section-light .text-muted {
  color: var(--text-dark-muted);
}
.section-light .hero-eyebrow,
.section-light .label,
.section-light .eyebrow {
  color: var(--accent);
}
.section-light .btn-outline {
  border-color: var(--text-dark);
  color: var(--text-dark);
}
.section-light .btn-outline:hover {
  background: var(--text-dark);
  color: var(--bg-alt);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 32px;
  max-width: var(--maxw);   
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  margin-left: auto;
  margin-right: 2rem;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #221f1f;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 32px;
  gap: 28px;
  align-items: flex-end;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  transition: color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  padding-top: 72px; /* offset fixed header */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.8);
}

.hero-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero .hero-bg {
  filter: brightness(0.5);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 55%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 80px 32px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1,
.hero-inner h1 {
  margin-bottom: 24px;
  color: #ffffff;
}

.hero-inner .hero-sub {
  color: rgba(255,255,255,0.75);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 540px;
}

/* Inner page hero (smaller) */
.hero-inner {
  padding-top: 72px;
  background: var(--bg-dark);
  min-height: 420px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
}

.hero-inner .hero-content {
  padding: 80px 32px;
  position: relative;
  z-index: 1;
}

/* ---------- About Block ---------- */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-block .text-col p {
  color: var(--muted);
  margin-bottom: 20px;
}

.about-block .text-col p:last-child { margin-bottom: 0; }

.about-photo {
  width: 100%;
  height: 480px;
  object-fit: cover;
  filter: grayscale(20%);
}

.about-placeholder {
  width: 100%;
  height: 480px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- Split Blocks (Eigentümer / Vermieter / Suchende) ---------- */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  max-height: 900px;
}

.split-img {
  position: relative;
  overflow: hidden;
}

.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


@media (min-width: 901px) {
  .split-img img,
  .bewertung-img img {
    position: absolute;
    inset: 0;
  }
}

.split-img .img-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.split-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
}

.split-content.bg-teal  { background: var(--accent); }
.split-content.bg-dark  { background: var(--bg-dark); }

.split-content.bg-dark h2,
.split-content.bg-teal h2 { color: #ffffff; }

.split-content.bg-white { background: #ffffff; }
.split-content.bg-white h2,
.split-content.bg-white p,
.split-content.bg-white li { color: var(--text); }
.split-content.bg-white .eyebrow { color: var(--accent); }
.split-content.bg-white ul li::before { color: var(--muted); }

.split-content .eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}

.split-content.bg-teal .eyebrow { color: rgba(255,255,255,0.75); }

.split-content h2 {
  margin-bottom: 20px;
}

.split-content p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

.split-content ul {
  margin-bottom: 32px;
}

.split-content ul li {
  color: rgba(255,255,255,0.8);
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
}

.split-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.5);
}

/* ---------- Bewertung Teaser ---------- */
/* Light gray bg (#F4F4F4) — text switches to dark */
.bewertung-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
  background: var(--bg-alt);
  max-height: 900px;
}

.bewertung-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
}

.bewertung-text .label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.bewertung-text h2 {
  color: var(--text-dark);
  margin-bottom: 20px;
}

.bewertung-text p {
  color: var(--text-dark-muted);
  margin-bottom: 32px;
}

.bewertung-img {
  position: relative;
  overflow: hidden;
}

.bewertung-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bewertung-img .img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.bewertung-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- Service Cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.service-card {
  background: var(--bg-dark);
  padding: 48px 36px;
  border-top: 3px solid var(--accent);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}

.service-card .btn {
  margin-top: auto;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card .card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--accent);
}

.service-card .card-head {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* ---------- Team Section ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.team-photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
  filter: grayscale(15%);
}

.team-photo-placeholder {
  width: 100%;
  height: 520px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.team-text .eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.team-text h2 { margin-bottom: 20px; }
.team-text p  { color: var(--muted); margin-bottom: 16px; }

/* ---------- Forms ---------- */
.form-section {
  max-width: 720px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label:not(.checkbox-item):not(.file-upload-label) {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.2);
  color: #221f1f;
  padding: 14px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.form-group input:not([type="checkbox"]):focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select option {
  background: #ffffff;
  color: #221f1f;
}

.form-group select {
  cursor: pointer;
  background-image: url('images/icons/icon-select-arrow.svg');
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

/* Checkboxes */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
}

.checkbox-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  cursor: pointer;
  background-image: url('images/icons/icon-checkbox-unchecked.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 0.1s;
}
.checkbox-item input[type="checkbox"]:checked {
  background-image: url('images/icons/icon-checkbox-checked.svg');
}

/* Form grid */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* File upload */
.file-upload-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #f5f5f5;
  border: 1px dashed rgba(0,0,0,0.2);
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.file-upload-label:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.file-upload-label input[type="file"] {
  display: none;
}

/* Segmented radio group (Aktuelle Nutzung) */
.radio-segmented {
  display: flex;
  gap: 0;
}
.radio-segmented label {
  flex: 1;
  position: relative;
  cursor: pointer;
}
.radio-segmented input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.radio-segmented span {
  display: block;
  padding: 13px 12px;
  border: 1px solid rgba(0,0,0,0.2);
  margin-right: -1px;
  text-align: center;
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.radio-segmented label:hover span {
  border-color: var(--accent);
  color: var(--accent);
}
.radio-segmented input[type="radio"]:checked ~ span {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  position: relative;
  z-index: 1;
}
@media (max-width: 640px) {
  .radio-segmented { flex-direction: column; }
  .radio-segmented span { margin-right: 0; margin-bottom: -1px; text-align: left; }
}

/* Form messages */
.form-message {
  display: none;
  padding: 16px 20px;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}
.form-message.success {
  background: rgba(46,175,142,0.12);
  border-left: 3px solid var(--accent);
  color: var(--accent);
}
.form-message.error {
  background: rgba(200,50,50,0.15);
  border-left: 3px solid #c83232;
  color: #e06060;
}

/* ---------- Contact Layout ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 24px;
  color: var(--text);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--muted);
}

.contact-detail svg,
.contact-detail img {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ---------- Legal Pages ---------- */
.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--accent);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  color: var(--muted);
  margin-bottom: 14px;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #221f1f;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
}

.footer-logo p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col .footer-col-title {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 20px;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.2;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-contact p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.footer-contact a { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover {
  border-color: var(--accent);
}

.footer-social svg,
.footer-social img {
  width: 16px;
  height: 16px;
  transition: opacity 0.2s;
}

.footer-social a:hover img {
  opacity: 0.65;
}

/* ---------- Page body offset for fixed header ---------- */
main { padding-top: 72px; }

/* For pages that have hero directly after header, no extra padding needed */
main.no-offset { padding-top: 0; }

/* ---------- Values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }

  .about-block,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split-block,
  .bewertung-teaser {
    grid-template-columns: 1fr;
    max-height: none;
  }


  .home .split-block .split-content { order: -1; }
  .home .split-block--img-first .split-content { order: 0; }

  .home .split-img img,
  .home .bewertung-img img { display: block; }

  .split-block .split-img { min-height: 280px; }
  .split-content { padding: 44px 32px; }
  .bewertung-text { padding: 44px 32px; }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .values-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .section { padding: 40px 0; }
  .hero-content { padding: 60px 20px; }
  .city-banner { height: 260px; }
  .header-inner { padding: 0 20px; }
  .split-content { padding: 36px 20px; }
  .bewertung-text { padding: 36px 20px; }
  .container { padding: 0 20px; }
}
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner p {
  color: var(--text);
  font-size: 0.88rem;
  margin: 0;
}
.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-btn-accept,
.cookie-btn-reject {
  padding: 10px 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cookie-btn-accept {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.cookie-btn-accept:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.cookie-btn-reject {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(0,0,0,0.2);
}
.cookie-btn-reject:hover {
  color: #221f1f;
  border-color: rgba(0,0,0,0.4);
}
#backToTop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
}
#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTop:hover {
  background: var(--accent-hover);
}
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.map-wrapper {
  width: 100%;
  height: 400px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  filter: grayscale(30%) contrast(1.05);
}
#floatingPhone {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0 20px 0 0;
  height: 44px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, padding 0.3s;
  overflow: hidden;
  white-space: nowrap;
  max-width: 44px;
}
#floatingPhone:hover {
  background: var(--accent-hover);
  max-width: 240px;
  padding: 0 20px;
}
#floatingPhone .fp-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#floatingPhone .fp-icon img {
  filter: brightness(0) invert(1);
}
#floatingPhone span {
  overflow: hidden;
}
@media (max-width: 640px) {
  .map-wrapper { height: 260px; }
  #floatingPhone { max-width: 44px; padding: 0; }
  #floatingPhone:hover { max-width: 44px; padding: 0; }
}

/* ---------- Heading semantics decoupling (SEO) ---------- */
/* Real <h1> rendered as the small keyword overline — pairs with .hero-eyebrow */
h1.h1-reset {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--accent);
  margin-bottom: 20px;
}

/* Visual-only display headline: gives any element the h1 look (no heading semantics) */
.display-h1 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  word-break: break-word;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 24px;
}
.hero .display-h1,
.hero-inner .display-h1 { color: #ffffff; }

/* Visual-only h2 look for non-heading elements */
.display-h2 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  word-break: break-word;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

/* ---------- Testimonials (Kundenstimmen) ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.testimonial-card {
  background: #4a5157;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}
.testimonial-card .quote-mark {
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}
.testimonial-card blockquote {
  color: rgba(255,255,255,0.85);
  font-size: 0.98rem;
  margin: 0 0 20px;
}
.testimonial-card cite {
  margin-top: auto;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--accent);
}

/* ---------- Reference cards + mini-gallery (Referenzen) ---------- */
.reference-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.reference-card {
  background: var(--bg);
  border-top: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
}
.ref-gallery {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e8e8;
}
.ref-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s;
}
.ref-gallery img.active { opacity: 1; }
.ref-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.45);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}
.ref-arrow:hover { background: var(--accent); }
.ref-arrow.prev { left: 0; }
.ref-arrow.next { right: 0; }
.ref-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.ref-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: none;
  cursor: pointer;
  padding: 0;
}
.ref-dot.active { background: var(--accent); }
.ref-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ref-body .eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.ref-body h3 { margin-bottom: 12px; }
.ref-body p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}
.ref-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.ref-meta span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(46,175,142,0.12);
  color: var(--accent-hover);
  padding: 4px 10px;
}

/* ---------- Check list (Immobilienankauf) ---------- */
.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}
.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--text);
  font-size: 0.98rem;
}
.section-dark .check-list li { color: rgba(255,255,255,0.85); }
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  background: url('images/icons/icon-checkbox-checked.svg') center / contain no-repeat;
}

@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: 1fr; }
  .reference-grid { grid-template-columns: 1fr; }
}
