/* ====================================
   Produktaggregationsplattform - Design System
   Portal-spezifische Farben werden via inline <style> in header.php gesetzt
   ==================================== */

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #dbeafe;
  --color-secondary: #0f172a;
  --color-accent: #f59e0b;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #3b82f6;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-text-muted: #94a3b8;
  --color-placeholder-bg: #f1f5f9;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --max-width: 1700px;
  --header-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; overflow-x: clip; height: 100%; }
body { overflow-x: clip; min-height: 100%; display: flex; flex-direction: column; }

img[loading="lazy"] { content-visibility: auto; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--color-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

#main { padding-bottom: 2rem; flex: 1 0 auto; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; width: 100%; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* Layout order: Filter oben auf Mobil */
.layout-with-sidebar { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: start; }
.layout-with-sidebar > * { min-width: 0; }
.layout-with-sidebar .filter-sidebar-wrapper,
.layout-with-sidebar .filter-sidebar { order: 1; }
.layout-with-sidebar #category-results-container,
.layout-with-sidebar #angebote-results-container,
.layout-with-sidebar .grid.grid-4 { order: 2; }

.flex { display: flex; }
.flex-center { align-items: center; }
.flex-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

h1 { font-size: 1.875rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.5rem; }
h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.25rem; }
h4 { font-size: 1.125rem; font-weight: 600; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--color-text-light); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }

/* Info-Icon mit Tooltip - sofort beim Hover, websiteweit */
.info-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  height: 1.25em;
  margin-left: 0.35em;
  font-size: 1.1em;
  color: var(--color-text-muted);
  cursor: help;
  vertical-align: middle;
  position: relative;
}
.info-tooltip:hover {
  color: var(--color-info);
}
.info-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0.75rem;
  background: var(--color-secondary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
  max-width: 280px;
  min-width: 160px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10000;
  transition: opacity 0.05s ease, visibility 0.05s ease;
}
.info-tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}
.info-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: var(--color-secondary);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10001;
  transition: opacity 0.05s ease, visibility 0.05s ease;
}
.info-tooltip:hover::before {
  opacity: 1;
  visibility: visible;
}

/* PORTAL HEADER */
/* Header oberhalb Mega-Menu (z-1200) + Category-Bar (z-300), damit beim Scrollen nichts ueberlagert. */
.header {
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-primary);
  position: sticky; top: 0; z-index: 1300;
  height: var(--header-height);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.header-logo { font-size: 1.25rem; font-weight: 800; color: var(--color-primary); letter-spacing: -0.025em; display: flex; align-items: center; }
.header-logo span { color: var(--color-secondary); }
.header-logo img { max-height: 38px; width: auto; display: block; }
.header-logo-img { height: 38px; width: auto; max-height: 38px; display: block; }
.header-search { flex: 1; max-width: 480px; margin: 0 1.5rem; position: relative; }
.header-search input {
  width: 100%; padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  font-size: 0.875rem; background: var(--color-bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.header-search input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-light); }
.header-search .search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--color-text-muted); font-size: 0.875rem; }
.header-nav { display: flex; align-items: center; gap: 1.5rem; }
.header-nav a { font-size: 0.875rem; color: var(--color-text); font-weight: 500; white-space: nowrap; }
.header-nav a:hover { color: var(--color-text); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--color-text); padding: 0.25rem; }

/* MOBILE MENU OVERLAY */
.mobile-menu-overlay {
  position: fixed; inset: 0; z-index: 1000;
  visibility: hidden; opacity: 0; transition: visibility 0.25s, opacity 0.25s;
  pointer-events: none;
}
.mobile-menu-overlay.is-open {
  visibility: visible; opacity: 1; pointer-events: auto;
}
.mobile-menu-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
}
.mobile-menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--color-surface);
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.25s ease-out;
  overflow: hidden;
}
.mobile-menu-overlay.is-open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.mobile-menu-title { font-size: 1.125rem; font-weight: 700; margin: 0; }
.mobile-menu-close {
  background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: var(--color-text-light);
  padding: 0.25rem; line-height: 1;
}
.mobile-menu-close:hover { color: var(--color-primary); }
.mobile-menu-content {
  flex: 1; overflow-y: auto; padding: 1rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.mobile-menu-item {
  display: block; padding: 0.75rem 0;
  font-size: 1rem; font-weight: 500; color: var(--color-text);
  border-bottom: 1px solid transparent;
  transition: color 0.15s, background 0.15s;
}
.mobile-menu-item:hover { color: var(--color-primary); background: var(--color-primary-light); }
.mobile-menu-item-angebote { color: #dc2626; font-weight: 600; }
.mobile-menu-item-angebote:hover { color: #b91c1c; }
.mobile-menu-cat { margin: 0; }
.mobile-menu-cat-header {
  display: flex;
  align-items: center;
}
.mobile-menu-cat-main { font-weight: 600; }
.mobile-menu-cat-toggle {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.5rem 0.25rem 0.5rem 0.5rem;
  line-height: 1;
}
.mobile-menu-cat-toggle span {
  display: inline-block;
  transition: transform 0.15s;
}
.mobile-menu-cat.is-expanded .mobile-menu-cat-toggle span {
  transform: rotate(90deg);
}
.mobile-menu-subs {
  display: flex; flex-direction: column; gap: 0;
  padding-left: 1rem; margin-bottom: 0.5rem;
  border-left: 2px solid var(--color-primary-light);
}
.mobile-menu-cat.has-subs .mobile-menu-subs { display: none; }
.mobile-menu-cat.is-expanded .mobile-menu-subs { display: flex; }
.mobile-menu-sub {
  padding: 0.5rem 0; font-size: 0.9375rem;
  color: var(--color-text-light); font-weight: 400;
}
.mobile-menu-sub:hover { color: var(--color-primary); }
.mobile-menu-divider { height: 1px; background: var(--color-border); margin: 0.5rem 0; }

/* CATEGORY BAR */
.category-bar {
  background: var(--color-primary-light);
  position: relative;
  z-index: 300;
  display: flex;
  align-items: stretch;
}
.category-bar-scroll {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  touch-action: pan-y;
  mask-image: linear-gradient(to right, black 0%, black calc(100% - 40px), rgba(0,0,0,0.4) 100%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black calc(100% - 40px), rgba(0,0,0,0.4) 100%);
}
.category-bar-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-behavior: auto;
}
.category-bar-scroll::-webkit-scrollbar { display: none; }
.category-bar .container { display: flex; gap: 0; align-items: stretch; flex-shrink: 0; width: max-content; max-width: none; }
.category-bar-prev,
.category-bar-next {
  display: none;
  flex-shrink: 0;
  width: 40px;
  background: var(--color-surface);
  border: none;
  border-left: 1px solid var(--color-border);
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color-text-light);
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.category-bar-prev { border-left: none; border-right: 1px solid var(--color-border); }
.category-bar-prev:hover,
.category-bar-next:hover { background: var(--color-bg); color: var(--color-text); }
.category-bar-prev:disabled,
.category-bar-next:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.category-bar a {
  display: inline-flex; align-items: center;
  padding: 0.65625rem 1rem; font-size: 0.875rem;
  color: var(--color-text); font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.category-bar .mega-menu-wrapper:first-child > a,
.category-bar .mega-menu-wrapper:first-child > button { padding-left: 0; }
.category-bar-burger-standalone {
  flex-shrink: 0;
  border-right: 1px solid var(--color-border);
  background: var(--color-surface);
}
.category-bar a:hover, .category-bar a.active { color: var(--color-text); border-bottom-color: var(--color-text-light); background: var(--color-bg); }
.category-bar .mega-trigger-angebote { color: #dc2626; font-weight: 600; }
.category-bar .mega-trigger-angebote:hover, .category-bar .mega-trigger-angebote.active { color: #b91c1c; background: transparent; border-bottom-color: transparent; }
.mega-trigger-icon { margin-right: 0.35em; font-weight: 700; font-size: 1.05em; }
.mega-trigger-burger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65625rem 1rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.category-bar-burger-standalone .mega-trigger-burger {
  padding-left: 1rem;
  padding-right: 1rem;
}
.mega-trigger-burger:hover,
.mega-menu-wrapper-split.is-open .mega-trigger-burger {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: var(--color-primary-light);
}
.mega-trigger-burger-icon {
  font-size: 1.125rem;
  line-height: 1;
}

/* MEGA MENU */
.mega-menu-wrapper { position: relative; display: inline-flex; align-items: stretch; }
.mega-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg); z-index: 150;
  min-width: 720px; max-width: min(720px, calc(100vw - 2rem)); padding: 1.5rem;
}
.mega-menu-wrapper.is-open .mega-menu { display: block; }
.mega-menu-wrapper:hover .mega-menu { display: block; }
.mega-menu-wrapper-split:hover .mega-menu { display: none; }
.mega-menu-wrapper-split.is-open .mega-menu { display: block; }
.mega-menu-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
.mega-menu-all-inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; min-width: 900px; }
.mega-menu-cat-group { margin-bottom: 0.5rem; }
.mega-menu-cat-group > a:first-child { font-weight: 600; }
.mega-menu-cat-group a.sub { font-size: 0.75rem; color: var(--color-text-light); padding-left: 0.5rem; }
.mega-menu-articles a { display: block; font-size: 0.8125rem; padding: 0.25rem 0; }
.mega-menu-partner-logo-img { padding: 4px; }
.mega-menu-partner-logo-img img { width: 100%; height: 100%; object-fit: contain; }
.mega-menu .mega-menu-col-title { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); margin-bottom: 0.75rem; }
.mega-menu-categories a { display: block; font-size: 0.8125rem; color: var(--color-text); padding: 0.25rem 0; transition: color 0.15s; white-space: normal; }
.mega-menu-categories a:hover { color: var(--color-primary); }
.mega-menu-partner { display: flex; align-items: center; gap: 0.625rem; padding: 0.375rem 0; color: var(--color-text); font-size: 0.8125rem; transition: color 0.15s; }
.mega-menu-partner:hover { color: var(--color-primary); }
.mega-menu-partner-logo {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-placeholder-bg); border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.5rem; font-weight: 700; color: var(--color-primary);
  flex-shrink: 0;
}
.mega-menu-product { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; color: var(--color-text); font-size: 0.8125rem; transition: color 0.15s; }
.mega-menu-product:hover { color: var(--color-primary); }
.mega-menu-product-img {
  width: 48px; height: 48px; background: var(--color-placeholder-bg);
  border-radius: var(--radius); border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.5rem; color: var(--color-text-muted); flex-shrink: 0;
  overflow: hidden;
}
.mega-menu-product-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.mega-menu-product strong { display: block; font-size: 0.8125rem; font-weight: 600; }
.mega-menu-product span { font-size: 0.75rem; color: var(--color-primary); font-weight: 700; }

.mega-menu-split {
  min-width: 760px;
  max-width: min(920px, calc(100vw - 2rem));
  padding: 0;
  overflow: hidden;
  z-index: 1200;
}
.mega-menu-split-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  min-height: 360px;
}
.mega-menu-split-left {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-border);
  background: var(--color-bg);
  padding: 0.5rem 0;
}
.mega-menu-split-empty {
  padding: 0.75rem 1rem;
}
.mega-menu-split-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  border: none;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--color-text);
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1rem 0.75rem 0.875rem;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.mega-menu-split-cat:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}
.mega-menu-split-cat.is-active {
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-left-color: var(--color-primary);
}
.mega-menu-split-cat-arrow {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  flex-shrink: 0;
}
.mega-menu-split-right {
  padding: 1rem 1.25rem;
}
.mega-menu-split-subcats {
  display: none;
}
.mega-menu-split-subcats.is-active {
  display: block;
}
.mega-menu-split-subcat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.mega-menu-split-subcat-list a {
  display: block;
  padding: 0.375rem 0;
  font-size: 0.8125rem;
  color: var(--color-text);
}
.mega-menu-split-subcat-list a:hover {
  color: var(--color-primary);
}
.mega-menu-split-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
}
.mega-menu-split-all:hover {
  color: var(--color-primary-dark);
}
/* FOOTER */
.footer { background: var(--color-secondary); color: #cbd5e1; padding: 3rem 0 1.5rem; margin-top: auto; flex-shrink: 0; }
.footer-logo { display: block; margin: 0 auto 2rem; width: fit-content; }
.footer-logo img { height: 38px; width: auto; opacity: 0.95; transition: opacity 0.15s; }
.footer-logo:hover img { opacity: 1; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 2rem; margin-left: auto; margin-right: auto; width: max-content; }
.footer-grid > div { text-align: center; }
.footer h2 { color: #fff; margin-bottom: 1rem; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer a { color: #94a3b8; font-size: 0.8125rem; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: #64748b; }

/* BREADCRUMB */
.breadcrumb { display: flex; align-items: center; gap: 0.375rem; padding: 1rem 0; font-size: 0.8125rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--color-text-light); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { color: var(--color-text-muted); }
.breadcrumb .current { color: var(--color-text); font-weight: 500; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.5rem 1.25rem; font-size: 0.875rem; font-weight: 600; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: all 0.15s; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-secondary { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border); }
.btn-secondary:hover { background: var(--color-bg); }
.btn-success { background: var(--color-success); color: #fff; border-color: var(--color-success); }
.btn-success:hover { background: #059669; color: #fff; }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* CARDS */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 1rem; }
.card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
}
.card-img .card-img-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.card-img .card-img-primary {
  transition: opacity 0.2s ease;
}
@media (min-width: 1025px) {
  .product-card.has-hover-image:hover .card-img-primary { opacity: 0; }
  .product-card.has-hover-image:hover .card-img-hover { opacity: 1; }
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card .card-img { aspect-ratio: 1; flex-shrink: 0; }
.product-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.product-card .product-brand {
  font-size: 0.75rem; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.03em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
  text-align: center; display: block;
}
.product-card .product-title {
  font-size: 0.875rem; font-weight: 500; margin: 0.25rem 0; color: var(--color-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis; min-height: 0;
}
.product-card .product-price { font-size: 1.125rem; font-weight: 700; color: var(--color-primary); margin-top: auto; flex-shrink: 0; }
.product-card .product-price .from { font-size: 0.75rem; font-weight: 400; color: var(--color-text-light); }
.product-card .product-offers { font-size: 0.75rem; color: var(--color-text-light); margin-top: 0.25rem; flex-shrink: 0; }
.badge-sponsored { position: absolute; top: 2.75rem; right: 0.5rem; z-index: 2; background: var(--color-accent); color: #fff; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 4px; letter-spacing: 0.05em; }

.wishlist-toggle {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 3;
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  transition: color 0.15s, background 0.15s;
  padding: 0;
}
.wishlist-toggle:hover { background: #fff; color: #ef4444; }
.wishlist-toggle.is-active { color: #ef4444; }
.wishlist-toggle.is-active svg { fill: #ef4444; }

.wishlist-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  position: relative;
  top: -6px;
  margin-left: -4px;
}

.product-card-sm { max-width: 180px; }
.product-card-sm .card-img { aspect-ratio: 1; }
.product-card-sm .product-title { font-size: 0.8125rem; -webkit-line-clamp: 2; }
.product-card-sm .product-price { font-size: 0.9375rem; }

.recently-viewed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.badge-discount { position: absolute; top: 0.5rem; left: 0.5rem; z-index: 2; background: var(--color-success); color: #fff; font-size: 0.6875rem; font-weight: 600; padding: 0.25rem 0.5rem; border-radius: 4px; }
.badge-price-rise { position: absolute; top: 0.5rem; left: 0.5rem; z-index: 2; background: #dc2626; color: #fff; font-size: 0.6875rem; font-weight: 600; padding: 0.25rem 0.5rem; border-radius: 4px; }

/* HERO SLIDER */
.hero-slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%); color: #fff; min-height: 320px; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide-with-img { min-height: 320px; }
.hero-slider .slide-content { padding: 3rem; max-width: 560px; position: relative; z-index: 2; }
.hero-slider h2 { font-size: 2rem; color: #fff; margin-bottom: 0.75rem; }
.hero-slider p { font-size: 1.0625rem; color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.hero-slider .btn { background: #fff; color: var(--color-primary); border: none; }
.hero-slider .btn:hover { background: #f0f0f0; color: var(--color-primary-dark); }
.slider-dots { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 10; }
.slider-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.2s; }
.slider-dots span:hover { background: rgba(255,255,255,0.7); }
.slider-dots span.active { background: #fff; width: 24px; border-radius: 4px; }

/* HERO CATEGORY TILES */
.hero-categories-section { padding: 1.5rem 0 0.5rem; position: relative; }
.hero-categories {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0;
  justify-content: flex-start;
}
@media (min-width: 1025px) {
  .hero-categories { justify-content: center; }
}
@media (max-width: 1024px) {
  .hero-categories { justify-content: flex-start; }
}
.hero-categories::-webkit-scrollbar { display: none; }
.hero-category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.hero-category-tile:hover { transform: translateY(-3px); color: var(--color-text); }
.hero-category-tile-angebote .hero-category-img {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}
.hero-category-tile-angebote:hover .hero-category-img {
  border-color: #b91c1c;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}
.hero-category-tile-angebote .hero-category-icon { font-size: 1.5rem; font-weight: 700; color: #dc2626; }
.hero-category-img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-category-tile:hover .hero-category-img {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.hero-category-img img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: #fff;
}
.hero-category-icon { font-size: 2rem; }
.hero-category-name {
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  max-width: 140px;
  text-wrap: balance;
  word-break: break-word;
}

/* FILTER */
.filter-sidebar { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.25rem; position: sticky; top: calc(var(--header-height) + 1rem); transition: max-height 0.3s ease, opacity 0.25s ease; }
.filter-group { margin-bottom: 1.25rem; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group h4 { font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-text-light); }
.filter-group h2 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.25rem; }
.filter-min-discount-desc { white-space: nowrap; }
.filter-group label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; padding: 0.25rem 0; cursor: pointer; }
.filter-group input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--color-primary); }
.filter-group .count { color: var(--color-text-muted); font-size: 0.75rem; margin-left: auto; }
.filter-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0 0 0.5rem;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-light);
}

.filter-group-chevron {
  font-size: 0.625rem;
  transition: transform 0.2s;
}

.filter-group.is-collapsible:not(.is-expanded) .filter-group-chevron {
  transform: rotate(-90deg);
}

.filter-group-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-group-search {
  margin-bottom: 0.5rem;
}

.filter-group-search .filter-search-input {
  width: 100%;
  padding: 0.375rem 0.5rem;
  font-size: 0.8125rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.filter-group-body [data-filter-search-list] {
  max-height: 8.9rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-group-body [data-filter-search-list]::-webkit-scrollbar { display: none; }

.filter-brand-list { gap: 0.125rem; }
.filter-brand-label { cursor: pointer; transition: background 0.15s; padding: 0.25rem 0; border-radius: var(--radius); display: flex; align-items: center; gap: 0.5rem; }
.filter-brand-label:hover { background: var(--color-primary-light); }
.filter-brand-name { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Editorial blocks */
.editorial-card { display: flex; gap: 1.5rem; align-items: center; padding: 1.5rem; background: var(--color-surface); border-radius: var(--radius-lg); text-decoration: none; color: inherit; transition: box-shadow 0.2s; }
.editorial-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.editorial-image { width: 200px; height: 120px; object-fit: cover; border-radius: var(--radius-md); flex-shrink: 0; }
.editorial-content { flex: 1; }
.editorial-content h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.editorial-content p { color: var(--color-text-muted); font-size: 0.9375rem; margin-bottom: 0.75rem; }
.price-range { display: flex; gap: 0.5rem; align-items: center; }
.price-range input { width: 100%; padding: 0.375rem 0.5rem; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 0.8125rem; }
.price-range span { color: var(--color-text-muted); font-size: 0.8125rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.filter-tag { display: inline-flex; align-items: center; gap: 0.375rem; background: var(--color-primary-light); color: var(--color-primary); padding: 0.25rem 0.625rem; border-radius: 999px; font-size: 0.75rem; font-weight: 500; }
.filter-tag .remove { cursor: pointer; font-weight: 700; font-size: 0.875rem; color: var(--color-primary); opacity: 0.7; }
.filter-tag .remove:hover { opacity: 1; }
.search-filter-chip { display: inline-block; background: var(--color-primary-light); color: var(--color-primary); padding: 0.25rem 0.625rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; }
.search-active-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 1rem; align-items: center; }

/* SORT BAR */
.sort-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding: 0.75rem 1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); gap: 0.75rem; flex-wrap: wrap; }
.sort-bar .result-count { font-size: 0.875rem; color: var(--color-text-light); }
.sort-bar .flex { flex: 1; min-width: 0; margin-left: auto; justify-content: flex-end; }
.sort-bar select { padding: 0.375rem 0.75rem; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 0.8125rem; background: var(--color-surface); min-width: 140px; }
@media (max-width: 768px) {
  .sort-bar { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; }
  .sort-bar .result-count { order: 0; flex-shrink: 0; font-size: 0.8125rem; white-space: nowrap; }
  .sort-bar .flex { order: 0; flex: 1; min-width: 0; margin-left: auto; justify-content: flex-end; }
  .sort-bar .flex label { flex-shrink: 0; white-space: nowrap; font-size: 0.8125rem; }
  .sort-bar select { flex: 1; min-width: 0; min-height: 44px; font-size: 0.875rem; padding: 0.375rem 0.5rem; }
}

/* OFFER CARDS */
.offer-cards { display: flex; flex-direction: column; gap: 0.75rem; }
.offer-card { display: flex; align-items: center; gap: 1.25rem; padding: 1rem 1.25rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); transition: box-shadow 0.2s, border-color 0.2s; }
.offer-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.offer-card.best-offer { border-color: var(--color-success); border-width: 2px; }
.offer-card .offer-card-shop { display: flex; align-items: center; gap: 0.75rem; min-width: 180px; }
.offer-card .offer-card-logo { width: 56px; height: 40px; background: var(--color-placeholder-bg); border-radius: var(--radius); border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; font-size: 0.625rem; color: var(--color-text-muted); flex-shrink: 0; }
.offer-card .offer-card-shopname { font-weight: 600; font-size: 0.9375rem; color: var(--color-text); }
.offer-card .offer-card-shopname a { color: var(--color-primary); text-decoration: none; }
.offer-card .offer-card-shopname a:hover { text-decoration: underline; }
.offer-card .offer-card-details { flex: 1; display: flex; align-items: center; gap: 1.5rem; font-size: 0.8125rem; color: var(--color-text-light); }
.offer-card .offer-card-price { font-size: 1.25rem; font-weight: 800; color: var(--color-text); white-space: nowrap; }
.offer-card.best-offer .offer-card-price { color: var(--color-success); }
.offer-card .offer-card-action { margin-left: auto; flex-shrink: 0; }

/* PREISVERGLEICH BOX (Tabelle) */
.preisvergleich-box { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; margin-top: 1rem; }
.preisvergleich-heading { font-size: 1.25rem; font-weight: 700; padding: 1rem 1.25rem; margin: 0; border-bottom: 1px solid var(--color-border); }
.offer-table-wrapper { overflow-x: auto; }
.offer-table { width: 100%; border-collapse: collapse; }
.offer-table th { text-align: left; font-size: 0.75rem; font-weight: 600; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.03em; padding: 0.75rem 1rem; border-bottom: 2px solid var(--color-border); background: var(--color-bg); }
.offer-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--color-border); font-size: 0.875rem; vertical-align: middle; }
.offer-table tr:last-child td { border-bottom: none; }
.offer-table tr.best-offer-row td { background: var(--color-surface); }
.offer-table .offer-price { font-weight: 700; font-size: 1rem; color: var(--color-text); }
.offer-table tr.best-offer-row .offer-price { color: var(--color-success); }
.offer-table .offer-shipping { font-size: 0.8125rem; color: var(--color-text-light); font-weight: 400; }
.offer-shop-cell { overflow: visible; min-width: 180px; vertical-align: middle; min-height: 64px; }
.offer-shop-with-logo { display: flex; align-items: center; gap: 0.75rem; overflow: visible; flex-wrap: wrap; }
.offer-shop-logo-link { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; transition: opacity 0.2s; min-height: 60px; }
.offer-shop-logo-link:hover { opacity: 0.8; }
.offer-shop-logo { width: 160px; height: 60px; object-fit: contain; display: block; }
.offer-shop-name { font-size: 0.875rem; font-weight: 600; color: var(--color-primary); line-height: 1.3; padding-left: 20px; }
.offer-shop-ratings { font-size: 0.75rem; color: var(--color-text-muted); }
.offer-star { color: #f59e0b; }
.preisvergleich-footer { font-size: 0.75rem; color: var(--color-text-muted); padding: 0.75rem 1.25rem; margin: 0; border-top: 1px solid var(--color-border); }

/* Mobile: stacked offer cards (idealo-style) */
.offer-cards-mobile { display: none; }
.offer-mobile-card {
  display: block; padding: 1rem 1.25rem; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); margin: 0 5px 0.75rem; text-decoration: none; color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.offer-mobile-card:first-child { margin-top: 5px; }
.offer-mobile-card:last-child { margin-bottom: 5px; }
.offer-mobile-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.offer-mobile-card.best-offer { border-color: var(--color-success); border-width: 2px; }
.offer-mobile-top {
  display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.5rem; flex-wrap: wrap;
}
.offer-mobile-left { flex: 1 1 100%; overflow: hidden; }
.offer-mobile-price {
  display: inline; font-weight: 700; font-size: 1.25rem; color: var(--color-text); line-height: 1.3;
}
.offer-mobile-card.best-offer .offer-mobile-price { color: var(--color-success); }
.offer-mobile-shipping {
  display: inline; font-weight: 400; font-size: 0.8125rem; color: var(--color-text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.offer-mobile-center {
  flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; min-width: 0;
}
.offer-mobile-shop {
  display: flex; align-items: center; min-height: 44px;
}
.offer-mobile-shop img,
.offer-mobile-logo-img { width: 130px; height: 44px; object-fit: contain; display: block; }
.offer-mobile-shop-name { font-size: 0.8125rem; font-weight: 600; color: var(--color-text); }
.offer-mobile-ratings { display: flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: var(--color-text-muted); }
.offer-mobile-star { color: #f59e0b; font-size: 0.875rem; }
.offer-mobile-btn {
  flex-shrink: 0; align-self: center; padding: 0.5rem 0.875rem; background: var(--color-success); color: #fff;
  font-weight: 600; font-size: 0.8125rem; border-radius: var(--radius); white-space: nowrap;
}
.offer-mobile-bottom { font-size: 0.8125rem; color: var(--color-text-muted); }
.offer-mobile-delivery { display: inline-flex; align-items: center; gap: 0.375rem; }
.offer-mobile-delivery .icon-truck { flex-shrink: 0; color: var(--color-text-muted); }
@media (max-width: 768px) {
  .offer-cards-mobile { display: block; }
  .offer-table-wrapper { display: none; }
}
@media (min-width: 769px) {
  .offer-cards-mobile { display: none; }
  .offer-table-wrapper { display: block; }
}
@media (max-width: 768px) {
  .offer-table th,
  .offer-table td { padding: 0.5rem 0.625rem; font-size: 0.8125rem; }
  .offer-table .offer-price-cell { min-width: 6rem; }
  .offer-table .offer-price { font-size: 0.8125rem; white-space: nowrap; }
  .offer-table .offer-shipping { font-size: 0.75rem; }
}

/* Legal pages */
.legal-content { max-width: 720px; padding: 1rem 0 3rem; }
.legal-content h1 { margin-bottom: 1.5rem; }
.legal-content h2 { font-size: 1.125rem; margin: 1.5rem 0 0.5rem; color: var(--color-text); }
.legal-content p { margin-bottom: 1rem; font-size: 0.9375rem; line-height: 1.7; color: var(--color-text-light); }
.legal-content .legal-intro { color: var(--color-text); }
.availability-badge { display: inline-block; padding: 0.125rem 0.5rem; border-radius: 999px; font-size: 0.6875rem; font-weight: 600; }
.availability-badge.available { background: #d1fae5; color: #065f46; }
.availability-badge.limited { background: #fef3c7; color: #92400e; }
.availability-badge.unavailable { background: #fee2e2; color: #991b1b; }

/* SECTION */
.section { padding: 2.5rem 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.section-header h2 { margin-bottom: 0; }

/* SHOP CARD */
.shop-card { background: #d1d5db; border: 1px solid #d1d5db; border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; align-items: center; text-align: center; transition: box-shadow 0.2s; color: #000; }
.shop-card:hover { box-shadow: var(--shadow-md); }
.shop-logo { width: 100%; height: 80px; background: #d1d5db; border: none; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; padding: 0.75rem; font-weight: 700; color: #000; font-size: 0.75rem; overflow: hidden; }
.shop-logo img { max-height: 100%; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.shop-card h3 { font-size: 1rem; margin-bottom: 0.25rem; color: #000; }
.shop-card .shop-meta { font-size: 0.8125rem; color: #000; margin-bottom: 0.75rem; }
.shop-card .shop-description,
.shop-card .shop-rating,
.shop-card .text-muted { color: #000; }
.shop-card-extended { align-items: stretch; }
.shop-card-extended .shop-logo { align-self: center; }
.shop-card-extended .shop-description,
.shop-card-extended .shop-reviews { align-self: stretch; }

/* Marken LP */
.brands-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}
.brand-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.25rem; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); text-decoration: none; color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.brand-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.brand-card-logo {
  width: 80px; height: 80px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem; border-radius: var(--radius); overflow: hidden;
  background: #fff;
}
.brand-card-logo img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; object-position: center;
  display: block;
}
.brand-card-initials {
  font-size: 1.25rem; font-weight: 600; color: var(--color-text-muted);
}
.brand-card-name { font-size: 0.9375rem; font-weight: 600; margin: 0 0 0.25rem; }
.brand-card-count { font-size: 0.75rem; color: var(--color-text-muted); }
.brand-card-extended { align-items: stretch; text-align: center; }
.brand-card-extended .brand-card-logo { align-self: center; }
.brand-card-description { font-size: 0.8125rem; margin: 0.5rem 0 0; line-height: 1.4; min-height: 2.8em; }

/* SHOP OF MONTH */
.shop-of-month { background: linear-gradient(135deg, #fef3c7, #fde68a); border-radius: var(--radius-lg); padding: 2rem; display: flex; align-items: center; gap: 2rem; }
.shop-of-month .shop-logo { background: transparent; border: none; }
.shop-of-month .shop-logo img { mix-blend-mode: normal; }
.shop-of-month .sotm-badge { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; color: var(--color-accent); letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.shop-of-month h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.shop-of-month p { color: var(--color-text-light); margin-bottom: 1rem; font-size: 0.9375rem; }

/* CATEGORY CARD */
.category-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.2s; display: block; color: var(--color-text); padding: 1.5rem; text-align: center; }
.category-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); color: var(--color-text); transform: translateY(-2px); }
.category-card-img { width: 100%; aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: #fff; }
.category-card-with-img { padding: 0; text-align: left; }
.category-card-with-img .category-icon { display: none; }
.category-card-with-img h3 { padding: 0.75rem 1rem 0; }
.category-card-with-img .count { padding: 0 1rem 1rem; display: block; }
.category-icon { width: 56px; height: 56px; border-radius: 12px; background: var(--color-primary-light); margin: 0 auto 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.category-card h3 { font-size: 0.9375rem; margin-bottom: 0.25rem; }
.category-card .count { font-size: 0.8125rem; color: var(--color-text-light); }

/* PRODUCT DETAIL */
.product-detail-article { margin-bottom: 2rem; }
.product-detail-layout { display: grid; grid-template-columns: 360px 1fr; gap: 2rem; align-items: start; margin-bottom: 2rem; }
.product-gallery { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-height, 64px) + 1rem); max-width: 100%; }
.product-main-image { aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.product-main-image img { max-width: 100%; max-height: 100%; object-fit: contain; width: 100%; }
.product-image-placeholder { font-size: 1rem; color: var(--color-text-muted); }
.product-thumbnails { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--color-border); flex-wrap: wrap; align-items: center; }
.product-thumbnails-track { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.product-thumbnails.is-slider { flex-wrap: nowrap; gap: 0.35rem; }
.product-thumbnails.is-slider .product-thumbnails-track { flex: 1 1 auto; max-width: calc((64px * 4) + (0.25rem * 3)); gap: 0.25rem; flex-wrap: nowrap; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.product-thumbnails.is-slider .product-thumbnails-track::-webkit-scrollbar { display: none; }
.product-thumbnails-nav { width: 24px; height: 64px; flex: 0 0 24px; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; color: var(--color-text); font-size: 1.25rem; cursor: pointer; transition: border-color 0.15s, color 0.15s, opacity 0.15s; }
.product-thumbnails-nav:hover { border-color: var(--color-primary); color: var(--color-primary); }
.product-thumbnails-nav:disabled { opacity: 0.35; cursor: default; }
.product-thumbnails .thumb { width: 64px; height: 64px; flex-shrink: 0; border: 2px solid var(--color-border); border-radius: var(--radius); background: #f8fafc; cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: border-color 0.15s; }
.product-thumbnails .thumb:hover { border-color: var(--color-text-muted); }
.product-thumbnails .thumb.active { border-color: var(--color-primary); }
.product-thumbnails .thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info-col { display: flex; flex-direction: column; gap: 1.5rem; }
.product-info-header { }
.product-brand-badge { display: block; text-align: left; font-size: 0.8125rem; font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; text-decoration: none; }
.product-brand-badge:hover { text-decoration: underline; }
.product-info-header h1 { font-size: 1.625rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.5rem; }
.product-meta-line { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.875rem; color: var(--color-text-light); }
.product-ean-badge { font-size: 0.75rem; padding: 0.2rem 0.5rem; background: var(--color-bg); border-radius: var(--radius); color: var(--color-text-muted); }

.product-price-row { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: stretch; }
.product-price-card { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; flex: 1 1 50%; min-width: 200px; background: linear-gradient(135deg, var(--color-primary-light) 0%, #fff 100%); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1rem 1.25rem; }
.product-price-inline { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.product-price-label { font-size: 0.875rem; color: var(--color-text-light); }
.product-price-value { font-size: 1.75rem; font-weight: 800; color: var(--color-primary); }
.product-price-note { font-size: 0.8125rem; color: var(--color-text-muted); }
.product-price-note::before { content: '·'; margin-right: 0.5rem; color: var(--color-text-muted); }
.product-price-card .product-cta { flex-shrink: 0; }

/* Preisentwicklung-Box neben CTA (billiger.de-Style) */
.product-price-history-box { flex: 1 1 50%; min-width: 260px; max-width: none; }
.product-price-history-box-inner { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1rem 1.25rem; box-shadow: var(--shadow-sm); }
.product-price-history-box-title { font-size: 0.9375rem; font-weight: 700; margin: 0 0 0.75rem 0; color: var(--color-text); }
.product-price-history-chart-wrap { height: 52px; margin-bottom: 0.75rem; border-radius: var(--radius); overflow: hidden; }
.product-price-history-chart { width: 100%; height: 100%; display: block; }
.product-price-history-box-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1rem; font-size: 0.8125rem; margin-bottom: 0.5rem; }
.product-price-history-box-item { display: flex; flex-direction: column; gap: 0.1rem; }
.product-price-history-box-item .price-history-label { color: var(--color-text-muted); }
.product-price-history-box-item .price-history-value { font-weight: 600; color: var(--color-text); }
.product-price-history-box-item.price-history-current .price-history-value { color: var(--color-primary); font-weight: 700; }
.product-price-history-box-badge { font-size: 0.8125rem; color: var(--color-success); margin: 0; font-weight: 500; }
.product-referrer-box { margin-bottom: 1rem; padding: 1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.product-referrer-label { font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.5rem; }
.product-referrer-inner { display: flex; gap: 1rem; align-items: flex-start; }
.product-referrer-img { width: 80px; height: 80px; object-fit: contain; border-radius: var(--radius); flex-shrink: 0; }
.product-referrer-img-placeholder { background: var(--color-placeholder-bg); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: var(--color-text-muted); }
.product-referrer-content { flex: 1; min-width: 0; }
.product-referrer-brand { font-size: 0.75rem; color: var(--color-text-muted); display: block; margin-bottom: 0.25rem; }
.product-referrer-title { font-size: 1rem; font-weight: 600; margin: 0 0 0.25rem; line-height: 1.3; }
.product-referrer-desc { font-size: 0.75rem; color: var(--color-text-light); margin: 0 0 0.5rem; line-height: 1.4; }
.product-referrer-price { display: flex; align-items: center; gap: 0.5rem; }
.product-referrer-price-value { font-size: 1.25rem; font-weight: 700; color: var(--color-text); }
.product-referrer-arrow { font-size: 1.5rem; font-weight: 700; color: #dc2626; line-height: 1; }

/* Empfehlungsbox bei Preiserhöhung - Raphael empfiehlt */
.product-recommendation-box {
  margin-top: 10px;
  padding: 1rem 1.25rem;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-lg);
}
.product-recommendation-inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.product-recommendation-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-placeholder-bg);
}
.product-recommendation-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-recommendation-content {
  flex: 1;
  min-width: 0;
}
.product-recommendation-intro {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-text);
}
.product-recommendation-intro a {
  font-weight: 600;
  color: var(--color-primary);
}
.product-recommendation-intro a:hover { text-decoration: underline; }
.product-recommendation-desc {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.product-description-block { font-size: 0.9375rem; color: var(--color-text); line-height: 1.7; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1rem 1.25rem; }
.product-description-block p { margin: 0; }

/* Product detail tabs (anchor navigation) - sticky */
.product-detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 1.5rem;
  position: sticky;
  top: var(--header-height, 64px);
  z-index: 20;
  background: var(--color-bg, #fff);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-top: 0.25rem;
}
.product-detail-tabs::-webkit-scrollbar { display: none; }
.product-tab { padding: 0.75rem 1.25rem; font-size: 0.9375rem; font-weight: 500; color: var(--color-text-light); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s; white-space: nowrap; flex-shrink: 0; }
.product-tab:hover { color: var(--color-text); }
.product-tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.product-tab-external::after { content: ' ↗'; font-size: 0.75em; opacity: 0.7; }

.product-detail-content { }
.product-tab-panel { padding-top: 0.5rem; padding-bottom: 2rem; scroll-margin-top: calc(var(--header-height, 64px) + 52px); }
.product-tab-panel .section-title { font-size: 1.25rem; margin-bottom: 1rem; }
.product-related-section { scroll-margin-top: calc(var(--header-height, 64px) + 52px); }

/* Product specs (Produkteigenschaften) */
.product-specs-section { margin-bottom: 2rem; }
.product-specs-heading { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.product-specs-table-wrap {
  overflow-x: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0;
}
.product-specs-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.product-specs-table th { text-align: left; padding: 0.625rem 1rem; font-weight: 500; color: var(--color-text-muted); background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.product-specs-table td { padding: 0.625rem 1rem; border-bottom: 1px solid var(--color-border); }
.product-specs-table-3col th { min-width: 6rem; width: 1%; white-space: nowrap; }
.product-specs-table-3col td { min-width: 5rem; }
.product-specs-table-3col tr:last-child th,
.product-specs-table-3col tr:last-child td { border-bottom: none; }
.product-specs-table-3col td:nth-child(2),
.product-specs-table-3col td:nth-child(4) { border-right: 1px solid var(--color-border); }
.product-specs-table-3col th:empty,
.product-specs-table-3col td:empty { border: none; background: transparent; padding: 0; }
.product-specs-ean { font-size: 0.8125rem; color: var(--color-text-muted); margin-top: 1rem; }

/* Preisentwicklung (billiger.de-Style) */
.product-price-history-section { margin-bottom: 2rem; }
.product-price-history-heading { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.product-price-history-content { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.25rem; }
.product-price-history-values { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; margin-bottom: 0.75rem; }
.product-price-history-item { display: flex; flex-direction: column; gap: 0.25rem; }
.product-price-history-item .price-history-label { font-size: 0.8125rem; color: var(--color-text-muted); }
.product-price-history-item .price-history-value { font-size: 1.125rem; font-weight: 600; }
.product-price-history-item.price-history-current .price-history-value { color: var(--color-primary); }
.product-price-history-badge { font-size: 0.9375rem; color: var(--color-success); margin: 0; }

/* Product info: Tab Langbeschreibung; Hero-Summary + Bullets oberhalb (product-hero-*) */
.product-info-section { margin-bottom: 2rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; }
.product-info-heading { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.product-info-list { margin: 0; padding-left: 1.25rem; font-size: 0.9375rem; line-height: 1.8; color: var(--color-text); }
.product-info-list li { margin-bottom: 0.35rem; }
.product-hero-summary { margin-top: 0.5rem; }
.product-hero-bullets { margin: 0.75rem 0 0; padding-left: 1.25rem; font-size: 0.9375rem; line-height: 1.7; color: var(--color-text); }
.product-hero-bullets li { margin-bottom: 0.4rem; }
.product-info-long.prose-product { font-size: 0.9375rem; line-height: 1.8; color: var(--color-text); }
.product-produktinfo-long .product-info-long { width: 100%; }

.product-related-section { padding-top: 1rem; }
.product-related-grid { margin-top: 0.5rem; }
.grid .product-card,
.product-top-deals-grid .product-card,
.product-related-grid .product-card {
  min-width: 0;
}
.category-deals-section { margin-bottom: 2rem; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.25rem; margin-top: 2rem; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 0.5rem; font-size: 0.8125rem; font-weight: 500; border-radius: var(--radius); border: 1px solid var(--color-border); color: var(--color-text); background: var(--color-surface); transition: all 0.15s; }
.pagination a:hover { background: var(--color-bg); border-color: var(--color-primary); color: var(--color-primary); }
.pagination .active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* ADMIN */
.admin-layout { display: flex; flex-direction: column; min-height: 100vh; }
.admin-sidebar { width: 250px; background: var(--color-secondary); color: #fff; padding: 1.5rem 0; flex-shrink: 0; position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 100; }
.admin-content-area { flex: 1; display: flex; flex-direction: column; margin-left: 250px; min-width: 0; }
.admin-topbar { flex-shrink: 0; }
.admin-main { flex: 1; padding: 1.5rem 2rem; min-width: 0; }
.admin-sidebar .sidebar-logo { padding: 0 1.25rem 1.5rem; font-size: 1.125rem; font-weight: 800; color: #fff; border-bottom: 1px solid #334155; margin-bottom: 1rem; }
.admin-sidebar .sidebar-logo span { color: var(--color-primary); }
.admin-sidebar nav a { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 1.25rem; font-size: 0.875rem; color: #94a3b8; transition: all 0.15s; border-left: 3px solid transparent; }
.admin-sidebar nav a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.admin-sidebar nav a.active { background: rgba(59,130,246,0.15); color: #fff; border-left-color: var(--color-primary); }
.admin-sidebar nav .nav-section { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #475569; padding: 1rem 1.25rem 0.5rem; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.admin-header h1 { font-size: 1.5rem; }
.stat-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.25rem; }
.stat-card .stat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 800; }
.stat-card .stat-change { font-size: 0.75rem; font-weight: 600; margin-top: 0.25rem; }
.stat-card .stat-change.positive { color: var(--color-success); }
.stat-card .stat-change.negative { color: var(--color-danger); }
.admin-table-wrapper { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 0.75rem 1rem; font-size: 0.75rem; font-weight: 600; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.03em; background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.admin-table td { padding: 0.75rem 1rem; font-size: 0.875rem; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f8fafc; }
.status { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.625rem; border-radius: 999px; }
.status-live { background: #d1fae5; color: #065f46; }
.status-draft { background: #e2e8f0; color: #475569; }
.status-conflict { background: #fee2e2; color: #991b1b; }
.status-unknown { background: #fef3c7; color: #92400e; }
.status-active { background: #d1fae5; color: #065f46; }
.status-inactive { background: #e2e8f0; color: #475569; }
.status-success { background: #d1fae5; color: #065f46; }
.status-warning { background: #fef3c7; color: #92400e; }
.status-error { background: #fee2e2; color: #991b1b; }
.traffic-light { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.traffic-light.green { background: var(--color-success); }
.traffic-light.yellow { background: var(--color-warning); }
.traffic-light.red { background: var(--color-danger); }
.category-tree { list-style: none; }
.category-tree li { padding: 0.25rem 0; }
.category-tree .tree-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; border-radius: var(--radius); font-size: 0.875rem; cursor: pointer; transition: background 0.1s; }
.category-tree .tree-item:hover { background: var(--color-bg); }
.category-tree .tree-toggle { width: 20px; text-align: center; color: var(--color-text-muted); font-size: 0.75rem; flex-shrink: 0; }
.category-tree ul { margin-left: 1.5rem; }
.quality-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.25rem; display: flex; align-items: center; gap: 1rem; }
.quality-card .quality-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.quality-card .quality-icon.danger { background: #fee2e2; color: #dc2626; }
.quality-card .quality-icon.warning { background: #fef3c7; color: #d97706; }
.quality-card .quality-icon.info { background: #dbeafe; color: #2563eb; }
.quality-card .quality-value { font-size: 1.5rem; font-weight: 800; }
.quality-card .quality-label { font-size: 0.8125rem; color: var(--color-text-light); }
.tabs { display: flex; border-bottom: 2px solid var(--color-border); margin-bottom: 1.5rem; gap: 0; }
.tabs a { padding: 0.75rem 1.25rem; font-size: 0.875rem; font-weight: 500; color: var(--color-text-light); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s; }
.tabs a:hover { color: var(--color-text); }
.tabs a.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.375rem; color: var(--color-text); }
.form-control { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 0.875rem; transition: border-color 0.15s, box-shadow 0.15s; }
.form-control:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-light); }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; gap: 1rem; flex-wrap: wrap; }
.toolbar-search { position: relative; flex: 1; max-width: 300px; }
.toolbar-search input { width: 100%; padding: 0.5rem 0.75rem 0.5rem 2.25rem; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 0.8125rem; }
.toolbar-search .search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--color-text-muted); font-size: 0.8125rem; }
/* Subcategory chips - horizontal scroll mit Fade-Hinweis (mobil) */
.subcategory-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  padding-bottom: 0.25rem;
  mask-image: linear-gradient(to right, black 0%, black calc(100% - 36px), rgba(0,0,0,0.35) 100%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black calc(100% - 36px), rgba(0,0,0,0.35) 100%);
}
.subcategory-chips::-webkit-scrollbar { height: 4px; }
.subcategory-chips::-webkit-scrollbar-track { background: transparent; }
.subcategory-chips::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }
.subcategory-chips a {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.375rem 0.875rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--color-text);
  transition: all 0.15s;
}
.subcategory-chips a:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-light); }
.mobile-filter-btn { display: none; padding: 0.5rem 1rem; font-size: 0.875rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); cursor: pointer; margin-bottom: 1rem; }

/* Filter sidebar - ausklappbar mobil/tablet */
.filter-sidebar-wrapper { position: relative; }
.filter-sidebar-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  margin-bottom: 1rem;
  color: var(--color-text);
  transition: background 0.15s, border-color 0.15s;
}
.filter-sidebar-toggle:hover { background: var(--color-bg); border-color: var(--color-primary); }
.filter-sidebar-toggle-icon { transition: transform 0.2s; font-size: 0.75rem; }
.filter-sidebar-wrapper.is-expanded .filter-sidebar-toggle-icon { transform: rotate(180deg); }
.price-range-slider-wrap { margin-top: 0.5rem; }
.price-range-slider { margin-bottom: 0.75rem; height: 8px; }
.price-range-inputs { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--color-text-muted); }
.price-range-display { font-weight: 500; color: var(--color-text); }
.filter-actions { margin-top: 0.75rem; }
.filter-live-count { display: block; font-size: 0.875rem; font-weight: 600; color: var(--color-primary); margin-bottom: 0.25rem; }
/* noUiSlider Anpassungen - Handles passen zum blauen Balken (8px Track) */
.price-range-slider .noUi-connect { background: var(--color-primary); }
.price-range-slider.noUi-horizontal .noUi-handle {
  width: 15px; height: 15px;
  right: -7px; top: 0;
  border: 2px solid var(--color-primary);
  background: var(--color-surface);
  border-radius: 50%;
  cursor: grab;
}
.price-range-slider .noUi-handle .noUi-touch-area {
  width: 28px; height: 28px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.price-range-slider .noUi-handle:active { cursor: grabbing; }
.price-range-slider .noUi-handle::before,
.price-range-slider .noUi-handle::after { display: none; }

/* ADBOX PLACEHOLDER */
.adbox-placeholder { background: var(--color-placeholder-bg); border: 2px dashed #cbd5e1; border-radius: var(--radius-lg); padding: 2rem; text-align: center; color: var(--color-text-muted); margin-bottom: 2rem; }
.adbox-placeholder .ad-label { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .layout-with-sidebar { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .filter-sidebar { position: static; }
  .filter-sidebar-toggle { display: flex; }
  /* Collapsed: ca. 10% Vorschau mit Ausblendung, Klick oeffnet Filter */
  .filter-sidebar-wrapper:not(.is-expanded) .filter-sidebar {
    display: block;
    max-height: 90px;
    overflow: hidden;
    cursor: pointer;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
    opacity: 0.85;
  }
  .filter-sidebar-wrapper:not(.is-expanded) .filter-sidebar * { pointer-events: none; }
  .filter-sidebar-wrapper.is-expanded .filter-sidebar {
    max-height: none;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
    pointer-events: auto;
    opacity: 1;
  }
  .filter-sidebar-wrapper.is-expanded .filter-sidebar * { pointer-events: auto; }
  .mobile-filter-btn { display: flex; align-items: center; gap: 0.5rem; }
  /* Tablet: Gallery kleiner, mehr Platz fuer Produktinfo */
  .product-detail-layout { grid-template-columns: minmax(180px, 240px) 1fr; gap: 1.5rem; }
  .product-gallery { position: sticky; top: calc(var(--header-height, 64px) + 1rem); }
  .product-main-image { padding: 1rem; aspect-ratio: 1; }
  .product-thumbnails { padding: 0.5rem; gap: 0.35rem; flex-wrap: nowrap; }
  .product-thumbnails-track { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .product-thumbnails.is-slider .product-thumbnails-track { max-width: calc((48px * 4) + (0.25rem * 3)); }
  .product-thumbnails-track::-webkit-scrollbar { display: none; }
  .product-thumbnails-nav { height: 48px; }
  .product-thumbnails .thumb { width: 48px; height: 48px; }
  .product-price-row { flex-direction: column; }
  .product-price-history-box { max-width: none; min-width: 0; }
  .product-description-block { background: none; border: none; border-radius: 0; padding: 0; }
  .product-detail-tabs { padding: 0; }
  .product-tab { padding: 0.625rem 1rem; font-size: 0.8125rem; }
  .admin-sidebar { display: none; }
  .admin-content-area { margin-left: 0; }
  .admin-main { padding: 1rem; }
  .hero-categories {
    padding: 0.5rem 1rem;
    margin: 0 -1rem;
  }
  .hero-category-tile:last-child { padding-right: 1rem; }
}
@media (max-width: 768px) {
  /* Mobile: Einspaltig, Galerie oben, Hauptbild gross, Thumbnails kompakt */
  .product-detail-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .product-gallery { position: static; order: -1; }
  .product-main-image { aspect-ratio: 1; padding: 1rem; min-height: 0; }
  .product-main-image img { width: 100%; max-width: 100%; margin: 0 auto; display: block; }
  .product-thumbnails { padding: 0.5rem; gap: 0.35rem; flex-wrap: nowrap; justify-content: flex-start; }
  .product-thumbnails-track { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .product-thumbnails.is-slider .product-thumbnails-track { max-width: calc((44px * 4) + (0.25rem * 3)); }
  .product-thumbnails-track::-webkit-scrollbar { display: none; }
  .product-thumbnails-nav { height: 44px; }
  .product-thumbnails .thumb { width: 44px; height: 44px; flex-shrink: 0; }
  .product-info-header h1 { font-size: 1.25rem; }
  .product-price-value { font-size: 1.5rem; }
  .grid-4:not(.grid-slider), .grid-3:not(.grid-slider), .grid-5:not(.grid-slider) { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .header-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .category-bar { display: none; }
  .hero-slider { min-height: 240px; }
  .hero-slider .slide-content { padding: 1.5rem; }
  .hero-slider h2 { font-size: 1.5rem; }
  .hero-categories {
    gap: 1.25rem;
    padding: 0.5rem 1rem 0.75rem;
    margin: 0 -1rem;
    scroll-snap-type: x mandatory;
  }
  .hero-category-tile {
    scroll-snap-align: start;
    min-width: 80px;
  }
  .hero-category-tile:last-child { padding-right: 1rem; }
  .hero-category-img { width: 80px; height: 80px; }
  .hero-category-img img { width: 56px; height: 56px; }
  .hero-category-name { font-size: 0.75rem; max-width: 110px; text-wrap: balance; }
  .shop-of-month { flex-direction: column; text-align: center; }
  /* Produkteigenschaften mobil */
  .product-specs-section { margin: 0 5px 1.5rem; }
  .product-specs-table th,
  .product-specs-table td { padding: 0.5rem 0.75rem; font-size: 0.8125rem; }
  /* Footer 2-spaltig auf Tablet (768px), 1-spaltig erst ab 480px */
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  h1 { font-size: 1.5rem; }
  .category-bar a { padding: 0.5rem 0.75rem; font-size: 0.75rem; }
  .mega-trigger-burger {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  .category-bar-burger-standalone .mega-trigger-burger {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .category-bar-prev,
  .category-bar-next { display: flex; }
  .mega-menu-wrapper:hover .mega-menu { display: none; }
  .mega-menu-wrapper.is-open .mega-menu { display: block; }
  .mega-menu-split {
    position: fixed;
    top: calc(var(--header-height, 64px) + 3rem);
    left: 1rem;
    right: 1rem;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: 70vh;
    overflow: auto;
    border-radius: var(--radius-lg);
  }
  .mega-menu-split-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .mega-menu-split-left {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 0;
    scrollbar-width: none;
  }
  .mega-menu-split-left::-webkit-scrollbar {
    display: none;
  }
  .mega-menu-split-cat {
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 0.875rem;
    min-width: fit-content;
  }
  .mega-menu-split-cat.is-active {
    border-bottom-color: var(--color-primary);
  }
  .mega-menu-split-cat-arrow {
    display: none;
  }
  .mega-menu-split-right {
    padding: 0.875rem 1rem 1rem;
  }
  .mega-menu-split-subcat-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .offer-card { flex-wrap: wrap; gap: 0.75rem; }
  .offer-card .offer-card-shop { min-width: unset; }
  .offer-card .offer-card-details { flex-wrap: wrap; gap: 0.5rem; }
  .offer-card .offer-card-action { margin-left: 0; width: 100%; }
  .offer-card .offer-card-action .btn { width: 100%; }
}
@media (max-width: 480px) {
  .grid-4:not(.grid-slider), .grid-3:not(.grid-slider), .grid-2, .grid-5:not(.grid-slider) { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; width: 100%; }
  .container { padding: 0 1rem; }
  .hero-categories { margin: 0 -1rem; padding: 0.5rem 1rem; }
}
