/* Allgemeine Einstellungen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
}

header h1 {
    text-align: center;
    font-size: 2.5rem;
}

nav ul {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

nav ul li {
    list-style-type: none;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #18bc9c;
}

/* Main + Sidebar Layout */
.container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 10px;
}

#pageContent {
    flex: 2;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#pageContent h2,
#pageContent h3,
#pageContent h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

#pageContent p {
    margin-bottom: 15px;
}

/* Tabellen */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

table th {
    background-color: #2c3e50;
    color: white;
}

table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

table tbody tr:hover {
    background-color: #d1f0e2;
}

table a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

table a:hover {
    color: #18bc9c;
}

/* Fußnoten */
.footnotes {
    font-size: 0.9rem;
    color: #555;
}

/* Sidebar */
aside {
    flex: 1;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    min-width: 250px;
}

aside h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

aside ul {
    list-style-type: none;
    margin-bottom: 20px;
}

aside ul li {
    margin-bottom: 10px;
}

aside ul li a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

aside ul li a:hover {
    color: #18bc9c;
}

/* Werbung */
.advert {
    margin-top: 20px;
    text-align: center;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 8px 0;
    }
}

/* Hinrunde und Rückrunde nebeneinander */
.tables-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tables-wrapper .table-container {
    flex: 1;
    min-width: 300px; /* sorgt dafür, dass Tabellen nicht zu klein werden */
    overflow-x: auto;
}

.tables-wrapper table {
    width: 100%;
}


/* Seitenüberschrift + Navigation */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.header-nav {
    display: flex;
    gap: 10px;
}

/* Buttons */
.nav-button {
    padding: 8px 14px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.nav-button:hover {
    background-color: #18bc9c;
}


.fest-fotos img {
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Sieht bei Fotos toll aus */
}





.topic-card {
    display: flex;          /* Aktiviert das Nebeneinander-Layout */
    align-items: center;    /* Zentriert Bild und Text vertikal */
    gap: 20px;              /* Abstand zwischen Bild und Text */
    margin-bottom: 30px;    /* Abstand zum nächsten Thema */
}

.topic-image {
    width: 75px;           /* Breite des Bildes */
    height: auto;           /* Proportionale Höhe */
    border-radius: 8px;     /* Optional: Abgerundete Ecken */
    object-fit: cover;      /* Sorgt dafür, dass das Bild nicht verzerrt */
}

/* Für Mobilgeräte: Bild über den Text schieben, wenn der Platz knapp wird */
@media (max-width: 600px) {
    .topic-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .topic-image {
        width: 100%;        /* Bild nutzt volle Breite auf dem Handy */
        max-width: 300px;
    }
}