/* ==========================
   Header Media Styles
   ========================= */


/* =========================
   HEADER – AB 1001PX
   Normale Header-Buttons sichtbar
   ========================= */
@media (min-width: 1001px) {
    .hamburger {
        display: none;
    }

    .headerOptions {
        display: flex;
        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: 10px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .headerOptions li {
        width: auto;
    }

    .headerOptions .btn,
    .headerOptions select {
        width: auto;
    }
}

/* =========================
   HEADER – BIS 1400PX
   ========================= */
@media (max-width: 1400px) {
    .header-ueberschrift {
        font-size: 1.7rem;
    }

    .date {
        width: 180px;
    }

    .clock {
        width: 80px;
        margin-right: 8px;
    }

    .date,
    .clock {
        font-size: 1rem;
    }
}

/* =========================
   HEADER – BIS 1000PX
   Buttons ausblenden,
   Hamburger anzeigen,
   Datum/Uhr kompakter
   ========================= */
@media (max-width: 1000px) {
    .hamburger {
        display: block;
    }

    .header-ueberschrift {
        font-size: 1.4rem;
    }

    .date {
        width: 125px;
    }

    .clock {
        width: 72px;
        margin-right: 6px;
    }

    .date,
    .clock {
        font-size: 0.95rem;
    }

    .headerOptions {
        position: absolute;
        top: 50px;
        right: 0;
    /*    background: rgba(255, 231, 186, 0.95);  */
        width: 220px;
        display: none;
        flex-direction: column;
        padding: 10px;
        z-index: 1001;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .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,
    .headerOptions select {
        width: 100%;
    }
}

/* =========================
   HEADER – BIS 700PX
   Feinanpassung für kleinere Geräte
   ========================= */
@media (max-width: 700px) {
    .header-ueberschrift {
        font-size: 1.2rem;
    }

    .header-logo {
        max-height: 34px;
    }

    .date {
        width: 90px;
    }

    .clock {
        width: 62px;
        margin-right: 6px;
    }

    .date,
    .clock {
        font-size: 0.9rem;
    }

    .headerOptions {
        width: 200px;
    }
}

/* =========================
   HEADER – BIS 480PX
   Datum ausblenden,
   Uhr bleibt sichtbar
   ========================= */
@media (max-width: 480px) {
    header {
        padding: 5px 6px 5px 5px;
    }

    .header-logo {
        max-height: 30px;
    }

    .header-ueberschrift {
        font-size: 1rem;
        margin-left: 4px;
        padding-right: 4px;
    }

    .date {
        display: none;
    }

    .clock {
        width: 58px;
        margin-right: 4px;
        font-size: 0.85rem;
    }

    .hamburger {
        font-size: 24px;
        margin-right: 6px;
    }

    .headerOptions {
        width: 180px;
    }
}

/* =========================
   HEADER – BIS 360PX
   Uhr ebenfalls ausblenden
   ========================= */
@media (max-width: 360px) {
    .header-logo {
        max-height: 26px;
    }

    .header-ueberschrift {
        font-size: 0.9rem;
    }

    .clock {
        display: none;
    }

    .hamburger {
        font-size: 22px;
        margin-right: 4px;
    }

    .headerOptions {
        width: 160px;
        padding: 8px;
    }
}

/* ===========================
    leftContainerMedia.css
    ========================== */

/* =========================
   LEFT CONTAINER MEDIA
   ========================= */


/* =========================
   AB 1001PX
   Linke Navigation normal sichtbar
   ========================= */
@media (min-width: 1001px) {
    .left-container {
        left: 0;
        transform: none;
    }

    .hamburger-left {
        display: none;
    }
}


/* =========================
   BIS 1000PX
   Linke Navigation einklappbar
   ========================= */
@media (max-width: 1000px) {
    .left-container {
        position: fixed;
        top: 55px;
        left: 0;
        margin-top: 0;
        margin-left: 0;
        width: 220px;
        height: calc(100vh - 105px);
     /*   background: rgba(255, 231, 186, 0.97); */
        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;
      /*  background: rgba(255, 231, 186, 0.95); */
        border: 1px solid rgba(0, 0, 139, 0.2);
        border-radius: 8px;
        padding: 2px 10px;
        color: rgb(0, 0, 139);
        margin: 0;
    }
}


/* =========================
   BIS 700PX
   Etwas kompakter
   ========================= */
@media (max-width: 700px) {
    .left-container {
        width: 200px;
    }

    .hamburger-left {
        font-size: 24px;
        top: 58px;
        left: 6px;
        padding: 2px 8px;
    }
}


/* =========================
   BIS 480PX
   Noch kompakter
   ========================= */
@media (max-width: 480px) {
    .left-container {
        width: 180px;
        height: calc(100vh - 100px);
        padding: 4px;
    }

    .hamburger-left {
        font-size: 22px;
        top: 56px;
        left: 5px;
        padding: 2px 7px;
    }
}


/* =========================
   BIS 360PX
   Sehr kleine Geräte
   ========================= */
@media (max-width: 360px) {
    .left-container {
        width: 165px;
    }

    .hamburger-left {
        font-size: 20px;
        padding: 2px 6px;
    }
}


/* =========================
   PAGE LAYOUT MEDIA
   ========================= */

@media (max-width: 1000px) {
    .page-layout {
        top: 50px;
        bottom: 50px;
        left: 0;
        right: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }
}

/* =========================
   MAIN MEDIA
   ========================= */

@media (max-width: 1000px) {
    main {
        margin-left: 0;
        width: 100%;
        height: calc(100vh - 110px);
        padding: 0 12px 12px;
    }

    .welcome {
        font-size: 1.15rem;
        margin: 12px 0 8px;
    }
}

@media (max-width: 700px) {
    main {
        padding: 0 8px 10px;
    }

    .welcome {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 6px 8px;
    }

    .welcome {
        font-size: 1rem;
        line-height: 1.3;
    }
}

/* =========================
   CALENDAR MEDIA
   ========================= */


/* =========================
   BIS 1000PX
   ========================= */
@media (max-width: 1000px) {
    .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;
    }

    .holiday-label {
        font-size: 0.65rem;
        line-height: 1.1;
    }
}


/* =========================
   BIS 700PX
   ========================= */
@media (max-width: 700px) {
    .calendar-container {
        padding: 6px;
        border-width: 1px;
        border-radius: 6px;
    }

    #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;
    }

    .calendar-days .calendar-day.has-events::after {
        right: 4px;
        bottom: 4px;
        width: 8px;
        height: 8px;
    }

    .holiday-label {
        margin-top: 2px;
        font-size: 0.56rem;
    }

    .calendar-footer {
        justify-content: center;
        gap: 6px;
        padding: 4px 6px;
    }

    .calendar-footer button {
        height: 28px;
        padding: 0 10px;
        font-size: 13px;
    }
}


/* =========================
   BIS 480PX
   ========================= */

@media (max-width: 480px) {
    .calendar-container {
        padding: 4px;
    }

    #monthDisplay {
        font-size: 1.05rem;
    }

    .empty-day {
        min-height: 36px;
    }

    .calendar .calendar-day {
        font-size: 0.68rem;
    }

    .calendar-days .calendar-day {
        min-height: 44px;
        padding: 4px 2px;
        font-size: 0.68rem;
    }

    .holiday-label {
        display: none;
    }

    .calendar-day.holiday.active {
        position: relative;
        z-index: 2;
        outline: 2px solid #8b0000;
    }

    .calendar-day.holiday.active::after {
        content: attr(data-holiday);
        position: absolute;
        left: 50%;
        bottom: calc(100% + 6px);
        transform: translateX(-50%);
        min-width: 90px;
        max-width: 140px;
        padding: 4px 6px;
        border-radius: 6px;
        background: rgba(139, 0, 0, 0.95);
        color: #fff;
        font-size: 0.62rem;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    }

    .calendar-footer button {
        height: 26px;
        padding: 0 8px;
        font-size: 12px;
    }
}


/* =========================
   BIS 360PX
   ========================= */
@media (max-width: 360px) {
    #monthDisplay {
        font-size: 0.95rem;
    }

    .calendar .calendar-day {
        font-size: 0.62rem;
    }

    .calendar-days .calendar-day {
        min-height: 40px;
        padding: 3px 1px;
        font-size: 0.62rem;
    }

    .calendar-day.holiday.active::after {
        max-width: 110px;
        font-size: 0.56rem;
        padding: 3px 5px;
    }
}

/* =========================
   BUTTON MEDIA
   ========================= */

/* =========================
   TABLET
   ========================= */
@media (max-width: 1000px) {

  .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;
  }

}


/* =========================
   SMARTPHONE
   ========================= */
@media (max-width: 700px) {

  .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;
  }

}


/* =========================
   KLEINE SMARTPHONES
   ========================= */
@media (max-width: 480px) {

  .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;
  }

}