:root {
  --theme-primary: #6f7dff;
  --theme-bg: #0b1020;
  --theme-font: Inter, Arial, sans-serif;
  --theme-accent: #26d3b2;
  --color-bg: #0b1020;
  --color-surface: #141c31;
  --color-surface-2: #1a2440;
  --color-text: #e6ebff;
  --color-muted: #9aa5cb;
  --color-border: #2b375a;
  --color-primary: #6f7dff;
  --color-accent: #26d3b2;
  --color-primary-strong: #9ca7ff;
  --color-success: #26c281;
  --color-danger: #ff5d7a;
  --shadow-sm: 0 8px 20px rgba(2, 4, 12, 0.45);
  --shadow-md: 0 20px 44px rgba(2, 4, 12, 0.6);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --font-size-xs: 0.78rem;
  --font-size-sm: 0.9rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.13rem;
  --font-size-xl: 1.38rem;
  --font-size-2xl: 1.95rem;
  --line-tight: 1.2;
  --line-base: 1.55;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--theme-font);
  background:
    radial-gradient(circle at 12% -5%, rgba(111, 125, 255, 0.22), transparent 45%),
    radial-gradient(circle at 95% 5%, rgba(38, 211, 178, 0.18), transparent 45%),
    var(--color-bg);
  color: var(--color-text);
  line-height: var(--line-base);
}

a {
  color: var(--color-primary-strong);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  transition: color 180ms ease;
}

a:hover {
  color: var(--color-primary);
}

h1,
h2,
h3 {
  margin: 0 0 var(--space-3);
  line-height: var(--line-tight);
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(1.55rem, 1rem + 2vw, var(--font-size-2xl));
}

h2 {
  font-size: clamp(1.2rem, 1rem + 1vw, var(--font-size-xl));
}

p {
  margin: 0 0 var(--space-3);
}

.container {
  width: min(1120px, 100% - 2 * var(--space-4));
  margin: var(--space-7) auto;
}

.narrow {
  max-width: 540px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--color-surface) 82%, transparent);
}

.topbar-inner {
  width: min(1120px, 100% - 2 * var(--space-4));
  margin: 0 auto;
  padding: var(--space-4) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: var(--shadow-sm);
}

.brand-logo:has(.brand-logo-img) {
  background: color-mix(in srgb, var(--color-surface-2) 55%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-border) 70%, transparent);
}

.brand-logo .brand-logo-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 9px;
}

.brand-name {
  margin: 0;
  font-size: var(--font-size-lg);
}

.brand-sub {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--font-size-xs);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.hero {
  display: grid;
  gap: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-5), 2vw, var(--space-8));
  box-shadow: var(--shadow-md);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--color-primary) 26%, var(--color-border));
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--font-size-xs);
  color: var(--color-primary-strong);
  background: color-mix(in srgb, var(--color-primary) 10%, #fff);
}

.grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.card-hover {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card-hover:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
  box-shadow: var(--shadow-md);
}

.row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.stack {
  display: grid;
  gap: var(--space-4);
}

.inline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.muted {
  color: var(--color-muted);
}

.sub {
  color: var(--color-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  padding: 4px 10px;
  font-size: var(--font-size-xs);
  background: var(--color-surface-2);
  color: var(--color-muted);
}

.price {
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.btn,
button {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-sm);
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:active,
button:active {
  transform: translateY(1px);
}

.btn-primary,
button,
.btn {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: #0a1020;
  box-shadow: 0 12px 22px rgba(56, 36, 200, 0.28);
}

.btn-primary:hover,
button:hover,
.btn:hover {
  box-shadow: 0 16px 30px rgba(56, 36, 200, 0.34);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-surface-2);
  color: #d9e0ff;
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary-strong);
  border-color: transparent;
  box-shadow: none;
}

/* Storefront: Kauf-CTAs (Warenkorb, Kasse, Produktkarten) */
.btn-shop-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 22px;
  font-size: var(--font-size-md);
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0dc9a4, #06a88a 45%, color-mix(in srgb, var(--color-primary) 55%, #0dc9a4));
  color: #04120f;
  border: 1px solid color-mix(in srgb, #0dc9a4 70%, #000);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 14px 36px rgba(6, 168, 136, 0.45),
    0 4px 14px rgba(2, 8, 18, 0.45);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.btn-shop-buy:hover {
  filter: brightness(1.06);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 18px 44px rgba(6, 168, 136, 0.55),
    0 6px 18px rgba(2, 8, 18, 0.5);
  transform: translateY(-2px);
}

.btn-shop-buy:active {
  transform: translateY(0);
}

.btn-shop-buy--pulse {
  animation: shop-buy-pulse 2.8s ease-in-out infinite;
}

@keyframes shop-buy-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.12) inset,
      0 14px 36px rgba(6, 168, 136, 0.45),
      0 4px 14px rgba(2, 8, 18, 0.45);
  }

  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.14) inset,
      0 18px 48px rgba(13, 201, 164, 0.58),
      0 6px 20px rgba(2, 8, 18, 0.55);
  }
}

.btn-cart-update {
  padding: 8px 12px;
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-muted);
  background: transparent;
  border: 1px dashed color-mix(in srgb, var(--color-border) 90%, var(--color-muted));
  box-shadow: none;
}

.btn-cart-update:hover {
  color: var(--color-text);
  border-style: solid;
  border-color: var(--color-border);
  background: color-mix(in srgb, var(--color-surface-2) 70%, transparent);
  transform: none;
  box-shadow: none;
}

.shop-cart-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.shop-cart-actions__buy {
  flex: 1 1 12rem;
  min-width: min(100%, 14rem);
}

.shop-cart-actions__meta {
  flex: 1 1 14rem;
}

.shop-cart-actions__secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

@media (max-width: 640px) {
  .shop-cart-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-cart-actions__secondary {
    flex-direction: column-reverse;
    align-items: stretch;
    width: 100%;
  }
}

label {
  font-weight: 600;
  font-size: var(--font-size-sm);
}

.label-sub {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-muted);
  font-weight: 400;
  font-size: var(--font-size-xs);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: #10172b;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.15em;
  height: 1.15em;
  min-width: 1.15em;
  padding: 0;
  flex-shrink: 0;
  vertical-align: middle;
  accent-color: color-mix(in srgb, var(--color-primary-strong) 85%, #fff);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--color-primary) 70%, var(--color-border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 18%, transparent);
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--color-muted) 75%, #fff);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

th,
td {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3);
  text-align: left;
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--color-surface-2);
  color: var(--color-muted);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.error {
  color: var(--color-danger);
}

.notice {
  border: 1px solid color-mix(in srgb, var(--color-accent) 35%, var(--color-border));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color-accent) 16%, #111a2d);
  color: var(--color-text);
  padding: var(--space-3) var(--space-4);
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.shop-footer {
  width: min(1120px, 100% - 2 * var(--space-4));
  margin: var(--space-8) auto var(--space-6);
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  text-align: center;
}

.shop-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  text-align: left;
}

.shop-footer-link {
  display: block;
  margin-bottom: 8px;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.shop-footer-link:hover {
  color: var(--color-text);
  transform: translateX(2px);
}

.shop-cookie-banner {
  position: fixed;
  z-index: 1200;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-bg, #fff) 92%, var(--color-text, #111) 8%);
  border-top: 1px solid var(--color-border, #ddd);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.08);
}

.shop-cookie-banner__inner {
  width: min(960px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}

.shop-cookie-banner__text {
  flex: 1 1 280px;
  text-align: left;
}

.shop-cookie-banner__title {
  margin: 0 0 var(--space-2);
  font-size: var(--font-size-md);
  font-weight: 600;
}

.shop-cookie-banner__lead {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  line-height: 1.45;
}

.shop-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Checkout: Adress-Vorschläge (Photon) — an dunkles Storefront gebunden, nicht an helles --theme-bg */
body.shop-body--storefront .checkout-address-suggest-root {
  position: relative;
}

body.shop-body--storefront .checkout-ac-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 40;
  margin-top: 6px;
  max-height: 16rem;
  overflow-y: auto;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, var(--color-accent) 22%);
  background: color-mix(in srgb, var(--color-surface-2) 92%, #050910);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: var(--color-text);
}

body.shop-body--storefront .checkout-ac-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--space-2) var(--space-3);
  margin: 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 45%, transparent);
  background: transparent;
  font: inherit;
  font-size: var(--font-size-sm);
  line-height: 1.45;
  cursor: pointer;
  color: var(--color-text);
  -webkit-tap-highlight-color: transparent;
}

body.shop-body--storefront .checkout-ac-item:last-child {
  border-bottom: none;
}

body.shop-body--storefront .checkout-ac-item:hover,
body.shop-body--storefront .checkout-ac-item--active {
  background: color-mix(in srgb, var(--color-accent) 16%, var(--color-surface));
  color: var(--color-text);
}

body.shop-body--storefront .checkout-ac-item:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-accent) 70%, transparent);
  outline-offset: -2px;
}

.shop-checkout-agb {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--space-3);
  row-gap: var(--space-1);
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  margin: var(--space-2) 0 var(--space-4);
  font-weight: 600;
}

.shop-checkout-agb > span {
  min-width: 0;
  font-weight: 400;
}

.shop-checkout-agb input[type="checkbox"] {
  margin-top: 0.2em;
}

.shop-checkout-agb a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  word-break: break-word;
}

.checkout-submit.notice.row {
  align-items: flex-start;
}

.checkout-submit .btn-shop-buy {
  flex-shrink: 0;
  min-width: min(100%, 15rem);
}

.topbar-nav .btn {
  animation: navFadeIn 260ms ease;
}

@keyframes navFadeIn {
  from {
    transform: translateY(-4px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .container {
    margin: var(--space-5) auto;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-nav {
    width: 100%;
  }

  .shop-footer-grid {
    text-align: center;
  }
}

@media (max-width: 700px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .row {
    align-items: stretch;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tr {
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-2) 0;
  }

  td {
    border: 0;
    padding: 6px var(--space-3);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Admin premium duotone layer */
.admin-body {
  background:
    radial-gradient(circle at 5% 0%, rgba(111, 125, 255, 0.2), transparent 42%),
    radial-gradient(circle at 96% 0%, rgba(38, 211, 178, 0.2), transparent 40%),
    #090f1e;
}

/* Admin shell: sidebar + grouped navigation */
.admin-sidebar-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.admin-app {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar-backdrop {
  display: none;
}

.admin-sidebar {
  border-right: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  padding: var(--space-4) var(--space-3);
  overflow-y: auto;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.admin-sidebar-brand .brand-logo {
  width: 36px;
  height: 36px;
}

.admin-sidebar-brand .brand-name {
  font-size: var(--font-size-md);
}

.admin-sidebar-group {
  margin-bottom: var(--space-4);
}

.admin-sidebar-group-title {
  margin: 0 0 var(--space-2);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.admin-sidebar-group-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-sidebar-link {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.admin-sidebar-link:hover {
  color: var(--color-primary-strong);
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
  border-color: color-mix(in srgb, var(--color-primary) 22%, var(--color-border));
}

.admin-sidebar-link.is-active {
  color: #0b1020;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  border-color: transparent;
}

.admin-shell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.admin-topbar-shell-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.admin-sidebar-toggle {
  display: none;
}

.admin-topbar-title {
  flex: 1;
  min-width: 0;
}

.admin-topbar-page {
  margin: 0;
  font-weight: 700;
  font-size: var(--font-size-md);
  letter-spacing: -0.02em;
}

.admin-topbar-actions {
  margin-left: auto;
}

.admin-main-area {
  flex: 1;
  padding-bottom: var(--space-8);
}

.admin-dashboard-widgets {
  grid-template-columns: 1fr;
  margin-top: var(--space-5);
}

@media (min-width: 960px) {
  .admin-dashboard-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-dashboard-charts-grid {
  grid-template-columns: 1fr;
  margin-top: var(--space-5);
  align-items: start;
}

@media (min-width: 960px) {
  .admin-dashboard-charts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-dashboard-quicklinks {
  justify-content: flex-end;
}

.admin-dash-metric-list,
.admin-dash-order-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-dash-metric-list li,
.admin-dash-order-list li {
  margin-bottom: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-legend-collapse summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-primary-strong);
  list-style: none;
}

.admin-legend-collapse summary::-webkit-details-marker {
  display: none;
}

.admin-legend-collapse[open] summary {
  margin-bottom: var(--space-3);
}

@media (max-width: 959px) {
  .admin-app {
    display: block;
  }

  .admin-sidebar-toggle {
    display: inline-flex;
  }

  .admin-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 44;
    background: rgba(4, 8, 18, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(288px, 90vw);
    z-index: 46;
    transform: translateX(-102%);
    transition: transform 220ms ease;
    box-shadow: var(--shadow-md);
  }

  .admin-shell {
    position: relative;
    z-index: 1;
  }

  .admin-sidebar-checkbox:checked + .admin-app .admin-sidebar {
    transform: translateX(0);
  }

  .admin-sidebar-checkbox:checked + .admin-app .admin-sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-topbar-inner {
  align-items: flex-start;
  padding: var(--space-4) 0 var(--space-3);
}

.admin-main {
  margin-top: var(--space-6);
}

.admin-main h2 {
  margin-top: var(--space-2);
}

.admin-main h3 {
  margin-top: var(--space-5);
  color: var(--color-primary-strong);
}

.admin-main .card {
  background: color-mix(in srgb, #141c31 94%, var(--color-primary) 6%);
}

.admin-main .stat-card {
  position: relative;
  overflow: hidden;
}

.admin-main .stat-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-accent) 35%, transparent), transparent 60%);
}

.admin-main .price {
  margin-bottom: 0;
}

.admin-main form.row,
.admin-main form.stack {
  border: 1px solid color-mix(in srgb, var(--color-primary) 12%, var(--color-border));
  background: #121b30;
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.admin-main form.row {
  align-items: flex-end;
}

.admin-main table {
  margin-top: var(--space-3);
  font-size: 0.92rem;
}

.admin-main table a {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--color-primary) 22%, var(--color-border));
  background: #1a2646;
  text-decoration: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  line-height: 1.1;
  white-space: nowrap;
}

.badge-success {
  color: #9cf3ce;
  background: #123329;
  border-color: #2b6c54;
}

.badge-info {
  color: #b8d7ff;
  background: #152d53;
  border-color: #33558f;
}

.badge-warn {
  color: #ffd68a;
  background: #3c2f15;
  border-color: #786037;
}

.badge-danger {
  color: #ffb1c3;
  background: #4b1d2d;
  border-color: #8a3c56;
}

.badge-neutral {
  color: #c7d0ef;
  background: #212c46;
  border-color: #3b4a71;
}

.badge-review {
  color: #ffcc8a;
  background: #4a3017;
  border-color: #8d5e30;
}

.badge-processing {
  color: #b7d4ff;
  background: #173154;
  border-color: #355a8f;
}

.badge-paused {
  color: #d2befb;
  background: #352254;
  border-color: #5d3c8d;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--color-primary) 30%, var(--color-border));
  background: #1a2646;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.action-chip:hover {
  background: color-mix(in srgb, var(--color-primary) 17%, #1a2646);
}

.admin-main table form.inline {
  margin-left: 0;
}

.admin-main table form.inline button {
  margin-top: 4px;
  font-size: 0.76rem;
  padding: 6px 10px;
  border-radius: 999px;
}

.admin-main ul {
  padding-left: 18px;
}

.admin-main canvas {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #111a2f;
}

.admin-main small {
  color: var(--color-muted);
}

.admin-main td > .badge + .badge {
  margin-left: 6px;
}

.notice .badge {
  margin-right: 6px;
  margin-bottom: 6px;
}

.legend-card {
  border: 1px solid color-mix(in srgb, var(--color-primary) 16%, var(--color-border));
  background: #121b30;
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.legend-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.legend-domain-title {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--color-text);
}

.legend-item:last-child {
  margin-bottom: 0;
}

.legend-mini .legend-grid {
  grid-template-columns: 1fr;
}

.admin-main .section-head + .card,
.admin-main .section-head + table {
  margin-top: var(--space-3);
}

.admin-main table td {
  line-height: 1.35;
}

.dnd-row {
  cursor: grab;
  transition: background 140ms ease;
}

.dnd-row:hover {
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.dnd-row.is-dragging {
  opacity: 0.45;
}

.admin-dnd-col {
  width: 2rem;
  text-align: center;
  vertical-align: middle;
  user-select: none;
}

.admin-dnd-grip {
  display: inline-block;
  cursor: grab;
  color: color-mix(in srgb, var(--color-text) 45%, transparent);
  font-size: 1rem;
  line-height: 1;
}

.admin-dnd-grip:active {
  cursor: grabbing;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--space-6);
}

.login-card {
  width: min(460px, 100%);
  background: #121b30;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-7);
}

.login-card .brand-wrap {
  margin-bottom: var(--space-4);
}

@media (max-width: 900px) {
  .admin-main form.row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .action-chip {
    width: 100%;
    justify-content: center;
  }

  .badge {
    white-space: normal;
    text-align: center;
  }
}

/* Automatic density mode:
   - Desktop (fine pointer): compact and dense
   - Mobile/Touch (coarse pointer or narrow viewport): larger touch targets */
@media (pointer: coarse), (max-width: 1024px) {
  :root {
    --space-3: 14px;
    --space-4: 18px;
    --space-5: 24px;
    --font-size-sm: 0.98rem;
    --font-size-md: 1.04rem;
  }

  .container {
    width: min(1120px, 100% - 2 * var(--space-3));
  }

  .btn,
  button,
  .action-chip {
    min-height: 44px;
    padding: 10px 14px;
  }

  input,
  textarea,
  select {
    min-height: 44px;
    padding: 11px 13px;
  }

  th,
  td {
    padding: 12px 10px;
  }

  .topbar-nav {
    gap: 10px;
  }

  .admin-sidebar-link {
    min-height: 40px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
  }

  .legend-item {
    margin-bottom: 8px;
  }
}

/* --- Storefront (customer shop): einheitliche dunkle Buehne, Theme nur als Akzent --- */
body.shop-body--storefront {
  /* Kein helles theme-bg als Seitenfuellung — sonst wirkt der Hero wie ein losgeloester Klotz */
  background:
    radial-gradient(ellipse 100% 70% at 50% -15%, color-mix(in srgb, var(--theme-primary) 14%, transparent), transparent 50%),
    radial-gradient(circle at 100% 20%, color-mix(in srgb, var(--theme-accent) 10%, transparent), transparent 42%),
    linear-gradient(180deg, #0a0f1c 0%, var(--color-bg) 38%, #080c16 100%);
  color: var(--color-text);
}

.shop-page {
  position: relative;
}

/* Volle Breite, skaliert mit Viewport — Hintergrund für Hero + oberen Shop-Bereich */
.shop-page::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 100vw;
  min-height: clamp(24rem, 52vw, min(92vh, 58rem));
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse min(140vw, 110rem) min(85vh, 52rem) at 52% 10%,
      color-mix(in srgb, var(--theme-primary) 34%, transparent),
      transparent 58%
    ),
    radial-gradient(
      ellipse min(65vw, 42rem) min(65vw, 42rem) at 6% 78%,
      color-mix(in srgb, var(--color-accent) 26%, transparent),
      transparent 54%
    ),
    radial-gradient(
      ellipse min(55vw, 36rem) min(55vw, 36rem) at 94% 62%,
      color-mix(in srgb, var(--theme-primary) 18%, transparent),
      transparent 50%
    );
  opacity: 0.94;
}

.shop-page > .shop-topbar,
.shop-page > .shop-main {
  position: relative;
  z-index: 1;
}

.shop-topbar {
  background: color-mix(in srgb, #070b14 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 45%, transparent);
  backdrop-filter: blur(16px);
}

.shop-topbar-nav {
  align-items: center;
}

.shop-topbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: flex-end;
}

.shop-header-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-header-icon-link {
  border-radius: var(--radius-md);
  text-decoration: none;
  line-height: 0;
  outline-offset: 2px;
}

.shop-header-icon-link:hover .shop-header-icon {
  background: color-mix(in srgb, var(--color-surface) 75%, transparent);
}

.shop-header-icon-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-accent) 55%, transparent);
}

.shop-header-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-surface) 55%, transparent);
  padding: 4px;
  box-sizing: border-box;
}

.shop-topbar .shop-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  background: transparent;
  border: none;
  min-height: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.shop-topbar .shop-nav-link:hover {
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-surface) 50%, transparent);
}

.shop-topbar .shop-nav-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-accent) 55%, transparent);
  outline-offset: 2px;
}

.shop-topbar .shop-nav-cart {
  margin-left: var(--space-1);
}

/* Shop: Logo/Titel zurück zur Startseite + sichtbarer Start-Link */
.shop-brand-home-link {
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-md);
  outline-offset: 2px;
}

.shop-brand-home-link:hover .brand-name {
  color: color-mix(in srgb, var(--color-primary) 75%, var(--color-text));
}

.shop-brand-home-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-primary) 60%, transparent);
}

.shop-nav-home {
  flex-shrink: 0;
}

.btn-sm {
  padding: 8px 12px;
  font-size: var(--font-size-xs);
  min-height: 0;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.shop-cart-count {
  font-weight: 700;
}

body.storefront .legal-prose {
  max-width: 52rem;
  margin: 0 auto;
}

/* CMS /page: äußerer Wrapper; innere Vorlagen bringen oft schon .legal-prose mit */
body.storefront .legal-prose--cms > .legal-prose {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

body.storefront .legal-prose h1,
body.storefront .legal-prose h2 {
  color: var(--color-text);
  margin-top: var(--space-6);
}

body.storefront .legal-prose h1:first-child,
body.storefront .legal-prose h2:first-of-type {
  margin-top: 0;
}

body.storefront .legal-prose .legal-note {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px dashed color-mix(in srgb, var(--color-accent) 40%, var(--color-border));
  background: color-mix(in srgb, var(--color-surface) 90%, transparent);
  font-size: var(--font-size-sm);
}

body.storefront .legal-prose--faq .faq-lead {
  font-size: var(--font-size-md);
  color: var(--color-muted);
  margin-bottom: var(--space-5);
  line-height: 1.55;
}

body.storefront .legal-prose .faq-details {
  margin-bottom: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  overflow: hidden;
}

body.storefront .legal-prose .faq-details summary {
  cursor: pointer;
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  color: var(--color-text);
  list-style: none;
}

body.storefront .legal-prose .faq-details summary::-webkit-details-marker {
  display: none;
}

body.storefront .legal-prose .faq-details[open] summary {
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
  background: color-mix(in srgb, var(--theme-primary) 6%, var(--color-surface));
}

body.storefront .legal-prose .faq-details > *:not(summary) {
  padding: 0 var(--space-4) var(--space-4);
  margin: 0;
}

body.storefront .legal-prose .faq-details > p:first-of-type {
  padding-top: var(--space-3);
}

body.storefront .legal-prose .imprint-card {
  display: block;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-surface) 92%, #0a1020);
  margin: var(--space-4) 0;
  line-height: 1.6;
}

body.storefront .legal-prose .legal-pre {
  white-space: pre-wrap;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: var(--space-4);
  margin: var(--space-3) 0 var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  overflow-x: auto;
}

.shop-main {
  padding-bottom: var(--space-8);
}

.shop-main-inner {
  margin-top: clamp(var(--space-5), 4vw, var(--space-7));
}

/* Hero: ältere „Karten“-Variante (Fallback) */
.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(200px, 0.65fr);
  gap: clamp(var(--space-4), 3vw, var(--space-7));
  align-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--color-surface) 96%, #0c1222) 0%, var(--color-surface) 55%, color-mix(in srgb, var(--theme-primary) 6%, var(--color-surface)) 100%);
  border: 1px solid color-mix(in srgb, var(--color-border) 85%, var(--theme-primary));
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-5), 2.5vw, var(--space-7));
  box-shadow: 0 18px 48px rgba(2, 6, 18, 0.35);
  margin-bottom: var(--space-6);
  overflow: hidden;
}

/* Startseite: offener Hero ohne Kasten/Schatten — ähnlich klaren Landingpages */
.shop-hero--open {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(var(--space-2), 2vw, var(--space-4)) 0 clamp(var(--space-6), 5vw, var(--space-8));
  margin-bottom: 0;
  overflow: visible;
}

/* WOW-Landing: zusätzlicher Fokus im Hero (Glow liegt auf .shop-page::before) */
.shop-hero--wow {
  position: relative;
  isolation: isolate;
}

/* Showcase: flach, ohne Kasten/Perspektive — Motiv-Seitenverhältnis kommt aus dem Canvas/Stage (aspect-ratio). */
.shop-hero--showcase .shop-hero__visual.shop-hero__visual--factory {
  perspective: none;
  transform-style: flat;
}

.shop-hero--showcase .shop-hero__factory-stage {
  transform-style: flat;
  will-change: auto;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  overflow: visible;
  min-height: 160px;
  aspect-ratio: 1 / 1;
}

.shop-hero--showcase .shop-hero__factory-stage::before,
.shop-hero--showcase .shop-hero__factory-stage::after {
  content: none;
  display: none;
}

.shop-hero--showcase .shop-hero__factory-canvas {
  position: relative;
  z-index: 0;
  transform: none;
  transform-style: flat;
  backface-visibility: visible;
  display: block;
  vertical-align: top;
  width: 100%;
  height: 100%;
  min-height: 120px;
}

.shop-hero--showcase .shop-hero__meta {
  letter-spacing: 0.1em;
}

.shop-hero--showcase.shop-hero--open .shop-hero__title {
  letter-spacing: -0.038em;
}

@media (prefers-reduced-motion: reduce) {
  .shop-hero--showcase .shop-hero__factory-stage {
    will-change: auto;
    transform: none !important;
  }
}

/* Fabrik-Canvas (Showcase: kein Untertitel mehr) */
.shop-hero__factory-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  animation: shop-hero-reveal-factory-wrap 0.55s ease-out 0.08s forwards;
}

  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(165deg, rgba(8, 12, 22, 0.96) 0%, rgba(18, 26, 42, 0.92) 100%);
  border: 1px solid color-mix(in srgb, var(--color-border) 48%, var(--color-accent));
  box-shadow:
    0 20px 50px rgba(2, 8, 22, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shop-hero__factory-canvas {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 100%;
  vertical-align: top;
}

.shop-hero--open.shop-hero--wow > * {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .btn-shop-buy--pulse {
    animation: none;
  }
}

/* Gestaffelter Einstieg (Editorial / Motion-Design) */
.shop-hero__content--wow {
  opacity: 1;
}

.shop-hero__content--wow > * {
  opacity: 0;
  transform: translate3d(0, 0.5rem, 0) scale(0.994);
  animation: shop-hero-reveal-layer 1.12s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.shop-hero__content--wow > *:nth-child(1) {
  animation-delay: 0.06s;
}

.shop-hero__content--wow > *:nth-child(2) {
  animation-delay: 0.14s;
}

.shop-hero__content--wow > *:nth-child(3) {
  animation-delay: 0.22s;
}

.shop-hero__content--wow > *:nth-child(4) {
  animation-delay: 0.3s;
}

.shop-hero__content--wow > *:nth-child(5) {
  animation-delay: 0.38s;
}

.shop-hero__content--wow > *:nth-child(6) {
  animation-delay: 0.46s;
}

.shop-hero__content--wow > *:nth-child(n + 7) {
  animation-delay: 0.52s;
}

.shop-hero__visual--product .shop-hero__spotlight {
  opacity: 0;
  animation: shop-hero-reveal 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.shop-hero__visual--product .shop-hero__spotlight-frame {
  animation: shop-hero-float 14s ease-in-out 1.2s infinite;
}

@keyframes shop-hero-reveal-layer {
  0% {
    opacity: 0;
    transform: translate3d(0, 0.5rem, 0) scale(0.994);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes shop-hero-reveal {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes shop-hero-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -4px, 0);
  }
}

.shop-hero__spotlight {
  display: block;
  text-decoration: none;
  color: inherit;
  outline-offset: 4px;
}

.shop-hero__spotlight:focus-visible .shop-hero__spotlight-frame {
  outline: 2px solid color-mix(in srgb, var(--color-accent) 75%, transparent);
  outline-offset: 4px;
}

.shop-hero__spotlight-frame {
  display: block;
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-border) 55%, var(--color-accent));
  box-shadow:
    0 28px 56px rgba(2, 8, 22, 0.55),
    0 0 0 1px color-mix(in srgb, var(--color-accent) 22%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: color-mix(in srgb, var(--color-surface-2) 40%, #060910);
}

.shop-hero__spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.shop-hero__spotlight:hover .shop-hero__spotlight-img {
  transform: scale(1.04);
}

.shop-hero__spotlight-hint {
  margin: 0;
  font-size: var(--font-size-sm);
}

.shop-hero__spotlight-hint-link {
  color: color-mix(in srgb, var(--color-accent) 82%, var(--color-text));
  font-weight: 600;
  text-decoration: none;
}

.shop-hero__spotlight-hint-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .shop-hero__content--wow > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .shop-hero__factory-wrap {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .shop-hero__visual--product .shop-hero__spotlight {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .shop-hero__visual--product .shop-hero__spotlight-frame {
    animation: none;
  }

  .shop-hero__spotlight:hover .shop-hero__spotlight-img {
    transform: none;
  }
}

.shop-hero__meta {
  margin: 0 0 var(--space-4);
  font-size: var(--font-size-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-muted) 92%, var(--color-accent));
}

.hero-kicker--soft {
  border: 1px solid color-mix(in srgb, var(--color-border) 65%, transparent);
  background: color-mix(in srgb, var(--color-surface) 35%, transparent);
  color: color-mix(in srgb, var(--color-accent) 55%, var(--color-text));
  backdrop-filter: blur(8px);
}

.shop-hero__title {
  font-size: clamp(1.35rem, 1rem + 1.8vw, 1.95rem);
  margin: 0 0 var(--space-3);
  line-height: 1.18;
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.shop-hero--open .shop-hero__title {
  font-size: clamp(1.85rem, 1.1rem + 2.8vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.shop-hero__lead {
  margin-bottom: var(--space-5);
  max-width: 36rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.shop-hero--open .shop-hero__lead {
  font-size: clamp(var(--font-size-md), 1rem + 0.35vw, 1.125rem);
  max-width: 38rem;
}

.shop-hero__lead strong {
  color: color-mix(in srgb, var(--color-accent) 75%, var(--color-text));
}

.shop-hero__bullets {
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
  max-width: 38rem;
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}

.shop-hero__bullets li {
  position: relative;
  padding-left: 1.35rem;
}

.shop-hero__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-accent) 70%, var(--color-primary));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent);
}

.shop-hero__kicker {
  margin-bottom: var(--space-3);
}

.shop-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.shop-hero__visual {
  position: relative;
  min-height: 160px;
  max-height: 220px;
  display: grid;
  place-items: center;
}

.shop-hero--open .shop-hero__visual {
  min-height: 200px;
  max-height: 280px;
}

.shop-hero__visual.shop-hero__visual--factory {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: min(48vw, 320px);
  max-height: none;
  align-self: stretch;
  opacity: 1;
  transform: none;
}

@keyframes shop-hero-reveal-factory-wrap {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.shop-hero--open .shop-hero__visual.shop-hero__visual--factory {
  min-height: min(50vw, 380px);
  max-height: min(60vh, 440px);
}

.shop-hero--open .shop-hero__visual--product {
  max-height: none;
  min-height: min(72vw, 380px);
}

.shop-hero__visual.shop-hero__visual--product {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.shop-hero__blob {
  position: absolute;
  inset: 12% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--theme-primary) 22%, transparent), transparent 70%);
  filter: blur(3px);
  opacity: 0.75;
}

.shop-hero--open .shop-hero__blob {
  opacity: 0.55;
  inset: 8% 5%;
}

.shop-hero__sticker {
  position: relative;
  width: min(100%, 200px);
  transform: scale(0.92);
}

.shop-hero--open .shop-hero__sticker {
  width: min(100%, 240px);
  transform: scale(1);
}

.shop-hero__sticker-path {
  stroke: color-mix(in srgb, var(--color-primary) 70%, var(--color-accent));
}

.shop-hero__notice {
  grid-column: 1 / -1;
  margin-top: var(--space-4);
  border-radius: var(--radius-md);
  border-color: color-mix(in srgb, var(--color-accent) 28%, var(--color-border));
  background: color-mix(in srgb, var(--color-surface-2) 88%, transparent);
}

.shop-hero__notice--inline {
  border: none;
  background: transparent;
  padding: var(--space-3) 0 0;
  margin-top: var(--space-5);
  border-top: 1px solid color-mix(in srgb, var(--color-border) 65%, transparent);
}

.shop-trust-strip {
  margin: 0 calc(-1 * var(--space-4));
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid color-mix(in srgb, var(--color-border) 55%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 55%, transparent);
  overflow: hidden;
}

.shop-trust-strip__viewport {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

.shop-trust-strip__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  animation: shop-trust-strip-marquee 38s linear infinite;
}

.shop-trust-strip__segment {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-2) var(--space-4);
  padding-inline: var(--space-8);
  font-size: var(--font-size-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-muted) 88%, var(--color-accent));
}

.shop-trust-strip__sep {
  opacity: 0.45;
  user-select: none;
}

@keyframes shop-trust-strip-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-trust-strip__viewport {
    mask-image: none;
  }

  .shop-trust-strip__track {
    animation: none;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: var(--space-2);
    will-change: auto;
  }

  .shop-trust-strip__segment:nth-child(2) {
    display: none;
  }

  .shop-trust-strip__segment {
    flex-wrap: wrap;
    justify-content: center;
    padding-inline: var(--space-4);
  }
}

body.storefront .shop-section-head h2,
body.storefront .shop-catalog > .shop-section-head h2 {
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.storefront .shop-section-head .sub {
  color: var(--color-muted);
  max-width: 42rem;
}

.shop-empty-state {
  padding: var(--space-6);
  text-align: left;
  border-style: dashed;
  border-color: color-mix(in srgb, var(--color-border) 70%, var(--color-muted));
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
}

.shop-empty-state__title {
  margin: 0 0 var(--space-3);
  font-size: var(--font-size-lg);
  color: var(--color-text);
}

.shop-promo-strip {
  margin-bottom: var(--space-7);
}

.shop-promo-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.shop-promo-card h3 {
  margin-top: 0;
}

.shop-section-head {
  margin-top: var(--space-7);
}

.shop-section-head--first {
  margin-top: var(--space-6);
}

.shop-catalog > .shop-section-head + .shop-empty-state {
  margin-top: var(--space-6);
}

.shop-pill {
  flex-shrink: 0;
}

.shop-catalog {
  scroll-margin-top: 96px;
}

.product-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.product-grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-bottom: var(--space-2);
}

.product-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card--popular {
  border-color: color-mix(in srgb, var(--color-accent) 42%, var(--color-border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-accent) 25%, transparent), var(--shadow-sm);
}

.product-card--bestseller {
  border-color: color-mix(in srgb, #e8a317 55%, var(--color-border));
  box-shadow: 0 0 0 1px color-mix(in srgb, #e8a317 35%, transparent), var(--shadow-sm);
}

/* Katalog: DIN-A4-Hochformat (210 × 297 mm), Motiv vollständig sichtbar wie auf Druckbogen */
.product-card__media {
  position: relative;
  aspect-ratio: 210 / 297;
  background: color-mix(in srgb, var(--color-surface-2) 88%, #0c1018);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-border) 35%, transparent);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.product-card__media-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card__media-hit:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.product-card__media-hit .product-card__placeholder {
  width: 100%;
  height: 100%;
}

.product-card__title-link {
  color: inherit;
  text-decoration: none;
}

.product-card__title-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-card__placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-card__ph-rect {
  fill: #1a2440;
}

.product-card__placeholder--1 .product-card__ph-rect {
  fill: color-mix(in srgb, var(--theme-primary) 28%, #151d33);
}

.product-card__placeholder--2 .product-card__ph-rect {
  fill: color-mix(in srgb, var(--color-accent) 22%, #151d33);
}

.product-card__placeholder--3 .product-card__ph-rect {
  fill: color-mix(in srgb, var(--color-primary) 24%, #151d33);
}

.product-card__placeholder--4 .product-card__ph-rect {
  fill: color-mix(in srgb, var(--theme-primary) 18%, #18223c);
}

.product-card__initial {
  position: absolute;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: -0.04em;
  user-select: none;
}

.product-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: var(--font-size-xs);
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-accent), color-mix(in srgb, var(--color-primary) 60%, var(--color-accent)));
  color: #0a1020;
  pointer-events: none;
}

.product-card__badge--popular {
  background: linear-gradient(135deg, var(--color-accent), color-mix(in srgb, var(--color-primary) 60%, var(--color-accent)));
  color: #0a1020;
}

.product-card__badge--bestseller {
  background: linear-gradient(135deg, #f0c14b, #d4910b);
  color: #1a0f00;
}

.product-card__body {
  padding: var(--space-5);
  flex: 1;
}

.product-card__title {
  font-size: var(--font-size-lg);
  margin: 0 0 var(--space-2);
}

.product-card__desc {
  margin: 0;
  flex: 1;
}

.product-card__meta {
  margin-top: auto;
}

.product-card__qty-label {
  margin: 0;
}

.product-card__actions {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--space-3);
  align-items: end;
}

.product-card__qty {
  min-height: 44px;
}

/* --- Storefront: Brotkrumen (dunkle Leiste, keine Standard-OL-Ziffern) --- */
body.shop-body--storefront .shop-breadcrumbs-outer {
  background: color-mix(in srgb, #070b14 94%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 45%, transparent);
  padding: var(--space-2) 0;
}

.shop-breadcrumbs-outer {
  background: color-mix(in srgb, var(--color-bg, #fff) 92%, var(--color-border, #e8e8e8));
  border-bottom: 1px solid var(--color-border, #e8e8e8);
  padding: var(--space-2) 0;
}

.shop-breadcrumbs-inner {
  max-width: 100%;
}

.shop-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-2);
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  padding-left: 0;
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}

body.shop-body--storefront nav.shop-breadcrumbs ol.shop-breadcrumbs__list {
  list-style: none;
  list-style-type: none;
}

.shop-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.shop-breadcrumbs__item + .shop-breadcrumbs__item::before {
  content: "›";
  color: var(--color-muted);
  font-weight: 600;
  opacity: 0.65;
}

.shop-breadcrumbs__link {
  color: var(--color-accent);
  text-decoration: none;
}

body.shop-body--storefront .shop-breadcrumbs__link {
  color: color-mix(in srgb, var(--color-accent) 88%, #b8f5e8);
}

body.shop-body--storefront .shop-breadcrumbs__current {
  color: var(--color-text);
}

body.shop-body--storefront .shop-breadcrumbs__nolink {
  color: color-mix(in srgb, var(--color-muted) 92%, var(--color-text));
}

.shop-breadcrumbs__link:hover {
  text-decoration: underline;
}

.shop-breadcrumbs__current {
  color: var(--color-text, #111);
  font-weight: 600;
}

.shop-breadcrumbs__nolink {
  color: var(--color-muted);
}

/* --- Storefront: product detail --- */
.product-detail__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}

.product-detail__breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
}

.product-detail__breadcrumb a:hover {
  text-decoration: underline;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  gap: clamp(var(--space-5), 4vw, var(--space-8));
  align-items: start;
}

.product-detail__gallery {
  position: sticky;
  top: var(--space-4);
}

.product-detail__main-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-surface-2) 70%, transparent);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.product-detail__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: var(--font-size-xs);
  font-weight: 700;
  pointer-events: none;
}

.product-detail__badge--popular {
  background: linear-gradient(135deg, var(--color-accent), color-mix(in srgb, var(--color-primary) 60%, var(--color-accent)));
  color: #0a1020;
}

.product-detail__badge--bestseller {
  background: linear-gradient(135deg, #f0c14b, #d4910b);
  color: #1a0f00;
}

.product-detail__main-wrap--placeholder {
  display: flex;
  align-items: stretch;
}

.product-detail__placeholder {
  width: 100%;
  min-height: 280px;
  display: grid;
  place-items: center;
  position: relative;
}

.product-detail__main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: color-mix(in srgb, var(--color-surface) 90%, #0a1020);
}

.product-detail__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.product-detail__thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface-2);
  line-height: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-detail__thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
}

.product-detail__thumb:hover,
.product-detail__thumb:focus-visible {
  border-color: color-mix(in srgb, var(--color-accent) 55%, var(--color-border));
  outline: none;
}

.product-detail__thumb--active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-accent) 40%, transparent);
}

.product-detail__header {
  margin-bottom: var(--space-2);
}

.product-detail__title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 var(--space-3);
  letter-spacing: -0.02em;
}

.product-detail__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.product-detail__price {
  font-size: var(--font-size-xl);
}

.product-detail__h {
  font-size: var(--font-size-md);
  margin: 0 0 var(--space-3);
}

.product-detail__subh {
  font-size: var(--font-size-sm);
  margin: var(--space-4) 0 var(--space-2);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-detail__prose {
  color: var(--color-muted);
  line-height: 1.6;
}

.product-detail__specs .product-detail__prose {
  margin-top: var(--space-2);
}

.product-detail__dl {
  margin: 0 0 var(--space-3);
}

.product-detail__dl-row {
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
}

.product-detail__dl-row dt {
  margin: 0;
  font-weight: 600;
  color: var(--color-text);
  font-size: var(--font-size-sm);
}

.product-detail__dl-row dd {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  line-height: 1.5;
}

.product-detail__bullets {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.product-detail__bullets li {
  margin-bottom: var(--space-2);
}

.product-detail__bullets li:last-child {
  margin-bottom: 0;
}

.product-detail__cart {
  padding: var(--space-4);
}

.product-detail__qty-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin: 0;
}

.product-detail__cart-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-3);
  align-items: end;
}

.product-detail__back-wrap {
  margin: 0;
}

.product-detail__soldout {
  margin: 0;
}

@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-detail__gallery {
    position: static;
  }

  .product-detail__cart-row {
    grid-template-columns: 1fr;
  }

  .product-detail__cart-row .btn-shop-buy {
    width: 100%;
    justify-content: center;
  }

  .product-detail__dl-row {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
}

.shop-footer--wide {
  text-align: left;
}

body.storefront .shop-footer {
  position: relative;
  isolation: isolate;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  color: var(--color-muted);
}

body.storefront .shop-footer::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  top: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--color-bg) 92%, #050810);
  border-top: 1px solid var(--color-border);
}

body.storefront .shop-footer .brand-name {
  color: var(--color-text);
}

@media (max-width: 900px) {
  .shop-hero {
    grid-template-columns: 1fr;
  }

  .shop-hero__visual {
    order: -1;
    min-height: 160px;
  }

  .shop-hero__visual.shop-hero__visual--product {
    min-height: min(88vw, 400px);
  }

  .shop-trust-strip {
    margin-left: calc(-1 * var(--space-3));
    margin-right: calc(-1 * var(--space-3));
  }

  .product-card__actions {
    grid-template-columns: 1fr;
  }
}

/* --- Admin: products page & dashboard top products --- */
.admin-products-page-head {
  align-items: flex-start;
}

.admin-products-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
  margin-bottom: var(--space-6);
}

.admin-products-maincol {
  min-width: 0;
}

.admin-products-sidecol {
  display: grid;
  gap: var(--space-4);
}

.admin-card-title {
  margin: 0 0 var(--space-4);
  font-size: var(--font-size-lg);
}

.admin-product-editor-card .admin-form-grid {
  display: grid;
  gap: var(--space-5);
}

.admin-fieldset {
  margin: 0;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-surface-2) 55%, transparent);
}

.admin-fieldset--wide {
  grid-column: 1 / -1;
}

.admin-fieldset legend {
  padding: 0 var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.admin-fieldset-details {
  grid-column: 1 / -1;
  margin: 0;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-surface-2) 55%, transparent);
}

.admin-details-summary {
  cursor: pointer;
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  list-style: none;
}

.admin-details-summary::-webkit-details-marker {
  display: none;
}

.admin-fieldset-details[open] .admin-details-summary {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent);
}

/* Checkout rules: JSON Spezialformulare standardmäßig zugeklappt */
.admin-checkout-rules-json {
  margin-top: var(--space-4);
}

.admin-checkout-rules-json__summary {
  user-select: none;
}

/* Ein Panel statt drei verschachtelter Karten */
.admin-checkout-rules-json__inner {
  margin-top: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.admin-checkout-rules-json__heading {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.admin-checkout-rules-json__divider {
  margin: var(--space-2) 0;
}

.admin-side-divider {
  margin: var(--space-4) 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

.admin-stat-list--compact {
  gap: var(--space-2);
}

.admin-stat-list--compact li {
  padding-bottom: var(--space-1);
  font-size: var(--font-size-xs);
}

.admin-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  vertical-align: top;
}

.admin-check input[type='checkbox'],
.admin-check input[type='radio'] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--color-primary, #6c5ce7);
}

/* Mehrere Häkchen nebeneinander: enger, gleichmäßig, sauber umbrechen */
.admin-check-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.admin-check-group .admin-check {
  flex: 0 1 auto;
  min-width: 0;
}

body.admin-body .row > .admin-check {
  margin-top: 0;
}

body.admin-body .row:has(> .admin-check) {
  align-items: flex-start;
}

body.admin-body .admin-form-actions,
body.admin-body .admin-check-actions {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.admin-form-actions {
  grid-column: 1 / -1;
}

/* Häkchen + Primäraktion in einer Zeile (Tabellen, kompakte Toolbars) */
.admin-check-actions.admin-check-actions--tight {
  margin-top: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

body.admin-body .stack > .admin-check-actions:not(.admin-check-actions--tight) {
  margin-top: var(--space-2);
}

.admin-side-card--muted {
  opacity: 0.92;
}

.admin-stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.admin-stat-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-2);
}

.admin-stat-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-stat-list span {
  color: var(--color-muted);
}

.admin-product-thumb-list {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.admin-product-thumb-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.admin-product-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.admin-products-table-card {
  margin-top: var(--space-2);
}

.admin-products-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.admin-toolbar-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-muted);
}

.admin-toolbar-input {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-sm);
}

.admin-compact-table th,
.admin-compact-table td {
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
}

.admin-top-products-block {
  margin-top: var(--space-5);
}

.admin-top-products-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}

.admin-top-products-chart-wrap {
  min-height: 200px;
}

.admin-flash--success {
  border-color: color-mix(in srgb, var(--color-success) 45%, var(--color-border));
  background: color-mix(in srgb, var(--color-success) 12%, #111a2d);
}

.admin-flash--danger {
  border-color: color-mix(in srgb, var(--color-danger) 45%, var(--color-border));
  background: color-mix(in srgb, var(--color-danger) 10%, #111a2d);
}

@media (max-width: 1024px) {
  .admin-products-layout {
    grid-template-columns: 1fr;
  }

  .admin-top-products-split {
    grid-template-columns: 1fr;
  }
}

/* Einspaltige, ruhige Admin-Ansicht (gesamtes Panel) */
body.admin-body .admin-main-area .grid.admin-kpi-grid {
  grid-template-columns: 1fr;
}

body.admin-body .admin-catalog-page > .grid {
  grid-template-columns: 1fr;
}

/* Storefront mobile — does not apply to body.admin-body */
@media (max-width: 768px) {
  body.storefront .topbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  body.storefront .shop-topbar-right {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: var(--space-2);
  }

  body.storefront .topbar-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  body.storefront .container {
    width: min(1120px, 100% - 2 * var(--space-3));
    margin: var(--space-5) auto;
  }

  body.storefront .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  body.storefront .section-head .btn,
  body.storefront .section-head .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  body.storefront .shop-footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  body.storefront .shop-responsive-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: calc(-1 * var(--space-2));
    margin-right: calc(-1 * var(--space-2));
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }

  body.storefront .shop-responsive-table table {
    min-width: 480px;
  }

  body.storefront .shop-cart-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.storefront .shop-cart-actions .row {
    flex-direction: column;
    width: 100%;
  }

  body.storefront .shop-cart-actions .btn-shop-buy {
    width: 100%;
    justify-content: center;
  }

  body.storefront .shop-cart-actions .btn-cart-update {
    width: 100%;
    justify-content: center;
  }

  body.storefront .grid {
    grid-template-columns: 1fr;
  }

  body.storefront .narrow {
    max-width: 100%;
  }

  body.storefront .notice.row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  body.storefront .notice.row .btn {
    width: 100%;
    justify-content: center;
  }
}

/* —— Admin: Katalog & Produktgruppen (catalog_plus) —— */
.admin-catalog-page,
.admin-guide-page {
  max-width: 1280px;
  margin: 0 auto;
}

.admin-catalog-hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-primary) 14%, transparent),
    color-mix(in srgb, var(--color-surface) 96%, transparent)
  );
}

.admin-catalog-hero-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #0b1020;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  box-shadow: 0 8px 28px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

.admin-catalog-title {
  margin: 0 0 var(--space-2);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.admin-catalog-lead {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.55;
  max-width: 62ch;
}

/* —— Admin: Besuch & Verkauf (Reports) —— */
.admin-reports-bento {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.admin-reports-foot {
  margin: var(--space-2) 0 0;
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.admin-reports-panel {
  --accent: var(--color-primary-strong);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--accent) 7%, var(--color-surface)),
    var(--color-surface) 55%
  );
  box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 12%, transparent);
}

.admin-reports-panel--finance {
  --accent: #2563eb;
}

.admin-reports-panel--behavior {
  --accent: #0d9488;
}

.admin-reports-panel--marketing {
  --accent: #7c3aed;
}

.admin-reports-panel--catalog {
  --accent: #0284c7;
}

.admin-reports-panel--fulfillment {
  --accent: #d97706;
}

.admin-reports-panel__head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.admin-reports-panel__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0b1020;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 28%, transparent);
}

.admin-reports-panel__icon svg {
  display: block;
}

.admin-reports-panel__titles h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.admin-reports-panel__titles p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--color-muted);
  line-height: 1.5;
  max-width: 58ch;
}

.admin-reports-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .admin-reports-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .admin-reports-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.admin-report-metric {
  padding: var(--space-3) var(--space-4);
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--color-border));
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  min-height: 5.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition:
    border-color 0.2s ease,
    box-shadow 0.22s ease;
}

.admin-report-metric:hover {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--color-border));
  box-shadow: 0 8px 24px color-mix(in srgb, #000 12%, transparent);
}

.admin-report-metric__label {
  margin: 0 0 var(--space-2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-muted);
  line-height: 1.35;
}

.admin-report-metric__value {
  margin: 0;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.admin-report-metric__value--eur {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
}

.admin-report-metric__bar {
  margin-top: auto;
  padding-top: var(--space-3);
}

.admin-report-metric__bar-track {
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, var(--color-border));
  overflow: hidden;
}

.admin-report-metric__bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #fff));
  width: var(--bar-pct, 0%);
  transition: width 0.45s ease-out;
}

.admin-catalog-flash {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  animation: admin-catalog-flash-in 0.4s ease-out both;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

@keyframes admin-catalog-flash-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-catalog-flash--success {
  border-color: color-mix(in srgb, #1e8449 45%, var(--color-border));
  background: color-mix(in srgb, #1e8449 12%, transparent);
}

.admin-catalog-flash--danger {
  border-color: color-mix(in srgb, #c0392b 45%, var(--color-border));
  background: color-mix(in srgb, #c0392b 12%, transparent);
}

.admin-catalog-flash p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  line-height: 1.45;
}

.admin-catalog-flash-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}

.admin-catalog-flash--success .admin-catalog-flash-icon {
  background: color-mix(in srgb, #1e8449 25%, transparent);
  color: #1e8449;
}

.admin-catalog-flash--danger .admin-catalog-flash-icon {
  background: color-mix(in srgb, #c0392b 25%, transparent);
  color: #c0392b;
}

.admin-catalog-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .admin-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-pack-editor-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-top: var(--space-3);
}

@media (min-width: 960px) {
  .admin-pack-editor-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }
}

.admin-pack-pool-row {
  cursor: grab;
}

.admin-pack-pool-row:active {
  cursor: grabbing;
}

.admin-pack-members-wrap.pack-drop-hover {
  outline: 2px dashed color-mix(in srgb, var(--color-primary) 45%, transparent);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

.admin-catalog-card {
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.28s ease;
}

.admin-catalog-card:hover {
  border-color: color-mix(in srgb, var(--color-primary) 32%, var(--color-border));
  box-shadow: 0 10px 32px color-mix(in srgb, #000 22%, transparent);
}

.admin-catalog-card--accent {
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
}

.admin-catalog-card-head {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.admin-catalog-step-badge {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0b1020;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
}

.admin-catalog-step-badge--soft {
  background: color-mix(in srgb, var(--color-muted) 35%, var(--color-surface));
  color: var(--color-text);
}

.admin-catalog-card-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.admin-catalog-card-sub {
  margin: 0;
  font-size: 0.84rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.admin-catalog-picker-form {
  margin-bottom: var(--space-3);
}

.admin-catalog-select {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.92rem;
}

.admin-catalog-hint {
  margin: 0;
  font-size: 0.84rem;
  color: var(--color-muted);
}

.admin-catalog-hint--ok {
  color: var(--color-primary-strong);
}

.admin-inline-link {
  color: var(--color-primary-strong);
  font-weight: 600;
}

.admin-catalog-form-grid {
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.admin-field-help {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.admin-sku-combo {
  position: relative;
  display: block;
  width: 100%;
}

.admin-sku-combo__input {
  width: 100%;
}

.admin-sku-combo__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 80;
  max-height: 240px;
  overflow-y: auto;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--color-border, #d8dee6);
  border-radius: var(--radius-sm, 6px);
  background: var(--color-surface, #fff);
  box-shadow: 0 10px 28px rgb(15 23 42 / 0.14);
}

.admin-sku-combo__opt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: none;
  border-radius: 4px;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.admin-sku-combo__opt:hover,
.admin-sku-combo__opt.is-active {
  background: color-mix(in srgb, var(--color-primary, #2563eb) 14%, transparent);
}

.admin-sku-combo__sku {
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-sku-combo__name {
  font-size: 0.82rem;
  color: var(--color-muted, #64748b);
  flex: 1 1 140px;
  min-width: 0;
}

.admin-req {
  color: #c0392b;
  font-weight: 700;
}

.admin-optional {
  font-weight: 500;
  color: var(--color-muted);
  font-size: 0.85em;
}

.admin-catalog-attr-fieldset {
  margin-top: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px dashed color-mix(in srgb, var(--color-border) 80%, var(--color-primary));
}

.admin-catalog-attr-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.admin-catalog-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.admin-catalog-inline-warn {
  font-size: 0.84rem;
  color: #c0392b;
}

.admin-catalog-empty {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  color: var(--color-muted);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--color-border);
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
}

.admin-catalog-empty--compact {
  padding: var(--space-4);
}

.admin-catalog-empty-icon {
  display: block;
  margin: 0 auto var(--space-3);
  opacity: 0.55;
  color: var(--color-primary-strong);
}

.admin-catalog-table-wrap {
  margin-top: var(--space-2);
}

.admin-code,
.admin-catalog-table code.admin-code {
  font-size: 0.78rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--color-surface-2) 70%, transparent);
  border: 1px solid var(--color-border);
}

.admin-catalog-slug-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.admin-catalog-slug-row input {
  flex: 1;
  min-width: 180px;
}

.admin-catalog-check-row {
  margin-top: var(--space-2);
}

.admin-catalog-subheading {
  margin: var(--space-5) 0 var(--space-3);
  font-size: 0.95rem;
}

.admin-warn-text {
  color: #c0392b;
  font-weight: 600;
}

.admin-catalog-tip-card {
  border-style: dashed;
  background: color-mix(in srgb, var(--color-surface-2) 40%, transparent);
}

/* Admin: Bestellungen & Versand (orders / fulfillment) */
.admin-orders-toolbar {
  margin-bottom: var(--space-4);
}

.admin-orders-search {
  max-width: 420px;
}

.admin-orders-legend {
  max-width: 720px;
}

.admin-shipping-assistant-toc {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  align-items: center;
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-primary) 6%, var(--color-surface));
}

.admin-shipping-assistant-toc a {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-primary-strong);
  text-decoration: none;
}

.admin-shipping-assistant-toc a:hover {
  text-decoration: underline;
}

.action-chip.is-active {
  border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
  font-weight: 700;
  color: var(--color-text);
}

.admin-fulfillment-batch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.admin-fulfillment-batch-bar .admin-catalog-select {
  min-width: 220px;
  max-width: 320px;
}

.admin-fulfillment-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-3) 0 var(--space-4);
}

.admin-fulfillment-detail-actions {
  display: flex;
  align-items: flex-end;
}

.admin-fs-json-input {
  width: 100%;
  max-width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .admin-catalog-attr-row {
    grid-template-columns: 1fr;
  }

  .admin-catalog-hero {
    flex-direction: column;
  }
}

.cf-turnstile,
.co-turnstile-mount {
  margin: var(--space-3) 0;
}

.co-turnstile-mount--interaction-only {
  min-height: 0;
  margin: var(--space-2) 0;
}
