/* FMP Nexus TCG – Farben aus dem Logo: Bronze-Gold, Feuer, Edelstein-Rot/-Blau */
:root {
  --bg: #07070a;
  --bg-2: #101014;
  --panel: rgba(14, 12, 11, 0.74);
  --panel-border: rgba(201, 161, 90, 0.22);
  --gold: #d4a85a;
  --gold-light: #f1d08e;
  --fire: #f08a24;
  --ruby: #c8373a;
  --sapphire: #4f74b5;
  --text: #efe7da;
  --muted: #a69d8f;
  --radius: 18px;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fallback, falls WebGL fehlt */
body.no-webgl {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(240, 138, 36, 0.18), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(79, 116, 181, 0.15), transparent 50%),
    var(--bg);
}

a { color: inherit; }

#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
}

/* Ersatz-Hintergrund: Logo als Bild, bis/falls die 3D-Szene nicht läuft */
.static-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 50% 30%, rgba(240, 138, 36, 0.22), transparent 70%),
    var(--bg);
  transition: opacity 0.8s ease;
}
.static-logo {
  position: absolute;
  left: 50%;
  top: max(72px, 8vh);
  width: min(78vw, 56vh);
  aspect-ratio: 1206 / 1327;
  transform: translateX(-50%);
  background: url("/assets/logo.jpg") center / contain no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 92%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 92%, transparent 100%);
  filter: drop-shadow(0 0 40px rgba(240, 138, 36, 0.35));
  animation: logo-float 6s ease-in-out infinite;
}
@keyframes logo-float {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.03); }
}
body.scene-off #scene { visibility: hidden; }
body.scene-on .static-bg { opacity: 0; }

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.65) 100%);
}

/* ---------- Kopfzeile ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(7, 7, 10, 0.85), rgba(7, 7, 10, 0));
  transition: background 0.3s;
}
.topbar.scrolled {
  background: rgba(7, 7, 10, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  white-space: nowrap;
}
.brand em { font-style: normal; color: var(--fire); }

.mainnav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.mainnav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.mainnav a:hover { color: var(--gold-light); }

.cart {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  color: var(--gold-light);
  text-decoration: none;
}
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--fire);
  color: #160c02;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ---------- Inhalt ---------- */
main { position: relative; z-index: 10; }

section {
  min-height: 100vh;
  padding: 120px clamp(16px, 6vw, 96px) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero {
  align-items: center;
  text-align: center;
  justify-content: flex-end;
  padding-bottom: 110px;
}
.hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(7, 7, 10, 0.75) 60%, rgba(7, 7, 10, 0.9));
}
.eyebrow {
  margin: 0 0 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.05; }

.hero h1 {
  font-size: clamp(2.1rem, 5.6vw, 4.8rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff3d6 0%, var(--gold-light) 40%, var(--gold) 75%, #8a6326 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(240, 138, 36, 0.25);
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.7));
}
.lead {
  max-width: 560px;
  margin: 22px auto 0;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}

.cta-row { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--fire));
  color: #1a0f03;
  box-shadow: 0 8px 30px rgba(240, 138, 36, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 40px rgba(240, 138, 36, 0.55); }
.btn-ghost {
  border: 1px solid rgba(241, 208, 142, 0.45);
  color: var(--gold-light);
  background: rgba(7, 7, 10, 0.35);
  backdrop-filter: blur(6px);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint span {
  width: 22px; height: 36px;
  border: 1.5px solid var(--muted);
  border-radius: 12px;
  position: relative;
}
.scroll-hint span::after {
  content: "";
  position: absolute;
  left: 50%; top: 7px;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

.hero { position: relative; }

.stage-text {
  align-items: flex-start;
}
.stage-text > * { max-width: 560px; }
.stage-text h2,
.stage-text p {
  position: relative;
}
.stage-text::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: min(720px, 100%);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to right, rgba(7, 7, 10, 0.88) 0%, rgba(7, 7, 10, 0.6) 65%, transparent 100%);
}
.stage-text { position: relative; }
.stage-text h2 {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  font-weight: 900;
  color: var(--gold-light);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9);
}
.stage-text p {
  max-width: 460px;
  font-size: 1.1rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 36px;
  text-align: center;
}

/* Kategorien */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.cat {
  position: relative;
  padding: 30px 24px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.cat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(241, 208, 142, 0.12) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s;
}
.cat:hover { transform: translateY(-6px); border-color: rgba(241, 208, 142, 0.6); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(240, 138, 36, 0.15); }
.cat:hover::before { transform: translateX(100%); }
.cat-icon { font-size: 1.6rem; color: var(--fire); }
.cat h3 { margin: 14px 0 8px; font-size: 1.35rem; color: var(--gold-light); }
.cat p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* Produkte */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.product {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s;
}
.product:hover { transform: translateY(-4px); border-color: rgba(241, 208, 142, 0.55); }
.product-img {
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, rgba(240, 138, 36, 0.2), transparent 60%), #0d0c0b;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fire);
}
.product-name { margin: 0; font-family: var(--font-body); font-size: 0.98rem; font-weight: 600; line-height: 1.35; }
.product-meta { margin: 0; color: var(--muted); font-size: 0.82rem; }
.product-price { margin-top: auto; padding-top: 8px; font-size: 1.15rem; font-weight: 700; color: var(--gold-light); }

.price-note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 28px; }

/* Vertrauen */
.trust {
  min-height: 60vh;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.trust-item {
  flex: 1 1 260px;
  max-width: 360px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust-item strong { font-family: var(--font-display); color: var(--gold-light); font-size: 1.1rem; }
.trust-item span { color: var(--muted); font-size: 0.9rem; }

/* Fußzeile */
.footer {
  position: relative;
  z-index: 10;
  padding: 40px clamp(16px, 6vw, 96px) 32px;
  background: rgba(7, 7, 10, 0.92);
  border-top: 1px solid var(--panel-border);
  text-align: center;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer nav a:hover { color: var(--gold-light); }
.disclaimer { max-width: 720px; margin: 22px auto 8px; font-size: 0.75rem; color: #6f685e; }
.copy { margin: 0; font-size: 0.8rem; color: var(--muted); }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .mainnav { display: none; }
  .cart { margin-left: auto; }
  .cat-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 520px) {
  section { padding: 100px 16px 64px; }
  .brand span { font-size: 0.92rem; }
  .cat { padding: 22px 16px; }
  .cat h3 { font-size: 1.1rem; }
  .product-body { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .scroll-hint span::after { animation: none; }
  .static-logo { animation: none; }
}

/* =====================================================================
   Unterseiten (Shop, Artikel, Warenkorb, Rechtliches, Admin)
   ===================================================================== */
body.subpage {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(240, 138, 36, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(79, 116, 181, 0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.subpage .topbar { background: rgba(7, 7, 10, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--panel-border); }
.mainnav a[aria-current="page"] { color: var(--gold-light); }

.page {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 104px clamp(16px, 4vw, 40px) 64px;
}
.page section { min-height: 0; padding: 0; display: block; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: var(--gold-light); }
.page-head { margin-bottom: 24px; }
.page-sub { color: var(--muted); margin: 6px 0 0; font-size: 0.92rem; }
.page a:not(.btn):not(.product):not(.cat) { color: var(--gold-light); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.empty-note { color: var(--muted); padding: 32px 0; grid-column: 1 / -1; text-align: center; }
.hint { color: var(--muted); font-size: 0.85rem; margin: 10px 0 0; }

/* Eingabefelder */
input, select, textarea, button { font: inherit; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(10, 9, 8, 0.8);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 168, 90, 0.18); }
select { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn { border: 0; cursor: pointer; }
.btn-ghost { border: 1px solid rgba(241, 208, 142, 0.45); }
.btn-block { width: 100%; justify-content: center; margin-top: 10px; }
.btn-sm { padding: 9px 18px; font-size: 0.86rem; }
.btn-danger { background: rgba(200, 55, 58, 0.15); color: #ff9a9c; border: 1px solid rgba(200, 55, 58, 0.5); }

/* Filter */
.filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.chip:hover { color: var(--gold-light); border-color: rgba(241, 208, 142, 0.5); }
.chip[aria-selected="true"] { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #1a0f03; border-color: transparent; }
.filter-row { display: flex; gap: 12px; }
.filter-row .search { flex: 1; }
.filter-row .select { width: 220px; }
.result-count { color: var(--muted); font-size: 0.85rem; margin: 0 0 14px; }

/* Produktkarten */
.product { text-decoration: none; color: inherit; }
.product-img { position: relative; overflow: hidden; }
.product-img img, .cart-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-img img { padding: 10px; transition: transform 0.4s; }
.product:hover .product-img img { transform: scale(1.04); }
.no-img span { font-size: 2.4rem; color: rgba(212, 168, 90, 0.5); }
.product.sold-out { opacity: 0.55; }
.sold-badge { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.product-grid .empty-note { grid-column: 1 / -1; }

/* Artikelseite */
.breadcrumb { display: flex; gap: 10px; color: var(--muted); font-size: 0.88rem; margin-bottom: 20px; }
.breadcrumb a { text-decoration: none; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.gallery { position: sticky; top: 96px; }
.gallery-main {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: radial-gradient(circle at 50% 35%, rgba(240, 138, 36, 0.16), transparent 60%), #0d0c0b;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.gallery-main.no-img { gap: 6px; align-content: center; color: var(--muted); }
.gallery-main.no-img span { font-size: 4rem; color: rgba(212, 168, 90, 0.5); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 72px; height: 92px; padding: 4px; border-radius: 10px; border: 1px solid var(--panel-border); background: #0d0c0b; cursor: pointer; }
.thumb.active { border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.detail-info h1 { margin: 6px 0 14px; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.15; }
.detail-price { font-size: 2rem; font-weight: 700; color: var(--gold-light); }
.tax-note { margin: 2px 0 14px; color: var(--muted); font-size: 0.85rem; }
.stock { font-weight: 600; font-size: 0.92rem; margin: 0 0 20px; }
.stock.in { color: #7fd18b; }
.stock.low { color: var(--fire); }
.stock.out { color: #ff8a8c; }
.buy-row { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; }
.buy-row .qty select { width: 84px; }
.detail-table { margin: 0 0 20px; border-top: 1px solid var(--panel-border); }
.detail-table div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(201, 161, 90, 0.12); }
.detail-table dt { color: var(--muted); }
.detail-table dd { margin: 0; text-align: right; font-weight: 500; }
.detail-desc { color: var(--text); line-height: 1.7; }

/* Warenkorb & Kasse */
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; counter-reset: step; flex-wrap: wrap; }
.steps li { counter-increment: step; color: var(--muted); font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.steps li::before { content: counter(step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--panel-border); font-size: 0.78rem; }
.steps li + li::after { content: none; }
.steps li:not(:last-child) { padding-right: 14px; border-right: 1px solid var(--panel-border); }
.steps li.active { color: var(--gold-light); }
.steps li.active::before { background: var(--gold); color: #1a0f03; border-color: transparent; }
.checkout h1 { margin-bottom: 20px; }
.cart-lines { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.cart-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 84px 100px 36px;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
}
.cart-img { width: 64px; height: 84px; border-radius: 8px; background: #0d0c0b; display: grid; place-items: center; overflow: hidden; }
.cart-img img { padding: 4px; }
.cart-img.no-img span { font-size: 1.4rem; }
.cart-line-info { display: flex; flex-direction: column; min-width: 0; }
.cart-line-name { font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.cart-line-unit { color: var(--muted); font-size: 0.82rem; }
.cart-line-total { font-weight: 700; text-align: right; color: var(--gold-light); }
.icon-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--panel-border); background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: #ff8a8c; border-color: rgba(200, 55, 58, 0.6); }
.cart-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 28px; align-items: start; }
.shipping-choice { border: 0; padding: 0; margin: 0; }
.shipping-choice legend { font-family: var(--font-display); font-weight: 700; color: var(--gold-light); font-size: 1.15rem; margin-bottom: 12px; }
.radio-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  cursor: pointer;
}
.radio-card:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.radio-card input { accent-color: var(--gold); width: 18px; height: 18px; }
.radio-card small { display: block; color: var(--muted); font-size: 0.82rem; }
.radio-card em { font-style: normal; font-weight: 700; color: var(--gold-light); }
.totals-box, .review-box { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); }
.totals { margin: 0; }
.totals div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; }
.totals .grand { border-top: 1px solid var(--panel-border); margin-top: 6px; padding-top: 12px; font-size: 1.2rem; }
.totals .grand dt { color: var(--text); font-weight: 700; }
.totals .grand dd { color: var(--gold-light); font-weight: 800; }
.totals .tax { font-size: 0.8rem; padding-top: 0; }
.pay-area { margin-top: 18px; border-top: 1px solid var(--panel-border); padding-top: 16px; }
.pay-label { margin: 0 0 10px; font-weight: 600; }
#paypal-buttons { background: #fff; border-radius: 14px; padding: 12px 12px 2px; }
.notice { padding: 12px 16px; border-radius: 12px; font-size: 0.9rem; margin: 0 0 16px; }
.notice p { margin: 0; }
.notice p + p { margin-top: 4px; }
.notice-warn { background: rgba(240, 138, 36, 0.12); border: 1px solid rgba(240, 138, 36, 0.45); }
.notice-info { background: rgba(79, 116, 181, 0.14); border: 1px solid rgba(79, 116, 181, 0.5); }
.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.review-box h2 { font-size: 1.05rem; color: var(--gold-light); margin: 0 0 8px; }
.review-box h2:not(:first-child) { margin-top: 20px; }
.review-box p { margin: 0; }
.review-items { list-style: none; padding: 0; margin: 0 0 14px; }
.review-items li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(201, 161, 90, 0.12); }
.legal-note { font-size: 0.82rem; color: var(--muted); margin: 16px 0 6px !important; }
.btn-order { font-size: 1.05rem; padding: 16px 28px; }
.done-box { max-width: 560px; margin: 40px auto; text-align: center; padding: 40px 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); }
.done-icon { font-size: 3rem; color: var(--fire); }
.done-box h1 { margin: 10px 0 16px; }

/* Meldungen */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); }
.toast { padding: 12px 18px; border-radius: 12px; background: #1b1814; border: 1px solid var(--panel-border); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); font-size: 0.9rem; transition: opacity 0.4s, transform 0.4s; animation: toast-in 0.3s ease; }
.toast-error { border-color: rgba(200, 55, 58, 0.7); }
.toast-warn { border-color: rgba(240, 138, 36, 0.7); }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Rechtliches */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.25rem; color: var(--gold-light); margin: 28px 0 8px; }
.legal p { color: var(--text); }
.todo { padding: 14px 16px; border-radius: 12px; background: rgba(200, 55, 58, 0.12); border: 1px dashed rgba(200, 55, 58, 0.6); }
.shipping-table { margin: 12px 0; }
.shipping-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(201, 161, 90, 0.15); }
.shipping-row small { display: block; color: var(--muted); }
.shipping-row span { font-weight: 700; color: var(--gold-light); white-space: nowrap; }

/* Admin */
.admin-bar { gap: 16px; }
.admin-tabs { display: flex; gap: 6px; margin-left: 20px; }
.admin-tabs button { background: transparent; border: 0; color: var(--muted); padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.admin-tabs button.active { background: rgba(212, 168, 90, 0.15); color: var(--gold-light); }
.admin-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.link-muted { color: var(--muted); font-size: 0.88rem; text-decoration: none; }
.admin-main { max-width: 1400px; padding-top: 92px; }
.admin-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-head h1 { margin-right: auto; }
.admin-head select, .admin-head input { width: 240px; }
.admin-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.admin-list { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 190px); overflow: auto; padding-right: 4px; }
.admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
.admin-row:hover { border-color: rgba(241, 208, 142, 0.5); }
.admin-row.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.row-main { flex: 1 1 100%; }
.row-sub { color: var(--muted); font-size: 0.82rem; flex: 1 1 auto; }
.product-row { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
.product-row img, .thumb-empty { grid-row: span 3; width: 44px; height: 58px; object-fit: contain; border-radius: 6px; background: #0d0c0b; display: grid; place-items: center; color: var(--muted); }
.product-row .badge { justify-self: start; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; vertical-align: middle; }
.badge-paid { background: rgba(240, 138, 36, 0.18); color: var(--fire); }
.badge-shipped { background: rgba(127, 209, 139, 0.15); color: #7fd18b; }
.badge-cancelled { background: rgba(166, 157, 143, 0.15); color: var(--muted); }
.badge-pending { background: rgba(79, 116, 181, 0.2); color: #9db6e6; }
.badge-warn { background: rgba(200, 55, 58, 0.2); color: #ff9a9c; }
.admin-panel { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; }
.admin-panel.wide { position: static; max-height: none; max-width: 900px; }
.admin-panel h2 { font-size: 1.3rem; color: var(--gold-light); margin: 0 0 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-panel h3 { font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 20px 0 8px; }
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.address { font-family: var(--font-body); white-space: pre-wrap; margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.admin-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.admin-form .span-2 { grid-column: span 2; }
.check { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; margin-bottom: 10px; }
.check input { accent-color: var(--gold); width: 17px; height: 17px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.form-error { color: #ff9a9c; min-height: 1.2em; margin: 4px 0; font-size: 0.88rem; }
.login-box { max-width: 380px; margin: 60px auto; padding: 32px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); display: flex; flex-direction: column; gap: 12px; }
.login-box label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 0.88rem; }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 12px; }
.image-grid figure { position: relative; margin: 0; padding: 6px; border-radius: 10px; background: #0d0c0b; border: 1px solid var(--panel-border); text-align: center; }
.image-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; }
.image-grid figcaption, .link-btn { font-size: 0.75rem; color: var(--gold); }
.link-btn { background: none; border: 0; cursor: pointer; text-decoration: underline; }
.image-grid .icon-btn { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; background: rgba(0, 0, 0, 0.7); font-size: 0.75rem; }
.upload { display: inline-flex; cursor: pointer; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload span { padding: 10px 18px; border-radius: 999px; border: 1px dashed var(--gold); color: var(--gold-light); font-weight: 600; font-size: 0.88rem; }
.upload:focus-within span { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.shipping-edit { display: grid; grid-template-columns: 1.2fr 1.6fr 100px auto 32px; gap: 10px; align-items: center; margin-bottom: 10px; }
.shipping-edit .check { margin: 0; }

@media (max-width: 900px) {
  .product-detail, .cart-bottom, .review-grid, .admin-split, .detail-cols { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .admin-panel { position: static; max-height: none; }
  .admin-list { max-height: 50vh; }
  .admin-tabs { margin-left: 0; order: 3; width: 100%; }
  .admin-bar { flex-wrap: wrap; }
  .admin-main { padding-top: 130px; }
  .shipping-edit { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .filter-row { flex-direction: column; }
  .filter-row .select { width: 100%; }
  .cart-line { grid-template-columns: 56px minmax(0, 1fr) 36px; grid-template-areas: "img info del" "img qty total"; row-gap: 8px; }
  .cart-line > a { grid-area: img; }
  .cart-img { width: 56px; height: 74px; }
  .cart-line-info { grid-area: info; }
  .cart-line .qty { grid-area: qty; }
  .cart-line .qty select { width: 84px; }
  .cart-line-total { grid-area: total; }
  .cart-line .icon-btn { grid-area: del; }
  .admin-form { grid-template-columns: 1fr; }
  .admin-form .span-2 { grid-column: auto; }
  .admin-head select, .admin-head input { width: 100%; }
  .steps li:not(:last-child) { padding-right: 8px; }
}
