/* ==========================================================================
   Estate Production Studio – Stylesheet
   Nachbau der Framer-Seite. Farben, Schriften und Abstände 1:1 übernommen.
   ========================================================================== */

/* ---------- Schriften ---------- */
/* Inter: lokal gehostet (DSGVO-freundlich, keine Anfrage an Google). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}
/* Clash Display (Fontshare, frei für kommerzielle Nutzung), lokal gehostet. */
@font-face {
  font-family: "Clash Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/clash-display-500.woff2") format("woff2");
}
@font-face {
  font-family: "Clash Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/clash-display-600.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --sand: #f2f1ee;
  --gray: #6e6e6e;
  --muted: rgba(255, 255, 255, 0.64);
  --line-dark: rgba(255, 255, 255, 0.1);
  --line-light: rgba(10, 10, 10, 0.1);

  --font-display: "Clash Display", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: 40px;
  --section-y: 120px;
  --radius-s: 4px;
  --radius-m: 6px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section-y) 0; scroll-margin-top: 0; }
.section--sand { background: var(--sand); color: var(--black); }
.section--white { background: var(--white); color: var(--black); }

/* ---------- Typografie ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--sand .eyebrow,
.section--white .eyebrow { color: var(--gray); }

.h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.03vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(21px, 1.67vw, 24px);
  line-height: 1.2;
}
.lead {
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.section--sand .lead,
.section--white .lead { color: var(--gray); }
.small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.section--sand .small,
.section--white .small { color: var(--gray); }

.section-head {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 20px;
  justify-items: center;
}
.section-head .lead { max-width: 600px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--black);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  border: 0;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.btn:hover { opacity: .88; }
.btn:active { transform: translateY(1px); }
.btn--small { padding: 10px 14px; }
.btn--dark { background: var(--black); color: var(--white); }
.btn--block { width: 100%; justify-content: center; padding: 16px 24px; }

/* ---------- Navigation ---------- */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 91px;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: auto; }
.brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.nav__links a { transition: color .2s ease; }
.nav__links a:hover { color: var(--white); }

.nav--solid { position: relative; background: var(--black); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__media,
.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media { z-index: -2; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(10,10,10,.7) 0%,
    rgba(10,10,10,.3) 40%,
    rgba(10,10,10,.55) 75%,
    rgb(10,10,10) 100%);
}
.hero__content {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 24px;
  max-width: 992px;
  padding: 140px var(--gutter) 120px;
}
.hero__content .lead { max-width: 520px; }
.hero__content .btn { margin-top: 8px; }
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ---------- Mehrwert ---------- */
.features {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.feature {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.feature svg { width: 20px; height: 20px; color: var(--white); margin-bottom: 4px; }

.services {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service {
  position: relative;
  height: 480px;
  border-radius: var(--radius-m);
  overflow: hidden;
  isolation: isolate;
}
.service img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.service:hover img { transform: scale(1.04); }
.service::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10,10,10,0) 45%, rgba(10,10,10,.85) 100%);
}
.service__text {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 6px;
}

/* ---------- Ablauf ---------- */
.steps {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 28px;
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 300px;
}
.step__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.03vw, 58px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: rgba(10, 10, 10, 0.14);
  margin-bottom: auto;
  padding-bottom: 48px;
}

/* ---------- Bauträger ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split__media {
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 564 / 600;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body { display: grid; gap: 24px; align-content: start; }
.checklist { border-top: 1px solid var(--line-dark); }
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 16px;
  line-height: 1.6;
}
.checklist svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--muted); }
.split__body .btn { justify-self: start; margin-top: 8px; }

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact__intro { display: grid; gap: 24px; }
.contact__intro .h2 { max-width: 532px; }
.contact__list { border-top: 1px solid var(--line-light); margin-top: 8px; }
.contact__list li a,
.contact__list li span.item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
}
.contact__list svg { width: 18px; height: 18px; color: var(--gray); flex: none; }

.form {
  background: var(--sand);
  border-radius: var(--radius-m);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; line-height: 1.5; color: var(--gray); }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  padding: 14px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--black);
  outline: none;
  transition: border-color .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: #a3a3a3; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: rgba(10,10,10,.35); }
.field select {
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field select:invalid { color: var(--gray); }
.field textarea { min-height: 140px; resize: vertical; }
.field[hidden] { display: none; }
.form .btn { grid-column: 1 / -1; margin-top: 4px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status {
  grid-column: 1 / -1;
  font-size: 14px;
  line-height: 1.5;
  min-height: 0;
}
.form__status.is-ok { color: #1f7a3d; }
.form__status.is-error { color: #b42318; }

/* ---------- Footer ---------- */
.footer { background: var(--black); padding-top: 96px; overflow: hidden; }
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}
.footer__cta { display: grid; gap: 24px; justify-items: start; }
.footer__cta .h2 { max-width: 560px; }
.footer__links {
  display: grid;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  min-width: 160px;
}
.footer__links a:hover,
.footer__bottom a:hover { color: var(--white); }
.footer__word {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 72px;
  overflow: visible;
  user-select: none;
}
.footer__word text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 152px;
  letter-spacing: -0.02em;
  fill: rgba(255, 255, 255, 0.08);
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 32px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}
.footer__bottom .left { display: flex; align-items: center; gap: 16px; }
.footer__bottom .left img { width: 36px; height: auto; }
.footer__bottom .right { display: flex; gap: 24px; }

/* ---------- Rechtliches (Impressum / Datenschutz) ---------- */
.legal { background: var(--white); color: var(--black); padding: 96px 0 120px; }
.legal__inner { max-width: 760px; }
.legal .eyebrow { color: var(--gray); }
.legal h1 { margin: 16px 0 12px; }
.legal h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  margin: 48px 0 12px;
}
.legal p { color: #3d3d3d; font-size: 16px; line-height: 1.7; }
.legal p + p { margin-top: 10px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal .intro { color: var(--gray); }

/* ---------- Scroll-Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Custom Cursor (nur Maus, wie auf der Originalseite) ---------- */
#ep-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  pointer-events: none;
  z-index: 2147483646;
  mix-blend-mode: difference;
  will-change: transform;
  opacity: 0;
  transition: opacity .2s;
  display: none;
}
#ep-cursor.on { opacity: 1; }
#ep-cursor i {
  position: absolute;
  left: 50%;
  top: 50%;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .15s ease, height .15s ease, opacity .2s ease;
}
#ep-cursor .h { width: 28px; height: 2.5px; }
#ep-cursor .v { width: 2.5px; height: 28px; }
#ep-cursor.p .h { width: 18px; }
#ep-cursor.p .v { height: 18px; }
@media (hover: hover) and (pointer: fine) {
  #ep-cursor { display: block; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .contact { gap: 48px; }
}
@media (max-width: 809px) {
  :root { --gutter: 20px; --section-y: 88px; }
  .split, .contact { grid-template-columns: 1fr; }
  .split__media { aspect-ratio: 4 / 3; }
  .form { grid-template-columns: 1fr; padding: 24px; }
  .services .service { height: 400px; }
  .footer__top { flex-direction: column; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .features, .services, .steps { grid-template-columns: 1fr; }
  .brand span { display: none; }
  .step { min-height: 0; }
  .step__num { padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
}
