/* =========================================================
   ALL MEDIA STYLES
   Basis: alte funktionierende Datei
   Neue Breakpoints:
   - bis 320
   - 321–540
   - 541–780
   - 781–960
   - 961–1140
   - 1141–1280
   - 1281–1400
   ========================================================= */


/* =========================================================
   1281px – 1400px
   Große Laptops / kleinere Monitore
   ========================================================= */
@media (min-width: 1281px) and (max-width: 1400px) {

    /* -------------------------
       HEADER
       ------------------------- */
    .hamburger {
        display: none;
    }

    .headerOptions {
        display: flex !important;
        position: static;
        width: auto;
        background: transparent;
        flex-direction: row;
        padding: 0;
        z-index: auto;
        box-shadow: none;
    }

    .headerOptions ul {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .headerOptions li {
        width: auto;
    }

    .headerOptions .btn--header,
    .headerOptions select {
        width: auto;
    }

    .header-ueberschrift {
        font-size: 2.1rem;
    }

    .title-full {
        display: inline;
    }

    .title-short {
        display: none;
    }

    .date {
        width: 220px;
        display: flex;
        font-size: 1.05rem;
    }

    .clock {
        width: 100px;
        margin-right: 8px;
        display: flex;
        font-size: 1.05rem;
    }

    /* -------------------------
       LEFT CONTAINER
       ------------------------- */
    .left-container {
        position: fixed;
        left: 5px;
        transform: none;
    }

    .hamburger-left {
        display: none;
    }
}


/* =========================================================
   1141px – 1280px
   Standard-Laptops
   ========================================================= */
@media (min-width: 1141px) and (max-width: 1280px) {

    /* -------------------------
       HEADER
       ------------------------- */
    .hamburger {
        display: none;
    }

    .headerOptions {
        display: flex !important;
        position: static;
        width: auto;
        background: transparent;
        flex-direction: row;
        padding: 0;
        z-index: auto;
        box-shadow: none;
    }

    .headerOptions ul {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .headerOptions li {
        width: auto;
    }

    .headerOptions .btn--header,
    .headerOptions select {
        width: auto;
    }

    .header-ueberschrift {
        font-size: 2rem;
    }

    .title-full {
        display: inline;
    }

    .title-short {
        display: none;
    }

    .date {
        width: 200px;
        display: flex;
        font-size: 1rem;
    }

    .clock {
        width: 90px;
        margin-right: 8px;
        display: flex;
        font-size: 1rem;
    }

    /* -------------------------
       LEFT CONTAINER
       ------------------------- */
    .left-container {
        position: fixed;
        left: 5px;
        transform: none;
    }

    .hamburger-left {
        display: none;
    }

    /* -------------------------
       TERMINE
       ------------------------- */
    .termine-box {
        padding: 18px 14px 16px;
    }

    .termine-head h2 {
        font-size: 2rem;
    }
}


/* =========================================================
   961px – 1140px
   Kleine Laptops / große Tablets quer
   ========================================================= */
@media (min-width: 961px) and (max-width: 1140px) {

    /* -------------------------
       HEADER
       ------------------------- */
    .hamburger {
        display: none;
    }

    .headerOptions {
        display: flex !important;
        position: static;
        width: auto;
        background: transparent;
        flex-direction: row;
        padding: 0;
        z-index: auto;
        box-shadow: none;
    }

    .headerOptions ul {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .headerOptions li {
        width: auto;
    }

    .headerOptions .btn--header,
    .headerOptions select {
        width: auto;
    }

    .header-ueberschrift {
        font-size: 1.8rem;
    }

    .title-full {
        display: inline;
    }

    .title-short {
        display: none;
    }

    .date {
        width: 180px;
        display: flex;
        font-size: 1rem;
    }

    .clock {
        width: 80px;
        margin-right: 6px;
        display: flex;
        font-size: 1rem;
    }

    /* -------------------------
       LEFT CONTAINER
       ------------------------- */
    .left-container {
        position: fixed;
        left: 5px;
        transform: none;
    }

    .hamburger-left {
        display: none;
    }

    /* -------------------------
       BUTTONS
       ------------------------- */
    .btn--header {
        width: 90px;
        height: 28px;
        font-size: 13px;
    }

    .btn--nav {
        width: 130px;
        height: 28px;
        font-size: 15px;
    }

    .btn--sub {
        width: 110px;
        height: 24px;
        font-size: 12px;
    }

    /* -------------------------
       CALENDAR
       ------------------------- */
    .calendar-container {
        width: 100%;
        max-width: none;
        padding: 8px;
        border-radius: 8px;
    }

    .calendar-header {
        margin-bottom: 10px;
    }

    #monthDisplay {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .calendar,
    .calendar-days {
        gap: 4px;
    }

    .calendar .calendar-day {
        font-size: 0.95rem;
    }

    .calendar-days .calendar-day {
        min-height: 58px;
        padding: 8px 4px;
        font-size: 0.9rem;
        line-height: 1.2;
        overflow: visible;
    }

    .holiday-label {
        font-size: 0.65rem;
        line-height: 1.1;
    }

    #searchInput {
        min-width: 140px;
        width: 100%;
        max-width: 220px;
    }

    .calendar-footer {
        justify-content: center;
    }
}


/* =========================================================
   781px – 960px
   Tablets / kleine Notebooks
   ========================================================= */
@media (min-width: 781px) and (max-width: 960px) {

    /* -------------------------
       HEADER
       ------------------------- */
    .hamburger {
        display: block;
    }

    .header-ueberschrift {
        font-size: 1.6rem;
    }

    .title-full {
        display: inline;
    }

    .title-short {
        display: none;
    }

    .date {
        display: none;
    }

    .clock {
        width: 72px;
        margin-right: 6px;
        display: flex;
        font-size: 1rem;
    }

    .headerOptions {
        position: absolute;
        top: 50px;
        right: 0;
        width: 220px;
        display: none;
        flex-direction: column;
        padding: 10px;
        z-index: 1001;
        background: rgba(255, 231, 186, 0.8);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 0 10px;
    }

    .headerOptions.open {
        display: flex;
    }

    .headerOptions ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .headerOptions li {
        width: 100%;
    }

    .headerOptions .btn--header,
    .headerOptions select {
        width: 100%;
    }

    /* -------------------------
       LEFT CONTAINER
       ------------------------- */
    .left-container {
        position: fixed;
        top: 90px;
        left: 0;
        margin-top: 0;
        margin-left: 0;
        width: 220px;
        height: calc(100vh - 145px);
        padding: 5px;
        background: rgba(255, 231, 186, 0.6);
        border-radius: 0 10px 10px 0;
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .left-container.open {
        transform: translateX(0);
    }

    .hamburger-left {
        display: block;
        position: fixed;
        top: 60px;
        left: 8px;
        z-index: 1000;
        font-size: 28px;
        cursor: pointer;
        border: 1px solid rgba(0, 0, 139, 0.2);
        border-radius: 8px;
        padding: 2px 10px;
        color: rgb(0, 0, 139);
        margin: 0;
    }

    /* -------------------------
       PAGE LAYOUT / MAIN
       ------------------------- */
    .page-layout {
        top: 50px;
        bottom: 50px;
        left: 0;
        right: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }

    main {
        margin-left: 0;
        width: 100%;
        height: calc(100vh - 110px);
        padding: 0 12px 12px;
    }

    .welcome {
        font-size: 1.15rem;
        margin: 12px 0 8px;
    }

    /* -------------------------
       CALENDAR
       ------------------------- */
    .calendar-container {
        width: 100%;
        max-width: none;
        padding: 8px;
        border-radius: 8px;
    }

    .calendar-header {
        margin-bottom: 10px;
    }

    #monthDisplay {
        font-size: 1.45rem;
        line-height: 1.2;
    }

    .calendar,
    .calendar-days {
        gap: 4px;
    }

    .calendar .calendar-day {
        font-size: 0.9rem;
    }

    .calendar-days .calendar-day {
        min-height: 56px;
        padding: 7px 4px;
        font-size: 0.85rem;
        line-height: 1.2;
        overflow: visible;
    }

    .holiday-label {
        font-size: 0.62rem;
        line-height: 1.1;
    }

    #searchInput {
        min-width: 140px;
        width: 100%;
        max-width: 220px;
    }

    .calendar-footer {
        justify-content: center;
    }

    /* -------------------------
       BUTTONS
       ------------------------- */
    .btn--header {
        width: 90px;
        height: 28px;
        font-size: 13px;
    }

    .btn--nav {
        width: 130px;
        height: 28px;
        font-size: 15px;
    }

    .btn--sub {
        width: 110px;
        height: 24px;
        font-size: 12px;
    }

    /* -------------------------
       TERMINE
       ------------------------- */
    .termin-entry-title {
        font-size: 2.3rem;
    }

    .termin-entry-box {
        max-width: 100%;
        padding: 20px 14px 16px;
        border-radius: 14px;
    }
}


/* =========================================================
   541px – 780px
   Größere Smartphones / kleine Tablets
   ========================================================= */
@media (min-width: 541px) and (max-width: 780px) {

    /* -------------------------
       HEADER
       ------------------------- */
    .hamburger {
        display: block;
    }

    .header-logo {
        max-height: 34px;
    }

    .header-ueberschrift {
        font-size: 1.4rem;
    }

    .title-full {
        display: none;
    }

    .title-short {
        display: inline;
    }

    .date {
        display: none;
    }

    .clock {
        width: 62px;
        margin-right: 6px;
        display: flex;
        font-size: 0.95rem;
    }

    .headerOptions {
        position: absolute;
        top: 50px;
        right: 0;
        width: 200px;
        display: none;
        flex-direction: column;
        padding: 10px;
        z-index: 1001;
        background: rgba(255, 231, 186, 0.8);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 0 10px;
    }

    .headerOptions.open {
        display: flex;
    }

    .headerOptions ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .headerOptions li {
        width: 100%;
    }

    .headerOptions .btn--header,
    .headerOptions select {
        width: 100%;
    }

    /* -------------------------
       LEFT CONTAINER
       ------------------------- */
    .left-container {
        position: fixed;
        top: 90px;
        left: 0;
        margin-top: 0;
        margin-left: 0;
        width: 200px;
        height: calc(100vh - 145px);
        padding: 5px;
        background: rgba(255, 231, 186, 0.6);
        border-radius: 0 10px 10px 0;
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .left-container.open {
        transform: translateX(0);
    }

    .hamburger-left {
        display: block;
        position: fixed;
        top: 58px;
        left: 6px;
        z-index: 1000;
        font-size: 24px;
        cursor: pointer;
        border: 1px solid rgba(0, 0, 139, 0.2);
        border-radius: 8px;
        padding: 2px 8px;
        color: rgb(0, 0, 139);
        margin: 0;
    }

    /* -------------------------
       PAGE LAYOUT / MAIN
       ------------------------- */
    .page-layout {
        top: 50px;
        bottom: 50px;
        left: 0;
        right: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }

    main {
        margin-left: 0;
        width: 100%;
        height: calc(100vh - 110px);
        padding: 0 8px 10px;
    }

    .welcome {
        font-size: 1.05rem;
        margin: 12px 0 8px;
    }

    /* -------------------------
       CALENDAR
       ------------------------- */
    .calendar-container {
        width: 100%;
        max-width: none;
        padding: 6px;
        border-width: 1px;
        border-radius: 6px;
    }

    .calendar-header {
        grid-template-columns: 1fr;
        gap: 8px;
        justify-items: center;
    }

    #monthDisplay {
        font-size: 1.3rem;
    }

    .calendar,
    .calendar-days {
        gap: 3px;
    }

    .calendar .calendar-day {
        font-size: 0.8rem;
        font-weight: 700;
    }

    .calendar-days .calendar-day {
        min-height: 52px;
        padding: 6px 3px;
        font-size: 0.78rem;
        border-radius: 4px;
        overflow: visible;
    }

    .calendar-days .calendar-day.has-events::after {
        right: 4px;
        bottom: 4px;
        width: 8px;
        height: 8px;
    }

    .holiday-label {
        margin-top: 2px;
        font-size: 0.56rem;
        line-height: 1.1;
    }

    /* -------------------------
       CALENDAR PORTRAIT
       ------------------------- */
    @media (orientation: portrait) {
        .calendar-container {
            padding: 4px;
        }

        #monthDisplay {
            font-size: 1.1rem;
        }

        .calendar-header {
            display: grid;
            grid-template-columns: 90px 1fr 90px;
            align-items: center;
            gap: 6px;
            margin-bottom: 8px;
        }

        .calendar,
        .calendar-days {
            gap: 3px;
        }

        .calendar .calendar-day {
            font-size: 0.72rem;
            font-weight: 700;
        }

        .calendar-days .calendar-day {
            min-height: 44px;
            padding: 4px 2px;
            font-size: 0.72rem;
            line-height: 1.1;
            overflow: visible;
        }

        .holiday-label {
            display: none;
        }

        .calendar-day.holiday {
            font-weight: bold;
        }

        .holiday-tooltip {
            min-width: 88px;
            max-width: 130px;
            font-size: 0.62rem;
            padding: 5px 6px;
            bottom: calc(100% + 4px);
        }

        .holiday-tooltip::after {
            border-width: 4px;
        }

        .calendar-footer {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: 6px 0 0;
        }

        .calendar-footer-left,
        .calendar-footer-center,
        .calendar-footer-right {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
        }

        .btn--calendar,
        .btn--calendar-action {
            min-width: 96px;
            height: 28px;
            font-size: 11px;
            padding: 0 8px;
        }

        #searchInput {
            width: 100%;
            max-width: 220px;
            min-width: 0;
            height: 28px;
            font-size: 11px;
        }
    }

    /* -------------------------
       CALENDAR LANDSCAPE
       ------------------------- */
    @media (orientation: landscape) {
        .calendar-container {
            width: 100%;
            max-width: 100%;
            padding: 6px 8px;
            border-width: 1px;
            border-radius: 8px;
        }

        .calendar-header {
            margin-bottom: 8px;
            display: grid;
            grid-template-columns: 90px 1fr 90px;
            align-items: center;
            gap: 8px;
        }

        #monthDisplay {
            font-size: 1.1rem;
            line-height: 1.1;
        }

        .calendar,
        .calendar-days {
            gap: 3px;
        }

        .calendar .calendar-day {
            font-size: 0.72rem;
            font-weight: 700;
        }

        .calendar-days .calendar-day {
            min-height: 32px;
            padding: 3px 2px;
            font-size: 0.72rem;
            border-radius: 4px;
            overflow: visible;
        }

        .holiday-label {
            display: block;
            margin-top: 1px;
            font-size: 0.48rem;
            line-height: 1;
            white-space: normal;
            word-break: break-word;
            overflow-wrap: anywhere;
            text-align: center;
        }

        .calendar-days .calendar-day.has-events::after {
            right: 3px;
            bottom: 3px;
            width: 7px;
            height: 7px;
        }

        .calendar-footer {
            display: grid;
            grid-template-columns: 1fr 1.2fr 1fr;
            gap: 8px;
            align-items: start;
            padding: 4px 0 0;
            margin-top: 6px;
        }

        .calendar-footer-left,
        .calendar-footer-center,
        .calendar-footer-right {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
        }

        .btn--calendar,
        .btn--calendar-action {
            min-width: 84px;
            height: 25px;
            font-size: 10px;
            padding: 0 6px;
        }

        #searchInput {
            width: 100%;
            max-width: 160px;
            min-width: 110px;
            height: 25px;
            font-size: 10px;
            padding: 0 8px;
        }

        .holiday-tooltip {
            min-width: 82px;
            max-width: 120px;
            font-size: 0.55rem;
            padding: 4px 5px;
            bottom: calc(100% + 4px);
        }

        .holiday-tooltip::after {
            border-width: 4px;
        }
    }

    /* -------------------------
       BUTTONS
       ------------------------- */
    .btn--header {
        width: 80px;
        height: 26px;
        font-size: 12px;
    }

    .btn--nav {
        width: 120px;
        height: 26px;
        font-size: 14px;
    }

    .btn--sub {
        width: 100px;
        height: 22px;
        font-size: 11px;
    }

    /* -------------------------
       TERMINE / FORM / LOGIN
       ------------------------- */
    .termine-head h2 {
        font-size: 1.7rem;
    }

    .termine-actions {
        justify-content: center;
    }

    .action-link,
    .filter-link {
        width: 100%;
        max-width: 280px;
    }

    .termin-entry-form {
        grid-template-columns: 1fr;
    }

    .termin-field,
    .termin-field-date,
    .termin-field-start,
    .termin-field-end,
    .termin-field-full,
    .termin-field-checkbox,
    .termin-field-firstname,
    .termin-field-lastname,
    .termin-field-street,
    .termin-field-street-no,
    .termin-field-zip,
    .termin-field-city,
    .termin-field-phone,
    .termin-field-email,
    .termin-field-note,
    .termin-entry-actions {
        grid-column: auto;
        max-width: 100%;
        justify-self: stretch;
    }

    .termin-field-street-no,
    .termin-field-zip {
        max-width: 100%;
    }

    .termin-entry-actions {
        flex-direction: column;
        align-items: center;
    }

    .termin-entry-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .formular-container {
        margin-top: 12px;
    }

    .form-box {
        padding: 18px 14px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}


/* =========================================================
   321px – 540px
   Smartphones
   ========================================================= */
@media (min-width: 321px) and (max-width: 540px) {

    /* -------------------------
       HEADER
       ------------------------- */
    header {
        padding: 5px 6px 5px 5px;
    }

    .hamburger {
        display: block;
        font-size: 24px;
        margin-right: 6px;
    }

    .header-logo {
        max-height: 30px;
    }

    .header-ueberschrift {
        font-size: 1rem;
        margin-left: 4px;
        padding-right: 4px;
    }

    .title-full {
        display: none;
    }

    .title-short {
        display: inline;
    }

    .date {
        display: none;
    }

    .clock {
        width: 58px;
        margin-right: 4px;
        display: none;
        font-size: 0.85rem;
    }

    .headerOptions {
        position: absolute;
        top: 50px;
        right: 0;
        width: 180px;
        display: none;
        flex-direction: column;
        padding: 8px;
        z-index: 1001;
        background: rgba(255, 231, 186, 0.85);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 0 10px;
    }

    .headerOptions.open {
        display: flex;
    }

    .headerOptions ul {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .headerOptions li {
        width: 100%;
    }

    .headerOptions .btn--header,
    .headerOptions select {
        width: 100%;
    }

    /* -------------------------
       LEFT CONTAINER
       ------------------------- */
    .left-container {
        position: fixed;
        top: 90px;
        left: 0;
        margin-top: 0;
        margin-left: 0;
        width: 180px;
        height: calc(100vh - 100px);
        padding: 4px;
        background: rgba(255, 231, 186, 0.6);
        border-radius: 0 10px 10px 0;
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .left-container.open {
        transform: translateX(0);
    }

    .hamburger-left {
        display: block;
        position: fixed;
        top: 56px;
        left: 5px;
        z-index: 1000;
        font-size: 22px;
        cursor: pointer;
        border: 1px solid rgba(0, 0, 139, 0.2);
        border-radius: 8px;
        padding: 2px 7px;
        color: rgb(0, 0, 139);
        margin: 0;
    }

    /* -------------------------
       PAGE LAYOUT / MAIN
       ------------------------- */
    .page-layout {
        top: 50px;
        bottom: 50px;
        left: 0;
        right: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }

    main {
        margin-left: 0;
        width: 100%;
        height: calc(100vh - 110px);
        padding: 0 6px 8px;
    }

    .welcome {
        font-size: 1rem;
        line-height: 1.3;
        margin: 12px 0 8px;
    }

    /* -------------------------
       CALENDAR
       ------------------------- */
    .calendar-container {
        padding: 4px;
        border-width: 1px;
        border-radius: 6px;
        width: 100%;
        max-width: none;
    }

    #monthDisplay {
        font-size: 1.1rem;
    }

    .calendar-header {
        display: grid;
        grid-template-columns: 90px 1fr 90px;
        align-items: center;
        gap: 6px;
        margin-bottom: 8px;
    }

    .calendar,
    .calendar-days {
        gap: 3px;
    }

    .calendar .calendar-day {
        font-size: 0.72rem;
        font-weight: 700;
    }

    .calendar-days .calendar-day {
        min-height: 44px;
        padding: 4px 2px;
        font-size: 0.72rem;
        line-height: 1.1;
        overflow: visible;
    }

    .holiday-label {
        display: none;
    }

    .calendar-day.holiday {
        font-weight: bold;
    }

    .holiday-tooltip {
        min-width: 88px;
        max-width: 130px;
        font-size: 0.62rem;
        padding: 5px 6px;
        bottom: calc(100% + 4px);
    }

    .holiday-tooltip::after {
        border-width: 4px;
    }

    .calendar-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 6px 0 0;
    }

    .calendar-footer-left,
    .calendar-footer-center,
    .calendar-footer-right {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn--calendar,
    .btn--calendar-action {
        min-width: 96px;
        height: 28px;
        font-size: 11px;
        padding: 0 8px;
    }

    #searchInput {
        width: 100%;
        max-width: 220px;
        min-width: 0;
        height: 28px;
        font-size: 11px;
    }

    /* -------------------------
       BUTTONS
       ------------------------- */
    .btn--header {
        width: 70px;
        height: 24px;
        font-size: 11px;
    }

    .btn--nav {
        width: 110px;
        height: 24px;
        font-size: 13px;
    }

    .btn--sub {
        width: 90px;
        height: 20px;
        font-size: 10px;
    }

    /* -------------------------
       TERMINE / FORM / LOGIN
       ------------------------- */
    .termine-head h2 {
        font-size: 1.6rem;
    }

    .termine-actions {
        justify-content: center;
    }

    .action-link,
    .filter-link {
        width: 100%;
        max-width: 260px;
    }

    .termin-entry-form {
        grid-template-columns: 1fr;
    }

    .termin-field,
    .termin-field-date,
    .termin-field-start,
    .termin-field-end,
    .termin-field-full,
    .termin-field-checkbox,
    .termin-field-firstname,
    .termin-field-lastname,
    .termin-field-street,
    .termin-field-street-no,
    .termin-field-zip,
    .termin-field-city,
    .termin-field-phone,
    .termin-field-email,
    .termin-field-note,
    .termin-entry-actions {
        grid-column: auto;
        max-width: 100%;
        justify-self: stretch;
    }

    .termin-entry-actions {
        flex-direction: column;
        align-items: center;
    }

    .termin-entry-actions .btn {
        width: 100%;
        max-width: 260px;
    }

    .formular-container {
        margin-top: 12px;
    }

    .form-box {
        padding: 14px 10px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}


/* =========================================================
   BIS 320px
   Mini-Smartphones
   ========================================================= */
@media (max-width: 320px) {

    /* -------------------------
       HEADER
       ------------------------- */
    header {
        padding: 4px 4px 4px 4px;
    }

    .hamburger {
        display: block;
        font-size: 22px;
        margin-right: 4px;
    }

    .header-logo {
        max-height: 26px;
    }

    .header-ueberschrift {
        font-size: 0.9rem;
        margin-left: 2px;
        padding-right: 2px;
    }

    .title-full {
        display: none;
    }

    .title-short {
        display: inline;
    }

    .date,
    .clock {
        display: none;
    }

    .headerOptions {
        position: absolute;
        top: 50px;
        right: 0;
        width: 160px;
        display: none;
        flex-direction: column;
        padding: 8px;
        z-index: 1001;
        background: rgba(255, 231, 186, 0.9);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 0 10px;
    }

    .headerOptions.open {
        display: flex;
    }

    .headerOptions ul {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .headerOptions li {
        width: 100%;
    }

    .headerOptions .btn--header,
    .headerOptions select {
        width: 100%;
    }

    /* -------------------------
       LEFT CONTAINER
       ------------------------- */
    .left-container {
        position: fixed;
        top: 90px;
        left: 0;
        margin-top: 0;
        margin-left: 0;
        width: 165px;
        height: calc(100vh - 100px);
        padding: 4px;
        background: rgba(255, 231, 186, 0.6);
        border-radius: 0 10px 10px 0;
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .left-container.open {
        transform: translateX(0);
    }

    .hamburger-left {
        display: block;
        position: fixed;
        top: 56px;
        left: 5px;
        z-index: 1000;
        font-size: 20px;
        cursor: pointer;
        border: 1px solid rgba(0, 0, 139, 0.2);
        border-radius: 8px;
        padding: 2px 6px;
        color: rgb(0, 0, 139);
        margin: 0;
    }

    /* -------------------------
       PAGE LAYOUT / MAIN
       ------------------------- */
    .page-layout {
        top: 50px;
        bottom: 50px;
        left: 0;
        right: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }

    main {
        margin-left: 0;
        width: 100%;
        height: calc(100vh - 110px);
        padding: 0 5px 8px;
    }

    .welcome {
        font-size: 0.95rem;
        line-height: 1.25;
        margin: 10px 0 8px;
    }

    /* -------------------------
       CALENDAR
       ------------------------- */
    .calendar-container {
        padding: 4px;
        border-width: 1px;
        border-radius: 6px;
        width: 100%;
        max-width: none;
    }

    #monthDisplay {
        font-size: 1rem;
    }

    .calendar-header {
        grid-template-columns: 84px 1fr 84px;
        gap: 5px;
    }

    .calendar .calendar-day {
        font-size: 0.66rem;
    }

    .calendar-days .calendar-day {
        min-height: 40px;
        padding: 3px 1px;
        font-size: 0.66rem;
    }

    .holiday-label {
        display: none;
    }

    .holiday-tooltip {
        min-width: 80px;
        max-width: 115px;
        font-size: 0.56rem;
        padding: 4px 5px;
    }

    .calendar-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 6px 0 0;
    }

    .calendar-footer-left,
    .calendar-footer-center,
    .calendar-footer-right {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn--calendar,
    .btn--calendar-action {
        min-width: 90px;
        height: 26px;
        font-size: 10px;
        padding: 0 6px;
    }

    #searchInput {
        max-width: 200px;
        height: 26px;
        font-size: 10px;
    }

    /* -------------------------
       BUTTONS
       ------------------------- */
    .btn--header {
        width: 68px;
        height: 24px;
        font-size: 10px;
    }

    .btn--nav {
        width: 105px;
        height: 24px;
        font-size: 12px;
    }

    .btn--sub {
        width: 88px;
        height: 20px;
        font-size: 10px;
    }

    /* -------------------------
       TERMINE / FORM / LOGIN
       ------------------------- */
    .termine-head h2 {
        font-size: 1.45rem;
    }

    .action-link,
    .filter-link {
        width: 100%;
        max-width: 240px;
    }

    .form-box {
        padding: 12px 8px;
    }
}