/* Seitenspezifische Layouts. Nur Tokens, keine Farbwerte. */

/* ---------- Gemeinsame Abschnitte ---------- */
.section {
  padding: var(--space-10) 0;
}

.section--flush-top {
  padding-top: 0;
}

.section--flush-bottom {
  padding-bottom: 0;
}

.section--lg-bottom {
  padding: 0 0 var(--space-10);
}

.section--md-bottom {
  padding: 0 0 var(--space-9);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 680px;
}

.section__head--row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

.section__title {
  font-size: var(--fs-h2);
  line-height: 1.12;
}

.section__title--md {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.15;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

.grid--280 {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.grid--stretch {
  align-items: stretch;
}

.accent {
  color: var(--c-accent);
}

.btn--lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: var(--fs-base);
}

.text-muted {
  color: var(--c-muted);
}

.page-hero {
  position: relative;
  padding: 88px 0 48px;
}

.page-hero__glow {
  position: absolute;
  left: 0;
  right: 0;
  top: 40px;
  width: min(640px, 100%);
  height: 280px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--c-glow);
  filter: blur(110px);
  opacity: 0.3;
}

.page-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.page-hero__title {
  font-size: clamp(2.375rem, 5vw, 3.875rem);
  line-height: 1.08;
}

.page-hero__lead {
  max-width: 620px;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--c-muted);
}

/* ---------- Startseite: Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 40px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--c-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.7;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
}

.hero__title {
  max-width: 920px;
  font-size: var(--fs-h1);
  line-height: 1.04;
}

.hero__lead {
  max-width: 660px;
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--c-muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: 6px;
}

/* Laptop-Mockup */
.laptop {
  position: relative;
  width: 100%;
  max-width: 1060px;
  margin-top: 56px;
}

.laptop__glow {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 15%;
  bottom: 5%;
  border-radius: 50%;
  background: var(--c-glow);
  filter: blur(90px);
}

.laptop__body {
  position: relative;
}

.laptop__lid {
  padding: 14px 14px 18px;
  background: var(--c-laptop-body);
  border: 1px solid var(--c-laptop-edge);
  border-radius: 18px 18px 0 0;
}

.laptop__cam {
  display: flex;
  justify-content: center;
  padding-bottom: var(--space-2);
}

.laptop__cam span {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--c-neutral-btn);
}

.laptop__screen {
  display: flex;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: var(--c-laptop-screen);
  color: var(--c-text);
  font-size: 0.6875rem;
  text-align: left;
}

.laptop__side {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 3px;
  width: 150px;
  padding: 14px 10px;
  background: var(--c-code-bg);
  border-right: 1px solid var(--c-line-soft);
}

.laptop__brand {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px 14px;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.laptop__brand img {
  width: 20px;
  height: 16px;
  object-fit: contain;
}

.laptop__nav-item {
  padding: 6px 8px;
  border-radius: 5px;
  color: var(--c-muted);
}

.laptop__nav-item.is-active {
  background: var(--c-selected);
  color: var(--c-white);
}

.laptop__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  padding: 14px 16px;
}

.laptop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.laptop__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text);
}

.laptop__tools {
  display: flex;
  gap: 6px;
}

.mock-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 5px;
  background: var(--c-surface-4);
}

.mock-chip--search {
  width: 170px;
  color: var(--c-subtle);
}

.mock-chip--live {
  background: var(--c-teal-deep);
}

.mock-caret {
  color: var(--c-accent);
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
}

.mock-panel {
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: var(--c-surface-4);
}

.mock-muted {
  color: var(--c-subtle);
}

.mock-kpi__value {
  margin-top: 3px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.mock-kpi__value--join {
  color: var(--cat-join);
}
.mock-kpi__value--anticheat {
  color: var(--cat-anticheat);
}
.mock-kpi__value--error {
  color: var(--cat-error);
}

.mock-chart__legend {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: 6px;
  color: var(--c-subtle);
}

.mock-feed {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
}

.mock-row {
  display: grid;
  grid-template-columns: 58px 76px 1fr;
  gap: var(--space-2);
  padding: 6px 10px;
  border-bottom: 1px solid var(--c-line-soft);
}

.mock-row > :last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.laptop__base {
  display: flex;
  justify-content: center;
  height: 16px;
  margin: 0 -5%;
  background: var(--c-laptop-base);
  border-top: 1px solid var(--c-neutral-btn);
  border-radius: 0 0 14px 14px;
}

.laptop__base span {
  width: 140px;
  height: 7px;
  background: var(--c-laptop-notch);
  border-radius: 0 0 8px 8px;
}

@media (max-width: 640px) {
  .hero {
    padding-top: var(--space-8);
  }

  .laptop {
    margin-top: var(--space-7);
  }

  .laptop__side,
  .mock-chip--search,
  .mock-chip--period {
    display: none;
  }

  .laptop__screen {
    aspect-ratio: auto;
    height: 330px;
  }

  .laptop__lid {
    padding: 10px 10px 12px;
  }
}

/* Generische Balkendiagramme (Mockup und Demo) */
.bars {
  display: flex;
  align-items: flex-end;
  gap: var(--bar-gap, 3px);
  height: var(--bars-h, 58px);
}

.bar {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1px;
  height: 100%;
}

.bar__seg {
  display: block;
  height: var(--h, 0);
}

.bar__seg--error {
  background: var(--cat-error);
}
.bar__seg--anticheat {
  background: var(--cat-anticheat);
}
.bar__seg--total {
  background: var(--c-accent);
}

/* Farbmarker (Raute / Quadrat) */
.sw {
  display: inline-block;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-xs);
}
.sw--error {
  background: var(--cat-error);
}
.sw--anticheat {
  background: var(--cat-anticheat);
}
.sw--total {
  background: var(--c-accent);
}
.sw--join {
  background: var(--cat-join);
}
.sw--chat {
  background: var(--cat-chat);
}
.sw--kill {
  background: var(--cat-kill);
}
.sw--money {
  background: var(--cat-money);
}
.sw--item {
  background: var(--cat-item);
}
.sw--vehicle {
  background: var(--cat-vehicle);
}
.sw--admin {
  background: var(--cat-admin);
}

/* Laufband */
.marquee {
  margin-top: var(--space-8);
  padding: 22px 0;
  overflow: hidden;
  background: var(--c-band);
  border-block: 1px solid var(--c-line);
}

.marquee__track {
  display: flex;
  width: max-content;
  color: var(--c-muted);
  font-size: var(--fs-base);
  white-space: nowrap;
}

.marquee__group {
  display: flex;
  gap: var(--space-7);
  padding-right: var(--space-7);
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.marquee__item .sw {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    width: auto;
    padding-inline: var(--gutter);
    white-space: normal;
  }

  .marquee__group {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
    row-gap: var(--space-3);
  }

  .marquee__group[aria-hidden="true"] {
    display: none;
  }
}

/* Funktionen, Schritte */
.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature h3,
.step h3 {
  font-size: var(--fs-lg);
}

.feature p,
.step p,
.model p {
  font-size: 0.9375rem;
  line-height: var(--lh-body);
  color: var(--c-muted);
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow: hidden;
}

.step__num {
  position: absolute;
  right: 18px;
  top: 4px;
  font-size: 6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--c-numeral);
}

.step > *:not(.step__num) {
  position: relative;
}

.step h3 {
  font-size: var(--fs-h3);
}

.step .inline-code {
  margin-top: 6px;
}

/* Demo-Band */
.band {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: var(--space-8) 56px;
  overflow: hidden;
  background: var(--c-navy);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-xl);
}

.band__glow {
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--c-glow-2);
  filter: blur(80px);
}

.band__text {
  position: relative;
  display: flex;
  flex: 1 1 460px;
  flex-direction: column;
  gap: var(--space-4);
}

.band__text p {
  max-width: 540px;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-text-band);
}

.band__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 640px) {
  .band {
    padding: var(--space-7) var(--space-5);
  }
}

/* Modell-Karten (Startseite) */
.model {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
}

.model__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.model__name {
  font-size: 1.875rem;
}

.model__price {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--c-white);
}

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

/* ---------- Store ---------- */
.plan {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 34px;
  border-radius: 18px;
}

.plan--popular {
  background: var(--c-popular);
  border: 1.5px solid var(--c-accent);
}

.plan.is-in-cart {
  border: 2px solid var(--c-success);
}

.plan__name {
  font-size: 2.125rem;
}

.plan__price {
  font-size: 2.375rem;
  font-weight: 600;
  color: var(--c-white);
}

.plan__per {
  font-size: 0.9375rem;
  color: var(--c-muted);
}

.plan__features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  color: var(--c-text-soft);
}

.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan__features svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--c-success);
}

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

.plan .btn.is-active {
  background: var(--c-accent);
  border-color: transparent;
  color: var(--c-on-accent);
}

.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px var(--space-6);
  background: var(--c-navy);
  border: 1px solid var(--c-line-strong);
  border-radius: 18px;
}

.cart__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart__line {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--c-white);
}

.cart__note {
  font-size: var(--fs-sm);
  color: var(--c-text-band);
}

.cart__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.cart__title {
  margin: 0;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-accent-light);
}

.help-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: 18px;
}

.help-card h3 {
  font-size: var(--fs-md);
}

.help-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--c-muted);
}

.help-card .link {
  align-self: flex-start;
  padding: 6px 0;
  font-weight: 600;
}

.vat-note {
  padding-top: var(--space-5);
  font-size: 0.8125rem;
  color: var(--c-subtle);
  text-align: center;
}

/* ---------- Docs ---------- */
.docs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
}

.docs__side {
  display: flex;
  flex: 1 1 250px;
  flex-direction: column;
  gap: 22px;
  max-width: 100%;
  padding: 28px var(--space-4) var(--space-7) var(--gutter);
}

.docs__main {
  flex: 999 1 560px;
  min-width: 0;
  min-height: 900px;
  padding: var(--space-7) var(--space-6) var(--space-9);
  border-inline: 1px solid var(--c-line);
}

.doc-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.doc-group__title {
  margin: 0;
  padding: 0 var(--space-3) 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c-accent);
}

.doc-nav__link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: var(--space-2) var(--space-3);
  border-left: 2px solid var(--c-line);
  border-radius: 0 8px 8px 0;
  color: var(--c-muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, padding-left 0.25s;
}

.doc-nav__link:hover,
.doc-nav__link[aria-current="page"] {
  background: var(--c-surface-3);
  color: var(--c-white);
}

.doc-nav__link:hover {
  padding-left: 18px;
}

.doc-nav__link[aria-current="page"] {
  border-left-color: var(--c-accent);
}

.doc-empty {
  padding: 0 var(--space-3);
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

.doc-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  animation: av-up 0.5s var(--ease) backwards;
}

.docs__main > .doc-h1 {
  margin-bottom: var(--space-4);
}

.panel__head h2 {
  font-size: inherit;
}

.doc-page[hidden] {
  display: none;
}

.doc-article {
  max-width: 760px;
}

.doc-crumb {
  margin-bottom: var(--space-3);
  font-size: 0.8125rem;
  color: var(--c-subtle);
}

.doc-title {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.12;
}

.doc-intro {
  margin-bottom: 28px;
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--c-muted);
}

.prose h3 {
  margin: 36px 0 12px;
  font-size: 1.5rem;
}

.prose p {
  margin: 0 0 16px;
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--c-text-soft);
}

.prose .code,
.prose .note {
  margin: 0 0 20px;
}

.doc-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--c-line);
}

.pager-link {
  flex: 1 1 220px;
  padding: 16px 18px;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-surface);
  color: var(--c-text);
  text-decoration: none;
  transition: transform 0.3s, border-color 0.3s;
}

.pager-link:hover {
  transform: translateY(-3px);
  border-color: var(--c-accent);
  color: var(--c-text);
}

.pager-link small {
  display: block;
  font-size: var(--fs-xs);
  color: var(--c-subtle);
}

.pager-link strong {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--fs-base);
}

.pager-link--next {
  text-align: right;
}

.doc-toc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: var(--fs-sm);
}

.doc-toc__title {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c-accent);
}

.doc-toc li {
  color: var(--c-muted);
}

.doc-help {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-surface);
  line-height: 1.6;
  color: var(--c-muted);
}

.doc-help strong {
  font-weight: 500;
  color: var(--c-text);
}

@media (min-width: 1100px) {
  .doc-page {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
}

@media (max-width: 760px) {
  .docs__side {
    padding: var(--space-5) var(--gutter) 0;
  }

  .docs__main {
    min-height: 0;
    padding: var(--space-6) var(--gutter) var(--space-8);
    border-inline: 0;
  }
}

/* ---------- Demo ---------- */
.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--gutter);
  background: var(--c-navy);
  border-bottom: 1px solid var(--c-line-strong);
  font-size: var(--fs-sm);
}

.demo-bar__text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--c-text-band);
}

.demo-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.demo {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: stretch;
}

.demo__side {
  display: flex;
  flex: 1 1 220px;
  flex-direction: column;
  gap: 3px;
  max-width: 100%;
  padding: 20px 14px;
  background: var(--c-footer);
  border-right: 1px solid var(--c-line-soft);
}

.demo__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 var(--space-2) 20px;
  font-size: 1.375rem;
  font-weight: 600;
}

.demo__brand img {
  width: 36px;
  height: 28px;
  object-fit: contain;
}

.demo-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.demo-nav button {
  min-height: 44px;
  padding: 10px var(--space-3);
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--c-muted);
  font-size: 0.9375rem;
  text-align: left;
  transition: background-color 0.2s, color 0.2s;
}

.demo-nav button:hover {
  background: var(--c-surface-3);
  color: var(--c-white);
}

.demo-nav button[aria-current="true"] {
  background: var(--c-selected);
  color: var(--c-white);
}

.demo__server {
  margin-top: auto;
  padding: 14px var(--space-3);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-md);
  background: var(--c-surface-2);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--c-muted);
}

.demo__server strong {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: 2px;
  font-weight: 600;
  color: var(--c-text);
}

.demo__main {
  display: flex;
  flex: 999 1 560px;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: var(--space-5);
}

.demo__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.demo__title {
  font-size: 1.5rem;
}

.demo__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.demo__tools .field__input {
  width: 240px;
  max-width: 50vw;
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: var(--c-surface-2);
  color: var(--c-text);
  font-size: var(--fs-sm);
  transition: transform 0.2s, filter 0.2s, background-color 0.2s;
}

.demo-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

.demo-btn[aria-pressed="true"] {
  background: var(--c-teal-deep);
}

.demo-btn--live {
  border: 0;
  padding: 0 16px;
  background: var(--c-teal-deep);
  color: var(--c-white);
  font-weight: 600;
}

.demo-btn--live.is-paused {
  background: var(--c-neutral-btn);
}

.demo__hint {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-md);
  background: var(--c-popular);
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
}

.demo__hint[hidden] {
  display: none;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: var(--space-3);
}

.kpi {
  padding: 16px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface-2);
}

.kpi__label {
  font-size: 0.8125rem;
  color: var(--c-muted);
}

.kpi__value {
  margin-top: 6px;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--c-text);
}

.kpi__value--join {
  color: var(--cat-join);
}
.kpi__value--anticheat {
  color: var(--cat-anticheat);
}
.kpi__value--error {
  color: var(--cat-error);
}

.kpi__sub {
  margin-top: 2px;
  font-size: var(--fs-xs);
  color: var(--c-subtle);
}

.panel {
  padding: 16px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface-2);
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: 0.8125rem;
  color: var(--c-muted);
}

.panel__head strong {
  font-weight: 600;
  color: var(--c-text);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart {
  --bars-h: 120px;
  --bar-gap: 4px;
}

.chart__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.6875rem;
  color: var(--c-subtle);
}

.demo__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.demo__split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
}

.log-wrap {
  flex: 999 1 520px;
  min-width: 0;
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface-2);
}

.log-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-align: left;
}

.log-table thead th {
  position: sticky;
  top: 0;
  padding: 10px var(--space-3);
  background: var(--c-surface-2);
  border-bottom: 1px solid var(--c-line);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--c-muted);
}

.log-table td {
  padding: 10px var(--space-3);
  vertical-align: top;
  border-bottom: 1px solid var(--c-line-soft);
}

.log-table .col-time {
  width: 92px;
  color: var(--c-subtle);
}

.log-table .col-cat {
  width: 120px;
}

.log-table .col-player {
  width: 160px;
  color: var(--c-text-soft);
  overflow-wrap: anywhere;
}

.log-row {
  transition: background-color 0.2s;
}

.log-row:hover {
  background: var(--c-row-hover);
}

.log-row.is-selected {
  background: var(--c-selected-row);
}

.log-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-text);
  font: inherit;
  text-align: left;
  overflow-wrap: anywhere;
}

.log-empty {
  padding: var(--space-6) var(--space-4);
  font-family: var(--font-sans);
  text-align: center;
  color: var(--c-muted);
}

.log-empty[hidden] {
  display: none;
}

.detail {
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface-2);
}

.detail h2 {
  font-size: var(--fs-sm);
}

.detail dl {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  font-size: 0.8125rem;
}

.detail dt {
  color: var(--c-muted);
}

.detail dd {
  margin: 2px 0 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.detail__mono {
  font-family: var(--font-mono);
}

.detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.detail[data-empty="true"] .detail__body,
.detail[data-empty="false"] .detail__placeholder {
  display: none;
}

.detail__placeholder {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--c-muted);
}

@media (max-width: 760px) {
  .demo__main {
    padding: var(--space-4);
  }

  .demo__tools .field {
    flex: 1 1 100%;
  }

  .demo__tools .field__input {
    width: 100%;
    max-width: none;
  }
}

/* ---------- Rechtstexte ---------- */
.legal {
  padding: 80px 0 110px;
}

.legal__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

.legal__inner--wide {
  gap: var(--space-6);
  max-width: 1100px;
}

.legal__title {
  margin-bottom: var(--space-3);
  font-size: clamp(2rem, 6vw, 3.375rem);
  line-height: 1.1;
}

.legal__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 760px;
}

.legal__lead {
  font-size: 1.0625rem;
  line-height: var(--lh-body);
  color: var(--c-muted);
}

.legal-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 28px var(--space-6);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--c-text-soft);
}

.legal-card h2 {
  margin-bottom: 6px;
  font-size: var(--fs-lg);
}

.legal-card .text-muted {
  color: var(--c-muted);
}

.legal-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-7);
}

.legal-toc {
  display: flex;
  flex: 1 1 240px;
  flex-direction: column;
  gap: 2px;
  padding: 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
}

.legal-toc h2 {
  padding: 0 10px 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c-accent);
}

.legal-toc a {
  display: block;
  min-height: 40px;
  padding: 10px;
  border-radius: var(--radius-sm);
  color: var(--c-muted);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, padding-left 0.25s;
}

.legal-toc a:hover {
  padding-left: var(--space-4);
  background: var(--c-surface-3);
  color: var(--c-white);
}

.legal-sections {
  display: flex;
  flex: 999 1 520px;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.legal-sections .legal-card {
  line-height: 1.75;
}

.legal-sections h2 span {
  color: var(--c-accent);
}

@media (max-width: 640px) {
  .legal {
    padding: var(--space-8) 0 var(--space-9);
  }

  .legal-card {
    padding: var(--space-5);
  }
}
