/* =====================================================
   REFERENZEVENTS – Ergänzendes Stylesheet
   Datei: assets/css/referenzevents.css
===================================================== */

/* =====================================================
   FILTER-LEISTE
===================================================== */
.ref-filter-bar {
    background-color: #E6D2B5;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 69px; /* unterhalb der Navbar (.nav min-height 68px + 1px Border) */
    z-index: 100;
}

.ref-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.ref-filter {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border-radius: 99px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    color: #555;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.ref-filter:hover {
    border-color: rgba(0, 0, 0, 0.3);
    color: #111;
    background: rgba(0, 0, 0, 0.06);
}

.ref-filter.is-active {
    border-color: #111;
    color: #111;
    background: rgba(0, 0, 0, 0.08);
}

/* =====================================================
   EVENT GRID
===================================================== */
.ref-events {
    padding: 3rem 0 1.5rem 0;
    background-color: #E6D2B5;
}

/* Basis-Kachelraster (bisher fehlend — .ref-grid/.ref-tile erben davon) */
.tiles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}
.tile {
    position: relative;
}
.tile-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    padding: 1rem;
}

/* Erbt .tiles-grid, aber 3 Spalten statt 2 */
.ref-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

/* =====================================================
   EINZELNE EVENT-KACHEL
===================================================== */
.ref-tile {
    display: flex;
    flex-direction: column;
    border-radius: 16px !important;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ref-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* Placeholder-Bild (solange kein echtes Foto vorhanden) */
.ref-placeholder {
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(255,255,255,0.02) 0px,
            rgba(255,255,255,0.02) 1px,
            transparent 1px,
            transparent 8px
        ),
        linear-gradient(160deg, #1a1a1a 0%, #2a2a2a 100%);
    position: absolute;
    inset: 0;
}

/* Bild-Bereich: feste Höhe */
.ref-tile .tile-media {
    aspect-ratio: 4/3;
    position: relative;
}

/* Titel-Overlay anpassen */
.ref-tile .tile-title {
    font-size: 1.35rem;
    line-height: 1.2;
    bottom: 1rem;
    top: auto;
    left: 1rem;
    transform: none;
    text-align: left;
    width: calc(100% - 2rem);
    padding: 0;
}

.ref-tile:hover .tile-title {
    transform: none;
}

.ref-tile__meta {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.3rem;
    letter-spacing: 0.02em;
}

/* Textkörper unterhalb des Bildes */
.ref-tile__body {
    padding: 1rem 1.1rem 1.1rem 1.1rem;
    background: rgba(0, 0, 0, 0.3);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ref-tile__body p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    flex: 1;
}

/* Tags */
.ref-tag {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 0.3rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Ausgeblendet durch Filter-JS */
.ref-tile.is-hidden {
    display: none;
}

/* Placeholder-Hinweis */
.ref-placeholder-note {
    text-align: center;
    color: rgba(0, 0, 0, 0.45);
    font-size: 0.9rem;
    margin: 2.5rem auto 0 auto;
    padding-bottom: 0.5rem;
}

.ref-placeholder-note a {
    color: #444;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.ref-placeholder-note a:hover {
    color: #111;
}

/* =====================================================
   KENNZAHLEN
===================================================== */
.ref-stats {
    background-color: #E6D2B5;
    padding: 4rem 0;
}

.ref-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.ref-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 2rem 1rem;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.ref-stat__num {
    font-family: 'ChunkFive', serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: #1a1a1a;
    line-height: 1;
}

.ref-stat__label {
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
    .ref-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ref-stats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ref-grid {
        grid-template-columns: 1fr;
    }

    .ref-stats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .ref-filter-bar {
        top: 69px;
    }

    .ref-stats {
        padding: 2.5rem 0;
    }
}
