@media (min-width: 769px) {
    .menu-toggle-input,
    .menu-toggle {
        display: none;
    }

    .menu-links {
        display: inline;
    }
}

@media (max-width: 1200px) {
    img {
        max-width: 100%;
        height: auto !important;
    }

    body {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 992px) {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    body {
        width: 100%;
        max-width: 100%;
        padding: 12px;
    }

    table:not(.kalender) {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
    }

    .prettyTable {
        white-space: nowrap;
    }

    .kalender {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    #kalender .kalender {
        display: table;
        table-layout: fixed;
        margin: 8px 0;
    }

    .kalender td {
        width: auto;
        min-width: 0;
    }

    form {
        max-width: 100%;
    }

    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    textarea,
    select,
    .selectize-control {
        max-width: 100%;
    }

    textarea {
        width: 100%;
    }

    .selectize-control,
    .selectize-input {
        width: 100%;
    }

    button,
    input[type="submit"] {
        min-height: 44px;
    }

    .legendeBlock {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    body > div:first-child {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: wrap;
    }

    body > div:first-child img {
        float: none !important;
        width: auto !important;
        max-height: 64px;
        object-fit: contain;
    }

    .menu {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .menu-toggle-input {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .menu-toggle {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
        padding: 8px 12px;
        border: 1px solid currentColor;
        border-radius: 6px;
        cursor: pointer;
        font-weight: bold;
    }

    .menu-toggle-input:focus-visible + .menu-toggle {
        outline: 2px solid currentColor;
        outline-offset: 2px;
    }

    .menu-links {
        display: none;
        flex: 1 0 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        order: 2;
    }

    .menu-separator {
        display: none;
    }

    .menu-links a {
        display: block;
        min-height: 44px;
        padding: 12px 8px;
    }

    .menu-toggle-input:checked ~ .menu-links {
        display: flex;
    }

    .menu > span {
        float: none !important;
        flex: 1 0 100%;
        order: 3;
    }

    form[style*="float:right"] {
        float: none !important;
    }

    .legendeBlock {
        display: block;
        padding: 8px 5px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px;
        font-size: 16px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    textarea,
    select {
        width: 100%;
        min-height: 44px;
        font-size: 16px;
    }

    input[type="checkbox"],
    input[type="radio"] {
        min-width: 20px;
        min-height: 20px;
    }

    input[type="file"] {
        height: auto;
        padding: 8px 0;
    }

    button,
    input[type="submit"] {
        max-width: 100%;
        padding-right: 12px;
        padding-left: 12px;
        white-space: normal;
    }

    form[style*="float:right"] {
        width: 100%;
    }

    form > table {
        white-space: normal;
    }

    form > table tr,
    form > table td {
        display: block;
        width: 100%;
    }

    .kalender td {
        height: 28px;
        padding: 2px 1px;
        font-size: 0.85rem;
    }

    #kalender .kalender {
        table-layout: fixed;
    }

    .prettyTable td,
    .prettyTable th {
        padding: 6px;
    }

    .menu-links a {
        border-top: 1px solid rgba(0, 0, 0, 0.15);
    }
}
