/* ============================================================
   Auerbach Immobilien — Luxus-Editorial
   Palette: Tiefschwarz #0B0A08 · Champagner #C9A96A · Elfenbein #EFEAE0
   Fonts: Cormorant Garamond (Serif) · Jost (Grotesk)
   ============================================================ */

:root {
  --black: #0B0A08;
  --black-soft: #14120E;
  --gold: #C9A96A;
  --gold-dim: rgba(201, 169, 106, 0.35);
  --ivory: #EFEAE0;
  --ivory-dim: rgba(239, 234, 224, 0.55);
  --ivory-faint: rgba(239, 234, 224, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --section-pad: clamp(120px, 16vw, 200px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

::selection { background: var(--gold); color: var(--black); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem clamp(1.5rem, 5vw, 4rem);
  mix-blend-mode: difference;
}

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.brand span { font-style: italic; font-weight: 300; }

.site-nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}

.site-nav a {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  opacity: 0.75;
  transition: opacity 0.4s var(--ease);
}

.site-nav a:hover { opacity: 1; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-fallback {
  position: absolute;
  inset: 0;
}

.hero-fallback img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}

.hero-fallback img.is-active { opacity: 1; }

/* Ken Burns nur im Fallback-Modus (WebGL macht Parallax im Shader) */
.hero--fallback .hero-fallback img.is-active {
  animation: kenburns 12s var(--ease) forwards;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(11, 10, 8, 0.92) 0%, rgba(11, 10, 8, 0.35) 34%, rgba(11, 10, 8, 0.05) 60%),
    linear-gradient(to bottom, rgba(11, 10, 8, 0.55) 0%, rgba(11, 10, 8, 0) 22%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(6rem, 12vh, 9rem);
  max-width: 1100px;
}

.hero-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 1.75rem;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 10vw, 9.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.line {
  display: block;
  transform: translateY(0);
}

.line-italic { font-style: italic; font-weight: 300; color: var(--ivory); }

.line.is-out {
  transition: transform 0.55s cubic-bezier(0.6, 0, 0.4, 1), opacity 0.55s var(--ease);
  transform: translateY(-110%);
  opacity: 0;
}

.line.is-in-prep {
  transition: none;
  transform: translateY(110%);
  opacity: 1;
}

.line.is-in {
  transition: transform 0.9s var(--ease);
  transform: translateY(0);
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 2rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ivory-dim);
  transition: opacity 0.5s var(--ease);
}

.hero-meta.is-fading { opacity: 0; }

.meta-sep {
  width: 2.4rem;
  height: 1px;
  background: var(--gold-dim);
}

/* Nummern-Navigation */

.hero-nav {
  position: absolute;
  z-index: 3;
  right: clamp(1.5rem, 4vw, 3.5rem);
  bottom: clamp(6rem, 12vh, 9rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.hero-num {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--ivory-dim);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  letter-spacing: 0.08em;
  padding: 0.2rem 0;
  transition: color 0.5s var(--ease);
}

.hero-num i {
  display: block;
  width: 2.2rem;
  height: 1px;
  background: var(--ivory-faint);
  position: relative;
  overflow: hidden;
}

.hero-num i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

.hero-num.is-active { color: var(--gold); }

.hero-num.is-active i::after {
  transform: scaleX(1);
  transition: transform 6s linear;
}

.hero-num:hover { color: var(--ivory); }

.hero-scrollhint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 2rem;
  width: 1px;
  height: 3.2rem;
  background: var(--ivory-faint);
  overflow: hidden;
}

.hero-scrollhint span {
  position: absolute;
  inset: 0;
  background: var(--gold);
  animation: scrollhint 2.4s var(--ease) infinite;
}

@keyframes scrollhint {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- Reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Intro ---------- */

.intro {
  padding: var(--section-pad) clamp(1.5rem, 5vw, 4rem);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.intro-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 2.25rem;
}

.intro-text {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 300;
  line-height: 1.35;
}

.intro-text em { font-style: italic; color: var(--gold); }

/* ---------- Sektions-Köpfe ---------- */

.section-head {
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.section-label::after {
  content: "";
  display: block;
  width: 3.4rem;
  height: 1px;
  background: var(--gold-dim);
  margin-top: 1.1rem;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.section-title em { font-style: italic; font-weight: 300; color: var(--ivory-dim); }

.section-note {
  margin-top: 1.75rem;
  max-width: 34rem;
  color: var(--ivory-dim);
}

/* ---------- Objekte ---------- */

.objects {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--ivory-faint);
}

.object {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  margin-bottom: clamp(6rem, 10vw, 9rem);
}

.object:last-child { margin-bottom: 0; }

.object--right .object-media { order: 2; }
.object--right .object-info { order: 1; text-align: right; }
.object--right .object-facts div { flex-direction: row-reverse; }

.object-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.object-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.6s var(--ease);
}

.object:hover .object-media img { transform: scale(1); }

.object-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.object-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 2rem;
}

.object-facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--ivory-faint);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.object-facts div:last-child { border-bottom: 1px solid var(--ivory-faint); }

.object-facts dt {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: var(--ivory-dim);
  padding-top: 0.15em;
}

.object-facts dd { color: var(--ivory); }

/* ---------- Leistungen ---------- */

.services {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--ivory-faint);
}

.services-list {
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.service {
  display: grid;
  grid-template-columns: 6rem minmax(0, 18rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: baseline;
  padding: clamp(2.2rem, 4vw, 3.2rem) 0;
  border-top: 1px solid var(--ivory-faint);
}

.service:last-child { border-bottom: 1px solid var(--ivory-faint); }

.service-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
}

.service h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.service p {
  color: var(--ivory-dim);
  max-width: 40rem;
}

/* ---------- Diskretion ---------- */

.discretion {
  padding: var(--section-pad) clamp(1.5rem, 5vw, 4rem);
  background: var(--black-soft);
  text-align: center;
}

.discretion-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 2rem;
}

.discretion-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1.15;
  max-width: 62rem;
  margin: 0 auto 2.5rem;
}

.discretion-title em { font-style: italic; font-weight: 300; color: var(--gold); }

.discretion-text {
  max-width: 44rem;
  margin: 0 auto;
  color: var(--ivory-dim);
}

/* ---------- Über uns ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  padding: var(--section-pad) clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--ivory-faint);
}

.about-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  margin-top: 2rem;
  max-width: 34rem;
  color: var(--ivory-dim);
}

.about-figures {
  display: flex;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: 3.25rem;
}

.about-figures div {
  border-top: 1px solid var(--gold-dim);
  padding-top: 1rem;
}

.about-figures dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ivory-dim);
  margin-bottom: 0.4rem;
}

.about-figures dd {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

/* ---------- Kontakt ---------- */

.contact {
  padding: var(--section-pad) clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--ivory-faint);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 7rem);
  max-width: 1200px;
  margin: 0 auto;
}

.contact-address {
  font-style: normal;
  margin-top: 2.5rem;
  color: var(--ivory-dim);
  line-height: 2;
}

.contact-address a {
  color: var(--ivory);
  border-bottom: 1px solid var(--gold-dim);
  transition: border-color 0.4s var(--ease);
}

.contact-address a:hover { border-color: var(--gold); }

.contact-form .field {
  margin-bottom: 2rem;
}

.contact-form label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--ivory-dim);
  margin-bottom: 0.6rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ivory-faint);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  padding: 0.6rem 0;
  resize: vertical;
  transition: border-color 0.4s var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.submit {
  appearance: none;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  padding: 1.1rem 2.8rem;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}

.submit:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--ivory-faint);
  padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem) 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 4rem;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.footer-logo span { font-style: italic; font-weight: 300; }

.footer-brand p:last-child,
.footer-legal p { color: var(--ivory-dim); font-size: 0.9rem; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-nav a {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--ivory-dim);
  transition: color 0.4s var(--ease);
}

.footer-nav a:hover { color: var(--gold); }

.footer-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.footer-note {
  border-top: 1px solid var(--ivory-faint);
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--ivory-dim);
  text-align: center;
}

.footer-note a {
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}

.footer-note a:hover { border-color: var(--gold); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .service {
    grid-template-columns: 3.5rem minmax(0, 1fr);
  }
  .service p { grid-column: 2; }
}

@media (max-width: 768px) {
  .site-nav { display: none; }

  .hero-nav {
    flex-direction: row;
    right: auto;
    left: clamp(1.5rem, 5vw, 4rem);
    bottom: 2.6rem;
    gap: 1.6rem;
  }

  .hero-num i { width: 1.4rem; }

  .hero-content { padding-bottom: 8.5rem; }

  .hero-scrollhint { display: none; }

  .object,
  .about,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .object--right .object-media { order: 0; }
  .object--right .object-info { order: 1; text-align: left; }
  .object--right .object-facts div { flex-direction: row; }

  .about-media { max-width: 26rem; }

  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-fallback img,
  .hero--fallback .hero-fallback img.is-active {
    animation: none;
    transition: none;
  }

  .line.is-out,
  .line.is-in-prep,
  .line.is-in {
    transition: none;
    transform: none;
    opacity: 1;
  }

  .hero-num.is-active i::after { transition: none; }

  .hero-scrollhint span { animation: none; }

  .object-media img { transition: none; transform: none; }
}
