/* ===== ARTIKEL-SEITE mit Float ===== */
.blog-container {
    padding: 150px 0 2rem;
}

.article-detail {
    background: white;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    overflow: hidden; /* Clearfix */
}

.article-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}
.article-meta {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Bild rechts floatend, 40% Breite, quadratisch */
.article-image-wrapper {
    float: right;
    width: 40%;
    margin-left: 2rem;
    margin-bottom: 1rem;
}
.article-float-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    background: #eef2f5;
}
.gallery-hint {
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.3rem;
}
.gallery-hint i {
    margin-right: 0.3rem;
}

/* Text fliesst um das Bild */
.article-text {
    line-height: 1.7;
    font-size: 1.05rem;
    color: #1E2A3E;
}
.article-text p {
    margin-bottom: 1.2rem;
}

/* Vorschläge (3 Spalten) */
.suggestions-head {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: #1E2A3E;
    clear: both; /* verhindert Überlappung mit float */
}
.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.suggestion-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: 0.25s;
}
.suggestion-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.suggestion-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: #eef2f5;
}
.suggestion-card .card-content {
    padding: 1.2rem;
}
.suggestion-card .card-content h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}
.suggestion-card .card-content p {
    font-size: 0.9rem;
    color: #2E475D;
    margin-bottom: 0.8rem;
}
.suggestion-card .card-content a {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.suggestion-card .card-content a:hover {
    text-decoration: underline;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}
.lightbox-close:hover {
    transform: scale(1.2);
}
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 3rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.4);
}
.lightbox-prev {
    left: -70px;
}
.lightbox-next {
    right: -70px;
}
.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    background: rgba(0,0,0,0.4);
    padding: 0.2rem 1rem;
    border-radius: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .suggestions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-container {
        padding-top: 120px;
    }
    /* Float aufheben, Bild 100% Breite, unter dem Titel */
    .article-image-wrapper {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-bottom: 1.5rem;
    }
    .article-float-image {
        max-width: 100%;
        max-height: 300px; /* optional: Höhe begrenzen */
        aspect-ratio: 1/1;
    }
    /* Lightbox-Navigation anpassen */
    .lightbox-prev {
        left: 10px;
        font-size: 2rem;
        padding: 0.3rem 0.6rem;
    }
    .lightbox-next {
        right: 10px;
        font-size: 2rem;
        padding: 0.3rem 0.6rem;
    }
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
    }
    .lightbox-counter {
        bottom: 10px;
    }
}

@media (max-width: 576px) {
    .suggestions-grid {
        grid-template-columns: 1fr;
    }
    .article-title {
        font-size: 1.6rem;
    }
}