/* Partnerbereich, Parallax-Band und die Sektion „Das Netzwerk".
   Farben, Schrift und Radien kommen aus den Tokens in hero.css. */

/* Partnerbereich ------------------------------------------------------ */
.pb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.pb-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--ink-500);
  border-radius: var(--r-panel);
  background: var(--ink-700);
}

.pb-card-title {
  margin: 24px 0 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--tx-1);
}

.pb-card-text {
  margin: 12px 0 0;
  max-width: 30em;
  font-size: 14px;
  line-height: 22px;
  color: var(--tx-1);
}

.pb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
}

.pb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--ink-500);
  border-radius: 999px;
  background: var(--ink-800);
  color: var(--tx-1);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease),
              transform .25s var(--ease);
}

.pb-btn-primary { border-color: var(--mint); background: var(--mint-800); }
.pb-btn:hover { border-color: var(--mint-300); box-shadow: 0 0 0 3px rgba(var(--akzent-rgb), .16); transform: translateY(-2px); }
.pb-btn:focus-visible { outline: 2px solid var(--mint-300); outline-offset: 3px; }

.pb-note {
  margin: 24px 0 0;
  font-size: 12px;
  line-height: 19px;
  color: var(--tx-2);
}

/* Kopf „Das Netzwerk" -------------------------------------------------- */
.nw-head-sec {
  position: relative;
  background: var(--ink-900);
  padding: 96px 64px 8px;
  /* Der aeussere Ring misst 797 px und wuerde sonst waagrecht ueberlaufen —
     dieselbe Sicherung, die der Hero vorher hatte. */
  overflow-x: clip;
}

/* Derselbe Mint-Schimmer wie im Hero — er ist mit den Trainerkreisen
   mitgewandert. Ohne ihn stehen sie auf totem Ink 900; mit ihm sitzen sie
   wieder in ihrem Licht. Hier hinter dem Kreis zentriert statt in der Ecke. */
.nw-head-sec::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -8%;
  width: 1000px;
  height: 1000px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle,
              rgba(var(--akzent-rgb), .16) 0%,
              rgba(var(--akzent-rgb), .05) 45%,
              transparent 70%);
  pointer-events: none;
}

.nw-head-inner { position: relative; z-index: 1; }

.nw-head-inner { width: 100%; max-width: 1400px; margin: 0 auto; }

.nw-h2 {
  margin: 0 0 20px;
  font-family: Syncopate, Manrope, sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 1.3;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--pale);
}

.nw-lead {
  margin: 0;
  font-size: 17px;
  line-height: 28px;
  color: var(--tx-2);
  /* Ein Satz, eine Zeile. Erst wenn die Breite das nicht mehr hergibt, darf
     er brechen — die Grenzen sind gemessen, nicht geschaetzt. */
  white-space: nowrap;
}

@media (max-width: 820px) { .nw-lead { white-space: normal; max-width: 40em; } }

/* Die Trainer-Ueberschrift ist kurz genug fuer eine Zeile — anders als die
   uebrigen Panel-Ueberschriften, deshalb hier und nicht an .pl-h2. */
.nw [data-tr-titel] {
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .nw [data-tr-titel] { white-space: normal; max-width: 22em; }
}

/* Netzwerk-Panels ------------------------------------------------------ */
.nw .pl-h2 { margin-bottom: 40px; }

.nw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 24px;
}

.nw-block {
  padding: 26px;
  border: 1px solid var(--ink-500);
  border-radius: var(--r-panel);
  background: var(--ink-700);
}

.nw-head {
  margin: 0 0 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mint);
}

.nw-bezirke,
.nw-liste { margin: 0; padding: 0; list-style: none; }

.nw-bezirke {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.nw-bezirke li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--ink-500);
  border-radius: var(--r-chip);
  background: var(--ink-800);
}

.nw-bez { font-size: 11px; letter-spacing: .12em; color: var(--tx-2); }

.nw-anz {
  font-family: Syncopate, Manrope, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--pale);
  font-variant-numeric: tabular-nums;
}

.nw-liste li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ink-500);
}

.nw-liste li:last-child { border-bottom: 0; padding-bottom: 0; }

.nw-name {
  min-width: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--tx-1);
}

.nw-ort {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}

.nw-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--mint);
  border-radius: 999px;
  background: var(--mint-800);
  color: var(--tx-1);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease),
              transform .25s var(--ease);
}

.nw-link:hover { border-color: var(--mint-300); box-shadow: 0 0 0 3px rgba(var(--akzent-rgb), .18); transform: translateY(-2px); }
.nw-link:focus-visible { outline: 2px solid var(--mint-300); outline-offset: 3px; }

.nw-note {
  margin: 24px 0 0;
  max-width: 46em;
  font-size: 13px;
  line-height: 21px;
  color: var(--tx-2);
}

/* Responsive ----------------------------------------------------------- */
@media (max-width: 1500px) {
  .nw-head-sec { padding: 80px 40px 8px; }
}

@media (max-width: 900px) {
  .pb-grid { grid-template-columns: minmax(0, 1fr); }
  .nw-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .nw-head-sec { padding: 64px 24px 8px; }
  .nw-lead { font-size: 16px; line-height: 26px; }
  .pb-card { padding: 24px; }
  .nw-block { padding: 22px 18px; }
}

@media (max-width: 480px) {
  .nw-head-sec { padding: 56px 20px 8px; }
  .pb-actions { flex-direction: column; }
  .pb-btn { width: 100%; }
  .nw-link { width: 100%; justify-content: center; }
  .nw-bezirke { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
}

/* ── Gyms-Panel, interaktiv ──────────────────────────────────────────────
   Bezirkskacheln und Anbieterliste werden von netzwerk.js aus orte.json
   gefuellt. Die Klassen unten greifen erst, wenn das Skript uebernommen hat
   (.is-live) — ohne JavaScript bleibt die statische Beispielliste stehen. */

.nw-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* Bezirkskacheln als Schalter */
.nw-bezirke.is-live li { display: contents; }

.nw-bez-btn {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ink-500);
  border-radius: var(--r-chip);
  background: var(--ink-800);
  font-family: inherit;
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.nw-bez-btn:hover { border-color: var(--mint-800); background: var(--ink-600); }

.nw-bez-btn[aria-pressed="true"] {
  border-color: var(--mint);
  background: var(--mint-800);
}

.nw-bez-btn[aria-pressed="true"] .nw-bez { color: var(--tx-1); }
.nw-bez-btn:focus-visible { outline: 2px solid var(--mint-300); outline-offset: 2px; }

/* Liste */
.nw-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.nw-head-zahl { color: var(--tx-2); letter-spacing: .12em; }

.nw-liste.is-live {
  /* Ein Bezirk hat hoechstens 29 Eintraege — mit Deckel bleibt die Box ruhig. */
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-500) transparent;
  transition: max-height .55s var(--ease);
}

.nw-liste.is-live.is-leer { max-height: none; overflow: visible; }



/* Die Box wechselt ihren Inhalt, statt eine zweite darunter zu haengen. Die
   Hoehe darf sich dabei aendern; der Wechsel selbst wird ueber die
   Einblendung der neuen Ansicht getragen. */
.nw-block-liste { transition: border-color .4s var(--ease); }
.nw-block-liste.is-detail { border-color: var(--mint); }

.nw-ansicht[hidden] { display: none; }
.nw-ansicht:not([hidden]) { animation: nw-wechsel .38s var(--ease) both; }

@keyframes nw-wechsel {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.nw-liste.is-live li { display: block; padding: 0; border: 0; }

.nw-eintrag {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 11px 10px;
  border: 0;
  border-bottom: 1px solid var(--ink-500);
  border-radius: var(--r-chip);
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.nw-eintrag:hover { background: var(--ink-600); }
.nw-eintrag:focus-visible { outline: 2px solid var(--mint-300); outline-offset: -2px; }

.nw-eintrag.is-aktiv { background: var(--mint-800); }
.nw-eintrag.is-aktiv .nw-name { color: var(--pale); font-weight: 600; }
.nw-eintrag.is-aktiv .nw-ort { color: var(--mint-300); }

.nw-leer { padding: 20px 10px; font-size: 13px; color: var(--tx-2); }

.nw-detail-kopf {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.nw-detail-name {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--tx-1);
}

.nw-fakten {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px 18px;
  margin: 0;
  font-size: 13px;
  line-height: 20px;
}

.nw-fakten dt {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mint);
  padding-top: 3px;
  white-space: nowrap;
}

.nw-fakten dd { margin: 0; color: var(--tx-1); }

.nw-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.nw-detail-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--ink-500);
  border-radius: 999px;
  background: var(--ink-700);
  font-size: 13px;
  font-weight: 600;
  color: var(--tx-1);
  transition: border-color .2s var(--ease);
}

.nw-detail-links a:hover { border-color: var(--mint); }
.nw-detail-links a.is-primaer { border-color: var(--mint); background: var(--mint-800); }

@media (max-width: 900px) {
  .nw-liste.is-live { max-height: 300px; }
  .nw-right.is-offen .nw-liste.is-live { max-height: 170px; }
  .nw-fakten { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .nw-fakten dt { padding-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .nw-liste.is-live { transition: none; }
}

/* Die Bezirksbox soll nicht auf die Hoehe der rechten Spalte mitwachsen —
   sonst steht unter den neun Kacheln ein halber Meter Leere, sobald die
   Detailkarte aufgeht. */
.nw-grid { align-items: start; }

/* Der Anschnitt am Listenende soll als Scrollhinweis lesen, nicht als Fehler. */
.nw-liste.is-live {
  mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent 100%);
}


/* Leerzustand der rechten Box ------------------------------------------ */
.nw-liste.is-leer .nw-leer {
  padding: 26px 10px 10px;
  max-width: 30em;
  font-size: 13.5px;
  line-height: 21px;
  color: var(--tx-2);
}

/* Hinweis-i in der Detailkarte ------------------------------------------ */
.nw-detail-tools { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.nw-info { position: relative; display: inline-flex; }

.nw-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink-500);
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--mint);
  font-family: Syncopate, Manrope, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  transition: border-color .2s var(--ease);
}

.nw-info-btn:hover { border-color: var(--mint); }
.nw-info-btn:focus-visible { outline: 2px solid var(--mint-300); outline-offset: 2px; }

.nw-info-text {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 6;
  width: 268px;
  padding: 12px 14px;
  border: 1px solid var(--mint-800);
  border-radius: var(--r-card);
  background: var(--ink-900);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  font-size: 12px;
  line-height: 18px;
  color: var(--tx-1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}

.nw-info:hover .nw-info-text,
.nw-info-btn:focus-visible + .nw-info-text,
.nw-info-btn[aria-expanded="true"] + .nw-info-text {
  opacity: 1;
  visibility: visible;
  transform: none;
}

@media (max-width: 900px) {

  .nw-info-text { width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .nw-ansicht:not([hidden]) { animation: none; }
}

/* ── Kopf mit Teaser und Trainer-Kreisen ─────────────────────────────
   Die kreisenden Trainerbilder standen bis 03.09. im Hero. Hier tragen sie
   mehr: die Sektion heisst „Das Netzwerk", und das Bild zeigt genau das —
   Menschen, die um die Marke kreisen. */
.nw-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.nw-head-text { min-width: 0; flex: 1 1 auto; }

/* Der Teaser sitzt jetzt unter dem Vorspann statt rechts daneben — rechts
   steht der Kreis. */
.nw-head-text .nw-neu-teaser { margin-top: 28px; display: inline-flex; }

/* Kleiner als im Hero: hier steht daneben Text, nicht nichts. Der Ring muss
   innerhalb der Buehnenbreite bleiben — 797 px × .68 = 542 px. */
.nw-head-inner .bt-stage {
  flex: 0 1 600px;
  min-width: 0;
  margin-left: 0;
}

.nw-head-inner .bt-orbits {
  width: 600px;
  height: 600px;
  --scale: .68;
}

/* Anklickbares Feld rechts neben der Überschrift — es schaltet die Bühne
   auf das Panel mit den Neuzugängen. */
.nw-neu-teaser {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  max-width: 360px;
  padding: 20px 22px;
  border: 1px solid var(--mint-800);
  border-radius: var(--r-panel);
  background: var(--ink-800);
  transition: border-color .3s var(--ease), background-color .3s var(--ease),
              transform .3s var(--ease);
}

.nw-neu-teaser:hover {
  border-color: var(--mint);
  background: var(--ink-700);
  transform: translateY(-2px);
}

.nw-neu-teaser:focus-visible { outline: 2px solid var(--mint-300); outline-offset: 3px; }

.nw-neu-punkt {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(var(--neon-rgb), .85);
  animation: mx-glow 1.8s ease-in-out infinite;
}

.nw-neu-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.nw-neu-titel {
  font-family: Syncopate, Manrope, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--mint);
}

.nw-neu-sub { font-size: 12.5px; line-height: 18px; color: var(--tx-2); }

.nw-neu-pfeil { flex: 0 0 auto; font-size: 17px; color: var(--mint); }

/* ── Panel "Jetzt neu" ───────────────────────────────────────────────── */
.nn-liste {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.nn-eintrag {
  display: grid;
  grid-template-columns: auto 78px 90px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--ink-500);
  border-radius: var(--r-card);
  background: var(--ink-700);
}

/* Die Zeile zeigt nur den Aufbau — sie ist als Beispiel gekennzeichnet und
   darf nicht wie ein echter Eintrag aussehen. */
.nn-eintrag.is-beispiel {
  border-style: dashed;
  border-color: var(--mint-800);
  background: var(--ink-800);
}

.nn-marke {
  padding: 4px 10px;
  border: 1px dashed var(--mint-800);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mint);
}

.nn-datum {
  font-family: Syncopate, Manrope, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--tx-1);
  font-variant-numeric: tabular-nums;
}

.nn-typ {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mint);
}

.nn-name { font-size: 15px; font-weight: 600; color: var(--tx-1); }
.nn-ort { font-size: 12px; letter-spacing: .1em; color: var(--tx-2); text-align: right; }

.nn-info {
  grid-column: 2 / -1;
  font-size: 13px;
  line-height: 20px;
  color: var(--tx-2);
}

.nn-offen {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px dashed var(--mint-800);
  border-radius: var(--r-card);
  background: var(--ink-900);
}

.nn-offen .pl-chip { position: static; flex: 0 0 auto; }
.nn-offen-text { margin: 0; max-width: 46em; font-size: 13px; line-height: 21px; color: var(--tx-2); }

@media (max-width: 1000px) {
  .nw-head-inner { flex-direction: column; align-items: stretch; gap: 24px; }
  .nw-neu-teaser { max-width: none; width: 100%; }
  .nw-head-text .nw-neu-teaser { display: flex; }
  /* Der Kreis braucht Breite. Wo sie fehlt, entfaellt er — er ist Zier,
     kein Traeger. */
  .nw-head-inner .bt-stage { display: none; }
}

@media (max-width: 768px) {
  .nn-eintrag { grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; }
  .nn-ort { text-align: left; }
  .nn-info { grid-column: 1 / -1; }
  .nn-offen { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .nw-neu-teaser { transition: none; }
  .nw-neu-teaser:hover { transform: none; }
  .nw-neu-punkt { animation: none; }
}


/* Zurück aus der Detailansicht in die Liste */
.nw-zurueck {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  min-height: 34px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--mint-800);
  border-radius: 999px;
  background: var(--ink-900);
  color: var(--tx-1);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}

.nw-zurueck:hover { border-color: var(--mint); transform: translateX(-2px); }
.nw-zurueck:focus-visible { outline: 2px solid var(--mint-300); outline-offset: 3px; }
.nw-zurueck svg { width: 13px; height: 13px; fill: none; stroke: var(--mint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  .nw-zurueck { transition: none; }
  .nw-zurueck:hover { transform: none; }
}
