body {
    margin: 0;
    color: #102a43;
    background-color: white;
    font-family: Arial, sans-serif;
    font-size: 12pt;
}

.kopfzeile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 5rem;
    padding: 0.75rem 2rem;
    box-sizing: border-box;
    background-color: lightblue;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 11rem;
    min-height: 4rem;
    color: #102a43;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
}

.logo img {
    display: block;
    max-width: 100%;
    max-height: 5.5rem;
    object-fit: contain;
}

.hauptnavigation {
    display: flex;
    flex: 1;
    align-items: stretch;
    justify-content: center;
    gap: 0.5rem;
}

.hauptnavigation details {
    position: relative;
}

.hauptnavigation summary {
    padding: 1rem 0.85rem;
    color: #102a43;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.hauptnavigation summary a {
    color: inherit;
    text-decoration: none;
}

.hauptnavigation summary::-webkit-details-marker {
    display: none;
}

.hauptnavigation summary::after {
    display: inline-block;
    margin-left: 0.5rem;
    content: "▾";
    font-size: 0.8em;
}

.hauptnavigation summary:hover,
.hauptnavigation summary:focus-visible {
    color: #ffffff;
    background-color: #123b66;
}

@media (hover: hover) and (pointer: fine) {
    .hauptnavigation details:hover > summary {
        color: #ffffff;
        background-color: #123b66;
    }

    .hauptnavigation details:hover > .untermenue {
        display: block;
    }
}

.untermenue {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1;
    min-width: 13rem;
    margin: 0;
    padding: 0.35rem 0;
    background-color: #123b66;
    list-style: none;
}

.untermenue li a {
    display: block;
    padding: 0.65rem 1rem;
    color: #ffffff;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.untermenue li a:hover,
.untermenue li a:focus-visible {
    background-color: #2f6f9f;
}

@media (max-width: 700px) {
    .kopfzeile {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

    .hauptnavigation {
        flex-wrap: wrap;
        justify-content: flex-start;
        width: 100%;
    }
}

.historien-hero {
    position: relative;
    height: 28rem;
    overflow: hidden;
}

.historien-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.historien-hero h1 {
    position: absolute;
    top: 42%;
    right: 8%;
    width: min(42%, 32rem);
    margin: 0;
    color: white;
    font-family: Arial, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.75);
}

.förderung-box {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: calc(100% - 4rem);
    margin: 1.5rem 2rem 2rem;
    padding: 1.75rem;
    background-color: #dfeeff;
    border-radius: 22px;
    box-sizing: border-box;
}

.förderung-text {
    flex: 1;
    min-width: 0;
}

.förderung-text p {
    margin: 0;
    color: #000000;
    font-family: Arial, sans-serif;
    font-size: 15pt;
    line-height: 1.6;
}

.förderung-bild {
    width: min(38%, 20rem);
    height: auto;
    border-radius: 16px;
    display: block;
    object-fit: cover;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    filter: saturate(1.15) contrast(1.08) brightness(1.04);
}

.vorraussetzungen-box {
    width: calc(100% - 7rem);
    margin: 2rem auto 2rem 3rem;
    padding: 2rem;
    background-color: #dfeeff;
    border-radius: 22px;
    box-sizing: border-box;
}

.vorraussetzungen-box p {
    margin: 0 0 1.5rem 0;
    color: #102a43;
}

.vorraussetzungen-box p:last-child {
    margin-bottom: 0;
}

.vorraussetzungen-box ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.vorraussetzungen-box li {
    margin: 0.5rem 0;
}
.seiten-footer {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 2rem;
    padding: 1rem;
    background-color: lightblue;
}
.seiten-footer a {
    padding: 0 1rem;
    color: #102a43;
    text-decoration: none;
}
.seiten-footer a + a {
    border-left: 1px solid #102a43;
}
.seiten-footer a:hover,
.seiten-footer a:focus-visible {
    color: #ffffff;
}

@media (max-width: 700px) {
    .förderung-box {
        flex-direction: column;
        width: calc(100% - 2rem);
        margin: 1rem;
    }

    .förderung-bild {
        width: 100%;
    }
}

    @media (max-width: 700px) {
        body {
            overflow-x: hidden;
        }

        .kopfzeile {
            flex-direction: row;
            align-items: center;
            gap: 1rem;
            padding: 0.75rem 1rem;
        }

        .logo {
            width: 8rem;
            min-width: 8rem;
        }

        .hauptnavigation {
            flex-wrap: nowrap;
            justify-content: flex-start;
            min-width: 0;
            overflow-x: auto;
            scrollbar-width: thin;
        }

        .hauptnavigation details {
            flex: 0 0 auto;
        }

        .hauptnavigation summary {
            padding: 0.75rem 0.6rem;
            font-size: 1rem;
            white-space: nowrap;
        }

        .historien-hero {
            height: 20rem;
        }

        .historien-hero h1 {
            right: 5%;
            width: 45%;
            font-size: 1.75rem;
        }

        .förderung-box,
        .vorraussetzungen-box {
            width: calc(100% - 2rem);
            margin: 1rem;
        }

        .seiten-footer {
            justify-content: flex-start;
            overflow-x: auto;
            white-space: nowrap;
        }
    }
