/* ============================================= */
/* TRIKON HOMEPAGE v1.0                          */
/* Brandfarbe: #04697e                           */
/* ============================================= */

/* ========================= */
/* ALTE TEAL-LEISTE VERSTECKEN */
/* ========================= */
/* Alte schwarze Navigationsleiste verstecken (nur wenn unsere Navbar aktiv) */
.trikon-hp-navbar ~ .nav-full .top-menu-link,
div.nav-full .top-menu-link {
  display: none !important;
}

/* ========================= */
/* HOMEPAGE FULL-WIDTH LAYOUT */
/* ========================= */
/* Garantien-Leiste füllt den Wrapper. Der Slider hat eine eigene Regel
   weiter unten mit max-width: 1200px — hier NICHT in den combined selector
   aufnehmen, sonst überschreibt max-width:none den Slider-Cap. */
.trikon-hp-guarantees {
  width: 100%;
  clear: both;
}

/* Rechte Sidebar (GRATIS VERSAND etc.) auf Homepage verstecken */
body#index #right-column .block-reassurance,
body#index #right-column .deliveryinfo,
body#index .deliveryinfo {
  display: none !important;
}

/* Alte wbimageslider auf Homepage verstecken (unser Slider ersetzt ihn) */
body#index .homeslider-container,
body#index #homeslider-container {
  display: none !important;
}

/* ========================= */
/* SCHWARZE KATEGORIE-NAVBAR  */
/* ========================= */
/* Header muss über der Navbar liegen, damit Dropdowns (Mein Konto/Einloggen) nicht verdeckt werden */
#header,
header#header {
  position: relative !important;
  z-index: 100 !important;
}

/* User-Info Dropdown im Header muss über allem liegen */
#header .user-info,
#header .dropdown-menu,
#_desktop_user_info,
#_desktop_user_info .user-down {
  z-index: 200 !important;
}

.trikon-hp-navbar {
  background: #1a1a1a;
  width: 100%;
  overflow: visible;
  position: relative;
  z-index: 20 !important;
}

/* Scroll-Hinweis: Fade am rechten Rand auf Mobile */
.trikon-hp-navbar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, #1a1a1a);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.trikon-hp-navbar.has-scroll-right::after {
  opacity: 1;
}

.trikon-hp-navbar-scroll {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 10px;
  overflow: visible;
  scrollbar-width: none;
}

@media (max-width: 991px) {
  .trikon-hp-navbar {
    overflow: hidden;
    z-index: auto;
  }
  .trikon-hp-navbar-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.trikon-hp-navbar-scroll::-webkit-scrollbar {
  display: none;
}

.trikon-hp-navbar-link {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.85rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
  border-bottom: 2px solid transparent;
}

.trikon-hp-navbar-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
  border-bottom-color: #04697e;
  text-decoration: none;
}

.trikon-hp-navbar-link--highlight {
  color: #fff;
  font-weight: 600;
}

.trikon-hp-navbar-sep {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
  margin: 0 0.3rem;
}

/* ========================= */
/* "MEHR" OVERFLOW-DROPDOWN  */
/* ========================= */
.trikon-hp-navbar-more {
  position: relative;
  flex-shrink: 0;
}

.trikon-hp-navbar-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.65rem 0.85rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
  border-bottom: 2px solid transparent;
}

.trikon-hp-navbar-more-btn:hover,
.trikon-hp-navbar-more.is-open .trikon-hp-navbar-more-btn {
  color: #fff;
  background: rgba(255,255,255,0.06);
  border-bottom-color: #04697e;
}

.trikon-hp-navbar-more.is-open .trikon-hp-navbar-more-btn svg {
  transform: rotate(180deg);
}

.trikon-hp-navbar-more-btn svg {
  transition: transform 0.2s ease;
}

.trikon-hp-navbar-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 220px;
  max-width: 300px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 2px solid #04697e;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  z-index: 1000;
  padding: 6px 0;
}

.trikon-hp-navbar-more.is-open .trikon-hp-navbar-dropdown {
  display: block;
}

.trikon-hp-navbar-dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.trikon-hp-navbar-dropdown a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
}

/* Auf Mobile: kein Mehr-Dropdown, stattdessen Scroll */
@media (max-width: 991px) {
  .trikon-hp-navbar-more {
    display: none !important;
  }
  .trikon-hp-navbar-link--cat.trikon-hp-navbar-link--overflow {
    display: inline-flex !important;
  }
}

/* ========================= */
/* HERO SLIDER (PEEK-STYLE)  */
/* ========================= */
.trikon-hp-slider {
  /* Match the production "peek" style: slider takes its full natural width,
     no max-width cap. Centering is handled by the surrounding theme layout
     (the slider sits inside the theme's content area). */
  position: relative;
  display: block;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  padding: 1.2rem 0 0.8rem;
  background: transparent;
  box-sizing: border-box;
}

.trikon-hp-slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: grab;
  gap: 1rem;
  /* Default (≥1200px): symmetrisches Padding zentriert die 1200px Slide.
     Schmälere Viewports werden über Media Queries weiter unten geregelt.
     KEIN min()/max() — PrestaShop CCC-Minifier zerschießt das. */
  padding-left: calc((100% - 1200px) / 2);
  padding-right: calc((100% - 1200px) / 2);
}

.trikon-hp-slider-track.is-dragging {
  cursor: grabbing;
  transition: none;
}

.trikon-hp-slide {
  /* WICHTIG: Slot-Breite (flex-basis) = Slide-Breite (max-width), sonst
     driftet das JS-Snap. Default: 1200px (Desktop). Schmälere Viewports
     bekommen 100% via Media Queries — KEIN min()/max() weil PS CCC-Minifier
     das zerschießt. */
  flex: 0 0 1200px;
  max-width: 1200px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  opacity: 1;
  transform: none;
  transition: opacity 0.3s ease;
}

.trikon-hp-slide.is-active {
  opacity: 1;
}

.trikon-hp-slide--clone {
  /* Klone sehen gleich aus */
}

.trikon-hp-slide a {
  display: block;
}

.trikon-hp-slide img {
  /* KEIN Crop, KEINE feste Aspect-Ratio. Bild wird 1:1 in seiner
     natürlichen Größe gezeigt, höchstens auf Slide-Breite begrenzt
     (max-width 100% verhindert Hochskalierung über Naturgröße,
     width: auto + height: auto behält das Originalverhältnis). */
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Slide nimmt exakt die Bildhöhe an — kein min-height (sonst weißer
   Streifen unter kleinen Bildern auf Mobile) und kein Hintergrund
   (sonst hätte man horizontal/vertikal sichtbare graue Ränder). */

/* Pfeile */
.trikon-hp-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.trikon-hp-slider-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.trikon-hp-slider-btn svg {
  width: 20px;
  height: 20px;
  color: #333;
}

/* Pfeile am Rand der aktiven Slide, vw-basiert wie Produktion */
.trikon-hp-slider-btn--prev { left: calc(17.5vw - 28px); }
.trikon-hp-slider-btn--next { right: calc(17.5vw - 28px); }

/* Dots */
.trikon-hp-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.trikon-hp-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.trikon-hp-slider-dot--active {
  background: #04697e;
  transform: scale(1.2);
}

/* ========================= */
/* GARANTIE-LEISTE (GLASS)    */
/* ========================= */
.trikon-hp-guarantees {
  padding: 1.2rem 0;
  position: relative;
}

.trikon-hp-guarantees::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, #f5f5f5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.trikon-hp-guarantees.has-scroll-right::after {
  opacity: 1;
}

.trikon-hp-guarantees-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.trikon-hp-guarantee {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: #333;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.trikon-hp-guarantee:hover {
  text-decoration: none;
  color: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: rgba(4,105,126,0.2);
}

.trikon-hp-guarantee-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(4,105,126,0.08);
  color: #04697e;
}

.trikon-hp-guarantee-icon svg {
  width: 28px;
  height: 28px;
}

.trikon-hp-guarantee-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.trikon-hp-guarantee-text strong {
  font-size: 1rem;
  color: #232323;
}

.trikon-hp-guarantee-text span {
  font-size: 0.85rem;
  color: #777;
}

.trikon-hp-guarantee-text small {
  font-size: 0.7rem;
  color: #999;
  margin-top: 2px;
  font-style: italic;
}

/* ============================================= */
/* RESPONSIVE                                    */
/* ============================================= */
@media (max-width: 1199px) {
  .trikon-hp-navbar-link { padding: 0.6rem 0.65rem; font-size: 0.78rem; }
  /* Slider-Fallback: Viewport schmaler als 1200px → Padding 0, Slide = 100% */
  .trikon-hp-slider-track { padding-left: 0; padding-right: 0; }
  .trikon-hp-slide { flex: 0 0 100%; max-width: 100%; }
}

@media (max-width: 991px) {
  .trikon-hp-navbar-scroll { justify-content: flex-start; }
  .trikon-hp-guarantees-inner { grid-template-columns: repeat(2, 1fr); }
  /* Slide 80vw + 10vw Padding × 2 = 100vw → exakt zentriert */
  .trikon-hp-slider-track { padding-left: 10vw; padding-right: 10vw; }
  .trikon-hp-slide { flex: 0 0 80vw; }
  .trikon-hp-slider-btn--prev { left: 1rem; }
  .trikon-hp-slider-btn--next { right: 1rem; }
}

@media (max-width: 767px) {
  .trikon-hp-navbar-link { padding: 0.55rem 0.6rem; font-size: 0.75rem; }
  .trikon-hp-slider { padding: 1rem 0 0.8rem; }
  /* Mobil: 90vw Slide + 5vw Padding × 2 = 100vw → zentriert.
     Auf Smartphone leistet Peek nicht viel, daher kleinere Seitenränder
     für mehr Slide-Breite. */
  .trikon-hp-slider-track { padding-left: 5vw; padding-right: 5vw; gap: 0.5rem; }
  .trikon-hp-slide { flex: 0 0 90vw; border-radius: 8px; }
  .trikon-hp-slider-btn { width: 36px; height: 36px; }
  .trikon-hp-slider-btn svg { width: 16px; height: 16px; }
  .trikon-hp-slider-btn--prev { left: 0.3rem; }
  .trikon-hp-slider-btn--next { right: 0.3rem; }

  /* Garantien: horizontal scrollbar */
  .trikon-hp-guarantees { overflow: hidden; }
  .trikon-hp-guarantees-inner {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.5rem;
  }
  .trikon-hp-guarantees-inner::-webkit-scrollbar { display: none; }
  .trikon-hp-guarantee {
    flex: 0 0 auto;
    min-width: 200px;
    padding: 0.5rem 1rem;
  }
  .trikon-hp-guarantee-icon { width: 36px; height: 36px; }
  .trikon-hp-guarantee-icon svg { width: 18px; height: 18px; }
}

@media (max-width: 479px) {
  .trikon-hp-guarantee { min-width: 180px; }
}
