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);
}

p {
    margin: 0;
    color: #000000;
    font-family: Arial, sans-serif;
    font-size: 14.5pt;
    line-height: 1.5;
}

.ueber-uns-text {
    width: calc(100% - 4rem);
    margin: 1.5rem 2rem 2rem;
    padding: 1.5rem 1.75rem;
    background-color: #dfeeff;
    border-radius: 22px;
    box-sizing: border-box;
}

.ueber-uns-text p {
    max-width: 100%;
    text-align: left;
}

.zielgruppe-box {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 1.5rem 2rem 2rem;
    padding: 1.5rem;
    background-color: #dfeeff;
    border-radius: 20px;
    box-sizing: border-box;
}

.zielgruppe-text {
    flex: 1;
    min-width: 0;
}

.zielgruppe-bild {
    width: min(36%, 22rem);
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    display: block;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    filter: saturate(1.08) contrast(1.02);
}

@media (max-width: 700px) {
    .zielgruppe-box {
        flex-direction: column;
    }

    .zielgruppe-bild {
        width: 100%;
    }
}

.jahrestreffen-roboter {
    width: auto;
    margin: 1.5rem 2rem 2rem auto;
    padding: 1.5rem 1.75rem;
    background-color: #dfeeff;
    border-radius: 22px;
    box-sizing: border-box;
    max-width: 38%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 2rem;
}

.jahrestreffen-roboter img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: contrast(1.2) brightness(1.1) saturate(1.2) hue-rotate(0deg);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
}

.betreuer-bild {
    width: calc(100% - 4rem);
    margin: 1.5rem 2rem 2rem auto;
    margin-left: auto;
    padding: 1.5rem 1.75rem;
    background-color: #dfeeff;
    border-radius: 22px;
    box-sizing: border-box;
    max-width: 35%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.betreuer-bild img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: contrast(1.2) brightness(1.1) saturate(1.2) hue-rotate(0deg);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
}
.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) {
    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;
    }

    .zielgruppe-box,
    .förderung-box {
        width: calc(100% - 2rem);
        margin: 1rem;
    }

    .jahrestreffen-roboter,
    .betreuer-bild {
        max-width: calc(100% - 2rem);
        margin: 1rem;
    }

    .seiten-footer {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
    }
}