/* ============================================================
   NUVENTURI — Startseite (includes/home.php)
   Verhalten (Schriftzug einpassen, Showreel, Zähler, Ventures,
   Statement) steckt in assets/js/site.js.
   ============================================================ */

.home { padding: 0 var(--gut); overflow-x: clip; }
.home section { position: relative; }
.home h2, .home h3 { margin: 0; }
.home p { margin: 0; }

/* Abstand zwischen den Abschnitten */
.nums, .ven, .cards, .do, .stmt { padding-top: clamp(96px, 12vw, 200px); }

/* ── Schriftzug ─────────────────────────────────────────────── */
/* .hero gibt es auch in style.css (alte Startseite) – dort Hintergrund-Deko und andere Abstände */
.home .hero { padding: 64px 0 0; background: none; overflow: visible; }
.home .hero::before { display: none; }
.hero__word {
  display: block; white-space: nowrap; overflow: hidden; text-align: center;
  font-size: 21.4vw; font-weight: 800; letter-spacing: -0.075em; line-height: .86;
  padding: 0 .04em .06em 0; color: var(--ink);
}
.hero__word span { display: inline-block; animation: heroRise 1.3s var(--ease-out) both; animation-delay: calc(var(--i) * 55ms + 120ms); }
@keyframes heroRise { from { transform: translateY(105%); } to { transform: none; } }

.hero__intro {
  display: grid; gap: 1rem; margin: clamp(28px, 4vw, 64px) 0 0 clamp(0px, 6vw, 110px);
  animation: fadeUp 1.1s var(--ease-out) .7s both;
}
.hero__lead { font-size: clamp(1.15rem, 1.7vw, 1.65rem); line-height: 1.18; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ── Showreel-Karte ─────────────────────────────────────────── */
.reel { padding-top: clamp(48px, 7vw, 120px); }
.reel__card {
  --p: 0;
  position: relative; margin: 0 auto; overflow: hidden; background: var(--surface);
  width: calc(66% + 34% * var(--p)); aspect-ratio: 16 / 9; border-radius: var(--r);
  animation: fadeUp 1.2s var(--ease-out) .9s both;
}
.reel__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  opacity: 0; transform: scale(1.08); transition: opacity 1.1s ease, transform 3.2s var(--ease-out);
}
.reel__img.is-on { opacity: 1; transform: none; }
.reel__cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px;
  padding: clamp(12px, 1.4vw, 22px);
}
.reel__cap > span {
  background: var(--surface); color: var(--ink); border-radius: 999px; padding: .45em .9em;
  font-size: .82rem; font-weight: 600; line-height: 1.2;
}
.reel__tag { color: var(--ink-2) !important; font-weight: 500 !important; }
.reel__count { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink-2) !important; }
.reel__count b { color: var(--ink); }

/* ── Zahlen ─────────────────────────────────────────────────── */
.nums__lbl { color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.nums__title { font-size: clamp(2.4rem, 6.4vw, 6.8rem); line-height: .92; letter-spacing: -0.06em; font-weight: 700; margin-top: .3em !important; max-width: 12ch; }
.nums__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gut); margin-top: clamp(40px, 5vw, 80px); }
.nums__item { border-top: 1px solid var(--line); padding-top: 14px; }
.odo { display: flex; font-size: clamp(4.2rem, 11vw, 12rem); font-weight: 700; letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.odo__col { display: block; height: 1em; overflow: hidden; }
.odo__strip { display: block; transition: transform 2.2s cubic-bezier(.2, .9, .1, 1); transition-delay: calc(var(--d, 0) * 120ms + 200ms); }
.odo__strip span { display: block; height: 1em; text-align: center; }
.nums__item.is-in .odo__strip,
html:not(.js) .odo__strip { transform: translateY(calc(var(--to) * -1em)); }
.nums__label { display: block; margin-top: .6rem; color: var(--ink-2); font-weight: 500; font-size: .95rem; }

/* ── Abschnittskopf ─────────────────────────────────────────── */
.sec-head { display: grid; grid-template-columns: 1fr minmax(0, 36ch); gap: 1rem 2rem; align-items: end; margin-bottom: clamp(32px, 4vw, 64px); }
.sec-head__title { font-size: clamp(2.6rem, 7vw, 7.6rem); line-height: .9; letter-spacing: -0.065em; font-weight: 700; }
.sec-head__lead { color: var(--ink-2); font-size: .98rem; line-height: 1.5; }

/* ── Ventures ───────────────────────────────────────────────── */
.ven__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 72px); align-items: start; }
.ven__media { position: sticky; top: 24px; }
.ven__frame { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.ven__frame img, .ven__frame video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  opacity: 0; transform: scale(1.06); transition: opacity .6s ease, transform 1.4s var(--ease-out);
}
.ven__frame img.is-on, .ven__frame video.is-on { opacity: 1; transform: none; }
.ven__sound {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; border: 0; cursor: pointer;
  padding: .5em .95em; border-radius: 999px; background: var(--surface); color: var(--ink);
  font: inherit; font-size: .78rem; font-weight: 600;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .3s ease, transform .4s var(--ease-out), visibility 0s linear .3s;
}
.ven__frame.has-video .ven__sound { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ven__play {
  position: absolute; left: 50%; top: 50%; z-index: 2; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .55em; padding: .8em 1.3em; border-radius: 999px;
  background: var(--ink); color: var(--bg); font: inherit; font-size: .9rem; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  opacity: 0; visibility: hidden; transform: translate(-50%, -40%); transition: opacity .3s ease, transform .4s var(--ease-out), visibility 0s linear .3s;
}
.ven__play:hover { transform: translate(-50%, -50%) scale(1.04); }
.ven__frame.has-play .ven__play { opacity: 1; visibility: visible; transform: translate(-50%, -50%); transition-delay: 0s; }
.ven__frame.has-play .ven__sound { opacity: 0; visibility: hidden; }
.ven__sound[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.pill--video { background: var(--ink); color: var(--bg); }
.ven__info { position: relative; margin-top: 16px; min-height: 7.5em; }
.ven__info p {
  position: absolute; inset: 0 0 auto; color: var(--ink-2); font-size: .92rem; line-height: 1.5;
  opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .5s var(--ease-out);
}
.ven__info p.is-on { opacity: 1; transform: none; transition-delay: .1s; }

.ven__list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.ven__item {
  display: grid; grid-template-columns: 2.6em 1fr; align-items: start; column-gap: 1rem;
  padding: clamp(6px, .6vw, 10px) 0; cursor: default;
}
.ven__num { padding-top: .9em; color: var(--mute); font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; transition: color .4s ease; }
.ven__name {
  font-size: clamp(2.4rem, 5.4vw, 6rem) !important; line-height: .95 !important; letter-spacing: -0.06em !important; font-weight: 700;
  color: var(--mute) !important; transition: color .45s ease, transform .6s var(--ease-out);
}
.ven__name a { color: inherit; }
.ven__name a:hover { color: inherit; }
.ven__meta { grid-column: 2; display: flex; align-items: center; gap: .6rem; margin-top: .55rem; color: var(--ink-2); font-size: .82rem; font-weight: 500;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s ease; }
.ven__desc { display: none; }
.ven__item.is-on .ven__name { color: var(--ink) !important; transform: translateX(.12em); }
.ven__item.is-on .ven__num { color: var(--accent); }
.ven__item.is-on .ven__meta { max-height: 3em; opacity: 1; }

/* ── Live-Projekte ──────────────────────────────────────────── */
.cards__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: var(--gut); }
@media (min-width: 861px) and (max-width: 1180px) { .cards__row { grid-template-columns: repeat(2, 1fr); } }
.card a { display: block; color: var(--ink); }
.card__img { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.card__img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.card__img video.is-playing { opacity: 1; }
.card__play { position: absolute; left: 10px; top: 10px; padding: .4em .8em; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .72rem; font-weight: 600; }
.card__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform 1.2s var(--ease-out); }
.card a:hover .card__img img { transform: scale(1.045); }
.card__body { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; padding: 14px 2px 0; }
.card__name { font-size: clamp(1.3rem, 1.8vw, 1.8rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.1; }
.card__tag { grid-row: 2; color: var(--ink-2); font-size: .88rem; }
.card__host { grid-row: 1 / 3; grid-column: 2; align-self: start; display: inline-flex; align-items: center; gap: .35em;
  font-size: .78rem; font-weight: 600; padding: .45em .8em; border-radius: 999px; background: var(--surface); transition: background-color .3s ease, color .3s ease; }
.card a:hover .card__host { background: var(--ink); color: var(--bg); }

/* ── Was wir tun ────────────────────────────────────────────── */
.do__list { list-style: none; margin: 0; padding: clamp(28px, 4vw, 64px) var(--gut); background: var(--surface); border-radius: var(--r); text-align: center; }
.do__item a { display: block; padding: .15em 0; color: var(--mute); }
.do__word {
  position: relative; display: inline-block; font-size: clamp(3rem, 10.5vw, 11.5rem); font-weight: 700; letter-spacing: -0.065em; line-height: .98;
  transition: color .45s ease;
}
.do__num {
  position: absolute; left: 100%; top: .5em; margin-left: .4em; padding: .35em .7em; border-radius: 999px;
  background: var(--bg); color: var(--ink); font-size: max(11px, .09em); letter-spacing: 0; font-weight: 600; line-height: 1; vertical-align: baseline;
}
.do__text {
  display: block; max-width: 46ch; margin: 0 auto; color: var(--ink-2); font-size: .95rem; line-height: 1.45; letter-spacing: -0.005em;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s ease, margin .5s var(--ease);
}
.do__item a:hover, .do__item a:focus-visible { color: var(--ink); }
.do__item a:hover .do__text, .do__item a:focus-visible .do__text { max-height: 4em; opacity: 1; margin: .2em auto .8em; }
.do__all { margin-top: 20px !important; text-align: center; }

/* ── Statement ──────────────────────────────────────────────── */
.stmt { padding-bottom: clamp(80px, 10vw, 160px); }
.stmt__big { font-size: clamp(2.6rem, 7.6vw, 8.4rem); font-weight: 700; letter-spacing: -0.065em; line-height: .93; }
.stmt__line { display: block; }
.stmt__line:nth-child(2) { padding-left: 14vw; }
.stmt__big .w { color: var(--mute); transition: color .5s ease; }
.stmt__big .w.on, html:not(.js) .stmt__big .w { color: var(--ink); }
.stmt__foot { display: grid; grid-template-columns: minmax(0, 46ch) auto; justify-content: space-between; align-items: end; gap: 1.5rem 2rem; margin-top: clamp(32px, 4vw, 64px); }
.stmt__foot p { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }

/* ── Schmal ─────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .home .hero { padding-top: 58px; }
  .hero__intro { margin-left: 0; }
  .reel__card { width: 100%; aspect-ratio: 4 / 3; }
  .reel__tag { display: none; }

  .nums__row { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .sec-head { grid-template-columns: 1fr; }

  .ven__grid { grid-template-columns: 1fr; gap: 16px; }
  .ven__media { top: 10px; z-index: 2; }
  .ven__frame { aspect-ratio: 16 / 10; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
  .ven__info { display: none; }
  .ven__item { grid-template-columns: 2.2em 1fr; padding: 6px 0; }
  .ven__name { font-size: clamp(2.2rem, 11vw, 3.4rem) !important; }
  .ven__desc { display: block; grid-column: 2; color: var(--ink-2); font-size: .9rem; line-height: 1.5;
    max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .4s ease, margin .6s var(--ease); }
  .ven__item.is-on .ven__desc { max-height: 14em; opacity: 1; margin: .5rem 0 .6rem; }

  .cards__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 6px;
    scrollbar-width: none; }
  .cards__row::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 82%; scroll-snap-align: start; scroll-margin-left: var(--gut); }

  .do__list { padding: 24px 12px; }
  .do__item a { color: var(--ink); padding: .35em 0 .6em; border-bottom: 1px solid var(--line); }
  .do__item:last-child a { border-bottom: 0; }
  .do__text { max-height: none; opacity: 1; margin: .3em auto 0; font-size: .9rem; }
  .do__num { font-size: 11px; top: .35em; }

  .stmt__line:nth-child(2) { padding-left: 0; }
  .stmt__foot { grid-template-columns: 1fr; justify-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__word span, .hero__intro, .reel__card { animation: none; }
}
