:root {
  --bg: #08051a;
  --bg-2: rgba(20, 14, 52, .75);
  --card: rgba(26, 18, 64, .62);
  --card-solid: #140e33;
  --line: rgba(139, 105, 255, .28);
  --line-strong: rgba(167, 139, 250, .55);
  --text: #ece9ff;
  --muted: #9d95c9;
  --accent: #8b5cf6;
  --accent-2: #a78bfa;
  --accent-grad: linear-gradient(180deg, #9b6dff 0%, #6d3fe6 100%);
  --ok: #34d399;
  --bad: #f87171;
  --radius: 18px;
  --glow: 0 0 28px rgba(124, 77, 255, .35);
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; color: var(--text); min-height: 100vh; display: flex; flex-direction: column;
  font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 92% -5%, rgba(124, 77, 255, .28), transparent 60%),
    radial-gradient(700px 500px at -5% 45%, rgba(88, 50, 200, .22), transparent 60%),
    linear-gradient(rgba(139, 105, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 105, 255, .05) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
  background-attachment: fixed;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 18px 16px 40px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.muted { color: var(--muted); }
.hidden { display: none !important; }
svg.ic { width: 1.15em; height: 1.15em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* --- Navigation ---------------------------------------------------------- */
.nav { max-width: 1240px; margin: 18px auto 0; padding: 0 16px; width: 100%; position: sticky; top: 10px; z-index: 20; }
.nav-inner {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 12px 18px;
  background: rgba(14, 9, 40, .82); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 40px rgba(0,0,0,.35), inset 0 0 40px rgba(124,77,255,.06);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 46px; height: 46px; filter: drop-shadow(0 0 10px rgba(139,92,246,.7)); }
.brand b { display: block; font-size: 1.15rem; font-weight: 700; }
.brand small { display: block; color: var(--muted); font-size: .8rem; margin-top: -2px; }
.nav-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-left: 10px; }
.nav-pills a { color: var(--text); padding: 9px 18px; border-radius: 10px; font-size: .95rem; border: 1px solid transparent; }
.nav-pills a:hover { background: rgba(139,92,246,.14); text-decoration: none; }
.nav-pills a.active { background: rgba(139,92,246,.28); border-color: var(--line-strong); box-shadow: var(--glow); }
.nav-tools { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-search { position: relative; }
.nav-search input { width: 300px; padding-left: 40px; }
.nav-search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.icon-btn { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--line-strong); box-shadow: var(--glow); text-decoration: none; }
.icon-btn .ic { width: 22px; height: 22px; }
@media (max-width: 980px) { .nav-search input { width: 200px; } .nav-pills { margin-left: 0; order: 3; width: 100%; } }
@media (max-width: 560px) { .nav-search { display: none; } }

/* --- Buttons / Formulare -------------------------------------------------- */
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  background: var(--accent-grad); color: #fff; font-weight: 600; border: 1px solid rgba(196,181,253,.45); border-radius: 12px;
  padding: 11px 20px; font-size: .95rem; font-family: inherit; transition: transform .08s, box-shadow .15s, filter .15s;
  box-shadow: 0 6px 22px rgba(109, 63, 230, .45);
}
.btn:hover { filter: brightness(1.12); text-decoration: none; box-shadow: 0 8px 28px rgba(124, 77, 255, .6); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--line-strong); }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid rgba(248,113,113,.4); box-shadow: none; }
.btn.small { padding: 7px 14px; font-size: .85rem; border-radius: 10px; }
.btn.block { width: 100%; padding: 14px 20px; font-size: 1rem; }

input, select, textarea {
  width: 100%; background: rgba(12, 8, 34, .75); color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; font: inherit;
}
input::placeholder { color: #7a72a8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(139,92,246,.28); }
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
label { display: block; font-size: .88rem; color: var(--muted); margin: 12px 0 4px; }

/* --- Glas-Karten ---------------------------------------------------------- */
.glass, .panel, .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(8px); box-shadow: inset 0 0 50px rgba(124,77,255,.05); }
.panel { padding: 22px; margin-bottom: 18px; }
.narrow { max-width: 440px; margin: 40px auto; }
.two-col { display: grid; gap: 28px; grid-template-columns: 1.3fr 1fr; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; margin-top: 18px; border-radius: 22px; border: 1px solid var(--line);
  min-height: 390px; display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: center; padding: 34px;
  background: linear-gradient(90deg, rgba(8,5,26,.96) 0%, rgba(8,5,26,.55) 45%, rgba(8,5,26,.15) 100%), url("/assets/hero.jpg") right center / cover no-repeat, var(--card-solid);
  box-shadow: 0 0 60px rgba(109,63,230,.22), inset 0 0 80px rgba(124,77,255,.08);
}
.hero-text { max-width: 520px; position: relative; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; padding: 7px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(139,92,246,.14); margin-bottom: 20px; }
.badge .dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--accent-2); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; margin-bottom: 16px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #a78bfa, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #c9c3ee; font-size: 1.08rem; max-width: 470px; margin: 0 0 26px; }
.features { display: flex; gap: 26px; flex-wrap: wrap; }
.features span { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; }
.features .ic { width: 26px; height: 26px; color: var(--accent-2); }
.featured-card { position: relative; padding: 22px; border-radius: var(--radius); background: rgba(14, 9, 40, .78); backdrop-filter: blur(14px); border: 1px solid var(--line-strong); box-shadow: var(--glow); }
.featured-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.featured-card .cat { color: var(--muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.featured-card p { color: #c9c3ee; font-size: .95rem; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.featured-card .big-price { font-size: 1.9rem; font-weight: 700; margin-bottom: 14px; }
.ticks { list-style: none; margin: 16px 0 0; padding: 0; color: #c9c3ee; font-size: .85rem; }
.ticks li { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.ticks .ic { width: 16px; height: 16px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding: 22px; } }

/* --- Kategorien / Toolbar -------------------------------------------------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 22px 0; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); cursor: pointer; font-size: .92rem; font-family: inherit; }
.chip:hover { border-color: var(--line-strong); }
.chip.active { background: rgba(139,92,246,.3); border-color: var(--line-strong); box-shadow: var(--glow); }
.sort { margin-left: auto; width: 210px; }

/* --- Produktraster ---------------------------------------------------------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
a.card, div.card.product { color: inherit; display: flex; flex-direction: column; padding: 10px; transition: transform .12s, border-color .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--glow); text-decoration: none; }
.card .thumb { aspect-ratio: 16/11; border-radius: 12px; overflow: hidden; position: relative; background: linear-gradient(135deg, #1d1450, #0d0824); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.card .thumb .ic { width: 42px; height: 42px; opacity: .6; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .tag { position: relative; margin: -14px 0 6px 8px; align-self: flex-start; }
.tag { display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; padding: 4px 11px; border-radius: 8px; background: rgba(20, 13, 55, .92); border: 1px solid var(--line-strong); color: var(--text); margin-right: 6px; }
.card .body { padding: 4px 8px 8px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.card .desc-short { color: var(--muted); font-size: .88rem; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card .price { font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.card .dl { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .85rem; }
.card .foot .btn { flex: 1; max-width: 130px; }
.price { color: var(--text); font-weight: 700; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.tagline { text-align: center; margin: 46px 0 8px; }
.tagline small { display: block; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-size: .72rem; margin-bottom: 6px; }
.tagline b { font-size: 1.4rem; font-weight: 600; }
.tagline b em { font-style: normal; color: var(--accent-2); }

/* --- Produktseite / sonstige ------------------------------------------------ */
.hero-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); aspect-ratio: 16/10; object-fit: cover; }
.desc { white-space: pre-wrap; color: #cbc5ee; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 14px 0; }
.check input { width: auto; margin-top: 4px; }
.big-price { font-size: 1.9rem; font-weight: 700; }
.msg { padding: 10px 14px; border-radius: 12px; margin: 12px 0; font-size: .92rem; }
.msg.err { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.35); color: #fecaca; }
.msg.ok { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.35); color: #a7f3d0; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.table-wrap { overflow-x: auto; }
.pill { font-size: .75rem; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); }
.pill.published, .pill.paid { color: var(--ok); border-color: rgba(52,211,153,.4); }
.pill.draft, .pill.pending { color: var(--muted); }
.pill.archived, .pill.refunded { color: var(--bad); border-color: rgba(248,113,113,.4); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tab { background: none; border: 0; color: var(--muted); padding: 10px 14px; cursor: pointer; font: inherit; border-bottom: 2px solid transparent; }
.tab.active { color: var(--text); border-bottom-color: var(--accent-2); }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 18px; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-size: 1.5rem; color: var(--accent-2); }
.progress { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress > div { height: 100%; width: 0; background: var(--accent-grad); transition: width .15s; }
.filelist { list-style: none; margin: 8px 0; padding: 0; }
.filelist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; font-size: .9rem; }
.key { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--bg-2); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); font-size: .85rem; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 58px; margin-bottom: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-grad); display: flex; align-items: center; justify-content: center; font-weight: 700; }
code { background: var(--bg-2); border: 1px solid var(--line); padding: 1px 7px; border-radius: 6px; font-size: .9em; }

.footer { max-width: 1240px; margin: 0 auto; width: 100%; border-top: 1px solid var(--line); padding: 22px 16px 30px; text-align: center; color: var(--muted); font-size: .88rem; }
.footer a { color: var(--muted); margin: 0 8px; }
