/* Gemeinsame Grundlagen und Shop-Seite */
@font-face { font-family: "Barlow Condensed"; src: url(assets/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(assets/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(assets/fonts/barlow-condensed-latin-700-italic.woff2) format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(assets/fonts/barlow-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(assets/fonts/barlow-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(assets/fonts/barlow-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0b0a0f;
  --surface: #15131b;
  --surface-2: #1d1a25;
  --line: #2b2834;
  --text: #efedf3;
  --muted: #a09cab;
  --accent: #9b30ff;
  --accent-hover: #ab4dff;
  --accent-text: #c394ff;
  --danger: #ff7a7c;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --page: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: .01em; }
h2 { font-size: clamp(32px, 4.4vw, 46px); text-transform: uppercase; }
h3 { font-size: 25px; }
p { margin: 0; }
.muted { color: var(--muted); }
code, kbd { padding: 1px 6px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface-2); font: 500 .88em Consolas, monospace; white-space: nowrap; }
.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }

/* Kopfzeile */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font: italic 700 23px/1 var(--display); letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--accent-text); }
.top-links { display: flex; gap: 22px; margin-right: auto; }
.top-links a { color: var(--muted); font-weight: 500; font-size: 16px; text-decoration: none; }
.top-links a:hover, .top-links a[aria-current="page"] { color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--text); font: 600 16px/1.2 var(--body); text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { border-color: var(--muted); }
.btn.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.btn.primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); }
.btn.large { min-height: 50px; padding: 10px 24px; font-size: 17px; }
.btn.block { width: 100%; }
.count { min-width: 20px; padding: 0 5px; border-radius: 2px; background: #fff; color: #3d0f73; font-size: 13px; font-weight: 600; line-height: 20px; text-align: center; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.section { padding-block: clamp(52px, 7vw, 88px); border-top: 1px solid var(--line); scroll-margin-top: 62px; }
.section-head { margin-bottom: 28px; }
.section-head p { margin-top: 10px; max-width: 58ch; color: var(--muted); }

/* Seitenkopf Shop */
.page-head { padding-block: clamp(34px, 5vw, 56px); border-bottom: 1px solid var(--line); background: var(--surface); }
.page-head h1 { font-size: clamp(46px, 7vw, 76px); text-transform: uppercase; }
.page-head p { margin-top: 10px; max-width: 54ch; color: var(--muted); font-size: 19px; }
.demo-note { margin-top: 24px; padding: 10px 14px; border-left: 3px solid #e0a23c; background: var(--surface); font-size: 15px; }

/* Kategorien */
.cats { display: flex; gap: 22px; overflow-x: auto; margin-bottom: 26px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; padding: 10px 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); font-weight: 600; }
.cat:hover { color: var(--text); }
.cat[aria-pressed="true"] { border-color: var(--accent); color: var(--text); }

/* Pakete */
.shop-list { padding-block: clamp(32px, 5vw, 52px); }
.cat-section + .cat-section { margin-top: 44px; }
.cat-head h2 { font-size: 32px; }
.cat-desc { margin-top: 6px; color: var(--muted); max-width: 66ch; }
.cat-desc p { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 20px; margin-top: 18px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); transition: border-color .12s; }
.card:hover { border-color: #4a4557; }
.card-media { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16/10; padding: 18px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-media img.placeholder { width: 46%; opacity: .55; }
.tag { position: absolute; top: 10px; left: 10px; padding: 1px 7px; border-radius: 2px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px; }
.card-desc-text { color: var(--muted); font-size: 15px; line-height: 1.45; }
.link-btn { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--accent-text); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.price { font: 700 28px/1 var(--display); }
.price small { display: block; margin-top: 3px; color: var(--muted); font: 500 13px var(--body); }

.state { padding: 54px 16px; text-align: center; color: var(--muted); }
.state img { width: 56px; margin: 0 auto 12px; opacity: .7; }
.state h2 { margin-bottom: 6px; color: var(--text); font-size: 26px; text-transform: none; }
.state .btn { margin-top: 14px; }
.skeleton { height: 330px; border-radius: 4px; background: var(--surface); }

/* Ablauf */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.flow li { padding-top: 12px; border-top: 2px solid var(--accent); counter-increment: flow; }
.flow li::before { content: counter(flow); display: block; margin-bottom: 6px; color: var(--accent-text); font: 700 30px/1 var(--display); }
.flow b { display: block; margin-bottom: 4px; font: 700 23px/1.1 var(--display); }
.flow span { color: var(--muted); font-size: 16px; }

/* Einlösen */
.redeem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: start; gap: clamp(28px, 6vw, 72px); }
.redeem-text p { margin-top: 12px; color: var(--muted); }
.ways { margin: 20px 0 0; padding: 0; list-style: none; }
.ways li { display: grid; grid-template-columns: 124px 1fr; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ways kbd { justify-self: start; }
.menu-mock { padding: 20px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.mock-title { margin-bottom: 14px; font: italic 700 25px/1 var(--display); }
.mock-balance { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.mock-balance b { color: var(--text); font: 700 30px/1 var(--display); }
.mock-coin { display: inline-flex; align-items: center; gap: 8px; }
.mock-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.mock-row { display: flex; gap: 8px; }
.mock-input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); font: 14px Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-btn { padding: 10px 14px; border-radius: 3px; background: var(--accent); font-weight: 600; font-size: 15px; }
.mock-ok { margin-top: 10px; color: #7fdc9f; font-size: 15px; }

/* FAQ */
.faq { max-width: 780px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--muted); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { padding-bottom: 16px; color: var(--muted); }

/* Dialoge */
dialog { max-width: none; padding: 0; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
dialog::backdrop { background: #000000b0; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 28px; text-transform: none; }
.icon-btn { width: 40px; height: 40px; flex: none; border: 0; border-radius: 3px; background: none; color: var(--muted); font-size: 24px; line-height: 1; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.modal { width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: 4px; }
.modal.small { width: min(420px, calc(100vw - 24px)); }
.modal.small > .muted { margin: 14px 18px 0; }
.modal-media { height: 240px; padding: 18px; background: var(--surface-2); }
.modal-media img { width: 100%; height: 100%; object-fit: contain; }
.modal-body { padding: 16px 18px 18px; }
.modal-body > p:first-child { margin-bottom: 10px; }
.description { overflow-wrap: anywhere; }
.description p:first-child { margin-top: 0; }
.description p { margin-block: .6em; }
.description img { height: auto; }
.description h3 { margin: 1em 0 .35em; }
.description ol, .description ul { margin: .4em 0; padding-left: 1.4em; }
.description li { margin-block: .25em; }
.description > div > :last-child { margin-bottom: 0; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.auth-list { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 18px; }
.tbx-box { margin-bottom: 16px; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--surface-2); }
.tbx-box small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.tbx-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tbx-value { flex: 1 1 200px; min-width: 0; font: 600 17px Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.tbx-box .btn { min-height: 36px; padding: 5px 12px; font-size: 15px; }
#lastTbx { margin-top: 20px; }
.thanks-steps { margin: 0 0 18px; padding-left: 22px; }
.thanks-steps li { margin-bottom: 8px; }

.drawer { width: min(430px, 100vw); height: 100dvh; max-height: none; margin: 0 0 0 auto; border-width: 0 0 0 1px; }
.drawer[open] { display: flex; flex-direction: column; }
.basket-items { flex: 1; overflow-y: auto; padding: 4px 18px; }
.basket-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.basket-item b { font-weight: 600; overflow-wrap: anywhere; }
.line-price { font-weight: 600; text-align: right; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 3px; background: none; }
.qty button:hover:not(:disabled) { border-color: var(--muted); }
.qty button:disabled { opacity: .4; cursor: default; }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }
.remove { justify-self: end; align-self: center; padding: 6px 2px; border: 0; background: none; color: var(--muted); font-size: 14px; text-decoration: underline; }
.remove:hover { color: var(--danger); }
.basket-foot { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.basket-foot:empty { display: none; }
.account { margin-bottom: 8px; font-size: 14px; }
.total { display: flex; justify-content: space-between; margin-bottom: 12px; font: 700 24px var(--display); }

/* Footer und Meldungen */
.footer { margin-top: auto; padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal a { color: var(--text); }
.footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.footer-login { min-height: 36px; padding: 4px 14px; font-size: 15px; }
.footer small { display: block; margin-top: 8px; font-size: 13px; }
.pay-methods { display: block; max-width: 100%; height: auto; margin-top: 16px; }
.tebex-bar { padding-block: 10px; background: #000; color: #fff; font-size: 14px; }
.tebex-bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.tebex-bar img { filter: brightness(0) invert(1); }
.tebex-bar p { flex: 1 1 320px; }
.tebex-bar nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.tebex-bar a { color: #fff; text-decoration: underline; }
.toast { position: fixed; bottom: 20px; left: 50%; z-index: 100; max-width: calc(100vw - 32px); padding: 10px 16px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 3px; background: var(--surface-2); font-weight: 500; opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity .15s; }
.toast.show { opacity: 1; }
.toast.err { border-left-color: var(--danger); }

@media (max-width: 860px) {
  .top-links { display: none; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .redeem { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .btn-label, .hide-small { display: none; }
  .flow { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
