/* Hintergrundfarben nach Fächergruppen */
.FG1D {
    background-color: #fde9d9;
}

.FG1,
.FG1FS {
    background-color: #fdddc3;
}

.FG1KuMu {
    background-color: #fccca5;
}

.FG2 {
    background-color: #eaf1de;
}

.FG2Rel {
    background-color: #d7e4bc;
}

.FG3M {
    background-color: #c5d9f1;
}

.FG3 {
    background-color: #8db4e3;
}

.FGSp {
    background-color: #fefefe;
}

.FGPK {
    background-color: #dddddd;
}

.FGVTF {
    background-color: #dddddd;
}

/* Ende Hintergrundfarben nach Fächergruppen */

/* Hintergrundfarben nach Zustand ok,warn,alert,over */
.ok {
    background-color: lightgreen;
}

.warn {
    background-color: yellow;
}

.alert {
    background-color: red;
}

.over {
    background-color: green;
}
/* Ende Hintergrundfarben nach Zustand ok,warn,alert,over */


.print_only {
    display: none;
}

/***** Modal mit Infotext ***********/
/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 2;
    /* Sit on top */
    padding-top: 50px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-height: calc(100vh - 120px);
    overflow: auto;
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/***** ENDE Modal mit Infotext ******/

/***** Menü auf der rechten Seite ***/

.dropbtn {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    margin-right: 5px;
}

.dropdown {
    position: sticky;
    float: left;
    top: 0px;
    right: 0px;
    z-index: 1;
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 0px;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/*
.dropdown:hover .dropdown-content {
    display: block;
}
*/
.dropdown:hover .dropbtn {
    background-color: #3e8e41;
}

/***** Ende Menü auf der rechten Seite ***/

#kopfzeile {
    text-align: left;
    background-color: LightGrey;
    font-size: 3vw;
}

.table-container {
    display: flex;
}


/* Tabellengestaltung */
table {
    border-collapse: collapse;
}

td.cell_summ_desc {
    text-align: right;
    font-weight: bold;
}

td.cell_summ_content {
    font-weight: bold;
}


.col_fachbez {
    width: 24%;
}

.col_fkrzl {
    width: 8%;
}

.col_hj {
    width: 10%;
}

.col_abi {
    width: 8%;
}

th,
td {
    border: 1px solid black;
    padding: 2px;
    text-align: center;
}

th {
    background-color: #f2f2f2;
}

td:hover {
    cursor: pointer;
    background-color: #f0f0f0;
}

.header-container {
    display: flex;
    align-items: center;
}

td.disabled {
    background-color: darkgrey;
}

/* Tabelle mit Infos und Prüfungen */
div.infoKopf {
    text-align: left;
    border: 1px solid;
    border-collapse: collapse;
    /* Zeilenumbruch abschalten */
    white-space: nowrap;
    overflow: hidden;
}

.infoKopf>h2,
h1 {
    margin: 0px 0px 5px;
    background-color: #f2f2f2;
    border-collapse: collapse;
}

.highlight {
    background-color: yellow;
}

/* div - container mit Scrollbar für Bedingungsüberprüfungen */
.div-pruef {
    border: 1px solid;
    overflow-y: auto;
    overflow-x: auto;
    text-align: left;
    white-space: nowrap;
    min-height: 40px;
    /* width: max(500px, 45%); */
}

/* Tooltipps für die Belegprüfngsangelegenheiten 
   nach w3schools https://www.w3schools.com/css/css_tooltip.asp */
.tooltip {
    position: relative;
    display: inline-block;
    /*border-bottom: 1px dotted black;*/
}

.tooltip .tooltiptext {
    overflow: visible;
    visibility: hidden;
    width: 80%;
    background-color: black;
    opacity: 0.8;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    white-space: normal;

    /* Position the tooltip */
    position: fixed;
    z-index: 1;
    top: 80px;
    left: 20px;
    /*margin-left: -60px;*/
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

.tooltiptext:hover {
    visibility: hidden;
}

/* Ende Tooltips für Belegprüfungsangelegenheiten */

/* Darstellungseinstellungen für die Druckausgabe */
@media print {
    body {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    tr.Fach {
        background-color: transparent;
    }

    tr:nth-child(even) {
        background-color: #ddd;
    }

    tr:nth-child(odd) {
        background-color: transparent;
    }

    div.row {
        font-family: Arial, Helvetica, sans-serif;
    }

    .header-container {
        width: 640px;
    }

    div.print_show {
        width: 640px;
    }

    .print_hide {
        display: none;
    }

    .print_only {
        font-family: Arial, Helvetica, sans-serif;
        display: block;
    }

    table {
        margin-left: 50px;
        margin-right: 100px;
        width: 490px;
    }

    table,
    td,
    td.disabled,
    th {
        margin-top: 10px;
        border-width: 1.4px;
        border-style: solid;
        font-size: 0.9em;
        padding: 2px;
        background-color: transparent;
    }

    div.infoKopf {
        width: 640px;
        padding: 2px;
        height: 0px;
    }

    div.infoInhalt {
        border: 0px;
        width: 640px;
        padding: 2px;
        height: 20px;
    }

    #kopfzeile,
    .ok,
    .warn,
    .alert,    
    .over {
        background-color: transparent;
    }
}

img {
    max-width: 350px;
    /* Maximale Breite des Bildes */
    height: 94px;
    /* Automatische Höhe entsprechend der Breite */
    margin-right: 20px;
    /* Abstand zwischen Bild und Überschrift */
}

/* Responsive Design */
/* * {
    box-sizing: border-box;
}*/

/* For mobile phones and small screens: */
.col1,
.col2 {
    width: 100%;
}

@media only screen and (min-width: 1200px) {

    /* For desktop: */
    .col1 {
        width: 50%;
        min-width: 580px;
        max-width: 700px;
        display: block;
    }

    .col2 {
        /*max-width: calc(100vw - 700px);*/
        max-width: 40%;
        display: block;
    }
}

.col1,
.col2 {
    float: left;
    padding: 5px;
    /* border: 1px solid red; */
}

.row::after {
    content: "";
    clear: both;
    display: table;
}

.footer {
    text-align: right;
}

/* muss hier als letztes stehen, damit es vorherige display-Einstellungen überschreiben kann */
.show {
    display: block;
}