/* =============================================================================
   Atrium Baustellen-Tagebuch – Frontend-Styles
   Primärfarbe: #75B837 | Hero: #2D2D2D
   Keine externen Frameworks, kompatibel mit WP 6.x
   ============================================================================= */

/* ── Wrapper ── */
.atrium-bt-wrapper {
    font-family: inherit;
    color: inherit;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ── Hero ── */
.atrium-bt-hero {
    background-color: #2D2D2D;
    color: #fff;
    border-radius: 8px;
    padding: 48px 40px;
    margin-bottom: 32px;
    text-align: center;
}

.atrium-bt-hero-eyebrow {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #75B837;
    margin: 0 0 8px;
}

.atrium-bt-hero-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.2;
    color: #fff;
}

.atrium-bt-hero-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* ── Kennzahlen-Leiste ── */
.atrium-bt-kennzahlen {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.atrium-bt-kachel {
    flex: 1;
    min-width: 140px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.atrium-bt-zahl {
    font-size: 2rem;
    font-weight: 700;
    color: #75B837;
    line-height: 1;
}

.atrium-bt-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Phasen-Filter ── */
.atrium-bt-filter-leiste {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    align-items: center;
}

.atrium-bt-pill {
    background: transparent;
    border: 1.5px solid #bbb;
    color: #555;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    font-family: inherit;
    line-height: 1.4;
}

.atrium-bt-pill:hover {
    border-color: #75B837;
    color: #75B837;
}

.atrium-bt-pill--aktiv {
    background: #75B837;
    border-color: #75B837;
    color: #fff;
    font-weight: 600;
}

.atrium-bt-pill--aktiv:hover {
    background: #629e2e;
    border-color: #629e2e;
    color: #fff;
}

/* ── Galerie-Raster ── */
.atrium-bt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Tablet */
@media (max-width: 768px) {
    .atrium-bt-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .atrium-bt-hero {
        padding: 32px 24px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .atrium-bt-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .atrium-bt-kennzahlen {
        gap: 12px;
    }

    .atrium-bt-filter-leiste {
        gap: 6px;
    }

    .atrium-bt-pill {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}

/* ── Foto-Kachel ── */
.atrium-bt-foto-kachel {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.atrium-bt-foto-kachel:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Versteckte Kacheln beim Filtern */
.atrium-bt-foto-kachel--versteckt {
    display: none;
}

/* ── Foto-Button (Trigger für Lightbox) ── */
.atrium-bt-foto-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

.atrium-bt-foto-bild {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.atrium-bt-foto-btn:hover .atrium-bt-foto-bild {
    transform: scale(1.04);
}

.atrium-bt-kein-bild {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 48px;
}

/* ── Foto-Info-Bereich ── */
.atrium-bt-foto-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.atrium-bt-foto-datum {
    font-size: 0.78rem;
    color: #888;
}

.atrium-bt-foto-titel {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

/* ── Badges ── */
.atrium-bt-badge {
    display: inline-block;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    width: fit-content;
}

.atrium-bt-badge--drohne {
    background-color: #EAF3DE;
    color: #27500A;
}

.atrium-bt-badge--iphone {
    background-color: #E6F1FB;
    color: #0C447C;
}

/* Admin-Badge in der Postliste */
.bt-badge {
    display: inline-block;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 600;
}

.bt-badge-drohne {
    background-color: #EAF3DE;
    color: #27500A;
}

.bt-badge-iphone {
    background-color: #E6F1FB;
    color: #0C447C;
}

/* ── Leer- und Keine-Ergebnisse-Meldungen ── */
.atrium-bt-leer,
.atrium-bt-keine-ergebnisse {
    text-align: center;
    color: #888;
    padding: 48px 16px;
    font-size: 1rem;
}

/* ── Lightbox-Overlay ── */
.atrium-bt-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9998;
    cursor: pointer;
}

/* ── Lightbox-Dialog ── */
.atrium-bt-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none; /* Klicks sollen durch zum Overlay */
}

.atrium-bt-lightbox-content {
    pointer-events: all;
    max-width: min(90vw, 1000px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
}

.atrium-bt-lightbox-bild {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    background: #111; /* Ladeplatzhalter */
}

.atrium-bt-lightbox-meta {
    color: #fff;
    text-align: center;
}

.atrium-bt-lightbox-titel {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.atrium-bt-lightbox-info {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ── Lightbox-Buttons ── */
.atrium-bt-lightbox-schliessen {
    position: fixed;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    transition: background 0.2s;
    z-index: 10000;
    line-height: 1;
}

.atrium-bt-lightbox-schliessen:hover {
    background: rgba(255, 255, 255, 0.3);
}

.atrium-bt-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    transition: background 0.2s;
    z-index: 10000;
    line-height: 1;
}

.atrium-bt-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.35);
}

.atrium-bt-lightbox-nav--prev {
    left: 12px;
}

.atrium-bt-lightbox-nav--next {
    right: 12px;
}

.atrium-bt-lightbox-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

@media (max-width: 600px) {
    .atrium-bt-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }

    .atrium-bt-lightbox-nav--prev { left: 4px; }
    .atrium-bt-lightbox-nav--next { right: 4px; }
}
