/* Globales Layout */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f4f6f8;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Header */
header {
    background-color: #e6f0f9;
    padding: 20px 0 10px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2em;
    color: #003366;
}

/* Header-Buttons unter Titel zentriert */
.header-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.header-buttons a {
    background-color: #003366;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.3s ease;
}

.header-buttons a:hover {
    background-color: #005599;
}

/* Hero-Bild auf Startseite */
.hero-image {
    margin: 30px auto 10px;
    max-width: 800px;
    width: 90%;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Übersicht Startseite */
.startseite {
    background-color: #f4f7fb;
}

.uebersicht {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 50px;
}

.uebersicht h2 {
    text-align: center;
    color: #003366;
    margin-top: 40px;
}

.themenboxen {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.box {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 220px;
    text-align: left;
}

/* Call-to-Action Button */
.cta-button {
    display: inline-block;
    margin: 20px auto 40px;
    padding: 12px 24px;
    background-color: #003366;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
}

.cta-button:hover {
    background-color: #005599;
}

/* Suchformular */
form {
    max-width: 600px;
    margin: 30px auto 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
}

input[type="text"],
input[type="submit"],
textarea {
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

input[type="submit"] {
    background-color: #003366;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    align-self: center;
    width: 50%;
}

input[type="submit"]:hover {
    background-color: #0055aa;
}

/* Beiträge */
.beitrag {
    background-color: white;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    max-width: 700px;
}

.beitrag img {
    max-width: 100%;
    border-radius: 6px;
    margin-top: 15px;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 40px 0;
}

a {
    color: #3b0d82;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.zentriert {
    text-align: center;
    margin: 20px auto;
}

/* Seitennavigation */
.seiten-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px auto;
    padding: 10px;
}

.seiten-navigation a,
.seiten-navigation span {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    color: #003366;
    border: 1px solid #003366;
    border-radius: 5px;
    font-weight: normal;
}

.seiten-navigation .aktiv {
    background-color: #003366;
    color: white;
    font-weight: bold;
    border: 2px solid #003366;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    header h1 {
        text-align: center;
    }

    .header-buttons {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 15px;
    }

    .themenboxen {
        flex-direction: column;
        align-items: center;
    }

    .box {
        width: 90%;
    }

    form {
        padding: 0 10px;
    }

    input[type="submit"] {
        width: 100%;
    }
}