.sidebar-toggle {
    display: none;
}

@media screen and (max-width: 900px) {
    .sidebar-toggle {
        display: flex !important;
        position: fixed !important;
        top: max(16px, env(safe-area-inset-top));
        right: max(16px, env(safe-area-inset-right));
        z-index: 2147483647;

        flex-direction: column;
        justify-content: center;
        gap: 5px;

        width: 48px;
        height: 48px;
        padding: 0;

        border: 0;
        border-radius: 20%;
        background: #12774F !important;
        color: #000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.25);
        cursor: pointer;

        -webkit-appearance: none;
        appearance: none;
    }

    .sidebar-toggle span:not(.invisible) {
        display: block;
        width: 28px;
        height: 3px;
        margin: 0 auto;
        background: white;
        border-radius: 3px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .sidebar-toggle.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .sidebar-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .sidebar-toggle.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    #sidebar {
        display: none !important;
    }

    #sidebar.is-open {
        display: block !important;
        position: fixed !important;

        top: calc(max(16px, env(safe-area-inset-top)) + 56px);
        right: max(16px, env(safe-area-inset-right));
        z-index: 2147483646;

        width: calc(100vw - 32px);
        max-width: 360px;
        max-height: calc(100dvh - 90px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;

        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 18px rgba(0,0,0,0.3);
        padding: 1rem;

        box-sizing: border-box;
        margin: 0 -0.308%;
    }

    #sidebar .inside {
        width: 100%;
        box-sizing: border-box;
    }

    #sidebar nav {
        margin-bottom: 1rem;
    }

    #sidebar nav:last-child {
        margin-bottom: 0;
    }

    #sidebar nav h2 {
        margin: 0 0 0.5rem;
    }

    #sidebar ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    #sidebar li:first-child {
        border-top: 0;
    }

    #sidebar a,
    #sidebar strong {
        display: block;
    }

    #sidebar .level_2 {
        padding-left: 1rem;
    }
    aside#sidebar #nav-slave ul li a.last {border:none}

    header em {font-size: 241%;}

    #meinCampus {display: none}

    #nav-sub, #nav-slave
    {float: none !important;
    width: 100% !important;
    margin: 0 !important
    }
    #nav-slave {margin: 17px 0 0 0 !important;}
    .zweispalten #main {
        width: auto;
        float: none;
    }

    footer li {
        width: 94%;
        float: none;
        padding:0;
        border: 1px solid;
        border-radius: 15px;
        margin: 3%;
        text-align: center;
    }
    #footer .mod_navigation li > a,
    #footer .mod_navigation li  strong{
        display: block;
        padding: 0.4rem 1rem;
        width: 100%;
        box-sizing: border-box;
        font-size: 1.3em;
    }

    #container {box-shadow: none; -webkit-box-shadow: none; hyphens: auto }
    #uebersicht {padding-top: 0}
    #uebersicht .ce_text {position: relative}
    main .inside {        padding: 0;    }
    h1 {    font-size: clamp(18px, 5vw, 80px);}
    h2 {    font-size: clamp(16px, 4vw, 20px);}

    .image_container.float_right {
        float: none;
        display: table;
        margin-left: auto !important;
        margin-right: 0;
    }

    .image_container.float_right img {
        display: block;
        max-width: 100%;
        height: auto;
    }


.image_container.float_right ~ p em{

        margin-left: auto;
        margin-right: 0;
        text-align: right;
    display: block;
    white-space: nowrap;
    font-size: clamp(18px, 5vw, 80px);
    line-height: 1.1;
    }

}

@media (max-width: 1280px) {
    .mobileNot {		display: none	}
    .desktopNot  {display:block }
    body, #wrapper {width: auto !important; max-width: 100% !important;}
    header .image_container.float_right { max-width: 40% !important; padding: 0 !important}
    header, footer  {margin: 0 4% !important;}
    #wrapper {top:0}
    .image_container.float_right ~ p em{    position: absolute;
        top: 9vw;
         right: max(16px, env(safe-area-inset-right));}
    .image_container.float_right + p {
        display: none;
    }


}


@media screen and (max-width: 1279px) {
    .alt .buttonright {display: none}
    .mod_article.alt::after {display: block; content: "Dieser Kurs ist noch nicht responsive.\A Bitte nutzen Sie ein Endgerät mit mind. 1024 px Breite"; color: red; padding: 10px 0; white-space: pre}

}
::selection {
    background: #12774F;

    color: white;
    text-shadow: none !important;
}
::selection {
    background: #12774F;
    color: white;
    text-shadow: none !important;
}

@media screen and (max-width: 599px) {
    aside#sidebar #nav-sub, aside#sidebar #nav-slave {        display: block !important;    }
    .widget {max-width: unset;}

}
@media (max-width: 730px) {
    #logintabel, #logintabel tbody, #logintabel tr, #logintabel td {display: block;    }
    #logintabel {width: 100%; border: 0;    }
    #logintabel tbody { display: grid; grid-template-columns: 1fr; }
    #logintabel tr { display: contents;    }
    #logintabel .col_0 { display: none;    }
    #logintabel td {box-sizing: border-box;padding: 0.65rem 1rem;border-left: 1px solid #ddd;border-right: 1px solid #ddd;background: #fff;    }

    /* Reihenfolge: Gruppe 1 */
    #logintabel .row_0 .col_1 { order: 1; }
    #logintabel .row_1 .col_1 { order: 2; }
    #logintabel .row_2 .col_1 { order: 3; }

    /* Reihenfolge: Gruppe 2 */
    #logintabel .row_0 .col_2 { order: 4; }
    #logintabel .row_1 .col_2 { order: 5; }
    #logintabel .row_2 .col_2 { order: 6; }

    /* Reihenfolge: Gruppe 3 */
    #logintabel .row_0 .col_3 { order: 7; }
    #logintabel .row_1 .col_3 { order: 8; }
    #logintabel .row_2 .col_3 { order: 9; }

    /* Reihenfolge: Gruppe 4 */
    #logintabel .row_0 .col_4 { order: 10; }
    #logintabel .row_1 .col_4 { order: 11; }
    #logintabel .row_2 .col_4 { order: 12; }

    /* Beschriftungen */
    #logintabel .row_0 td:not(.col_0)::before {content: "Nutzergruppe: "; font-weight: bold;    }
    #logintabel .row_1 td:not(.col_0)::before {content: "Benutzername: "; font-weight: bold;    }
    #logintabel .row_2 td:not(.col_0)::before {content: "Passwort: "; font-weight: bold;    }

    #logintabel .row_0 td:not(.col_0) {border-top: 1px solid #ddd;border-radius: 10px 10px 0 0;background: #f7f7f7;}
    #logintabel .row_2 td:not(.col_0) {border-bottom: 1px solid #ddd; border-radius: 0 0 10px 10px; margin-bottom: 1rem;}
}