/*
 Theme Name: Astra Child
 Template: astra
 Version: 1.0
*/

/* ==========================================================
   STYLING FÜR "The Events Calendar Shortcode & Block" (ECS)
   ==========================================================
   Dieses CSS formatiert die Ausgabe der Eventlisten,
   die über das Plugin "The Events Calendar Shortcode & Block"
   (ECS) erzeugt werden – z.B. mit dem Shortcode [ecs-list].
   Es beeinflusst NICHT die Standard-Eventseiten von 
   "The Events Calendar".
*/

/* --- Container für Eventliste --- */
.ecs-event-list {
    display: flex;                  /* Flexbox für flexible Anordnung */
    flex-direction: column;         /* Standard: untereinander */
    align-items: center;            /* sorgt dafür, dass Elemente mittig ausgerichtet werden */
    gap: 20px;                      /* Abstand zwischen Events */
    margin: 0 auto;                 /* mittig im Container */
    padding: 0;                     /* kein zusätzlicher Einzug */
    list-style: none;               /* keine Punkte */
}

/* Einzelne Events */
.ecs-event-list li {
    list-style: none;
    margin: 0;
    width: 100%;
}

/* --- Einzelnes Event-Item --- */
.ecs-event {
    display: flex;
    flex-direction: column;
    background: #ffffff;             /* Weißer Hintergrund */
    border-radius: 0px;              /* Abgerundete Ecken */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Sanfter Schatten */
    overflow: hidden;
    padding: 15px;
    transition: transform 0.2s ease; /* Animation beim Hover */
}

/* Hover-Effekt: Event leicht anheben */
.ecs-event:hover {
    transform: translateY(-3px);
}

/* --- Event-Bild --- */
.ecs-event img {
    width: 100%;
    height: auto;
    border-radius: 0px;
    margin-bottom: 10px;
}

/* --- Event-Titel --- */
.ecs-event h4 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* --- Datum und Ort --- */
.ecs-event .ecs-date,
.ecs-event .ecs-venue {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4px;
}

/* --- Kurzbeschreibung --- */
.ecs-event .ecs-excerpt {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #444;
}

/* --- Responsive ab 768px: 2 Boxen nebeneinander --- */
@media (min-width: 768px) {
    .ecs-event-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;  /* zentriert die Zeilen */
        align-items: flex-start;  /* WICHTIG: alle li oben ausrichten */
        gap: 20px;
    }

    .ecs-event-list li {
        width: calc(50% - 10px);
        margin: 0;
        display: flex;            /* damit .ecs-event die volle Höhe einnehmen kann */
    }

    .ecs-event {
        width: 100%;
        display: flex;
        flex-direction: column;   /* Inhalt bleibt vertikal angeordnet */
    }
}


/* Events-Archiv + Event-Einzelseiten: Social-Icons schwarz */

body.post-type-archive-tribe_events .ast-header-social-wrap a,
body.post-type-archive-tribe_events .ast-header-social-wrap a svg,
body.single-tribe_events .ast-header-social-wrap a,
body.single-tribe_events .ast-header-social-wrap a svg {
    color: #17253E !important;
    fill: #17253E !important;
}

body.post-type-archive-tribe_events .ast-header-social-wrap a:hover,
body.post-type-archive-tribe_events .ast-header-social-wrap a:hover svg,
body.single-tribe_events .ast-header-social-wrap a:hover,
body.single-tribe_events .ast-header-social-wrap a:hover svg {
    color: #1FCF94 !important;  /* Hover-Farbe wie Menü */
    fill: #1FCF94 !important;
}



/* Ninja Forms Button Styles */
.nf-form-cont input[type="button"],
.nf-form-cont input[type="submit"] {
    color: #17253E; /* Textfarbe */
    border: 1px solid #17253E; /* Rahmenfarbe */
    background-color: #ffffff; /* Hintergrundfarbe */
    transition: all 0.3s ease; /* weicher Übergang */
}

.nf-form-cont input[type="button"]:hover,
.nf-form-cont input[type="submit"]:hover {
    background-color: #17253E; /* Hintergrundfarbe bei Hover */
    color: #ffffff; /* Textfarbe bei Hover */
}