/* ==========================================================================
   FSG Immobilienservice GmbH — Designsystem
   Apple-Klarheit × Engel & Völkers-Seriosität
   ========================================================================== */

:root {
  /* Farben */
  --fsg-green: #86bc25;
  --fsg-green-dark: #6fa01d;
  --fsg-green-soft: #eef6e1;
  --anthracite: #1d2126;
  --anthracite-80: #2b3138;
  --white: #ffffff;
  --grey-50: #f7f9f5;
  --grey-100: #f4f6f3;
  --grey-200: #e6e9e4;
  --grey-400: #9aa1a8;
  --grey-500: #6b7280;
  --grey-700: #3c424a;

  /* Typografie */
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-eyebrow: .8rem;
  --fs-body: 1.05rem;
  --fs-lead: 1.25rem;
  --fs-h3: 1.4rem;
  --fs-h2: clamp(1.9rem, 4vw, 2.9rem);
  --fs-h1: clamp(2.4rem, 6vw, 4.4rem);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(1.2rem, 4vw, 2.5rem);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 12px rgba(29,33,38,.06);
  --shadow-md: 0 14px 40px rgba(29,33,38,.10);
  --shadow-lg: 0 30px 70px rgba(29,33,38,.16);
  --trans: .35s cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--anthracite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.01em; }

/* Container */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--grey { background: var(--grey-100); }
.section--dark { background: var(--anthracite); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fsg-green-dark); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--fsg-green); }
.section--dark .eyebrow { color: var(--fsg-green); }

.lead { font-size: var(--fs-lead); color: var(--grey-500); max-width: 60ch; }
.section--dark .lead { color: var(--grey-200); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .95rem 1.8rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: var(--trans); white-space: nowrap;
}
.btn--primary { background: var(--fsg-green); color: var(--white); box-shadow: 0 8px 24px rgba(134,188,37,.35); }
.btn--primary:hover { background: var(--fsg-green-dark); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(134,188,37,.45); }
.btn--ghost { border-color: var(--grey-200); color: var(--anthracite); }
.btn--ghost:hover { border-color: var(--fsg-green); color: var(--fsg-green-dark); }
.btn--light { background: var(--white); color: var(--anthracite); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--grey-200);
  transition: var(--trans);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; margin-right: 2rem; }
.nav-links a { white-space: nowrap; }
.brand .mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--fsg-green);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem;
}
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a { font-size: .96rem; font-weight: 500; color: var(--grey-700); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fsg-green-dark); }
.nav-cta { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--anthracite); margin: 5px auto; transition: var(--trans); }

/* ===== Hero ===== */
.hero { position: relative; min-height: clamp(560px, 86vh, 820px); display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero__video, .hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(15,18,21,.92) 0%, rgba(15,18,21,.66) 48%, rgba(15,18,21,.28) 100%); }
.hero__inner { max-width: 680px; padding-block: 4rem; }
.hero h1 { color: #fff; margin-bottom: 1.3rem; }
.hero__slogan { font-style: italic; font-size: var(--fs-lead); color: var(--fsg-green); margin-bottom: 1.6rem; font-family: var(--font-display); font-weight: 500; }
.hero p.lead { color: rgba(255,255,255,.88); margin-bottom: 2rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 2.4rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero__stat b { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: #fff; }
.hero__stat span { font-size: .85rem; color: rgba(255,255,255,.7); }

/* ===== Trust-Laufband ===== */
.marquee { overflow: hidden; padding-block: 2rem; border-block: 1px solid var(--grey-200); }
.marquee__track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 32s linear infinite; align-items: center; }
.marquee__track span { font-family: var(--font-display); font-weight: 700; color: var(--grey-400); font-size: 1.1rem; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Grid-Karten ===== */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius);
  padding: 1.8rem; transition: var(--trans);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--fsg-green-soft); display: grid; place-items: center; margin-bottom: 1.1rem; color: var(--fsg-green-dark); }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--grey-500); font-size: .98rem; }
.card a.more { display: inline-block; margin-top: 1rem; color: var(--fsg-green-dark); font-weight: 600; font-size: .92rem; }
.card a.more::after { content: " →"; transition: var(--trans); }
.card:hover a.more::after { margin-left: 4px; }

/* ===== Vorteile ===== */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature .ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--fsg-green); color: #fff; display: grid; place-items: center; font-weight: 700; }
.feature h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.feature p { color: var(--grey-500); font-size: .96rem; }

/* ===== Vorher-Nachher Slider ===== */
.ba-slider { position: relative; max-width: 820px; margin-inline: auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); user-select: none; aspect-ratio: 16/10; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slider .after { clip-path: inset(0 0 0 50%); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; cursor: ew-resize; z-index: 3; }
.ba-handle::after { content: "⇄"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; background: var(--fsg-green); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; box-shadow: var(--shadow-md); }
.ba-label { position: absolute; bottom: 14px; padding: .35rem .85rem; background: rgba(15,18,21,.7); color: #fff; font-size: .8rem; font-weight: 600; border-radius: 999px; z-index: 4; }
.ba-label.l { left: 14px; } .ba-label.r { right: 14px; }

/* ===== Counter / KPI ===== */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; text-align: center; }
.kpi b { font-family: var(--font-display); font-size: clamp(2.2rem,5vw,3.4rem); font-weight: 800; color: var(--fsg-green); display: block; }
.kpi span { color: var(--grey-500); font-size: .95rem; }
.section--dark .kpi span { color: var(--grey-200); }

/* ===== Timeline (Objektstatus — Signature) ===== */
.timeline { position: relative; max-width: 760px; margin-inline: auto; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--grey-200); }
.tl-item { position: relative; padding-bottom: 2rem; }
.tl-item::before { content: ""; position: absolute; left: -2rem; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--fsg-green); }
.tl-item.done::before { background: var(--fsg-green); }
.tl-item h3 { font-size: 1.1rem; }
.tl-item span { font-size: .85rem; color: var(--fsg-green-dark); font-weight: 600; }
.tl-item p { color: var(--grey-500); font-size: .95rem; }

/* ===== Formular ===== */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(1.6rem, 4vw, 2.6rem); }
.form-card.on-dark { color: var(--anthracite); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--grey-700); }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--grey-200); border-radius: var(--radius-sm);
  font: inherit; font-size: .98rem; color: var(--anthracite); background: var(--grey-50); transition: var(--trans);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--fsg-green); background: #fff; box-shadow: 0 0 0 4px rgba(134,188,37,.15); }
.field textarea { resize: vertical; min-height: 110px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .8rem; color: var(--grey-400); margin-top: .8rem; }
.form-success { background: var(--fsg-green-soft); border: 1px solid var(--fsg-green); color: var(--fsg-green-dark); padding: 1rem; border-radius: var(--radius-sm); font-weight: 600; }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--grey-200); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 1.3rem 0; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--anthracite); cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-q .plus { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--fsg-green-soft); color: var(--fsg-green-dark); display: grid; place-items: center; font-weight: 700; transition: var(--trans); }
.faq-item[open] .plus { background: var(--fsg-green); color: #fff; transform: rotate(45deg); }
.faq-a { color: var(--grey-500); padding-bottom: 1.3rem; font-size: .98rem; }

/* ===== Section-Head ===== */
.section-head { max-width: 60ch; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ===== CTA-Band ===== */
.cta-band { background: linear-gradient(120deg, var(--anthracite), var(--anthracite-80)); color: #fff; border-radius: var(--radius); padding: clamp(2rem,5vw,3.4rem); text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: .8rem; }
.cta-band p { color: var(--grey-200); margin-bottom: 1.8rem; }

/* ===== Footer ===== */
.site-footer { background: var(--anthracite); color: var(--grey-200); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--grey-200); font-size: .92rem; transition: color .2s; }
.site-footer a:hover { color: var(--fsg-green); }
.footer-brand p { font-size: .92rem; color: var(--grey-400); margin-top: 1rem; max-width: 32ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: var(--grey-400); }

/* ===== Rechner ===== */
.calc { background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: clamp(1.6rem,4vw,2.6rem); box-shadow: var(--shadow-sm); }
.calc-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--grey-200); }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 2px solid var(--anthracite); }
.calc-total b { font-family: var(--font-display); font-size: 2rem; color: var(--fsg-green-dark); }
input[type="range"] { width: 100%; accent-color: var(--fsg-green); }

/* ===== Scroll-Reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Breadcrumb ===== */
.crumbs { font-size: .85rem; color: var(--grey-400); padding-block: 1rem; }
.crumbs a:hover { color: var(--fsg-green-dark); }

/* ===== Cookie-Banner ===== */
.cookie { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 460px; background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.5rem; z-index: 9999; display: none; }
.cookie.show { display: block; }
.cookie h4 { font-size: 1.05rem; margin-bottom: .5rem; }
.cookie p { font-size: .88rem; color: var(--grey-500); margin-bottom: 1rem; }
.cookie .row { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie .btn { padding: .65rem 1.2rem; font-size: .9rem; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column; padding: 1.5rem var(--gutter); gap: 1rem; border-bottom: 1px solid var(--grey-200); transform: translateY(-130%); transition: var(--trans); align-items: flex-start; box-shadow: var(--shadow-md); }
  .nav-links.open { transform: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn:not(.nav-toggle) { display: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.4rem; }
}

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

/* Fokus-Sichtbarkeit */
:focus-visible { outline: 3px solid var(--fsg-green); outline-offset: 2px; border-radius: 4px; }
