/* ==========================================
   KANUBAU KRAUSS
   Joomla 6 / Cassiopeia_extended
   Startseite + HikaShop
   Stand: 16.10.2026
   ========================================== */

/* GRUNDFARBEN */

.kk-startseite {
  --kk-blau: #143755;
  --kk-orange: #bd702b;
  --kk-hell: #f2f6f8;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--kk-blau);
}

.kk-startseite *,
.kk-startseite *::before,
.kk-startseite *::after {
  box-sizing: border-box;
}

.kk-startseite h1,
.kk-startseite h2,
.kk-startseite h3 {
  color: var(--kk-blau);
  font-weight: 700;
}

/* KOPFBEREICH UND KLEINES LOGO */

.container-header {
  background: #ffffff;
  background-image: none;
  padding: 5px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.container-header .grid-child,
.container-header .container-nav,
.container-header .container-header-inner {
  width: 100%;
  max-width: none;
}

.container-header .grid-child {
  padding-left: clamp(16px, 4vw, 70px);
  padding-right: clamp(16px, 4vw, 70px);
}

.container-header .navbar-brand {
  padding: 0;
  margin: 0;
}

.container-header .navbar-brand img,
.container-header .brand-logo img {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  max-height: 85px;
  object-fit: contain;
  object-position: left center;
}

/* STARTSEITE ÜBER DIE GANZE BREITE */

body:has(.kk-startseite) {
  overflow-x: clip;
}

body:has(.kk-startseite) .site-grid {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}

body:has(.kk-startseite)
.site-grid > .container-component {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body:has(.kk-startseite) main,
body:has(.kk-startseite) .com-content-article,
body:has(.kk-startseite) .com-content-article__body {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* GROSSES STARTSEITENBILD */

.kk-startseite .kk-hero {
  position: relative;
  width: 100%;
  min-height: clamp(390px, 35vw, 600px);
  padding: clamp(35px, 5vw, 85px);
  display: flex;
  align-items: center;

  background:
    linear-gradient(
      90deg,
      rgba(10,32,49,.85) 0%,
      rgba(10,32,49,.55) 45%,
      rgba(10,32,49,.05) 100%
    ),
    url('/images/banners/holzkanu-am-see-startseite.jpg')
    center center / cover no-repeat;

  color: #ffffff;
}

.kk-startseite .kk-hero-inhalt {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 650px;
}

.kk-startseite .kk-hero h1 {
  color: #ffffff;
  font-size: clamp(32px, 3.5vw, 58px);
  line-height: 1.12;
  margin-bottom: 15px;
}

.kk-startseite .kk-hero p {
  color: #ffffff;
  font-size: clamp(16px, 1.4vw, 19px);
}

/* ORANGEFARBENE SCHALTFLÄCHEN */

.kk-startseite .kk-button {
  display: inline-block;
  background: var(--kk-orange);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: background .2s ease;
}

.kk-startseite .kk-button:hover,
.kk-startseite .kk-button:focus-visible {
  background: #95551e;
  color: #ffffff;
}

.kk-startseite .kk-hero .kk-button {
  margin: 10px 10px 0 0;
}

/* STARTSEITEN-PRODUKTBEREICHE */

.kk-startseite .kk-shopprodukte {
  width: 100%;
  max-width: none;
  padding:
    clamp(28px, 3vw, 55px)
    clamp(16px, 4vw, 70px);
}

.kk-startseite .kk-shopprodukte:nth-of-type(odd) {
  background: var(--kk-hell);
}

.kk-startseite .kk-shopprodukte h2 {
  font-size: clamp(24px, 2vw, 32px);
  margin-bottom: 12px;
}

/* STARTSEITEN-PRODUKTKARTEN */

.kk-startseite .kk-produkte {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.kk-startseite .kk-produkt {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 3px 10px rgba(0,0,0,.06);
  transition: transform .2s ease;
}

.kk-startseite .kk-produkt:hover {
  transform: translateY(-3px);
}

.kk-startseite .kk-produkt h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.kk-startseite .kk-produkt p {
  min-height: 48px;
}

.kk-startseite .kk-produkt .kk-button {
  margin-top: 12px;
}

/* HIKASHOP: SHOPBREITE */

body:has(.hikashop_category_listing) {
  overflow-x: clip;
}

body:has(.hikashop_category_listing)
.site-grid {
  display: block;
  width: 100%;
  max-width: none;
}

body:has(.hikashop_category_listing)
.site-grid > .container-component {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 20px clamp(16px, 4vw, 70px);
}

/* HIKASHOP: KATEGORIEBILDER */

.hikashop_category_listing img {
  max-width: 100%;
  height: auto;
}

/* RESPONSIVE STARTSEITE */

/* Kleinere Computer */

@media (max-width: 1600px) {
  .kk-startseite .kk-produkte {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

/* Tablets */

@media (max-width: 900px) {
  .kk-startseite .kk-produkte {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .kk-startseite .kk-hero {
    min-height: 380px;
    padding: 35px 25px;
  }
}

/* Smartphones */

@media (max-width: 600px) {

  .container-header .navbar-brand img,
  .container-header .brand-logo img {
    width: 190px;
    max-height: 70px;
  }

  .kk-startseite .kk-produkte {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .kk-startseite .kk-hero {
    min-height: 380px;
    padding: 30px 18px;
    background-position: 60% center;
  }

  .kk-startseite .kk-hero h1 {
    font-size: 30px;
  }

  .kk-startseite .kk-hero p {
    font-size: 16px;
  }

  .kk-startseite .kk-hero .kk-button {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 10px 0;
  }

  .kk-startseite .kk-shopprodukte {
    padding: 25px 15px;
  }

  .kk-startseite .kk-produkt {
    padding: 18px;
  }

  body:has(.hikashop_category_listing)
  .site-grid > .container-component {
    padding: 15px;
  }
}

/* Kanubau Krauss – HikaShop Karussell */

.hikashop_category_listing .hikashop_categories,
.hikashop_products_listing .hikashop_products {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  gap: 18px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 12px 4px 20px;
}

.hikashop_category_listing .hikashop_categories > *,
.hikashop_products_listing .hikashop_products > * {
  flex: 0 0 calc(25% - 14px);
  min-width: 0;
  scroll-snap-align: start;
}

@media (max-width: 900px) {
  .hikashop_category_listing .hikashop_categories > *,
  .hikashop_products_listing .hikashop_products > * {
    flex-basis: calc(50% - 9px);
  }
}

@media (max-width: 600px) {
  .hikashop_category_listing .hikashop_categories > *,
  .hikashop_products_listing .hikashop_products > * {
    flex-basis: 85%;
  }
}

/* Schlichte Navigationspfeile ohne Buttons */

.kk-slider-arrow {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #143755 !important;
    font-size: 42px !important;
    font-weight: 300 !important;
    width: 40px !important;
    height: 50px !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.kk-slider-arrow:hover:not(:disabled) {
    background: transparent !important;
    color: #bd702b !important;
}

.kk-slider-arrow:disabled {
    background: transparent !important;
    opacity: 0.25;
}

/* Pfeile seitlich neben dem Karussell */

.kk-slider-controls {
    position: relative !important;
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    top: 105px;
    z-index: 10;
    pointer-events: none;
}

.kk-slider-controls .kk-slider-arrow {
    pointer-events: auto;
}

.kk-slider {
    width: calc(100% - 100px) !important;
    margin-left: 50px !important;
    margin-right: 50px !important;
}

@media (max-width: 600px) {
    .kk-slider {
        width: calc(100% - 76px) !important;
        margin-left: 38px !important;
        margin-right: 38px !important;
    }
}

/* Karussell Startseite */
.kk-startseite .kk-karussell {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.kk-startseite .kk-karussell-inhalt {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}

.kk-startseite .kk-karussell-inhalt::-webkit-scrollbar {
  display: none;
}

.kk-startseite .kk-karussell-inhalt > .kk-produkt {
  flex: 0 0 calc((100% - 60px) / 6);
  scroll-snap-align: start;
  box-sizing: border-box;
}

.kk-startseite .kk-pfeil {
  flex: 0 0 36px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: #143755;
  color: white;
  cursor: pointer;
  font-size: 22px;
}

@media (max-width: 1100px) {
  .kk-startseite .kk-karussell-inhalt > .kk-produkt {
    flex-basis: calc((100% - 24px) / 3);
  }
}

@media (max-width: 600px) {
  .kk-startseite .kk-karussell-inhalt > .kk-produkt {
    flex-basis: 100%;
  }
}
/* ==========================================
   KANUBAU KRAUSS
   Produktkarussell – Modul 116
   Korrektur der schmalen Produktkarten
   Nur Startseite
   ========================================== */

#kk-produkte #hikashop_module_116 .kk-slider {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 18px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    width: calc(100% - 100px) !important;
    margin: 0 50px !important;
    padding: 12px 0 20px !important;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

#kk-produkte #hikashop_module_116 .kk-slider::-webkit-scrollbar {
    display: none;
}

#kk-produkte #hikashop_module_116 .kk-slider > .hikashop_product {
    display: block !important;
    float: none !important;
    flex: 0 0 calc((100% - 90px) / 6) !important;
    width: calc((100% - 90px) / 6) !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    scroll-snap-align: start;
}

#kk-produkte #hikashop_module_116 .hikashop_container,
#kk-produkte #hikashop_module_116 .hikashop_subcontainer {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#kk-produkte #hikashop_module_116 .hikashop_product_image img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}

#kk-produkte #hikashop_module_116 .hikashop_product_name {
    overflow-wrap: break-word;
}

@media (max-width: 1100px) {
    #kk-produkte #hikashop_module_116 .kk-slider > .hikashop_product {
        flex-basis: calc((100% - 54px) / 4) !important;
        width: calc((100% - 54px) / 4) !important;
    }
}

@media (max-width: 700px) {
    #kk-produkte #hikashop_module_116 .kk-slider > .hikashop_product {
        flex-basis: calc((100% - 18px) / 2) !important;
        width: calc((100% - 18px) / 2) !important;
    }
}

@media (max-width: 450px) {
    #kk-produkte #hikashop_module_116 .kk-slider > .hikashop_product {
        flex-basis: 100% !important;
        width: 100% !important;
    }
}
