:root {
  --bg0: #0e1116;
  --bg1: #171c24;
  --text: #eef2f7;
  --muted: #9aa7b8;
  --accent: #e8892a;
  --accent2: #3db8ff;
  --card: #1c2330;
  --line: #2a3342;
  --danger: #c0392b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(232,137,42,.16), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}
.wrap { max-width: 1240px; margin: 0 auto; padding: 40px 20px 72px; }
.wrap.narrow { max-width: 640px; }
header { position: relative; }
header h1 { margin: 8px 0; font-size: clamp(1.6rem, 3.5vw, 2.2rem); padding-right: 120px; }
header p { color: var(--muted); line-height: 1.5; }
.back { color: var(--accent2); text-decoration: none; font-size: .95rem; }
#langSwitch { position: absolute; top: 0; right: 0; }
.lang-switch {
  display: inline-flex;
  gap: 6px;
  background: #12171f;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: .85rem;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-btn .flag { font-size: 1.05rem; line-height: 1; }
.lang-btn.on {
  background: var(--accent);
  color: #1a0a04;
}
.lang-btn:hover:not(.on) { color: var(--text); background: #1a2230; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  gap: 28px;
  margin-top: 28px;
}
@media (max-width: 1100px) {
  .grid { grid-template-columns: 1fr; }
  header h1 { padding-right: 0; }
  #langSwitch { position: static; margin: 0 0 12px; }
}
a.tile, .tile, .card {
  background: linear-gradient(160deg, var(--card), #141920);
  border: 1px solid var(--line);
  border-radius: 16px;
}
a.tile, .tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  padding: 32px;
  text-decoration: none;
  color: inherit;
}
a.tile:hover, .tile:hover { border-color: var(--accent); }
.badge {
  align-self: flex-start;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #1a0a04;
  background: var(--accent);
  padding: 4px 8px;
  border-radius: 999px;
}
.badge.free {
  color: #062012;
  background: #3dd68c;
}
.tile h2 { margin: 0; font-size: 1.45rem; }
.tile h2 a { color: inherit; text-decoration: none; }
.tile h2 a:hover { color: var(--accent2); }
.slogan {
  margin: 0;
  color: var(--accent);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.35;
}
.product-primary .slogan {
  margin: -2px 0 10px;
  font-size: 1.05rem;
}
.thumb-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.tile-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  background: #0a0d12;
  display: block;
}
.thumb-row .tile-thumb { aspect-ratio: 4 / 3; }
.tile-thumb:hover { border-color: var(--accent); }
.product-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 8px;
}
.product-thumbs .tile-thumb { aspect-ratio: 16 / 10; }
.product-preview {
  margin: 4px 0 12px;
}
.product-preview .thumb-carousel-track .tile-thumb {
  aspect-ratio: 16 / 10;
}

/* Kompaktes Thumbnail-Karussell (Boss-Counter u. a.) */
.thumb-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}
.thumb-carousel-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
}
.thumb-carousel-track {
  display: flex;
  transition: transform .25s ease;
  will-change: transform;
}
.thumb-carousel-track .tile-thumb {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0;
}
.thumb-carousel[data-carousel*="osd"] .tile-thumb {
  object-fit: contain;
  object-position: center;
}
.thumb-nav {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #12171f;
  color: var(--accent2);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.thumb-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #1a2230;
}
.thumb-nav:disabled {
  opacity: .35;
  cursor: default;
}
.thumb-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 2px;
  flex-wrap: wrap;
}
.thumb-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a4556;
}
.thumb-dots span.on { background: var(--accent); }
.card { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.price, .price-lg { font-weight: 700; color: var(--accent2); }
.price-lg { font-size: 1.6rem; }
a.price { text-decoration: none; }
a.price:hover { text-decoration: underline; }
.muted, .fine { color: var(--muted); }
.fine { font-size: .85rem; line-height: 1.4; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: #1a0a04; }
.btn.secondary { background: #2a3342; color: var(--text); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.field input {
  border: 1px solid var(--line);
  background: #12171f;
  color: var(--text);
  border-radius: 10px;
  padding: 12px;
  font-size: 1rem;
}
.notice {
  background: #2a2218;
  border: 1px solid #6a4a20;
  color: #f0d2a0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .9rem;
}
.notice.error { background: #2a1515; border-color: var(--danger); color: #f5c0c0; }

/* Vollbild-Vorschau */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .82);
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  cursor: zoom-out;
}

/* Produktseite: links Produkt, rechts Checkout */
.product-wrap { max-width: 1180px; }
.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
}
.product-top #langSwitch { position: static; }
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 28px;
  align-items: start;
}
@media (max-width: 960px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
  .checkout-panel { order: -1; }
}
.product-primary h1 {
  margin: 12px 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.product-desc {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 14px;
}
.feature-list {
  margin: 0 0 16px;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
}
.feature-list li { margin: 4px 0; }
.checkout-panel {
  background: linear-gradient(160deg, #1a2130, #12171f);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 16px;
}
.checkout-block { display: flex; flex-direction: column; gap: 6px; }
.checkout-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent2);
}
.checkout-hint {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.35;
}
.checkout-hint.ok { color: #6dce8b; }
.checkout-panel input[type="email"],
.checkout-panel input[type="text"] {
  border: 1px solid var(--line);
  background: #0e131a;
  color: var(--text);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: .95rem;
  width: 100%;
}
.btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  background: #5865f2;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.btn-discord:hover { filter: brightness(1.08); }
.btn-discord-secondary {
  border: 1px solid var(--line);
  background: #1a2230;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn-discord-secondary:hover { border-color: var(--accent); color: var(--accent); }
.discord-icon { flex: 0 0 auto; }
.discord-linked {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0 4px;
}
.discord-linked[hidden],
#discordLoginPrompt[hidden] {
  display: none !important;
}
.discord-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.discord-linked-info { flex: 1; min-width: 0; }
.discord-linked-info strong {
  display: block;
  color: #e8c15a;
  font-size: 1.05rem;
}
.discord-state {
  margin: 4px 0 0;
  font-size: .85rem;
  font-weight: 600;
  color: #e8c15a;
}
.discord-detail {
  margin: 6px 0 0;
  font-size: .8rem;
  color: var(--muted);
  white-space: pre-line;
  line-height: 1.45;
}
.discount-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.btn-apply {
  border: 1px solid var(--line);
  background: #1a2230;
  color: var(--text);
  border-radius: 10px;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn-apply:hover { border-color: var(--accent); color: var(--accent); }
.discount-msg { font-size: .8rem; }
.discount-msg.ok { color: #6dce8b; }
.discount-msg.err { color: #f5a0a0; }
.price-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--accent2);
  font-weight: 700;
}
.price-summary strong {
  font-size: 1.55rem;
  color: #e8c15a;
}
.price-list { margin: -6px 0 0; font-size: .8rem; text-decoration: line-through; }
.consent-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.4;
  align-items: start;
}
.consent-row a { color: var(--accent2); }
.btn-checkout {
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #c9a14a, #9a7428);
  color: #1a1204;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}
.btn-checkout:hover:not(:disabled) { filter: brightness(1.06); }
.btn-checkout:disabled { opacity: .45; cursor: not-allowed; }
a.btn-checkout {
  display: block;
  text-align: center;
  text-decoration: none;
}
.btn-download {
  background: linear-gradient(180deg, #4ee39a, #2aa86a);
  color: #062012;
}
.payment-info {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #0e131a;
}
.payment-info-title {
  margin: 0 0 8px;
  text-align: center;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #e8c15a;
  font-weight: 700;
}
.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.payment-badges span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .75rem;
  color: var(--text);
  background: #151b24;
}
.payment-info-note {
  margin: 8px 0 0;
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
}
.legal-note {
  margin: 0;
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.4;
}
.store-footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: .82rem;
}
.store-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.store-footer a {
  color: var(--accent2);
  text-decoration: none;
}
.store-footer a:hover { text-decoration: underline; }
.guide-card { margin-top: 8px; }
.guide-steps {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  line-height: 1.6;
  color: var(--muted);
}
.guide-steps li { margin: 8px 0; }
.guide-card a { color: var(--accent2); }
