:root {
  --bg: #0e1116;
  --bg-2: #151a21;
  --card: #1a2029;
  --card-2: #212936;
  --line: #2a3342;
  --text: #e8edf4;
  --muted: #8f9bb0;
  --accent: #4ade80;
  --accent-2: #22c55e;
  --accent-ink: #062b14;
  --danger: #f87171;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
button { font: inherit; cursor: pointer; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(14, 17, 22, .8); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .5px; color: var(--text); text-decoration: none; font-size: 18px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(180deg, #5bd65b 0 35%, #8b5a2b 35% 100%); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25);
  font-size: 15px; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.5);
}
.logo span b { color: var(--accent); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--text); background: var(--card); }
.cart-btn {
  position: relative; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); padding: 9px 14px; border-radius: 12px; font-weight: 700;
  transition: border-color .2s, transform .15s;
}
.cart-btn:hover { border-color: var(--accent); }
.cart-btn.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.12); } }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: var(--accent-ink);
  font-size: 12px; display: grid; place-items: center; font-weight: 800;
}
.cart-count[data-n="0"] { background: var(--line); color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 360px at 20% 0%, rgba(74, 222, 128, .16), transparent 70%),
    radial-gradient(600px 300px at 90% 30%, rgba(96, 165, 250, .12), transparent 70%),
    linear-gradient(transparent 0 0);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--accent); box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 2s infinite; }
.dot.off { background: var(--danger); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.hero h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.05; margin: 18px 0 14px; letter-spacing: -1px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px;
  padding: 13px 20px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px rgba(74,222,128,.25); }
.btn-primary:hover { background: #6ee7a0; }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.ip-copy code { font-family: ui-monospace, Consolas, monospace; color: var(--accent); }

.hero-card {
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px; box-shadow: var(--shadow); transform: rotate(1.5deg);
}
.hero-card h3 { margin: 0 0 14px; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps b { width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.steps span { color: var(--muted); font-size: 15px; }
.steps strong { color: var(--text); display: block; }

/* ---------- Shop ---------- */
section { padding: 64px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: 32px; letter-spacing: -.5px; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.tabs { display: flex; gap: 6px; background: var(--bg-2); border: 1px solid var(--line); padding: 5px; border-radius: 14px; }
.tab { border: 0; background: transparent; color: var(--muted); padding: 9px 16px; border-radius: 10px; font-weight: 700; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--card-2); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.3); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card {
  --c: var(--accent);
  position: relative; display: flex; flex-direction: column; text-align: left; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s;
  transform-style: preserve-3d; will-change: transform;
  animation: rise .45s backwards;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.card:hover, .card:focus-visible { border-color: var(--c); box-shadow: 0 14px 40px -12px var(--c); outline: none; }
.card-img {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 18px;
  background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%), var(--bg-2);
}
.card-img img { max-height: 100%; object-fit: contain; transition: transform .35s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 8px 14px rgba(0,0,0,.45)); }
.card:hover .card-img img { transform: scale(1.08) translateY(-4px); }
.card-img .fallback {
  width: 88px; height: 88px; border-radius: 20px; display: grid; place-items: center; font-size: 34px; font-weight: 900;
  background: color-mix(in srgb, var(--c) 25%, var(--card)); color: var(--c); border: 2px solid color-mix(in srgb, var(--c) 50%, transparent);
}
.badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: var(--c); color: #111; letter-spacing: .3px;
}
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h3 { margin: 0; font-size: 20px; }
.card-body .sub { color: var(--muted); font-size: 14px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.price { font-size: 20px; font-weight: 800; }
.add {
  border: 0; border-radius: 10px; padding: 9px 12px; font-weight: 800; background: var(--card-2); color: var(--text);
  border: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s;
}
.add:hover { background: var(--c); color: #111; border-color: var(--c); }
.add.added { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- Info / FAQ ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.info { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.info .ico { font-size: 26px; }
.info h3 { margin: 8px 0 4px; font-size: 18px; }
.info p { margin: 0; color: var(--muted); font-size: 15px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
details summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---------- Modal ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(5, 8, 12, .65); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed; z-index: 70; left: 50%; top: 50%; width: min(760px, 100% - 24px); max-height: calc(100% - 24px); overflow: auto;
  transform: translate(-50%, -46%) scale(.97); opacity: 0; pointer-events: none; transition: transform .25s, opacity .2s;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.modal.open { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
.modal-grid { display: grid; grid-template-columns: 280px 1fr; }
.modal .card-img { aspect-ratio: auto; height: 100%; min-height: 240px; border-right: 1px solid var(--line); }
.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.modal-body h2 { margin: 0; font-size: 28px; }
.modal-body .head { color: var(--muted); margin: 0; font-weight: 600; }
.perks { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 8px; }
.perks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.perks li::before { content: "✓"; color: var(--c, var(--accent)); font-weight: 900; }
.close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font-size: 20px; line-height: 1; z-index: 2;
}
.close:hover { border-color: var(--accent); }
.buy-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.qty button { border: 0; background: transparent; color: var(--text); width: 36px; height: 38px; font-size: 18px; }
.qty button:hover { background: var(--card-2); }
.qty span { min-width: 32px; text-align: center; font-weight: 800; }

/* ---------- Warenkorb ---------- */
.drawer {
  position: fixed; z-index: 70; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--card); border-left: 1px solid var(--line); box-shadow: var(--shadow);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer header { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer header h2 { margin: 0; font-size: 20px; }
.drawer header .close { position: static; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; }
.player-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; gap: 12px; align-items: center; }
.player-box img, .player-box .head-ph { width: 48px; height: 48px; border-radius: 8px; image-rendering: pixelated; background: var(--card-2); flex: none; }
.player-box label { font-size: 13px; color: var(--muted); font-weight: 600; }
.player-box input {
  width: 100%; margin-top: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); font: inherit; font-weight: 700;
}
.player-box input:focus { outline: none; border-color: var(--accent); }
.player-box input.bad { border-color: var(--danger); }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.line .thumb { width: 52px; height: 52px; border-radius: 10px; background: var(--bg-2); display: grid; place-items: center; padding: 4px; }
.line .thumb img { max-height: 100%; }
.line .name { font-weight: 700; }
.line .meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.line .qty button { width: 28px; height: 28px; font-size: 15px; }
.line .qty span { min-width: 22px; font-size: 14px; }
.rm { border: 0; background: none; color: var(--muted); font-size: 13px; padding: 0; text-decoration: underline; }
.rm:hover { color: var(--danger); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.empty .big { font-size: 44px; }
.drawer footer { border-top: 1px solid var(--line); padding: 16px 20px 20px; display: grid; gap: 12px; }
.total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; }
.consent { display: flex; gap: 10px; font-size: 13px; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.pay-methods { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pay-methods span { font-size: 12px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
.error { color: var(--danger); font-size: 14px; min-height: 0; }
.secure { text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--card-2); border: 1px solid var(--line); padding: 12px 18px; border-radius: 12px; font-weight: 700;
  box-shadow: var(--shadow); transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Unterseiten ---------- */
.page { padding: 56px 0 80px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: 36px; margin: 0 0 20px; }
.page h2 { font-size: 20px; margin: 28px 0 8px; }
.page p, .page li { color: #c5cedb; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; text-align: center; }
.big-ico { font-size: 56px; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); animation: spin 1s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.order-list { list-style: none; padding: 0; margin: 16px auto; max-width: 360px; text-align: left; }
.order-list li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 8px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { transform: none; }
  .nav-links { display: none; }
  .cart-btn { margin-left: auto; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal .card-img { min-height: 180px; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 12px; }
  .card-body h3 { font-size: 16px; }
  .card-body .sub { display: none; }
  .price { font-size: 16px; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 9px 6px; }
  .cart-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.narrow { max-width: 800px; }
.grow { flex: 1; }
#mAdd { margin-left: auto; }
.drawer footer { color: var(--text); font-size: 15px; }
.muted { color: var(--muted); }

/* Feinschliff */
.hero-card { transform: none; }
.card-foot { flex-direction: column; align-items: stretch; gap: 10px; }
.add { width: 100%; white-space: nowrap; }
.tab { white-space: nowrap; }
@media (max-width: 520px) { .tab { font-size: 14px; } }
.player-box img[data-empty] { opacity: .35; }
[hidden] { display: none !important; }
