/******************************
 *
 *
 * all devices
 *
 *
 * ***************************/

* {
    box-sizing: border-box;
}

body {
    color: #000;
    background-color: #d3d3d3;
    font-size: 100%;
    font-family: sans-serif;
    hyphens: auto;
}

footer {
    margin-top: 20px;
    border-top: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
}

input, textarea {
    display: block;
    margin: 0 0 10px 0;
}

input[type=radio] {
    display: initial;
}

pre {
    tab-size: 8;
    word-break: break-all;
}

#debugtop {
    border-bottom: 1px solid silver;
}

.login {
    margin: auto;
}


.notice {
    color: red;
}

/* for standard data tables */
.output, .output td, .output th {
    border: 1px solid #999;
}

/******************************
 *
 *
 * Extra small devices (phones, 600px and down)
 *
 *
 * ***************************/
@media only screen and (max-width: 600px) {

    td,
	th {
        vertical-align: middle;
        display: list-item;
		list-style-type: none;
        overflow: auto;
    }

    td:first-of-type {
        font-weight: bold;
    }


    /**********************
    Navigation Handheld
    ********************/
    #menu {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 10;
        transition: .7s;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        background-color: #fff;
        color: #000;
        width: 80%;
        padding: 20px;
    }

    #menu:target {
        opacity: 0.94;
        visibility: visible;
        z-index: 50;
    }

    #flip_nav {
        display: block;
        position: absolute;
        top: 0px;
        right: 0px;
        margin: 20px;
        z-index: 50;
        background-image: repeating-linear-gradient(#ccc, #ccc 2px, #fff 2px, #fff 4px);
    }

    .flip_hilfe {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: 40px;
        height: 0;
        padding-top: 40px;
        overflow: hidden;
        border: 1px solid #ccc;
        background: #fff 10px 12px / 18px 20px no-repeat;
    }
    #menu #flip_top{
        visibility: visible;
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 0px;
        padding: 40px 0 0 0;
        overflow: hidden;
        background: white 10px 10px / 20px 20px no-repeat;
        background-image: linear-gradient(45deg, transparent 13px, #ccc 13px, #ccc 15px, transparent 0), linear-gradient(-45deg, white 13px, #ccc 13px, #ccc 15px, white 0);
    }

    #menu ul
        {
        padding:	10px 0 10px 30px;
    }
    #menu ul
        {
        display:	block;
    }
    #menu ul li.active {
        color: #f00;
    }
    /********** End Navigation Handheld ***********/

    body, p, h1, #outline {
        margin: 0;
    }
    #outline {
        padding: 8px;
    }
}

/*********************
*
*
* Small devices (portrait tablets and large phones, 600px and up)
*
*
*************************/

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

/*********************
* Styles for the grid container
* try 12 column layout
* https://www.w3schools.com/css/css_grid_12column.asp
*********************/

#outline {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(12, [col-start] 1fr);
    gap: 3px;
    padding: 30px 20px;
}

    #flip_nav, #flip_top {
        display: none;
    }

    article {
        padding: 10px 50px
    }

    header {
        grid-row: 1 / 3;
        grid-column: col-start / 13;
        display: grid; /* subgrid */
    }

    header h2 {
        grid-row: 2 / 3;
    }

    header form, header nav {
        grid-row: 1 / 3;
        grid-column: 12 / 13;
    }

    header nav {
        grid-row: 2 / 3;
        text-align: right;
    }

    input[type=submit]{
        padding: 2px 20px;
    }

    main {
        grid-row: 3 / 7;
        grid-column: 1 / 9;
    }

    nav {
        grid-row: 3 / 4;
        grid-column: 10 / 13;
    }

    aside {
        grid-row: 4 / 5;
        grid-column: 10 / 13;
    }

    footer {
        grid-row: 7 / 8;
        grid-column: 1 / 13;
        text-align: right;
        padding: 20px 5px;
        font-size: small;
    }

    #debugtop {
        grid-row: 8 / 9;
        grid-column: 1 / 13;
    }

    #debugbottom {
        grid-row: 9 / 10;
        grid-column: 1 / 13;
    }

    p {
        max-width: 40em;
    }

    /* nav in sidebar */
    .admin ul, .standard ul, nav ul {
        list-style-type: none;
    }

    .bar ul {
        padding: 0 20px 0 0;
    }

    .bar ul ul {
        margin: 0 0 15px 0;
    }

    .bar li li {
        display: block;
    }

    .columns {
        columns: 20em 2;
        text-align: justify;
        column-gap: 50px;
        column-rule: 1px solid #ddd;
    }


    /*
    css for data_privacy_statement
    */

    .data_priv {
        counter-reset: count;
    }

    .data_priv h3 {
        counter-increment: count;
    }

    .data_priv h3::before{
        content: counter(count) '. ';
    }

    .data_priv li {
        list-style-type: none;
    }

    .data_priv li li {
        list-style-type: square;
        margin: 5px 0 5px;
    }

}

/******************************
 *
 *
 * Medium devices (landscape tablets, 768px and up)
 *
 *
 * ***************************/
@media only screen and (min-width: 768px) {...}

/******************************
 *
 *
 * Large devices (laptops/desktops, 992px and up)
 *
 *
 * ***************************/
@media only screen and (min-width: 992px) {...}

/******************************
 *
 *
 * Extra large devices (large laptops and desktops, 1200px and up)
 *
 *
 * ***************************/
@media only screen and (min-width: 1200px) {...}

/******************************
 *
 *
 * media print
 *
 *
 * ***************************/
@media print {
}

