:root {
    /*** GRUNDFARBEN ***/
    /*
        Hauptfarbe: Wird für den ( neu definiert Rand der Kopfzeile), den Hintergrund
        der Fußzeile und die Schaltfläche für das Menü in der mobilen
        Ansicht verwendet.  --> OSL-Blau
     */
    --primary-color: #007C9C; /*#06F;*/
    /*
        Hauptfarbe (etwas heller): Wird für Hovereffekt der Schaltfläche
        für das Menü in der mobilen Ansicht verwendet.
    */
    --primary-color-light: #3385FF;
    /*
        Hauptfarbe (heller): Wird für Links in der Fußzeile verwendet.
    */
    --primary-color-lighter: #99C2FF;
    /*
        Hauptfarbe (am hellsten): Wird für den Hovereffekt von Links in 
        der Fußzeile verwendet.
    */
    --primary-color-lightest: #CCE0FF;

    /*** SEITENINHALT ***/
    /*
        Farben für den Verlauf im Hintergrund der Seite.
    */
    --background-gradient-from: white;
    --background-gradient-to: #e7e7e7;

    /*** KOPFZEILE ***/
    /*
        Hintergrundfarbe der Kopfzeile.
    */
    --header-background-color: white;
    /*
        Höhe und Breite für die Logografik in der Kopfzeile.
    */
    --header-image-width:  245px; /*240px;*/
    --header-image-height: 150px; /*80px;*/
    /*
        Abstand zwischen Logo und Titel in der Kopfzeile.
    */
    --header-image-spacing: 16px;
    /*
        Textgrößen für Titel in der Kopfzeile (in Desktop- und
        mobiler Ansicht).
    */
    --header-text-size: 28pt;
    --header-text-size-mobile: 18pt; /*21pt*/
    /*
        Dicke der Linie am unteren Randes.
    */
    --header-border-width: 4px;
	--header-border-width_o: 8px;
	/*
        Farbe der Linie am unteren Randes. --> OSL-Grün
    */
    --header-border-color: #b9cf26;
    /*
        Abstand zwischen Rand und Inhalt der Kopfzeile.
    */
    --header-padding: 1rem;
    /*
        Abstand zwischen Kopfzeile und eigentlichem Seiteninhalt.
    */
    --header-margin: 12px;
    /*
        Farbe des Rahmens um das Menü in der mobilen Ansicht.
    */
    --header-menu-border-color: #999;

    /*** FUSSZEILE ***/
    /*
        Farbe der Links in der Fußzeile (normal und mit Hovereffekt).
    */
    --footer-link-color: var(--primary-color-lighter);
    --footer-link-color-hover: var(--primary-color-lightest);
	
	/*
        Farbe Text in der Fußzeile (normal und mit Hovereffekt).
    */
	
	--footer-text-color: white;
	
    /*
        Abstand zwischen den Links in der Fußzeile.
    */
    --footer-link-spacing: 8px;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--background-gradient-to) linear-gradient(180deg, var(--background-gradient-from) 0%, var(--background-gradient-to) 100%);
    background-attachment: fixed;
}

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    background-color: var(--header-background-color);
    padding: var(--header-padding) 0;
	
	/*border-bottom: var(--header-border-width_o) solid var(--primary-color);*/
    border-bottom: var(--header-border-width_o) solid var(--header-border-color);
    margin-bottom: var(--header-margin);
}

header img {
    flex-shrink: 0;
    width: var(--header-image-width);
    height: var(--header-image-height);
}

header h1 {
    margin: 0;
    margin-left: var(--header-image-spacing);
    font-size: var(--header-text-size);
}

.maintenance {
    background: #fdd;
    border: 1px solid #600;
    color: #600;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    max-width: 600px;
    margin: auto;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
}

#footer-content {
    width: 100%;
    background-color: var(--primary-color);
    padding: 12px;
    color: var(--footer-text-color);
    font-weight: 500;
    text-align: center;
    margin-top: 8px;
}

#footer-content:empty {
    display: none;
}

#footer-content > a, #footer-content > a:active, #footer-content > a:visited  {
    color: var(--footer-link-color);
    padding: var(--footer-link-spacing);
    text-decoration: none;
}

#footer-content > a, #footer-content > a:hover  {
    color: var(--footer-link-color-hover);
}

section {
    max-width: 585px;
    margin: 0 auto;
}

h1, h2 {
    color: #007C9C /*#666*/
}

h1 {
    font-size: 1.5em;
    margin-bottom: 16px;
    margin-top: 0;
}

h2 {
    font-size: 1.1em;
    margin-bottom: 8px;
}

#mobile-menu {
    display: none;
}

@media only screen and (max-width: 665px) {
    header {
        padding: calc(var(--header-padding) * 0.75);
        display: flex;
        justify-content: space-between;
        position: relative;
    }

    header img {
        display: none;
    }

    header h1 {
        font-size: var(--header-text-size-mobile);
        margin: 0;
    }

    #mobile-menu.has-elements {
        display: block;
        position: relative;
    }

    #mobile-menu-open, #mobile-menu-close {
        padding: 4px;
        display: flex;
        align-items: center;
        border: none;
        background: none;
        cursor: pointer;

        color: var(--primary-color);
    }

    #mobile-menu-open:hover, #mobile-menu-close:hover {
        color: var(--primary-color-light);
    }

    #mobile-menu-panel {
        display: none;

        position: absolute;
        right: -3px;
        top: -3px;

        flex-direction: column;
        align-items: flex-end;

        background: var(--header-background-color);
        border: 1px solid #eee;
        border-radius: 4px;
        padding: 2px;
        padding-bottom: 6px;

        z-index: 2002;
        box-shadow: 5px 5px 4px 0px rgba(227,227,227,1);
    }

    #mobile-menu.open #mobile-menu-panel {
        display: flex;
    }
    
    #mobile-menu-elements {
        display: none;

        display: flex;
        flex-direction: column;
        align-items: flex-stretch;
        padding: 0px 6px;

        font-size: 12pt;
    }

    footer {
        display: none;
    }
}
