/* ============================================================
   Seitenrahmen: Hintergrund, Topbar, Header, Navigation,
   Suche, Hinweise, Logo-Laufbänder, Footer, Tebex-Hinweis
   ============================================================ */

/* Hintergrund liegt auf body, darüber der Waben-Canvas, darüber der Shop */
body { background: radial-gradient(1200px 520px at 50% -180px, rgba(147, 51, 234, .26), transparent 70%), var(--bg); }
.app { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- Topbar ---------- */
.topbar { background: var(--bg-bar); border-bottom: 1px solid rgba(168, 85, 247, .14); font-size: 12px; color: var(--muted-2); }
.topbar-inner { max-width: 1320px; margin: 0 auto; padding: 7px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 4px; align-items: center; }
.lang-switch { display: flex; gap: 2px; margin-left: 12px; padding: 2px; border: 1px solid rgba(168, 85, 247, .25); border-radius: 6px; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 4px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; color: var(--muted-2);
}
.lang-btn.is-active { color: #fff; background: rgba(147, 51, 234, .4); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(7, 4, 13, .97); border-bottom: 1px solid rgba(168, 85, 247, .18); }
.header-inner { max-width: 1440px; margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.logo-link { display: flex; align-items: center; gap: 10px; cursor: pointer; flex: none; }
.logo-link img { width: 46px; height: 46px; filter: drop-shadow(0 0 10px rgba(168, 85, 247, .6)); }

.nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; flex-wrap: nowrap; white-space: nowrap; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 7px; padding: 10px 12px; cursor: pointer;
  font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: .06em;
  color: var(--muted); border-bottom: 2px solid transparent;
}
.nav-link:hover { color: #fff; }
.nav-link.is-active { color: #fff; border-bottom-color: var(--accent); }
.nav-new {
  padding: 1px 6px; border: 1px solid rgba(192, 132, 252, .6); border-radius: 3px; font-size: 9px;
  letter-spacing: .1em; color: var(--lilac); background: rgba(168, 85, 247, .18);
}

/* Dropdowns (Navigation, Benutzer, Filter, Sortierung) */
.dropdown {
  position: absolute; z-index: 50; padding: 8px; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--panel); box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
  display: flex; flex-direction: column; gap: 2px;
  animation: jmxPop .18s var(--ease); transform-origin: top;
}
.dropdown--nav { left: 0; top: calc(100% + 10px); min-width: 260px; }
.dropdown--user { right: 0; top: calc(100% + 10px); min-width: 240px; }
.dd-item {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 10px 12px; border-radius: 4px; cursor: pointer;
}
.dd-item:hover { background: rgba(147, 51, 234, .18); }
.dd-item .dd-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: var(--text); }
.dd-item .dd-count { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }

.header-social { display: flex; align-items: center; gap: 6px; flex: none; }
.social-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(168, 85, 247, .22); background: var(--panel); color: var(--soft-2);
  cursor: pointer; border-radius: 4px; transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.social-btn:hover { color: #fff; border-color: var(--line-hover); background: #1a0d2c; }

.header-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.icon-btn {
  position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  color: var(--soft-2); cursor: pointer;
}
.icon-btn:hover { color: #fff; }
.count-badge {
  position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 3px;
  background: linear-gradient(110deg, #a855f7, #d946ef); color: #fff; box-shadow: 0 0 8px rgba(217, 70, 239, .6);
  font-family: var(--font-mono); font-weight: 700; font-size: 10px; display: flex; align-items: center; justify-content: center;
}

.login-btn {
  position: relative; flex: none; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px;
  border: 1px solid rgba(192, 132, 252, .6); background: rgba(168, 85, 247, .1);
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--lilac);
  cursor: pointer; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.login-btn:hover { background: rgba(168, 85, 247, .22); color: #fff; box-shadow: inset 0 0 22px rgba(217, 70, 239, .25); }
.login-btn .corner { position: absolute; right: 0; bottom: 0; width: 14px; height: 1px; background: var(--lilac-2); transform: translate(2px, -4px) rotate(-45deg); }

.user-wrap { position: relative; flex: none; }
.avatar {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--grad-brand-diag); font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff;
  border: 2px solid rgba(192, 132, 252, .6); border-radius: 8px; box-shadow: 0 0 16px rgba(217, 70, 239, .45);
}
.user-head { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid rgba(168, 85, 247, .16); margin-bottom: 4px; }
.user-head .name { font-weight: 600; }
.user-head .status { font-family: var(--font-mono); font-size: 11px; color: var(--ok); }
.user-action { padding: 9px 12px; border-radius: 4px; font-size: 14px; cursor: pointer; color: var(--soft-2); text-align: left; }
.user-action:hover { background: rgba(147, 51, 234, .18); color: #fff; }

/* ---------- Suche ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(5, 2, 10, .9); animation: jmxFade .2s ease-out;
  display: flex; justify-content: center; padding: 12vh 24px 0;
}
.search-box { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 10px; }
.search-field {
  display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 18px;
  border: 1px solid rgba(192, 132, 252, .5); border-radius: 6px; background: var(--panel); box-shadow: 0 0 40px rgba(147, 51, 234, .3);
}
.search-field input { flex: 1; min-width: 0; border: none; background: transparent; color: var(--text); font-family: var(--font-mono); font-size: 16px; outline: none; }
.kbd { font-family: var(--font-mono); font-size: 11px; padding: 3px 7px; border: 1px solid rgba(168, 85, 247, .35); border-radius: 3px; color: var(--muted-2); cursor: pointer; }
.search-results { border: 1px solid rgba(168, 85, 247, .25); border-radius: 6px; background: var(--panel); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.search-hit { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 4px; cursor: pointer; color: var(--text); }
.search-hit:hover { background: rgba(147, 51, 234, .18); color: var(--text); }
.search-hit .name { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.search-hit .sub { font-size: 12px; color: var(--muted-2); }
.search-hit .price { font-family: var(--font-display); font-weight: 700; }
.search-empty { padding: 12px 14px; font-size: 14px; color: var(--muted-2); }

/* ---------- Hinweise (Toast) & Demo-Banner ---------- */
.toast-wrap { max-width: 1320px; width: 100%; margin: 16px auto 0; padding: 0 24px; }
.toast {
  display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 8px;
  background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .35); font-size: 14px; color: #bbf7d0;
}
.toast .toast-x { cursor: pointer; color: var(--ok); }
.toast.is-error { background: rgba(239, 68, 68, .08); border-color: rgba(239, 68, 68, .4); color: #fecaca; }
.toast.is-error .toast-x { color: #fca5a5; }
.demo-banner {
  background: rgba(34, 211, 238, .08); border-bottom: 1px solid rgba(34, 211, 238, .3);
  color: #cfe9ef; font-size: 13px; text-align: center; padding: 8px 24px;
}

/* ---------- Hauptbereich der Unterseiten ---------- */
.main {
  flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 56px 32px 112px;
  display: flex; gap: 48px; align-items: flex-start; flex-wrap: wrap;
}
.main-col { flex: 1 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted-2); flex-wrap: wrap; }
.crumbs a { color: var(--muted-2); }
.crumbs a:hover { color: #fff; }
.crumbs .current { color: var(--text); }

/* Schwebender Support-Button (Docs) */
.support-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center; background: var(--grad-brand);
  cursor: pointer; transition: transform .25s var(--ease);
}
.support-fab:hover { transform: translate3d(0, -3px, 0); }

/* ---------- Logo-Laufbänder ---------- */
.logo-rows {
  border-top: 1px solid rgba(168, 85, 247, .18); background: #08040f; padding: 36px 0;
  display: flex; flex-direction: column; gap: 18px; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track.a { animation: jmxMarquee 45s linear infinite; }
.marquee-track.b { animation: jmxMarqueeRev 50s linear infinite; }
.marquee-group { display: flex; gap: 18px; padding-right: 18px; }
.logo-pill {
  padding: 14px 28px; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .16em;
  color: var(--muted); background: var(--panel); border: 1px solid var(--line); white-space: nowrap;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

/* ---------- Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--line); background: var(--bg-deep); overflow: hidden; }
.footer-glow { position: absolute; left: 50%; top: -240px; width: 900px; height: 400px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(147, 51, 234, .18), transparent 70%); }
.footer-inner { position: relative; max-width: 1320px; margin: 0 auto; padding: 80px 32px 32px; display: flex; flex-direction: column; gap: 56px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 20px; grid-column: span 2; max-width: 420px; }
.footer-logo { display: flex; align-items: center; gap: 14px; }
.footer-logo img { width: 64px; filter: drop-shadow(0 0 14px rgba(168, 85, 247, .5)); }
.footer-logo .t1 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.footer-logo .t2 { font-family: var(--font-display); font-size: 11px; letter-spacing: .32em; color: var(--accent); }
.footer-logo .stack { display: flex; flex-direction: column; line-height: 1.1; }
.footer-text { font-size: 15px; line-height: 1.7; color: var(--muted-2); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); background: var(--panel); font-family: var(--font-display); font-weight: 700;
  font-size: 12px; color: var(--soft-2); cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.footer-social a:hover { background: var(--panel-hover); color: #fff; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .head { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .2em; color: var(--text); }
.footer-col a { color: var(--muted-2); cursor: pointer; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-pay {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 24px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.footer-pay .label { font-size: 13px; color: var(--muted-2); }
.pay-list { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-pill { padding: 6px 12px; border: 1px solid rgba(168, 85, 247, .22); border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--soft-2); background: var(--panel); }
.footer-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; line-height: 1.6; color: var(--muted-3); }
.footer-meta .disclaimer { max-width: 760px; }
.footer-watermark {
  user-select: none; text-align: center; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(56px, 11.5vw, 170px); line-height: .85; letter-spacing: -.01em; margin-top: 8px;
  background: linear-gradient(180deg, rgba(192, 132, 252, .35), rgba(168, 85, 247, .04)); background-size: 100% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Tebex Merchant-of-Record-Hinweis (Pflichtangabe, nicht entfernen) */
.mor { position: relative; border-top: 1px solid rgba(168, 85, 247, .16); background: #0a0612; }
.mor-inner {
  max-width: 1320px; margin: 0 auto; padding: 16px 32px; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12px; line-height: 1.5; color: var(--muted-2);
}
.mor-text { max-width: 820px; }
.mor-text a { color: var(--soft-2); text-decoration: underline; text-underline-offset: 2px; }
.mor-text a:hover { color: #fff; }
.mor-brand { font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; color: var(--soft-2); }

/* ---------- Mobil ---------- */
@media (max-width: 1100px) {
  .nav { order: 5; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .header-social { margin-left: auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar-inner { padding: 7px 16px; }
  .header-inner { padding: 10px 16px; gap: 10px 12px; }
  .header-social { display: none; }
  .header-tools { margin-left: auto; }
  .login-btn { height: 40px; padding: 0 14px; font-size: 11px; letter-spacing: .08em; }
  .main { padding: 32px 16px 96px; }
  .footer-inner { padding: 56px 16px 24px; }
  .footer-brand { grid-column: auto; }
  .mor-inner { padding: 16px; }
  .toast-wrap { padding: 0 16px; }
}
