/**
 * Mobile.de Detailseite - Professionelles Layout
 */

/* Container */
.mobilede-detail-page {
    padding: 20px 0;
}

/* Galerie */
.mobilede-detail-gallery {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.mobilede-detail-swiper {
    width: 100%;
    background: #fff;
}

.mobilede-detail-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: #fff;
}

.mobilede-detail-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 600px;
}

/* Navigation Buttons */
.mobilede-detail-swiper .swiper-button-prev,
.mobilede-detail-swiper .swiper-button-next {
    color: #000;
    background: rgba(255, 235, 0, 0.8);
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.mobilede-detail-swiper .swiper-button-prev:hover,
.mobilede-detail-swiper .swiper-button-next:hover {
    background: #ffeb00;
}

/* Pagination */
.mobilede-detail-swiper .swiper-pagination {
    bottom: 15px;
}

.mobilede-detail-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #fff;
    opacity: 0.5;
}

.mobilede-detail-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #ffeb00;
}

/* Thumbnails */
.mobilede-detail-thumbs {
    margin-top: 10px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
}

.mobilede-detail-thumbs .swiper-slide {
    width: 100px;
    height: 75px;
    opacity: 0.5;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.mobilede-detail-thumbs .swiper-slide:hover {
    opacity: 0.8;
}

.mobilede-detail-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #ffeb00;
}

.mobilede-detail-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Header */
.mobilede-detail-header {
    position: relative;
}

.mobilede-detail-header .uk-label {
    margin-right: 5px;
}

.mobilede-detail-price {
    padding: 15px;
    background: #f8f8f8;
    border-radius: 4px;
}

/* Sidebar: Sticky auf Desktop */
@media (min-width: 960px) {
    .mobilede-detail-sidebar {
        position: sticky;
        top: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
    
    .mobilede-detail-swiper .swiper-slide {
        min-height: 500px;
    }
    
    .mobilede-detail-swiper .swiper-slide img {
        max-height: 700px;
    }
}

/* CTA-Card: Hervorgehoben */
.mobilede-detail-cta {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.mobilede-detail-cta .uk-button {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.mobilede-detail-cta .uk-button-primary {
    background: #ffeb00;
    color: #000;
    font-size: 1.1rem;
    padding: 12px 20px;
    font-weight: 600;
}

.mobilede-detail-cta .uk-button-primary:hover {
    background: #e6d400;
}

.mobilede-detail-cta .uk-button-default {
    background: #f8f8f8;
    color: #666;
    border: 1px solid #e5e5e5;
}

.mobilede-detail-cta .uk-button-default:hover {
    background: #e5e5e5;
    color: #333;
}

/* Quickinfo Card */
.mobilede-detail-quickinfo dl {
    margin: 0;
}

.mobilede-detail-quickinfo dt {
    font-weight: 400;
    color: #666;
    margin-top: 10px;
}

.mobilede-detail-quickinfo dd {
    font-weight: 600;
    color: #222;
    margin-left: 0;
    margin-bottom: 10px;
}

.mobilede-detail-quickinfo dt [uk-icon] {
    margin-right: 8px;
    color: #666;
}

/* Tabs: Bessere Sichtbarkeit */
.mobilede-detail-page .uk-tab {
    border-bottom: 1px solid #e5e5e5;
}

.mobilede-detail-page .uk-tab > li > a {
    padding: 10px 20px;
    font-weight: 500;
}

/* Ausstattungs-Listen */
.mobilede-detail-page .uk-list-disc li {
    position: relative;
    padding-left: 25px;
}

.mobilede-detail-page .uk-list-disc li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #32d296;
    font-weight: bold;
}

/* Beschreibung: Bessere Lesbarkeit */
.mobilede-detail-description {
    line-height: 1.8;
    font-size: 0.95rem;
}

.mobilede-detail-description p {
    margin-bottom: 15px;
}

/* Mobile Optimierungen */
@media (max-width: 959px) {
    .mobilede-detail-page {
        padding: 10px 0;
    }
    
    .mobilede-detail-gallery {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }
    
    .mobilede-detail-swiper .swiper-slide {
        min-height: 300px;
    }
    
    .mobilede-detail-swiper .swiper-slide img {
        max-height: 400px;
    }
    
    .mobilede-detail-thumbs .swiper-slide {
        width: 70px;
        height: 52px;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 640px) {
    .mobilede-detail-swiper .swiper-button-prev,
    .mobilede-detail-swiper .swiper-button-next {
        width: 35px;
        height: 35px;
    }
    
    .mobilede-detail-swiper .swiper-button-prev:after,
    .mobilede-detail-swiper .swiper-button-next:after {
        font-size: 18px;
    }
    
    .mobilede-detail-thumbs .swiper-slide {
        width: 60px;
        height: 45px;
    }
    
    /* CTA-Buttons: Sticky unten auf Mobile */
    .mobilede-detail-cta {
        position: sticky;
        bottom: 0;
        z-index: 900;
        margin-bottom: 0 !important;
    }
}

/* Bild-Counter */
.mobilede-detail-gallery .current-slide {
    font-weight: 600;
    color: #ffeb00;
}

/* Breadcrumb: Kompakter */
.mobilede-detail-page .uk-breadcrumb {
    margin: 10px 0;
}

.mobilede-detail-page .uk-breadcrumb > * > * {
    font-size: 0.875rem;
}

/* Print-Styling (für später) */
@media print {
    .mobilede-detail-cta,
    .uk-breadcrumb,
    .swiper-button-prev,
    .swiper-button-next,
    .swiper-pagination,
    .mobilede-detail-thumbs {
        display: none !important;
    }
}
