/* ============================================================
   Mitzscherlich TEST Sektionen: Hero, Inhalt, Team, Kontakt, Motion
   ============================================================ */

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 70% at 50% 78%, rgba(216, 191, 142, 0.14) 0%, rgba(216, 191, 142, 0) 55%),
    linear-gradient(180deg, #0a1114 0%, var(--ink) 46%, #0d181d 100%);
  color: var(--paper);
  overflow: hidden;
}

.hero__sea {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sea-fallback .hero__sea,
.sea-fallback .cta__sea {
  display: none;
}

.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 17, 20, 0.72) 0%, rgba(10, 17, 20, 0) 30%),
    linear-gradient(97deg, rgba(10, 17, 20, 0.62) 22%, rgba(10, 17, 20, 0) 58%),
    radial-gradient(90% 42% at 58% 60%, rgba(236, 215, 166, 0.15) 0%, rgba(236, 215, 166, 0) 60%);
}

.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.55'/></svg>");
}

.hero__inner {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 40px;
}

.hero__kicker {
  margin-bottom: 30px;
}

.hero__title {
  max-width: 15ch;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero__title .line > span {
  display: inline-block;
  will-change: transform;
}

.hero__lead {
  margin-top: 34px;
  max-width: 560px;
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.68;
  color: var(--mist);
}

.hero__actions {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__risk {
  margin-top: 26px;
}

/* Einstiegs-Choreografie */

.js .hero__title .line > span {
  transform: translateY(112%);
  transition: transform 1.15s var(--ease-out);
}

.js .hero__title .line:nth-child(2) > span {
  transition-delay: 0.12s;
}

.js .hero__kicker,
.js .hero__lead,
.js .hero__actions,
.js .hero__risk,
.js .hero__facts {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.js .hero__lead { transition-delay: 0.35s; }
.js .hero__actions { transition-delay: 0.5s; }
.js .hero__risk { transition-delay: 0.62s; }
.js .hero__facts { transition-delay: 0.75s; }

.js.is-loaded .hero__title .line > span {
  transform: translateY(0);
}

.js.is-loaded .hero__kicker,
.js.is-loaded .hero__lead,
.js.is-loaded .hero__actions,
.js.is-loaded .hero__risk,
.js.is-loaded .hero__facts {
  opacity: 1;
  transform: none;
}

/* ---------- Faktenband im Hero ---------- */

.hero__facts {
  position: relative;
  z-index: 4;
  border-top: 1px solid var(--line-dark);
  background: linear-gradient(180deg, rgba(11, 20, 24, 0) 0%, rgba(9, 15, 18, 0.55) 100%);
}

.hero__facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px);
  padding-block: clamp(22px, 3vw, 34px);
}

.fact {
  display: grid;
  gap: 6px;
}

.fact__value {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 420;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.fact__label {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist-dim);
}

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

.statement {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.008em;
  color: var(--graphite);
}

.about__copy {
  display: grid;
  gap: 24px;
  max-width: 640px;
}

.about__copy .statement {
  margin-bottom: 8px;
}

.about__rule {
  width: 64px;
  height: 1px;
  background: var(--brass);
  border: 0;
  margin: 0;
}

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

.services {
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
  padding-block: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s var(--ease-out);
}

.service:hover {
  background: linear-gradient(90deg, rgba(163, 133, 78, 0.05), rgba(163, 133, 78, 0));
}

.service__no {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--brass);
  padding-top: 14px;
}

.service h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  transition: transform 0.35s var(--ease-out);
}

.service:hover h3 {
  transform: translateX(6px);
}

.service__body p {
  margin-top: 16px;
  max-width: 58ch;
  font-size: 1.02rem;
  line-height: 1.75;
}

/* ---------- Zitat ---------- */

.quote {
  text-align: center;
}

.quote blockquote {
  max-width: 820px;
  margin-inline: auto;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.45rem, 2.9vw, 2.15rem);
  font-weight: 380;
  line-height: 1.45;
  letter-spacing: -0.008em;
  color: var(--graphite);
}

.quote figcaption {
  margin-top: 28px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ---------- Beratungsansatz ---------- */

.approach__side {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

/* Der Ansatz als fließendes Manifest statt Rasterpunkten */

.manifest {
  display: grid;
  gap: 26px;
  max-width: 640px;
}

.prose {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.5vw, 1.24rem);
  font-weight: 400;
  line-height: 1.85;
  color: #4c534f;
}

.prose em {
  font-style: italic;
  color: var(--graphite);
}

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.6vw, 32px);
}

.team-card {
  display: grid;
  gap: 0;
  align-content: start;
}

.team-card__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, #13232a 0%, #0c161a 60%, #101d22 100%);
  overflow: hidden;
  margin-bottom: 24px;
}

.team-card__visual::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(216, 191, 142, 0.22);
  pointer-events: none;
  transition: inset 0.4s var(--ease-out);
}

.team-card:hover .team-card__visual::after {
  inset: 16px;
}

.team-card__initials {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 340;
  letter-spacing: 0.08em;
  color: rgba(216, 191, 142, 0.55);
  transition: color 0.4s var(--ease-out);
}

.team-card:hover .team-card__initials {
  color: rgba(216, 191, 142, 0.85);
}

.team-card h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.team-card__role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 12px;
}

.team-card__meta {
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(110% 80% at 50% 100%, rgba(216, 191, 142, 0.12) 0%, rgba(216, 191, 142, 0) 55%),
    linear-gradient(180deg, #0d181d 0%, var(--ink) 100%);
  color: var(--paper);
  padding-block: clamp(120px, 16vw, 200px);
}

.cta__sea {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.cta__inner {
  position: relative;
  z-index: 4;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0;
}

.cta__inner .kicker {
  margin-bottom: 28px;
}

.cta__inner .display-2 {
  max-width: 19ch;
}

.cta__inner p.copy-lg {
  margin-top: 26px;
  max-width: 620px;
  color: var(--mist);
}

.cta__inner .btn {
  margin-top: 42px;
}

.cta__inner .note {
  margin-top: 24px;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .hero__title .line > span,
  .js .hero__kicker,
  .js .hero__lead,
  .js .hero__actions,
  .js .hero__risk,
  .js .hero__facts,
  .menu__link {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .header,
  .btn,
  .service h3,
  .team-card__visual::after {
    transition: none !important;
  }
}

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

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .approach__side {
    position: static;
  }

  /* Fakten als ruhige Zeilenliste statt 2+1-Raster */
  .hero__facts-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 8px 12px;
  }

  .fact {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding-block: 11px;
  }

  .fact + .fact {
    border-top: 1px solid rgba(216, 191, 142, 0.12);
  }

  .fact__value {
    font-size: 1.02rem;
  }

  .fact__label {
    font-size: 0.6rem;
    text-align: right;
    white-space: nowrap;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service__no {
    padding-top: 0;
  }

  .service__body p {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .kicker {
    font-size: 0.64rem;
    letter-spacing: 0.2em;
  }

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

  /* Hero-Hierarchie: große Headline, leiser Lead, ein klarer Call-to-Action */
  .hero__inner {
    padding-top: calc(var(--header-h) + 8px);
    padding-bottom: 28px;
  }

  .hero .display-1 {
    font-size: 2.65rem;
    line-height: 1.07;
  }

  .hero__lead {
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero__actions {
    margin-top: 34px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__actions .btn--ghost {
    width: auto;
    align-self: center;
    min-height: 0;
    padding: 6px 2px;
    border: 0;
    border-bottom: 1px solid rgba(216, 191, 142, 0.45);
    border-radius: 0;
    font-size: 0.9rem;
    color: var(--champagne);
  }

  .hero__risk {
    margin-top: 18px;
    text-align: center;
  }
}
