/* ============================================================
   WeLoveHandy – Hauptstylesheet
   CI: Schwarz, Rot #CC0000, Amber #D4920A (gedämpft)
   Inspiration: Klare Marktplatz-Ästhetik (Otto-Style)
   MADE by MESKES
   ============================================================ */

/* ---- Reset & Custom Properties ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:         #CC0000;
  --red-dark:    #A50000;
  --red-light:   #E8000010;

  --amber:       #D4920A;
  --amber-dark:  #B07A08;
  --amber-light: #FFF4DC;

  --black:       #212121;
  --black-soft:  #1A1A1A;
  --gray-900:    #2C2C2C;
  --gray-700:    #5A5A5A;
  --gray-500:    #888888;
  --gray-400:    #AAAAAA;
  --gray-300:    #DDDDDD;
  --gray-200:    #EEEEEE;
  --gray-100:    #F2F2F2;
  --white:       #FFFFFF;

  --font:        'Inter', Arial, sans-serif;
  --font-head:   'Inter', Arial, sans-serif;

  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   10px;
  --radius-xl:   16px;

  --shadow-xs:   0 1px 3px rgba(0,0,0,.08);
  --shadow-sm:   0 2px 8px rgba(0,0,0,.10);
  --shadow-md:   0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.14);

  --transition:  .18s ease;

  --topbar-h:    36px;
  --navbar-h:    68px;
  --subnav-h:    44px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--gray-100);
  color: var(--black);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- Container ---- */
.container {
  width: 100%; max-width: 1240px;
  margin: 0 auto; padding: 0 20px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: var(--radius-md);
  font-family: var(--font); font-size: .875rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); white-space: nowrap;
  text-decoration: none; line-height: 1.2;
}
.btn-primary   { background: var(--red);   color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--red);   border-color: var(--red); }
.btn-secondary:hover { background: var(--red); color: var(--white); }
.btn-amber     { background: var(--amber); color: var(--white); border-color: var(--amber); }
.btn-amber:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: var(--white); }
.btn-dark      { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: var(--gray-900); border-color: var(--gray-900); color: var(--white); }
.btn-ghost     { background: transparent; color: var(--gray-700); border-color: var(--gray-300); }
.btn-ghost:hover { background: var(--gray-100); color: var(--black); border-color: var(--gray-400); }
.btn-danger-soft { background: #FEF3F3; color: var(--red); border-color: #FECACA; }
.btn-danger-soft:hover { background: #FDDCDC; color: var(--red); border-color: #FCA5A5; }
.tab-link { padding: 10px 18px; border-radius: 6px 6px 0 0; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--gray-600); }
.tab-link:hover { color: var(--red); }
.tab-link--active { background: var(--red); color: #fff !important; }
.tab-link--active:hover { color: #fff !important; }
.btn-sm  { padding: 6px 14px; font-size: .8rem; }
.btn-lg  { padding: 13px 28px; font-size: .95rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-accent {
  background: var(--amber); color: var(--white);
  padding: 3px 10px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .75rem;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--black-soft);
  color: #ccc;
  height: var(--topbar-h);
  font-size: .78rem;
  border-bottom: 1px solid #333;
}
.topbar__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar__text { display: flex; align-items: center; gap: 6px; color: #aaa; }
.topbar__text i { color: var(--amber); }
.topbar__links { display: flex; align-items: center; gap: 18px; }
.topbar__links a { color: #bbb; font-weight: 500; letter-spacing: .01em; }
.topbar__links a:hover { color: var(--amber); }
.topbar__greeting { color: var(--amber); font-weight: 600; }

/* ============================================================
   SITE HEADER (sticky wrapper für Navbar + Subnav)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* ============================================================
   NAVBAR (Logo-Zeile)
   ============================================================ */
.navbar {
  background: var(--white);
  height: var(--navbar-h);
  border-bottom: 1px solid var(--gray-200);
}
.navbar__inner {
  height: 100%;
  display: flex; align-items: center; gap: 16px;
}

/* Logo */
.navbar__logo { flex-shrink: 0; text-decoration: none; }
.navbar__logo-text {
  font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em;
  color: var(--black);
}
.logo-primary { color: var(--black); }
.logo-accent  { color: var(--red); }

/* Search */
.navbar__search {
  flex: 1; max-width: 540px;
  display: flex;
  border: 2px solid var(--gray-300);
  border-radius: 999px;
  overflow: hidden;
  background: var(--gray-100);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.navbar__search:focus-within {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(204,0,0,.08);
}
.navbar__search input {
  flex: 1; padding: 9px 18px; border: none; outline: none;
  font-family: var(--font); font-size: .9rem; background: transparent;
  color: var(--black);
}
.navbar__search button {
  background: var(--red); color: var(--white); border: none;
  padding: 0 20px; cursor: pointer; font-size: .95rem;
  transition: background var(--transition);
  border-radius: 0 999px 999px 0;
}
.navbar__search button:hover { background: var(--red-dark); }

/* Actions */
.navbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.navbar__icon-btn {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  background: none; border: none;
  padding: 6px 10px; border-radius: var(--radius-md);
  color: var(--gray-700); cursor: pointer; font-size: .95rem;
  text-decoration: none; transition: all var(--transition);
  min-width: 44px;
}
.navbar__icon-btn:hover { background: var(--gray-100); color: var(--red); }
.navbar__icon-btn span.icon-label {
  font-size: .65rem; font-weight: 600; letter-spacing: .02em; color: var(--gray-500);
  display: block;
}

.badge {
  position: absolute; top: 2px; right: 4px;
  background: var(--red); color: var(--white);
  min-width: 17px; height: 17px; border-radius: 999px;
  font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

/* Burger */
.navbar__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px; width: 38px; border-radius: var(--radius-md);
}
.navbar__burger span {
  display: block; height: 2px; background: var(--black);
  border-radius: 2px; transition: all var(--transition);
}
.navbar__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.active span:nth-child(2) { opacity: 0; }
.navbar__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   SUBNAV (Kategorienleiste – Teil des sticky Headers)
   ============================================================ */
.subnav {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 3px solid var(--red);
}
.subnav__list {
  display: flex; align-items: stretch; gap: 0;
}
.subnav__list li { position: relative; }
.subnav__list > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 0 15px; height: var(--subnav-h);
  color: var(--gray-900); font-size: .845rem; font-weight: 500;
  transition: color var(--transition), background var(--transition);
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  white-space: nowrap;
  text-decoration: none;
}
.subnav__list > li > a:hover,
.subnav__list > li > a.active {
  color: var(--red);
  border-bottom-color: var(--red);
  background: rgba(204,0,0,.03);
}
.subnav__highlight {
  color: var(--red) !important; font-weight: 700 !important;
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-top: 3px solid var(--red);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-md);
  min-width: 210px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: all var(--transition);
  z-index: 100;
  padding: 6px 0;
}
.has-dropdown:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li { display: block; }
.dropdown a {
  color: var(--gray-900) !important;
  padding: 9px 18px !important;
  font-size: .845rem !important; font-weight: 400 !important;
  border-bottom: none !important; height: auto !important;
  display: block !important;
  transition: background var(--transition), color var(--transition);
}
.dropdown a:hover { color: var(--red) !important; background: var(--gray-100) !important; }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash { padding: 10px 0; font-size: .875rem; }
.flash .container { display: flex; align-items: center; gap: 10px; }
.flash--success { background: #EDF7EE; color: #1B5E20; border-bottom: 2px solid #4CAF50; }
.flash--error   { background: #FDECEA; color: #B71C1C; border-bottom: 2px solid var(--red); }
.flash--warning { background: var(--amber-light); color: #7B4F00; border-bottom: 2px solid var(--amber); }
.flash--info    { background: #E3F2FD; color: #0D47A1; border-bottom: 2px solid #2196F3; }
.flash__close   { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 1.1rem; color: inherit; opacity: .6; }
.flash__close:hover { opacity: 1; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content { flex: 1; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(130deg, #1A1A1A 0%, #2C2C2C 55%, #1E1E1E 100%);
  position: relative; overflow: hidden;
  padding: 72px 0 64px;
}
.hero::before {
  content: '';
  position: absolute; top: -80px; right: 0;
  width: 55%; height: 140%;
  background: linear-gradient(135deg, transparent 40%, rgba(204,0,0,.12) 100%);
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--red);
}
.hero__inner { position: relative; z-index: 1; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--amber); color: var(--white);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 12px;
  border-radius: var(--radius-sm); margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 800; color: var(--white); line-height: 1.12;
  letter-spacing: -.03em; margin-bottom: 18px;
}
.hero__title span { color: var(--red); }
.hero__subtitle {
  color: #aaa; font-size: 1rem; margin-bottom: 32px;
  max-width: 480px; line-height: 1.65;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: 40px; margin-top: 52px; flex-wrap: wrap;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.08);
}
.hero__stat-number {
  font-size: 1.75rem; font-weight: 800; color: var(--amber);
  letter-spacing: -.02em;
}
.hero__stat-label { color: #777; font-size: .8rem; margin-top: 2px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 48px 0; }
.section--white { background: var(--white); }
.section--gray  { background: var(--gray-100); }
.section--dark  { background: var(--black); }

.section__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; gap: 12px;
}
.section__title {
  font-size: 1.4rem; font-weight: 700; color: var(--black);
  letter-spacing: -.02em;
}
.section__title::after {
  content: ''; display: block; width: 32px; height: 3px;
  background: var(--red); margin-top: 7px; border-radius: 2px;
}
.section--dark .section__title { color: var(--white); }

/* ============================================================
   KATEGORIE-KARTEN
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}
.category-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 18px 10px; text-align: center;
  border: 1px solid var(--gray-200);
  transition: all var(--transition); cursor: pointer;
  box-shadow: var(--shadow-xs);
  text-decoration: none;
}
.category-card:hover {
  border-color: var(--red); box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.category-card i { font-size: 1.7rem; color: var(--red); margin-bottom: 8px; display: block; }
.category-card span { font-size: .78rem; font-weight: 600; color: var(--black); line-height: 1.3; display: block; }

/* ============================================================
   PRODUKT-GRID & KARTEN
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* Produktdetail-Layout */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
@media (min-width: 769px) {
  .product-detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex; flex-direction: column;
  position: relative; text-decoration: none; color: inherit;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--gray-300);
}
.product-card__badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: .68rem; font-weight: 700; padding: 3px 8px;
  border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: .04em;
}
.product-card__badge--new  { background: var(--black); color: var(--white); }
.product-card__badge--sale { background: var(--red);   color: var(--white); }

.product-card__img {
  aspect-ratio: 1 / 1; overflow: hidden; background: var(--gray-100);
  position: relative;
}
.product-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.product-card:hover .product-card__img img { transform: scale(1.04); }
.product-card__img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-300); font-size: 2.5rem;
}

.product-card__body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-card__merchant {
  font-size: .72rem; color: var(--gray-500); font-weight: 500;
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em;
}
.product-card__name {
  font-weight: 500; font-size: .875rem; color: var(--black);
  margin-bottom: 10px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__rating { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.product-card__stars { color: var(--amber); font-size: .78rem; }
.product-card__rating-count { color: var(--gray-500); font-size: .72rem; }

.product-card__footer {
  margin-top: auto; display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 10px; border-top: 1px solid var(--gray-200);
}
.product-card__price {
  font-size: 1.1rem; font-weight: 700; color: var(--red);
  letter-spacing: -.01em;
}
.product-card__price-old {
  text-decoration: line-through; color: var(--gray-400);
  font-size: .78rem; display: block;
}
.product-card__cart-btn {
  background: var(--red); color: var(--white); border: none;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .85rem; flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}
.product-card__cart-btn:hover { background: var(--red-dark); transform: scale(1.08); }

/* ============================================================
   HÄNDLER-BANNER
   ============================================================ */
.merchant-banner {
  background: linear-gradient(120deg, #1A1A1A 0%, #2C2C2C 100%);
  border-radius: var(--radius-xl); padding: 44px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  border: 1px solid #333;
  position: relative; overflow: hidden;
}
.merchant-banner::before {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(204,0,0,.18), transparent 70%);
  border-radius: 50%;
}
.merchant-banner__title {
  font-size: 1.5rem; font-weight: 700;
  color: var(--white); margin-bottom: 8px; letter-spacing: -.02em;
}
.merchant-banner__subtitle { color: #999; max-width: 420px; font-size: .9rem; line-height: 1.6; }

/* ============================================================
   PRICING / PAKETE
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.pricing-card {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 28px 24px; border: 2px solid var(--gray-200);
  transition: all var(--transition); position: relative;
  display: flex; flex-direction: column;
}
.pricing-card:hover, .pricing-card.featured {
  border-color: var(--red); box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.pricing-card.active {
  border-color: #16a34a; box-shadow: 0 8px 40px rgba(22,163,74,.18);
  transform: translateY(-3px);
}
.pricing-card.active .pricing-card__name,
.pricing-card.active .pricing-card__price { color: #16a34a; }
.pricing-card__badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: var(--white);
  font-size: .68rem; font-weight: 700; padding: 3px 14px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap;
}
.pricing-card__badge--active { background: #16a34a; }
.pricing-card__name {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 6px;
  color: var(--black);
}
.pricing-card__price {
  font-size: 2.2rem; font-weight: 800; color: var(--red);
  letter-spacing: -.04em; line-height: 1;
}
.pricing-card__price span { font-size: .9rem; font-weight: 400; color: var(--gray-500); }
.pricing-card__limit { color: var(--gray-500); font-size: .82rem; margin: 8px 0; }
.pricing-card__commission {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--amber-light); color: var(--amber-dark);
  font-size: .78rem; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; margin-bottom: 18px; border: 1px solid #E8C97A;
}
.pricing-card__features { list-style: none; margin-bottom: 24px; flex: 1; }
.pricing-card__features li {
  padding: 7px 0; border-bottom: 1px solid var(--gray-200);
  font-size: .855rem; display: flex; align-items: center; gap: 8px;
  color: var(--gray-700);
}
.pricing-card__features li:last-child { border-bottom: none; }
.pricing-card__features li i { color: var(--red); font-size: .75rem; flex-shrink: 0; }

/* ============================================================
   FORMS
   ============================================================ */
.form-card {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 36px; box-shadow: var(--shadow-sm);
  max-width: 480px; margin: 0 auto;
  border: 1px solid var(--gray-200);
}
.form-card__title {
  font-size: 1.4rem; font-weight: 700; margin-bottom: 4px;
  color: var(--black); letter-spacing: -.02em;
}
.form-card__subtitle { color: var(--gray-500); font-size: .875rem; margin-bottom: 24px; }

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; font-size: .82rem; margin-bottom: 6px; color: var(--black); }
.form-label .required { color: var(--red); margin-left: 2px; }

.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--gray-300); border-radius: var(--radius-md);
  font-family: var(--font); font-size: .875rem; color: var(--black);
  background: var(--white); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,0,0,.08);
}
.form-input.is-invalid { border-color: var(--red); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint  { font-size: .76rem; color: var(--gray-500); margin-top: 4px; }
.form-error { font-size: .76rem; color: var(--red); margin-top: 4px; font-weight: 500; }
.form-divider {
  text-align: center; color: var(--gray-400); font-size: .82rem;
  margin: 18px 0; position: relative;
}
.form-divider::before, .form-divider::after {
  content: ''; position: absolute; top: 50%; width: calc(50% - 20px); height: 1px; background: var(--gray-200);
}
.form-divider::before { left: 0; }
.form-divider::after  { right: 0; }

/* Compliance */
.compliance-checklist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.compliance-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-md);
  border: 1.5px solid var(--gray-200); background: var(--white);
  transition: all var(--transition);
}
.compliance-item.done    { border-color: #4CAF50; background: #F1FBF2; }
.compliance-item.missing { border-color: var(--red); background: #FEF3F3; }
.compliance-item.done   i { color: #4CAF50; }
.compliance-item.missing i { color: var(--red); }
.compliance-item span { font-weight: 600; font-size: .875rem; color: var(--black); }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard { display: flex; min-height: calc(100vh - var(--topbar-h) - var(--navbar-h) - var(--subnav-h) - 20px); }
.dash-menu-btn { display: none !important; } /* Desktop: versteckt */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1049; }

@media (min-width: 769px) {
  .dash-menu-btn { display: none !important; }
}

.sidebar {
  width: 248px; flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  padding: 20px 0;
  position: sticky; top: calc(var(--topbar-h) + var(--navbar-h) + var(--subnav-h));
  height: calc(100vh - var(--topbar-h) - var(--navbar-h) - var(--subnav-h));
  overflow-y: auto;
}
.sidebar__logo {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 1rem; font-weight: 700; color: var(--black);
}
.sidebar__role {
  font-size: .68rem; color: var(--red); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  display: block; margin-top: 3px;
}
.sidebar__section { padding: 16px 0 4px; }
.sidebar__section-title {
  padding: 0 20px; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--gray-400);
  margin-bottom: 4px;
}
.sidebar__nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px; color: var(--gray-700);
  font-size: .855rem; font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  text-decoration: none;
}
.sidebar__nav a:hover  { color: var(--black); background: var(--gray-100); }
.sidebar__nav a.active { color: var(--red); background: #FEF3F3; border-left-color: var(--red); font-weight: 600; }
.sidebar__nav a i { width: 16px; text-align: center; font-size: .85rem; color: var(--gray-400); flex-shrink: 0; }
.sidebar__nav a:hover i, .sidebar__nav a.active i { color: var(--red); }

.dashboard__main { flex: 1; padding: 28px; background: var(--gray-100); min-width: 0; }
.dashboard__title { font-size: 1.3rem; font-weight: 700; color: var(--black); margin-bottom: 4px; letter-spacing: -.02em; }
.dashboard__subtitle { color: var(--gray-500); font-size: .875rem; margin-bottom: 24px; }

/* Stat Cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow-xs); border: 1px solid var(--gray-200);
  border-left: 4px solid var(--red);
  display: flex; align-items: center; gap: 14px;
}
.stat-card--amber { border-left-color: var(--amber); }
.stat-card--dark  { border-left-color: var(--black); }
.stat-card--green { border-left-color: #4CAF50; }
.stat-card__icon {
  width: 46px; height: 46px; border-radius: var(--radius-md); flex-shrink: 0;
  background: #FEF3F3; color: var(--red);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.stat-card--amber .stat-card__icon { background: var(--amber-light); color: var(--amber-dark); }
.stat-card--dark  .stat-card__icon { background: #F0F0F0; color: var(--black); }
.stat-card--green .stat-card__icon { background: #EDF7EE; color: #2E7D32; }
.stat-card__value { font-size: 1.6rem; font-weight: 800; color: var(--black); letter-spacing: -.03em; line-height: 1; }
.stat-card__label { font-size: .76rem; color: var(--gray-500); margin-top: 4px; font-weight: 500; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
thead { background: var(--gray-100); border-bottom: 2px solid var(--gray-300); }
thead th { padding: 12px 14px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-align: left; color: var(--gray-700); white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--gray-200); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--gray-100); }
tbody td { padding: 12px 14px; font-size: .855rem; color: var(--black); vertical-align: middle; }

/* ============================================================
   STATUS BADGES
   ============================================================ */
.status {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.status--active, .status--paid, .status--delivered { background: #EDF7EE; color: #1B5E20; }
.status--pending, .status--processing { background: var(--amber-light); color: #7B4F00; }
.status--inactive, .status--cancelled { background: #FDECEA; color: #B71C1C; }
.status--draft { background: var(--gray-200); color: var(--gray-700); }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 13px 16px; border-radius: var(--radius-md);
  margin-bottom: 18px; border-left: 4px solid transparent;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .875rem;
}
.alert--warning { background: var(--amber-light); color: #7B4F00; border-color: var(--amber); }
.alert--error   { background: #FDECEA; color: #B71C1C; border-color: var(--red); }
.alert--success { background: #EDF7EE; color: #1B5E20; border-color: #4CAF50; }
.alert--info    { background: #E3F2FD; color: #0D47A1; border-color: #2196F3; }
.alert i { margin-top: 2px; flex-shrink: 0; }

/* ============================================================
   CARDS (generisch)
   ============================================================ */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs); margin-bottom: 20px; overflow: hidden;
}
.card__head {
  padding: 14px 18px; border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white);
}
.card__title { font-weight: 700; font-size: .9rem; color: var(--black); display: flex; align-items: center; gap: 8px; }
.card__body  { padding: 18px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--black-soft); color: #aaa; margin-top: auto; }
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 36px; padding: 52px 20px;
  border-bottom: 1px solid #2A2A2A;
}
.footer__col h4 {
  font-size: .82rem; font-weight: 700; color: var(--white);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--red); display: inline-block;
}
.footer__col ul li { margin-bottom: 8px; }
.footer__col ul a { color: #777; font-size: .845rem; transition: color var(--transition); }
.footer__col ul a:hover { color: var(--white); }
.footer__col p { color: #666; font-size: .845rem; line-height: 1.7; margin-bottom: 16px; }
.footer__logo { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; display: block; letter-spacing: -.03em; }
.footer__social { display: flex; gap: 10px; margin-top: 16px; }
.footer__social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: #2A2A2A; color: #777;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; transition: all var(--transition); border: 1px solid #333;
}
.footer__social a:hover { background: var(--red); color: var(--white); border-color: var(--red); }

.footer__bottom { padding: 16px 20px; }
.footer__bottom .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer__made {
  font-weight: 800; font-size: .82rem; color: var(--amber);
  letter-spacing: .06em; text-transform: uppercase;
}
.footer__copy { color: #555; font-size: .78rem; }
.footer__payments { display: flex; gap: 10px; font-size: 1.3rem; color: #555; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .8rem; padding: 10px 0; margin-bottom: 6px; color: var(--gray-500); }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb__sep { color: var(--gray-300); font-size: .7rem; }
.breadcrumb__current { color: var(--black); font-weight: 500; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 24px 0; }
.pagination a, .pagination span {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: .855rem; font-weight: 600;
}
.pagination a { background: var(--white); color: var(--gray-700); border: 1px solid var(--gray-300); }
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination span.active { background: var(--red); color: var(--white); border: 1px solid var(--red); }
.pagination span.dots { background: transparent; color: var(--gray-400); border: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --navbar-h: 60px; --subnav-h: 0px; }

  .topbar .topbar__text { display: none; }
  .navbar__icon-btn span.icon-label { display: none; }
  .navbar__search { max-width: 200px; }
  .navbar__burger { display: flex; }

  .subnav { display: none; }
  .subnav.open {
    display: block;
    position: fixed;
    top: calc(var(--topbar-h) + var(--navbar-h));
    left: 0; right: 0; bottom: 0;
    overflow-y: auto; z-index: 998;
    background: var(--white);
    border-top: 2px solid var(--red);
    border-bottom: none;
  }
  .subnav.open .subnav__list { flex-direction: column; }
  .subnav__list > li > a { height: auto; padding: 13px 20px; border-bottom: 1px solid var(--gray-200); border-bottom-width: 1px !important; margin-bottom: 0; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 0; border-top: none; border: none; background: var(--gray-100); }
  .dropdown a { padding-left: 36px !important; }

  .hero { padding: 48px 0 40px; }
  .hero__stats { gap: 24px; padding-top: 24px; }

  /* Sidebar als Slide-In Drawer auf Mobile */
  .sidebar {
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    z-index: 1050;
    width: 280px;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 24px rgba(0,0,0,.22);
  }
  .sidebar.sidebar--open { transform: translateX(0) !important; }
  .sidebar-overlay.sidebar--open { display: block !important; }
  .dash-menu-btn {
    display: flex !important;
    align-items: center; justify-content: center;
    position: fixed;
    top: 14px; left: 14px;
    z-index: 1051;
    width: 42px; height: 42px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    font-size: 1.15rem; color: var(--black);
  }
  .dashboard__main { padding: 16px; padding-top: 64px; }
  .form-card { padding: 22px; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 20px; padding: 36px 20px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .navbar__search { display: none; }
  .footer__top { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero__actions { flex-direction: column; }
}

/* ============================================================
   ANIMATIONEN
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeInUp .4s ease both; }
.animate-delay-1 { animation-delay: .08s; }
.animate-delay-2 { animation-delay: .16s; }
.animate-delay-3 { animation-delay: .24s; }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .navbar, .topbar, .footer, .sidebar, .btn { display: none !important; }
}
