body {
    font-family: sans-serif;
    background-color: #f8f8f8;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    /* NEU: bessere Lesbarkeit */
}

header {
    background-color: #e0e0e0;
    padding: 1rem;
    text-align: center;
    border-bottom: 3px solid #0077cc;
}

.logo {
    max-height: 80px;
}

nav ul {
    list-style: none;
    background: #333;
    color: white;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 1rem;
    color: white;
    text-decoration: none;
}

nav ul li a:hover {
    background: #0077cc;
}

main {
    padding: 2rem;
}

footer {
    background-color: #e0e0e0;
    text-align: center;
    padding: 1rem;
    border-top: 3px solid #0077cc;
    margin-top: 2rem;
    /*
    bottom: 0; 
    width: 100%;
    position: absolute;
    */
}

.language-switch {
    text-align: right;
    margin-bottom: 0.5rem;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

p {
    margin-bottom: 1.1em;
}

/* Hero / Titelbild */
.hero {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0 2rem;
    text-align: center;
}

.hero img {
    display: block;

    /* NIE größer als echte Bildbreite rendern */
    width: auto !important;
    max-width: 100%;
    height: auto !important;

    /* natürliche Breite als Obergrenze */
    max-width: 900px;
    /* OBERGRENZE – anpassen falls dein Bild breiter ist */

    /* CLS vermeiden */
    aspect-ratio: 900 / 600;

    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Mobile: auf Bildschirmbreite verkleinern, aber NICHT vergrößern */
@media (max-width: 768px) {
    .hero img {
        width: auto;
        /* kein Upscaling */
        max-width: calc(100vw - 2rem);
        /* passt in den Viewport (2rem = Seitenpadding) */
        height: auto;
        /* Seitenverhältnis bleibt */
    }
}

.hero figcaption {
    font-size: 0.95rem;
    color: #6b7280;
    /* dezentes Grau */
    margin-top: .5rem;
}

/* optional: volle Breite */
/*
.fullbleed .hero { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.fullbleed .hero img { width: 100vw; border-radius: 0; }
*/