﻿@media (max-width: 986px) {
    #content {
        position: relative;
    }

    Logo, .logo {
        width: 60% !important;
        max-width: 250px !important;
        margin: 0 25px;
        left: 50px;
        top: 10px;
        height: 50px;
    }

    #account {
        z-index: 300;
        position: relative;
        float: right;
        margin-top: 20px;
        margin-right: 0;
        top: auto;
        right: auto;
    }

        #account .button {
            padding: 2px 15px 2px 15px;
            font-size: 9px;
            line-height: 24px;
        }

        #account .dropdown-menu-container > a {
            font-size: 9px;
            line-height: 24px;
        }

    div.headline {
        display: none;
    }

    .home header {
        height: 150px;
        background-color: #ffffff;
    }

    header {
        height: 85px;
        background-color: #f4f4f4;
    }

    .list header {
        background-color: #292929;
    }

    main {
        padding-top: 100px;
    }

    .home main {
        padding-top: 150px;
        height: 82%;
    }

    form {
        padding: 0px;
        margin: 0px;
    }

    h2 {
        margin-top: 50px;
    }

    Login
    #login input[type="submit"] {
        margin-left: 0;
        margin-top: 10px;
    }

    #login {
        position: absolute;
        display: block;
        width: 100%;
        z-index: 100;
        height: 400px;
    }

    main {
        height: 50%;
        display: block;
        position: relative;
        overflow: scroll;
        min-height: 129%;
        padding-top: 150px;
        box-sizing: border-box;
    }

    #login .passwordForgotten {
        padding-top: 10px;
    }

    .border .container.login {
        padding: 10px 10px 10px 40px;
    }

    .border {
        position: absolute;
        top: 25%;
        left: 50%;
        -webkit-transform: translate(-50%, -50%);
        -moz-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        -o-transform: translate(-50%, -50%);
        transform: translate(-50%, -17%);
        border: 1px solid #ffc600;
        padding: 20px;
        width: 200px;
    }

    #content, #details {
        width: 100%;
        float: none;
        padding: 20px;
        margin: 0px 0 30px 0;
    }

        #content .container {
            padding: 10px;
        }

    nav, .list nav {
        overflow: auto;
        height: 100%;
        width: 100%;
        box-sizing: border-box;
    }


        nav.open {
            background-color: #f4f4f4;
            display: block;
            z-index: 300;
        }

        .list nav.open {
            background-color: #292929;
        }

        nav.closed {
            background-color: transparent;
            display: none;
            z-index: -1;
        }

        nav.normal ul.sub li {
            margin: 3px 1px;
        }

        nav.normal li a {
            padding: 10px 15px;
            box-sizing: border-box;
        }

            nav.normal li a span.rubric {
                top: auto;
                left: auto;
                position: relative;
                display: inline;
                padding: 0;
            }

            nav.normal li a span.message {
                position: relative;
                top: -2px;
                right: -6px;
                float: right;
                height: 30px;
            }

    .home.box nav {
        width: 100%;
        box-sizing: border-box;
        padding: 20px 20px 70px 20px;
        position: relative;
    }

        .home.box nav ul {
            text-align: center;
            width: 100%;
            padding-top: 20px;
        }

            .home.box nav ul li {
                height: 175px;
                width: 175px;
                padding: 1%;
                float: none;
                display: inline-block;
            }

    nav li a span.rubric {
        font-size: 18px;
        line-height: 24px;
    }

    .box nav.side ul li {
        height: 25%;
        width: 25%;
        padding: 1%;
    }

    main {
        padding-top: 12px;
    }

    #content {
        width: 100%;
        position: fixed;
        top: 12%;
        bottom: 0;
    }

    #tickets_table {
        width: 100% !important
    }

    #details {
        position: fixed;
        top: 15%;
        bottom: 0;
        overflow: scroll;
    }

    .systemtr {
        display: flex !important;
        justify-content: space-between !important;
    }
    span {
        padding-left: 0 !important;
    }

    nav, .list nav {
        padding-top: 12px !important;
    }

    .home main {
        padding-top: 12px !important;
        width: 100%;
    }

    #account {
        margin-top: 20px;
    }

    #cart-container {
        left: 10%;
        top: 80%;
    }

    a.logo {
        margin-left: -30px;
    }

    #nav {
        display: block !important;
        place-items: start !important;
    }

    .catchUser {
        left: 0% !important;
    }
    #adminDossiersBtn,
    #adminDashBtn,
    #adminEServiceBtn,
    #adminReportBtn,
    #adminSparePartBtn,
    #adminDossiersBtn > *,
    #adminDashBtn > *,
    #adminEServiceBtn > *,
    #adminReportBtn > *,
    #adminSparePartBtn > * {
        visibility: hidden;
        width: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
    }

    #adminLoginBtn {
        /*        position: absolute;
        top: 1px;
        left: 70%;*/
    }

    #topNavBtns {
        position: unset !important;
        display: flex;
        justify-content: flex-end;
        align-content: center;
        align-items: center;
        margin: 0 20px 0 0;
        gap: 5px;
    }

    .dropdown-menu.dropdown-closed.shown {
        height: fit-content;
        opacity: 1;
    }

    #adminNavMobile {
        visibility: visible !important;
        /*        z-index: 1;
        position: absolute;
        left: 50%;*/
    }

    #signinIcon {
        color: var(--accent-color) !important;
    }

    i.fas.fa-cog {
        /*        position: absolute;
        z-index: 1;
        top: 50% !important;*/
    }

    .dxc-legend .dxc-item {
        font-size: 19px !important
    }

    .diaTitleSubContainer {
        padding-right: 0px !important;
    }

    #modelRemarkCommentArea {
        height: 125px;
        resize: none;
        width: 111%;
    }

    .button-in-title {
        margin-top: 93px;
    }

    .remarkEnter {
        margin-top: -20px;
    }

    button.list_menu .fas {
        color: #000000;
    }
}
@media (max-width: 745px) {

    i.fas.fa-shopping-cart {
        position: absolute;
        top: 50%;
        z-index: 1;
        right: 5%;
    }

    i.fas.fa-question-circle {
        position: absolute;
        top: 1px;
        right: 1%;
    }

    i.fas.fa-dolly-flatbed {
        position: absolute;
        top: 1px;
        right: 1%;
    }

    i.fas.fa-check-circle {
        position: absolute;
        top: 1px;
        right: 1%;
    }

    i.fas.fa-exclamation-triangle {
        position: absolute;
        top: 1px;
        right: 1%;
    }

    i.fa-solid.fa-clock-rotate-left {
        position: absolute;
        top: 1px;
        right: 1%;
    }

    i.fas.fa-mail-bulk {
        position: absolute;
        top: 1px;
        right: 1%;
    }

    i.fa.fa-sign-in-alt {
        font-size: 25px !important;
    }

    td.email {
        width: 96%;
    }

    td.status {
        width: 100%;
        margin-left: 12px;
    }

    td.login {
        width: 92%;
        margin-left: 24px;
    }

    td.number {
        width: 100% !important;
    }

    i.fas.fa-edit {
        padding-left: 12px;
    }

    i.fas.fa-file-invoice {
        position: absolute;
        right: 20%;
    }

    i.fas.fa-link {
        position: absolute;
        right: 10%;
    }

    #esti, #invi {
        justify-content: center;
    }

    #pieinv1 svg {
        width: 100%;
        /*Passt SVG an die Breite des Containers an height: auto;*/
    }

    svg {
        transform: scale(0.6);
        transform-origin: center;
    }
    .Space20 {
        height: 1px
    }

    .tdtitle {
        font-weight: bolder;
    }

    .tdcontent {
        margin-top: 25px;
    }

    table.dataTable tbody th, table.dataTable tbody td {
        padding: 0px 10px !important
    }

    table tr {
        margin-bottom: 10px;
        padding-bottom: 7px
    }

    table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

        table td::before {
            content: attr(data-label);
            position: absolute;
            left: 0;
            padding-left: 10px;
            font-weight: bold;
            text-align: left;
        }

    .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter {
        float: none;
        text-align: left !important;
    }

    .catch {
        position: fixed !important;
        top: 15% !important;
        bottom: 0;
        overflow: scroll;
        width: 100%;
    }

    table td.artikel {
        padding-left: 60px;
    }




    #ticket_info table tr {
        display: table-row;
        border: none;
    }

    #ticket_info table td {
        display: table-cell;
        border: none;
    }
}

@media (max-width: 745px) {
    #adminNavMobile {
        left: 50%;
        width: 13%;
    }

    #navTitle {
        font-size: 12px;
        padding: 2px 15px 2px 15px;
    }

    #adminLoginBtn {
        left: 75%;
        width: 13%;
        font-size: 12px;
        top: 1px;
    }

    i.fas.fa-cog {
/*        position: absolute;
        top: 1px;*/
    }

    td.email {
        width: 95%;
    }

    td.login {
        width: 90%;
    }

    input[type="submit"] {
        display: block;
        margin: 5px;
    }

    svg {
        transform: scale(0.9);
    }
}

@media only screen and (max-width: 745px) {
    .box nav.side ul li {
        height: 33.3%;
        width: 33.3%;
        padding: 5%;
    }

    input [type="email"] {
        width: 100%;
    }

    input[type="date"] {
        display: block;
    }

    td.status {
        width: 90%;
    }

    #navTitle {
        font-size: 9px;
    }

    #adminLoginBtn {
        font-size: 9px;
    }

    i.fas.fa-file-invoice {
        right: 40%;
    }

    i.fas.fa-link {
        right: 20%;
    }

    #adminNavMobile {
        width: 10% !important;
    }

    label {
        margin-right: 0px;
    }

    .cart {
        width: 60%;
    }

    .cart-nav--button {
        font-size: 12px;
    }

    svg {
        transform: scale(0.7);
    }
}

@media only screen and (max-width: 745px) {

    header {
        height: 120px;
    }

    #account {
        margin-top: 70px;
    }

    nav, .list nav {
        padding-top: 120px;
    }

        nav.normal {
            padding: 0;
        }

    main {
        padding-top: 0px;
    }

    .home main {
        padding-top: 215px;
    }

    .home header {
        height: 200px;
    }

    .box nav.side ul li {
        height: 48%;
        width: 50%;
    }

    button.list_menu {
        max-width: 100%;
        display: inline-block;
    }

        button.list_menu.open {
            position: absolute;
            z-index: 300;
            top: 30px;
            left: 11px;
            padding: 0;
        }

            button.list_menu.open .fas {
                font-size: 25px;
                line-height: 25px;
            }

    table a {
        font-weight: 600;
        color: #ffc600;
        text-align: right;
    }

    table {
        border: 0;
        border-spacing: 0;
        display: table;
        width: 100%;
        border-color: transparent;
        border-collapse: collapse;
    }

        table thead {
            border: none;
            clip: rect(0 0 0 0);
            height: 1px;
            margin: -1px;
            overflow: hidden;
            padding: 0;
            position: absolute;
            width: 1px;
        }

        table tr {
            border-bottom: 3px solid #ddd;
            display: block;
        }

        table td {
            display: block;
            font-size: .8em;
            text-align: right;
            min-height: 26px;
        }

        table td,
        table th {
            font-weight: normal;
            font-style: normal;
            font-size: 16px;
            text-decoration: none;
            color: #292929;
            line-height: 26px;
            padding: 0px 0px 0px 0px;
            vertical-align: top;
            text-align: right;
            display: block;
            font-size: .8em;
        }

            table th:nth-of-type(1), table td:nth-of-type(1) {
                padding-left: 10px;
                padding: 0;
                white-space: pre-line;
            }

            table td::before {
                content: attr(data-label);
                float: left;
                font-weight: bold;
                text-transform: uppercase;
            }

            table td:last-child {
                border-bottom: 0;
                justify-content: flex-end;
            }

    #ticket_info table tr {
        display: table-row;
        border: none;
    }

    #ticket_info table td {
        display: table-cell;
        border: none;
    }

    .mobile {
        display: block;
    }

    .title {
        font-size: 26px;
        line-height: 36px;
    }

    #details .title {
        margin-bottom: 0px;
    }

    #details .close {
        height: 35px;
        width: 35px;
        padding: 5px;
    }

        #details .close .fas {
            font-size: 22px;
            line-height: 22px;
        }

    nav.normal ul.block li.drainfo {
        display: block;
    }
    /* FOOTER */
    footer {
        background-color: #f4f4f4;
        color: #292929;
        width: 100%;
        overflow: hidden;
        padding: 30px 40px;
        z-index: 0;
        position: static;
        bottom: 0;
        box-sizing: border-box;
        height: 18%;
    }

    .badge {
        display: inline-block;
        padding: .25em .4em;
        font-size: 75%;
        font-weight: 700;
        line-height: 1;
        text-align: center;
        white-space: nowrap;
        vertical-align: baseline;
        border-radius: .25rem;
        color: #ffffff;
    }
}