/* HeldixClient – Webseite: Unterseiten (Funktionen, Zusammen spielen, Warum, Welt, Download, Hilfe und Artikel,
   Entwickler, Neuigkeiten, Status, Das Team, Rechtliches, 404). Nur Besonderheiten; alles Gemeinsame steht in
   design.css und benutzt dessen Tokens. */

/* ---------- Seitenkopf ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(40px, 5vw, 80px) var(--sp-7);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -2;
  height: 640px;
  background: url("/assets/background.svg") center top / cover no-repeat;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 10%, transparent 90%);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42% 70% at 10% 10%, rgba(37, 99, 235, 0.22), transparent 70%),
    radial-gradient(36% 60% at 92% 20%, rgba(139, 92, 246, 0.16), transparent 70%),
    linear-gradient(180deg, transparent, var(--bg) 98%);
}
.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: var(--sp-4);
  max-width: 780px;
}
.page-hero--center .page-hero__inner {
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-8);
}
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}
.page-hero__media {
  margin: 0;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-3);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.breadcrumb a {
  color: var(--text-2);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--text);
}
.page-section-title {
  margin-bottom: var(--sp-5);
}

/* ---------- Werkzeugleiste: Suche und Filter ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.search-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 280px;
  min-width: 0;
}
.search-field .icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-3);
  pointer-events: none;
}
.search-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px 10px 42px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--text);
}
.search-field input::placeholder {
  color: var(--text-3);
}
.search-field input:focus-visible {
  outline: none;
  border-color: var(--c-blue-400);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.28);
}
.search-field--big input {
  min-height: 56px;
  border-radius: var(--r-lg);
  font-size: var(--fs-md);
}
.filter-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.filter-group button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
}
.filter-group button:hover {
  color: var(--text);
}
.filter-group button[aria-pressed="true"] {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: var(--sh-1), var(--sh-inset);
}
.count-soft {
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}
.result-line {
  min-height: 1.5em;
  margin: var(--sp-3) 0;
  color: var(--text-3);
  font-size: var(--fs-sm);
}

/* ---------- Hinweis-Kasten unten auf Seiten ---------- */
.support-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-7);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-accent);
  background: radial-gradient(120% 140% at 0% 0%, rgba(59, 130, 246, 0.14), transparent 60%), var(--surface);
}
.support-box > .icon,
.support-box > .icon-tile {
  flex: none;
}
.support-box > .icon {
  width: 28px;
  height: 28px;
  color: var(--accent-text);
}
.support-box > div {
  flex: 1 1 280px;
  display: grid;
  gap: 4px;
}
.support-box h2 {
  font-size: var(--fs-md);
}
.support-box p {
  color: var(--text-2);
  font-size: var(--fs-sm);
}

/* ---------- Bild mit Text (abwechselnd) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: var(--sp-8);
}
.feature-row + .feature-row {
  margin-top: var(--sp-9);
}
.feature-row--flip > :first-child {
  order: 2;
}
.feature-row__text {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: var(--sp-4);
}
.feature-row__media {
  display: grid;
  gap: var(--sp-3);
  margin: 0;
}
.feature-row__media > figure {
  margin: 0;
}
.feature-row__media figcaption {
  color: var(--text-3);
  font-size: var(--fs-sm);
}
.frame--tight img {
  display: block;
}

/* ---------- Cosmetics (/cosmetics): Rahmen, die Teile des Studios stehen in cosmetics.css ---------- */
.cosmetics-body {
  display: grid;
  gap: var(--sp-5);
  padding-bottom: var(--sp-6);
}
.cosmetics-body > .hint {
  margin: 0;
}

/* ---------- Addon-Store (/addons): Rahmen, Karten und Details stehen in addons.css ---------- */
.store-body {
  display: grid;
  gap: var(--sp-4);
  padding-bottom: var(--sp-7);
}
.store-body > .result-line {
  margin: 0;
}
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: var(--sp-8);
  align-items: start;
}
@media (max-width: 1100px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-2);
  }
}

/* ---------- Funktionen und Module (/module) ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
}
.highlights .card__media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
}
.module-toolbar {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 5;
  margin-bottom: var(--sp-2);
  background: rgba(15, 21, 34, 0.94);
  backdrop-filter: blur(12px);
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: var(--sp-4);
  align-items: start;
}
.module-card {
  scroll-margin-top: calc(var(--header-h) + 90px);
}
.module-card.highlight {
  border-color: var(--line-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22), var(--sh-inset);
}
.module-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}
.module-card__top .icon-tile {
  margin-right: var(--sp-1);
}
.module-card__short {
  margin-top: -6px;
  color: var(--text-3);
  font-size: var(--fs-sm);
}
.module-card__keys {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.module-card__keys li {
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--bg-raised);
  border: 1px solid var(--line);
}
.module-card__more {
  border-top: 1px solid var(--line);
  padding-top: var(--sp-2);
}
.module-card__more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.module-card__more summary::-webkit-details-marker {
  display: none;
}
.module-card__more summary .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--dur) var(--ease);
}
.module-card__more[open] summary .icon {
  transform: rotate(180deg);
}
.module-card__more ul {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  color: var(--text-2);
  font-size: var(--fs-sm);
}
.module-card__hint {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  padding: var(--sp-3);
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--text-2);
  font-size: var(--fs-sm);
}
.module-card__hint .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--accent-text);
}
.module-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

/* Bilder zum Vergrößern in Karten (site.js: data-full) */
.card__media button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.perf-mini {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  margin: calc(-1 * var(--card-pad, var(--sp-5))) calc(-1 * var(--card-pad, var(--sp-5))) 0;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: radial-gradient(70% 90% at 50% 100%, rgba(34, 211, 238, 0.18), transparent 70%), radial-gradient(60% 80% at 20% 0%, rgba(37, 99, 235, 0.28), transparent 70%), var(--bg-raised);
}

/* ---------- Zusammen spielen (/zusammen) ---------- */
.together-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.together-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}
.together-grid .card__media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
}
.mini-steps {
  display: grid;
  gap: var(--sp-3);
  list-style: none;
  counter-reset: schritt;
}
.mini-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: start;
  color: var(--text-2);
  counter-increment: schritt;
}
.mini-steps li::before {
  content: counter(schritt);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--line-accent);
  color: var(--c-blue-300);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.mini-steps strong {
  color: var(--text);
}
.compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}
.compare .card {
  align-content: start;
}
.access-list {
  display: grid;
  gap: var(--sp-3);
  list-style: none;
}
.access-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: start;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--text-2);
  font-size: var(--fs-sm);
}
.access-list strong {
  display: block;
  color: var(--text);
  font-size: var(--fs-base);
}

/* ---------- Warum (/warum) ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
}
.why-grid .card {
  gap: var(--sp-3);
}
.why-grid .card__text a {
  font-weight: 700;
}
.why-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
}
.fact-list {
  display: grid;
  gap: var(--sp-2);
  margin: 0;
}
.fact-list div {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(0, 1.3fr);
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}
.fact-list dt {
  color: var(--text-3);
  font-weight: 600;
}
.fact-list dd {
  margin: 0;
  color: var(--text);
}

/* ---------- Welt (/welt#code) ---------- */
.world-page {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--sp-6);
  align-items: start;
}
.world-card {
  --card-pad: var(--sp-6);
  gap: var(--sp-5);
}
.world-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
}
.world-card__head .icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}
.world-card__head .icon-tile .icon {
  width: 26px;
  height: 26px;
}
.world-card__title {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 220px;
}
.world-card__title h1 {
  font-size: var(--fs-2xl);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.world-host {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--text-2);
}
.world-host .kopf {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}
.world-host strong {
  color: var(--text);
}
.world-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  margin: 0;
}
.world-facts div {
  display: grid;
  gap: 2px;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.world-facts dt {
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.world-facts dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.world-address {
  display: grid;
  gap: var(--sp-2);
}
.world-address__row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 6px 6px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
}
.world-address__row code {
  flex: 1;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: none;
  color: var(--c-blue-300);
  font-size: var(--fs-md);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.world-state {
  display: grid;
  justify-items: center;
  gap: var(--sp-3);
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
}
.world-state .icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}
.world-side {
  display: grid;
  gap: var(--sp-5);
}
.world-page[data-zustand="laden"] .world-card [data-welt-wert] {
  color: transparent;
  border-radius: var(--r-xs);
  background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

/* ---------- Download (/download) ---------- */
.invite-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid rgba(167, 139, 250, 0.4);
  background: radial-gradient(120% 140% at 0% 0%, rgba(139, 92, 246, 0.2), transparent 60%), var(--surface);
}
.invite-banner > div {
  flex: 1 1 260px;
  display: grid;
  gap: 2px;
}
.invite-banner strong {
  font-size: var(--fs-md);
}
.invite-banner span {
  color: var(--text-2);
  font-size: var(--fs-sm);
}
#download-fehler {
  margin-bottom: var(--sp-4);
}
.install-step__note > .icon {
  color: var(--accent-text);
}
.recommend {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-5) var(--sp-7);
  --card-pad: var(--sp-6);
}
.recommend-main {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}
.recommend-text {
  display: grid;
  gap: var(--sp-1);
}
.recommend-text h2 {
  font-size: var(--fs-xl);
}
.recommend-hint {
  margin-top: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  background: var(--reward-soft);
  color: #fde68a;
  font-size: var(--fs-sm);
}
.recommend-actions {
  display: grid;
  gap: var(--sp-3);
  justify-items: stretch;
}
.recommend-actions .btn {
  white-space: normal;
  text-align: center;
}
.recommend-actions .btn.quiet {
  opacity: 0.85;
}
.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}
.system-card {
  align-content: start;
}
.system-card.recommended {
  border-color: var(--line-accent);
  background: radial-gradient(120% 120% at 0% 0%, rgba(59, 130, 246, 0.14), transparent 60%), var(--surface);
}
.system-card.missing {
  opacity: 0.75;
}
.system-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.system-head h3 {
  font-size: var(--fs-md);
}
.system-head p {
  color: var(--text-3);
  font-size: var(--fs-sm);
}
.system-files {
  display: grid;
  gap: var(--sp-2);
}
.system-card [data-knopf] {
  justify-self: start;
}
.file-entry {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.file-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}
.file-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  text-decoration: none;
}
.file-link .icon {
  width: 16px;
  height: 16px;
}
.file-meta {
  color: var(--text-3);
  font-size: var(--fs-xs);
}
.hash-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
}
.hash-label {
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.hash {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-xs);
}
.install-steps {
  display: grid;
  gap: var(--sp-6);
  list-style: none;
  counter-reset: install;
}
.install-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-6);
  counter-increment: install;
}
.install-step__text {
  display: grid;
  gap: var(--sp-2);
}
.install-step__text h3 {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-lg);
}
.install-step__text h3::before {
  content: counter(install);
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--line-accent);
  color: var(--c-blue-300);
  font-size: var(--fs-md);
}
.install-step__text p {
  color: var(--text-2);
}
.install-step__media {
  margin: 0;
}
.install-step__note {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px dashed var(--line-strong);
  background: var(--bg-raised);
  color: var(--text-2);
  font-size: var(--fs-sm);
}
.install-step__note strong {
  color: var(--text);
}
.requirements {
  display: grid;
  gap: 0;
  margin: 0;
}
.requirements div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}
.requirements dt {
  color: var(--text-3);
  font-weight: 600;
}
.requirements dd {
  margin: 0;
}
.version-box {
  display: grid;
  grid-template-columns: minmax(200px, 0.5fr) minmax(0, 1.5fr);
  gap: var(--sp-6);
  --card-pad: var(--sp-6);
}
.version-box h2 {
  font-size: var(--fs-2xl);
}

/* ---------- Versionsverlauf und Neuigkeiten (/neuigkeiten, /download) ---------- */
.release-notes {
  display: grid;
  gap: var(--sp-2);
  padding-left: 20px;
  color: var(--text-2);
}
.release-notes li::marker {
  color: var(--accent-text);
}
.release-notes strong {
  color: var(--text);
}
.release-latest {
  --card-pad: var(--sp-6);
  gap: var(--sp-5);
}
.release-latest__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.release-version {
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: var(--track-tight);
  line-height: 1.1;
}
.release-list {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
  list-style: none;
}
.release-item {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.release-item__head,
.release-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}
.release-date {
  color: var(--text-3);
  font-size: var(--fs-sm);
}
.release-item__head .release-date {
  margin-left: auto;
}
.news-archive {
  display: grid;
  gap: var(--sp-4);
}
.news-archive > .news-card {
  max-width: 820px;
}
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-7);
  align-items: start;
}

/* ---------- Hilfe-Center (/hilfe) ---------- */
.help-search {
  width: min(680px, 100%);
}
.topic-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
}
.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}
.topic-chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}
.topic-chip .icon {
  width: 16px;
  height: 16px;
  color: var(--accent-text);
}
.help-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}
.help-category {
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.help-category-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}
.help-category-head h2 {
  font-size: var(--fs-lg);
}
.help-category-head p {
  color: var(--text-3);
  font-size: var(--fs-sm);
}
.article-list {
  display: grid;
  gap: var(--sp-2);
}
.article-card {
  display: grid;
  gap: 2px;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--dur), background var(--dur);
}
.article-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
}
.article-card small {
  color: var(--accent-text);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.article-card span {
  color: var(--text-2);
  font-size: var(--fs-sm);
}
.search-results .results {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

/* ---------- Artikel (Hilfe und Entwickler) ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: var(--sp-8);
  align-items: start;
}
.article-head {
  display: grid;
  gap: var(--sp-3);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.article-head h1 {
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-tight);
}
.article-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: var(--sp-4);
}
.toc {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
}
.toc p {
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc ol {
  display: grid;
  gap: 4px;
  list-style: none;
}
.toc a {
  display: block;
  padding: 4px 0;
  color: var(--text-2);
  font-size: var(--fs-sm);
  text-decoration: none;
}
.toc a:hover {
  color: var(--text);
}
.side-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
}
.side-link .icon {
  width: 16px;
  height: 16px;
}
.prose {
  margin-top: var(--sp-5);
  color: #d3dbe7;
  font-size: 1.03rem;
  line-height: 1.7;
  max-width: 76ch;
}
.prose > * + * {
  margin-top: var(--sp-4);
}
.prose h2 {
  margin-top: var(--sp-7);
  color: var(--text);
  font-size: var(--fs-xl);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h3 {
  margin-top: var(--sp-5);
  color: var(--text);
  font-size: var(--fs-md);
}
.prose ul,
.prose ol {
  padding-left: 24px;
}
.prose li + li {
  margin-top: 6px;
}
.prose strong {
  color: var(--text);
}
.prose code {
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.callout {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid var(--line-accent);
  background: var(--accent-soft);
}
.callout-tipp {
  border-color: rgba(52, 211, 153, 0.32);
  background: var(--online-soft);
}
.callout-achtung,
.callout-wichtig {
  border-color: rgba(251, 191, 36, 0.35);
  background: var(--reward-soft);
}
.article-figure {
  margin: var(--sp-5) 0 0;
}
.article-figure img {
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-2);
}
.article-figure figcaption {
  margin-top: var(--sp-2);
  color: var(--text-3);
  font-size: var(--fs-sm);
}
.code-block {
  position: relative;
}
.code-lang {
  position: absolute;
  top: 8px;
  right: 12px;
  color: var(--text-3);
  font: 700 11px var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
pre.code {
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: #0a0f1b;
  color: #d6deeb;
  font: 500 14px/1.6 var(--mono);
  overflow-x: auto;
  tab-size: 4;
}
pre.code code {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
}
.tok-kw {
  color: #c792ea;
}
.tok-type {
  color: #82aaff;
}
.tok-str {
  color: #c3e88d;
}
.tok-key {
  color: #89ddff;
}
.tok-num {
  color: #f78c6c;
}
.tok-com {
  color: #8b97b0;
  font-style: italic;
}
.tok-ann {
  color: #ffcb6b;
}
.related {
  margin-top: var(--sp-8);
}
.related h2 {
  margin-bottom: var(--sp-4);
  font-size: var(--fs-lg);
}
.related .article-list {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

/* ---------- Entwickler (/entwickler) ---------- */
.dev-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}
.dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--sp-4);
}
.dev-number {
  color: var(--accent-text);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ---------- Status (/status) ---------- */
.status-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4) var(--sp-5);
  --card-pad: var(--sp-6);
}
.status-hero .status-text {
  flex: 1 1 280px;
  display: grid;
  gap: 4px;
}
.status-hero h2 {
  font-size: var(--fs-xl);
}
.status-hero p {
  color: var(--text-2);
}
.status-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 16px;
  background: var(--surface-3);
}
.status-icon .icon {
  width: 26px;
  height: 26px;
}
.status-hero[data-state="online"] {
  border-color: rgba(52, 211, 153, 0.36);
  background: radial-gradient(120% 140% at 0% 0%, rgba(52, 211, 153, 0.12), transparent 60%), var(--surface);
}
.status-hero[data-state="online"] .status-icon {
  background: var(--online-soft);
  color: var(--c-green-300);
}
.status-hero[data-state="offline"] {
  border-color: rgba(248, 113, 113, 0.36);
  background: radial-gradient(120% 140% at 0% 0%, rgba(248, 113, 113, 0.12), transparent 60%), var(--surface);
}
.status-hero[data-state="offline"] .status-icon {
  background: var(--danger-soft);
  color: var(--danger-text);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: var(--sp-4);
}
.stat-grid.stale {
  opacity: 0.6;
}
.stat-tile {
  display: grid;
  gap: 2px;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.stat-label {
  color: var(--text-3);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.stat-value {
  font-size: var(--fs-xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-value[data-state="online"] {
  color: var(--c-green-300);
}
.stat-value[data-state="offline"] {
  color: var(--danger-text);
}
.stat-note {
  color: var(--text-3);
  font-size: var(--fs-xs);
}

/* ---------- Das Team (/das-team) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--sp-4);
}
.team-grid.empty-grid {
  grid-template-columns: minmax(0, 1fr);
}
.member-card {
  justify-items: center;
  text-align: center;
  gap: var(--sp-3);
  --card-pad: var(--sp-6);
}
.member-card .kopf {
  width: 88px;
  height: 88px;
  border-radius: 18px;
}
.member-card .avatar {
  width: 88px;
  height: 88px;
}
.member-name {
  display: grid;
  justify-items: center;
  gap: var(--sp-2);
}
.member-name h2 {
  font-size: var(--fs-lg);
  overflow-wrap: anywhere;
}
.member-role {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.member-role .rolle {
  height: 24px;
}
.member-title {
  color: var(--accent-text);
  font-weight: 700;
}
.member-about {
  color: var(--text-2);
  font-size: var(--fs-sm);
}
.member-since {
  color: var(--text-3);
  font-size: var(--fs-xs);
}
.badge-legend {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: var(--sp-3);
  list-style: none;
}
.badge-legend li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
}
.badge-legend .rolle {
  height: 36px;
}
.badge-legend span {
  display: grid;
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.badge-legend strong {
  color: var(--text);
  font-size: var(--fs-base);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}

/* ---------- Rechtliches (Impressum, Datenschutz) ---------- */
.legal {
  max-width: 820px;
  color: #d3dbe7;
  line-height: 1.7;
}
.legal h1 {
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-tight);
}
.legal h2 {
  margin-top: var(--sp-7);
  color: var(--text);
  font-size: var(--fs-xl);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal h3 {
  margin-top: var(--sp-5);
  color: var(--text);
  font-size: var(--fs-md);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal p,
.legal ul,
.legal ol,
.legal address,
.legal dl,
.legal table {
  margin-top: var(--sp-3);
}
.legal ul,
.legal ol {
  padding-left: 22px;
}
.legal li + li {
  margin-top: 6px;
}
.legal address {
  font-style: normal;
}
.legal strong {
  color: var(--text);
}
.legal .updated {
  margin-top: var(--sp-2);
  color: var(--text-3);
}
.legal .notice {
  margin-top: var(--sp-4);
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.legal th,
.legal td {
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal-toc {
  margin-top: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
}
.legal-toc ol {
  columns: 2;
  margin-top: var(--sp-2);
}

/* ---------- 404 ---------- */
.notfound {
  display: grid;
  justify-items: center;
  gap: var(--sp-4);
  padding-block: var(--sp-9);
  text-align: center;
}
.notfound__code {
  font-size: clamp(5rem, 3rem + 10vw, 10rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.notfound .btn-group {
  justify-content: center;
}

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1100px) {
  .page-hero__grid,
  .feature-row,
  .world-page,
  .why-band,
  .news-layout,
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-row {
    gap: var(--sp-6);
  }
  .feature-row--flip > :first-child {
    order: 0;
  }
  .highlights,
  .why-grid,
  .compare,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .system-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-side {
    position: static;
    order: -1;
  }
  .install-step {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-4);
  }
  .version-box {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  .highlights,
  .why-grid,
  .compare,
  .contact-grid,
  .together-grid,
  .help-categories,
  .dev-compare {
    grid-template-columns: minmax(0, 1fr);
  }
  .world-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .world-facts div:last-child {
    grid-column: 1 / -1;
  }
  .recommend {
    grid-template-columns: minmax(0, 1fr);
    --card-pad: var(--sp-5);
  }
  .recommend-main .icon-tile {
    display: none;
  }
  .module-toolbar {
    position: static;
  }
  .toolbar {
    padding: var(--sp-2);
  }
  .filter-group {
    width: 100%;
  }
  .page-hero__actions .btn {
    flex: 1 1 auto;
  }
  .requirements div,
  .fact-list div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .legal-toc ol {
    columns: 1;
  }
  .world-card {
    --card-pad: var(--sp-5);
  }
  .support-box {
    padding: var(--sp-5);
  }
}
