/* TITLE */
.page-header { padding: 3rem 70px 0; }
.page-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #128c46;
    margin-bottom: 0.6rem;
}
.page-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 1.5px;
    background: #128c46;
}

.hero-text {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    color: #000000;
    max-width: none;
    text-align: left;
    box-sizing: border-box;
    padding: 3rem 70px 2rem;
}

.hero-text h1 {
    font-size: 38px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-text::before {
    content: '— VERANSTALTUNGEN';
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #128c46;
    margin-bottom: 0.6rem;
}

.title-row {
    display: flex;
    padding: 0 70px;
    align-items: baseline;
}

.title-row .verlinkung {
    background-color: #128c46;
    color: #ffffff !important;
    font-family: 'Frutiger', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.7rem 1.6rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s, transform 0.15s;
    border: none;
    margin-left: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.title-row .verlinkung:hover {
    background-color: #0a5c2e;
    transform: translateY(-1px);
    text-decoration: none;
    color: #ffffff !important;
}

/* Grid für Veranstaltungen */
.cards-veranstaltungen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(530px, 1fr));
    gap: 40px;
    padding: 0 70px;
    margin: 40px 0 80px;
}

/* ===================== FILTER-MENÜ ===================== */
.filter-container {
    position: relative;
    z-index: 99;
    display: flex;
    gap: 12px;
    padding: 20px 70px;
    pointer-events: auto !important;
}

.filter-btn {
    font-family: 'Frutiger', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background-color: #d8dada;
    color: #555f58;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 100;
}

.filter-btn:hover {
    background-color: #128c46 !important;
    color: #ffffff !important;
    border-color: #128c46 !important;
}

.filter-btn.active {
    background-color: #128c46;
    color: #ffffff;
    border-color: #128c46;
    box-shadow: 0 2px 8px rgba(18, 140, 70, 0.2);
}

/* VERANSTALTUNGS-CARD */
.veranstaltungen {
    position: relative;
    border-radius: 15px;
    height: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    padding: 20px 20px 20px 24px;
    color: #ffffff;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.veranstaltungen::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: #128c46;
    z-index: 3;
}

.veranstaltungen > img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
}

.veranstaltungen::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.82);
    z-index: 1;
}

.veranstaltungen.highlight {
    height: 240px;
    background: linear-gradient(135deg, #f0faf4, #e8f5ee);
}

.veranstaltungen.highlight .event-label {
    background: #128c46;
    color: white;
}

.event-info {
    position: relative;
    z-index: 2;
    text-align: left;
}

.event-info .titel {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 12px 0;
    color: #000000;
}

.event-info .datum {
    margin-top: -10px;
    font-size: 18px;
    color: #000000;
}

.online-link {
    display: inline-block;
    margin-top: 8px;
    margin-bottom: 8px;
    color: #128c46;
    font-weight: bold;
    text-decoration: none;
}

.online-link:hover { text-decoration: underline; }

.event-info p {
    margin-top: -5px;
    font-size: 14px;
    color: #272727;
}

.event-info ul {
    font-size: 13px;
    color: #272727;
}

.event-label {
    position: absolute;
    top: 15px; right: 15px;
    background-color: rgba(209, 209, 209, 0.9);
    color: #000000;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 18px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 3;
}

.date-badge {
    position: absolute;
    top: 14px; left: 18px;
    z-index: 3;
    background: #128c46;
    color: white;
    border-radius: 8px;
    padding: 6px 8px;
    min-width: 52px;
    text-align: center;
}

.date-badge .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.date-badge .month {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.date-badge.multi .day { font-size: 1rem; }

.card h3 { margin-top: 0; color: #128c46; }
.card p { margin: 10px 0 0; color: #333; }

/* ===================== TABLET ===================== */
@media (max-width: 1024px) {

    .title-row { padding: 0 40px; }

    .cards-veranstaltungen {
        grid-template-columns: 1fr;
        padding: 0 40px;
        gap: 24px;
    }

    .filter-container { padding: 20px 40px; }
}

/* ===================== MOBILE ===================== */
@media (max-width: 768px) {

    .cards-veranstaltungen {
        grid-template-columns: 1fr !important;
        gap: 16px;
        padding: 0 20px;
        margin: 20px 0 40px;
        box-sizing: border-box;
    }

    .veranstaltungen {
        height: auto !important;
        min-height: 0;
        padding: 16px 16px 16px 20px;
    }

    .veranstaltungen.highlight { height: auto !important; }

    .event-label {
        top: 12px; right: 12px;
        font-size: 12px;
        padding: 6px 12px;
    }

    .date-badge {
        top: 12px; left: 14px;
        min-width: 44px;
        padding: 5px 6px;
    }

    .date-badge .day { font-size: 1.2rem; }
    .date-badge.multi .day { font-size: 0.85rem; }

    .event-info .titel { font-size: 18px; margin: 0 0 8px 0; }
    .event-info .datum { font-size: 14px; margin-top: 0; }
    .event-info p { font-size: 13px; }

    .title-row {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        margin-top: 25px;
        gap: 10px;
    }

    .title-row .verlinkung {
        margin-left: auto;
        white-space: nowrap;
        font-size: 0.75rem;
        padding: 0.5rem 0.9rem;
        flex-shrink: 0;
    }

    .filter-container {
        padding: 0 20px;
        gap: 8px;
    }

    .filter-btn {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
}


a.filter-btn-link,
a.filter-btn-link:link,
a.filter-btn-link:visited {
    text-decoration: none !important;
    color: #555f58 !important;
    background-color: #d8dada !important;
    border-color: rgba(0,0,0,0.12) !important;
}

a.filter-btn-link:hover,
a.filter-btn-link:active,
a.filter-btn-link:focus {
    text-decoration: none !important;
    background-color: #128c46 !important;
    color: #ffffff !important;
    border-color: #128c46 !important;
}

@media (max-width: 1400px) {
    .hero-text { padding: 3rem 40px 2rem; }
}

/* ===================== TABLET (≤1200px) ===================== */
@media (max-width: 1200px) {
    .hero-text { padding: 3rem 40px 2rem; }
}

/* ===================== TABLET (≤1024px) ===================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-text { padding: 3rem 40px 2rem; }
}

/* ===================== MOBILE (≤768px) ===================== */
@media (max-width: 768px) {
    .hero-text {
        position: static;
        transform: none;
        padding: 2rem 20px 1.5rem;
        text-align: left;
        box-sizing: border-box;
    }

    .hero-text h1 {
        font-size: 28px;
        margin: 0;
    }