:root {
  --bg: #06090d;
  --bg2: #0b1118;
  --card: #0e151e;
  --card2: #121b26;
  --line: rgba(120, 190, 230, 0.12);
  --text: #e8f1f7;
  --muted: #8ea3b3;
  --accent: #089acf;
  --accent2: #2cc4f5;
  --glow: rgba(8, 154, 207, 0.45);
  --discord: #5865f2;
  --danger: #ff5d6c;
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(8, 154, 207, 0.16), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(8, 154, 207, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 15px/1.6 Inter, system-ui, sans-serif;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { font-family: Sora, Inter, sans-serif; letter-spacing: -0.02em; margin: 0; }
[hidden] { display: none !important; }
code { background: rgba(8, 154, 207, 0.15); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }

/* ───────── Kopfzeile ───────── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(6, 9, 13, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { border-radius: 50%; box-shadow: 0 0 0 2px rgba(8, 154, 207, 0.5), 0 0 18px var(--glow); }
.brand-name { font-family: Sora, sans-serif; font-weight: 600; font-size: 18px; white-space: nowrap; }
.brand-name b { color: var(--accent2); font-weight: 700; }
.nav { display: flex; gap: 26px; margin-left: 18px; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 12px; padding: 11px 18px;
  font-weight: 600; font-size: 14.5px; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #021018; box-shadow: 0 8px 26px -10px var(--glow); }
.btn-primary:not(:disabled):hover { box-shadow: 0 10px 34px -8px var(--glow); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: rgba(8, 154, 207, 0.55); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { background: #4752c4; }
.btn-discord .dc { width: 20px; height: 20px; fill: #fff; stroke: none; }
.btn-block { width: 100%; }

.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line);
}
.icon-btn:hover { border-color: rgba(8, 154, 207, 0.55); }
.badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: var(--accent); color: #021018; font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}

.user { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px;
  border-radius: 12px; background: var(--card); border: 1px solid var(--line);
}
.user-btn img { width: 30px; height: 30px; border-radius: 50%; background: var(--card2); }
.user-btn .chev { width: 16px; height: 16px; color: var(--muted); }
#user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px;
  background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  box-shadow: 0 20px 40px -12px #000;
}
.dropdown button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 8px; }
.dropdown button:hover { background: rgba(8, 154, 207, 0.12); }

/* ───────── Hero ───────── */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px;
  padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 48px) 40px;
  max-width: 1280px; margin: 0 auto;
}
.eyebrow { color: var(--accent2); text-transform: uppercase; letter-spacing: .22em; font-size: 12.5px; font-weight: 600; margin: 0 0 14px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.05; font-weight: 800; }
.hero h1 span { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 17px; max-width: 520px; margin: 20px 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; }
.hero-art img { position: relative; width: 78%; filter: drop-shadow(0 20px 50px rgba(8, 154, 207, 0.45)); animation: float 6s ease-in-out infinite; }
.ring {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 154, 207, 0.22), transparent 62%);
  border: 1px solid rgba(8, 154, 207, 0.35);
  box-shadow: inset 0 0 60px rgba(8, 154, 207, 0.15), 0 0 80px -20px var(--glow);
}
.ring::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed rgba(44, 196, 245, 0.25); animation: spin 40s linear infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────── Shop ───────── */
.shop, .steps { scroll-margin-top: 70px; max-width: 1280px; margin: 0 auto; padding: 30px clamp(16px, 4vw, 48px) 50px; }
.shop-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.shop-head h2, .steps h2 { font-size: clamp(24px, 3vw, 32px); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 14px;
}
.chip:hover { color: var(--text); }
.chip[aria-selected="true"] { background: rgba(8, 154, 207, 0.16); border-color: var(--accent); color: var(--text); }

.notice {
  border: 1px dashed rgba(8, 154, 207, 0.45); background: rgba(8, 154, 207, 0.07);
  border-radius: 12px; padding: 12px 16px; color: var(--muted); margin-bottom: 20px; font-size: 14px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(8, 154, 207, 0.5); box-shadow: 0 18px 40px -18px var(--glow); }
.thumb { cursor: zoom-in; position: relative; aspect-ratio: 16 / 9; background: radial-gradient(circle at 50% 40%, rgba(8, 154, 207, 0.2), transparent 65%), #0a1017; overflow: hidden; }
.thumb img.photo { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.card:hover .thumb img.photo { transform: scale(1.03); }
.thumb .placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.thumb .placeholder img { width: 22%; opacity: .9; filter: drop-shadow(0 8px 24px rgba(8, 154, 207, 0.5)); }
.tag {
  position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(6, 9, 13, 0.75); backdrop-filter: blur(6px); border: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.tag.demo { left: auto; right: 12px; color: var(--accent2); }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h3 { font-size: 16.5px; font-weight: 600; }
.card-body .desc { color: var(--muted); font-size: 13.5px; margin: 0; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.price { font-family: Sora, sans-serif; font-weight: 700; font-size: 22px; color: var(--accent2); }
.add-btn { padding: 9px 14px; font-size: 13.5px; }
.add-btn svg { width: 18px; height: 18px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 0; }

/* ───────── Ablauf ───────── */
.steps ol { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.steps li { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.steps li > span {
  flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-family: Sora, sans-serif; font-weight: 700; color: #021018; background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.footer { border-top: 1px solid var(--line); padding: 28px clamp(16px, 4vw, 48px); color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer p { margin: 0; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.foot-brand img { border-radius: 50%; }

/* ───────── Warenkorb ───────── */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(420px, 100%);
  background: var(--bg2); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s ease;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow: auto; padding: 12px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 20px 22px; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.total b { font-family: Sora, sans-serif; font-size: 22px; color: var(--accent2); }
.hint { color: var(--muted); font-size: 13px; margin: 10px 0 0; text-align: center; }
.line { display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .mini { width: 80px; height: 45px; border-radius: 10px; overflow: hidden; background: #0a1017; display: grid; place-items: center; }
.line .mini img { width: 100%; height: 100%; object-fit: contain; }
.line .mini img.ico { width: 40%; height: auto; }
.line h4 { margin: 0; font-size: 14.5px; }
.line small { color: var(--muted); }
.qty { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); }
.line .remove { border: 0; background: none; color: var(--muted); font-size: 13px; }
.line .remove:hover { color: var(--danger); }
.cart-empty { color: var(--muted); text-align: center; padding: 50px 10px; }

/* ───────── Dialoge ───────── */
.dlg { border: 0; padding: 0; background: transparent; color: var(--text); max-width: min(520px, calc(100% - 32px)); width: 100%; }
.dlg::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); }
.dlg-inner { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 30px 80px -20px #000, 0 0 0 1px rgba(8, 154, 207, 0.08); }
.dlg-inner h3 { font-size: 21px; margin-bottom: 14px; }
.dlg-inner p { color: var(--muted); }
.center { text-align: center; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.center .dlg-actions { justify-content: center; }
.confirm-list { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; margin-bottom: 14px; max-height: 240px; overflow: auto; }
.confirm-list div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.confirm-list div:last-child { border-bottom: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.error { color: var(--danger); font-size: 14px; }
.ok-badge { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: rgba(8, 154, 207, 0.12); border: 1px solid rgba(8, 154, 207, 0.35); }
.ok-badge img { width: 36px; }
.order-id {
  display: inline-block; margin: 4px 0; padding: 12px 22px; border-radius: 12px;
  font-family: Sora, monospace; font-size: 28px; font-weight: 800; letter-spacing: .08em;
  background: rgba(8, 154, 207, 0.12); border: 1px dashed var(--accent); color: var(--accent2);
}
.copied { color: var(--accent2) !important; margin: 4px 0 0; font-size: 13px; }
.mini-steps { text-align: left; color: var(--muted); font-size: 14px; padding-left: 20px; margin: 18px 0 0; }
.mini-steps li { margin: 6px 0; }
.mini-steps b { color: var(--text); }
.orders-list { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow: auto; }
.order { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.order-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.order-top code { font-family: Sora, monospace; font-size: 15px; font-weight: 700; color: var(--accent2); background: none; padding: 0; cursor: pointer; }
.order small { color: var(--muted); }
.status { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  background: var(--card2); border: 1px solid rgba(8, 154, 207, 0.45); border-radius: 12px;
  padding: 12px 18px; box-shadow: 0 20px 40px -12px #000; font-weight: 500; max-width: calc(100% - 32px);
}
.toast.err { border-color: var(--danger); }

/* ───────── Handy ───────── */
@media (max-width: 860px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-art { max-width: 260px; order: -1; }
}
@media (max-width: 560px) {
  .brand-name { display: none; }
  .btn-discord span { display: none; }
  #login-btn { padding: 11px 13px; }
  #user-name { display: none; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ───────── Produkt-Großansicht ───────── */
.pv { border: 0; padding: 0; background: transparent; color: var(--text); width: min(1280px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); }
.pv::backdrop { background: rgba(2, 5, 9, 0.78); backdrop-filter: blur(6px); }
.pv[open] { animation: pv-in .22s ease; }
@keyframes pv-in { from { opacity: 0; transform: scale(.97); } }
.pv-panel {
  display: grid; grid-template-columns: 330px 1fr; min-height: min(720px, calc(100vh - 32px));
  border-radius: 20px; overflow: hidden; border: 1px solid rgba(8, 154, 207, 0.35);
  background: linear-gradient(160deg, #0b1a2a 0%, #081019 45%, #060a10 100%);
  box-shadow: 0 40px 120px -30px #000, 0 0 60px -20px var(--glow);
}
.pv-side {
  display: flex; flex-direction: column; gap: 18px; padding: 26px 22px;
  background: linear-gradient(180deg, rgba(8, 154, 207, 0.16), rgba(8, 154, 207, 0.03) 40%, transparent);
  border-right: 1px solid var(--line);
}
.pv-brand { display: flex; align-items: center; gap: 12px; font-family: Sora, sans-serif; font-size: 22px; font-weight: 800; letter-spacing: .02em; }
.pv-brand img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(8, 154, 207, .55), 0 0 22px var(--glow); }
.pv-brand b { font-weight: 300; color: var(--accent2); }
.pv-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.pv-cats span { flex: 1 1 auto; text-align: center; padding: 7px 10px; border-radius: 8px; font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, .03); }
.pv-cats span.on { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #021018; font-weight: 700; }
.pv-label { margin: 0; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pv-info h3 { font-size: 26px; margin: 4px 0 6px; }
.pv-desc { margin: 0; color: var(--muted); font-size: 14.5px; }
.pv-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); margin-top: auto; }
.pv-nav span { color: var(--muted); font-variant-numeric: tabular-nums; }
.pv-arrow { width: 40px; height: 40px; border-radius: 10px; border: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #021018; }
.pv-arrow:disabled { opacity: .3; cursor: default; }
.pv-buy { display: grid; grid-template-columns: 1fr auto; gap: 12px 10px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); }
.pv-buy b { font-size: 15px; }
.pv-price { font-family: Sora, sans-serif; font-size: 26px; font-weight: 800; color: var(--accent2); }
.pv-buy .btn { grid-column: 1 / -1; }
.pv-stage { position: relative; display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at 50% 45%, rgba(8, 154, 207, .14), transparent 60%); min-width: 0; }
#pv-img { width: 100%; height: 100%; display: grid; place-items: center; }
#pv-img img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px -20px #000; }
#pv-img img.ico { width: 30%; max-width: 220px; box-shadow: none; filter: drop-shadow(0 10px 30px rgba(8, 154, 207, .5)); }
.pv-close { position: absolute; top: 16px; right: 16px; z-index: 2; background: rgba(6, 9, 13, .7); }
@media (max-width: 860px) {
  .pv { max-height: calc(100vh - 16px); width: calc(100% - 16px); overflow: auto; }
  .pv-panel { grid-template-columns: 1fr; min-height: 0; }
  .pv-stage { order: -1; padding: 14px; min-height: 220px; }
  .pv-side { border-right: 0; border-top: 1px solid var(--line); }
  .pv-brand, .pv-cats { display: none; }
  .pv-nav { margin-top: 0; }
}
