/* ========================================
   EVENT SPLASH-SCREEN - FEUERWEHR RAUBLING
   ========================================

   Vollbild-Overlay zur Event-Bewerbung.
   Erscheint auf der Startseite, 1x pro Besucher.

   ANPASSEN:
   - Suche nach "HIER ÄNDERN" für anpassbare Stellen
   - Bilder/Texte werden im Customizer geändert
======================================== */

/* ========================================
   1. SPLASH-SCREEN CONTAINER
   ======================================== */

.ffw-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none; /* Wird per JS auf flex gesetzt */
    align-items: center;
    justify-content: center;

    /* Einblend-Animation */
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Sichtbar (Klasse wird per JS gesetzt) */
.ffw-splash-screen.is-visible {
    opacity: 1;
}

/* Ausblend-Animation */
.ffw-splash-screen.is-closing {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* ========================================
   2. HINTERGRUND MIT BILD + OVERLAY
   ======================================== */

.ffw-splash-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    /* Bild füllt den gesamten Bildschirm */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    /* HIER ÄNDERN: Fallback-Farbe wenn kein Bild */
    background-color: var(--dark-gray, #2C2C2C);
}

/* Dunkler Overlay über dem Bild für bessere Lesbarkeit */
.ffw-splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    /* Opacity wird inline per Customizer gesetzt */
}

/* ========================================
   3. INHALT (Text + Buttons)
   ======================================== */

.ffw-splash-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    width: 90%;
    text-align: center;
    padding: 2rem;

    /* Einblend-Animation: Inhalt gleitet nach oben */
    transform: translateY(30px);
    transition: transform 0.6s ease 0.2s;
}

.ffw-splash-screen.is-visible .ffw-splash-content {
    transform: translateY(0);
}

.ffw-splash-screen.is-closing .ffw-splash-content {
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

/* ========================================
   4. SCHLIESSEN-BUTTON (X)
   ======================================== */

.ffw-splash-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.ffw-splash-close:hover {
    color: #fff;
    transform: scale(1.1);
}

/* ========================================
   5. TEXTE
   ======================================== */

/* Untertitel (über dem Titel) */
.ffw-splash-subtitle {
    /* HIER ÄNDERN: Stil des Untertitels */
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--red, #C1272D);
    margin: 0 0 1rem 0;
}

/* Titel (groß) */
.ffw-splash-title {
    /* HIER ÄNDERN: Schriftgröße und Stil */
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 1.25rem 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Beschreibung */
.ffw-splash-description {
    /* HIER ÄNDERN: Stil der Beschreibung */
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2rem 0;
}

/* ========================================
   6. "ZUM KALENDER HINZUFÜGEN" BUTTON
   ======================================== */

.ffw-splash-calendar {
    margin-bottom: 1.5rem;
}

.ffw-splash-calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.ffw-splash-calendar-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    transform: translateY(-1px);
}

.ffw-splash-calendar-btn svg {
    flex-shrink: 0;
}

/* ========================================
   7. BUTTONS
   ======================================== */

.ffw-splash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.ffw-splash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    min-width: 180px;
}

/* Primärer Button (zum Event) */
.ffw-splash-btn-primary {
    /* HIER ÄNDERN: Button-Farbe */
    background-color: var(--red, #C1272D);
    color: #fff;
    border-color: var(--red, #C1272D);
}

.ffw-splash-btn-primary:hover {
    background-color: #A01F25;
    border-color: #A01F25;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(193, 39, 45, 0.4);
}

/* Sekundärer Button (Zur Startseite) */
.ffw-splash-btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.ffw-splash-btn-secondary:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ========================================
   7. RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .ffw-splash-title {
        font-size: 2rem;
    }

    .ffw-splash-subtitle {
        font-size: 0.8125rem;
    }

    .ffw-splash-description {
        font-size: 1rem;
    }

    .ffw-splash-content {
        padding: 1.5rem;
    }

    .ffw-splash-close {
        top: -2.5rem;
    }

    .ffw-splash-actions {
        flex-direction: column;
        align-items: center;
    }

    .ffw-splash-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .ffw-splash-title {
        font-size: 1.625rem;
    }

    .ffw-splash-description {
        font-size: 0.9375rem;
    }
}
