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;
}

.kontakte-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;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.kontakte-inhalt {
    flex: 1;
    min-width: 0;
}

.kontakte-text p {
    max-width: 100%;
    text-align: left;
    margin: 0;
}

.webseite-preview {
    width: 280px;
    min-height: 340px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #102a43;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    background-color: white;
}

.webseite-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.webseite-preview-header {
    background-color: #123b66;
    padding: 1rem;
    text-align: center;
}

.webseite-preview-header h3 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    line-height: 1.3;
}

.webseite-preview-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
}

.webseite-preview-content p {
    margin: 0;
    text-align: center;
    color: #102a43;
    font-size: 0.95rem;
    line-height: 1.4;
}

.webseite-preview-footer {
    padding: 0.75rem 1rem;
    background-color: #f5f5f5;
    text-align: center;
    border-top: 1px solid #ddd;
}

.webseite-preview-footer span {
    color: #666;
    font-size: 0.85rem;
}
.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;
    }

    .kontakte-text {
        flex-direction: column;
        width: calc(100% - 2rem);
        margin: 1rem;
    }

    .webseite-preview {
        width: min(100%, 280px);
        align-self: center;
    }

    .seiten-footer {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
    }
}
