:root {
  color-scheme: dark;
  --bg: #07090c;
  --bg-2: #0b1014;
  --surface: #11161c;
  --surface-2: #161d24;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f1f7f5;
  --muted: #94a3a0;
  --cyan: #12e7df;
  --cyan-deep: #0892b0;
  --mint: #66f5a2;
  --gold: #ffc857;
  --coral: #ff6b5f;
  --violet: #a393ff;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

/* LexeSMP Spawn-Hintergrund nur oben (hinter dem Hero), nach unten weich auslaufend */
body::before {
  content: "";
  position: fixed;
  top: -2vh;
  left: -2vw;
  right: -2vw;
  height: 124vh;
  min-height: 940px;
  z-index: -2;
  background-image: url("assets/spawn-background.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 42%;
  image-rendering: auto;
  /* Negative Raender statt transform:scale - vermeidet GPU-Kachel-Naehte beim Blur.
     Kraeftiger Blur (8px): loest die dunklen Baum-/Haus-Silhouetten des Screenshots auf,
     die sonst als vertikale "Farbkanten" durchscheinen. */
  filter: blur(8px) saturate(0.95) brightness(0.48);
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 120vh;
  min-height: 900px;
  z-index: -1;
  /* Feines Dither-Rauschen (3% Alpha) gegen Banding-Stufen in den dunklen Verlaeufen */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)'/%3E%3C/svg%3E") repeat,
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(18, 231, 223, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(7, 9, 12, 0.58) 0%, rgba(7, 9, 12, 0.8) 40%, rgba(7, 9, 12, 0.97) 62%, var(--bg) 78%, var(--bg) 100%);
  pointer-events: none;
}

button, input, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 0.75rem; overflow-wrap: anywhere; }
a { color: var(--cyan); }

/* =========== HERO =========== */
.hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem) clamp(1rem, 3vw, 1.6rem);
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}

.hero-side {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(17, 22, 28, 0.7);
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hero-side:hover, .hero-side:focus-visible {
  transform: translateY(-1px);
  background: rgba(17, 22, 28, 0.92);
}

.hero-play { border-color: rgba(18, 231, 223, 0.36); justify-self: end; }
.hero-play:hover { border-color: rgba(18, 231, 223, 0.7); }
.hero-discord { border-color: rgba(163, 147, 255, 0.36); justify-self: start; }
.hero-discord:hover { border-color: rgba(163, 147, 255, 0.7); }

.hero-side-text { display: grid; line-height: 1.05; }
.hero-side-label { color: var(--text); font-weight: 900; font-size: 0.82rem; letter-spacing: 0.08em; }
.hero-side-sub { color: var(--muted); font-size: 0.78rem; margin-top: 0.18rem; }

.hero-side-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(18, 231, 223, 0.12);
  color: var(--cyan);
}

.hero-discord .hero-side-icon {
  background: rgba(163, 147, 255, 0.14);
  color: var(--violet);
}

.hero-side-icon svg { width: 22px; height: 22px; fill: currentColor; }

.hero-side-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--mint);
  color: #062014;
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
  line-height: 18px;
  box-shadow: 0 0 0 3px var(--bg);
}

.hero-logo {
  display: grid;
  justify-items: center;
  text-decoration: none;
  transition: filter 200ms ease;
  /* Sanftes Schweben - laeuft endlos */
  animation: logoFloat 4.5s ease-in-out infinite;
  transform-origin: center;
}

.hero-logo:hover {
  animation-play-state: paused;
  filter: drop-shadow(0 0 26px rgba(18, 231, 223, 0.7));
}

.hero-logo-img {
  width: clamp(320px, 44vw, 500px);
  height: auto;
  image-rendering: auto;
  animation: logoGlow 4.5s ease-in-out infinite;
}

@keyframes logoFloat {
  0%   { transform: translateY(0)    rotate(-0.4deg); }
  50%  { transform: translateY(-8px) rotate(0.4deg); }
  100% { transform: translateY(0)    rotate(-0.4deg); }
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 4px rgba(18, 231, 223, 0.25)); }
  50%      { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 22px rgba(18, 231, 223, 0.7)); }
}

/* Wenn der Nutzer "Animationen reduzieren" hat, ausschalten */
@media (prefers-reduced-motion: reduce) {
  .hero-logo, .hero-logo-img { animation: none; }
}

/* =========== SHOP SHELL =========== */
main { width: min(1040px, 100%); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem) 2rem; }

.shop-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

/* =========== SIDEBAR =========== */
.sidebar { display: grid; gap: 1rem; position: sticky; top: 1rem; }

.sidebar-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.name-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem;
  border: 1px solid rgba(18, 231, 223, 0.42);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(18, 231, 223, 0.18), rgba(18, 231, 223, 0.05));
  box-shadow: var(--shadow);
}

.name-card-head { display: flex; align-items: center; gap: 0.7rem; }

.name-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0b3a3c, #062628);
  border: 2px solid var(--cyan);
  color: #eafffd;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.25);
}

.name-card-title { color: var(--text); font-weight: 800; font-size: 0.92rem; line-height: 1.2; }

.name-card input {
  width: 100%;
  min-height: 42px;
  padding: 0 0.75rem;
  border: 1px solid rgba(18, 231, 223, 0.36);
  border-radius: 8px;
  background: rgba(7, 12, 14, 0.6);
  color: var(--text);
  font-weight: 800;
  outline: none;
}

.name-card input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(18, 231, 223, 0.18);
}

.cat-list {
  display: grid;
  gap: 0.55rem;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17, 22, 28, 0.78), rgba(9, 14, 18, 0.7));
}

.cat {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  min-height: 58px;
  padding: 0.65rem 0.78rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  text-align: left;
  overflow: hidden;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.cat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: transparent;
}

.cat:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}

.cat.is-active {
  border-color: rgba(18, 231, 223, 0.62);
  background: linear-gradient(90deg, rgba(18, 231, 223, 0.18), rgba(18, 231, 223, 0.08));
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(18, 231, 223, 0.08), 0 10px 22px rgba(0, 0, 0, 0.18);
}

.cat.is-active::before {
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(18, 231, 223, 0.8);
}

.cat-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(18, 231, 223, 0.12);
  color: var(--cyan);
  font-weight: 900;
}

.cat-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.cat-name {
  color: var(--text);
  font-weight: 900;
  font-size: 0.86rem;
  line-height: 1.1;
}

.cat-meta {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.68rem;
  line-height: 1.1;
}

.cat.is-active .cat-name { color: var(--cyan); }
.cat.is-active .cat-meta { color: rgba(212, 255, 251, 0.76); }

.cat[data-filter="ranks"] .cat-icon { background: rgba(255, 200, 87, 0.14); color: var(--gold); }
.cat[data-filter="gems"] .cat-icon { background: rgba(163, 147, 255, 0.16); color: var(--violet); }

/* ---- Cart in Sidebar ---- */
.cart-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(17, 22, 28, 0.85);
  box-shadow: var(--shadow);
}

.cart-card-head { display: flex; align-items: center; justify-content: space-between; }
.cart-card-head strong { font-size: 0.95rem; }

.icon-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.icon-button svg, .checkout-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.cart-list { display: grid; gap: 0.5rem; max-height: 180px; overflow-y: auto; }

.empty-cart {
  display: grid;
  place-items: center;
  min-height: 60px;
  margin: 0;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.86rem;
}

.cart-item strong { display: block; }
.cart-item span { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.78rem; }

.quantity { display: grid; grid-template-columns: 26px 22px 26px; align-items: center; justify-items: center; }
.quantity button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: rgba(18, 231, 223, 0.14);
  color: var(--cyan);
  font-weight: 900;
}
.quantity output { color: var(--text); font-weight: 900; font-size: 0.85rem; }

.cart-summary { display: flex; align-items: center; justify-content: space-between; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.cart-summary span { color: var(--muted); font-size: 0.85rem; }
.cart-summary strong { color: var(--gold); font-size: 1.1rem; }

.checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--mint), #3fd285);
  color: #042414;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(102, 245, 162, 0.25);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.checkout-button:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(102, 245, 162, 0.35); }

.checkout-note { margin: 0; color: var(--muted); font-size: 0.78rem; }
.checkout-note.is-error { color: var(--coral); }
.checkout-note.is-ok { color: var(--mint); }

/* =========== SHOP MAIN =========== */
.shop-main {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(17, 22, 28, 0.92), rgba(11, 16, 20, 0.92));
  box-shadow: var(--shadow);
}

.featured-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(18, 231, 223, 0.4);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(18, 231, 223, 0.16), rgba(102, 245, 162, 0.08));
  color: var(--cyan);
  font-weight: 900;
  font-size: 0.9rem;
}
.featured-bar-dot { color: var(--gold); }

.shop-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}
.shop-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--cyan); }
.shop-head p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.92rem; }

.featured-card {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.2rem 0.7rem;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  border: 1px solid rgba(18, 231, 223, 0.45);
  border-radius: 12px;
  background: rgba(18, 231, 223, 0.08);
  text-decoration: none;
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease;
}
.featured-card:hover { transform: translateY(-1px); border-color: var(--cyan); }
.featured-tag { grid-column: 2; font-size: 0.66rem; font-weight: 900; color: var(--cyan); letter-spacing: 0.08em; }
.featured-emoji {
  grid-column: 1;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: radial-gradient(circle at 30% 30%, rgba(18, 231, 223, 0.4), rgba(0, 0, 0, 0.6));
  color: #eafffd;
  font-weight: 900;
  font-size: 1.3rem;
}
.featured-name { grid-column: 2; font-weight: 900; }
.featured-price { grid-column: 2; color: var(--gold); font-weight: 900; font-size: 0.9rem; }

/* =========== PRODUCT GRID =========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)), var(--surface);
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease;
}
.product-card:hover { transform: translateY(-2px); border-color: rgba(18, 231, 223, 0.4); }

.product-card[data-featured="true"] {
  border-color: rgba(18, 231, 223, 0.55);
  box-shadow: 0 0 0 1px rgba(18, 231, 223, 0.25), var(--shadow);
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  height: 110px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(18, 231, 223, 0.22), transparent 70%),
    linear-gradient(180deg, #121820, #0a0e12);
}
.product-card[data-accent="gold"] .product-media { background: radial-gradient(ellipse at 50% 40%, rgba(255, 200, 87, 0.22), transparent 70%), linear-gradient(180deg, #121820, #0a0e12); }
.product-card[data-accent="violet"] .product-media { background: radial-gradient(ellipse at 50% 40%, rgba(163, 147, 255, 0.22), transparent 70%), linear-gradient(180deg, #121820, #0a0e12); }
.product-card[data-accent="mint"] .product-media { background: radial-gradient(ellipse at 50% 40%, rgba(102, 245, 162, 0.22), transparent 70%), linear-gradient(180deg, #121820, #0a0e12); }

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(18, 231, 223, 0.18);
  border: 1px solid rgba(18, 231, 223, 0.5);
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.product-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: radial-gradient(circle at 30% 30%, rgba(18, 231, 223, 0.35), rgba(0, 0, 0, 0.6));
  color: #eafffd;
  font-size: 1.6rem;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(18, 231, 223, 0.3);
}
.product-card[data-accent="gold"] .product-icon { border-color: var(--gold); background: radial-gradient(circle at 30% 30%, rgba(255, 200, 87, 0.35), rgba(0, 0, 0, 0.6)); color: #fff7e0; box-shadow: 0 6px 18px rgba(255, 200, 87, 0.3); }
.product-card[data-accent="violet"] .product-icon { border-color: var(--violet); background: radial-gradient(circle at 30% 30%, rgba(163, 147, 255, 0.35), rgba(0, 0, 0, 0.6)); color: #f1eeff; box-shadow: 0 6px 18px rgba(163, 147, 255, 0.3); }
.product-card[data-accent="mint"] .product-icon { border-color: var(--mint); background: radial-gradient(circle at 30% 30%, rgba(102, 245, 162, 0.35), rgba(0, 0, 0, 0.6)); color: #ebfff2; box-shadow: 0 6px 18px rgba(102, 245, 162, 0.3); }

.product-icon-img,
.featured-icon-img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  /* Echtes 16x16 Minecraft-Pixel-Icon: scharf, nicht verwaschen hochskalieren */
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.product-card[data-accent="violet"] .product-icon-img {
  filter: drop-shadow(0 2px 6px rgba(163, 147, 255, 0.6));
}
.product-card[data-accent="cyan"] .product-icon-img,
.featured-icon-img {
  filter: drop-shadow(0 2px 6px rgba(18, 231, 223, 0.65));
}

.featured-icon-img { width: 75%; height: 75%; }

.product-body { display: grid; gap: 0.55rem; padding: 0.9rem; }

.product-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; }
.product-title-row h3 { font-size: 1rem; }

.price { color: var(--gold); font-weight: 900; }

.product-body p { margin: 0; color: var(--muted); font-size: 0.86rem; }

.perk-list { display: grid; gap: 0.32rem; margin: 0; padding: 0; list-style: none; }
.perk-list li { display: flex; gap: 0.45rem; color: #d6e0db; font-size: 0.84rem; }
.perk-list li::before { content: ""; flex: 0 0 auto; width: 0.4rem; height: 0.4rem; margin-top: 0.42rem; border-radius: 999px; background: var(--cyan); }
.product-card[data-accent="gold"] .perk-list li::before { background: var(--gold); }
.product-card[data-accent="violet"] .perk-list li::before { background: var(--violet); }
.product-card[data-accent="mint"] .perk-list li::before { background: var(--mint); }

.product-actions { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; padding: 0 0.9rem 0.9rem; }

.product-actions button { min-height: 40px; padding: 0 0.85rem; border: 0; border-radius: 8px; font-weight: 900; transition: transform 160ms ease, box-shadow 160ms ease; }
.product-actions button:hover { transform: translateY(-1px); }

.add-button { background: var(--text); color: #07090c; }
.buy-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  background: linear-gradient(180deg, var(--cyan), var(--cyan-deep));
  color: #001616;
  box-shadow: 0 6px 18px rgba(18, 231, 223, 0.35);
}
.buy-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* =========== INFO BLOCK =========== */
.info-block { display: grid; gap: 0.5rem; padding: 0.5rem 0.5rem; color: #d6e0db; }
.info-block h2 { margin: 1rem 0 0.3rem; padding-top: 0.9rem; color: var(--cyan); font-size: 1.05rem; border-top: 1px solid var(--line); }
.info-block h2:first-of-type { margin-top: 0.3rem; padding-top: 0; border-top: 0; }
.info-block p { margin: 0 0 0.6rem; line-height: 1.6; }
.info-block code { padding: 0.05rem 0.35rem; border-radius: 4px; background: rgba(18, 231, 223, 0.1); color: var(--cyan); font-size: 0.9em; }
.info-block a { color: var(--cyan); }

.support-band {
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 107, 95, 0.4);
  border-radius: 10px;
  background: rgba(255, 107, 95, 0.08);
  color: var(--text);
  font-size: 0.88rem;
  text-align: center;
}
.support-band a { color: var(--coral); font-weight: 900; }

/* =========== FOOTER =========== */
.site-footer {
  display: grid;
  gap: 0.4rem;
  width: min(1040px, 100%);
  margin: 1rem auto 0;
  padding: 1.2rem clamp(1rem, 3vw, 2rem) 1.8rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-copy { margin: 0; color: var(--muted); font-size: 0.85rem; font-weight: 800; }
.footer-copy strong { color: var(--cyan); }
.footer-note { margin: 0; color: rgba(148, 163, 160, 0.65); font-size: 0.74rem; line-height: 1.5; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-top: 0.4rem; }
.footer-links a {
  padding: 0.35rem 0.7rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.78rem;
  transition: color 160ms ease;
}
.footer-links a:hover { color: var(--cyan); }
.footer-links a + a { border-left: 1px solid var(--line); }

/* =========== USERNAME MODAL =========== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 7, 10, 0.72);
  backdrop-filter: blur(10px);
  animation: fadeIn 200ms ease both;
}

.modal-backdrop[hidden] { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

.modal {
  position: relative;
  width: min(440px, 100%);
  padding: 1.6rem 1.4rem 1.3rem;
  border: 1px solid rgba(18, 231, 223, 0.4);
  border-radius: 18px;
  background: linear-gradient(180deg, #0e1923 0%, #08121a 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(18, 231, 223, 0.15);
  text-align: center;
  animation: popIn 240ms cubic-bezier(.2,.9,.3,1.2) both;
  overflow: hidden;
}

.modal-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 30%, var(--mint) 70%, transparent 100%);
  box-shadow: 0 0 16px rgba(18, 231, 223, 0.6);
}

.modal h2 {
  margin: 0.3rem 0 1.1rem;
  color: var(--cyan);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.3;
  text-shadow: 0 0 18px rgba(18, 231, 223, 0.35);
}

.edition-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.edition {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.edition span:last-child { font-size: 0.78rem; line-height: 1.2; }
.edition strong { font-weight: 900; color: inherit; }

.edition:hover { transform: translateY(-1px); }

.edition.is-active {
  border-color: rgba(18, 231, 223, 0.55);
  background: rgba(18, 231, 223, 0.1);
  color: var(--text);
}

.edition-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.edition.is-active .edition-icon {
  background: rgba(18, 231, 223, 0.16);
  color: var(--cyan);
}

.edition-icon svg { width: 22px; height: 22px; }

.modal-hint {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: left;
  font-style: italic;
}

.modal-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.modal-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 0.85rem;
  border: 1px solid rgba(18, 231, 223, 0.34);
  border-radius: 10px;
  background: rgba(7, 12, 14, 0.7);
  color: var(--text);
  font-weight: 800;
  outline: none;
}

.modal-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(18, 231, 223, 0.18);
}

.modal-submit {
  display: grid;
  place-items: center;
  width: 50px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--cyan), var(--cyan-deep));
  color: #001616;
  box-shadow: 0 6px 18px rgba(18, 231, 223, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.modal-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(18, 231, 223, 0.45); }
.modal-submit svg { width: 20px; height: 20px; }

.modal-error {
  margin: 0.2rem 0 0;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(255, 107, 95, 0.4);
  border-radius: 8px;
  background: rgba(255, 107, 95, 0.08);
  color: var(--coral);
  font-size: 0.82rem;
  text-align: left;
}

.modal-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.modal-note[hidden] { display: none; }

.order-modal {
  width: min(640px, 100%);
  text-align: left;
}

.order-modal h2 {
  text-align: center;
}

.order-intro {
  margin: -0.25rem 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}

.order-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(18, 231, 223, 0.24);
  border-radius: 12px;
  background: rgba(18, 231, 223, 0.07);
}

.order-summary-line span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.order-summary-line strong {
  color: var(--gold);
  font-family: var(--pixel-font, "Courier New", monospace);
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: right;
}

.order-text {
  width: 100%;
  min-height: 230px;
  max-height: 42vh;
  padding: 0.9rem;
  border: 1px solid rgba(18, 231, 223, 0.28);
  border-radius: 12px;
  background: rgba(3, 8, 12, 0.78);
  color: var(--text);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.84rem;
  line-height: 1.5;
  outline: none;
  resize: vertical;
}

.order-text:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(18, 231, 223, 0.16);
}

.order-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.order-copy,
.order-discord,
.order-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.order-copy {
  background: linear-gradient(180deg, rgba(18, 231, 223, 0.92), rgba(12, 164, 159, 0.92));
  color: #001616;
}

.order-discord {
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.95), rgba(60, 73, 205, 0.95));
  color: white;
}

.order-close {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.order-copy:hover,
.order-discord:hover,
.order-close:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 231, 223, 0.32);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.order-status {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

/* hidden-Attribut muss IMMER gewinnen (auch wenn weiter unten display: grid steht) */
[hidden] { display: none !important; }

/* =========================================================================
   MINECRAFT THEME OVERRIDE
   Block-edges (radius ~2px), Pixel-Font fuer Headlines & UI-Labels,
   3D-Bevel auf Aktions-Buttons, echte MC-Item-Icons in Kategorien.
   Spaeter im File -> gewinnt im Cascade gegenueber den Defaults oben.
   ========================================================================= */
:root {
  --pixel-font: "Courier New", Consolas, monospace;
  --bevel: inset 2px 2px 0 rgba(255, 255, 255, 0.32),
           inset -2px -2px 0 rgba(0, 0, 0, 0.48);
  --bevel-press: inset 2px 2px 0 rgba(0, 0, 0, 0.48),
                 inset -2px -2px 0 rgba(255, 255, 255, 0.2);
}

/* ---- Moderne, weich abgerundete Karten (kein Block-Kanten-Look mehr) ---- */
.shop-main, .name-card, .cart-card,
.product-card, .features-card, .rank-product-card,
.rank-table, .modal, .featured-card {
  border-radius: 14px;
}
.hero-side, .cat-list, .rank-action, .checkout-button,
.add-button, .buy-button, .rank-subscribe, .modal-submit,
.edition, .product-actions button {
  border-radius: 12px;
}
.cat, .cart-item, .empty-cart, .quantity button, .icon-button,
.name-card input, .modal-form input,
.rank-row-badge, .rank-row-help {
  border-radius: 8px;
}
.name-avatar, .cat-icon, .modal-accent { border-radius: 6px; }

/* ---- Pixel-Font NUR fuer kompakte Headlines & Badges (sonst unleserlich) ---- */
.shop-head h1, .info-block h2,
.rank-detail-title,
.featured-tag, .featured-name,
.product-badge, .product-card h3,
.rank-row-badge,
.features-card-label,
.sidebar-eyebrow,
.cart-summary strong,
#name-modal-title {
  font-family: var(--pixel-font);
  letter-spacing: 0.02em;
}

/* Pixel-Font-Fallback ist breit -> Groessen runter */
.shop-head h1 { font-size: clamp(0.95rem, 1.8vw, 1.15rem); line-height: 1.4; }
.info-block h2 { font-size: 0.85rem; line-height: 1.5; margin-top: 0.5rem; }
.rank-detail-title { font-size: clamp(0.95rem, 1.8vw, 1.2rem); line-height: 1.3; }
.featured-tag { font-size: 0.5rem; letter-spacing: 0.1em; }
.featured-name, .product-card h3 { font-size: 0.7rem; line-height: 1.45; }
.product-badge { font-size: 0.5rem; padding: 0.3rem 0.55rem; }
.rank-row-badge { font-size: 0.6rem; padding: 0.35rem 0.6rem; }
.features-card-label { font-size: 0.65rem; }
.sidebar-eyebrow { font-size: 0.55rem; }
.cat { font-size: 0.86rem; letter-spacing: 0; }
.cart-summary strong { font-size: 0.85rem; color: var(--gold); }
#name-modal-title { font-size: 0.85rem; line-height: 1.6; }

/* Hero-Buttons: ueblicher Sans-Font, gut lesbar, schoen breit */
.hero-side-label { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.08em; }
.hero-side-sub { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 0.74rem; }

/* Name-Card-Titel ebenfalls lesbar */
.name-card-title { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 800; font-size: 0.88rem; line-height: 1.3; }

/* ---- 3D-Bevel fuer Aktions-Buttons (Minecraft-Look) ---- */
.checkout-button, .add-button, .buy-button,
.rank-subscribe, .rank-action.is-primary,
.modal-submit, .quantity button {
  box-shadow: var(--bevel);
  border: 2px solid rgba(0, 0, 0, 0.5);
  transition: filter 120ms ease, transform 60ms ease;
}
.checkout-button:hover, .add-button:hover, .buy-button:hover,
.rank-subscribe:hover, .rank-action.is-primary:hover,
.modal-submit:hover, .quantity button:hover {
  filter: brightness(1.1);
  transform: none;
  box-shadow: var(--bevel);
}
.checkout-button:active, .add-button:active, .buy-button:active,
.rank-subscribe:active, .rank-action.is-primary:active,
.modal-submit:active, .quantity button:active {
  box-shadow: var(--bevel-press);
  transform: translateY(1px);
}

/* ---- Kategorie-Icons: echte MC-Items, pixelated ---- */
.cat-icon {
  width: 40px; height: 40px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.cat-icon img { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.cat[data-filter="ranks"] .cat-icon,
.cat[data-filter="gems"] .cat-icon { background: rgba(255, 255, 255, 0.04); color: inherit; }
.cat.is-active .cat-icon {
  background: rgba(18, 231, 223, 0.16);
  border-color: rgba(18, 231, 223, 0.62);
  box-shadow: inset 0 0 0 1px rgba(18, 231, 223, 0.12);
}

/* ---- Moderner Polish: dezente Schatten + Glas-Effekt ---- */
.cart-card, .name-card, .product-card,
.features-card, .rank-product-card, .rank-table, .modal {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

/* Shop-Main: kein Rahmen mehr - Karten liegen direkt auf dem Seiten-Hintergrund */
.shop-main {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 0;
}
.hero-side {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.hero-side:hover, .hero-side:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}
.featured-card {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.featured-card:hover { transform: translateY(-2px); border-color: var(--cyan); box-shadow: 0 12px 30px rgba(18, 231, 223, 0.2); }
.product-card {
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 231, 223, 0.55);
  box-shadow: 0 14px 32px rgba(18, 231, 223, 0.14);
}
.checkout-button:hover { box-shadow: var(--bevel); transform: none; }

/* Logo: dauerhaftes Pulsieren weg, sanft schweben bleibt */
.hero-logo-img { animation: none; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5)); }

/* Featured-Bar entfernen (redundant zum Shop-Titel) */
.featured-bar { display: none; }

/* Karten-Beschreibungstext raus - Perks darunter sagen das gleiche */
.product-body > p { display: none; }

/* Cart-Entfernen-Knopf (fuer Single-Quantity-Items wie Ränge) */
.cart-remove {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 107, 95, 0.12);
  color: var(--coral);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease;
}
.cart-remove:hover { background: rgba(255, 107, 95, 0.22); border-color: var(--coral); }

/* Player-Count Badge "OFF"-Style */
.hero-side-badge.is-offline { background: var(--coral); color: #2a0000; }

/* Icon-Kreis komplett weg - nur das Pixel-Item, nichts drumherum */
.product-icon,
.product-card[data-accent="gold"] .product-icon,
.product-card[data-accent="violet"] .product-icon,
.product-card[data-accent="mint"] .product-icon {
  width: auto; height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.product-icon-img, .featured-icon-img {
  width: 56px; height: 56px;
}
.featured-icon-img { width: 44px; height: 44px; }
.featured-card .featured-emoji {
  width: auto; height: auto;
  border: 0; border-radius: 0;
  background: none; box-shadow: none;
}

/* =========== GEMS VIEW (eigene Ansicht) =========== */
.gems-view { display: grid; gap: 1rem; }
.gems-head { display: grid; gap: 0.25rem; }
.gems-title { margin: 0; color: var(--cyan); font-size: clamp(1rem, 1.8vw, 1.2rem); }
.gems-head p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* =========== RANK DETAIL (HugoSMP-Style) =========== */
.rank-detail { display: grid; gap: 1.25rem; }

.rank-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.rank-detail-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: 0.02em;
}
.rank-detail-actions { display: inline-flex; gap: 0.55rem; }
.rank-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(17, 22, 28, 0.7);
  color: var(--text);
  font-weight: 800;
  font-size: 0.85rem;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}
.rank-action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rank-action:hover { transform: translateY(-1px); background: rgba(17, 22, 28, 0.9); border-color: rgba(18, 231, 223, 0.4); }
.rank-action.is-primary {
  background: linear-gradient(180deg, var(--cyan), var(--cyan-deep));
  color: #001616;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(18, 231, 223, 0.32);
}
.rank-action.is-primary svg { stroke: #001616; }

.rank-detail-cards {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 1rem;
  align-items: stretch;
}

.features-card {
  display: grid;
  place-items: center;
  gap: 0.85rem;
  padding: 1.75rem 1rem;
  border-radius: 16px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.18), transparent 60%),
    linear-gradient(160deg, var(--cyan) 0%, var(--cyan-deep) 100%);
  color: #04181a;
  box-shadow: 0 18px 40px rgba(18, 231, 223, 0.18);
  position: relative;
  overflow: hidden;
}
.features-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 100%, rgba(0,0,0,0.22), transparent 60%);
  pointer-events: none;
}
.features-card-icon {
  display: grid; place-items: center;
  width: 84px; height: 84px;
  position: relative; z-index: 1;
}
.features-card-icon svg { width: 100%; height: 100%; fill: #ffffff; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25)); }
.features-card-label {
  position: relative; z-index: 1;
  font-weight: 900; letter-spacing: 0.15em; font-size: 0.95rem; color: #ffffff;
}

.rank-product-card {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13, 18, 24, 0.85);
  text-align: center;
}
.rank-product-icon {
  display: grid; place-items: center;
  width: 96px; height: 96px;
  padding: 0.5rem;
  filter: drop-shadow(0 4px 18px rgba(18, 231, 223, 0.35));
}
.rank-product-icon img { width: 100%; height: 100%; image-rendering: pixelated; }
.rank-product-name { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--text); }
.rank-product-price { color: var(--cyan); font-weight: 900; letter-spacing: 0.02em; }

.rank-subscribe {
  min-height: 40px;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--cyan), var(--cyan-deep));
  color: #001616;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(18, 231, 223, 0.32);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.rank-subscribe:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(18, 231, 223, 0.42); }
.rank-subscribe.is-wide { min-width: 240px; }

.rank-table {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(13, 18, 24, 0.85);
}
.rank-section + .rank-section { border-top: 1px solid rgba(255,255,255,0.05); }
.rank-section-head {
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.rank-section-rows { display: grid; }
.rank-row {
  display: grid;
  grid-template-columns: 1fr 220px;
  align-items: center;
  padding: 0.75rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.92rem;
}
.rank-row:nth-child(odd) { background: rgba(255,255,255,0.02); }
.rank-row-label { display: inline-flex; align-items: center; gap: 0.4rem; }
.rank-row-help {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  cursor: help;
}
.rank-row-value { display: grid; place-items: center; }

.rank-row-check svg { width: 22px; height: 22px; fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rank-row-check svg circle { fill: rgba(102, 245, 162, 0.12); }

.rank-row-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(18, 231, 223, 0.55);
  border-radius: 6px;
  background: rgba(18, 231, 223, 0.12);
  color: var(--cyan);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.rank-detail-foot { display: grid; place-items: center; padding: 0.5rem 0 0.25rem; }

/* =========== RESPONSIVE =========== */
@media (max-width: 1080px) {
  .shop-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
  .sidebar-eyebrow { grid-column: 1 / -1; }
  .name-card { grid-column: 1 / -1; }
  .cat-list { grid-column: 1; align-self: start; }
  .cart-card { grid-column: 2; align-self: start; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-play, .hero-discord { justify-self: stretch; justify-content: center; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-head { grid-template-columns: 1fr; }
  .featured-card { justify-self: start; }
}

@media (max-width: 820px) {
  .rank-detail-cards { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 1fr 120px; font-size: 0.88rem; }
}

@media (max-width: 560px) {
  .sidebar { grid-template-columns: 1fr; }
  .cat-list, .cart-card { grid-column: 1; }
  .product-grid { grid-template-columns: 1fr; }
  .order-actions { grid-template-columns: 1fr; }
  .order-summary-line { align-items: flex-start; flex-direction: column; }
  .order-summary-line strong { text-align: left; }
  .rank-detail-head { flex-direction: column; align-items: flex-start; }
  .rank-detail-actions { width: 100%; justify-content: flex-end; }
  .rank-row { grid-template-columns: 1fr 100px; padding: 0.6rem 0.85rem; }
}

/* =========================================================================
   PAYPAL-CHECKOUT & ERFOLGS-ANSICHT
   ========================================================================= */

.paypal-zone {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.6rem;
}

.paypal-buttons {
  min-height: 45px;
}

.paypal-fallback {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.paypal-fallback a { color: var(--cyan); }

.order-status.is-error { color: #ff6b6b; }

.order-success {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  text-align: center;
}

.order-success-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(102, 245, 162, 0.14);
  border: 1px solid rgba(102, 245, 162, 0.45);
  color: var(--mint);
  font-size: 1.6rem;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(102, 245, 162, 0.18);
}

.order-success h3 {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
}

.order-success p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.order-success p strong { color: var(--text); }

.order-success-note { font-size: 0.78rem; }

/* =========== Design-Feinschliff (2026-06-10) =========== */
/* Gems-Staffelung: 1 / 2 / 3 gestapelte Kristalle je Paketgroesse.
   Feste Pixelgroessen, weil .product-icon ohne Kreis (width:auto) keinen
   Prozent-Bezugsrahmen mehr bietet. */
.product-card .product-icon[data-tier] { position: relative; width: 110px; height: 72px; }
.product-card .product-icon[data-tier] .product-icon-img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  max-width: none;
  margin: -26px 0 0 -26px;
}
.product-card .product-icon[data-tier="2"] .product-icon-img:nth-child(1) { transform: translateX(-11px) rotate(-14deg); }
.product-card .product-icon[data-tier="2"] .product-icon-img:nth-child(2) { transform: translateX(11px) rotate(14deg); }
.product-card .product-icon[data-tier="3"] .product-icon-img:nth-child(1) { transform: translateX(-18px) rotate(-20deg); }
.product-card .product-icon[data-tier="3"] .product-icon-img:nth-child(2) { transform: translateY(-3px) scale(1.15); z-index: 1; }
.product-card .product-icon[data-tier="3"] .product-icon-img:nth-child(3) { transform: translateX(18px) rotate(20deg); }

/* Badges: besser lesbare Pills, Gold-Variante fuer Top-Angebote */
.product-badge { font-size: 0.7rem; padding: 0.38rem 0.75rem; background: rgba(18, 231, 223, 0.22); }
.product-badge.is-gold { background: rgba(255, 200, 87, 0.18); border-color: rgba(255, 200, 87, 0.55); color: var(--gold); }

/* Vorteils-Kachel statt Platzhalter-Stern */
.features-card { place-items: center start; padding: 1.5rem 1.3rem; }
.features-card-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; position: relative; z-index: 1; }
.features-card-list li { display: flex; gap: 0.5rem; align-items: flex-start; color: #04282a; font-weight: 700; font-size: 0.9rem; line-height: 1.35; }
.features-card-list li::before { content: "\2714"; color: #ffffff; flex: 0 0 auto; }

/* =========== Manuelle PayPal-Zahlung (E-Mail-Modus) =========== */
.email-pay { display: grid; gap: 0.6rem; margin-bottom: 0.8rem; }
.email-pay-locked { margin: 0; padding: 0.7rem 0.9rem; border-radius: 8px; background: rgba(255, 200, 87, 0.08); border: 1px solid rgba(255, 200, 87, 0.3); color: var(--gold); font-size: 0.82rem; line-height: 1.5; }
.email-pay-details { display: grid; gap: 0.5rem; }
.email-pay-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 0.6rem; align-items: center; padding: 0.55rem 0.75rem; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.email-pay-row > span { color: var(--muted); font-size: 0.78rem; }
.email-pay-row > strong { color: var(--text); font-size: 0.85rem; word-break: break-all; font-weight: 700; }
.copy-mini { padding: 0.35rem 0.7rem; border: 1px solid rgba(18, 231, 223, 0.45); border-radius: 6px; background: rgba(18, 231, 223, 0.12); color: var(--cyan); font-size: 0.74rem; font-weight: 700; }
.copy-mini:hover { background: rgba(18, 231, 223, 0.22); }
.email-pay-hint { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
.pay-steps-title { margin: 0 0 0.1rem; font-weight: 800; font-size: 0.88rem; }
.pay-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.7rem; font-size: 0.86rem; color: var(--text); line-height: 1.5; }
.pay-steps li { padding-left: 0.15rem; }
.pay-steps li::marker { color: var(--cyan); font-weight: 800; }
.pay-steps .email-pay-row { margin-top: 0.45rem; }
.pay-warn { color: var(--gold); }
.paypal-pay-btn { display: block; margin-top: 0.5rem; padding: 0.8rem 1rem; border-radius: 10px; background: linear-gradient(180deg, #ffc439, #f0a800); color: #0a2540; font-weight: 900; text-align: center; text-decoration: none; box-shadow: 0 8px 20px rgba(240,168,0,0.3); }
.paypal-pay-btn:hover { transform: translateY(-1px); }
.pay-fallback { margin-top: 0.2rem; }
.pay-fallback summary { cursor: pointer; color: var(--muted); font-size: 0.8rem; }
.pay-fallback .email-pay-row { margin-top: 0.5rem; }
@media (max-width: 480px) { .email-pay-row { grid-template-columns: 1fr; gap: 0.3rem; } }
