/* ==========================================================================
   BeeLogic Design System  ·  Imkerei Peters  ·  v2
   Natur trifft Technologie – warmes Creme, Honiggold, Tiefschwarz, Waben.
   Eine Datei für Landingpage, Shop, Kundenkonto und Admin. Kein Build nötig.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: only light;   /* Standard hell; Dunkel nur per Umschalter (dark.css). 'only light' verhindert das Zwangs-Abdunkeln durch Mobilbrowser. */
  --cream:      #FFFBF0;
  --cream-2:    #FBF3DF;
  --paper:      #FFFFFF;
  --ink:        #14110C;
  --ink-2:      #3B3326;
  --muted:      #75684F;
  --line:       rgba(130, 96, 20, .18);
  --line-2:     rgba(130, 96, 20, .32);

  --gold:       #E3A21A;
  --gold-deep:  #A8700A;
  --gold-light: #FFD76A;
  --gold-soft:  #FFF1C7;
  --honey:      linear-gradient(135deg, #FFD76A 0%, #E3A21A 55%, #C98708 100%);
  --honey-text: linear-gradient(180deg, #E8AE24 0%, #A8700A 100%);

  --night:      #100D08;
  --night-2:    #1B160D;
  --night-line: rgba(255, 215, 106, .18);

  --ok:   #2F7D3B;  --ok-bg:   #E8F5E6;
  --warn: #9A6400;  --warn-bg: #FFF2D1;
  --err:  #B3261E;  --err-bg:  #FDECEA;
  --info: #1F5F99;  --info-bg: #E7F1FB;

  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(60, 40, 0, .06), 0 2px 8px rgba(60, 40, 0, .05);
  --shadow:    0 6px 24px rgba(60, 40, 0, .10);
  --shadow-lg: 0 18px 50px rgba(60, 40, 0, .16);
  --glow:      0 0 0 4px rgba(227, 162, 26, .22);

  --font-display: "Outfit", "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --header-h: 72px;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  color: var(--ink-2); background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--gold-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
::selection { background: var(--gold-light); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
[hidden] { display: none !important; }

.container { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.container-narrow { width: min(100% - 32px, 760px); margin-inline: auto; }
.container-content { width: min(100% - 32px, var(--wrap)); margin-inline: auto; padding-block: 40px 64px; }
.stack > * + * { margin-top: var(--gap, 1rem); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.muted, .text-muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.gold-text { background: var(--honey-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Wabenmuster (Deko) ---------- */
.hexbg {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cg fill='none' stroke='%23E3A21A' stroke-opacity='.16' stroke-width='1.2'%3E%3Cpath d='M28 2l26 15v30L28 62 2 47V17z'/%3E%3Cpath d='M28 62v30M2 47L-24 62M54 47l26 15' /%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 97px;
}
.hex-corner { position: absolute; width: min(38vw, 420px); aspect-ratio: 1; pointer-events: none; opacity: .9; z-index: 0; }

/* ---------- Header (Shop + Landing) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 251, 240, .88); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line); transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header .inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold-light), var(--shadow-sm); }
.brand .wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; letter-spacing: -.03em; line-height: 1; }
.wordmark .bee { background: var(--honey-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark .logic { color: var(--ink); }
.brand small { display: block; font: 500 .72rem/1.2 var(--font-body); color: var(--muted); letter-spacing: .02em; margin-top: 3px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a, .nav summary {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
  font: 600 .95rem var(--font-display); color: var(--ink); text-decoration: none; cursor: pointer; list-style: none;
}
.nav summary::-webkit-details-marker { display: none; }
.nav a:hover, .nav summary:hover, .nav a[aria-current="page"] { background: var(--gold-soft); color: var(--ink); }
.nav .btn { padding: 10px 20px; }
.cart-pill { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--ink); color: var(--gold-light); font: 700 .75rem var(--font-body); }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 24px; height: 24px; stroke: var(--ink); }
@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 16px; right: 16px; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; padding: 12px; margin: 0;
    background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav a, .nav summary { border-radius: 12px; padding: 12px 14px; }
}

/* ---------- Buttons ---------- */
.btn, .btn-primary, .btn-secondary, .btn-ghost, .btn-danger, .btn-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 .98rem/1.1 var(--font-display); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, color .15s;
}
.btn svg, .btn-primary svg, .btn-secondary svg, .btn-dark svg, .btn-ghost svg, .btn-danger svg { width: 1.2em; height: 1.2em; flex: none; }
.btn, .btn-primary, .btn-secondary, .btn-ghost, .btn-danger, .btn-dark { white-space: nowrap; }
.btn-primary { background: var(--honey); color: var(--ink); box-shadow: 0 6px 18px rgba(227, 162, 26, .35), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(227, 162, 26, .45); color: var(--ink); }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--gold); background: var(--gold-soft); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--gold-light); }
.btn-dark:hover { background: #000; color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--gold-soft); color: var(--ink); }
.btn-danger { background: var(--err-bg); color: var(--err); border-color: rgba(179, 38, 30, .3); }
.btn-danger:hover { background: var(--err); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled], button[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold-deep); cursor: pointer; font: inherit; text-decoration: underline; }
.link-btn.danger { color: var(--err); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1000px 520px at 85% 10%, rgba(255, 215, 106, .55), transparent 60%),
  radial-gradient(800px 500px at 0% 100%, rgba(255, 241, 199, .9), transparent 60%), var(--cream); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: .8; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-block: 56px 72px; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); margin-bottom: .3em; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 34em; }
.hero-art { position: relative; justify-self: center; width: min(100%, 560px); }
.hero-art img { display: block; width: 100%; border-radius: 40px; box-shadow: var(--shadow-lg); -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 62%, transparent 100%); mask-image: radial-gradient(circle at 50% 46%, #000 62%, transparent 100%); box-shadow: none; }
.hero-art::after { content: ""; position: absolute; inset: 8% 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255,215,106,.55), transparent 70%); z-index: -1; filter: blur(30px); }
.kicker, .section-kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 .8rem var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
.kicker::before, .section-kicker::before { content: ""; width: 26px; height: 2px; background: var(--honey); border-radius: 2px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font: 600 .88rem var(--font-display); color: var(--ink); box-shadow: var(--shadow-sm); }
.chip svg { width: 18px; height: 18px; color: var(--gold-deep); }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; padding-block: 32px 48px; } .hero-art { order: -1; width: min(86%, 380px); } }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section.alt { background: var(--cream-2); }
.section.dark { background: var(--night); color: #E9DFC6; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .section-kicker { color: var(--gold-light); }
.section.dark .muted { color: #BFB290; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.section.dark .section-head p { color: #BFB290; }
.page-head { padding-block: 40px 8px; }
.page-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: .25em; }
.page-title span { background: var(--honey-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-sub { color: var(--muted); font-size: 1.1rem; max-width: 46em; }

/* ---------- Karten ---------- */
.card, .summary-card, .form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: clamp(18px, 3vw, 30px);
}
.card.hover { transition: transform .2s, box-shadow .2s, border-color .2s; }
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.card h3 { margin-top: 0; }
.card-dark { background: var(--night-2); border-color: var(--night-line); color: #E9DFC6; box-shadow: none; }
.card-dark h3 { color: #fff; }
.hex-icon { width: 56px; height: 62px; display: grid; place-items: center; background: var(--ink); color: var(--gold-light); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); margin-bottom: 16px; }
.hex-icon svg { width: 26px; height: 26px; }
.form-card { max-width: 900px; margin-inline: auto; }
.form-card h2 { font-size: 1.35rem; margin-top: 0; }
.summary-card h2, .summary-card h3 { margin-top: 0; }

/* ---------- Produkte ---------- */
.products-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.product-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.product-image { position: relative; display: block; aspect-ratio: 4 / 4.2; background: radial-gradient(circle at 50% 40%, #fff, var(--cream-2)); }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.product-image .badge { position: absolute; top: 14px; right: 14px; }
.product-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; }
.product-body h2, .product-body h3 { font-size: 1.25rem; margin: 0; }
.product-body h2 a, .product-body h3 a { color: var(--ink); text-decoration: none; }
.product-body .meta { font-size: .85rem; color: var(--muted); }
.price { font: 800 1.5rem var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.price small { font: 500 .85rem var(--font-body); color: var(--muted); }
.product-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.product-gallery, .product-detail-image { background: radial-gradient(circle at 50% 40%, #fff, var(--cream-2)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; place-items: center; }
.product-gallery img, .product-detail-image img { max-height: 520px; object-fit: contain; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .product-layout { grid-template-columns: 1fr; } }
.variant-options, .variant-grid, .variant-selector { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-option { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--paper); cursor: pointer; min-width: 120px; }
.variant-option:hover { border-color: var(--gold); }
.variant-option:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); box-shadow: var(--glow); }
.variant-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty input { width: 76px; text-align: center; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 28px; }
.filter-bar > * { flex: 0 1 auto; }
.pill { display: inline-flex; padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-2); font: 600 .88rem var(--font-display); color: var(--ink); text-decoration: none; }
.pill:hover, .pill.active { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font: 700 .74rem/1.3 var(--font-display); letter-spacing: .03em; background: var(--gold-soft); color: var(--gold-deep); border: 1px solid rgba(227,162,26,.35); white-space: nowrap; }
.badge-ok, .badge.new { background: var(--ok-bg); color: var(--ok); border-color: rgba(47,125,59,.3); }
.badge-warn, .badge.low { background: var(--warn-bg); color: var(--warn); border-color: rgba(154,100,0,.3); }
.badge-err { background: var(--err-bg); color: var(--err); border-color: rgba(179,38,30,.3); }
.badge-info { background: var(--info-bg); color: var(--info); border-color: rgba(31,95,153,.3); }
.badge-dark { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.badge-gray { background: #F1EEE6; color: var(--muted); border-color: var(--line); }

/* ---------- Meldungen ---------- */
.notice { padding: 14px 18px; border-radius: var(--r); background: var(--info-bg); border: 1px solid rgba(31,95,153,.25); color: #174A78; margin: 0 0 20px; }
.notice-default { background: var(--cream-2); border-color: var(--line-2); color: var(--ink-2); }
.notice-success, .success { background: var(--ok-bg); border-color: rgba(47,125,59,.3); color: #1F5C29; }
.notice-error, .error { background: var(--err-bg); border-color: rgba(179,38,30,.3); color: #8C1D18; }
.notice-warning { background: var(--warn-bg); border-color: rgba(154,100,0,.3); color: #7A5000; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.notice-mini { padding: 8px 12px; font-size: .875rem; }
.shop-added-notice { margin-top: 20px; }

/* ---------- Formulare ---------- */
label { font: 600 .9rem var(--font-display); color: var(--ink); }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), select, textarea {
  width: 100%; padding: 12px 14px; margin-top: 6px;
  font: 400 1rem var(--font-body); color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-2); border-radius: 12px; transition: border-color .15s, box-shadow .15s;
}
input[type=file] { margin-top: 6px; max-width: 100%; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: var(--glow); }
input::placeholder, textarea::placeholder { color: #A89D86; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--gold); flex: none; margin: 0; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid > h2, .form-grid > h3, .form-grid > hr, .form-grid > .full, .form-grid > .admin-bar, .form-grid > .notice, .form-grid > .check-row, .form-grid > textarea, .form-grid > label.full { grid-column: 1 / -1; }
.form-grid > label { display: block; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.check-row { display: flex; align-items: flex-start; gap: 10px; font: 500 .95rem var(--font-body); color: var(--ink-2); cursor: pointer; }
.field-hint { display: block; margin-top: 4px; font: 400 .82rem var(--font-body); color: var(--muted); }
.inline-form { display: inline; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.newsletter-form, .coupon-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.newsletter-form input, .coupon-form input { margin-top: 0; flex: 1 1 220px; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
table.table, .admin-table, .cart-table, .orders-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.admin-table th, .cart-table th, .orders-table th, .table th { text-align: left; padding: 12px 14px; font: 700 .76rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--cream-2); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.admin-table td, .cart-table td, .orders-table td, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td, .cart-table tr:last-child td, .orders-table tr:last-child td, .table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover, .orders-table tbody tr:hover { background: #FFFCF2; }
.admin-table .num, .table .num { text-align: right; font-variant-numeric: tabular-nums; }
.product-actions-cell, .order-action-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.cart-table img { width: 64px; height: 64px; object-fit: contain; background: var(--cream-2); border-radius: 10px; }

/* ---------- Kennzahlen ---------- */
.stats-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 28px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -18px; top: -18px; width: 64px; height: 70px; background: var(--gold-soft); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.stat .label { font: 600 .8rem var(--font-display); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.stat .value { font: 800 1.9rem var(--font-display); color: var(--ink); letter-spacing: -.02em; line-height: 1.2; }
.stat .hint { font-size: .82rem; color: var(--muted); }
.stat.warn { border-color: rgba(154,100,0,.4); } .stat.warn .value { color: var(--warn); }
.stat.crit { border-color: rgba(179,38,30,.4); } .stat.crit .value { color: var(--err); }

/* ---------- Admin-Leiste (Aktionszeile) ---------- */
.admin-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 24px; }
.admin-login-form { max-width: 440px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; background: var(--night); color: #CFC3A4; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cg fill='none' stroke='%23FFD76A' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M28 2l26 15v30L28 62 2 47V17z'/%3E%3C/g%3E%3C/svg%3E"); background-size: 56px 97px; }
.site-footer .container { position: relative; padding-block: 56px 28px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font: 700 .8rem var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #CFC3A4; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer .wordmark .logic { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; color: #9C906F; }

/* ---------- FAQ / Akkordeon ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 0 22px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 18px 0; font: 700 1.05rem var(--font-display); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--gold-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; margin: 0; color: var(--ink-2); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(16, 13, 8, .92); }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; border-radius: 12px; }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--gold-light); color: var(--ink); font-size: 1.4rem; cursor: pointer; }

/* ---------- Reveal ---------- */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
  .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Rechtstexte ---------- */
.legal-page { max-width: 820px; }
.legal-page h2 { font-size: 1.5rem; margin-top: 2em; }
.legal-page h3 { font-size: 1.1rem; margin-top: 1.5em; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ==========================================================================
   ADMIN-OBERFLÄCHE
   ========================================================================== */
body.is-admin { background: #F6F1E4; }
.admin-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.admin-side { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; background: var(--night); color: #D8CDAF; padding: 20px 14px 28px; display: flex; flex-direction: column; gap: 6px; }
.admin-side .brand { padding: 4px 8px 18px; border-bottom: 1px solid var(--night-line); margin-bottom: 10px; }
.admin-side .brand .wordmark .logic { color: #fff; }
.admin-side .brand small { color: #9C906F; }
.admin-nav-group { margin-top: 12px; }
.admin-nav-group > p { margin: 0 0 4px; padding: 0 12px; font: 700 .7rem var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: #8C8062; }
.admin-side a.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: #E6DBBE; text-decoration: none; font: 600 .93rem var(--font-display); }
.admin-side a.nav-item svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.admin-side a.nav-item:hover { background: rgba(255, 215, 106, .10); color: #fff; }
.admin-side a.nav-item[aria-current="page"] { background: var(--honey); color: var(--ink); }
.admin-side .side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--night-line); font-size: .85rem; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-top { display: flex; align-items: center; gap: 14px; padding: 14px clamp(16px, 3vw, 36px); background: rgba(255, 251, 240, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.admin-top .crumbs { font: 600 .85rem var(--font-display); color: var(--muted); }
.admin-top .crumbs a { color: var(--muted); text-decoration: none; } .admin-top .crumbs a:hover { color: var(--ink); }
.admin-top .spacer { flex: 1; }
.admin-top .menu-btn { display: none; margin-left: 0; width: 42px; height: 42px; }
.admin-content { padding: clamp(18px, 3vw, 36px); width: 100%; max-width: 1400px; }
.admin-content .page-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.admin-content .form-card { margin-inline: 0; max-width: 980px; }
.admin-footer { padding: 18px clamp(16px, 3vw, 36px); font-size: .82rem; color: var(--muted); }
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; }
.subnav a { padding: 8px 16px; border-radius: 999px; font: 600 .9rem var(--font-display); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.subnav a:hover { background: var(--gold-soft); }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--gold-light); }
@media (max-width: 960px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; z-index: 60; left: 0; top: 0; width: 280px; transform: translateX(-102%); transition: transform .25s; box-shadow: var(--shadow-lg); }
  .admin-side.open { transform: none; }
  .admin-top .menu-btn { display: inline-flex; }
}
.admin-backdrop { display: none; position: fixed; inset: 0; z-index: 55; background: rgba(16,13,8,.5); }
.admin-backdrop.open { display: block; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.kv dt { color: var(--muted); font-size: .88rem; } .kv dd { margin: 0; color: var(--ink); font-weight: 600; }
.pre-wrap { white-space: pre-wrap; word-break: break-word; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--cream-2); padding: 2px 6px; border-radius: 6px; }

/* ---------- Druck (Rechnungen) ---------- */
@media print {
  .site-header, .site-footer, .admin-side, .admin-top, .admin-bar, .subnav, .btn, .btn-primary, .btn-secondary { display: none !important; }
  body { background: #fff; }
  .admin-shell { display: block; }
}

@media (max-width: 520px) {
  .brand small { display: none; }
  .brand img { width: 40px; height: 40px; }
  .brand .wordmark { font-size: 1.35rem; }
}

/* Buttons innerhalb der Navigation behalten ihre eigene Farbe */
.nav a.btn-dark { background: var(--ink); color: var(--gold-light); }
.nav a.btn-dark:hover { background: #000; color: #fff; }
.nav a.btn-primary { background: var(--honey); color: var(--ink); }
.nav a.btn-primary:hover { background: var(--honey); color: var(--ink); }
.stat-link, a.stat { text-decoration: none; color: inherit; display: block; }
a.stat:hover { border-color: var(--gold); }
.variant-option:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.thumb { max-width: 96px; max-height: 96px; border-radius: 10px; border: 1px solid var(--line); background: var(--cream-2); object-fit: contain; }
.plain-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.qty-input { width: 76px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }
