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

* {
    box-sizing: border-box;
}

a:link {
    color: blue;
    text-decoration: none;
}

a:visited {
    color: purple;
}

a:hover {
    color: red;
    text-decoration: underline;
}

body {
    font-family: sans-serif;
    color: #000;
    background: #fff;
    margin: 0;
    padding: 0;
}

footer {
    clear: both;
    margin: 27px 0 0 0;
    border-top: 1px solid #707070;
}

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

input[type=submit] {
    display: block;
    margin: 10px auto 0;
}

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

main {
    min-height: 400px;
}

table {
    border-collapse: collapse;
}

th, td {
    vertical-align: top;
    text-align: left;
}

ul {
    list-style-type: none;
}

.aktuell, li.aktuell, .meldung, .notice {
    color: red;
}

.alt, .bg1 {
    background-color: #ECECEC;
}

.buchungzeigen td, .buchungzeigen th {
    padding: 5px;
    border: 1px solid #000;
}

.daten, .rahmen {
    border-collapse: collapse;
    empty-cells: show;
}

.daten td, .daten th, .kalender td, .kalender th {
    text-align: right;
    vertical-align: top;
    padding: 3px;
    border: 1px solid #000;
}

.kalender input, .kalender select {
    margin: 0 10px 0 0;
    display: initial;
}
/* form */
.kalender {
    margin: 0 0 10px 0;
}

.kalender th {
    text-align: center;
}

.kalenderzelle {
    font-size: 80%;
    text-align: left;
    background-color:     #fffacd;
}

.log {
    white-space: break-spaces;
    max-width: 80%;
}

.logoutformular {
    float: right;
}

.logoutformular fieldset {
    border: none;
}

.logoutformular input {
    margin: 0;
}

.menu {
    margin: 0;
    padding: 0;
}

.menu li {
    margin: 5px;
    padding: 5px 0;
    font-size: 90%;
    border-bottom: 1px solid #ccc;
}

.menu a:visited {
    text-decoration: none;
}

.menu a:hover {
    text-decoration: none;
}

.rechts {
    float: right;
}

.rahmen td, .rahmen th, .pdo_out td, .pdo_out th {
    padding: 3px;
    border: 1px solid silver;
}

.zentriert {
    text-align: center;
}


/******************************
 *
 *
 * Extra small devices (phones, 600px and down)
 *
 *
 * ***************************/

@media only screen and (max-width: 600px) {
    body {
        margin: 0;
        padding: 0;
    }

    /* hier ist jetzt Platz weil die Navi oben ist */
    table.kalender {
        width: 100%;
    }

    #outer {
        margin: 0;
        max-width: initial;
        padding: 5px;
        border: none;
    }

    /* Platz fuer Navi */
        #kopf {
        width: 80%;
            padding: 0 0 20px;
        border-bottom: 1px solid #ccc;
    }

    /**********************
    Navigation Handheld
    ********************/
    #linkliste {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 10;
        -webkit-transition: .5s;
        transition: .5s;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        background-color: #fff;
    }

    #linkliste:target {
        opacity: 0.9;
        visibility: visible;
        z-index: 50;
        width: 100%;
        border: 1px solid #ccc;
    }

    #flip_nav {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        margin: 0;
        z-index: 50;
        background-image: -webkit-repeating-linear-gradient(#ccc, #ccc 2px, #fff 2px, #fff 4px);
        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: white 10px 10px / 20px 20px no-repeat;
    }

    #linkliste #flip_top {
        visibility: visible;
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 0px;
        padding: 40px 0 0 0;
        overflow: hidden;
        border: 1px solid #ccc;
        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);
    }

    /* wird sonst von der Navigation verdeckt */
    .logoutformular {
        clear: both;
        margin: 60px 0 0;
    }

    /* scroll tables on small devices */
    .scroll_container {
        overflow-x: auto;
    }
}

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

@media only screen and (min-width: 600px) {
    form table {
        margin: 0 auto;
    }

    h1.logo {
        font-size: 160%;
        letter-spacing: 3px;
        font-family: serif;
        text-align: center;
    }

    h2 {
        font-size: 140%;
    }

    header {
        margin: 0 0 27px 0;
        padding: 0 0 27px 0;
        border-bottom: 1px solid #707070;
    }

    legend {
        padding: 0 5px
    }

    table.rahmen {
        margin-top: 30px;
    }

    #flip_nav, #flip_top{
        display: none;
        }

    #linkliste , #adminliste {
        float: right;
        margin: 0 0 0 27px;
        padding: 0;
        clear: right;
    }

    #outer {
        max-width: 1000px;
        margin: 0;
        padding: 50px;
        color: #000;
        background-color: #fff;
        border: 1px solid #ccc;
    }



}



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

    .kalenderzelle {
        min-width:     50px;
        min-height:     50px;
}

}

/******************************
 *
 *
 * Large devices (laptops/desktops, 992px and up)
 *
 *
 * ***************************/
@media only screen and (min-width: 992px) {
    #outer {
        margin: 30px auto;
    }
    .kalenderzelle {
        min-width:     80px;
        min-height:     80px;
}

}

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

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



