﻿:root {
  --color-primary: #2D3B2D;
  --color-accent: #C8A45C;
  --color-background: #f6f4ef;
  --color-text: #202820;
  --color-surface: #ffffff;
  --color-product-card: #ffffff;
  --color-extra-card: #f8f3e7;
  --color-border: #ded8ca;
  --color-header: #243424;
  --color-footer: #243424;
  --color-muted: #5f665f;
  --color-input-bg: #fcfbf8;
  --color-link: #2D3B2D;
  --color-link-hover: #C8A45C;
  --color-h1: #1e2a1e;
  --color-h2: #243424;
  --color-h3: #2D3B2D;
  --color-h4: #465246;
  --color-button-bg: #2D3B2D;
  --color-button-text: #ffffff;
  --color-button-hover: #243424;
  --color-button-border: #2D3B2D;
  --font-size-base: 16px;
  --font-size-h1: 32px;
  --font-size-h2: 24px;
  --font-size-h3: 20px;
  --font-size-h4: 18px;
  --radius-base: 8px;
  --radius-button: 8px;
  --shadow-soft: 0 10px 28px rgba(32,40,32,0.08);
  --font-family-base: Arial, sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: linear-gradient(180deg, var(--color-background), color-mix(in srgb, var(--color-background) 88%, #ffffff));
}

*, *::before, *::after { box-sizing: border-box; }
img, video, iframe { max-width: 100%; }

a { color: var(--color-link); transition: color 0.15s ease; }
a:hover { color: var(--color-link-hover); }

header, footer { color: #fff; }
.topbar {
  background: linear-gradient(135deg, var(--color-header), color-mix(in srgb, var(--color-header) 70%, var(--color-primary)));
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 10;
}
footer {
  background:
    radial-gradient(circle at 18% 0%, rgba(200,164,92,0.22), transparent 32%),
    linear-gradient(135deg, #172818 0%, var(--color-footer) 58%, #102114 100%);
  border-top: 5px solid var(--color-accent);
  margin-top: 52px;
}
.topbar .inner { max-width: none; margin: 0; padding: 12px 24px; }
footer .inner { max-width: 1500px; margin: 0 auto; padding: 42px 28px 26px; }
main { max-width: 1180px; margin: 0 auto; padding: 20px; width: 100%; box-sizing: border-box; }
.header-visual { padding: 20px 20px 0; }
.header-visual .inner { max-width: 1180px; margin: 0 auto; }
.header-visual-link { display: block; }
.header-visual img {
  display: block; width: 100%; max-height: 420px; object-fit: cover; object-position: 50% 30%;
  border-radius: calc(var(--radius-base) + 6px);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.app-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 0;
  align-items: start;
}
.app-shell.no-sidebar {
  display: block;
  grid-template-columns: minmax(0, 1fr);
}
.sidebar {
  min-height: calc(100vh - 70px);
  background: color-mix(in srgb, var(--color-header) 96%, #000000);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.sidebar-inner {
  position: sticky;
  top: 74px;
  display: grid;
  gap: 16px;
  padding: 22px 18px 28px;
}
.app-main {
  min-width: 0;
}
.app-shell.no-sidebar .app-main {
  width: 100%;
}
.app-shell.no-sidebar main,
.app-shell.no-sidebar .header-visual .inner,
.app-shell.no-sidebar footer .inner {
  max-width: 1500px;
}
/* Admin-Bereich (mit Sidebar): linksbuendig, volle Breite nutzen */
.app-shell:not(.no-sidebar) main,
.app-shell:not(.no-sidebar) .header-visual .inner,
.app-shell:not(.no-sidebar) footer .inner {
  max-width: none;
  margin: 0;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 28px;
}
.topbar-spacer {
  flex: 1 1 auto;
  min-width: 0;
}
.topbar-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.site-nav a, .footer-links a, .topbar-links a { color: #fff; text-decoration: none; }
.topbar-cart-form {
  display: inline-flex;
  margin: 0;
}
.site-nav a,
.topbar-links a,
.topbar-cart-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.topbar-links a {
  min-height: 30px;
  padding: 3px 9px;
  font-size: 12px;
}
.topbar-cart-link {
  position: relative;
  min-width: 56px;
  justify-content: center;
  padding: 8px 16px;
  font-size: 22px;
  line-height: 1;
  color: #1f241f;
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.topbar-cart-link:hover { background: #d8b878; border-color: #d8b878; color: #1f241f; }
/* Hamburger-Button (nur Mobile sichtbar, siehe Media-Query) */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  width: 42px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  margin-right: 8px;
  flex: 0 0 auto;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.22); }
.nav-hamburger:focus-visible { outline: 2px solid var(--color-accent, #C8A45C); outline-offset: 2px; }
/* Drawer-Backdrop (nur sichtbar wenn nav-open + Mobile) */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 80;
  cursor: pointer;
}
body.nav-open .nav-backdrop { display: block; }
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border: 2px solid #fff;
}
.site-nav a:hover,
.topbar-links a:hover { background: rgba(255,255,255,0.16); color: #fff; }
.sidebar-nav {
  display: grid;
  gap: 10px;
  align-items: stretch;
}
.sidebar-nav a {
  width: 100%;
  justify-content: flex-start;
  box-sizing: border-box;
}
.site-nav-admin {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  gap: 14px;
}
.site-nav-group {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.site-nav-label {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

h1, h2, h3, h4 { letter-spacing: 0; }
h1 { margin: 18px 0 22px; font-size: var(--font-size-h1); color: var(--color-h1); }
h2 { font-size: var(--font-size-h2); color: var(--color-h2); }
h3 { font-size: var(--font-size-h3); color: var(--color-h3); }
h4 { font-size: var(--font-size-h4); color: var(--color-h4); }

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
th, td { padding: 12px 14px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
th { background: color-mix(in srgb, var(--color-surface) 55%, var(--color-background)); }
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.shop-product-grid { display: grid; gap: 16px; }
.shop-product-grid.shop-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-product-grid.shop-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop-product-grid.shop-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .shop-product-grid.shop-cols-3,
  .shop-product-grid.shop-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shop-product-grid.shop-cols-2,
  .shop-product-grid.shop-cols-3,
  .shop-product-grid.shop-cols-4 { grid-template-columns: 1fr; }
}
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.settings-grid-span { grid-column: 1 / -1; }
.settings-toggle-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.settings-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.settings-page { gap: 34px; }
.settings-section {
  border-top: 5px solid var(--color-accent);
  padding: 30px 24px 28px;
}
.settings-section h2 {
  align-items: center;
  background: color-mix(in srgb, var(--color-accent) 18%, var(--color-surface));
  border-left: 6px solid var(--color-primary);
  border-radius: calc(var(--radius-base) - 4px);
  color: var(--color-primary);
  display: flex;
  font-size: max(var(--font-size-h2), 30px);
  line-height: 1.15;
  margin: 0 0 26px;
  padding: 12px 16px;
}
.settings-section .muted { margin-bottom: 16px; }
.settings-subsection {
  border-top: 1px solid var(--color-border);
  margin-top: 30px;
  padding-top: 24px;
}
.settings-section h2 + .settings-subsection {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.settings-subheading {
  color: var(--color-primary);
  font-size: 23px;
  line-height: 1.2;
  margin: 0 0 16px;
}
.settings-section > .settings-subheading {
  margin-top: 34px;
}
.settings-section > h2 + .settings-subheading {
  margin-top: 0;
}
.panel > h3,
.card > h3,
.settings-template-card h3,
.settings-legal-card h3 {
  color: var(--color-primary);
  font-size: 22px;
  line-height: 1.2;
  margin: 26px 0 16px;
}
.panel > h3:first-child,
.card > h3:first-child,
.settings-template-card h3:first-child,
.settings-legal-card h3:first-child {
  margin-top: 0;
}
.seller-block-field textarea {
  min-height: 180px;
  font-family: var(--font-family-base);
  line-height: 1.55;
  white-space: pre-wrap;
}
.shop-intro { margin: 0 0 18px; }
.shop-intro:empty { display: none; }
.shop-intro > :first-child { margin-top: 0; }
.shop-intro > :last-child { margin-bottom: 0; }
.settings-actions { margin-top: 14px; display: flex; gap: 12px; align-items: center; }
.settings-actions-sticky { justify-content: flex-end; padding-top: 8px; }
.settings-template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 18px; }
.settings-template-card { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--color-border); border-radius: var(--radius-base); background: color-mix(in srgb, var(--color-surface) 82%, var(--color-background)); }
.settings-template-card-full { grid-column: 1 / -1; }
.settings-template-card textarea { min-height: 170px; }
.settings-legal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 26px; margin-top: 12px; }
.settings-legal-card { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--color-border); border-radius: var(--radius-base); background: color-mix(in srgb, var(--color-surface) 82%, var(--color-background)); }
.settings-page textarea.js-rich-editor + .note-editor,
.settings-legal-card .note-editor,
.settings-template-card .note-editor { margin-top: 8px; }
.card, .panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-base); padding: 18px; box-shadow: var(--shadow-soft); }
.product-description .description-body { font-size: 15px; line-height: 1.7; color: var(--color-text); }
.product-description .description-body p { margin: 0 0 12px; }
.product-description .description-body p:last-child { margin-bottom: 0; }
.product-description .description-body br + br { display: none; }
.products-grid .card { background: var(--color-product-card); }
.marketing-strip .card, .dashboard-metric, .feature-card, .promo-card, .image-card, .related-item, .theme-preview-extra { background: var(--color-extra-card); }

label, fieldset { display: block; margin: 0 0 14px; }
input, textarea, select {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius-base) - 2px);
  font-size: 15px;
  background: var(--color-input-bg);
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 18%, transparent);
  background: #fff;
}
textarea { min-height: 140px; font-family: Consolas, monospace; }
input[type="radio"], input[type="checkbox"] { width: auto; }
fieldset { border: 1px solid var(--color-border); border-radius: var(--radius-base); padding: 12px; }
legend { font-weight: 700; padding: 0 6px; color: #111; }

button, .button {
  display: inline-block;
  background: var(--color-button-bg);
  color: var(--color-button-text);
  border: 1px solid var(--color-button-border);
  border-radius: var(--radius-button);
  padding: 10px 14px;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--color-button-bg) 18%, transparent);
  transition: filter 0.15s ease, transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
button:hover, .button:hover { background: var(--color-button-hover); color: var(--color-button-text); filter: brightness(1.02); transform: translateY(-1px); }
.secondary { background: #5c6b5c; border-color: #5c6b5c; color: #fff; }
.button-success { background: #2f7d32; border-color: #2f7d32; }
.button-danger { background: #a33a3a; border-color: #a33a3a; }

.muted { color: var(--color-muted); }
.stock-note { font-size: 13px; color: #9aa19a; }
.right { text-align: right; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form { display: inline; margin: 0; }
.error { background: #fff1f1; border: 1px solid #d69a9a; padding: 12px; border-radius: 6px; }
.success { background: #f0f8ef; border: 1px solid #9ac58f; padding: 12px; border-radius: 6px; }
.warning { background: #fff7e6; border: 1px solid #e0ba63; padding: 12px; border-radius: 6px; }

.product-image { max-width: 100%; height: auto; border-radius: 6px; margin-bottom: 10px; }
.product-gallery { margin-bottom: 12px; }
.product-gallery-main { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border: 1px solid var(--color-border); background: color-mix(in srgb, var(--color-background) 75%, #ffffff); border-radius: var(--radius-base); }
.product-gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 8px; margin-top: 8px; }
.product-gallery-thumb { padding: 4px; border: 1px solid var(--color-border); border-radius: calc(var(--radius-base) - 2px); background: color-mix(in srgb, var(--color-background) 78%, #ffffff); cursor: pointer; overflow: hidden; box-shadow: none; }
.product-gallery-thumb.is-active { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary) inset; }
.product-gallery-thumb img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.gallery-caption { margin: 8px 0 0; font-size: 14px; color: #4c544c; min-height: 20px; }
.design-variant-btn { transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.design-variant-btn:hover { border-color: #5cb85c !important; box-shadow: 0 2px 8px rgba(45,59,45,0.12); }
.design-variant-active { border-color: #2D3B2D !important; box-shadow: 0 0 0 2px rgba(45,59,45,0.18); }
.promo-badge { display: inline-block; margin: 0 0 10px; padding: 6px 10px; border-radius: 999px; background: var(--color-accent); color: #2a2519; font-weight: 700; font-size: 13px; }
.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.product-badges:empty {
  display: none;
}
.product-badge {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(32,40,32,0.12);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 8px 12px;
  text-transform: uppercase;
}
.product-badge--new {
  background: linear-gradient(135deg, #148943, #25b85b);
  border-color: #0d6c32;
  color: #fff;
  font-size: 15px;
  padding: 10px 16px;
}
.product-badge--sale,
.product-badge--urgent {
  background: linear-gradient(135deg, #d71920, #ff8a00);
  border-color: #b91818;
  color: #fff;
  font-size: 15px;
  padding: 10px 16px;
}
.product-badge--promo {
  background: var(--color-accent);
  color: #241b08;
}
.product-badge--restock,
.product-badge--soon,
.product-badge--preorder {
  background: color-mix(in srgb, var(--color-primary) 14%, #ffffff);
  border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
  color: var(--color-primary);
}
.product-badge--soldout {
  background: #f3e3e3;
  border-color: #c98a8a;
  color: #8a1f1f;
}
.product-meta { display: grid; gap: 6px; margin-bottom: 10px; }
.product-short { font-weight: 700; margin: 0 0 8px; }
.sold-out { color: #a12f2f; font-weight: 700; }
.product-price-row {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--color-border) 82%, transparent);
  border-radius: calc(var(--radius-base) - 2px);
  background: color-mix(in srgb, var(--color-product-card) 88%, var(--color-extra-card));
}
.product-price-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.product-price-main {
  white-space: nowrap;
  font-size: 18px;
}
.product-tier-inline {
  border-top: 1px solid color-mix(in srgb, var(--color-border) 72%, transparent);
  padding-top: 7px;
}
.product-tier-title {
  margin-bottom: 4px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.product-tier-inline ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}
.product-tier-inline li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #6a4809;
  font-size: 12px;
  line-height: 1.2;
}
.product-tier-inline li strong { text-align: right; }
.product-vat-note {
  white-space: nowrap;
  color: var(--color-muted);
  font-size: 12px;
  text-align: right;
}
.product-buy-row {
  display: grid;
  grid-template-columns: minmax(110px, 150px) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  margin-top: 10px;
}
.product-cart-form {
  margin: 0;
}
.product-qty-label {
  margin: 0;
}
.product-qty-label input {
  margin-top: 6px;
}
.product-buy-row .button {
  width: 100%;
  text-align: center;
}
.button-icon {
  min-width: 52px;
  padding-left: 0;
  padding-right: 0;
  font-size: 20px;
  line-height: 1;
}
.tier-price-box {
  margin: 10px 0 12px;
  padding: 12px 14px;
  border: 1px solid #d8cfb8;
  border-radius: 10px;
  background: #fff8ea;
}
.tier-price-box strong {
  display: block;
  margin-bottom: 8px;
  color: #5a4314;
}
.tier-price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.tier-price-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.tier-cart-note {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff3d7;
  color: #8a5a00;
  font-size: 12px;
  font-weight: 700;
}

.thumb { max-width: 72px; max-height: 72px; margin: 0 6px 6px 0; border: 1px solid var(--color-border); border-radius: calc(var(--radius-base) - 2px); }
.thumb-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.editor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.editor-textarea { min-height: 220px; }
.compact-textarea { min-height: 80px; }
.field-label { display: inline-block; font-weight: 800; color: #000; margin-bottom: 6px; }
.field-help { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 999px; background: var(--color-accent); color: #2a2519; font-size: 12px; font-weight: 700; cursor: help; vertical-align: middle; }
.check-label { display: flex; align-items: center; gap: 10px; padding-top: 30px; }
.checkout-legal-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.checkout-legal-label input[type="checkbox"] {
  margin-top: 3px;
}
.checkout-legal-label a {
  font-weight: 700;
}
.checkout-cart-actions {
  margin: 10px 0 18px;
}
.checkout-item-row td {
  background: color-mix(in srgb, var(--color-extra-card) 55%, #ffffff);
}
.checkout-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--color-accent) 42%, var(--color-border));
  border-radius: var(--radius-base);
  background: color-mix(in srgb, var(--color-accent) 16%, #ffffff);
}
.checkout-total-row th,
.checkout-total-row td {
  background: color-mix(in srgb, var(--color-accent) 22%, #ffffff);
  border-top: 2px solid color-mix(in srgb, var(--color-accent) 55%, var(--color-border));
  font-weight: 800;
}
.checkout-order-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 28px;
  row-gap: 10px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 2px solid color-mix(in srgb, var(--color-accent) 72%, var(--color-border));
  border-radius: var(--radius-base);
  background: color-mix(in srgb, var(--color-accent) 20%, #ffffff);
}
.checkout-order-total span {
  color: var(--color-h3);
  font-weight: 800;
}
.checkout-order-total strong {
  color: #15622a;
  font-size: 32px;
  line-height: 1.1;
  margin-left: 18px;
  white-space: nowrap;
}
.checkout-address-details {
  margin: 18px 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  background: color-mix(in srgb, var(--color-surface) 88%, var(--color-background));
  overflow: hidden;
}
.checkout-address-details summary {
  padding: 14px 16px;
  cursor: pointer;
  color: var(--color-h2);
  font-size: 18px;
  font-weight: 800;
  background: color-mix(in srgb, var(--color-extra-card) 75%, #ffffff);
}
.checkout-address-details[open] {
  padding: 0 16px 16px;
}
.checkout-address-details[open] summary {
  margin: 0 -16px 14px;
  border-bottom: 1px solid var(--color-border);
}
.checkout-choice-fieldset {
  margin-bottom: 22px;
}
.checkout-qty-cell,
.checkout-remove-cell {
  vertical-align: middle;
}
.checkout-qty-input {
  width: 72px;
  min-width: 72px;
  margin: 0;
  text-align: center;
}
.checkout-remove-button {
  min-width: 0;
  padding: 8px 12px;
  font-size: 13px;
}
.checkout-qty-control {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.checkout-step-button {
  min-width: 38px;
  padding: 8px 0;
  font-size: 20px;
  line-height: 1;
}
.editor-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid #d8cfb8; border-radius: 8px; background: linear-gradient(90deg, #eef6eb, #fff8ea); }
.editor-banner-text { font-size: 20px; font-weight: 700; color: #1f2f1f; }
.status-badge { display: inline-block; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.status-active { background: #e3f5e3; color: #166534; border: 1px solid #7cc27c; }
.status-inactive { background: #fde8e8; color: #a12f2f; border: 1px solid #d79898; }
.status-top { background: #fff3d7; color: #8a5a00; border: 1px solid #dcb15d; }

/* Bestellstatus-Badges in der Bestellliste */
.order-status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; border: 1px solid transparent; white-space: nowrap; }
.order-status-neu             { background: #e0ecff; color: #1d4ed8; border-color: #93b4f5; }
.order-status-wartet_paypal   { background: #fff3d7; color: #8a5a00; border-color: #dcb15d; }
.order-status-offen           { background: #fff3d7; color: #8a5a00; border-color: #dcb15d; }
.order-status-teilbezahlt     { background: #ffe5cc; color: #9a4d00; border-color: #f5a564; }
.order-status-bezahlt         { background: #d4f5d4; color: #15622a; border-color: #5cb85c; }
.order-status-mahnung         { background: #fde8e8; color: #a12f2f; border-color: #d79898; }
.order-status-versendet       { background: #cdeef2; color: #0e5763; border-color: #6ab8c2; }
.order-status-abgeschlossen   { background: #e6e6e6; color: #444; border-color: #999; }
.order-status-erstattet       { background: #ede0f5; color: #6b21a8; border-color: #b48ee0; }
.order-status-storniert       { background: #fcd5d5; color: #7a1212; border-color: #c84747; }

/* Stornieren-Button rot */
.button-danger,
button.button-danger { background: #b42318; color: #fff; border-color: #8c1810; }
.button-danger:hover,
button.button-danger:hover { background: #8c1810; color: #fff; }

/* Grosser "Zur Kasse"-Button unten */
.button-checkout,
button.button-checkout {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 19px;
  font-weight: 700;
  background: var(--color-accent);
  color: #1f241f;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-button);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}
.button-checkout:hover,
button.button-checkout:hover {
  background: #d8b878;
  border-color: #d8b878;
  color: #1f241f;
  transform: translateY(-1px);
}

/* Produktkarte: Aktions-Reihe mit Details, Menge, Warenkorb nebeneinander */
.product-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}
.product-action-row .button { flex: 0 0 auto; }
.product-action-row .product-qty-label { flex: 1 1 110px; min-width: 100px; }
.product-action-row .product-qty-label input { width: 100%; }
.product-action-row button[type="submit"] { flex: 0 0 auto; }
@media (max-width: 520px) {
  .product-action-row {
    flex-direction: column;
    align-items: stretch;
  }
  .product-action-row > * { width: 100%; }
  .product-action-row .button,
  .product-action-row button[type="submit"] { text-align: center; justify-content: center; }
}

/* "Beliebt"-Bereich (marketing) mit kleinen Produktbildern */
.marketing-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.marketing-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  background: var(--color-extra-card);
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.marketing-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(32,40,32,0.12);
}
.marketing-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--color-border);
}
.marketing-thumb-empty {
  background: linear-gradient(135deg, #ece4cd, #d8cda8);
}
.marketing-text { flex: 1 1 auto; min-width: 0; }
.marketing-text strong { display: block; color: var(--color-primary); }
.marketing-text .muted { font-size: 12px; margin-top: 2px; }
.product-status-box { margin: 0 0 18px; padding: 16px 18px; border-radius: 10px; border: 1px solid; box-shadow: var(--shadow-soft); }
.product-status-box-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.product-status-toggle { display: flex; align-items: center; gap: 10px; margin: 0; }
.product-status-active { background: #eef8ef; border-color: #8bc08b; }
.product-status-inactive { background: #fff1f1; border-color: #d9a0a0; }
.product-feature-box { background: #fff8ea; border-color: #dcb15d; }

.rich-editor-shell { display: grid; gap: 10px; margin-top: 8px; }
.rich-editor-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border: 1px solid var(--color-border); border-radius: 8px; background: color-mix(in srgb, var(--color-surface) 70%, var(--color-background)); }
.rich-editor-toolbar button { padding: 8px 12px; font-size: 14px; }
.rich-editor-surface { min-height: 220px; padding: 12px; border: 1px solid #bdb6a6; border-radius: 8px; background: #fff; overflow: auto; }
.rich-editor-source { display: none; }

.inline-status { display: inline-block; margin-top: 6px; }
.status-pill-ok { background: #e3f5e3; color: #166534; border: 1px solid #7cc27c; }
.status-pill-off { background: #fde8e8; color: #a12f2f; border: 1px solid #d79898; }
.price-old {
  color: #7a6e6e;
  margin-right: 8px;
  text-decoration: line-through;
}
.price-special {
  color: #c01818;
  font-size: 1.18em;
  font-weight: 900;
}
.special-offer-box {
  background: linear-gradient(135deg, #fff3dd, #ffe2be);
  border: 2px solid #e0522d;
  border-radius: var(--radius-base);
  box-shadow: 0 10px 24px rgba(192,24,24,0.13);
  color: #3a2512;
  display: grid;
  gap: 4px;
  margin: 10px 0 12px;
  padding: 12px 14px;
}
.special-offer-box strong {
  color: #b91818;
  font-size: 18px;
  line-height: 1.2;
}
.special-offer-box span {
  font-size: 13px;
}
.special-offer-kicker {
  align-items: center;
  color: #8a3a00;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.special-offer-saving {
  background: #c01818;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  padding: 4px 8px;
}
.offer-countdown {
  background: #fff7e6;
  border: 1px solid #e0a93f;
  border-radius: calc(var(--radius-base) - 2px);
  color: #7a3d00;
  font-weight: 800;
  margin: 8px 0 12px;
  padding: 9px 11px;
}

.group-bar { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0; padding: 6px 0; }
.group-pill { display: inline-block; padding: 12px 22px; border: 1px solid #bdb6a6; border-radius: 999px; color: var(--color-primary); background: #fff; text-decoration: none; font-weight: 600; font-size: 14px; transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease; }
.group-pill:hover { background: #f6f4ef; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(32,40,32,0.10); }
.group-pill.is-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); box-shadow: 0 2px 8px rgba(45,59,45,0.25); }
.group-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.selection-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.selection-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef6eb;
  border: 1px solid #b9d3b9;
  color: #233423;
  font-size: 12px;
  font-weight: 700;
}
.product-option-search {
  margin-bottom: 10px;
}
.product-option-list {
  max-height: 220px;
  overflow: auto;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  background: color-mix(in srgb, var(--color-surface) 86%, var(--color-background));
}
.product-option-list label {
  margin: 0;
  padding: 6px 8px;
  border-radius: calc(var(--radius-base) - 2px);
}
.product-option-list label:hover {
  background: color-mix(in srgb, var(--color-extra-card) 60%, transparent);
}

.image-manager { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.image-card { border: 1px solid var(--color-border); border-radius: var(--radius-base); padding: 12px; }
.image-card img { display: block; max-width: 100%; max-height: 140px; margin: 0 0 10px; border-radius: 6px; }
.theme-image-preview { margin-top: 12px; }
.theme-image-preview img { display: block; width: 100%; max-width: 640px; max-height: 260px; object-fit: cover; border-radius: calc(var(--radius-base) + 4px); border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); }
.image-card .image-meta { display: grid; gap: 8px; }

@media (min-width: 981px) {
  :root {
    --font-size-base: 14px;
    --font-size-h1: 28px;
    --font-size-h2: 21px;
    --font-size-h3: 18px;
    --font-size-h4: 16px;
  }

  .topbar .inner {
    padding: 10px 20px;
  }

  main {
    padding: 16px;
  }

  .app-shell.no-sidebar main,
  .app-shell.no-sidebar .header-visual .inner,
  .app-shell.no-sidebar footer .inner {
    max-width: 1320px;
  }

  .header-visual {
    padding: 16px 16px 0;
  }

  .header-visual img {
    max-height: 380px;
  }

  .card,
  .panel {
    padding: 14px;
  }

  .shop-product-grid,
  .grid,
  .stack {
    gap: 14px;
  }

  .product-gallery-main {
    max-height: 300px;
  }

  .product-gallery-thumbs {
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  }

  input,
  textarea,
  select {
    padding: 9px 10px;
    font-size: 14px;
  }

  button,
  .button {
    padding: 9px 12px;
    font-size: 14px;
  }

  .product-price-main {
    font-size: 16px;
  }

  .product-action-row,
  .product-buy-row {
    gap: 8px;
  }

  footer {
    margin-top: 42px;
  }

  footer .inner {
    padding: 34px 24px 22px;
  }
}

@media (min-width: 1500px) {
  .app-shell.no-sidebar main,
  .app-shell.no-sidebar .header-visual .inner,
  .app-shell.no-sidebar footer .inner {
    max-width: 1380px;
  }
}

.footer-links { font-size: 15px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(180px, 1fr));
  gap: 34px;
  align-items: start;
}
.footer-brand h2 {
  color: #fff;
  font-size: 27px;
  line-height: 1.15;
  margin: 8px 0 10px;
}
.footer-brand p {
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  margin: 0;
  max-width: 420px;
}
.footer-kicker {
  align-items: center;
  background: rgba(200,164,92,0.16);
  border: 1px solid rgba(200,164,92,0.42);
  border-radius: 999px;
  color: #f4d999;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  text-transform: uppercase;
}
.footer-column {
  align-content: start;
  display: grid;
  gap: 10px;
}
.footer-column h3 {
  color: #f4d999;
  font-size: 14px;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
  text-transform: uppercase;
}
.footer-column a {
  border-bottom: 1px solid transparent;
  color: rgba(255,255,255,0.86);
  display: inline-flex;
  max-width: 100%;
  padding: 3px 0;
  text-decoration: none;
  width: max-content;
}
.footer-column a:hover {
  border-bottom-color: var(--color-accent);
  color: #fff;
}
.footer-contact span {
  color: rgba(255,255,255,0.78);
  display: block;
  line-height: 1.45;
  margin-bottom: 5px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.74);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 12px;
  justify-content: space-between;
  line-height: 1.45;
  margin-top: 30px;
  padding-top: 18px;
}
.stack { display: grid; gap: 16px; }
.shop-filter-panel {
  max-width: 780px;
  padding: 16px 18px;
  gap: 12px;
}
.shop-filter-grid {
  gap: 12px;
}
.shop-filter-panel label {
  font-size: 14px;
}
.shop-filter-panel input[type="text"],
.shop-filter-panel input[type="number"] {
  padding: 10px 12px;
}
.shop-filter-actions {
  margin: 0;
}
.checkout-entry-panel {
  margin-top: 18px;
}
.related-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.related-item { display: block; padding: 12px; border: 1px solid var(--color-border); border-radius: calc(var(--radius-base) - 2px); text-decoration: none; color: var(--color-text); box-shadow: var(--shadow-soft); }
.review-item { border-top: 1px solid #ded8ca; padding-top: 12px; margin-top: 12px; }

.theme-preview {
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-base);
  background: color-mix(in srgb, var(--color-surface) 80%, var(--color-background));
}
.theme-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.theme-preview-card {
  background: var(--color-product-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}
.theme-preview-extra {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .app-shell.no-sidebar {
    display: block;
    grid-template-columns: 1fr;
  }
  .app-shell.has-sidebar {
    display: block;
  }
  /* Admin-Sidebar wird auf Mobile zum Hamburger-Drawer */
  .app-shell.has-sidebar .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 320px);
    z-index: 90;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0,0,0,0.35);
    border-right: 1px solid rgba(255,255,255,0.08);
    border-bottom: 0;
    min-height: 100vh;
    will-change: transform;
  }
  body.nav-open .app-shell.has-sidebar .sidebar {
    transform: translateX(0);
  }
  .sidebar-inner {
    position: static;
    padding: 16px 20px;
  }
  .nav-hamburger {
    display: inline-flex !important;
  }
  .header-visual {
    padding-top: 16px;
  }
  .topbar-inner {
    justify-content: flex-end;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }
  .topbar .inner,
  main,
  footer .inner {
    padding-left: 12px;
    padding-right: 12px;
  }
  .header-visual {
    padding: 12px 12px 0;
  }
  .topbar-inner {
    gap: 8px;
  }
  .topbar-links {
    gap: 6px;
  }
  .topbar-links a {
    min-height: 28px;
    padding: 3px 7px;
    font-size: 11px;
  }
  .topbar-cart-link {
    min-width: 32px;
    min-height: 30px;
    padding: 3px 7px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .footer-brand h2 {
    font-size: 21px;
  }
  .footer-bottom {
    display: grid;
    justify-content: stretch;
  }
  .sidebar-inner {
    padding: 12px;
    gap: 12px;
  }
  .site-nav-group {
    padding: 8px;
    gap: 6px;
  }
  h1 {
    margin: 16px 0;
    font-size: min(var(--font-size-h1), 28px);
  }
  h2 {
    font-size: min(var(--font-size-h2), 22px);
  }
  .panel,
  .card {
    padding: 14px;
  }
  .grid,
  .settings-grid,
  .settings-template-grid,
  .settings-legal-grid,
  .theme-preview-grid {
    grid-template-columns: 1fr;
  }
  .settings-template-card-full,
  .settings-grid-span {
    grid-column: auto;
  }
  .shop-filter-panel {
    max-width: none;
  }
  .shop-filter-actions,
  .settings-actions,
  .checkout-cart-actions,
  .row-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .shop-filter-actions .button,
  .settings-actions .button,
  .settings-actions button,
  .checkout-cart-actions button,
  .row-actions .button,
  .row-actions button {
    width: 100%;
    text-align: center;
  }
  table {
    min-width: 620px;
  }
  table:not(.checkout-cart-table) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .checkout-cart-table {
    display: block;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .checkout-cart-table thead {
    display: none;
  }
  .checkout-cart-table tbody,
  .checkout-cart-table tr,
  .checkout-cart-table td,
  .checkout-cart-table th {
    display: block;
    width: 100%;
  }
  .checkout-cart-table tr {
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
  }
  .checkout-cart-table td,
  .checkout-cart-table th {
    padding: 8px 0;
    border-bottom: 0;
    text-align: left;
  }
  .checkout-cart-table td[data-label] {
    display: grid;
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }
  .checkout-cart-table td[data-label]::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--color-h3);
  }
  .checkout-item-name {
    font-weight: 700;
  }
  .checkout-qty-control {
    justify-content: flex-start;
  }
  .checkout-qty-input {
    width: 64px;
    min-width: 64px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .checkout-step-button {
    min-width: 36px;
    min-height: 36px;
  }
  .checkout-remove-button {
    width: auto;
  }
  .checkout-total-row {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .checkout-total-row th {
    text-align: left;
  }
  .checkout-total-row th[colspan] {
    font-size: 14px;
    color: var(--color-muted);
  }
}

@media (max-width: 420px) {
  .product-buy-row {
    grid-template-columns: 1fr auto;
  }
  .group-bar {
    gap: 8px;
  }
  .group-pill {
    padding: 7px 10px;
    font-size: 14px;
  }
  .checkout-cart-table td[data-label] {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

