/* ============================================================
   Negash Immobilien AG — Variante 1 · Classic
   Refined evolution of the original black & white aesthetic:
   tighter rhythm, refined micro-interactions, subtle hairlines.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --black: #0a0a0a;
  --ink: #111111;
  --charcoal: #1c1c1c;
  --grey-700: #4a4a4a;
  --grey-500: #767676;
  --grey-300: #c9c6c0;
  --line: #e8e5df;
  --line-strong: #d8d4cc;
  --off-white: #fafaf8;
  --white: #ffffff;
  --accent: #9a8c78;       /* warm neutral / taupe */
  --accent-soft: #b9ad9a;
  --text-muted: #5c5c5c;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  --container: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 88px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--ink);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.06;
  margin: 0;
  letter-spacing: 0.005em;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ---------- Shared section pieces ---------- */
.section { padding-block: clamp(4.5rem, 9.5vw, var(--space-7)); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  letter-spacing: -0.012em;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, var(--space-5));
}

.section-intro {
  margin-top: var(--space-3);
  color: var(--grey-700);
  font-size: 1.1rem;
}

.lead {
  font-size: 1.22rem;
  color: var(--grey-700);
  margin-bottom: var(--space-3);
  line-height: 1.68;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1.1rem 2.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease),
    border-color 0.45s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: transparent; color: var(--white); border-color: var(--white); transform: translateY(-3px); }

.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); transform: translateY(-3px); }

.btn--dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--dark:hover { background: transparent; color: var(--ink); transform: translateY(-3px); box-shadow: 0 16px 36px -22px rgba(10,10,10,0.5); }

/* ============================================================
   Header / Navbar
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease),
    border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand-logo { height: 34px; width: auto; transition: opacity 0.4s var(--ease); }
.brand-logo--light { display: block; }
.brand-logo--dark { display: none; position: absolute; }

.site-header.scrolled {
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom-color: var(--line);
}
.site-header.scrolled .brand-logo--light { display: none; }
.site-header.scrolled .brand-logo--dark { display: block; position: static; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 3vw, 3.1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  padding-block: 0.4rem;
  transition: color 0.35s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.45s var(--ease);
}
.nav-link:hover::after { width: 100%; }

.site-header.scrolled .nav-link { color: var(--grey-700); }
.site-header.scrolled .nav-link:hover { color: var(--ink); }

.nav-link--cta {
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius);
}
.nav-link--cta::after { display: none; }
.nav-link--cta:hover { background: var(--white); color: var(--ink) !important; }
.site-header.scrolled .nav-link--cta { border-color: var(--ink); color: var(--ink); }
.site-header.scrolled .nav-link--cta:hover { background: var(--ink); color: var(--white) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 1.5px;
  margin-inline: auto;
  background: var(--white);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), background-color 0.4s var(--ease);
}
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=2000&q=80");
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: heroZoom 18s ease-out forwards;
  will-change: transform;
}
@keyframes heroZoom { to { transform: scale(1.05); } }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.32) 42%, rgba(10,10,10,0.72) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-top: var(--header-h);
}
.hero-eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-3);
}
.hero-title {
  font-size: clamp(3rem, 9vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.022em;
  margin-bottom: var(--space-3);
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  font-weight: 300;
  max-width: 540px;
  color: rgba(255,255,255,0.92);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255,255,255,0.75);
}
.hero-scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(rgba(255,255,255,0.75), rgba(255,255,255,0));
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }
.hero-scroll-text { font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase; }

/* ============================================================
   Über uns
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  width: 100%;
  height: 100%;
  max-height: 640px;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(8%);
  transition: filter 0.6s var(--ease);
}
.about-media:hover img { filter: grayscale(0%); }
.about-media::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--accent-soft);
  z-index: -1;
  border-radius: var(--radius);
}

.values {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}
.values li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "num name" "num desc";
  column-gap: 1.3rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.4s var(--ease);
}
.values li:hover { border-color: var(--accent-soft); }
.values li:last-child { border-bottom: none; padding-bottom: 0; }
.values-num {
  grid-area: num;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--accent);
  align-self: start;
}
.values-name {
  grid-area: name;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.2;
}
.values-desc { grid-area: desc; color: var(--grey-500); font-size: 0.98rem; }

/* ============================================================
   Dienstleistungen
   ============================================================ */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--white);
  padding: clamp(2rem, 3vw, 2.9rem) clamp(1.6rem, 2.5vw, 2.3rem);
  transition: background-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.service-card:hover { background: var(--ink); color: var(--white); }
.service-icon {
  width: 50px; height: 50px;
  color: var(--ink);
  margin-bottom: var(--space-3);
  transition: color 0.5s var(--ease), transform 0.5s var(--ease);
}
.service-card:hover .service-icon { transform: translateY(-4px); }
.service-icon svg { width: 100%; height: 100%; stroke-linecap: round; stroke-linejoin: round; }
.service-card:hover .service-icon { color: var(--accent-soft); }
.service-card h3 { font-size: 1.6rem; margin-bottom: 0.7rem; }
.service-card p { color: var(--grey-500); font-size: 0.96rem; transition: color 0.5s var(--ease); }
.service-card:hover p { color: rgba(255,255,255,0.78); }

/* ============================================================
   Stats band
   ============================================================ */
.stats {
  background: var(--ink);
  color: var(--white);
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  text-align: center;
}
.stat { position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255,255,255,0.12);
}
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   Kompetenz / Approach
   ============================================================ */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.approach-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2rem, 3.2vw, 2.9rem);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.55s var(--ease);
}
.approach-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 64px -30px rgba(10,10,10,0.35);
  border-color: var(--accent-soft);
}
.approach-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 1rem;
}
.approach-card h3 { font-size: 1.72rem; margin-bottom: 0.7rem; }
.approach-card p { color: var(--grey-500); font-size: 0.98rem; }

/* ============================================================
   Kontakt
   ============================================================ */
.contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact-info {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.contact-info li {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.contact-info li:last-child { border-bottom: none; }
.contact-info-label {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-info a { transition: color 0.35s var(--ease); }
.contact-info a:hover { color: var(--accent); }
.contact-info em { color: var(--grey-500); font-style: italic; }

.contact-form {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.9rem);
  display: grid;
  gap: 1.4rem;
}
.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-700);
}
.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  width: 100%;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(154,140,120,0.18);
}
.contact-form .btn { width: 100%; }
.form-note { font-size: 0.78rem; color: var(--grey-500); text-align: center; min-height: 1.1em; }
.form-note.is-ok { color: #1f7a44; }
.form-note.is-error { color: #b00020; }
.field .opt { text-transform: none; letter-spacing: 0; color: var(--grey-500); }

/* ============================================================
   Legal
   ============================================================ */
.legal-section { padding-block: clamp(3rem, 6vw, var(--space-6)); }
.legal-section--alt { background: var(--off-white); }
.legal-content { max-width: 42rem; }
.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.legal-body {
  margin-top: var(--space-4);
  color: var(--text-muted);
  line-height: 1.8;
}
.legal-body p + p { margin-top: 1rem; }
.legal-body a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: var(--space-4);
  align-items: start;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo { height: 36px; width: auto; margin-bottom: var(--space-2); }
.footer-tagline { font-family: var(--font-serif); font-size: 1.35rem; color: rgba(255,255,255,0.85); }

.footer-nav, .footer-legal { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-nav a, .footer-legal a {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  transition: color 0.35s var(--ease);
}
.footer-nav a:hover, .footer-legal a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   Scroll reveal animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

.services-grid .service-card:nth-child(2) { transition-delay: 0.08s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.16s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.24s; }
.approach-grid .approach-card:nth-child(2) { transition-delay: 0.08s; }
.approach-grid .approach-card:nth-child(3) { transition-delay: 0.16s; }
.approach-grid .approach-card:nth-child(4) { transition-delay: 0.24s; }
.stats-grid .stat:nth-child(2) { transition-delay: 0.08s; }
.stats-grid .stat:nth-child(3) { transition-delay: 0.16s; }
.stats-grid .stat:nth-child(4) { transition-delay: 0.24s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }

  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    visibility: hidden;
  }
  body.nav-open .nav { transform: translateX(0); visibility: visible; }
  .nav-list {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .nav-link { color: rgba(255,255,255,0.92); font-size: 1rem; }
  .site-header.scrolled .nav-link { color: rgba(255,255,255,0.92); }
  .nav-link--cta { border-color: rgba(255,255,255,0.5); }
  .site-header.scrolled .nav-link--cta { border-color: rgba(255,255,255,0.5); color: #fff; }

  body.nav-open .nav-toggle span { background: var(--white); }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .about-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .about-media::after { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-2); }
  .stat + .stat::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-3); }
  .hero-scroll { display: none; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-bg { animation: none; transform: scale(1.05); }
}
