﻿/* BASIC PAGEPROPERTIES   ----------------------------------------------------------*/
/* Move down content because we have a fixed navbar that is 50px tall */
:root {
    --bg: #fff;
    --fg: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --border-width: 0.1vw;
    --shadow: 0 10px 25px rgba(0,0,0,.08);
    --radius: 1vw;
    --radiussmall: 0.5vw;
    --spoered: rgb(198,25,50);
    --spoeredlight: rgb(253,237,239);
    --fontsizenormal: clamp(5px, 1.3vw, 13px);
    --fontsizesmall: clamp(5px, 1.1vw, 10px);
    --fontsizesmallest: clamp(4px, 0.9vw, 8px)
}

body {
    padding-top: 0px;
    font-size: var(--fontsizenormal);
    font-family: Verdana;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    /*font-size: var(--fontsizenormal); */
}

/* ---------------------- */
/* Portrait tablets and up */
/* ---------------------- */
@media screen and (min-width: 768px) {
    .jumbotron { /* top margin, but only when the screen is at least 768px wide (tablet and up). */
        margin-top: 20px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .body-content {
        width: 100%;
        background-color: #f8f8f8;
        color: #595959;
        border: 2px solid #ccc;
        padding-left: 2vw;
        padding-right: 2vw;
    }

    .body-font {
        font-size: var(--fontsizenormal);
        font-family: Verdana;
    }
}

/* ---------------------- */
/* Mobile phones: Portrait */
/* ---------------------- */
@media screen and (max-width: 767px) and (orientation: portrait) {

    .body-content {
        padding-left: 1vw;
        padding-right: 1vw;
    }

    .body-font {
        font-size: var(--fontsizenormal);
        font-family: Verdana;
    }
}

/* ---------------------- */
/* Mobile phones: Landscape */
/* ---------------------- */
@media screen and (max-width: 767px) and (orientation: landscape) {
    .body-content {
        padding-left: 1vw;
        padding-right: 1vw;
    }

    .body-font {
        font-size: var(--fontsizesmall);
        font-family: Verdana;
    }
}

/* DRUCK   ----------------------------------------------------------*/
@Media print {
    /* Use the printable area of A4 */
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    html, body {
        
    }

    /* Kill the centered, max-width page shell from the master */
    .body-content {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        text-align: left !important; /* defeat centered text wrappers */
    }
    .body-font {
        font-size: var(--fontsizenormal);
        font-family: Verdana;
    }

    th, td {
        padding: 2px;
        word-wrap: break-word;
    }

    /* Avoid a page break right before the table and within rows */
    #itemPlaceholderContainer {
        break-before: avoid-page !important; /* modern */
        page-break-before: avoid !important; /* legacy */
    }

    /* Hide anything you don't want on paper (buttons, legends, pager, chrome) */
    .noprint {
        display: none !important;
    }

        .noprint:hover {
            background-color: #45a049;
        }
}

/* MASTERSTRUCGTURE   ----------------------------------------------------------*/

    /* Make header stack rows vertically */
    #headerupper {
        width: 100%;
        align-items: center;
        justify-content: space-between;
    }

    #headerupper1 {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    /* Generic row style for upper1 and upper2 */
    .headerrow {
        display: flex;
        justify-content: space-between; /* push left and right apart */
        align-items: center; /* vertical alignment */
    }

        /* Left and right cells grow evenly */
        .headerrow > div {
            flex: 1;
        }

#headerlower {
    width: 100%;
    height: 5vw;
   
    margin: 15px 0px 15px 0px;
    padding: 15px 0px 15px 15px;
    color: white;
    background-color: var(--spoered);
    border-radius: var(--radius);
    display: flex;
    align-items: center; /* vertical centering */
}

#menu_mainpulldownmenu {
    margin: 15px 15px 15px 0px;
    padding: 15px 0px 15px 15px;
    height: 80px;
    width: 100%;
    border-radius: var(--radius);
}

#maincontent {
    margin: 15px 0px 15px 15px;
    padding: 15px 0px 15px 15px;
    background-color: white;
    border-radius: var(--radius);
}


    /* Generic row style for footerrow */

    /*/#footerwrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}*/
    .footerrow {
        display: flex;
        justify-content: space-between; /* push left and right apart */
        align-items: center; /* vertical alignment */
        margin: 25px 0px 25px 0px;
    }

    #subfooterleft,
    #subfooterright {
        flex: 1; /* makes them share space equally */
        padding: 0px; /* just for spacing */
    }

    #footerlower {
        margin: 25px 0px 25px 0px;
        background-color: white;
        text-align: center;
        font-size: var(--fontsizesmallest);
    }


/* PULLDOWN MENU   ----------------------------------------------------------*/


    .nav {
        background: #f8fafc;
        border-bottom: 1px solid var(--border);
    }

    .menu {
        background: var(--bg);
        border-radius: var(--radius);
        padding:1vw;
    }
        .menu-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 1vw 2vw;
        }

    .menu h4 {
        margin: 0.5vw 0vw 1vw;
        font-size:1.2em;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--muted);
        cursor: pointer;
    }

    .menu ul {
        background: var(--bg);
        list-style: none;
        margin: 0;
        padding: 0;
        display: none; /* hidden by default */
    }

.menu li {
    background: rgba(255,255,255,0.92);
    line-height: 1.75em;
    font-size: 1.1em;
    margin: 0;
    padding: 0;
    position: relative; z-index: 200; /* Damit wird dar darunterliegende Text überdeckt*/
}

    .menu a {
        display: block;
        padding: 0.5vw 1vw;
        border-radius: var(--radius);
        text-decoration: none;
        color: var(--fg);
    }

        .menu a:hover, .menu a:focus {
            background: rgba(200,200,200,0.8);
            outline: none;
        }

    /* When active, show the list */
    .menu h4.active + ul {
        display: block;
    }


/* Data-FIELDS (LISTVIEWS) -----------------------------------------------------------*/
    .listview_header1 {
        background-color: darkgray;
        font: bold;
        height: 40px;
        text-indent: 30px;
    }

    .listview_header2 {
        background-color: lightgray;
        font: bold;
        height: 25px;
        text-indent: 60px;
    }

tr.listview_data > td,
tr.listview_data > td * {
    font-size: inherit;
}

.listview_data {
    background-color: var(--spoeredlight);
    margin-left: 0px;
}

.listview_data_alternating {
    background-color: #FFFFFF;
    margin-left: 0px;
}

.warning-icon {
    height: 0.8em; /* same as the text line height */
    vertical-align: middle;
}

/* BUTTONS -----------------------------------------------------------*/
.button_long {
    margin: 5px 5px 5px 0px;
    width: 120px;
    border-radius: var(--radius);
    border-width: var(--border-width);
}

.button_auto {
    margin: 5px 5px 5px 0px;
    width: auto;
    border-radius: var(--radiussmall);
    border-width: var(--border-width);
}

.button_auto_nomargin {
    margin: 0px;
    width: auto;
    border-radius: var(--radiussmall);
    border-width: var(--border-width);
}


/* DROPOWNLISTS -----------------------------------------------------------*/
.DDL_short {
    margin-left:10px;
    margin-top:0.01vw;
    width: clamp(25px, 25vw, 200px); /* half of the viewport width */
    box-sizing: border-box; /* make sure padding/border don’t add extra width */
    border-radius: var(--radiussmall);
    border-width: var(--border-width);
}

.DDL_normal {
    margin-left: 10px;
    margin-top: 0.01vw;
    width: clamp(25px, 50vw, 200px); /* half of the viewport width */
    box-sizing: border-box; /* make sure padding/border don’t add extra width */
    border-width: var(--border-width);
    border-radius: var(--radiussmall);
}

.DDL_auto {
    margin-left: 10px;
    margin-top: 0.01vw;
    width: clamp(250px, 50vw, 100%);
    box-sizing: border-box; /* make sure padding/border don’t add extra width */
    border-radius: var(--radiussmall);
    border-width: var(--border-width);
}

/* TEXTBOXES -----------------------------------------------------------*/
.textbox_auto {
    margin-left: 0vw;
    margin-top:0.1vw;
    border-radius: var(--radiussmall);
    border-width: var(--border-width);
    width: 100%;
    height: 2vw;
}

.textbox_data_nonobligatory {
    margin-left: 0vw;
    margin-top: 0.1vw;
    border-radius: var(--radiussmall);
    border-width: var(--border-width);
    height: inherit;
    width: 20vw;
    height: 2vw;
}

.textbox_data_obligatory {
    margin-left: 0vw;
    margin-top: 0.1vw;
    border-radius: var(--radiussmall);
    border-width: var(--border-width);
    background-color: red;
    color: white;
    width: 20vw;
    height: 2vw;
}

.entrywarning {
    padding-left: 0vw;
    color: red;
    font-weight: bold;
    font-size: 1em;
}

.entrywarning_small {
    padding-left: 0vw;
    color: red;
    font-weight: bold;
    font-size: 0.8em;
}


/* CHECKBOXES -----------------------------------------------------------*/
.checkbox_auto {
    vertical-align: middle;
    margin-left: 0px;
    margin-top: 0.1vw;
    width: 1vw;
    height: 1vw;
    border-radius: 5px;
}

.fontsizesmall {
    font-size:var(--fontsizesmall);
}
