/* Aufbau angelehnt an store.danismp.de */
:root {
  --bg: #191919;
  --panel: rgba(30, 34, 36, .5);
  --panel-solid: #1e2224;
  --edge: rgba(248, 249, 249, .1);
  --text: #f8f9f9;
  --muted: rgba(248, 249, 249, .7);
  --dim: rgba(248, 249, 249, .5);
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-700: #0369a1;
  --sky-ring: rgba(186, 230, 253, .6);
  --danger: #f43f5e;
  --green: #4ade80;
  --ease: cubic-bezier(0, 0, .2, 1);
}

@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--muted);
  font: 400 16px/1.5 Montserrat, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--sky-300); }
button { font: inherit; cursor: pointer; }
img { display: block; }
strong { color: var(--text); }
.wrap { position: relative; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

#bg { position: absolute; top: 0; left: 0; z-index: -1; display: block; pointer-events: none; }

/* Glas-Panel wie bei DaniSMP */
.glass {
  position: relative;
  background: var(--panel);
  border: 4px solid var(--edge);
  border-radius: 8px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .4), 0 4px 6px -4px rgba(0, 0, 0, .4);
}

/* Einblenden */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes spinBorder { to { --angle: 360deg; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.enter-down { animation: fadeInDown .8s ease-out both; }
.reveal { animation: fadeInUp .6s ease-out both; animation-delay: calc(var(--i, 0) * .06s); }

/* Obere Leiste */
.strip { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 0; gap: 12px; }
.strip-item { display: flex; align-items: center; gap: 12px; background: none; border: 0; color: var(--text); text-decoration: none; text-align: left; padding: 0; }
.strip-item strong { display: block; font-size: 15px; font-weight: 800; }
.strip-item small { display: block; font-size: 12px; color: rgba(248, 249, 249, .85); }
.strip-item strong, .strip-item small { text-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 0 8px rgba(0, 30, 60, .6); }
.strip-right { text-align: right; }
.strip-icon { position: relative; width: 40px; height: 40px; border-radius: 50%; flex: none; background: linear-gradient(var(--sky-400), var(--sky-500)); box-shadow: inset 0 0 0 2px var(--sky-ring), 0 4px 0 var(--sky-700); }
.strip-icon::before { content: ""; position: absolute; left: 16px; top: 13px; border-left: 10px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.strip-icon.discord { background: linear-gradient(#7984f5, #5865f2); box-shadow: inset 0 0 0 2px rgba(200, 205, 255, .6), 0 4px 0 #3c45a5; }
.strip-icon.discord::before { left: 12px; top: 14px; width: 16px; height: 12px; border: 0; border-radius: 6px; background: #fff; }

/* Logo */
.logo-big { text-align: center; padding: 40px 0 28px; }
.logo-big span { display: inline-block; font-size: clamp(40px, 9vw, 96px); font-weight: 900; letter-spacing: 2px; line-height: 1; color: #fff; text-shadow: 0 5px 0 var(--sky-500), 0 10px 0 var(--sky-700), 0 18px 30px rgba(0, 0, 0, .55); }

/* Kopfzeile */
.header-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 120px; padding: 16px 24px; border-radius: 6px; background: rgba(30, 34, 36, .4); }
.header-brand { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; }
.header-logo { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 18px; font-weight: 900; color: #fff; background: linear-gradient(var(--sky-400), var(--sky-500)); box-shadow: inset 0 0 0 2px var(--sky-ring), 0 4px 0 var(--sky-700); }
.header-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; height: 52px; padding: 0 16px; border-radius: 16px; font-weight: 700; color: #fff; background: linear-gradient(var(--sky-400), var(--sky-500)); box-shadow: inset 0 0 0 2px var(--sky-ring), 0 6px 0 var(--sky-700); }

/* Buttons wie bei DaniSMP */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 16px; padding: 12px 16px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s var(--ease), box-shadow .15s var(--ease), filter .2s; }
.btn-blue { color: #fff; background: linear-gradient(var(--sky-400), var(--sky-500)); box-shadow: inset 0 0 0 2px var(--sky-ring), 0 6px 0 var(--sky-700); }
.btn-blue:hover:not(:disabled) { filter: brightness(1.07); }
.btn-blue:active:not(:disabled) { transform: translateY(4px); box-shadow: inset 0 0 0 2px var(--sky-ring), 0 2px 0 var(--sky-700); }
.btn-dark { color: var(--text); background: rgba(248, 249, 249, .06); box-shadow: inset 0 0 0 2px var(--edge), 0 6px 0 rgba(0, 0, 0, .45); }
.btn-dark:hover { background: rgba(248, 249, 249, .1); }
.btn-dark:active { transform: translateY(4px); box-shadow: inset 0 0 0 2px var(--edge), 0 2px 0 rgba(0, 0, 0, .45); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-full { width: 100%; }
#cartBtn, #loginBtn { height: 52px; }
.count { background: #fff; color: var(--sky-700); border-radius: 999px; min-width: 22px; padding: 0 7px; font-size: 12px; font-weight: 800; }
.head { width: 24px; height: 24px; border-radius: 4px; image-rendering: pixelated; }

/* Layout */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; margin: 28px 0 40px; align-items: start; }

/* Farbige Flecken hinter den Bildern (wie die "blobs" bei DaniSMP) */
.icon-wrap { position: relative; display: grid; place-items: center; flex: none; }
.icon-wrap::before { content: ""; position: absolute; inset: -30%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side at 35% 40%, color-mix(in srgb, var(--accent, #38bdf8) 55%, transparent), transparent),
    radial-gradient(closest-side at 70% 65%, color-mix(in srgb, var(--accent, #38bdf8) 35%, transparent), transparent);
  filter: blur(18px); opacity: .55; }
.pix { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }

/* Kategorien */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tile { display: flex; align-items: center; justify-content: space-between; min-height: 250px; padding: 24px 28px; color: var(--text); text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .3s var(--ease), border-color .2s var(--ease); }
.tile:hover { transform: scale(1.008); border-color: rgba(248, 249, 249, .18); }
.tile:active { transform: scale(1.01); }
.tile h2 { margin: 0; font-size: clamp(24px, 3vw, 35px); font-weight: 900; color: #fff; text-transform: uppercase; line-height: 1.1; transition: color .3s var(--ease); }
.tile:hover h2 { color: var(--accent, var(--sky-400)); }
.tile small { color: var(--dim); font-weight: 600; font-size: 14px; }
.tile .icon-wrap { width: 170px; height: 170px; }
.tile .pix { width: 150px; height: 150px; }

/* Produkte */
.cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.cat-head h2 { margin: 0; font-size: clamp(26px, 3vw, 35px); font-weight: 900; color: #fff; text-transform: uppercase; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.product { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 18px 20px; overflow: hidden; isolation: isolate; transition: transform .3s var(--ease), border-color .2s var(--ease); }
.product:hover { transform: scale(1.008); border-color: rgba(248, 249, 249, .18); }
.product.featured { border-color: transparent; background: linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box, conic-gradient(from var(--angle), var(--sky-400), #a5f3fc, #818cf8, var(--sky-500), var(--sky-400)) border-box; animation: spinBorder 3.5s linear infinite, fadeInUp .6s ease-out both; animation-delay: 0s, calc(var(--i, 0) * .06s); }
.ribbon { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; color: #fff; background: linear-gradient(var(--sky-400), var(--sky-500)); box-shadow: inset 0 0 0 2px var(--sky-ring), 0 3px 0 var(--sky-700); }
.product .icon-wrap { width: 130px; height: 130px; margin: 4px 0 6px; }
.product .pix { width: 112px; height: 112px; }
.product h3 { margin: 0; font-size: 22px; font-weight: 900; color: #fff; text-transform: uppercase; transition: color .3s var(--ease); }
.product:hover h3 { color: var(--accent, var(--sky-400)); }
.price { font-size: 20px; font-weight: 800; color: var(--text); }
.product .actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; width: 100%; margin-top: 10px; }

/* Seitenleiste */
.side { display: grid; gap: 24px; }
.side-card { padding: 22px; }
.side-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 18px; font-weight: 900; color: #fff; text-transform: uppercase; }
.side-card p { margin: 0 0 16px; font-size: 14px; }
.supporter { display: flex; align-items: center; gap: 14px; }
.supporter-frame { width: 56px; height: 56px; border-radius: 10px; background: rgba(248, 249, 249, .06); border: 2px solid var(--edge); display: grid; place-items: center; overflow: hidden; flex: none; }
.supporter-head { width: 100%; height: 100%; image-rendering: pixelated; }
.supporter-empty { color: var(--dim); font-weight: 900; font-size: 22px; }
.supporter strong { display: block; font-weight: 800; }
.supporter small { color: var(--dim); }

.footer { border-top: 2px solid var(--edge); padding: 22px 0 32px; color: var(--dim); font-size: 13px; }

/* Fenster */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 20; animation: fadeIn .2s ease both; }
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; overflow: auto; }
.modal-box { position: relative; width: min(460px, 100%); padding: 26px; display: grid; gap: 14px; border-radius: 8px; background: var(--panel-solid); border: 4px solid var(--edge); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .6); animation: pop .25s var(--ease) both; }
.modal-box h2 { margin: 0 34px 0 0; font-size: 22px; font-weight: 900; color: #fff; text-align: center; }
.close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 10px; border: 0; color: #fff; font-size: 13px; background: linear-gradient(#fb7185, var(--danger)); box-shadow: inset 0 0 0 2px rgba(254, 205, 211, .6), 0 3px 0 #9f1239; }
.close:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px rgba(254, 205, 211, .6), 0 1px 0 #9f1239; }
.close.static { position: static; }
.field { display: grid; gap: 6px; }
.field > span { color: var(--muted); font-size: 13px; font-weight: 600; }
.field input, .coupon input { background: rgba(0, 0, 0, .3); border: 2px solid var(--sky-500); color: var(--text); border-radius: 10px; padding: 11px 13px; font: inherit; }
.field input:focus, .coupon input:focus { outline: none; box-shadow: 0 0 0 4px rgba(14, 165, 233, .25); }
.seg { display: flex; gap: 10px; }
.seg label { flex: 1; display: flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .25); border: 2px solid var(--edge); border-radius: 10px; padding: 10px 12px; cursor: pointer; color: var(--text); font-weight: 600; }
.seg label:has(input:checked) { border-color: var(--sky-500); background: rgba(14, 165, 233, .12); }
.error { margin: 0; color: #fb7185; font-size: 13px; font-weight: 600; }
.info-head { display: flex; align-items: center; gap: 16px; }
.info-head h2 { text-align: left; }
.info-icon { width: 90px; height: 90px; display: grid; place-items: center; flex: none; }
.info-icon .pix { width: 84px; height: 84px; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.perks li { position: relative; background: rgba(0, 0, 0, .25); border: 2px solid var(--edge); border-radius: 10px; padding: 9px 12px 9px 32px; font-size: 14px; color: var(--text); }
.perks li::before { content: ""; position: absolute; left: 13px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 2px; background: var(--accent, var(--sky-400)); }

.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 100%); z-index: 30; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--panel-solid); border-left: 4px solid var(--edge); box-shadow: -20px 0 50px rgba(0, 0, 0, .5); animation: slideIn .3s var(--ease) both; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head h2 { margin: 0; font-size: 22px; font-weight: 900; color: #fff; text-transform: uppercase; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; overflow: auto; align-content: start; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; background: rgba(0, 0, 0, .25); border: 2px solid var(--edge); border-radius: 10px; padding: 11px 13px; }
.cart-item .sub { color: var(--dim); font-size: 13px; }
.qty { display: flex; gap: 6px; align-items: center; color: var(--text); }
.qty button { width: 30px; height: 30px; border-radius: 8px; border: 0; color: #fff; background: linear-gradient(var(--sky-400), var(--sky-500)); box-shadow: inset 0 0 0 2px var(--sky-ring), 0 3px 0 var(--sky-700); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.empty { text-align: center; color: var(--dim); margin: 28px 0; }
.drawer-foot { border-top: 2px solid var(--edge); padding-top: 14px; display: grid; gap: 12px; }
.total { display: flex; justify-content: space-between; font-size: 17px; color: var(--text); }
.total strong { font-weight: 900; }
.summary { list-style: none; margin: 0; padding: 12px 14px; background: rgba(0, 0, 0, .25); border: 2px solid var(--edge); border-radius: 10px; display: grid; gap: 4px; color: var(--text); }
.summary li { display: flex; justify-content: space-between; gap: 10px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.check input { accent-color: var(--sky-500); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50; padding: 12px 18px; border-radius: 16px; font-weight: 700; color: #fff; background: linear-gradient(var(--sky-400), var(--sky-500)); box-shadow: inset 0 0 0 2px var(--sky-ring), 0 6px 0 var(--sky-700); animation: toastIn .3s var(--ease) both; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qty-row { display: flex; justify-content: space-between; align-items: center; background: rgba(0, 0, 0, .25); border: 2px solid var(--edge); border-radius: 10px; padding: 8px 12px; }
.qty-row .qty span { min-width: 24px; text-align: center; font-weight: 800; }
.coupon { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.coupon input { text-transform: uppercase; }
.discount strong { color: var(--green); }
.done { text-align: center; }
.code { justify-self: center; border: 0; border-radius: 16px; padding: 14px 26px; font: 900 28px/1 ui-monospace, Consolas, monospace; letter-spacing: 3px; color: #fff; background: linear-gradient(var(--sky-400), var(--sky-500)); box-shadow: inset 0 0 0 2px var(--sky-ring), 0 6px 0 var(--sky-700); }
.code:active { transform: translateY(4px); box-shadow: inset 0 0 0 2px var(--sky-ring), 0 2px 0 var(--sky-700); }
.steps { text-align: left; margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.done textarea { background: rgba(0, 0, 0, .3); color: var(--text); border: 2px solid var(--edge); border-radius: 10px; padding: 9px 11px; font: 13px/1.4 ui-monospace, Consolas, monospace; resize: none; }

/* Laufzeit-Auswahl (Monatlich / Jaehrlich) */
.price small { font-size: 13px; font-weight: 600; color: var(--dim); }
.dur { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dur-btn { position: relative; display: grid; gap: 2px; justify-items: center; padding: 12px 10px; border-radius: 12px; border: 2px solid var(--edge); background: rgba(0, 0, 0, .25); color: var(--text); transition: border-color .15s, background .15s; }
.dur-btn strong { font-weight: 900; font-size: 15px; }
.dur-btn span { font-weight: 700; color: var(--muted); }
.dur-btn em { position: absolute; top: -10px; right: -6px; font-style: normal; font-size: 11px; font-weight: 900; color: #fff; padding: 2px 8px; border-radius: 999px; background: linear-gradient(#4ade80, #16a34a); box-shadow: 0 2px 0 #14532d; }
.dur-btn.active { border-color: var(--sky-500); background: rgba(14, 165, 233, .14); }
.dur-btn.active span { color: var(--sky-300); }

/* Hinweis, wenn der Store ohne Server laeuft */
.offline-banner { position: relative; z-index: 5; padding: 10px 16px; text-align: center; font-size: 14px; font-weight: 600; color: #fff; background: linear-gradient(#f59e0b, #d97706); box-shadow: 0 3px 0 #92400e; }
.offline-banner a { color: #fff; font-weight: 900; }
.offline-banner code { background: rgba(0, 0, 0, .25); padding: 1px 6px; border-radius: 4px; }

/* Logo-Bild und Unterstuetzer-Bild */
.header-logo.has-img { background: none; box-shadow: none; width: 64px; height: 64px; }
.header-logo.has-img img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.supporter-art { width: 96px; height: 72px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); }

/* Geschenkkarte */
.gift-check { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.gift-check input { min-width: 0; background: rgba(0, 0, 0, .3); border: 2px solid var(--sky-500); color: var(--text); border-radius: 10px; padding: 10px 12px; font: inherit; text-transform: uppercase; }
.gift-check input:focus { outline: none; box-shadow: 0 0 0 4px rgba(14, 165, 233, .25); }
.gift-result { margin: 12px 0 0; font-size: 13px; font-weight: 700; }
.gift-result.ok { color: var(--green); }
.gift-result.bad { color: #fb7185; }
#giftCardTitle .ui-icon { color: #facc15; }

/* Eigene Item-Bilder (z. B. Minecraft-Renders) */
.item-img {
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .55)) drop-shadow(0 0 16px color-mix(in srgb, var(--accent, #38bdf8) 45%, transparent));
}
.tile .item-img { width: 165px; height: 165px; }
.product .item-img { width: 120px; height: 120px; }
.info-icon .item-img { width: 90px; height: 90px; }
/* Heller Lichtkreis hinter dem Bild */
.icon-wrap::after { content: ""; position: absolute; inset: 14%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent, #38bdf8) 30%, transparent) 0%, transparent 70%); }

/* Pixel-Items gestochen scharf */
.pix:not(.vec) { image-rendering: pixelated; }

/* Kleine UI-Icons */
.ui-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; }
.ui-icon svg { width: 100%; height: 100%; }
.side-card h3 .ui-icon { width: 20px; height: 20px; color: var(--sky-400); }
#supporterTitle .ui-icon { color: #fb7185; }
#giftLabel { display: inline-flex; align-items: center; gap: 6px; }
#giftLabel .ui-icon { color: #facc15; }
.ribbon .ui-icon { width: 12px; height: 12px; }
.ribbon .ui-icon svg { fill: currentColor; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 170px; padding: 18px 20px; }
  .tile .icon-wrap { width: 110px; height: 110px; }
  .tile .pix { width: 96px; height: 96px; }
  .hide-sm { display: none; }
  .header-card { justify-content: center; min-height: 0; }
  .header-brand { font-size: 17px; }
  .pill, #cartBtn, #loginBtn { height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.logo-art { display: block; width: min(820px, 100%); height: auto; margin: 0 auto; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .55)); }
@media (max-width: 640px) { .logo-big { padding: 28px 0 20px; } }
