/* Collection Page Styles */

/* Lightbox-Stil für klickbare Bilder */
.card-img-top-wrapper .swiper-lightbox-trigger {
  position: relative;
  display: block;
  overflow: hidden;
}

.card-img-top-wrapper .swiper-lightbox-trigger:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.card-img-top-wrapper .swiper-lightbox-trigger::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-img-top-wrapper .swiper-lightbox-trigger:hover::after {
  opacity: 1;
}
.subpages-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    margin-top: 40px;
}

.subpages-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #000;
}

.subpages-list .card {
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.subpages-list .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Bild-Link Wrapper */
.subpages-list .card-img-link {
    display: block;
    overflow: hidden;
}

/* Bild-Wrapper für dynamische Höhe mit Aspect Ratio */
.subpages-list .card-img-top-wrapper {
    width: 100%;
    overflow: hidden;
    background-color: #f0f0f0;
    position: relative;
}

.subpages-list .card-img-top {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: var(--card-aspect-ratio, 4/3);
    display: block;
    transition: transform 0.3s ease;
}

.subpages-list .card:hover .card-img-top {
    transform: scale(1.1);
}

.subpages-list .card-body {
    padding: 1.5rem;
}

.subpages-list .card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Alle Links in Karten schwarz */
.subpages-list a,
.subpages-list a:link,
.subpages-list a:visited {
    color: #000;
    text-decoration: none;
}

.subpages-list a:hover,
.subpages-list a:active {
    color: #595959;
    text-decoration: none;
}

.subpages-list .card-title a {
    transition: color 0.3s ease;
}

/* Bild-Links sollen Farbe nicht ändern */
.subpages-list .card-img-link:hover {
    color: inherit;
}

/* Lightbox-Trigger in Karten */
.subpages-list .swiper-lightbox-trigger {
    display: block;
    cursor: zoom-in;
}

.subpages-list .swiper-lightbox-trigger:hover {
    opacity: 0.9;
}

.subpages-list .card-text {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Button als Outline in Schwarz */
.subpages-list .btn-outline-dark {
    border-color: #000;
    color: #000;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.subpages-list .btn-outline-dark:hover {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

/* Abstand zwischen Layout-Blöcken und Unterseiten */
.layout + .subpages-section {
    margin-top: 0;
}

/* Karten ohne Text - bessere Zentrierung */
.card-body:not(:has(.card-text)) .btn {
    margin-top: auto;
}