body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #0056b3;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header p {
    margin-top: 0.5rem;
    font-size: 1.1em;
}

nav {
    background-color: #004085;
    padding: 0.7rem 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Ermöglicht Umbruch auf kleineren Bildschirmen */
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #002e60;
    border-radius: 5px;
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.intro {
    text-align: center;
    margin-bottom: 30px;
}

/* Modul-Karten auf der Startseite */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.module-card {
    background-color: #e9f5ff;
    padding: 20px;
    border-radius: 8px;
    text-decoration: none;
    color: #0056b3;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    display: block; /* Für volle Klickfläche */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.module-card h3 {
    margin-top: 0;
    color: #004085;
}

.module-card p {
    font-size: 0.9em;
    color: #555;
}


/* Styling für Modulseiten */
.module-intro {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.topics h2 {
    color: #0056b3;
    margin-top: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.topic-section {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 5px solid #0056b3;
    border-radius: 5px;
}

.topic-section h3 {
    color: #333;
    margin-top: 0;
    padding-bottom: 10px;
}

.case-study {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
}

.case-study h4 {
    background-color: #007bff;
    color: #fff;
    padding: 10px 15px;
    margin: 0;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    cursor: pointer; /* Zeigt an, dass es anklickbar ist */
    transition: background-color 0.2s ease;
}

.case-study h4:hover {
    background-color: #0056b3;
}

.case-study h4 .toggle-link {
    color: #fff;
    text-decoration: none;
    display: block; /* Macht den ganzen Bereich klickbar */
}

.content-toggle {
    padding: 15px;
    border-top: 1px solid #eee;
    display: none; /* Standardmäßig ausgeblendet */
}

.content-toggle h4 {
    color: #0056b3;
    background-color: transparent; /* Überschreibt den Hintergrund aus h4 */
    padding: 0;
    margin-top: 20px;
    border-radius: 0;
}

.content-toggle hr {
    border: 0;
    border-top: 1px dashed #ccc;
    margin: 20px 0;
}

.content-toggle ul {
    list-style: disc;
    margin-left: 20px;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: #004085;
    color: #fff;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        margin: 5px 0;
    }
    .module-grid {
        grid-template-columns: 1fr;
    }
}