/* Quickview Layer - MAXIMAL (alle Bilder, kein extra Scroll) */
.quickview-layer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95vw;
    max-width: 1400px;
    height: 90vh;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.5);
    z-index: 10000;
    overflow: hidden;
    animation: quickviewFadeIn 0.25s ease;
    display: none;
}

@keyframes quickviewFadeIn {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.quickview-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 90vh;
}

.quickview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
    flex-shrink: 0;
}

.quickview-bereich {
    color: #d32f2f;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.quickview-close {
    cursor: pointer;
    font-size: 1.8rem;
    font-weight: bold;
    color: #666;
    transition: all 0.2s;
    line-height: 1;
    padding: 0 8px;
}

.quickview-close:hover {
    color: #000;
    transform: scale(1.1);
}

.quickview-content {
    padding: 25px 30px;
    overflow-y: auto;  /* Gesamter Content scrollt, nicht nur Text */
    flex: 1;
}

/* Titel */
.quickview-content h3 {
    margin: 0 0 20px 0;
    font-size: 1.8rem;
    color: #222;
    line-height: 1.3;
}

/* Bildergalerie - alle 3 Bilder nebeneinander */
.quickview-galerie {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    justify-content: center;
}

.quickview-bild {
    flex: 1;
    min-width: 200px;
    text-align: center;
    background: #fafafa;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.quickview-bild img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 10px;
}

.quickview-bild .pic-descr {
    font-size: 0.75rem;
    color: #777;
    margin-top: 8px;
    padding: 0 5px;
    word-break: break-word;
}

/* Falls nur ein Bild da ist, nicht zu breit */
.quickview-bild:only-child {
    max-width: 60%;
    margin: 0 auto;
}

/* Kurztext */
.quickview-kurz {
    font-weight: bold;
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    line-height: 1.5;
}

/* Haupttext - KEIN extra Scroll mehr */
.quickview-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 25px;
    /* KEIN max-height, KEIN overflow-y hier mehr */
}

/* Datum */
.quickview-datum {
    font-size: 0.85rem;
    color: #888;
    margin: 15px 0 12px 0;
    padding: 8px 0;
    border-top: 1px solid #eee;
}

/* Autor - OHNE Kontakt */
.quickview-author {
    font-size: 0.85rem;
    background: #f9f9f9;
    padding: 12px 16px;
    border-radius: 12px;
    margin: 15px 0;
    border-left: 5px solid #d32f2f;
}

/* Footer mit Button */
.quickview-footer {
    margin-top: 20px;
    text-align: right;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.quickview-link {
    display: inline-block;
    padding: 12px 28px;
    background: #d32f2f;
    color: white;
    text-decoration: none;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
}

.quickview-link:hover {
    background: #b71c1c;
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Overlay-Hintergrund */
.quickview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    display: none;
}

/* Bild-Hover-Effekt */
.news .news-pic img {
    cursor: pointer;
    transition: all 0.2s ease;
}

.news .news-pic img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    filter: brightness(0.98);
}

/* Responsive: Bei kleinen Bildschirmen */
@media (max-width: 900px) {
    .quickview-layer {
        width: 98vw;
        height: 95vh;
        border-radius: 12px;
    }

    .quickview-content {
        padding: 15px 18px;
    }

    .quickview-content h3 {
        font-size: 1.4rem;
    }

    .quickview-galerie {
        gap: 10px;
    }

    .quickview-bild {
        min-width: 120px;
    }

    .quickview-bild img {
        max-height: 180px;
    }

    .quickview-bild:only-child {
        max-width: 90%;
    }
}

@media (max-width: 600px) {
    .quickview-galerie {
        flex-direction: column;
        align-items: center;
    }

    .quickview-bild {
        width: 100%;
        max-width: 100%;
    }

    .quickview-bild:only-child {
        max-width: 100%;
    }
}