/* =============================================================
   ASD-Bewachung Altrip · Online-Produktkatalog
   Tesla/Reolink-Stil · Hell mit dunklem Header/Footer · Anthrazit + Grün
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand */
  --brand:        #33ac63;
  --brand-dark:   #248249;
  --brand-light:  #ebf6ef;

  /* Dark (Anthrazit, nicht hartes Schwarz) */
  --dk-1:         #1a1f23;   /* Hauptheader */
  --dk-2:         #15191c;   /* Topbar / Footer */
  --dk-3:         #232a2f;   /* Submenüs / Karten auf dunkel */
  --dk-line:      rgba(255,255,255,.08);
  --dk-text:      #e7eaed;
  --dk-text-soft: #a4adb4;
  --dk-text-dim:  #6e7782;

  /* Light */
  --bg:           #f6f7f9;
  --surface:      #ffffff;
  --soft:         #eef0f3;
  --line:         #e3e6ea;
  --line-2:       #d3d7dc;
  --text:         #1a1f23;
  --text-soft:    #4a5258;
  --muted:        #7d858d;

  /* Shadow */
  --sh-1: 0 1px 2px rgba(26,31,35,.05);
  --sh-2: 0 4px 14px rgba(26,31,35,.07);
  --sh-3: 0 12px 28px rgba(26,31,35,.10);

  /* Radius (sanft, keine Pills) */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  /* Transition */
  --t-fast: .15s ease;
  --t-base: .25s ease;

  /* Container */
  --maxw: 1200px;
}

* { box-sizing: border-box; }
*::selection { background: var(--brand); color: #fff; }
html, body { margin: 0; padding: 0; }
body {
  font: 15px/1.55 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-dark); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: inherit;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  font-weight: 700;
  color: var(--text);
}
h1 { font-size: 1.65rem; font-weight: 700; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; font-weight: 600; }
p  { margin: 0 0 .8em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.muted { color: var(--muted); }
.small { font-size: .85em; }

/* ===================== TOPBAR ===================== */
.topbar {
  background: var(--dk-2);
  color: var(--dk-text-soft);
  font-size: .78rem;
  padding: 7px 0;
  border-bottom: 1px solid var(--dk-line);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--brand); }
.topbar .tb-left,
.topbar .tb-right { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.topbar span, .topbar a { display: inline-flex; align-items: center; line-height: 1.2; }
.topbar svg.ico {
  width: 13px; height: 13px;
  display: inline-block; margin-right: 6px;
  flex-shrink: 0; color: var(--brand);
}

@media (max-width: 1100px) {
  .topbar .tb-left span:nth-child(3) { display: none; } /* "Auf Wunsch mit Montage" raus */
}
@media (max-width: 900px) {
  .topbar .tb-left { display: none; }
}

/* ===================== HEADER ===================== */
.site-header {
  background: var(--dk-1);
  border-bottom: 1px solid var(--dk-line);
  position: sticky; top: 0; z-index: 100;
  transition: background var(--t-base);
}
.site-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.site-header .container {
  display: flex; align-items: center; gap: 28px;
  min-height: 64px; padding-top: 10px; padding-bottom: 10px;
}
.brand-link {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.brand-link img,
.brand-link svg { height: 36px; width: auto; }
/* Logo automatisch invertieren falls dunkel.
   Body-Klasse 'logo-light' deaktiviert das. */
body:not(.logo-light) .site-header .brand-link img:not([src*="logo-placeholder"]) {
  filter: brightness(0) invert(1);
}

/* Hauptnavigation */
.main-nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 4px;
}
.main-nav > a,
.main-nav > .has-sub > a {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  color: var(--dk-text);
  font-weight: 500; font-size: .9rem;
  text-decoration: none;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.main-nav > a:hover,
.main-nav > .has-sub:hover > a,
.main-nav > a.is-active {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.main-nav > a.is-active { color: var(--brand); }
.main-nav .has-sub { position: relative; }
.main-nav .has-sub > a::after {
  content: ''; display: inline-block;
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 8px; margin-top: -3px;
  transition: transform var(--t-fast);
}
.main-nav .has-sub:hover > a::after { transform: rotate(225deg); margin-top: 2px; }
.main-nav .submenu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 240px;
  background: var(--dk-3);
  border: 1px solid var(--dk-line);
  border-radius: var(--r-md);
  box-shadow: 0 16px 32px rgba(0,0,0,.4);
  padding: 6px;
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: all var(--t-base);
  list-style: none; margin: 0;
}
.main-nav .has-sub:hover .submenu,
.main-nav .has-sub:focus-within .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.main-nav .submenu a {
  display: block; padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--dk-text-soft);
  font-size: .88rem; font-weight: 500;
  text-decoration: none;
}
.main-nav .submenu a:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}

/* Header CTA */
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 10px; }
.btn-wish {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 12px;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: #fff;
  font-weight: 600; font-size: .88rem;
  text-decoration: none;
  transition: background var(--t-fast);
}
.btn-wish:hover {
  background: var(--brand-dark);
  color: #fff;
}
.btn-wish svg { width: 16px; height: 16px; }
.btn-wish .count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: #fff; color: var(--brand-dark);
  border-radius: var(--r-sm);
  font-size: .72rem; font-weight: 700;
}

/* Mobile-Toggle */
.menu-toggle {
  display: none; background: transparent; border: 0;
  padding: 8px; cursor: pointer; margin-left: auto;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block; width: 22px; height: 2px;
  background: #fff; position: relative;
}
.menu-toggle span::before { content: ''; position: absolute; top: -7px; }
.menu-toggle span::after  { content: ''; position: absolute; bottom: -7px; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .header-actions .btn-wish span:not(.count) { display: none; }
  .header-actions .btn-wish { padding: 8px 10px; }
  .main-nav {
    position: fixed; inset: 64px 0 0 0;
    background: var(--dk-1);
    flex-direction: column; align-items: stretch;
    padding: 20px; gap: 4px;
    transform: translateX(100%);
    transition: transform var(--t-base);
    overflow-y: auto; z-index: 90;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav > a,
  .main-nav > .has-sub > a {
    padding: 12px 14px; font-size: 1rem;
    justify-content: space-between;
  }
  .main-nav .submenu {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: 0;
    padding-left: 12px; background: transparent;
    display: none;
  }
  .main-nav .has-sub.is-open .submenu { display: block; }
  .main-nav .has-sub > a::after { transform: rotate(45deg); }
  .main-nav .has-sub.is-open > a::after { transform: rotate(225deg); }
}

/* ===================== PAGE SECTIONS ===================== */
.section { padding: 48px 0; }
.section.tight { padding: 32px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.section-head h2 { margin: 0; font-size: 1.4rem; font-weight: 700; }
.section-head .meta { color: var(--muted); font-size: .88rem; }
.section-head .lead { color: var(--text-soft); margin: 4px 0 0; max-width: 580px; font-size: .95rem; }

/* ===================== KATEGORIE-SHOWCASE ===================== */
.cat-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.cat-card {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  transition: all var(--t-fast);
}
.cat-card:hover {
  border-color: var(--brand);
  background: var(--surface);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--sh-2);
}
.cat-card .cat-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: var(--r-sm);
  flex-shrink: 0;
  transition: all var(--t-fast);
}
.cat-card:hover .cat-icon {
  background: var(--brand);
  color: #fff;
}
.cat-card .cat-icon svg { width: 18px; height: 18px; }
.cat-card .cat-text { display: flex; flex-direction: column; min-width: 0; }
.cat-card .cat-name {
  font-weight: 600;
  font-size: .92rem;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cat-card .cat-count {
  color: var(--muted);
  font-size: .78rem;
}

/* ===================== CATEGORY-CHIPS ===================== */
.category-chips {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 0 0 24px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .85rem; color: var(--text);
  font-weight: 500; text-decoration: none;
  transition: all var(--t-fast);
}
.chip:hover, .chip.is-active {
  background: var(--text); color: #fff; border-color: var(--text);
  text-decoration: none;
}

/* ===================== PRODUKT-GRID (kompakt, Tesla/Reolink) ===================== */
.product-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all var(--t-fast);
}
.product-card:hover {
  border-color: var(--line-2);
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}
.product-card-image {
  position: relative;
  display: block;
  aspect-ratio: 1/1;
  background: var(--surface);
  overflow: hidden;
}
.product-card-image img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform var(--t-base);
}
.product-card:hover .product-card-image img { transform: scale(1.04); }
.product-card-image .image-placeholder {
  display: grid; place-items: center;
  height: 100%; color: var(--muted); font-size: .85rem;
}

/* Kategorie-Badge oben links */
.product-card-cat {
  position: absolute; top: 10px; left: 10px;
  background: rgba(26,31,35,.85);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--r-xs);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase; letter-spacing: .6px;
  z-index: 2;
}

/* Preis-Tag prominent unten rechts */
.product-card-price-tag {
  position: absolute; bottom: 12px; right: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  letter-spacing: -.01em;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(36,130,73,.25);
}

.product-card-body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; flex: 1; gap: 10px;
  border-top: 1px solid var(--line);
}
.product-card-body h3 {
  margin: 0; font-size: .94rem; font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.product-card-body h3 a { color: var(--text); }
.product-card-body h3 a:hover { color: var(--brand-dark); }

.add-form { margin-top: auto; }
.add-form button {
  width: 100%;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font: 600 .82rem 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--t-fast);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.add-form button:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.add-form button svg { width: 14px; height: 14px; }

/* ===================== BUTTONS (generisch) ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  font: 600 .9rem 'Inter', sans-serif;
  cursor: pointer; text-decoration: none;
  transition: all var(--t-fast);
  background: var(--surface);
  color: var(--text);
  white-space: nowrap;
}
.btn:hover { border-color: var(--text); color: var(--text); text-decoration: none; }
.btn-primary {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-dark); color: #fff; border-color: var(--brand-dark);
}
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--soft); }
.btn-dark { background: var(--text); color: #fff; border-color: var(--text); }
.btn-dark:hover { background: #000; color: #fff; }
.btn-small { padding: 7px 12px; font-size: .82rem; }
.link-btn {
  background: transparent; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--brand-dark);
}
.link-btn:hover { color: var(--brand); text-decoration: underline; }
.link-btn.danger { color: #c62828; }

/* ===================== PRODUKTDETAIL ===================== */
.breadcrumb {
  display: flex; gap: 8px; color: var(--muted); font-size: .85rem;
  margin: 20px 0 24px; padding-top: 20px;
}
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--brand-dark); }
.breadcrumb-sep { color: var(--line-2); }

.product-detail {
  display: grid; gap: 40px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
.product-gallery {
  background: var(--soft);
  border-radius: var(--r-md);
  padding: 20px;
  position: sticky; top: 90px;
}
.product-gallery .main-img-wrap {
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 24px;
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
}
.product-gallery .main-img-wrap img { max-height: 100%; width: auto; object-fit: contain; }
.thumb-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.thumb-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: var(--r-sm);
  width: 64px; height: 64px;
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.thumb-btn:hover, .thumb-btn.is-active { border-color: var(--brand); border-width: 2px; }
.thumb-btn img { object-fit: contain; width: 100%; height: 100%; }

.product-info .product-category {
  display: inline-block;
  padding: 3px 10px;
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: var(--r-xs);
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .6px;
  margin-bottom: 14px;
}
.product-info h1 { font-size: 1.5rem; margin-bottom: 10px; font-weight: 700; }
.product-info .lead {
  color: var(--text-soft);
  font-size: 1rem; margin-bottom: 20px;
}
.price-big {
  font-size: 1.8rem; font-weight: 700;
  color: var(--text);
  margin: 18px 0 14px;
  letter-spacing: -.02em;
}
.add-form-big {
  display: flex; gap: 10px; align-items: center;
  background: var(--soft);
  padding: 14px;
  border-radius: var(--r-md);
  margin-bottom: 28px;
}
.add-form-big .qty { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.add-form-big .qty input {
  width: 70px; padding: 9px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  text-align: center; font: inherit;
}
.add-form-big .btn { flex: 1; padding: 10px 18px; }
.description {
  border-top: 1px solid var(--line);
  padding-top: 24px; margin-top: 24px;
}
.description h2 { font-size: 1.1rem; margin-bottom: 12px; }
.description p { color: var(--text-soft); }

@media (max-width: 880px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
}

/* ===================== TABELLEN ===================== */
.table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--sh-1); margin-top: 12px;
}
.table th, .table td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.table th {
  background: var(--soft); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .4px;
  color: var(--text-soft);
}
.table tr:last-child td { border-bottom: 0; }
.table .thumb { width: 56px; height: 56px; object-fit: contain; background: var(--soft); border-radius: var(--r-sm); }
.row-actions { white-space: nowrap; display: flex; gap: 12px; align-items: center; }
.row-actions form { display: inline; margin: 0; }

/* ===================== FORMS ===================== */
form label {
  display: block; margin-bottom: 14px; font-weight: 500;
  color: var(--text); font-size: .88rem;
}
form input[type=text], form input[type=email], form input[type=password],
form input[type=number], form input[type=search], form input[type=file],
form select, form textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font: inherit; background: var(--surface);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
form input:focus, form select:focus, form textarea:focus {
  outline: 0; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(51,172,99,.12);
}
form textarea { resize: vertical; min-height: 90px; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
label.check input { width: auto; margin: 0; }
.form-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* ===================== CARDS ===================== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--sh-1);
  margin-bottom: 20px;
  overflow: hidden;
}
.card h2 { margin-top: 0; font-size: 1.15rem; }
.two-col { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.two-col > * { min-width: 0; }
.card .table-wrap { margin: 0 -24px -24px; overflow-x: auto; }
.card .table-wrap .table { border-radius: 0; border: 0; border-top: 1px solid var(--line); }
.page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; padding-top: 20px; }
.page-head h1 { margin: 0; }

/* ===================== FLASH ===================== */
.flash {
  padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 18px;
  border: 1px solid; font-size: .9rem;
  display: flex; align-items: center; gap: 10px;
}
.flash::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: currentColor;
}
.flash-success { background: var(--brand-light); color: var(--brand-dark); border-color: rgba(51,172,99,.25); }
.flash-error   { background: #fdecea; color: #b71c1c; border-color: #f5c6c2; }

/* ===================== BADGES ===================== */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border-radius: var(--r-xs);
  font-size: .72rem; font-weight: 600;
}
.badge-success { background: var(--brand-light); color: var(--brand-dark); }
.badge-muted   { background: #eceff1; color: #455a64; }
.badge-accent  { background: var(--brand); color: #fff; }
.badge-neu     { background: #fff3cd; color: #7a5900; }
.badge-in_bearbeitung { background: #d6e9f8; color: #0a3c66; }
.badge-erledigt { background: var(--brand-light); color: var(--brand-dark); }
.badge-abgelehnt { background: #f5c6c2; color: #b71c1c; }

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--dk-2);
  color: var(--dk-text-soft);
  padding: 56px 0 24px;
  margin-top: 64px;
}
.site-footer > .container > .grid {
  display: grid; gap: 36px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
@media (max-width: 880px) { .site-footer > .container > .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .site-footer > .container > .grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: #fff; font-size: .82rem;
  text-transform: uppercase; letter-spacing: 1.2px;
  margin-bottom: 16px; font-weight: 700;
}
.site-footer a { color: var(--dk-text-soft); font-size: .9rem; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer .brand-block img { height: 40px; margin-bottom: 16px; }
.site-footer .brand-block img:not([src*="logo-placeholder"]) {
  filter: brightness(0) invert(1);
}
.site-footer .brand-block p { color: var(--dk-text-soft); line-height: 1.65; font-size: .9rem; }
.contact-line { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; color: #fff; font-size: .9rem; }
.contact-line svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--brand); }

/* Trust-Row im Footer */
.footer-trust {
  display: flex; gap: 28px; flex-wrap: wrap;
  padding: 22px 0;
  margin: 36px 0 0;
  border-top: 1px solid var(--dk-line);
  border-bottom: 1px solid var(--dk-line);
}
.footer-trust-item {
  display: flex; align-items: center; gap: 10px;
  color: var(--dk-text-soft);
  font-size: .82rem;
}
.footer-trust-item svg {
  width: 18px; height: 18px;
  color: var(--brand);
  flex-shrink: 0;
}
.footer-trust-item strong { color: #fff; font-weight: 600; }

.site-footer-bottom {
  margin-top: 20px;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  color: rgba(255,255,255,.35);
  font-size: .8rem;
}

/* ===================== LOGIN ===================== */
body.login {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  background: var(--dk-1);
  padding: 20px;
}
.login-box {
  background: var(--surface); padding: 36px; border-radius: var(--r-md);
  width: 100%; max-width: 400px; box-shadow: var(--sh-3);
}
.login-box .login-logo { text-align: center; margin-bottom: 22px; }
.login-box .login-logo svg,
.login-box .login-logo img { height: 48px; margin: 0 auto; }
.login-box h1 { font-size: 1.4rem; text-align: center; margin-bottom: 6px; }
.login-box .muted { text-align: center; color: var(--muted); margin-bottom: 22px; }

/* ===================== WUNSCHLISTE ===================== */
.wishlist th, .wishlist td { vertical-align: middle; }
.qty-form { display: flex; gap: 6px; align-items: center; }
.qty-form input { width: 70px; padding: 8px; text-align: center; }
.wishlist-actions {
  display: flex; gap: 12px; justify-content: flex-end;
  margin-top: 24px; flex-wrap: wrap;
}
.wishlist-actions form { margin: 0; }
.inquiry-list { list-style: none; padding: 0; margin: 0 0 16px; }
.inquiry-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.inquiry-list li:last-child { border-bottom: 0; }

/* ===================== ADMIN ===================== */
body.admin { background: var(--soft); }
.admin-header {
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-1); padding: 12px 0; position: sticky; top: 0; z-index: 50;
}
.admin-header .container { display: flex; align-items: center; gap: 24px; }
.admin-header .brand-link img { height: 36px; }
.admin-nav { display: flex; gap: 6px; }
.admin-nav a {
  color: var(--text); padding: 8px 12px; border-radius: var(--r-sm);
  font-size: .88rem; font-weight: 500;
}
.admin-nav a:hover, .admin-nav a.is-active {
  background: var(--brand-light); color: var(--brand-dark);
}
.admin-user { margin-left: auto; color: var(--text-soft); font-size: .85rem; display: flex; gap: 12px; align-items: center; }
.admin-main { padding: 28px 0 70px; }

.kpi-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 20px 0 28px;
}
.kpi {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.kpi-num { font-size: 2rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.kpi span:last-child { color: var(--text-soft); font-size: .88rem; }
.kpi-accent { border-color: var(--brand); }
.kpi-accent .kpi-num { color: var(--brand-dark); }

.quick-links { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: var(--surface);
  padding: 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  margin: 18px 0;
}
.filter-bar input, .filter-bar select {
  width: auto; flex: 0 0 auto; margin: 0;
  padding: 8px 12px;
}

.image-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  margin: 12px 0;
}
.image-grid figure {
  margin: 0; background: var(--soft);
  border-radius: var(--r-sm); padding: 8px;
  border: 1px solid var(--line);
}
.image-grid img {
  width: 100%; aspect-ratio: 1/1;
  object-fit: contain; background: var(--surface);
  border-radius: var(--r-xs);
}
.image-grid figcaption {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; font-size: .82rem;
}
.image-grid .danger { color: #c62828; }
.image-grid .danger:hover { text-decoration: underline; }

.form-grid {
  display: grid; gap: 20px;
  grid-template-columns: 2fr 1fr;
}
@media (max-width: 880px) { .form-grid { grid-template-columns: 1fr; } }

/* ===================== COOKIE-CONSENT ===================== */
.cookie-consent {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  max-width: 520px;
  background: var(--dk-1);
  color: var(--dk-text);
  border: 1px solid var(--dk-line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  z-index: 1000;
  font-size: .88rem;
  line-height: 1.55;
  transform: translateY(120%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.cookie-consent.is-visible { transform: translateY(0); opacity: 1; }
.cookie-consent h4 {
  color: #fff; font-size: 1rem; margin: 0 0 6px;
  font-weight: 700;
}
.cookie-consent p { margin: 0 0 14px; color: var(--dk-text-soft); }
.cookie-consent a { color: var(--brand); text-decoration: underline; }
.cookie-consent a:hover { color: var(--brand); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-actions button {
  padding: 9px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--dk-line);
  background: transparent;
  color: var(--dk-text);
  font: 600 .85rem 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--t-fast);
}
.cookie-actions button:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}
.cookie-actions .cookie-accept {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.cookie-actions .cookie-accept:hover {
  background: var(--brand-dark); border-color: var(--brand-dark); color: #fff;
}
@media (max-width: 560px) {
  .cookie-consent { left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; }
}

/* ===================== ADMIN · LIZENZ / PAKETE ===================== */
.license-section { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.license-head { text-align: center; margin-bottom: 28px; }
.license-head h2 { margin: 0 0 8px; font-size: 1.5rem; }
.license-head .muted { margin: 0; font-size: .92rem; }

.plans {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 32px;
}
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex; flex-direction: column;
  transition: all var(--t-base);
}
.plan:hover { box-shadow: var(--sh-2); }
.plan.plan-popular {
  border-color: var(--brand);
  box-shadow: 0 4px 24px rgba(51,172,99,.12);
}
.plan.plan-popular::before {
  content: ''; position: absolute;
  inset: -1px;
  border-radius: var(--r-md);
  padding: 2px;
  background: linear-gradient(180deg, var(--brand), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.plan.plan-current { background: linear-gradient(180deg, #fff, var(--brand-light)); }
.plan.plan-premium {
  background: linear-gradient(180deg, var(--dk-1), var(--dk-2));
  border-color: var(--dk-3);
  color: var(--dk-text);
}
.plan.plan-premium h3,
.plan.plan-premium .plan-price .amount { color: #fff; }
.plan.plan-premium .plan-sub,
.plan.plan-premium .plan-features li { color: var(--dk-text-soft); }
.plan.plan-premium .plan-features li strong { color: #fff; }
.plan.plan-premium .plan-feat-all { color: var(--brand); }

.plan-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--soft); color: var(--text-soft);
  border-radius: var(--r-xs);
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 14px;
}
.plan-tag-pop { background: var(--brand); color: #fff; }
.plan-tag-prem { background: var(--brand); color: #fff; }
.plan.plan-premium .plan-tag-prem { background: var(--brand); color: #fff; }

.plan h3 {
  font-size: 1.4rem; margin: 0 0 12px; font-weight: 800;
  letter-spacing: -.02em;
}
.plan-price {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 6px;
}
.plan-price .amount {
  font-size: 2.2rem; font-weight: 800; color: var(--text);
  letter-spacing: -.03em;
}
.plan-price .per { color: var(--muted); font-size: .9rem; }
.plan-sub { color: var(--text-soft); font-size: .88rem; margin: 6px 0 16px; min-height: 2.5em; }

.plan-features {
  list-style: none; padding: 0; margin: 0 0 22px;
  flex: 1;
}
.plan-features li {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 6px 0;
  font-size: .88rem; color: var(--text-soft);
  line-height: 1.45;
}
.plan-features li::before {
  content: ''; flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333ac63' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: contain; background-repeat: no-repeat;
}
.plan.plan-premium .plan-features li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344c976' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}
.plan-features li.plan-feat-all {
  color: var(--brand-dark); font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.plan-features li.plan-feat-all::before { display: none; }
.plan.plan-premium .plan-features li.plan-feat-all { border-color: var(--dk-line); }

.plan-cta {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: 600 .92rem 'Inter', sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t-fast);
}
.plan-cta-upgrade {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.plan-cta-upgrade:hover {
  background: var(--brand-dark); color: #fff; border-color: var(--brand-dark);
  text-decoration: none;
}
.plan.plan-premium .plan-cta-upgrade { background: var(--brand); border-color: var(--brand); }
.plan-cta-current {
  background: var(--soft); color: var(--text-soft);
  cursor: default;
  border: 1px dashed var(--line-2);
}

/* Aktivierungs-Eingabe */
.license-activate {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px;
}
.license-activate form { margin: 0; }
.license-activate label {
  display: block; margin: 0 0 10px;
  font-weight: 700; font-size: .95rem;
  color: var(--text);
}
.license-input-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  max-width: 640px;
}
.license-input-row input {
  flex: 1; min-width: 240px;
  padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font: inherit; font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: .92rem; letter-spacing: 1px;
  margin: 0;
}
.license-input-row input:focus {
  outline: 0; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(51,172,99,.15);
}
.license-input-row .btn { flex-shrink: 0; padding: 11px 22px; margin: 0; }
.license-demo-note {
  margin: 14px 0 0;
  padding: 10px 14px;
  background: #fff8e1;
  border-left: 3px solid #f5a623;
  border-radius: var(--r-xs);
  color: #5a3e00;
  font-size: .85rem;
}
.license-demo-note strong { color: #3e2a00; }

/* ===================== PROSE / WYSIWYG ===================== */
.prose {
  max-width: 760px;
  color: var(--text); line-height: 1.7;
}
.prose h2 { font-size: 1.3rem; margin: 1.8em 0 .5em; font-weight: 700; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 1.4em 0 .4em; font-weight: 600; }
.prose p  { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.prose li { padding: 2px 0; }
.prose a { color: var(--brand-dark); text-decoration: underline; }
.prose a:hover { color: var(--brand); }
.prose strong { font-weight: 700; color: var(--text); }
.prose blockquote {
  margin: 1.3em 0; padding: 14px 20px;
  border-left: 3px solid var(--brand);
  background: var(--brand-light);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--text-soft);
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.8em 0; }
.prose img { border-radius: var(--r-sm); margin: 1.1em 0; }
.prose code { background: var(--soft); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.content-page { max-width: 820px; margin: 0 auto; padding-top: 20px; }

/* Quill overrides */
.ql-toolbar.ql-snow { border-radius: var(--r-sm) var(--r-sm) 0 0; border-color: var(--line); background: var(--soft); }
.ql-container.ql-snow { border-radius: 0 0 var(--r-sm) var(--r-sm); border-color: var(--line); }
.ql-editor { min-height: 200px; font-family: 'Inter', sans-serif; font-size: .92rem; line-height: 1.6; }
