/* ===== Grundlayout & Shop ===== */
:root {
  --bg: #0c0e13;
  --bg2: #12151c;
  --card: #171b24;
  --card2: #1f2430;
  --line: #2a3040;
  --text: #e9e6df;
  --muted: #9aa0ad;
  --accent: #e8a33d;
  --accent2: #c9822a;
  --teal: #3fb6a8;
  --red: #e5534b;
  --green: #4caf7a;
  --radius: 14px;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --sans: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Cascadia Mono', Consolas, 'Courier New', monospace;
  --hand: 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive;
  --type: 'Courier New', Courier, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .2px; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
img { max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.mono { font-family: var(--mono); }
.row { display: flex; align-items: center; }
.row.gap { gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.center { justify-content: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--accent); font-weight: 700; margin-bottom: .5rem; }
.error { color: var(--red); min-height: 1.3em; font-weight: 600; }
.pad { padding: 20px; }
.container { width: min(1200px, 92vw); margin: 0 auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 1px solid transparent; border-radius: 10px; padding: .7em 1.3em; font: inherit; font-weight: 600; cursor: pointer; transition: transform .12s, background .2s, border-color .2s, box-shadow .2s; color: var(--text); background: var(--card2); text-decoration: none !important; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn-primary { background: linear-gradient(180deg, #f0b04d, var(--accent2)); color: #1b1206; box-shadow: 0 6px 20px -8px rgba(232, 163, 61, .7); }
.btn-primary:hover { box-shadow: 0 10px 26px -8px rgba(232, 163, 61, .9); }
.btn-secondary { background: #232a38; border-color: #36405a; }
.btn-secondary:hover { border-color: var(--accent); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn-lg { padding: .9em 1.8em; font-size: 1.05rem; }
.btn-small { padding: .35em .8em; font-size: .85rem; }
.block { width: 100%; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
input, textarea, select { font: inherit; color: var(--text); background: #0f1218; border: 1px solid var(--line); border-radius: 10px; padding: .7em .9em; width: 100%; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 163, 61, .2); }
.field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; font-weight: 600; font-size: .92rem; }

/* Header / Navigation */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(12, 14, 19, .82); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .5em; font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--text); text-decoration: none !important; }
.logo-mark { color: var(--accent); }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--text); font-weight: 500; }
.nav a.btn { color: #1b1206; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); animation: heroZoom 30s ease-in-out infinite alternate; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 14, 19, .95) 0%, rgba(12, 14, 19, .7) 45%, rgba(12, 14, 19, .2) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 40%); }
@keyframes heroZoom { to { transform: scale(1.14) translateX(-2%); } }
.hero .container { position: relative; z-index: 2; }
.hero-text { max-width: 620px; }
.hero p.lead { font-size: 1.2rem; color: #cfcabf; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-badges { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.hero-badges b { color: var(--text); display: block; font-size: 1.3rem; font-family: var(--serif); }

.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }

/* Spielkarten */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 26px; }
.game-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; color: var(--text); text-decoration: none !important; }
.game-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8); border-color: var(--accent); }
.game-card-img { aspect-ratio: 16/9; background-size: cover; background-position: center; position: relative; }
.game-card-img .genre { position: absolute; top: 14px; left: 14px; background: rgba(0, 0, 0, .65); backdrop-filter: blur(6px); padding: 4px 12px; border-radius: 99px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.game-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-card-body h3 { font-size: 1.45rem; margin: 0; }
.game-card-body p { margin: 0; color: var(--muted); flex: 1; }
.game-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.game-meta span { white-space: nowrap; }
.stars { color: var(--accent); letter-spacing: 2px; }
.price { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.price small { font-family: var(--sans); font-size: .8rem; color: var(--muted); font-weight: 400; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }

/* Schritte */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.step-n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(232, 163, 61, .12); color: var(--accent); font-weight: 800; font-family: var(--serif); font-size: 1.3rem; margin-bottom: 14px; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.feature { display: flex; gap: 14px; padding: 18px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.feature .ico { font-size: 1.7rem; }
.feature b { display: block; margin-bottom: 4px; }
.feature span { color: var(--muted); font-size: .92rem; }

.redeem-band { background: linear-gradient(120deg, #2a1d0c, #171b24 60%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.redeem-inline { display: flex; gap: 12px; max-width: 560px; margin: 0 auto; }
.redeem-inline input { font-family: var(--mono); font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 12px 0 0; }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .9rem; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); margin-right: 18px; }

/* Detailseite */
.detail-hero { position: relative; min-height: 56vh; display: flex; align-items: flex-end; padding-bottom: 40px; }
.detail-hero .hero-bg::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(12, 14, 19, .5) 60%, rgba(12, 14, 19, .3) 100%); }
.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.buy-box { position: sticky; top: 90px; }
.level-list { columns: 2; padding-left: 1.2em; color: var(--muted); }
.level-list li { margin-bottom: 4px; break-inside: avoid; }
.feat-list { list-style: none; padding: 0; }
.feat-list li { padding: 6px 0 6px 28px; position: relative; }
.feat-list li::before { content: '✦'; position: absolute; left: 4px; color: var(--accent); }
.qty { display: flex; align-items: center; gap: 10px; }
.qty input { width: 80px; text-align: center; }
.billing { margin: 4px 0 14px; }
.billing summary { cursor: pointer; color: var(--accent); }
.billing .field { margin: 8px 0; }
.demo-note { background: rgba(63, 182, 168, .1); border: 1px solid rgba(63, 182, 168, .4); color: #9fe3da; padding: 10px 14px; border-radius: 10px; font-size: .88rem; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.thumbs div { aspect-ratio: 16/9; background-size: cover; background-position: center; border-radius: 10px; filter: blur(1.5px) brightness(.8); }

/* Danke / Codes */
.code-box { font-family: var(--mono); font-size: 1.35rem; letter-spacing: .12em; background: #0f1218; border: 1px dashed var(--accent); border-radius: 12px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 10px 0; }

/* Tabellen */
table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }

/* Toasts */
#toasts { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #222838; border: 1px solid var(--line); padding: 10px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: toastIn .3s ease; max-width: 90vw; }
.toast-ok { border-color: var(--green); }
.toast-fail { border-color: var(--red); }
.toast-muted { opacity: .85; font-size: .9rem; }
.toast.out { opacity: 0; transform: translateY(10px); transition: all .4s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
