/* ============================================================
   Snake Clan – Gemeinsames Design-System  v2 (Redesign)
   Neue Palette: Tiefdunkel + gedämpftes Grün + Rajdhani-Font
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── CSS-Variablen ───────────────────────────────────────── */
:root {
  /* Hintergründe – tiefdunkel */
  --black:   #040804;
  --dark:    #080c08;
  --panel:   #0d120d;
  --surface: #111811;
  --card:    #141e14;
  --card2:   #182218;
  --hover:   #1a251a;
  --faint:   #0f160f;

  /* Border-Skala */
  --border:  #182618;
  --border2: #1f3320;
  --b0:      #131c13;
  --b1:      #192619;
  --b2:      #203420;
  --b3:      #2a4a2a;

  /* Grün-Skala – gedämpft & professionell */
  --g0:    #1b5e20;
  --g1:    #388e3c;
  --g2:    #2e7d32;
  --green: #388e3c;
  --gm:    #4caf50;
  --gl:    #81c784;
  --gx:    #a5d6a7;

  /* Text */
  --text:  #cce8cc;
  --muted: #567a58;
  --dim:   #2a3e2a;

  /* Akzentfarben */
  --gold:   #c8960c;
  --goldd:  #f0b429;
  --red:    #c62828;
  --redl:   #ef5350;
  --blue:   #1565c0;
  --bluel:  #64b5f6;
  --pll:    #b39ddb;
  --yll:    #ffca28;

  /* Border-Radius Shortcuts */
  --r:  6px;
  --r2: 12px;

  /* Schrift – Rajdhani für Gaming-Feel */
  --font: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;

  /* Einheitliche Schatten & Transition */
  --shadow-card:  0 2px 14px rgba(0,0,0,.55), 0 0 0 1px rgba(46,125,50,.04);
  --shadow-hover: 0 6px 28px rgba(0,0,0,.65), 0 0 0 1px rgba(46,125,50,.1);
  --transition:   .15s cubic-bezier(.4,0,.2,1);
}

/* ── Basis ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background:  var(--black);
  color:       var(--text);
  font-family: var(--font);
  font-size:   15px;
  line-height: 1.6;
  overflow-x:  hidden;
  /* Subtiles Schlangenschuppen-Muster im Hintergrund */
  background-image:
    repeating-linear-gradient(30deg, transparent, transparent 20px, rgba(46,125,50,.018) 20px, rgba(46,125,50,.018) 21px),
    repeating-linear-gradient(-30deg, transparent, transparent 20px, rgba(46,125,50,.018) 20px, rgba(46,125,50,.018) 21px);
}

/* Hintergrund-Glühen (alle Seiten mit body::before) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(46,125,50,.1) 0%, transparent 60%),
    radial-gradient(ellipse 35% 25% at 10% 80%, rgba(46,125,50,.04) 0%, transparent 50%),
    radial-gradient(ellipse 35% 25% at 90% 20%, rgba(46,125,50,.04) 0%, transparent 50%);
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar             { width: 5px; }
::-webkit-scrollbar-track       { background: var(--dark); }
::-webkit-scrollbar-thumb       { background: var(--b1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--b2); }

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 6px  rgba(46,125,50,.45); }
  50%       { box-shadow: 0 0 16px rgba(46,125,50,.8); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.8); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── NAV – Vollseiten-Variante (index, leihen, verify) ───── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 0;
  transition: background .3s, border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
nav.scrolled,
nav.nav-solid {
  background: rgba(8,12,8,.97);
  border-bottom-color: var(--border2);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 28px rgba(0,0,0,.6);
}

/* Brand (Logo + Name) */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: 20px;
  flex-shrink: 0;
}
.nav-brand-glow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--b2), var(--b1));
  border: 1px solid var(--border2);
  box-shadow: 0 0 10px rgba(46,125,50,.18);
  flex-shrink: 0;
}
.nav-brand-glow img { width: 18px; height: 18px; border-radius: 3px; object-fit: cover; }
.nav-brand h1 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gl);
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1;
}

/* Links-Leiste */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  transition: all .15s;
  padding: 6px 11px;
  border-radius: 5px;
  white-space: nowrap;
}
.nav-links a:hover            { background: rgba(46,125,50,.15); color: var(--gl); }
.nav-links a.active           { background: rgba(46,125,50,.18); color: var(--gm); box-shadow: inset 0 0 0 1px rgba(46,125,50,.25); }
.nav-links a.nav-section      { text-transform: uppercase; letter-spacing: 1.2px; font-size: 10px; }

/* Portal-CTA-Button */
.nav-cta {
  background: linear-gradient(135deg, var(--gm), var(--g1));
  color: #060c06 !important;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .5px;
  transition: all .15s;
  box-shadow: 0 2px 8px rgba(46,125,50,.2);
  flex-shrink: 0;
  margin-left: 8px;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(46,125,50,.35); }

/* Hamburger-Menü (Mobile) */
.nav-ham {
  display: none;
  background: none;
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  color: var(--muted);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 6px;
  transition: all .15s;
}
.nav-ham:hover { border-color: var(--gm); color: var(--gl); }
.nav-ham svg   { width: 16px; height: 16px; display: block; }

/* NAV – Sticky-Variante (Unterseiten: auktionen, markt, kurse...) */
nav.nav-sticky {
  position: sticky;
  background: rgba(8,12,8,.97);
  border-bottom: 1px solid var(--b1);
  box-shadow: 0 1px 20px rgba(0,0,0,.4);
  backdrop-filter: blur(14px);
  transition: none;
}
/* Logo-Variante in Sticky-Nav */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: 18px;
  flex-shrink: 0;
}
.nav-logo img,
img.nav-logo {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--b2), var(--b1));
  border: 1px solid var(--b2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(46,125,50,.12);
  flex-shrink: 0;
}
.nav-logo-icon img { width: 18px; height: 18px; border-radius: 3px; object-fit: cover; }
.nav-logo span {
  font-weight: 700;
  font-size: 14px;
  color: var(--gl);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.nav-right { flex-shrink: 0; margin-left: 8px; }
.nav-right a {
  padding: 6px 14px;
  border-radius: var(--r);
  background: linear-gradient(135deg, var(--gm), var(--g1));
  color: #060c06;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  box-shadow: 0 2px 8px rgba(46,125,50,.22);
  transition: all .15s;
  white-space: nowrap;
  display: inline-block;
}
.nav-right a:hover { box-shadow: 0 4px 14px rgba(46,125,50,.4); transform: translateY(-1px); }

/* Zurück-Button (Datenschutz, Impressum, Verify) */
.nav-back {
  margin-left: auto;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border2);
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-back:hover { background: var(--b1); color: var(--gl); }
.nav-back svg { width: 14px; height: 14px; }

/* ── Utility: Container ──────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  line-height: 1.6;
}
.badge-green  { background: rgba(46,125,50,.18);   color: var(--gl);    border: 1px solid rgba(46,125,50,.32); }
.badge-gold   { background: rgba(200,150,12,.14);  color: var(--goldd); border: 1px solid rgba(200,150,12,.3); }
.badge-red    { background: rgba(198,40,40,.14);   color: var(--redl);  border: 1px solid rgba(198,40,40,.3); }
.badge-blue   { background: rgba(21,101,192,.14);  color: var(--bluel); border: 1px solid rgba(21,101,192,.28); }
.badge-muted  { background: rgba(255,255,255,.04); color: var(--muted); border: 1px solid var(--border2); }

/* ── Buttons (gemeinsame Basis) ──────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font);
  white-space: nowrap;
  outline: none;
  letter-spacing: .3px;
}
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(46,125,50,.38); }
.btn-p    { background: linear-gradient(135deg, var(--gm), var(--g1)); color: #060c06; box-shadow: 0 2px 10px rgba(46,125,50,.28); }
.btn-p:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46,125,50,.42); }
.btn-p:active { transform: translateY(0); box-shadow: none; }
.btn-s    { background: transparent; color: var(--gm); border: 1px solid var(--border2); }
.btn-s:hover { background: rgba(46,125,50,.12); border-color: var(--b3); color: var(--gl); }
.btn-n    { background: var(--card2); color: var(--muted); border: 1px solid var(--border); }
.btn-n:hover { color: var(--text); border-color: var(--border2); background: var(--hover); }
.btn-d    { background: transparent; color: var(--redl); border: 1px solid rgba(198,40,40,.32); }
.btn-d:hover { background: rgba(198,40,40,.12); border-color: rgba(198,40,40,.55); }
.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 2px 10px rgba(88,101,242,.25); }
.btn-discord:hover { background: #4752c4; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(88,101,242,.4); }
.btn-discord:active { transform: translateY(0); }
.btn-full { width: 100%; }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none !important; pointer-events: none; box-shadow: none; }

/* ── Formular-Elemente ───────────────────────────────────── */
label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 5px;
}
input, textarea, select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  padding: 9px 12px;
  transition: border-color .15s;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--b3); }
input::placeholder, textarea::placeholder { color: var(--dim); }
select option { background: var(--surface); }
textarea { resize: vertical; min-height: 80px; }
.hint { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ── Spinner / Loading ───────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--b1);
  border-top-color: var(--gm);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
.loading { text-align: center; padding: 30px; color: var(--muted); font-family: var(--font); }
.empty   { text-align: center; padding: 50px; color: var(--muted); grid-column: 1 / -1; font-family: var(--font); }

/* ── Drawer (Auktionen, OP-Items-Browser) ────────────────── */
.drawer-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(3px);
  z-index: 200;
}
.drawer-bg.open { display: block; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(540px, 100vw);
  background: var(--panel);
  border-left: 1px solid var(--b2);
  box-shadow: -8px 0 40px rgba(0,0,0,.6);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .24s cubic-bezier(.4,0,.2,1);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--b1);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(46,125,50,.025) 0%, transparent 100%);
}
.drawer-title { font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.3; font-family: var(--font); }
.drawer-sub   { font-size: 11px; color: var(--muted); margin-top: 3px; }
.drawer-close {
  margin-left: auto;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  padding: 7px 12px;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  flex-shrink: 0;
  transition: all var(--transition);
  font-family: var(--font);
}
.drawer-close:hover { color: var(--text); border-color: var(--b2); background: var(--hover); }
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Alert-Boxen ─────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font);
}
.alert-error { background: rgba(198,40,40,.1);    border: 1px solid rgba(198,40,40,.3);  border-left: 3px solid var(--red); color: var(--redl); }
.alert-info  { background: rgba(27,94,32,.4);     border: 1px solid var(--border2);      border-left: 3px solid var(--gm);  color: var(--gl); }
.alert-warn  { background: rgba(200,150,12,.08);  border: 1px solid rgba(200,150,12,.3); border-left: 3px solid var(--gold); color: var(--goldd); }

/* ── Err-Box (Ticket) ────────────────────────────────────── */
.err-box {
  background: rgba(198,40,40,.08);
  border: 1px solid rgba(198,40,40,.22);
  border-radius: var(--r);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--redl);
  margin-bottom: 14px;
  display: none;
  font-family: var(--font);
}
.err-box.show { display: block; }

/* ── Seiten-Footer (Unterseiten: auktionen etc.) ─────────── */
footer.sub-footer {
  text-align: center;
  padding: 28px 20px 20px;
  color: var(--dim);
  font-size: 12px;
  border-top: 1px solid var(--b0);
  margin-top: 40px;
  background: linear-gradient(0deg, rgba(46,125,50,.015) 0%, transparent 100%);
  letter-spacing: .2px;
  font-family: var(--font);
}
footer.sub-footer a { color: var(--muted); text-decoration: none; transition: color var(--transition); }
footer.sub-footer a:hover { color: var(--gl); }

/* ── Rechtliche Seiten (Datenschutz, Impressum) ──────────── */
.legal-main { flex: 1; max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; width: 100%; }
.page-label { font-size: 11px; font-weight: 700; color: var(--gm); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; font-family: var(--font); }
.legal-main h2 { font-size: 30px; font-weight: 700; color: var(--gl); margin-bottom: 8px; font-family: var(--font); }
.page-sub { font-size: 15px; color: var(--muted); margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.legal-section { margin-bottom: 36px; }
.legal-section h3 { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); font-family: var(--font); }
.legal-section p  { font-size: 15px; color: var(--text); margin-bottom: 10px; }
.legal-section p b { color: var(--gl); font-weight: 600; }
.legal-section ul { padding-left: 20px; margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.legal-section ul li { font-size: 15px; color: var(--text); }
.info-block { background: var(--card); border: 1px solid var(--border); border-radius: 7px; padding: 20px 24px; margin-bottom: 8px; }
.info-block p { margin: 0; line-height: 2; }
.note { background: rgba(46,125,50,.05); border: 1px solid rgba(46,125,50,.16); border-radius: 6px; padding: 14px 18px; font-size: 14px; color: var(--muted); margin-top: 16px; }
.highlight { background: rgba(46,125,50,.07); border-left: 3px solid var(--gm); padding: 12px 16px; border-radius: 0 6px 6px 0; font-size: 14px; color: var(--muted); margin: 12px 0; }
footer.legal-footer {
  border-top: 1px solid var(--border);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--dim);
  background: var(--dark);
}
footer.legal-footer a { color: var(--muted); text-decoration: none; transition: color .15s; }
footer.legal-footer a:hover { color: var(--gl); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  nav { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 54px; left: 0; right: 0;
    background: rgba(8,12,8,.97);
    border-bottom: 1px solid var(--border2);
    padding: 14px 20px;
    gap: 4px;
    backdrop-filter: blur(16px);
    z-index: 99;
  }
  .nav-links.open a { font-size: 13px; padding: 9px 12px; }
  .nav-ham          { display: inline-flex; }
  .legal-main       { padding: 40px 16px 60px; }
  footer.legal-footer { padding: 16px; flex-direction: column; text-align: center; }
}
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  footer.legal-footer { padding: 16px 20px; }
}
