/* ============================================
   Schul-Events Manager – Frontend Styles
   ============================================ */

.se-wrapper {
    max-width: 900px;
    margin: 0 auto;
    font-family: inherit;
}

/* Haupttitel */
.se-haupttitel {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #1a2e5e;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* Monatsgruppe */
.se-monat-gruppe {
    margin-bottom: 30px;
}

.se-monat-header {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.se-monat-titel {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1a2e5e;
    text-transform: uppercase;
    background: #fff;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.se-monat-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
    z-index: 0;
}

/* Event-Zeile */
.se-event-item {
    border: 1px solid #e8e8e8;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.se-event-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.se-event-item.is-open {
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

/* Header-Zeile (klickbar) */
.se-event-header {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    border-left: 4px solid #f5c400;
    gap: 20px;
}

.se-event-header:hover {
    background: #fafafa;
}

/* Datum-Block links */
.se-event-datum {
    min-width: 80px;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.se-datum-tag {
    font-size: 16px;
    font-weight: 700;
    color: #1a2e5e;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.se-datum-monat {
    font-size: 12px;
    font-weight: 600;
    color: #1a2e5e;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.se-datum-tag,
.se-datum-monat {
    display: inline;
}

.se-datum-tag::after {
    content: ' ';
}

.se-datum-zeit {
    display: block;
    font-size: 13px;
    color: #444;
    margin-top: 3px;
    font-weight: 400;
}

/* Titel */
.se-event-titel {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.4;
}

/* Pfeil rechts */
.se-event-arrow {
    width: 30px;
    text-align: right;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.se-arrow-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.3s ease;
}

.se-event-item.is-open .se-arrow-icon {
    transform: rotate(-135deg);
    margin-top: 4px;
}

/* Aufgeklappter Bereich */
.se-event-body {
    border-top: 1px solid #e8e8e8;
    background: #f9f9f9;
}

.se-event-inner {
    display: flex;
    gap: 30px;
    padding: 25px 20px 25px 104px;
}

/* Sidebar (Bild + Details) */
.se-event-sidebar {
    min-width: 220px;
    max-width: 240px;
    flex-shrink: 0;
}

.se-event-bild {
    margin-bottom: 20px;
}

.se-event-bild img {
    width: 100%;
    height: auto;
    border-radius: 3px;
    display: block;
}

.se-detail-block {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.se-detail-icon {
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    color: #555;
}

.se-detail-block strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 4px;
}

.se-detail-block p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Link-Button */
.se-link-btn {
    display: inline-block;
    background: #1a2e5e;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 3px;
    font-size: 13px;
    text-decoration: none;
    margin-top: 5px;
    transition: background 0.2s;
}

.se-link-btn:hover {
    background: #2a3e7e;
    color: #fff !important;
}

/* Beschreibung */
.se-event-beschreibung {
    flex: 1;
    font-size: 14px;
    color: #444;
    line-height: 1.7;
}

.se-event-beschreibung p {
    margin-top: 0;
}

/* Kein Event */
.se-no-events {
    text-align: center;
    color: #999;
    padding: 40px;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .se-event-inner {
        flex-direction: column;
        padding-left: 20px;
    }

    .se-event-sidebar {
        max-width: 100%;
    }

    .se-event-header {
        padding: 14px 15px;
    }

    .se-event-datum {
        min-width: 60px;
    }

    .se-event-titel {
        font-size: 13px;
    }
}
