/* =========================================================
   UNIDOMO Startseite: Kategorie-Schnellauswahl (6 Bild-Kacheln)
   Desktop: 6 nebeneinander
   Tablet: 3 nebeneinander
   Smartphone: 2 nebeneinander (Standard)
               oder eine Reihe zum Wischen (Klasse ud-qcat--swipe)
   ========================================================= */

#vue-app .ud-qcat {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0 8px !important;
  padding: 0 !important;
  list-style: none !important;
}

#vue-app .ud-qcat__item {
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
}

#vue-app a.ud-qcat__link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#vue-app .ud-qcat__link img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: none;
  border-radius: 12px;
}

/* Hover nur auf Geräten mit Maus */
@media (hover: hover) {
  #vue-app a.ud-qcat__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(18, 58, 94, 0.18);
  }
}

/* Tastatur-Fokus */
#vue-app a.ud-qcat__link:focus-visible {
  outline: 2px solid #399CD7;
  outline-offset: 2px;
}

/* Tablet: 3 nebeneinander */
@media (max-width: 991.98px) {
  #vue-app .ud-qcat {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px !important;
  }
}

/* Smartphone (Standard): 2 nebeneinander */
@media (max-width: 575.98px) {
  #vue-app .ud-qcat {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px !important;
  }

  #vue-app a.ud-qcat__link,
  #vue-app .ud-qcat__link img {
    border-radius: 10px;
  }

  /* Smartphone (Variante): eine Reihe zum Wischen */
  #vue-app .ud-qcat.ud-qcat--swipe {
    display: flex !important;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 16px -15px 0 !important;
    padding: 4px 15px 8px !important;
  }

  #vue-app .ud-qcat.ud-qcat--swipe::-webkit-scrollbar {
    display: none;
  }

  #vue-app .ud-qcat--swipe .ud-qcat__item {
    flex: 0 0 42%;
    scroll-snap-align: start;
  }
}

/* Keine Bewegung bei reduzierter Bewegung im Betriebssystem */
@media (prefers-reduced-motion: reduce) {
  #vue-app a.ud-qcat__link {
    transition: none;
    transform: none !important;
  }
}