/**
 * Event-Furs – Frontend: Startseite
 * Highlight-Events mit Status & Datum
 */

/* =========================
   Grundlayout
========================= */

.frontend-index {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================
   Highlight Events
========================= */

.frontend-highlight-events {
    margin-top: 2.5rem;
}

.frontend-highlight-title {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: center;
}

.frontend-highlight-grid {
    display: grid;

    /* 🔑 automatisch an Anzahl anpassen */
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));

    gap: 24px;

    /* 🔑 sorgt dafür, dass 1 Element mittig steht */
    justify-content: center;

    margin-top: 24px;
}

.frontend-highlight-card {
    padding: 26px 28px 28px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;

    background: linear-gradient(
        180deg,
        rgba(28, 32, 52, 0.9),
        rgba(16, 18, 30, 0.9)
    );

    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.frontend-highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
}

.frontend-highlight-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.frontend-highlight-meta {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* =========================
   Status Punkt
========================= */

.frontend-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-open {
    background: #3ddc84;
    box-shadow: 0 0 8px rgba(61, 220, 132, 0.6);
}

.status-closed {
    background: #ff5f5f;
    box-shadow: 0 0 8px rgba(255, 95, 95, 0.6);
}

/* =========================
   Intro
========================= */

.frontend-index-intro {
    text-align: center;
    max-width: 720px;
    margin: 3rem auto 2.5rem;
}

.frontend-index-intro h1 {
    font-size: 2.3rem;
    margin-bottom: 0.5rem;
}

.frontend-subtitle {
    font-size: 1.05rem;
    color: rgba(210, 212, 225, 0.85);
}

/* =========================
   Nav-Kacheln
========================= */

.frontend-index-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.frontend-index-cards .frontend-card {
    text-align: center;
    padding: 36px 28px;
}

.frontend-index-cards .frontend-card h2 {
    font-size: 1.35rem;
    font-weight: 600;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1100px) {
    .frontend-highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .frontend-highlight-grid {
        grid-template-columns: 1fr;
    }
}
