/**
 * Event-Furs – Frontend: Statistiken (Übersicht)
 * Datei: /frontend/assets/css/frontend-statistics.css
 *
 * Styling ausschließlich für /frontend/statistics/index.php
 */

/* --------------------------------------------------
   Grundlayout
-------------------------------------------------- */

.frontend-statistics {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

/* --------------------------------------------------
   Header
-------------------------------------------------- */

.frontend-statistics .frontend-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.frontend-statistics h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.frontend-statistics .frontend-subtitle {
    color: var(--frontend-text-muted, #999);
    font-size: 0.95rem;
}

/* --------------------------------------------------
   Grid
-------------------------------------------------- */

.frontend-statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* --------------------------------------------------
   Statistik-Kacheln
-------------------------------------------------- */

.frontend-stat-card {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;

    padding: 2.2rem 1.5rem 2.8rem;
    min-height: 150px;

    text-decoration: none;
    text-align: center;

    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;

    color: inherit;
    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

/* Zahl */
.frontend-stat-card h2 {
    font-size: 2.1rem;
    font-weight: 600;
    margin: 0;
}

/* Beschreibung */
.frontend-stat-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--frontend-text-muted, #aaa);
}

/* --------------------------------------------------
   Hover-Text: „Details anzeigen“
-------------------------------------------------- */

.frontend-stat-card::after {
    content: "Details anzeigen →";
    position: absolute;
    bottom: 1.1rem;
    left: 50%;
    transform: translateX(-50%) translateY(6px);

    font-size: 0.85rem;
    letter-spacing: 0.2px;
    color: rgba(200, 180, 255, 0.85);

    opacity: 0;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

/* --------------------------------------------------
   Hover / Focus
-------------------------------------------------- */

.frontend-stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(160, 120, 255, 0.45);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(160, 120, 255, 0.15);
}

.frontend-stat-card:hover::after,
.frontend-stat-card:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.frontend-stat-card:focus-visible {
    outline: none;
    border-color: rgba(160, 120, 255, 0.8);
    box-shadow:
        0 0 0 3px rgba(160, 120, 255, 0.25);
}

/* --------------------------------------------------
   Mobile Feinjustierung
-------------------------------------------------- */

@media (max-width: 480px) {
    .frontend-stat-card {
        padding: 1.8rem 1.2rem 2.4rem;
        min-height: 130px;
    }

    .frontend-stat-card h2 {
        font-size: 1.8rem;
    }

    .frontend-stat-card::after {
        font-size: 0.8rem;
    }
}
