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

/* ========== HERO SLIDER ========== */
.home-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  max-height: 700px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 60px;
}

.hero-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-track {
  display: flex;
  height: 100%;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hero-track::-webkit-scrollbar { display: none; }

.hero-slide {
  min-width: 100%;
  height: 100%;
  scroll-snap-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Background Image Settings */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #f5f5f5;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.1) 50%,
    rgba(0,0,0,0.4) 100%
  );
  z-index: 1;
}

.hero-caption {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  padding: 0 24px;
  color: #fff;
  max-width: 800px;
  width: 100%;
  z-index: 2;
}

.hero-title {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px 0;
  /*text-shadow: 0 2px 8px rgba(0,0,0,0.5);*/
}

.hero-text {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  margin: 0 0 24px 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  opacity: 0.95;
}

.hero-bg-image {
  /* Screen Reader only - für Accessibility */
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.button.button--primary {
  background: #fff;
  color: #111;
  border: 2px solid #fff;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.button.button--primary:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

/* Hero Navigation */
.hero-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 3;
  padding: 0 32px;
}

.hero-prev,
.hero-next {
  pointer-events: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hero-prev::before,
.hero-next::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.hero-prev:hover::before,
.hero-next:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.hero-prev:hover,
.hero-next:hover {
  border-color: rgba(255,255,255,0.6);
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  justify-content: center;
  z-index: 3;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.1);
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hero-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dot.is-active::before {
  transform: translate(-50%, -50%) scale(1);
}

.hero-dot.is-active {
  border-color: #fff;
  transform: scale(1.3);
}

.hero-dot:hover {
  border-color: rgba(255,255,255,0.8);
  transform: scale(1.2);
}

/* ========== KATEGORIE SLIDER ========== */
.home-cats {
  margin: 80px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0;
}

.home-cats.container {
  max-width: none;
  padding: 0;
}

/* Container-Override für diesen speziellen Fall */
.home-cats .container {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Falls das Template einen wrapper hat */
.home-ultra .home-cats,
.home-ultra .home-cats .container,
section.home-cats,
section.home-cats.container {
  max-width: none !important;
  width: 100vw !important;
  padding: 0 !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  left: 50% !important;
  right: 50% !important;
  position: relative !important;
}

.home-cats .home-head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
  position: relative;
  padding: 0 40px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}

.home-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  margin: 0;
  text-align: center;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  position: relative;
}

.home-head h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #8B0000, #2c2c2c);
}

.rail {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding: 20px 40px 60px 40px; /* Mehr Padding unten */
  justify-content: flex-start;
  width: 100%;
  
  /* Scrollbar ausblenden - alle Browser */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rail::-webkit-scrollbar {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
}

.cat-card {
  flex: 0 0 clamp(180px, 20vw, 240px);
  scroll-snap-align: center;
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(139,0,0,0.05), rgba(44,44,44,0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.cat-card:hover::before {
  opacity: 1;
}

.cat-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.cat-media {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.cat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-card:hover .cat-media img {
  transform: scale(1.1);
}

.cat-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 20px 16px; /* Mehr Padding für bessere Lesbarkeit */
  font-weight: 600;
  text-align: center;
  font-size: 16px;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.8) 100%);
  color: #fff;
  letter-spacing: 0.01em;
  z-index: 3;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-card:hover .cat-title {
  transform: translateY(0);
}

.cat-subtitle {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 16px 8px 16px; /* Mehr Padding unten */
  font-weight: 300;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  background: transparent;
  z-index: 3;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.1s;
}

.cat-card:hover .cat-subtitle {
  transform: translateY(0);
}

.rail-nav {
  position: absolute;
  right: 40px;
  top: calc(50% + 24px);
  transform: translateY(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.rail-prev,
.rail-next {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  color: #666;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.rail-prev::before,
.rail-next::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #8B0000, #2c2c2c);
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.rail-prev:hover::before,
.rail-next:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.rail-prev:hover,
.rail-next:hover {
  color: #fff;
  border-color: transparent;
  transform: scale(1.1);
}

/* ========== LATEST PRODUCTS ========== */
.home-latest {
  margin: 80px auto;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 32px;
  position: relative;
  max-width: 1400px;
  width: 100%;
}

.home-latest::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139,0,0,0.02), rgba(44,44,44,0.02));
  border-radius: 32px;
  pointer-events: none;
}

.home-latest .container {
  max-width: 1200px;
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 0;
}

.home-latest h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  margin: 0 0 48px 0;
  text-align: center;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  position: relative;
}

.home-latest h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, #8B0000, #2c2c2c);
}

.home-products {
  margin-top: 0;
}

.home-products .products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  justify-content: center;
  max-width: 100%;
  margin: 0 auto;
}

/* Woo Product Cards Styling */
.home-products .products .product {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  position: relative;
}

.home-products .products .product::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(139,0,0,0.03), rgba(44,44,44,0.03));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.home-products .products .product:hover::before {
  opacity: 1;
}

.home-products .products .product:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.home-products .products .product img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-products .products .product:hover img {
  transform: scale(1.05);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .home-products .products {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  
  .hero-prev,
  .hero-next {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
  
  .rail-nav {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    justify-content: center;
    margin-top: 32px;
  }
  
  .home-cats .home-head {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .home-hero {
    height: 50vh;
    min-height: 350px;
    border-radius: 16px;
    margin-bottom: 60px;
  }
  
  .hero-caption {
    padding: 0 20px;
  }
  
  .hero-title {
    margin-bottom: 12px;
  }
  
  .hero-text {
    margin-bottom: 20px;
  }
  
  .button.button--primary {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .home-products .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .cat-card {
    min-width: 180px;
  }
  
  .home-cats,
  .home-latest {
    margin: 60px 0;
  }
  
  .home-latest {
    padding: 40px 16px;
  }
  
  .rail {
    gap: 20px;
    padding: 16px 0 24px 0;
  }
  
  .home-cats .home-head {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .hero-prev,
  .hero-next {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
  
  .hero-dots {
    bottom: 20px;
    gap: 12px;
    padding: 8px 16px;
  }
  
  .hero-dot {
    width: 10px;
    height: 10px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .cat-card {
    min-width: 160px;
  }
  
  .rail-prev,
  .rail-next {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
  
  .home-latest {
    border-radius: 20px;
    padding: 32px 16px;
  }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .cat-card,
  .hero-prev,
  .hero-next,
  .hero-dot,
  .button.button--primary {
    transition: none !important;
  }
  
  .cat-card:hover .cat-media img {
    transform: none;
  }
}

/* Screen Reader Only Class */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}