/* ═══════════════════════════════════════════════════════════════════════════
   FIRELAX – Responsive & Mobile-First Overlay
   ═══════════════════════════════════════════════════════════════════════════
   Erstellt: 2026-02-26
   Zweck:    Vollständige Responsive-Unterstützung für Smartphones, Tablets,
             Laptops und große Displays. App-ähnliche UX.
   Strategie: Rein additiv – überschreibt bestehende Styles nur innerhalb
              von Media Queries per erhöhter Spezifität.
   Breakpoints:
     320px+  – Kleine Smartphones (iPhone SE, Galaxy S)
     480px+  – Smartphones Landscape / größere Phones
     768px+  – Tablets (iPad, Galaxy Tab)
     1024px+ – Laptops / kleine Desktops
     1440px+ – Große Displays / Ultrawide
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────
   0. CSS CUSTOM PROPERTIES – Responsive Tokens
   ───────────────────────────────────────────────────────────────────────── */
:root {
  /* Bottom Nav Height (nur Mobile) */
  --bottom-nav-height: 3.5rem;       /* 56px */
  --bottom-nav-height-safe: 4.25rem; /* 68px – mit safe-area */

  /* Touch Target Minimum (WCAG 2.5.8 / Apple HIG) */
  --touch-min: 3rem;              /* 48px */

  /* Fluid Typography Scale */
  --fs-hero:     clamp(1.75rem, 5vw + 0.5rem, 3.5rem);
  --fs-h1:       clamp(1.5rem, 3.5vw + 0.25rem, 2.75rem);
  --fs-h2:       clamp(1.25rem, 2.5vw + 0.25rem, 2rem);
  --fs-h3:       clamp(1.1rem, 2vw + 0.2rem, 1.5rem);
  --fs-body:     clamp(0.875rem, 1vw + 0.5rem, 1rem);
  --fs-small:    clamp(0.75rem, 0.8vw + 0.4rem, 0.875rem);

  /* Safe Area Insets (für Notch-Geräte) */
  --sai-top:    env(safe-area-inset-top, 0px);
  --sai-bottom: env(safe-area-inset-bottom, 0px);
  --sai-left:   env(safe-area-inset-left, 0px);
  --sai-right:  env(safe-area-inset-right, 0px);
}

/* ─────────────────────────────────────────────────────────────────────────
   1. GLOBAL BASE – Performance & Smooth Experience
   ───────────────────────────────────────────────────────────────────────── */

/* Smooth Scrolling (respektiert prefers-reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Textgröße konsistent halten (ohne globalen Scroll-Owner-Eingriff) */
html, body {
  -webkit-text-size-adjust: 100%;
}

/* Optimierte Touch-Interaktion */
body {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Safe Areas für Notch/Dynamic Island Geräte */
.safe-area {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Bilder responsive Basis */
img {
  max-width: 100%;
  height: auto;
}

/* ─────────────────────────────────────────────────────────────────────────
   2. FLUID TYPOGRAPHY
   ───────────────────────────────────────────────────────────────────────── */
.hero-title,
.display-3 {
  font-size: var(--fs-hero) !important;
}

h1, .h1, .page-title, .products-hero-title {
  font-size: var(--fs-h1);
}

h2, .h2, .section-header h2, .product-section-title {
  font-size: var(--fs-h2);
}

h3, .h3 {
  font-size: var(--fs-h3);
}

/* ─────────────────────────────────────────────────────────────────────────
   3. MOBILE BOTTOM NAVIGATION (nur ≤768px)
   ───────────────────────────────────────────────────────────────────────── */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    padding-bottom: var(--sai-bottom);
    background: linear-gradient(180deg, #0f131a 0%, #0d1015 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1050;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .mobile-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    flex: 1;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.4rem 0;
    min-height: var(--touch-min);
    transition: color 0.2s ease;
    position: relative;
  }

  .mobile-bottom-nav__item i {
    font-size: 1.15rem;
    line-height: 1;
  }

  .mobile-bottom-nav__item.mobile-bottom-nav__item--active,
  .mobile-bottom-nav__item:hover {
    color: var(--brand-gold, #F5A623);
  }

  .mobile-bottom-nav__item.mobile-bottom-nav__item--active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5rem;
    height: 2px;
    background: var(--brand-gold, #F5A623);
    border-radius: 0 0 2px 2px;
  }

  /* Badge auf Bottom Nav Cart */
  .mobile-bottom-nav__badge,
  .mobile-bottom-nav .cart-badge-count {
    position: absolute;
    top: 0.15rem;
    right: calc(50% - 1.1rem);
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.3rem;
    background: var(--error, #EF4444);
    border-radius: 99px;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: none;
    border: none;
    transform: none;
  }

  /* Abstand für Body damit Content nicht von Bottom Nav verdeckt wird */
  body {
    padding-bottom: var(--bottom-nav-height-safe);
  }

  /* Footer braucht extra Abstand */
  .footer-dark,
  .premium-footer {
    padding-bottom: calc(var(--bottom-nav-height) + 1rem);
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   4. STICKY HEADER – Mobile Optimierung
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar,
  .shop-header {
    padding: 0.5rem 0;
  }

  .navbar-logo {
    height: 34px;
  }

  .navbar-brand {
    font-size: 1.3rem;
  }

  /* Search im Collapse kompakter */
  .navbar-collapse .search-wrapper {
    margin: 0.5rem 0;
  }

  .search-input-group .form-control {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  /* Nav-Links Touch-freundlich */
  .navbar-nav .nav-link {
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem;
  }

  /* Dropdown Items Touch-freundlich */
  .dropdown-menu-dark .dropdown-item {
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   5. HERO SECTION – Responsive
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-modern {
    padding: 3rem 0 1.5rem;
    text-align: center;
  }

  .hero-subtitle {
    font-size: var(--fs-body);
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
  }

  .trust-badges {
    justify-content: center;
    gap: 1rem;
  }

  .trust-item {
    font-size: 0.8rem;
    gap: 0.5rem;
  }

  .trust-item i {
    font-size: 1rem;
  }

  .min-vh-75 {
    min-height: auto;
  }

  /* Hero Background Video */
  .hero-bg-video {
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .hero-modern {
    padding: 2rem 0 1rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .trust-badges {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   6. PRODUCT CARD – Responsive Grid & Touch
   ───────────────────────────────────────────────────────────────────────── */

/* Product Grid (aus _ProductGrid.cshtml) – Smartphone */
@media (max-width: 480px) {
  .product-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  /* Kompaktere Karten auf kleinen Screens */
  .product-card {
    padding: 0.5rem;
    border-radius: 12px;
  }

  .card-visual-header {
    height: 140px;
    border-radius: 10px;
    clip-path: none;
    padding-bottom: 0;
  }

  .card-content {
    padding: 0.5rem 0.25rem 0;
  }

  .product-title {
    font-size: 0.8rem !important;
    height: auto;
    -webkit-line-clamp: 2;
    min-height: unset;
  }

  .current-price {
    font-size: 1.1rem;
  }

  .original-price {
    font-size: 0.75rem;
  }

  .category-tag {
    font-size: 0.6rem;
    padding: 3px 8px;
  }

  .card-footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .card-actions-bottom {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.25rem 0.25rem;
  }

  .btn-add-to-cart-block {
    font-size: 0.75rem;
    padding: 0.625rem 0.5rem;
    min-height: var(--touch-min);
  }

  .btn-wishlist-block {
    width: 100%;
    min-height: var(--touch-min);
  }

  /* Qty Selector kompakter */
  .qty-selector-mock {
    height: 2rem;
  }

  .qty-btn {
    width: 1.5rem;
  }

  .qty-input {
    width: 2rem;
    font-size: 0.8rem;
  }
}

/* Product Grid – 2 Spalten bei 320–480px (Featured Products) */
@media (max-width: 480px) {
  .row .col-lg-3,
  .row .col-md-4,
  .row .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}

/* Featured Products – responsive */
@media (max-width: 768px) {
  .product-card-modern {
    border-radius: 14px;
  }

  .product-image-container {
    padding: 12px;
  }

  .product-content {
    padding: 12px 12px 8px;
  }

  .product-content .product-title {
    font-size: 0.8rem;
    min-height: auto;
  }

  .price-current {
    font-size: 1rem;
  }

  .price-original {
    font-size: 0.75rem;
  }

  .product-card-actions {
    padding: 0 12px 12px;
  }

  .product-btn-cart {
    min-height: var(--touch-min);
    font-size: 0.75rem;
    padding: 0.75rem;
  }
}

/* Premium Product Cards – responsive Touch-Targets */
@media (max-width: 768px) {
  .btn-add-cart {
    min-height: var(--touch-min);
    font-size: 0.85rem;
  }

  .quick-action-btn {
    width: var(--touch-min);
    height: var(--touch-min);
  }

  .product-card-content {
    padding: var(--space-4, 1rem);
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   7. CATEGORY GRID – Responsive
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .category-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .category-card-item {
    padding: 0.875rem 1rem;
    min-height: var(--touch-min);
  }

  .category-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    border-radius: 10px;
  }

  .category-card-icon i {
    font-size: 1.1rem;
  }

  .category-card-name {
    font-size: 0.95rem;
  }

  .category-card-count {
    font-size: 0.8rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   8. FILTER BAR – Responsive (Products Page)
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .premium-filter-bar {
    top: 0; /* Navbar scrollt ggf. weg */
    padding: 0.75rem 0;
  }

  .filter-bar-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .filter-groups {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }

  .filter-groups::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex-shrink: 0;
    min-height: var(--touch-min);
    padding: 0.5rem 1rem;
  }

  .sort-dropdown {
    width: 100%;
  }

  .sort-select {
    width: 100%;
    min-height: var(--touch-min);
  }

  .view-toggle {
    display: none; /* Grid/List Toggle verstecken – Mobile immer Grid */
  }

  /* Products Grid auf Mobile: immer 2 Spalten */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    gap: 0.5rem;
  }

  .filter-bar-container {
    padding: 0 0.75rem;
  }
}

@media (min-width: 1440px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   9. PRODUCT DETAILS – Responsive
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .product-page {
    padding-bottom: 2rem;
  }

  /* Reviews Grid stacked */
  .product-reviews-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-section {
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .product-section-title {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .product-section {
    border-radius: 10px;
    padding: 0.75rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   10. CART – Responsive Erweiterung
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cart-container {
    padding: 0 0.75rem;
  }

  .cart-items-header {
    padding: 0.75rem 1rem;
  }

  .cart-items-title {
    font-size: 1rem;
  }

  /* Summary Card füllt gesamte Breite */
  .cart-summary {
    position: static !important;
  }

  /* Checkout Button Sticky am unteren Rand */
  .cart-summary .btn-checkout,
  .cart-summary [class*="btn"][class*="checkout"] {
    position: sticky;
    bottom: var(--bottom-nav-height-safe, 4.25rem);
    z-index: 100;
    border-radius: 0.75rem;
    min-height: 3rem;
  }
}

@media (max-width: 480px) {
  .cart-container {
    padding: 0 0.5rem;
  }

  /* Cart Item kompakt */
  .cart-item-image {
    width: 4rem;
    height: 4rem;
  }

  .cart-item-image img {
    border-radius: 0.5rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   11. CART POPUP – Responsive
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cart-popup {
    width: calc(100vw - 1rem) !important;
    max-width: none !important;
    margin: 0 0.5rem;
    border-radius: 14px;
  }

  .cart-popup-body {
    padding: 0.75rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   12. FOOTER – Responsive
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer-dark {
    margin-top: 3rem;
  }

  .footer-dark .row {
    text-align: left;
  }

  .footer-dark .footer-heading {
    margin-bottom: 0.75rem;
    font-size: 1.08rem;
  }

  .footer-dark .footer-links {
    margin-bottom: 1rem;
  }

  /* Touch-optimierte Footer Links */
  .footer-dark .footer-links a,
  .footer-dark .footer-link {
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0;
  }

  .footer-dark .footer-cta-group {
    justify-content: flex-start;
  }

  .social-links {
    justify-content: center;
  }

  .social-link {
    width: var(--touch-min);
    height: var(--touch-min);
  }

  /* Trust Bar responsive */
  .trust-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    text-align: left;
  }

  .trust-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  /* Footer Bottom */
  .footer-bottom-content {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .trust-items {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .footer-cta-group {
    width: 100%;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   13. ACCOUNT / AUTH PAGES – Responsive
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .auth-container,
  .login-container,
  .register-container {
    padding: 1.5rem 1rem;
    margin: 1rem;
    border-radius: 14px;
  }

  .auth-container .form-control,
  .login-container .form-control,
  .register-container .form-control {
    min-height: var(--touch-min);
    font-size: 1rem; /* Verhindert iOS Zoom */
  }

  .auth-container .btn,
  .login-container .btn,
  .register-container .btn {
    min-height: var(--touch-min);
    width: 100%;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   14. CUSTOMER SETTINGS – Responsive
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .settings-tabs,
  .nav-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .settings-tabs::-webkit-scrollbar,
  .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-tabs .nav-link {
    white-space: nowrap;
    min-height: var(--touch-min);
    padding: 0.75rem 1rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   15. COOKIE SETTINGS POPUP – Responsive
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cke-container {
    margin: 0.5rem;
    padding: 1.25rem;
    border-radius: 16px;
    max-height: calc(100vh - 1rem);
    -webkit-overflow-scrolling: touch;
  }

  .cke-header h2 {
    font-size: 1.1rem;
  }

  .cke-header p {
    font-size: 0.85rem;
  }

  .cke-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cke-btn {
    width: 100%;
    min-height: var(--touch-min);
    font-size: 0.9rem;
  }

  .cke-category-header {
    gap: 0.5rem;
  }

  .cke-cookie-table {
    font-size: 0.75rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   16. MODALS – Responsive (Wishlist Modal etc.)
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100vw - 1rem);
  }

  .modal-content {
    border-radius: 16px;
  }

  .modal-body .list-group-item {
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
  }

  .modal-footer .btn {
    min-height: var(--touch-min);
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   17. SALE SECTION – Responsive
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .product-card-sale {
    padding: 0.75rem;
    border-radius: 12px;
  }

  .sale-image-mini {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 8px;
  }

  .sale-title {
    font-size: 0.8rem;
  }

  .price-sale {
    font-size: 0.95rem;
  }

  .sale-link {
    width: 2rem;
    height: 2rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   18. PAGINATION – Touch-Optimiert
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.375rem;
  }

  .page-item .page-link {
    width: var(--touch-min);
    height: var(--touch-min);
    font-size: 0.85rem;
    border-radius: 0.625rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   19. FORMS – Touch & iOS-Zoom-Prevention
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* iOS zoomt bei font-size < 16px auf Input-Focus */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  select,
  textarea {
    font-size: 1rem !important;
  }

  /* Touch-freundliche Form Controls */
  .form-control,
  .form-select {
    min-height: var(--touch-min);
    padding: 0.625rem 0.75rem;
  }

  /* Buttons brauchen Touch-Targets */
  .btn {
    min-height: var(--touch-min);
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   20. LIST VIEW – Mobile-Optimiert (Product Cards)
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .product-grid.list-view .product-card {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .product-grid.list-view .card-visual-header {
    min-height: 140px;
    border-radius: 10px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   21. BADGE POSITIONING – Mobile-Anpassung
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .badge-overlay {
    top: 8px;
    font-size: 0.65rem;
    padding: 4px 6px;
  }

  .badge-sale {
    right: 8px;
  }

  .badge-low-stock {
    left: 8px;
  }

  .product-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.5rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   22. EMPTY STATES – Responsive
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .products-empty {
    padding: 3rem 1rem;
  }

  .products-empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
  }

  .products-empty-icon i {
    font-size: 2rem;
  }

  .products-empty h3 {
    font-size: 1.25rem;
  }

  .products-empty p {
    font-size: 0.9rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   23. WAVE DIVIDER – Mobile
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .wave-divider {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .wave-divider {
    height: 30px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABLET (768px+)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  /* Ensure product grid shows 2-3 columns */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  /* Cart Grid: auf Tablet noch stacked */
  .cart-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAPTOP (1024px+)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  /* Cart Grid: 2 Spalten */
  .cart-grid {
    grid-template-columns: 1fr 380px;
  }

  /* Bessere Product Hover effects auf Desktop */
  .product-card:hover,
  .premium-product-card:hover,
  .product-card-modern:hover {
    transform: translateY(-6px);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LARGE DISPLAYS (1440px+)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1440px) {
  /* Mehr Platz für Content */
  .products-container {
    max-width: 1600px;
  }

  .cart-container {
    max-width: 1400px;
  }

  .cart-grid {
    grid-template-columns: 1fr 420px;
    gap: 2.5rem;
  }

  /* Größere Product Image Container */
  .product-card .card-visual-header {
    height: 240px;
  }

  .category-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY & REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDSCAPE SMARTPHONE – Horizontale Orientierung
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-height: 480px) and (orientation: landscape) {
  .hero-modern {
    padding: 1.5rem 0 1rem;
    min-height: auto;
  }

  .min-vh-75 {
    min-height: auto;
  }

  .mobile-bottom-nav {
    height: 2.75rem;
  }

  .mobile-bottom-nav__item {
    flex-direction: row;
    gap: 0.4rem;
    font-size: 0.7rem;
  }

  .mobile-bottom-nav__item i {
    font-size: 1rem;
  }

  body {
    padding-bottom: 3rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRINT – Verstecke UI-Elemente beim Drucken
   ═══════════════════════════════════════════════════════════════════════════ */
@media print {
  .mobile-bottom-nav,
  .navbar,
  .shop-header,
  .cart-popup-overlay,
  .cke-overlay,
  .cookie-settings-popup {
    display: none !important;
  }

  body {
    padding-bottom: 0 !important;
    padding-top: 0 !important;
  }
}
