/* ==========================================================================
   WKS Hausverwaltung – Stylesheet
   ========================================================================== */

:root {
  --color-ink: #342621;          /* dunkles Espresso-Braun (aus dem Logo) – Haupttext/Flächen */
  --color-ink-soft: #504440;
  --color-paper: #faf8f4;        /* warmes Off-White – Hintergrund */
  --color-paper-alt: #f1ede4;
  --color-white: #ffffff;
  --color-gold: #7c91ac;         /* Akzent / CTA – Blaugrau aus dem Logo */
  --color-gold-dark: #607186;
  --color-sage: #6b7f66;         /* zweiter Akzent, angelehnt an die Gartenbilder */
  --color-line: #e3ddd0;
  --color-text-muted: #79706c;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 10px;
  --shadow-soft: 0 12px 32px rgba(22, 35, 58, 0.10);
  --shadow-strong: 0 20px 48px rgba(22, 35, 58, 0.22);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--color-ink);
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--color-ink-soft); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 14px;
}

.section {
  padding: 96px 0;
}
.section--alt { background: var(--color-paper-alt); }
.section--ink {
  background: var(--color-ink);
  color: var(--color-paper);
}
.section--ink h2, .section--ink h3 { color: var(--color-white); }
.section--ink p { color: #decbc4; }

.section-head {
  max-width: 640px;
  margin: 0 0 52px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: var(--color-gold);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}
.btn--gold:hover { background: var(--color-gold-dark); }

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,.55);
}
.btn--ghost:hover { background: rgba(255,255,255,.12); }

.btn--ink {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn--ink:hover { background: var(--color-ink); color: var(--color-white); }

.btn--block { width: 100%; justify-content: center; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header.is-scrolled {
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(22,35,58,.08);
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--color-white);
  letter-spacing: .01em;
}
.site-header.is-scrolled .brand { color: var(--color-ink); }
.brand span { color: var(--color-gold); }

.brand__logo {
  display: block;
  height: 32px;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  transition: height .25s ease;
}
.site-header.is-scrolled .brand__logo { height: 28px; }
.footer-brand .brand__logo { height: 34px; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-size: .95rem;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  transition: color .2s ease;
}
.site-header.is-scrolled .main-nav a { color: var(--color-ink-soft); }
.main-nav a:hover { color: var(--color-gold); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-white);
  font-size: .95rem;
}
.site-header.is-scrolled .header-phone { color: var(--color-ink); }

.main-nav__mobile-phone,
.main-nav__mobile-cta { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  margin: 6px 0;
  transition: all .2s ease;
}
.site-header.is-scrolled .nav-toggle span { background: var(--color-ink); }

/* Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 62%;
  transform: scale(1.02);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(52,38,33,.74) 0%, rgba(52,38,33,.60) 40%, rgba(52,38,33,.86) 100%);
}
.hero .container {
  position: relative;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero__content { max-width: 720px; }
.hero .eyebrow { color: #b9c5d5; }
.hero h1 { color: var(--color-white); }
.hero p.lead {
  font-size: 1.18rem;
  color: #f2e6e2;
  max-width: 560px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero__stats {
  position: relative;
  margin-top: 68px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 720px;
  border-top: 1px solid rgba(255,255,255,.22);
  padding-top: 28px;
}
.hero__stats div strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: var(--color-white);
}
.hero__stats div span {
  font-size: .85rem;
  color: #decbc4;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 34px;
  background: rgba(255,255,255,.55);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0;}
  40% { transform: scaleY(1); transform-origin: top; opacity: 1;}
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1;}
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0;}
}

/* Trust bar ------------------------------------------------------------ */
.trustbar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
}
.trustbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 44px;
  justify-content: center;
  padding: 26px 24px;
}
.trustbar .item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--color-ink-soft);
}
.trustbar .item svg { flex: none; color: var(--color-gold); }

/* Leistungen / Cards ----------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--color-paper-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-gold-dark);
  margin-bottom: 22px;
}
.card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.card li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: .93rem;
  color: var(--color-text-muted);
}
.card li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
}

/* Warum wir / split ------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split__media { position: relative; }
.split__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}
.split__media::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 2px solid var(--color-gold);
  border-radius: calc(var(--radius) + 6px);
  z-index: -1;
}

.reasons { list-style: none; margin: 28px 0 0; padding: 0; }
.reasons li {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--color-line);
}
.reasons li:first-child { border-top: none; }
.reasons .num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--color-gold);
  flex: none;
  width: 40px;
}
.reasons h4 { margin: 0 0 4px; font-size: 1.05rem; }
.reasons p { margin: 0; font-size: .94rem; }

/* Gallery ----------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 14px;
}
.gallery a {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  display: block;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery a:hover img { transform: scale(1.07); }
.gallery a.tall { grid-row: span 2; }
.gallery a::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,35,58,0) 55%, rgba(22,35,58,.55) 100%);
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery a:hover::after { opacity: 1; }
.gallery span.cap {
  position: absolute;
  left: 14px; bottom: 12px;
  color: var(--color-white);
  font-size: .82rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: all .3s ease;
}
.gallery a:hover span.cap { opacity: 1; transform: translateY(0); }

/* About / quote ------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: start;
}
.about-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.about-figures div {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 22px;
}
.about-figures strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--color-gold-dark);
}
.about-figures span { font-size: .84rem; color: var(--color-text-muted); }

.mgmt-note {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--color-line);
  font-size: .88rem;
  color: var(--color-text-muted);
}

/* CTA / Kontakt ------------------------------------------------------------ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.contact-copy {
  background: var(--color-ink);
  color: var(--color-white);
  padding: 60px 56px;
}
.contact-copy .eyebrow { color: #b9c5d5; }
.contact-copy h2 { color: var(--color-white); }
.contact-copy p { color: #decbc4; }

.contact-methods {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.contact-methods a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  transition: background .2s ease, border-color .2s ease;
}
.contact-methods a:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
.contact-methods .ic {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(180,134,58,.18);
  color: var(--color-gold);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.contact-methods strong { display: block; font-size: .96rem; color: var(--color-white); }
.contact-methods small { color: #ccb3aa; font-size: .82rem; }

.contact-photo {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}
.contact-photo img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: 62% 22%;
}
.contact-photo__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 28px 22px;
  background: linear-gradient(0deg, rgba(20,14,12,.82) 0%, rgba(20,14,12,.35) 60%, rgba(20,14,12,0) 100%);
  color: var(--color-white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
}
.contact-photo__cap small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .82rem;
  color: #decbc4;
  margin-top: 2px;
}

/* Footer -------------------------------------------------------------------- */
.site-footer {
  background: #241b17;
  color: #ccb3aa;
  padding: 56px 0 28px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .brand { color: var(--color-white); margin-bottom: 10px; }
.footer-brand p { max-width: 320px; font-size: .9rem; color: #ad8f84; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: .92rem;
  color: #ccb3aa;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--color-gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: .82rem;
  color: #a3867c;
}
.footer-bottom a { color: #ad8f84; }
.footer-bottom a:hover { color: var(--color-gold); }

/* FAQ ------------------------------------------------------------------------ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 6px 26px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--color-ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev {
  flex: none;
  color: var(--color-gold-dark);
  transition: transform .25s ease;
}
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-item p {
  margin: -6px 0 20px;
  font-size: .96rem;
  color: var(--color-text-muted);
  max-width: 64ch;
}

/* Legal pages ---------------------------------------------------------------- */
.legal-hero {
  background: var(--color-ink);
  color: var(--color-white);
  padding: 168px 0 64px;
}
.legal-hero h1 { color: var(--color-white); }
.legal-hero p { color: #decbc4; }
.legal-body { padding: 72px 0 100px; }
.legal-body .container { max-width: 820px; }
.legal-body h2 {
  font-size: 1.3rem;
  margin-top: 2.4em;
  padding-top: .2em;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  margin-top: 1.6em;
  color: var(--color-gold-dark);
}
.legal-body p, .legal-body li { color: var(--color-ink-soft); font-size: .98rem; }
.legal-body a { color: var(--color-gold-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal-body ul { padding-left: 1.2em; }
.legal-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 1.6em 0;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-gold-dark);
  margin-bottom: 18px;
}

/* Reveal animation ------------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split__media { order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-photo { min-height: 260px; }
  .contact-photo img { min-height: 260px; object-position: 60% 15%; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery a.tall { grid-row: span 1; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

@media (max-width: 760px) {
  .main-nav, .header-phone { display: none; }
  .header-cta .btn--gold { display: none; }
  .header-cta { gap: 8px; }
  .nav-toggle { display: block; }
  .site-header.nav-open { background: var(--color-ink); padding: 14px 0; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 24px;
  }
  .site-header.nav-open .main-nav a {
    color: var(--color-white);
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .site-header.nav-open .header-cta { display: none; }
  .site-header.nav-open .main-nav__mobile-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-white);
    font-weight: 700;
    padding: 16px 0 4px;
    border-bottom: none;
  }
  .site-header.nav-open .main-nav__mobile-cta {
    display: inline-flex;
    margin-top: 14px;
  }
  .hero__actions .btn { width: 100%; }
  .hero__actions { flex-direction: column; }
  .footer-grid, .footer-bottom { flex-direction: column; }
  .footer-cols { gap: 32px; }
  .contact-copy { padding: 44px 26px; }
  .section { padding: 68px 0; }
}
