/* Hauptcontainer */
.event-single {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0 auto;
    padding: 20px;
    max-width: 800px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Desktop-Ansicht: feste Breite */
@media (min-width: 1024px) {
    .event-single {
        width: 800px;
    }
}

/* Event Banner */
.event-banner {
    background-size: cover;
    background-position: center;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 0 0;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.event-banner h1 {
    font-size: 2rem;
    background-color: rgba(0, 0, 0, 0.66);
    padding: 10px 20px;
    border-radius: 5px;
    margin: 0;
    color: #9bcad3;
}

/* Event-Meta-Daten */
.event-meta {
    margin: 20px 0;
    padding: 15px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-meta p {
    margin: 5px 0;
    font-size: 1rem;
    color: #333;
}

.event-meta p strong {
    color: #3aa6b9;
}

/* Prediger-Abschnitt */
.prediger-list {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    padding: 15px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.prediger-item {
    text-align: center;
    flex: 1;
}

.prediger-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.prediger-item p {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

/* Event-Beschreibung */
.event-content {
    margin: 20px 0;
    padding: 15px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-content p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

/* Event-Tasks */
.event-tasks {
    margin: 20px 0;
    padding: 15px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-task-table {
    width: 100%;
    border-collapse: collapse;
}

.event-task-table th {
    background: #3aa6b9;
    color: #fff;
    text-align: left;
    padding: 10px;
    border: 1px solid #ddd;
}

/* Erste Spalte fixieren, außer bei der Ansprechpersonen-Reihe */
.event-task-table tr:not(.task-contacts-row) td:first-child,
.event-task-table tr:not(.task-contacts-row) th:first-child {
    position: sticky;
    left: 0;
    background-color: #f1f1f1;
    z-index: 2;
    border-right: 1px solid #ddd;
}

/* Für die Ansprechpersonen-Reihe */
.event-task-table .task-contacts-row td:first-child {
    position: static;
    background-color: transparent;
    z-index: 1;
}

/* Kopfzeile optisch hervorheben */
.event-task-table thead th {
    background-color: #3aa6b9;
    color: white;
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
}

.event-task-table td {
    padding: 10px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
}

/* Zurück-Button */
.back-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #3aa6b9;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background 0.3s;
}

.back-button:hover {
    background: #3497a5;
}

/* Task-Header */
.task-header {
    background-color: #3aa6b973;
    font-weight: bold;
    padding: 10px;
    border: 1px solid #ddd;
}

/* Mobile Ansicht */
@media (max-width: 768px) {
    .event-banner {
        height: 200px;
    }

    .event-banner h1 {
        font-size: 1.5rem;
        padding: 8px 15px;
    }

    .prediger-list {
        flex-direction: column;
    }

    .prediger-avatar img {
        width: 80px;
        height: 80px;
    }

    .event-task-table th,
    .event-task-table td {
        font-size: 0.8rem;
    }
}

/* Zentrierung von Inhalten */
/*.entry-content.clear {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}*/

.event-list-filter-form {
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
