﻿/*--------------------------------------------------------------------------------------------------------------------*/
/*																													  */
/* für Dark-Mode auf Mobile Devices				  																			  */
/*																													  */
/*--------------------------------------------------------------------------------------------------------------------*/


:root {
    --d2: #03A9F4;
    --tableHeaderBack: var(--d2);
    --selectColor: red;
}

    @media (prefers-color-scheme: dark) {
        :root {
            --background-color: #323232;
            --text-color: #ddd;
            --shadow-color: #111;
            --highlight: #666;
            --primary: hsl(12, 90%, 60%);
        }
    }

    @media (prefers-color-scheme: light) {
        :root {
            --background-color: #fefefe;
            --text-color: #222;
            --shadow-color: #999;
            --highlight: #cdcdcd;
            --primary: hsl(12, 70%, 40%);
        }
    }

/*--------------------------------------------------------------------------------------------------------------------*/
/*																													  */
/* globale Definitionen					  																			  */
/*																													  */
/*--------------------------------------------------------------------------------------------------------------------*/

html {

    font-family: Roboto,Noto,sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%
}

body {
    font-family: Roboto, Noto, sans-serif;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
    margin: auto;
    padding: 0;
    height: 100%;
    width: 90%;
    background-color: var(--background-color);
    color: var(--text-color);
   /* overflow: hidden;*/
}

h1 {
    display: block;
    font-size: 1.5em;
    margin-top: 0.67em;
    margin-bottom: 0.67em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}

.fixed-header thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.scrollableTable {
    display: block;
    overflow-y: auto;
    max-height: 300px;
}


/*--------------------------------------------------------------------------------------------------------------------*/
/*																													  */
/* Div für Charts					  																			  */
/*																													  */
/*--------------------------------------------------------------------------------------------------------------------*/

.chartDiv {
    overflow: hidden;
 
 /*
    border: solid 1px black;
    border-radius: 20px;

*/
    width: 95%;
    height: 95%;
}

/*--------------------------------------------------------------------------------------------------------------------*/
/*																													  */
/* Table für Kontigente					  																			  */
/*																													  */
/*--------------------------------------------------------------------------------------------------------------------*/


.kontigente {
    font-family: Roboto,Noto,sans-serif;
    font-size: 12px;
    border-collapse: collapse;
    width: 100%;
    /*
    margin: auto;
    /*margin-left: auto;*/
    /*margin-right: auto;*/
    /*width: 750px;*/
}


    .kontigente td, th {
        border: 1px solid #ddd;
        padding: 10px;
        white-space: nowrap;
    }

    .kontigente thead {
        position: sticky;
        top: 0;
        z-index: 1;
        background-color: var(--tableHeaderBack);
    }

    .kontigente tr:nth-child(even) {
        /*background-color: #f2f2f2;*/
        /*background-color: var (--text-color);*/
        /*color: var (--background-color);*/
    }

    .kontigente tr:hover {
        color: var(--selectColor);
    }



/*--------------------------------------------------------------------------------------------------------------------*/
/*																													  */
/* Table für Warnings				  																			  */
/*																													  */
/*--------------------------------------------------------------------------------------------------------------------*/

h1 {
    display: block;
    font-size: 1.5em;
    margin-top: 0.67em;
    margin-bottom: 0.67em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}

h2 {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
}

.warnung {
    font-family: Roboto,Noto,sans-serif;
    font-size: 13px;
    border-collapse: collapse;
    /*margin-left: auto;*/
    /*margin-right: auto;*/
    /*width: 750px;*/
}

    .warnung td  {
        padding: 10px;
        white-space: nowrap;
    }

    .warnung th {
        padding-top: 5px;
        text-align: center;
    }

    .warnung tr {
        height: auto;
        text-align: center;
    }

.flex-warnung {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    margin: auto;
    font-size: 24px;
}


/*--------------------------------------------------------------------------------------------------------------------*/
/*																													  */
/* Statistik Flex					  																			          */
/*																													  */
/*--------------------------------------------------------------------------------------------------------------------*/


.statistik-container {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 98%;
    height: 98%;
}

.t-child {
    width:100%;
    height:100%;
    padding-top:10px;
    
    /*    resize: vertical;*/
}

/*--------------------------------------------------------------------------------------------------------------------*/
/*																													  */
/* Main Flex					  																			          */
/*																													  */
/*--------------------------------------------------------------------------------------------------------------------*/



.flexbox-panel {
   /* margin: 5px;*/
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    height: 95%;
    /*align-content: center;*/
}

.flex-child {
    flex-grow: 1;
    flex-basis: 0;
    /*border: 1px solid red;*/
}

.flex-container {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
}

.flex-s-child {
    flex-grow: 1;
    flex-basis: 0;
    border: 1px solid red;
}

/*--------------------------------------------------------------------------------------------------------------------*/
/*																													  */
/* Cards					  																			          */
/*																													  */
/*--------------------------------------------------------------------------------------------------------------------*/

.grid-container {
    width: min(75rem, 100%);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 220px 220px 220px 220px;
    gap: 10px;
}

.card {
    --grad: red, blue;
    padding: 1.5rem;
    background-image: linear-gradient(to bottom left, #e0e4e5, #f2f6f9);
    border-radius: 2rem;
    gap: 1.0rem;
    display: grid;
    grid-template: 'title icon' 'content content' 'bar bar' / 1fr auto;
    font-family: system-ui, sans-serif;
    color: #444447;
    box-shadow: inset -2px 2px hsl(0 0 100% / 1), -20px 20px 40px hsl(0 0 0 / .25);
    .title

{
    font-size: 14px;
    grid-area: title;
    align-self: end;
    text-transform: uppercase;
    font-weight: 500;
    word-break: break-all;
}

.icon {
    grid-area: icon;
    font-size: 3rem;
    > i

{
    color: transparent;
    background: linear-gradient(to right, var(--grad));
    background-clip: text;
}

}

.content {
    grid-area: content;
    & > *:first-child

{
    margin-top: 0rem
}

& > *:last-child {
    margin-bottom: 0rem
}

}

&::after {
    content: "";
    grid-area: bar;
    height: 2px;
    background-image: linear-gradient(90deg, var(--grad));
    /*     margin-inline: -1.5rem; */
}
}
/*--------------------------------------------------------------------------------------------------------------------*/
