/* ============================================================
   Mitzscherlich — Entwurf B: Hero, Sektionen, Footer, Motion
   ============================================================ */

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(60% 48% at 82% 18%, var(--aqua) 0%, rgba(151, 186, 180, 0) 70%),
    radial-gradient(50% 40% at 12% 82%, rgba(226, 207, 159, 0.22) 0%, rgba(226, 207, 159, 0) 70%),
    var(--bone);
}

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

.sea-fallback .hero__thread,
.sea-fallback .cta__thread {
  display: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  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: 20ch;
}

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

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

.hero__lead {
  margin-top: 34px;
  max-width: 540px;
  font-size: clamp(1.08rem, 1.5vw, 1.2rem);
  line-height: 1.68;
}

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

.hero__risk {
  margin-top: 26px;
}

/* Einstiegs-Choreografie (gleiches Muster wie Entwurf A) */

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

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

.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.3s; }
.js .hero__actions { transition-delay: 0.45s; }
.js .hero__risk { transition-delay: 0.55s; }
.js .hero__facts { transition-delay: 0.7s; }

.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;
}

/* ---------- Faktenzeile ---------- */

.hero__facts {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
}

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

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

.fact__value {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  font-weight: 620;
  font-stretch: 95%;
  letter-spacing: -0.015em;
  color: var(--ink);
}

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

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

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.about__side {
  display: grid;
  gap: 22px;
}

.about__main {
  display: grid;
  gap: 22px;
  max-width: 680px;
}

.statement {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 560;
  font-stretch: 96%;
  line-height: 1.32;
  letter-spacing: -0.022em;
  color: var(--ink);
}

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

/* ---------- Leistungen: fließender Text mit Run-in-Titeln ---------- */

.flow {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.flow__side {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: grid;
  gap: 20px;
}

.flow__intro {
  max-width: 40ch;
  font-size: 1.08rem;
  line-height: 1.7;
}

.flow__main {
  max-width: 620px;
}

.flow__main p {
  margin: 0 0 26px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.flow__main p:last-child {
  margin-bottom: 0;
}

.runin {
  color: var(--ink);
  font-weight: 620;
  font-stretch: 95%;
  letter-spacing: -0.01em;
}

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

.quote {
  text-align: center;
}

.quote blockquote {
  max-width: 780px;
  margin-inline: auto;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2.05rem);
  font-weight: 380;
  line-height: 1.45;
  color: var(--ink);
}

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

/* ---------- Ansatz: Manifest mit Zwei-Spalten-Satz ---------- */

.manifest {
  max-width: 1040px;
}

.manifest__lead {
  max-width: 34ch;
  margin-bottom: clamp(32px, 4vw, 48px);
  padding-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  font-weight: 560;
  font-stretch: 96%;
  line-height: 1.34;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.manifest__columns {
  columns: 2;
  column-gap: clamp(48px, 6vw, 88px);
}

.manifest__columns p {
  margin: 0 0 22px;
  font-size: 1.03rem;
  line-height: 1.8;
  break-inside: avoid;
}

.manifest__columns p:last-child {
  margin-bottom: 0;
}

.manifest__columns em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.07em;
  color: var(--ink);
}

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

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
}

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

.team-card__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background: var(--sand);
  overflow: hidden;
  margin-bottom: 22px;
  transition: background-color 0.4s var(--ease-out);
}

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

.team-card:hover .team-card__visual {
  background: #e9e4d8;
}

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

.team-card__initials {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.4rem, 3.6vw, 3.2rem);
  font-weight: 360;
  color: var(--ink);
  opacity: 0.85;
}

.team-card h3 {
  font-size: 1.24rem;
  font-weight: 620;
  font-stretch: 95%;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

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

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

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

.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(55% 60% at 50% 100%, rgba(226, 207, 159, 0.28) 0%, rgba(226, 207, 159, 0) 70%),
    var(--white);
  padding-block: clamp(120px, 15vw, 190px);
  text-align: center;
}

.cta__thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.cta__inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
}

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

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

.cta__inner p.copy-lg {
  margin-top: 24px;
  max-width: 600px;
}

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

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

/* ---------- Footer (hell) ---------- */

.footer {
  background: var(--bone);
  border-top: 1px solid var(--line);
  padding-block: clamp(64px, 8vw, 96px) 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(40px, 6vw, 96px);
  padding-bottom: clamp(44px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}

.footer__brand {
  display: grid;
  gap: 18px;
  align-content: start;
}

.footer__hint {
  max-width: 480px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer__contact {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink);
}

.footer__contact a {
  border-bottom: 1px solid rgba(163, 133, 78, 0.4);
  transition: color 0.2s var(--ease-out);
}

.footer__contact a:hover {
  color: var(--brass-deep);
}

.footer__col h3 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 22px;
}

.footer__links {
  display: grid;
  gap: 12px;
  font-size: 0.95rem;
}

.footer__links a {
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.footer__links a:hover {
  color: var(--brass-deep);
  border-color: rgba(163, 133, 78, 0.5);
}

.footer__meta {
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Entwurfs-Umschalter ---------- */

.variant-switch {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--ink);
  color: var(--bone);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(19, 26, 29, 0.22);
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.variant-switch:hover {
  background: var(--ink-soft);
  color: var(--champagne);
}

@media print {
  .variant-switch {
    display: none;
  }
}

/* ---------- 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,
  .rail .container::before,
  .team-card__visual::after {
    transition: none !important;
    animation: none !important;
  }
}

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

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

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

  .nav__link,
  .nav .btn {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .flow {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .flow__side {
    position: static;
  }

  .manifest__columns {
    columns: 1;
  }

  .hero__facts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

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

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

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

  .hero__actions .btn {
    width: 100%;
  }

  .fact__value {
    font-size: 1rem;
  }
}
