/* =====================================================================
   Allstars Command – Tebex-Template · allstars.css
   Lädt NACH shared.css (Struktur/Verhalten aus dem Tebex-Standardtemplate
   „Exo“: Popups, Warenkorb-Drawer, Slider, mobile Navigation) und legt den
   Look von squad-allstars.de darüber (Design-System: _ALLSTARS-HUB/NETWORK.md §4).

   Palette: black #050505 · panel #101114 · steel #272a2f · gold #f4c430 ·
            amber #ff9f1c · ember #f97316 · Text zinc-100…600
   Formen:  rounded-lg (8px), Panels 12px, border-white/10, backdrop-blur,
            dünne Gold-Hairline oben an Panels/Karten, Versalien mit weiter
            Laufweite, Gold nur als Akzent.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Tokens (überschreiben die Variablen aus shared.css)
   --------------------------------------------------------------------- */
:root {
  --gold: #f4c430;
  --amber: #ff9f1c;
  --ember: #f97316;
  --black: #050505;
  --panel: #101114;
  --steel: #272a2f;

  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;

  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.15);
  --tile: rgba(255, 255, 255, 0.05);
  --gold-line: linear-gradient(90deg, transparent, rgba(244, 196, 48, 0.45), transparent);

  --radius: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.24);
  --shadow-panel: 0 18px 48px rgba(0, 0, 0, 0.28);
  --glow-gold: 0 0 22px rgba(244, 196, 48, 0.16);

  --header-h: 72px;
  --content-max: 80rem;
  --header-max: 100rem; /* Header darf breiter sein als der Inhalt, damit lange Kategorienamen Platz haben */
  --gutter: 16px;

  /* shared.css */
  --color-text: var(--zinc-100);
  --color-text-darker: var(--zinc-300);
  --color-text-secondary: var(--zinc-400);
  --color-text-dark: var(--black);
  --color-bg: var(--black);
  --color-brighter-bg: var(--panel);
  --color-primary: var(--gold);
  --color-primary-hover: var(--amber);
  --color-primary-text: var(--black);
  --color-primary-text-hover: var(--black);
  --color-secondary: var(--steel);
  --color-secondary-hover: #3a3e45;
  --color-secondary-text: var(--zinc-200);
  --color-secondary-text-hover: var(--gold);
  --color-tertiary: transparent;
  --color-tertiary-hover: rgba(255, 255, 255, 0.06);
  --color-tertiary-text: var(--zinc-300);
  --color-tertiary-text-hover: var(--gold);
  --color-removed: #f87171;
  --color-sale-banner-bg: rgba(244, 196, 48, 0.12);
  --color-sale-banner-text: var(--gold);
  --btn-size: 44px;
  --widget-padding: 16px;
  --content-padding: var(--gutter);
  --content-inner-width: 1280px;
  --sidebar-width: 210px;
  --bg-image: none;

  /* Tebex-Pflichtfooter */
  --tebex-legal-footer-background-color: #050505;
  --tebex-legal-footer-border-color: rgba(255, 255, 255, 0.1);
  --tebex-legal-footer-text-color: #a1a1aa;
  --tebex-legal-footer-logo-color: #a1a1aa;
  --tebex-legal-footer-max-width: var(--content-max);

  color-scheme: dark;
}

@media (width > 640px) {
  :root { --gutter: 24px; }
}

@media (width > 960px) {
  :root { --content-padding: var(--gutter); }
}

@media (width > 1024px) {
  :root { --gutter: 32px; }
}

/* ---------------------------------------------------------------------
   2. Grundlagen
   --------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scrollbar-color: var(--steel) var(--black);
}

body.allstars {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--zinc-100);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(244, 196, 48, 0.35);
  color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--steel); border: 2px solid var(--black); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--zinc-600); }

.muted { color: var(--zinc-400); }

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Leerer Eyebrow (Schema-Wert nicht gesetzt) nimmt keinen Platz ein */
.eyebrow:empty {
  display: none;
}

/* ---------------------------------------------------------------------
   3. Hintergrund (fix): Bild, Ambient-Glows, Gold-Gitter, Fades, Scanline
   --------------------------------------------------------------------- */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--black);
  pointer-events: none;
}

.site-bg > div {
  position: absolute;
  inset: 0;
}

.site-bg-image {
  background: var(--bg-image) center center / cover no-repeat;
  opacity: 0.5;
}

.site-bg-glow {
  background:
    radial-gradient(circle at 50% 40%, rgba(244, 196, 48, 0.12), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.52), rgba(5, 5, 5, 0.88) 68%, rgba(5, 5, 5, 0.96));
}

.site-bg-grid {
  inset: -64px 0 0 -64px;
  background-image:
    linear-gradient(rgba(244, 196, 48, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 196, 48, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.14;
  animation: gridDrift 24s linear infinite;
}

.site-bg-fade-top {
  bottom: auto;
  height: 128px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
}

.site-bg-fade-bottom {
  top: auto;
  height: 176px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent);
}

.site-bg-scan {
  background: linear-gradient(90deg, transparent, rgba(244, 196, 48, 0.08), transparent);
  opacity: 0.35;
  animation: scanline 7s ease-in-out infinite;
}

@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(64px, 64px, 0); }
}

@keyframes scanline {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* ---------------------------------------------------------------------
   4. Seitengerüst
   --------------------------------------------------------------------- */
.allstars .site {
  display: flex;
  flex-direction: column;
  align-items: stretch; /* shared.css setzt "start" (Grid) – als Flex-Spalte würde der Footer sonst auf Inhaltsbreite schrumpfen */
  gap: 0;
  min-height: 100vh;
  padding-top: var(--header-h);
  font-size: 15px;
}

.allstars .site-content {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter) 32px;
}

.allstars .site-content-narrow {
  max-width: 40rem;
}

.allstars .site-sale-banner {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--content-max);
  margin: 20px auto 0;
  padding: 12px 16px;
  border: 1px solid rgba(244, 196, 48, 0.3);
  border-radius: var(--radius);
  background: var(--color-sale-banner-bg);
  color: var(--color-sale-banner-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

/* ---------------------------------------------------------------------
   5. Header – fixe Leiste, 72px, Logo-Kachel + Schriftzug, Pills, CTAs
   --------------------------------------------------------------------- */
.allstars .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  max-width: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.42);
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

/* Blur auf einem Pseudo-Element: backdrop-filter direkt am Header würde ihn zum Containing Block
   der fixen mobilen Navigation machen (sie wäre dann nur 72px hoch). */
.allstars .site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  pointer-events: none;
}

.allstars .site-header.is-scrolled,
.allstars:not(.page-index) .site-header {
  background: rgba(0, 0, 0, 0.78);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

/* Spezifität bewusst hoch: shared.css setzt dem Header-Inner sonst 355px Höhe (Exo-Hero). */
body.allstars .site-header .site-header-inner {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Logo + Schriftzug */
.hdr-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 40px;
  padding: 6px;
  border: 1px solid rgba(244, 196, 48, 0.25);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 18px rgba(244, 196, 48, 0.12);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

@media (width > 640px) {
  .brand-logo { width: 64px; height: 44px; }
  .brand-title { font-size: 16px; }
}

/* Netzwerk-Dropdown */
.network {
  position: relative;
  flex: none;
}

.network-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--tile);
  color: var(--zinc-300);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.network-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.network-toggle:hover {
  border-color: rgba(244, 196, 48, 0.4);
  color: var(--gold);
}

.network.is-open .network-toggle {
  border-color: rgba(244, 196, 48, 0.6);
  background: rgba(244, 196, 48, 0.15);
  color: var(--gold);
}

.network.is-open .network-toggle svg {
  transform: rotate(180deg);
}

.network-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  z-index: 40;
  width: 288px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.network-head {
  margin: 0;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.network-menu ul {
  padding: 8px;
}

.network-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius);
  transition: background-color 0.15s;
}

.network-menu li a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.network-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.6);
}

.network-logo img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
}

.network-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.network-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.network-sub {
  font-size: 11px;
  color: var(--zinc-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Aktionen rechts */
.hdr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.hdr-login,
.hdr-user,
.hdr-server,
.hdr-menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--tile);
  color: var(--zinc-300);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.hdr-login:hover,
.hdr-user:hover,
.hdr-server:hover,
.hdr-menu:hover {
  border-color: rgba(244, 196, 48, 0.4);
  color: var(--gold);
}

.hdr-login svg,
.hdr-user svg {
  width: 16px;
  height: 16px;
}

.hdr-user-out { display: none; }
.hdr-user:hover .hdr-user-name { display: none; }
.hdr-user:hover .hdr-user-out { display: inline; }

.hdr-server {
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.hdr-server-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
}

.hdr-basket {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(244, 196, 48, 0.8);
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--black);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--glow-gold);
  cursor: pointer;
  transition: background-color 0.15s;
}

.hdr-basket:hover {
  background: var(--color-primary-hover);
}

.hdr-basket svg {
  width: 16px;
  height: 16px;
}

.hdr-basket-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--black);
  color: var(--gold);
  font-size: 11px;
}

.hdr-menu {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  color: #fff;
}

.hdr-menu svg {
  width: 22px;
  height: 22px;
}

@media (width > 960px) {
  .allstars .hdr-menu { display: none; }
}

/* Bis 1600px nur Icons in den Aktionen (Login, Warenkorb), damit die Kategorie-Pills ungekürzt Platz haben.
   Gemessen am Live-Shop: 6 Menüpunkte + Discord brauchen rund 930px. */
@media (width <= 1600px) {
  .hdr-basket-label,
  .hdr-login-label,
  .hdr-user-name,
  .hdr-user-out,
  .hdr-server-text { display: none; }

  .hdr-login,
  .hdr-user,
  .hdr-server { width: 36px; padding: 0; justify-content: center; }

  .hdr-user:hover .hdr-user-out { display: none; }
  .hdr-basket { padding: 0 10px; }
}

@media (width <= 400px) {
  .brand-text { display: none; }
}

/* ---------------------------------------------------------------------
   6. Navigation – Pills (Desktop) / Drawer (mobil)
   --------------------------------------------------------------------- */
@media (width > 960px) {
  .allstars .navigation-horizontal {
    display: flex;
    justify-content: flex-end;
    flex: 1 1 0;
    min-width: 0;
  }

  .allstars .navigation-horizontal .menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    padding: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    overflow: visible;
  }

  /* Startseite = Logo-Kachel; die Pill nur im mobilen Menü */
  .allstars .navigation-horizontal .menu > li.nav-home {
    display: none;
  }

  /* Pills schrumpfen bei wenig Platz gleichmäßig (Ellipsis) statt unter das Logo zu laufen:
     kurze Namen behalten ihre Breite (max-content), lange teilen sich den Rest. */
  .allstars .navigation-horizontal .menu > li {
    flex: 1 1 0;
    min-width: 0;
    max-width: max-content;
  }

  .allstars .navigation-horizontal .menu > li.nav-cta {
    flex: none;
  }

  .allstars .navigation-horizontal .has-children > a {
    flex: 1 1 auto;
    min-width: 0;
  }

  .allstars .navigation-horizontal .menu > li > a {
    display: block;
    height: 36px;
    max-width: 100%;
    padding: 0 12px;
    line-height: 34px;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--zinc-300);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: border-color 0.15s, color 0.15s, background-color 0.15s;
  }

  .allstars .navigation-horizontal .menu > li > a:hover {
    border-color: rgba(244, 196, 48, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: var(--gold);
  }

  .allstars .navigation-horizontal .menu > li > a.link-active {
    border-color: rgba(244, 196, 48, 0.6);
    background: rgba(244, 196, 48, 0.9);
    color: var(--black);
  }

  .allstars .navigation-horizontal .has-children {
    gap: 0;
  }

  .allstars .navigation-horizontal .has-children::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
  }

  .allstars .navigation-horizontal .has-children .toggle {
    --btn-size: 28px;
    color: var(--zinc-400);
  }

  .allstars .navigation-horizontal .has-children > ul {
    top: calc(100% + 10px);
    left: 0;
    min-width: 200px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
  }

  .allstars .navigation-horizontal li li a {
    max-width: none;
    padding: 8px 12px;
    border-radius: var(--radius);
    color: var(--zinc-200);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
  }

  .allstars .navigation-horizontal li li a:hover,
  .allstars .navigation-horizontal li li a.link-active {
    color: var(--black) !important;
    background: var(--gold) !important;
  }

  .allstars .nav-cta {
    margin-left: 8px;
  }

  .allstars .navigation-horizontal .menu > li > a.nav-discord {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border-color: rgba(244, 196, 48, 0.8);
    background: var(--color-primary);
    color: var(--black);
    box-shadow: 0 0 20px rgba(244, 196, 48, 0.16);
  }

  .allstars .navigation-horizontal .menu > li > a.nav-discord:hover {
    background: var(--color-primary-hover);
    color: var(--black);
  }

  .allstars .navigation-horizontal .close-navigation {
    display: none;
  }
}

/* Schmalere Desktops: Pills stufenweise kompakter, zuletzt Discord nur als Icon */
@media (width > 960px) and (width <= 1400px) {
  .allstars .navigation-horizontal .menu > li > a {
    padding: 0 10px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .allstars .navigation-horizontal .menu > li > a.nav-discord {
    padding: 0 12px;
  }
}

@media (width > 960px) and (width <= 1300px) {
  .allstars .navigation-horizontal .menu {
    gap: 2px;
  }

  .allstars .navigation-horizontal .menu > li > a {
    padding: 0 8px;
    letter-spacing: 0.04em;
  }
}

@media (width > 960px) and (width <= 1100px) {
  .allstars .navigation-horizontal .menu > li > a.nav-discord {
    padding: 0 10px;
  }

  .allstars .navigation-horizontal .menu > li > a.nav-discord span {
    display: none;
  }
}

.nav-discord svg {
  width: 16px;
  height: 16px;
}

@media (width <= 960px) {
  .allstars .site-navigation {
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .allstars .site-navigation .menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    inset: 0 60px 0 0;
    padding: calc(var(--header-h) + 16px) 16px 16px;
    border-right: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.96);
    font-size: 14px;
    line-height: 1.3;
  }

  .allstars .site-navigation li {
    width: 100%;
  }

  .allstars .site-navigation .menu > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    color: var(--zinc-200);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .allstars .site-navigation .menu > li > a.link-active {
    border-color: rgba(244, 196, 48, 0.7);
    background: rgba(244, 196, 48, 0.9);
    color: var(--black);
  }

  .allstars .site-navigation .menu > li > a.nav-discord {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--black);
  }

  .allstars .site-navigation .has-children {
    position: relative;
    display: block;
  }

  .allstars .site-navigation .has-children .toggle {
    --btn-size: 40px;
    position: absolute;
    top: 3px;
    right: 4px;
    color: var(--zinc-300);
  }

  .allstars .site-navigation .has-children > ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 8px 0 0 16px;
  }

  .allstars .site-navigation .has-children:not(.expanded) > ul {
    display: none;
  }

  .allstars .site-navigation ul ul a {
    display: block;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    color: var(--zinc-300);
    font-size: 13px;
  }

  .allstars .site-navigation ul ul a.link-active {
    border-color: rgba(244, 196, 48, 0.6);
    color: var(--gold);
  }

  .allstars .site-navigation .close-navigation {
    top: 14px;
    right: 72px;
    color: #fff;
    --btn-icon-size: 24px;
  }

  .allstars .site-navigation .log-out {
    margin-top: auto;
  }

  .allstars .site-navigation .log-out a {
    color: var(--zinc-400);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
}

/* ---------------------------------------------------------------------
   7. Seitenkopf + Panel (SAG PageShell)
   --------------------------------------------------------------------- */
.page-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 28px var(--gutter) 20px;
}

.page-head-text {
  min-width: 0;
}

.page-title {
  margin: 8px 0 0;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  overflow-wrap: anywhere;
}

.page-head-line {
  display: none;
  flex: 1;
  height: 1px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, rgba(244, 196, 48, 0.3), transparent);
}

@media (width > 640px) {
  .page-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 36px;
  }

  .page-title { font-size: 48px; }
  .page-head-line { display: block; }
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.44);
  box-shadow: var(--shadow-panel);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.panel-hairline,
.product-hairline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--gold-line);
  pointer-events: none;
}

.panel-grid {
  display: grid;
  gap: 20px;
  padding: 16px;
}

.panel > .panel-main {
  margin: 16px;
}

@media (width > 640px) {
  .panel-grid { padding: 20px; }
  .panel > .panel-main { margin: 20px; }
}

@media (width > 960px) {
  .panel-with-sidebar .panel-grid {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    gap: 24px;
  }

  .allstars.is-sidebar-right .panel-with-sidebar .panel-grid {
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  }

  .allstars.is-sidebar-right .panel-with-sidebar .store-sidebar {
    order: 2;
  }

  /* Inhaltsbox endet mit ihrem Inhalt und wird nicht auf die Höhe einer langen Seitenleiste gestreckt */
  .panel-with-sidebar .panel-main {
    align-self: start;
  }
}

.panel-main {
  min-width: 0;
  min-height: 280px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.26);
}

@media (width > 640px) {
  .panel-main { padding: 24px; }
}

@media (width > 1024px) {
  .panel-main { padding: 28px; }
}

/* ---------------------------------------------------------------------
   8. Seitenleiste: Kategorien-Block + Tebex-Module (Widgets)
   --------------------------------------------------------------------- */
.store-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* Mobil zuerst die Inhalte (Pakete), dann Kategorien und Module */
@media (width <= 960px) {
  .panel-grid .store-sidebar {
    order: 2;
  }
}

/* Bewusst nicht sticky und ohne eigene Scrollleiste: Mit Kategorien plus Tebex-Modulen ist die Seitenleiste
   meist höher als das Fenster – sie läuft deshalb normal mit der Seite mit. */
@media (width > 960px) {
  .store-sidebar {
    align-self: start;
  }
}

.cat-nav,
.allstars .widget {
  position: relative;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    var(--gold-line) top center / 100% 1px no-repeat,
    rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.allstars .widget {
  padding: 16px;
}

.allstars .widget + .widget {
  margin-top: 0;
}

.cat-nav-title,
.allstars .widget-title {
  margin: 0 0 12px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.allstars .widget-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
  padding: 0;
  text-align: left;
}

.cat-nav-list {
  display: grid;
  gap: 8px;
}

.cat-nav-item {
  display: block;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--zinc-300);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.cat-nav-item:hover {
  border-color: rgba(244, 196, 48, 0.45);
  color: var(--gold);
}

.cat-nav-item.is-active {
  border-color: rgba(244, 196, 48, 0.6);
  background: rgba(244, 196, 48, 0.15);
  color: var(--gold);
}

.cat-nav-sub {
  margin-left: 12px;
  font-size: 13px;
}

/* Widget-Inhalte */
.allstars .widget .badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.allstars .widget .badge-success {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.1);
  color: #6ee7b7;
}

.allstars .widget .badge-danger {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
}

.allstars .widget-server-status .widget-content {
  text-align: left;
}

.allstars .widget-server-status .server-address {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.allstars .widget-server-status .server-address:hover {
  color: var(--gold);
}

.allstars .widget-server-status p {
  font-size: 13px;
  color: var(--zinc-400);
}

.allstars .widget-server-status p strong {
  color: var(--zinc-100);
}

.allstars .widget-recent .purchases {
  display: grid;
  gap: 8px;
}

.allstars .widget-recent .purchase {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.26);
}

.allstars .widget-recent .avatar {
  width: 32px;
  height: 32px;
  max-width: none;
  max-height: none;
  border-radius: 6px;
}

.allstars .widget-recent .username {
  font-size: 13px;
  color: #fff;
}

.allstars .widget-recent p {
  font-size: 12px;
  color: var(--zinc-400);
}

.allstars .widget-recent .price strong {
  color: var(--gold);
}

.allstars .widget-recent time {
  font-size: 11px;
  opacity: 0.7;
}

.allstars .widget-recent .empty,
.allstars .widget-top-donator .empty {
  font-size: 13px;
  color: var(--zinc-400);
}

.allstars .widget-top-donator .widget-content {
  text-align: center;
}

.allstars .widget-top-donator .avatar {
  width: 72px;
  height: 72px;
  margin: 4px auto 12px;
  border: 1px solid rgba(244, 196, 48, 0.3);
  border-radius: var(--radius);
  object-fit: cover;
}

.allstars .widget-top-donator .username {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.allstars .widget-top-donator p {
  font-size: 13px;
  color: var(--zinc-400);
}

.allstars .widget-top-donator strong {
  color: var(--gold);
}

.allstars .widget-goal .progress,
.allstars .widget-community-goal .progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.allstars .widget-goal .progress-bar,
.allstars .widget-community-goal .progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 12px rgba(244, 196, 48, 0.4);
}

.allstars .widget-goal .progress-bar.striped,
.allstars .widget-community-goal .progress-bar.striped {
  background: var(--color-primary) linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary) 33%, rgba(255, 255, 255, 0.35) 33%, rgba(255, 255, 255, 0.35) 66%, var(--color-primary) 66%, var(--color-primary) 100%) repeat;
  background-size: 24px 100%;
}

.allstars .widget-goal p,
.allstars .widget-community-goal p,
.allstars .widget-community-goal .descr {
  font-size: 13px;
  color: var(--zinc-400);
}

.allstars .widget-goal p strong,
.allstars .widget-community-goal p strong {
  color: #fff;
}

.allstars .widget-gift-card .gift-card-input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 14px;
}

.allstars .widget-gift-card .gift-card-input:focus {
  border-color: rgba(244, 196, 48, 0.6);
}

.allstars .widget-gift-card .check {
  width: 100%;
}

.allstars .widget .alert {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
}

.allstars .widget .alert-danger { border-color: rgba(248, 113, 113, 0.3); color: #fca5a5; }
.allstars .widget .alert-warning { border-color: rgba(255, 159, 28, 0.3); color: var(--amber); }
.allstars .widget .alert-success { border-color: rgba(52, 211, 153, 0.3); color: #6ee7b7; }

.allstars .widget-text .widget-content {
  font-size: 13px;
  line-height: 1.6;
  color: var(--zinc-300);
}

.allstars .widget-featured .store-product {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.allstars .widget-featured .product-hairline {
  display: none;
}

/* ---------------------------------------------------------------------
   9. Pakete – Karten, Liste, Detailansicht
   --------------------------------------------------------------------- */
.allstars .category-description {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  font-size: 15px;
  line-height: 1.6;
  color: var(--zinc-300);
}

.allstars .no-products {
  padding: 32px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--zinc-400);
  font-size: 15px;
  text-align: center;
}

.store-products-grid,
.store-products-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.allstars .store-products-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.allstars .store-product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 9, 11, 0.62);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  text-align: left;
  transition: border-color 0.15s, transform 0.15s;
}

.allstars .store-product:hover {
  border-color: rgba(244, 196, 48, 0.3);
}

.allstars .store-product.is-subscription {
  border-color: rgba(244, 196, 48, 0.22);
}

.allstars .store-product .image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
}

.allstars .store-product .image {
  width: auto;
  max-width: 100%;
  max-height: 160px;
  margin: 0;
  padding: 8px;
  object-fit: contain;
}

.allstars .store-product .image-default {
  width: 100%;
  height: 120px;
  aspect-ratio: auto;
}

.allstars .store-product .image-default::before {
  width: 56px;
  height: 56px;
  background-color: rgba(244, 196, 48, 0.75);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5 14.9 8.6l6.6.8-4.9 4.6 1.3 6.5L12 17.3 6.1 20.5l1.3-6.5L2.5 9.4l6.6-.8Z'/%3E%3C/svg%3E") center center / contain no-repeat;
}

.allstars .store-product .image-default-large {
  height: 200px;
}

.allstars .store-product .image-default-large::before {
  width: 80px;
  height: 80px;
}

.product-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.allstars .store-product .product-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
}

.allstars .store-product .product-title a {
  color: inherit;
}

.allstars .store-product .product-title a:hover,
.allstars .store-product .image-link:hover ~ .product-head .product-title a {
  color: var(--gold);
}

.product-badge {
  flex: none;
  padding: 4px 8px;
  border: 1px solid rgba(244, 196, 48, 0.4);
  border-radius: 999px;
  background: rgba(244, 196, 48, 0.15);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.product-teaser {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.55;
  color: var(--zinc-400);
}

.product-teaser * {
  margin: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  text-align: left !important;
}

.product-teaser ul,
.product-teaser ol {
  padding-left: 1.1em;
}

.product-teaser li {
  display: list-item;
}

.product-teaser li::marker {
  color: var(--gold);
}

/* Tabellen (z. B. ein Rang-Vergleich in der Paketbeschreibung) passen nicht in den dreizeiligen Teaser */
.product-teaser table {
  display: none !important;
}

.allstars .store-product .countdown {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
}

.allstars .store-product .actions {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: auto;
  overflow: visible;
}

.allstars .store-product .actions .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.allstars .store-product .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  width: auto;
  margin: 0;
  font-size: 13px;
  color: var(--zinc-400);
}

.allstars .store-product .price strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
}

.allstars .store-product .price .discount {
  margin: 0;
  font-size: 13px;
  color: var(--zinc-500);
  text-decoration: line-through;
}

.price-period {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zinc-500);
}

.price-note {
  font-size: 13px;
  color: var(--zinc-300);
}

.allstars .store-product .half {
  flex: 1 1 calc(50% - 4px);
}

.allstars .store-product .wide {
  flex: 1 1 100%;
}

.allstars .store-product .gift {
  flex: none;
  width: var(--btn-size);
}

/* Pakete mit Abo UND Einzelkauf: auf Karten untereinander, sonst werden beide Beschriftungen abgeschnitten */
.allstars .store-products-grid .store-product .half,
.allstars .store-products-images .store-product .half,
.allstars .widget-featured .store-product .half {
  flex: 1 1 100%;
}

/* Listenansicht */
@media (width > 640px) {
  .allstars .store-products-list .store-product {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
  }

  .allstars .store-products-list .image-link {
    flex: none;
    width: 72px;
    height: 56px;
    min-height: 0;
  }

  .allstars .store-products-list .image {
    max-height: 48px;
    padding: 4px;
  }

  .allstars .store-products-list .image-default {
    height: 56px;
  }

  .allstars .store-products-list .image-default::before {
    width: 28px;
    height: 28px;
  }

  .allstars .store-products-list .product-head {
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
  }

  .allstars .store-products-list .product-teaser {
    display: none;
  }

  .allstars .store-products-list .store-product .actions {
    flex: none;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin: 0;
  }

  .allstars .store-products-list .store-product .actions .buttons {
    flex-wrap: nowrap;
  }

  .allstars .store-products-list .store-product .half,
  .allstars .store-products-list .store-product .wide {
    flex: 0 0 auto;
    min-width: 150px;
  }
}

/* Detailansicht (Seite + Popup) */
.allstars .store-product-full {
  display: flex;
  gap: 20px;
  padding-bottom: 24px;
}

.allstars .store-product-full .product-title {
  font-size: 26px;
}

/* Paketseite: Der Name steht schon groß im Seitenkopf – im Panel bleiben nur Abo-Badge und Countdown.
   Im Popup (kein Seitenkopf) bleibt der Titel sichtbar, weil es nicht in .site-content liegt. */
.page-package .site-content .store-product-full > .product-head .product-title {
  font-size: 0;
  line-height: 0;
}

.page-package .site-content .store-product-full > .product-head .product-title .countdown {
  margin-top: 0;
  font-size: 11px;
  line-height: 1.4;
}

.page-package .site-content .store-product-full > .product-head:not(:has(.product-badge, .countdown)) {
  display: none;
}

.allstars .store-product-full .image {
  align-self: center;
  max-height: 320px;
  padding: 0;
}

.allstars .store-product-full .actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  order: 1;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin: 0 -16px -24px;
  padding: 16px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(5, 5, 5, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

@media (width > 640px) {
  .allstars .store-product-full .actions {
    margin: 0 -24px -24px;
    padding: 16px 24px;
  }
}

@media (width > 1024px) {
  .allstars .store-product-full .actions {
    margin: 0 -28px -24px;
    padding: 16px 28px;
  }
}

.allstars .store-product-full .actions .buttons {
  flex: 1 1 320px;
  justify-content: flex-end;
}

.allstars .store-product-full .actions .half,
.allstars .store-product-full .actions .wide {
  flex: 0 1 220px;
}

.allstars .store-product-full .descr {
  font-size: 15px;
  line-height: 1.65;
  color: var(--zinc-300);
}

.allstars .store-product-full .descr h1,
.allstars .store-product-full .descr h2,
.allstars .store-product-full .descr h3 {
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.allstars .store-product-full .descr ul,
.allstars .store-product-full .descr ol {
  margin-left: 1.2em;
}

.allstars .store-product-full .descr li::marker {
  color: var(--gold);
}

.allstars .media-slider .slider {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
}

.allstars .media-slider .thumb {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
}

.allstars .media-slider .thumb.active {
  border-color: rgba(244, 196, 48, 0.6);
}

/* ---------------------------------------------------------------------
   10. Buttons, Mengenfeld
   --------------------------------------------------------------------- */
.allstars .btn-primary,
.allstars .btn-secondary,
.allstars .btn-tertiary {
  height: var(--btn-size);
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 800;
  line-height: calc(var(--btn-size) - 2px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.allstars .btn-primary {
  --btn-color-bg: var(--color-primary);
  --btn-color-text: var(--black);
  --btn-color-bg-hover: var(--color-primary-hover);
  --btn-color-text-hover: var(--black);
  border-color: rgba(244, 196, 48, 0.8);
  box-shadow: var(--glow-gold);
}

.allstars .btn-secondary {
  --btn-color-bg: rgba(255, 255, 255, 0.05);
  --btn-color-text: var(--zinc-200);
  --btn-color-bg-hover: rgba(255, 255, 255, 0.08);
  --btn-color-text-hover: var(--gold);
  border-color: var(--line-strong);
}

.allstars .btn-secondary:hover,
.allstars .btn-secondary:focus {
  border-color: rgba(244, 196, 48, 0.45);
}

.allstars .btn-tertiary {
  --btn-color-bg: transparent;
  --btn-color-text: var(--zinc-300);
  --btn-color-bg-hover: rgba(255, 255, 255, 0.04);
  --btn-color-text-hover: var(--gold);
}

.allstars .btn-tertiary:hover,
.allstars .btn-tertiary:focus {
  border-color: rgba(244, 196, 48, 0.35);
}

/* Glyph-Buttons (Icon per Maske, Text unsichtbar) – Spezifität über .btn-secondary/.btn-tertiary heben */
.allstars .btn-glyph,
.allstars .btn-secondary.btn-glyph,
.allstars .btn-tertiary.btn-glyph {
  width: var(--btn-size);
  padding: 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
}

.allstars .store-product .gift {
  --btn-color-text: var(--zinc-300);
  --btn-color-text-hover: var(--gold);
}

.allstars .quantity-field {
  --btn-size: 42px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(244, 196, 48, 0.4);
  border-radius: var(--radius);
  background: rgba(244, 196, 48, 0.08);
  color: var(--zinc-100);
}

.allstars .quantity-field .open-basket {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.allstars .quantity-field input[type=number] {
  font-weight: 800;
  color: #fff;
}

.allstars .quantity-field .adjust {
  --btn-size: 42px;
  border: 0;
  border-radius: 0;
  color: var(--zinc-300);
}

.allstars .quantity-field .adjust:hover {
  border-color: transparent;
  color: var(--gold);
}

/* ---------------------------------------------------------------------
   11. Startseite (Hero wie SAG Home)
   --------------------------------------------------------------------- */
.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px var(--gutter) 32px;
  text-align: center;
}

@media (width > 1024px) {
  .home-hero {
    gap: 28px;
    padding-top: 56px;
  }
}

.home-logo {
  height: 112px;
  max-width: 78vw;
  object-fit: contain;
  opacity: 0.95;
  mix-blend-mode: screen;
  filter: saturate(0.9) contrast(1.25) drop-shadow(0 0 32px rgba(244, 196, 48, 0.16));
}

@media (width > 640px) {
  .home-logo { height: 144px; }
}

@media (width > 1024px) {
  .home-logo { height: 176px; }
}

.home-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 48rem;
}

.home-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

@media (width > 640px) {
  .home-title { font-size: 36px; }
}

.home-tagline {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--zinc-300);
}

.home-tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 64rem;
}

@media (width > 480px) {
  .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (width > 640px) {
  .home-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (width > 1024px) {
  .home-tiles { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

.home-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 9, 11, 0.58);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  text-align: left;
  transition: border-color 0.15s, transform 0.15s;
}

.home-tile:hover {
  border-color: rgba(244, 196, 48, 0.4);
  transform: translateY(-1px);
}

.tile-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid rgba(244, 196, 48, 0.2);
  border-radius: var(--radius);
  background: rgba(244, 196, 48, 0.1);
  color: var(--gold);
}

.tile-icon svg {
  width: 17px;
  height: 17px;
}

.tile-icon img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
}

.tile-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tile-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (width <= 640px) {
  .tile-name {
    font-size: 12px;
    letter-spacing: 0.08em;
  }
}

.tile-sub {
  font-size: 11px;
  color: var(--zinc-400);
}

.home-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 48rem;
}

@media (width > 640px) {
  .home-ctas {
    flex-direction: row;
    justify-content: center;
  }
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.cta svg {
  width: 18px;
  height: 18px;
}

.cta-primary {
  border-color: rgba(244, 196, 48, 0.8);
  background: var(--color-primary);
  color: var(--black);
  box-shadow: var(--glow-gold);
}

.cta-primary:hover {
  background: var(--color-primary-hover);
}

.cta-secondary {
  border-color: var(--line-strong);
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.cta-secondary:hover {
  border-color: rgba(244, 196, 48, 0.5);
  color: var(--gold);
}

/* ---------------------------------------------------------------------
   12. Textseiten, Formulare
   --------------------------------------------------------------------- */
.allstars .store-text {
  padding: 24px;
  border-radius: var(--radius);
  background: transparent;
  font-size: 15px;
  line-height: 1.65;
  color: var(--zinc-300);
}

.allstars .store-text h1,
.allstars .store-text h2,
.allstars .store-text h3,
.allstars .store-text h4 {
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: left;
  color: #fff;
}

.allstars .text-content h2 { font-size: 24px; }
.allstars .text-content h3 { font-size: 18px; }

/* Nur Textlinks – Buttons (.btn-*) ausnehmen, sonst steht goldene Schrift auf goldenem Button
   (so war „Login via Discord“ im Live-Shop unsichtbar). */
.allstars .text-content a:not([class*="btn-"]) {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(244, 196, 48, 0.3);
  text-underline-offset: 4px;
}

.allstars .text-content a:not([class*="btn-"]):hover {
  text-decoration-color: var(--gold);
}

/* Tabellen in Beschreibungen und eigenen Seiten, z. B. der Rang-Vergleich (template/snippets/rang-vergleich.html).
   Greift auch ohne Klassen, falls der Tebex-Editor sie entfernt; .table-scroll, .rank-table, .yes/.no, .is-featured verfeinern.
   .table-scroll: Rahmen, der seitlich scrollt, wenn die Box schmaler ist als die Tabelle (Tebex-Kategorien mit Seitenleiste
   sind auf 1024–1300 px Fensterbreite nur 600–850 px breit). Die erste Spalte bleibt dann stehen.
   Alle Zellen haben deckende Hintergründe, damit unter der stehenden ersten Spalte nichts durchscheint. */
.allstars .text-content table {
  width: 100%;
  margin: 8px 0 24px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow-card);
  font-size: 14px;
  line-height: 1.45;
}

.allstars .text-content .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 196, 48, 0.45) transparent;
  margin: 8px 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-card);
}

/* Im Rahmen: kein eigener Rand, und overflow: visible, sonst wirkt position: sticky nicht */
.allstars .text-content .table-scroll > table {
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.allstars .text-content th,
.allstars .text-content td {
  padding: 12px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background-color: var(--panel);
  text-align: center;
  vertical-align: middle;
  color: var(--zinc-300);
}

.allstars .text-content th:first-child,
.allstars .text-content td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 180px;
  padding-left: 14px;
  text-align: left;
  color: var(--zinc-200);
  box-shadow: 1px 0 0 var(--line);
}

.allstars .text-content tr:last-child > th,
.allstars .text-content tr:last-child > td {
  border-bottom: 0;
}

.allstars .text-content th {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.allstars .text-content thead th {
  background-color: #18191c;
  border-bottom-color: rgba(244, 196, 48, 0.35);
}

.allstars .text-content tbody tr:nth-child(even) > * {
  background-color: #131417;
}

.allstars .text-content tbody tr:hover > * {
  background-color: #1b1a15;
}

.allstars .text-content tfoot td {
  background-color: #15161a;
  border-top: 1px solid var(--line);
}

/* Rang-Vergleich: Preis unter dem Namen, Häkchen in Gold, „beliebt“-Spalte hervorgehoben */
.allstars .rank-table th small {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold);
}

.allstars .rank-table .rank-badge {
  display: block;
  width: max-content;
  margin: 0 auto 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--black);
}

.allstars .rank-table td.yes {
  font-size: 16px;
  font-weight: 800;
  color: var(--gold);
}

.allstars .rank-table td.no {
  color: var(--zinc-600);
}

/* Goldton als Ebene über der Zellfarbe, so bleiben Zebra und Hover sichtbar */
.allstars .rank-table .is-featured {
  background-image: linear-gradient(rgba(244, 196, 48, 0.07), rgba(244, 196, 48, 0.07));
}

.allstars .rank-table thead .is-featured {
  box-shadow: inset 0 2px 0 var(--gold);
}

.allstars .rank-table tfoot a {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(244, 196, 48, 0.4);
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold);
  transition: background-color 0.2s, color 0.2s;
}

.allstars .rank-table tfoot a:hover {
  background: var(--gold);
  color: var(--black);
}

/* Schmale Bildschirme: kompakter, und in der Kategoriebeschreibung bis an deren Rand gezogen, sonst bliebe zwischen
   drei verschachtelten Boxen kaum Platz. Tabellen ohne .table-scroll-Rahmen scrollen selbst. */
@media (width <= 760px) {
  .allstars .text-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
  }

  .allstars .text-content .table-scroll > table {
    display: table;
    overflow: visible;
  }

  .allstars .category-description > table,
  .allstars .category-description > .table-scroll {
    width: calc(100% + 32px);
    margin-inline: -16px;
    border-inline: 0;
    border-radius: 0;
  }

  .allstars .text-content th,
  .allstars .text-content td {
    padding: 10px 8px;
  }

  .allstars .text-content th:first-child,
  .allstars .text-content td:first-child {
    min-width: 112px;
    max-width: 112px;
    padding-left: 10px;
    font-size: 12px;
    hyphens: auto;
  }

  .allstars .text-content th:not(:first-child),
  .allstars .text-content td:not(:first-child) {
    min-width: 72px;
  }

  .allstars .text-content th {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .allstars .rank-table th small {
    font-size: 12px;
  }
}

.allstars .store-form {
  font-size: 15px;
}

.allstars .store-form input[type=text],
.allstars .store-form input[type=password],
.allstars .store-form input[type=email],
.allstars .store-form input[type=number],
.allstars .store-form input[type=search],
.allstars .store-form input[type=url],
.allstars .store-form input[type=tel],
.allstars .store-form select,
.allstars .store-form textarea,
.allstars .popup .store-form input[type=text],
.allstars .popup .store-form input[type=number],
.allstars .popup .store-form select {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.allstars .store-form input:focus,
.allstars .store-form select:focus,
.allstars .store-form textarea:focus {
  border-color: rgba(244, 196, 48, 0.6);
  box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.12);
}

.allstars .store-form .field > p {
  font-size: 14px;
  color: var(--zinc-300);
}

.allstars .store-form .actions {
  justify-content: flex-start;
}

/* Login-Inhalt in drei Kontexten: als Seite (.login-form), im Login-Popup und im Warenkorb-Drawer.
   main.js übernimmt nur die Kind-Elemente von [data-popup], deshalb greifen dort keine .login-form-Regeln.
   Der Drawer zeigt für nicht angemeldete Besucher die Login-Seite statt des Warenkorbs (kein .basket-header). */
.allstars .basket-popup-content:not(:has(.basket-header)) {
  padding: 56px 24px 24px;
}

.login-form > h2,
.allstars .login-popup-content > h2,
.allstars .basket-popup-content:not(:has(.basket-header)) > h2 {
  margin: 6px 0 8px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
}

.login-form > .muted,
.allstars .login-popup-content > .muted,
.allstars .basket-popup-content:not(:has(.basket-header)) > .muted {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--zinc-400);
}

.login-form > .field,
.allstars .login-popup-content > .field,
.allstars .basket-popup-content:not(:has(.basket-header)) > .field {
  display: grid;
  gap: 10px;
  margin: 0;
}

.login-form > .field input,
.allstars .login-popup-content > .field input,
.allstars .basket-popup-content:not(:has(.basket-header)) > .field input {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 15px;
}

.login-form > .field .btn-primary,
.allstars .login-popup-content > .field .btn-primary,
.allstars .basket-popup-content:not(:has(.basket-header)) > .field .btn-primary {
  width: 100%;
}

.allstars .store-product-options .product-title {
  margin: 6px 0 16px;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}

/* ---------------------------------------------------------------------
   13. Warenkorb-Drawer
   --------------------------------------------------------------------- */
.allstars .basket-popup-content {
  max-width: 520px;
  border-left: 1px solid var(--line);
  background: rgba(8, 8, 10, 0.96);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.allstars .basket .basket-header {
  display: block;
  padding: 28px 24px 16px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.allstars .basket .basket-title {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}

.allstars .basket .basket-title::before {
  display: none;
}

.allstars .basket .basket-second-header {
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zinc-400);
}

.allstars .basket .basket-second-header .total strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--gold);
}

.allstars .basket .basket-items {
  gap: 12px;
  padding: 16px 24px;
}

.allstars .basket .basket-item {
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.allstars .basket .basket-item .info {
  flex: 1 1 160px;
}

.allstars .basket .basket-item .title {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}

.allstars .basket .basket-item .title a:hover {
  color: var(--gold);
}

.allstars .basket .basket-item .options {
  font-size: 12px;
  color: var(--zinc-400);
}

.allstars .basket .basket-item .price strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--gold);
}

.allstars .basket .basket-item .quantity-field {
  --btn-size: 36px;
  height: 38px;
}

.allstars .basket .basket-item .remove {
  --btn-size: 38px;
  --btn-color-text: #fca5a5;
  --btn-color-text-hover: #fecaca;
  border-color: rgba(248, 113, 113, 0.25);
}

.allstars .basket .basket-item .remove:hover {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.1);
}

.allstars .basket .basket-checkout {
  padding: 16px 24px 28px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.5);
}

.allstars .basket .basket-checkout h3 {
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--zinc-400);
}

.allstars .basket .basket-checkout .total strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
}

.allstars .basket .basket-checkout .checkout {
  height: 48px;
}

.basket-hint {
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--zinc-500);
}

.allstars .basket .basket-empty {
  font-size: 15px;
  color: var(--zinc-400);
}

/* ---------------------------------------------------------------------
   14. Popups (Paket, Login, Optionen, Geschenk), Toasts
   --------------------------------------------------------------------- */
.allstars .popup {
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.allstars .popup-content {
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    var(--gold-line) top center / 100% 1px no-repeat,
    rgba(11, 12, 14, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.allstars .store-product-popup-content {
  max-width: 820px;
  padding: 24px;
}

.allstars .popup .store-product-full .actions {
  margin: 0 -24px -24px;
  padding: 16px 24px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.allstars .popup-close {
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  opacity: 0.7;
}

.allstars .popup-close:hover {
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.allstars .login-popup-content,
.allstars .product-options-popup .popup-content,
.allstars .gift-form-popup .popup-content {
  padding: 24px;
}

.allstars .gift-form-popup .popup-content h2 {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}

.allstars .gift-form-popup .popup-content input {
  margin-bottom: 16px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.allstars .basket-popup-content {
  border-radius: 0;
  background-image: none;
}

.allstars .toast {
  height: auto;
  min-height: 50px;
  padding: 12px 8px 12px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(16, 17, 20, 0.98);
  color: var(--zinc-100);
  font-size: 14px;
}

.allstars .toast.toast-error {
  border-left-color: #f87171;
  background: rgba(60, 16, 16, 0.98);
}

.allstars .toast.toast-success {
  border-left-color: #34d399;
  background: rgba(10, 40, 30, 0.98);
}

.allstars .toast.toast-warning {
  border-left-color: var(--amber);
  background: rgba(50, 32, 8, 0.98);
}

/* ---------------------------------------------------------------------
   15. Footer (wie squad-allstars.de)
   --------------------------------------------------------------------- */
.allstars .site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.allstars .site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px var(--gutter);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (width > 768px) {
  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-copy {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--zinc-400);
}

.footer-note {
  max-width: 48rem;
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--zinc-600);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-social li a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tile);
  color: var(--zinc-300);
  transition: border-color 0.15s, color 0.15s;
}

.footer-social li a:hover {
  border-color: rgba(244, 196, 48, 0.45);
  color: var(--gold);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (width > 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--zinc-400);
}

.footer-legal a:hover {
  color: var(--gold);
}

.allstars .site-footer-inner .we-accept {
  position: static;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.75;
  pointer-events: auto;
}

.allstars .site-footer-inner .we-accept img {
  max-width: 44px;
  max-height: 20px;
  filter: grayscale(1) brightness(1.3);
}

.footer-powered {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--zinc-500);
  transition: color 0.15s;
}

.footer-powered:hover {
  color: var(--gold);
}

/* ---------------------------------------------------------------------
   16. Abo-Stufen (Tiers), Angebot
   --------------------------------------------------------------------- */
.allstars .store-category-tiered {
  padding: 0;
}

.allstars .store-category-tiered-header h2 {
  text-transform: uppercase;
  color: #fff;
}

.allstars .store-product-tiered {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 9, 11, 0.62);
}

.allstars .store-product-tiered.subscribed {
  border-color: rgba(244, 196, 48, 0.6);
}

.allstars .store-product-tiered .price strong {
  color: var(--gold);
}

.allstars .store-quote {
  padding: 24px;
}

/* ---------------------------------------------------------------------
   17. Bewegung reduzieren
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-bg-grid,
  .site-bg-scan { animation: none; }
}
