/* ============================================================
   nbk & partner — sections (upper page): hero, marquee, stats,
   kanzlei, services, fokus
   ============================================================ */

/* ============ Hero (dark pine, image right) ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(6rem, 12vh, 9rem);
  background: var(--ink-deep);
  color: var(--white);
  overflow: clip;
  isolation: isolate;
}

.hero-gl {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-gl canvas {
  width: 100%;
  height: 100%;
}

/* Static fallback when WebGL is unavailable */
.hero-gl {
  background:
    radial-gradient(80rem 55rem at 15% -10%, color-mix(in oklab, var(--brass) 7%, transparent), transparent 60%),
    radial-gradient(70rem 50rem at 30% 110%, color-mix(in oklab, var(--blue) 25%, transparent), transparent 55%),
    var(--ink-deep);
}

/* Photo panel, right side — long eased gradient so the blend into the
   flat navy background has no visible seam */
.hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(62%, 66rem);
  z-index: -1;
  clip-path: inset(0 0 0 100%);
}

html:not(.js) .hero-media {
  clip-path: none;
}

/* Portrait shot of the three name partners — anchor to the top so all
   three faces stay in frame at any panel height */
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      var(--ink-deep) 0%,
      color-mix(in oklab, var(--ink-deep) 96%, transparent) 10%,
      color-mix(in oklab, var(--ink-deep) 85%, transparent) 20%,
      color-mix(in oklab, var(--ink-deep) 66%, transparent) 32%,
      color-mix(in oklab, var(--ink-deep) 44%, transparent) 45%,
      color-mix(in oklab, var(--ink-deep) 24%, transparent) 58%,
      color-mix(in oklab, var(--ink-deep) 10%, transparent) 72%,
      transparent 88%
    ),
    linear-gradient(0deg, color-mix(in oklab, var(--ink-deep) 55%, transparent), transparent 35%);
}

@media (max-width: 60rem) {
  .hero {
    justify-content: flex-end;
    padding-top: clamp(7rem, 14vh, 10rem);
  }
  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(15rem, 38vh, 24rem);
    order: 2;
    margin-top: clamp(2rem, 5vh, 3.5rem);
    clip-path: inset(0 0 0 0);
  }
  .hero-media::after {
    background: linear-gradient(0deg, transparent 60%, var(--ink-deep));
  }
}

.hero {
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(1.2rem, 3vh, 2rem);
  color: var(--brass);
}

.hero-eyebrow::before {
  background: var(--brass);
}

.hero h1 {
  font-size: var(--text-hero);
  max-width: 10em;
  margin-bottom: clamp(1.4rem, 3vh, 2.2rem);
  color: var(--white);
}

.hero .lead {
  color: var(--white-60);
  max-width: 30em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-top: clamp(1.6rem, 3.5vh, 2.6rem);
}

.hero-note {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.7rem);
  color: var(--brass);
  rotate: -1.2deg;
  transform-origin: left center;
}

.hero .hero-note {
  margin: -0.4rem 0 1.4rem;
}

/* Trust row: partner avatars */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(1.8rem, 4vh, 3rem);
}

.hero-avatars {
  display: flex;
}

.hero-avatars img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--ink-deep);
  background: var(--paper-deep);
}

.hero-avatars img + img {
  margin-left: -0.7rem;
}

.hero-trust-text b {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
}

.hero-trust-text span {
  display: block;
  font-size: var(--text-xs);
  color: var(--white-60);
}

/* Kammer strip */
.hero-badges {
  margin-top: clamp(2rem, 5vh, 3.5rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--white-12);
  max-width: 34rem;
}

.hero-badges b {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-30);
  margin-bottom: 0.7rem;
}

.hero-badges span {
  display: inline-block;
  margin-right: 1.8rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--white-60);
}

.hero-meta {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  z-index: 1;
  display: none;
  text-align: right;
  font-size: var(--text-sm);
  color: var(--white-60);
}

@media (min-width: 72rem) {
  .hero-meta {
    display: grid;
    gap: 0.15rem;
  }
}

.hero-meta strong {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

/* ============ Marquee ============ */
.marquee {
  position: relative;
  padding-block: clamp(1rem, 2.2vw, 1.6rem);
  background: var(--ink);
  color: var(--white);
  border-top: 1px solid var(--white-12);
  overflow: clip;
}

.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  will-change: transform;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.marquee-item em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--brass);
}

.marquee-item::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  border-radius: 50%;
  background: var(--brass);
  flex: none;
}

/* ============ Stats (dark, lime numbers) ============ */
.stats {
  padding-block: var(--space-block);
  background: var(--ink-deep);
  color: var(--white);
}

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
}

@media (min-width: 56rem) {
  .stats .wrap {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  padding-left: 1.2rem;
  border-left: 1px solid var(--white-12);
}

.stat b {
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat b sup {
  font-size: 0.5em;
  color: var(--brass);
}

.stat .stat-label {
  font-size: var(--text-sm);
  color: var(--white-60);
}

/* ============ Kanzlei (cream) ============ */
.about-grid {
  display: grid;
  gap: var(--space-block) clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}

@media (min-width: 62rem) {
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .about-media {
    position: sticky;
    top: 12vh;
  }
}

.about-media {
  display: grid;
  gap: 1rem;
}

.img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: clip;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1200ms var(--ease-out-expo);
}

.img-frame:hover img {
  scale: 1.04;
}

.img-reveal {
  clip-path: inset(0 0 100% 0);
}

html:not(.js) .img-reveal {
  clip-path: none;
}

.about-media figcaption {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.about-copy h2 {
  font-size: var(--text-h2);
  margin-top: 1.1rem;
  margin-bottom: 1.8rem;
}

.about-copy > p {
  color: var(--ink-soft);
  max-width: 36em;
  margin-bottom: 1.2em;
}

.about-points {
  display: grid;
  gap: 0;
  margin-top: 2.2rem;
  list-style: none;
  counter-reset: point;
}

.about-points li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1.05rem;
  border-top: 1px solid var(--line);
  font-weight: 500;
}

.about-points li:last-child {
  border-bottom: 1px solid var(--line);
}

.about-points li::before {
  content: "0" counter(point);
  counter-increment: point;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

/* ============ Leistungen (dark, three cards) ============ */
.services {
  background: var(--ink-deep);
  color: var(--white);
  padding-block: var(--space-section);
}

.services .section-head > p {
  color: var(--white-60);
}

.services-grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 2rem);
}

@media (min-width: 56rem) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.panel {
  display: flex;
  flex-direction: column;
  background: color-mix(in oklab, var(--white) 4%, transparent);
  border: 1px solid var(--white-12);
  border-radius: var(--radius-lg);
  overflow: clip;
  transition: border-color var(--duration-normal) ease, translate var(--duration-normal) var(--ease-out-expo);
}

.panel:hover {
  border-color: color-mix(in oklab, var(--brass) 40%, var(--white-12));
  translate: 0 -0.3rem;
}

.panel-figure {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: clip;
}

.panel-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: filter 600ms ease, scale 1200ms var(--ease-out-expo);
}

.panel:hover .panel-figure img {
  filter: saturate(1);
  scale: 1.05;
}

.panel-figure::after {
  content: "";
  position: absolute;
  inset: 40% 0 0 0;
  background: linear-gradient(transparent, oklch(22% 0.055 264 / 0.75));
}

.panel-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
  gap: 0;
  padding: clamp(1.3rem, 2.4vw, 2rem);
}

.panel-kind {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}

.panel h3 {
  font-size: var(--text-h3);
  margin-block: 0.5rem 0.7rem;
}

.panel-body p {
  color: var(--white-60);
  margin-bottom: 1.4rem;
}

.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin-bottom: 1.6rem;
}

.panel-tags li {
  padding: 0.4em 0.95em;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--white-12);
  border-radius: 100vmax;
  color: var(--white-60);
  transition: border-color var(--duration-fast) ease, color var(--duration-fast) ease, background-color var(--duration-fast) ease;
}

.panel-tags li:hover {
  border-color: var(--brass);
  background: color-mix(in oklab, var(--brass) 14%, transparent);
  color: var(--white);
}

.panel .btn {
  margin-top: auto;
}

/* ============ Themen-Netz (pills → logo → Zielgruppen) ============ */
.netz-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr auto 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: 26rem;
}

.netz-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

/* dash/offset kommen als SVG-Attribute aus dem JS —
   Pfade sind bis zur Draw-Animation unsichtbar */
.netz-lines path {
  fill: none;
  stroke: color-mix(in oklab, var(--blue) 45%, var(--line));
  stroke-width: 1.5;
}

/* Pills */
.pill {
  display: inline-block;
  padding: 0.55em 1.15em;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100vmax;
  box-shadow: 0 1px 2px oklch(28% 0.06 262 / 0.06);
  transition:
    translate var(--duration-fast) var(--ease-out-expo),
    rotate var(--duration-fast) var(--ease-out-expo),
    border-color var(--duration-fast) ease,
    background-color var(--duration-fast) ease;
}

.pill:hover {
  translate: 0 -2px;
  rotate: -1deg;
  border-color: color-mix(in oklab, var(--blue) 40%, var(--line));
  background: var(--blue-haze);
}

.pill--solid {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.pill--solid:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.netz-pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  list-style: none;
}

/* Core tile */
.netz-core {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 1.1rem 1.3rem;
  background: var(--ink-deep);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px oklch(28% 0.06 262 / 0.28);
}

.netz-core img {
  width: 2.6rem;
  height: 2.6rem;
}

.netz-core b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* Audience nodes, staggered like the reference */
.netz-groups {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
  list-style: none;
  justify-items: start;
}

.netz-groups li {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}

.netz-groups li:nth-child(1) { translate: 12%; }
.netz-groups li:nth-child(2) { translate: 42%; }
.netz-groups li:nth-child(3) { translate: 55%; }
.netz-groups li:nth-child(4) { translate: 18%; }

.netz-avatar {
  width: clamp(3.6rem, 6vw, 4.8rem);
  height: clamp(3.6rem, 6vw, 4.8rem);
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: var(--paper-deep);
  border: 2px solid var(--white);
  box-shadow: 0 6px 18px oklch(28% 0.06 262 / 0.16);
}

/* Stacked layout on small screens, no connector lines */
@media (max-width: 61.99rem) {
  .netz-stage {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 0;
    gap: clamp(1.6rem, 4vw, 2.5rem);
  }
  .netz-lines {
    display: none;
  }
  .netz-pills {
    justify-content: center;
  }
  .netz-groups {
    grid-template-columns: repeat(2, auto);
    gap: 1.2rem 2rem;
    justify-items: center;
  }
  .netz-groups li:nth-child(n) { translate: 0; }
}
