/* --------------------------------------- */
/*  GLOBAL: Grundlegende Stile + Barrierefreiheit */
/* --------------------------------------- */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Fokus sichtbar für Tastaturnutzer */
*:focus {
    outline: 3px solid #0073E6;
    outline-offset: 3px;
}

/* --------------------------------------- */
/*  HEADER */
/* --------------------------------------- */
header {
    background-color: #fff;
    color: #0073E6;
    padding: 20px;
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.website-titel {
    font-size: 2.5em;
    font-weight: normal;
    margin: 0.5em 0;
}

/* --------------------------------------- */
/*  LEITFOTO */
/* --------------------------------------- */
.leitfoto-container {
    text-align: center;
    width: 100%;
    background-color: #fff;
}

.leitfoto {
    max-width: 1200px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* --------------------------------------- */
/*  NAVIGATION + BURGER */
/* --------------------------------------- */

/* Sticky Navigation = Bezugspunkt */
nav.fixed-nav {
    background-color: #0073E6;
    color: white;
    padding: 10px 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;

    /* wichtig für absolute Positionierung des Menüs */
    position: sticky;
}

/* Navigationselemente (Desktop) */
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.nav-list li {
    margin: 0 10px;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.nav-list a:hover {
    color: #6BAA75;
}

/* --------------------------------------- */
/*  Textgrößensteuerung */
/* --------------------------------------- */
.text-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
    width: 140px;
}

.text-controls button {
    background-color: transparent;
    border: 1px solid white;
    color: white;
    font-size: 16px;
    padding: 2px 6px;
    margin-left: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color .3s, color .3s;
    width: 33%;
    text-align: center;
}

.text-controls button:hover {
    background-color: white;
    color: #0073E6;
}

/* --------------------------------------- */
/*  BURGER ICON (mobil) */
/* --------------------------------------- */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Toggle (Checkbox) */
#nav-toggle {
    display: none;
}

/* Burger → X Animation */
#nav-toggle:checked + label.burger div:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#nav-toggle:checked + label.burger div:nth-child(2) {
    opacity: 0;
}

#nav-toggle:checked + label.burger div:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------- */
/*  HAUPTINHALT */
/* --------------------------------------- */
main {
    background-color: white;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
    font-size: 2em;
    font-weight: normal;
    color: #0073E6;
}

main h2 {
    color: #0073E6;
    font-size: 28px;
}

main h3 {
    color: #008080;
    font-size: 24px;
    margin-top: 20px;
}

main p {
    font-size: 18px;
}

/* --------------------------------------- */
/*  FOOTER */
/* --------------------------------------- */
footer {
    background-color: #0073E6;
    color: white;
    text-align: center;
    padding: 10px 0;
}

/* --------------------------------------- */
/*  RESPONSIVE — MOBILE BURGER (DYNAMISCH) */
/* --------------------------------------- */
@media (max-width: 768px) {

    /* Burger sichtbar */
    .burger {
        display: flex;
    }

    /* Slide-in Menü relativ zur Nav – KEIN Pixelwert */
    .nav-list {
        position: absolute;
        top: 100%;          /* ← dynamisch exakt unter der Nav */
        right: 0;

        width: 75%;
        max-width: 300px;
        background-color: #0073E6;

        opacity: 0;
        transform: translateX(100%);
        transition: transform 0.25s ease, opacity 0.25s ease;

        pointer-events: none;
        padding: 20px 10px;

        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;

        box-shadow: -4px 0 10px rgba(0,0,0,0.2);
    }

    #nav-toggle:checked ~ ul.nav-list {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

    .text-controls {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .website-titel { font-size: 28px; }
    nav ul li a { font-size: 16px; }
    main h2 { font-size: 24px; }
    main p { font-size: 16px; }
}

