section[id] {
    scroll-margin-top: var(--header-height);
}

.eventcontainer {
    max-width: 1100px;
    /* Die maximale Breite der Inhalte */
    margin: 0 auto;
    /* Zentriert den Block mittig */
    padding: 0 20px;
    /* Ein kleiner Sicherheitsabstand zu den Rändern auf dem Handy */
}

/* --- TERMINE STYLING --- */
.events-section {
    padding: 60px 0 0;
    background-color: #b89e4b;
}

.event-list {
    max-width: 900px;
    margin: 0 auto;
}

.event-row {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.event-row:hover {
    background-color: #fcfcfc;
}

/* Markiert den Termin, wenn er per Anker angesprungen wird */
.event-row:target {
    background-color: #fff9e6;
    /* Ganz zartes Gelb/Gold */
    transition: background-color 2s ease;
}

/* Datum-Kachel */
.event-date {
    background-color: #2C3E50;
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 80px;
    margin-right: 30px;
}

.event-date .day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Info-Bereich */
.event-info {
    flex-grow: 1;
}

.event-info h3 {
    font-family: "Playfair Display", serif;
    margin: 0 0 5px 0;
    font-size: 1.3rem;
}

.event-info p {
    margin: 0;
    color: #777;
    font-size: 0.95rem;
}

/* Button / Status */
.event-btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #8B0000;
    color: #8B0000;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.event-btn:hover {
    background-color: #8B0000;
    color: white;
}

/* Vergangene Termine */
.past-event {
    opacity: 0.5;
    filter: grayscale(1);
}

.status {
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
}

/* Mobil-Optimierung */
@media (max-width: 767px) {
    .event-row {
        flex-direction: column;
        text-align: center;
    }

    .event-date {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .event-action {
        margin-top: 15px;
    }
}

.calendar-icon {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.8rem;
    vertical-align: middle;
    /* Optional: Ein leichter Sepia-Filter macht das Emoji etwas "vintage" */
    filter: sepia(0.5) brightness(0.8);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Playfair Display", serif;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #2C3E50;
}

.custom-calendar {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 2px solid #8B0000; /* Grundfarbe */
    border-radius: 4px;
    position: relative;
    margin-right: 15px;
}

.custom-calendar::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 4px;
    width: 2px;
    height: 8px;
    background: #8B0000;
    box-shadow: 14px 0 0 #8B0000;
    /* Zwei Haltestreben oben */
}

.custom-calendar::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #8B0000;
    /* Die Linie unter dem Kopfbereich */
}