/* ==========================================================
   Grundeinstellungen
   ========================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;

    background: #1b0300;
    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;
}


/* ==========================================================
   Seite
   ========================================================== */

.page {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-height: 100vh;
}


/* ==========================================================
   Navigation
   ========================================================== */

.navigation {
    width: 100%;

    background:
        linear-gradient(
            to bottom,
            #45484b 0%,
            #303336 45%,
            #1d1f21 100%
        );

    border-bottom: 1px solid #000000;
}

.navigation-inner {
    display: flex;
    align-items: center;

    width: 100%;
    max-width: 1000px;

    margin: 0 auto;
    padding: 8px 20px;

    gap: 5px;
}

.navigation a {
    display: block;

    padding: 8px 14px;

    border-radius: 2px;

    color: #63d7ff;

    font-size: 14px;

    text-decoration: none;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.navigation a:hover,
.navigation a:focus-visible {
    background: #33373a;
    color: #ffffff;

    outline: none;
}

.navigation a.active {
    background: #3dc5f3;
    color: #071015;
}


/* ==========================================================
   Mobile Navigation
   ========================================================== */

.mobile-navigation-header {
    display: none;
}

.menu-button {
    display: none;

    width: 44px;
    height: 44px;

    margin: 0;
    padding: 9px;

    border: 0;
    border-radius: 4px;

    background: transparent;

    cursor: pointer;
}

.menu-button span {
    display: block;

    width: 100%;
    height: 3px;

    margin: 5px 0;

    border-radius: 2px;

    background: #ffffff;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.menu-button.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-button.open span:nth-child(2) {
    opacity: 0;
}

.menu-button.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ==========================================================
   Hauptinhalt
   ========================================================== */

.content {
    flex: 1;

    width: 100%;
    max-width: 1000px;

    margin: 0 auto;

    padding: 15px 20px 30px;
}


/* ==========================================================
   Dokumentbilder
   ========================================================== */

.document-images {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;

    gap: 14px;
}

.document-images img {
    display: block;

    /*
     * Desktop maximal 900 Pixel.
     * Kleinere Displays skalieren automatisch herunter.
     */

    width: 100%;
    max-width: 600px;
    height: auto;

    border: 0;
    border-radius: 6px;

    user-select: none;

    -webkit-user-select: none;
    -webkit-user-drag: none;
}


/* ==========================================================
   Footer
   ========================================================== */

.footer {
    width: 100%;

    margin-top: auto;

    background:
        linear-gradient(
            to bottom,
            #484b4e 0%,
            #303235 45%,
            #1d1f21 100%
        );

    border-top: 1px solid #111111;
}

.footer-inner {
    width: 100%;
    max-width: 1000px;

    margin: 0 auto;
    padding: 14px 20px;

    color: #dddddd;

    font-size: 11px;
}


/* ==========================================================
   Smartphone
   ========================================================== */

@media (max-width: 650px) {

    /*
     * Auf dem Handy bleibt nur die schmale Leiste
     * mit Hamburger sichtbar.
     */

    .mobile-navigation-header {
        display: flex;
        justify-content: flex-end;
        align-items: center;

        min-height: 54px;

        padding: 5px 8px;
    }

    .menu-button {
        display: block;
    }


    /*
     * Menüpunkte standardmäßig verstecken.
     *
     * Wichtig:
     * Nicht die komplette .navigation verstecken,
     * sonst würde auch unser Hamburger verschwinden.
     */

    .navigation-inner {
        display: none;

        max-width: none;

        padding: 0 8px 8px;
    }

    .navigation.open .navigation-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 2px;
    }

    .navigation a {
        width: 100%;

        padding: 12px;

        font-size: 16px;
    }


    /*
     * Inhalt
     */

    .content {
        max-width: none;

        padding: 8px 8px 20px;
    }


    /*
     * Bilder
     */

    .document-images {
        gap: 8px;
    }

    .document-images img {
        width: 100%;
        max-width: 100%;
        height: auto;

        border-radius: 4px;
    }


    /*
     * Footer
     */

    .footer-inner {
        padding: 12px 10px;

        font-size: 10px;
    }

}


/* ==========================================================
   Sehr kleine Smartphones
   ========================================================== */

@media (max-width: 380px) {

    .mobile-navigation-header {
        min-height: 50px;

        padding: 3px 6px;
    }

    .content {
        padding: 6px 6px 16px;
    }

    .document-images {
        gap: 6px;
    }

}
