/* Site Template */
html {
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
    font-size: min(18px, 3svw);
    font-weight: 400;
    line-height: 1.6em;

    body {
        color: #444444;
        background-color: #F8F8F8;

        header {
            background-color: #000000;
            /* Header-Bild */
            &.catcher {
                min-height: 8rem;
                position: sticky;
                background-repeat: no-repeat;
                background-attachment: fixed;
                background-position: center top;
                background-image: url('/application/view/Website/Commedia-Adebar-Header-1.jpg');
            }

            figure {
                margin-left: 1rem;

                .logo {
                    margin-top: 1rem;
                    height: 8rem;
                }

                /* Login-Name */
                figcaption {
                    padding-top: 1rem;
                    color: #F8F8F8;
                    background-color: inherit;
                }
            }

            /* Applikations-Menu */
            nav {
                margin-top: 1rem;
                overflow: hidden;
                align-self: flex-start;
                text-align: right;

                button {
                    width: 16rem;
                    border-style: none;
                    vertical-align: top;
                    text-align: left;
                    font-size: 1.4rem;
                    font-weight: bolder;
                    color: #CBCBCB;
                    background-color: inherit;

                    a {
                        display: none;
                        color: #F8F8F8;
                        background-color: inherit;

                        &:hover, &:focus, &:active { color:  #FF4422; }
                    }

                    &:hover a, &:focus a, &:active a { display: block; }
                }
            }
        }

        main {
            /* Seitenhintergrund */
            &.wrapper {
                position: sticky;
                background-size: cover;
                background-position: center bottom;
                background-repeat: no-repeat;
                background-attachment: fixed;
            }
        }

        footer {
            article { line-height: 1.2rem; }
        }
    }
}

section {
    padding: 1rem;

    article {
       padding-left: 1rem;
       padding-right: 1rem;
   }
}

a {
    color: #FF4422;
    text-decoration-line: none;

    &:hover, &:focus, &:active {
        text-decoration-line: underline;
        text-decoration-style: solid;
        text-decoration-color:  #FF4422;
    }
}

figure {
    margin: 0;

    figcaption {
        font-size: 0.76rem;
        font-weight: bolder;
        line-height: 1.2rem;
        margin-bottom: 0.3rem;
    }
}

/* Formulare */
form {
    fieldset {
        border-style: none;

        button, input, select, option, input[type='file']::file-selector-button {
            padding: 0.4rem;
            font-size: 1rem;
            margin-bottom: 1rem;
        }

        legend {
            font-size: smaller;
            font-weight: bolder;
        }

        button {
            margin-top: 1rem;
            margin-bottom: 2rem;
            margin-right: 1rem;

            &:disabled { color: #A9A9A9; }
            &:not(:disabled):active { background-color: #CBCBCB; }

            &:focus { border-color: #666666; }
        }
    }
}

/* Tabellen */
table {
    th, td {
        padding-right: 0.5rem;
        border-collapse: collapse;
    }

    th { vertical-align: top; }
    td { font-size: smaller; }

    .left   { text-align: left; }
    .center { text-align: center; }
    .right  { text-align: right; }
}

/* Flexgrid: Mobile first */
.container {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;

    &.gallery { flex-wrap: wrap; }

    .focus, .side, .slim { width: 95%; }
    .logo, .teaser { display: none; }
}

/* Desktop */
@media only screen and (min-width: 800px) {
    .container {
        flex-direction: row;
        &.catcher { min-height: 16rem; }

        .focus { width: 62%; }
        .side  { width: 38%; }
        .slim  { width: 25%; }
        .logo, .teaser { display: block; }
    }

    header {
        figcaption { padding-top: 4rem; }
    }
}

/* Eigenheiten */
table svg, a svg {
    width: 1rem;
    height: 1rem;
}

.crossref {
    margin-right: 3rem;
    padding: 0.4rem;
    border-style: solid;
    border-width: 2px;
    border-color: #444444;
    color: #666666;
    background-color: #CBCBCB;
}

.dark {
    color: rgba(255,255,255,1);
    background-color: rgba(0,0,0,0.74);
}

.document { font-size: 1rem; }

.framebox {
    border-style: solid;
    border-width: 1px;
    border-color: #444444;
}
