/* AVERO Immobilien – Website V6 */
:root {
  --bg: #ffffff;
  --bg-soft: #faf8f5;
  --paper: #ffffff;
  --paper-dark: #141414;
  --text: #171717;
  --muted: #66625c;
  --line: #e8e2d9;
  --gold: #ad8654;
  --gold-dark: #8c6940;
  --gold-soft: #f3ede4;
  --shadow: 0 24px 70px rgba(24, 20, 14, .07);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --container: min(1220px, calc(100% - 48px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.container {
  width: var(--container);
  margin-inline: auto;
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 5000;
  pointer-events: none;
}
.progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--gold);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 12px 40px rgba(0,0,0,.05);
}

.nav {
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  width: 210px;
  display: inline-flex;
}
.brand img { width: 100%; height: auto; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 600;
}
.desktop-nav a {
  position: relative;
  padding: 8px 0;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width .25s ease;
}
.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

.desktop-cta { justify-self: end; }

.menu-toggle,
.mobile-menu { display: none; }

.button {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }

.button-dark {
  background: var(--paper-dark);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.button-light {
  background: #fff;
  color: var(--text);
  border-color: #d8d2c8;
}
.button-gold {
  background: linear-gradient(135deg, #c39f6b, #967042);
  color: #fff;
  box-shadow: 0 12px 28px rgba(134,101,65,.16);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-dark);
  letter-spacing: .15em;
  font-size: 11px;
  font-weight: 800;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 5.2vw, 80px);
  line-height: 1.02;
  letter-spacing: -.05em;
  font-weight: 600;
}
h1 span {
  display: block;
  color: var(--gold);
}
h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 600;
}
h3 {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.16;
  letter-spacing: -.02em;
  font-weight: 600;
}

.hero {
  padding: 72px 0 0;
}
.hero-grid {
  min-height: 620px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.hero-text {
  max-width: 610px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-points {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-points span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: #57534d;
  font-size: 12px;
  font-weight: 700;
}
.hero-media {
  position: relative;
  height: 610px;
  overflow: hidden;
  border-radius: 30px 0 0 30px;
  box-shadow: var(--shadow);
  background: #ddd;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-card {
  position: absolute;
  left: 28px;
  bottom: 28px;
  max-width: 330px;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.hero-card strong,
.hero-card span { display: block; }
.hero-card strong { margin-bottom: 6px; font-size: 16px; }
.hero-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.trust-grid {
  position: relative;
  z-index: 3;
  margin-top: -28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 20px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.trust-grid article {
  padding: 32px 30px;
  border-right: 1px solid var(--line);
}
.trust-grid article:last-child { border-right: 0; }

.icon-wrap {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  color: var(--gold-dark);
}
.icon-wrap svg,
.service-icon svg,
.mini-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trust-grid h3 {
  margin-bottom: 10px;
  font-size: 16px;
}
.trust-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.section {
  padding: 108px 0;
}
.section.alt {
  background: var(--bg-soft);
}

.about-grid,
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 76px;
  align-items: center;
}

.about-media,
.image-panel,
.banner-image {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: #ddd;
}
.about-media,
.image-panel {
  height: 560px;
}
.banner-image {
  height: 380px;
}
.about-media img,
.image-panel img,
.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy p:not(.eyebrow),
.content-copy p:not(.eyebrow),
.section-head > p,
.story-card p,
.preview-card p,
.service-card p,
.process-copy p:not(.eyebrow),
.steps p,
.contact-intro p:not(.eyebrow),
.cta-box p {
  color: var(--muted);
  line-height: 1.85;
}

.about-features,
.badge-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.about-features div,
.badge-grid div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.about-features strong,
.about-features span,
.badge-grid strong,
.badge-grid span {
  display: block;
}
.about-features strong,
.badge-grid strong {
  margin-bottom: 8px;
  font-size: 13px;
}
.about-features span,
.badge-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.section-head {
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: 60px;
  align-items: end;
}
.section-head h2 { margin-bottom: 0; }

.service-grid,
.preview-grid,
.story-grid,
.team-grid,
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.team-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card,
.preview-card,
.story-card,
.team-card,
.problem-card {
  padding: 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover,
.preview-card:hover,
.story-card:hover,
.team-card:hover,
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0,0,0,.06);
  border-color: #d7cab8;
}
.service-card.featured,
.preview-card.featured,
.problem-card.featured {
  background: linear-gradient(150deg, rgba(173,134,84,.16), rgba(0,0,0,0) 32%), #161616;
  color: #fff;
  border-color: #161616;
}
.service-card.consultation,
.preview-card.consultation {
  background: linear-gradient(145deg, rgba(173,134,84,.10), rgba(255,255,255,0) 35%), var(--gold-soft);
}
.problem-card {
  background: #fff;
}
.problem-card h3 {
  font-size: 20px;
}
.problem-card .problem-label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.featured .problem-label {
  background: rgba(255,255,255,.12);
  color: #dfc49c;
}

.service-top,
.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.service-number {
  color: #aaa297;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
}
.service-icon,
.mini-icon {
  width: 42px;
  height: 42px;
  color: var(--gold-dark);
}
.featured .service-icon,
.featured .mini-icon { color: #c7a273; }

.service-card p,
.preview-card p,
.story-card p,
.problem-card p {
  font-size: 14px;
}
.featured p,
.featured li { color: #c9c9c9; }

.service-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.service-card li {
  position: relative;
  padding-left: 18px;
  color: #66615a;
  font-size: 12px;
  line-height: 1.7;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

.story-card h3,
.preview-card h3 {
  font-size: 21px;
}

.team-card {
  text-align: left;
  background: var(--bg-soft);
}
.team-avatar {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--gold-dark);
  box-shadow: inset 0 0 0 1px var(--line);
}
.team-avatar svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.team-role {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.team-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}
.team-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.process-grid {
  display: grid;
  grid-template-columns: .84fr 1.16fr;
  gap: 88px;
}
.process-copy {
  position: sticky;
  top: 128px;
  align-self: start;
}
.steps { display: grid; }
.steps article {
  min-height: 145px;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 22px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.steps article:first-child {
  border-top: 1px solid var(--line);
}
.steps > article > span {
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}
.steps h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.cta-section { padding-top: 36px; }
.cta-box {
  padding: 34px 36px;
  display: grid;
  grid-template-columns: 1fr .8fr auto;
  gap: 30px;
  align-items: center;
  border-radius: 18px;
  background: var(--gold-soft);
}
.cta-box h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 42px);
}

.contact {
  padding-bottom: 30px;
}
.contact-grid {
  padding: 54px;
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 70px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.contact-direct {
  margin-top: 30px;
  display: grid;
  gap: 8px;
  font-size: 13px;
}
.contact-direct a { font-weight: 700; }
.contact-direct span { color: var(--muted); }

.contact-form { display: grid; gap: 18px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
label { display: grid; gap: 8px; }
label > span {
  font-size: 12px;
  font-weight: 700;
  color: #4d4944;
}
input, textarea, select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #ddd6cb;
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(173,134,84,.10);
}
textarea { resize: vertical; }

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
}
.checkbox input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.checkbox span {
  font-weight: 500;
  line-height: 1.5;
}
.contact-form .button { justify-self: start; }

.footer {
  margin-top: 90px;
  padding: 56px 0 26px;
  background: #111;
  color: #fff;
}
.footer-top {
  padding-bottom: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid #2d2d2d;
}
.footer-brand { width: 190px; }
.footer-nav {
  display: flex;
  gap: 28px;
  color: #cbcbcb;
  font-size: 12px;
}
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: #929292;
  font-size: 11px;
}
.footer-bottom div { display: flex; gap: 20px; }

.text-link {
  display: inline-flex;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1020px) {
  .desktop-nav, .desktop-cta { display: none; }

  .nav { grid-template-columns: 1fr auto; }

  .menu-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .menu-toggle span {
    width: 22px;
    height: 1.5px;
    background: #111;
    transition: transform .2s ease;
  }
  .menu-toggle.active span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }
  .menu-toggle.active span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    inset: 86px 0 0;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    background: rgba(255,255,255,.98);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform .2s ease, opacity .2s ease, visibility .2s ease;
  }
  .mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .mobile-menu a:not(.button) { font-size: 22px; }

  .hero-grid,
  .about-grid,
  .content-split,
  .process-grid,
  .contact-grid,
  .section-head,
  .cta-box,
  .service-grid,
  .preview-grid,
  .story-grid,
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    border-radius: 24px;
    height: 520px;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-grid article:nth-child(2) { border-right: 0; }
  .trust-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .process-copy { position: static; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1220px); }

  .nav { min-height: 74px; }
  .brand { width: 175px; }
  .mobile-menu { inset: 74px 0 0; }

  .hero { padding-top: 46px; }
  h1 { font-size: 42px; }
  h2 { font-size: 34px; }

  .hero-grid {
    gap: 30px;
    min-height: auto;
  }
  .hero-media {
    height: 360px;
    border-radius: 22px;
  }
  .hero-card {
    position: static;
    max-width: none;
    margin-top: 14px;
  }

  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .button {
    width: 100%;
  }

  .hero-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hero-points span {
    width: 100%;
    text-align: center;
  }

  .trust-grid {
    margin-top: 24px;
    grid-template-columns: 1fr;
  }
  .trust-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .trust-grid article:last-child { border-bottom: 0; }

  .section { padding: 76px 0; }

  .about-media,
  .image-panel,
  .banner-image {
    height: 320px;
  }

  .about-features,
  .badge-grid,
  .team-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .preview-card,
  .story-card,
  .team-card,
  .problem-card {
    padding: 28px;
  }

  .process-grid { gap: 40px; }
  .steps article { grid-template-columns: 46px 1fr; }

  .cta-box { padding: 28px 24px; }

  .contact-grid {
    padding: 28px 22px;
    gap: 38px;
    border-radius: 20px;
  }

  .footer {
    margin-top: 76px;
  }
  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
