html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    height: auto;
}

.super-container {
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
}


/* OCC-PLAN-CH CSS */
@font-face {
    font-family: 'Montserrat-Bold';
    src: url('font/Montserrat-Bold.woff2') format('woff2'),
         url('font/Montserrat-Bold.woff') format('woff'),
         url('font/Montserrat-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto-Regular';
    src: url('font/Roboto-Regular.woff2') format('woff2'),
        url('font/Roboto-Regular.woff') format('woff'),
        url('font/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

#occ-plan-ch {
    /* font, color and background */
    font-family: 'Roboto-Regular', 'Arial', sans-serif;
    color: #2c2c2c;
    background-color: #ededed;
    /* small reset */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* layer processing-spinner and info-box */
    position: relative;
    z-index: 0;
    overflow-x: hidden;
}

.occ-plan-ch-main-wrapper {
    width: 100%;
    height: auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 1% !important;
}

/* OCC-PLAN-CH HEADER */
header.occ-plan-ch-header {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 0px 0px 10px 0px;
}

header.occ-plan-ch-header h1 {
    font-family: 'Montserrat-Bold', 'Arial', sans-serif;
    font-size: 6.8vw;
    padding: 1% 2% 1% 2%;
    margin: 0% 0% 1% 0%;
    background: white;
    display: inline-block;
    width: fit-content;
}

header.occ-plan-ch-header h2 {
    font-family: 'Montserrat-Bold', 'Arial', sans-serif;
    font-size: 4.9vw;
    font-weight: normal;
    padding: 1% 2% 1% 2%;
    margin: 0% 0% 1% 0%;
    background: white;
    display: inline-block;
    width: fit-content;
}

header.occ-plan-ch-header h3 {
    font-family: 'Roboto-Regular', 'Arial', sans-serif;
    font-size: 3.2vw;
    padding: 1% 2% 1% 2%;
    margin: 0% 0% 1% 0%;
    background: transparent;
    display: inline-block;
    width: fit-content;
}

@media screen and (min-width: 530px) {
    header.occ-plan-ch-header h1 {
        font-size: 37px;
    }
    
    header.occ-plan-ch-header h2 {
        font-size: 26px;
    }
    
    header.occ-plan-ch-header h3 {
        font-size: 17px;
    }
}

/* OCC-PLAN-CH NAVIGATION */
nav.occ-plan-ch-navigation {
    width: 100%;
    height: auto;
    padding: 1% 0% 3% 0%;
    margin: 0;
}

form.occ-plan-ch-controls {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

span.room-select {
    width: 100%;
    padding-bottom: 1%;
}

.occ-plan-ch-date-selection-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

span.date-select {
    display: flex;
    flex-direction: row;
    width: 80%;
    height: auto;
}

span.date-select span.month-select {
    padding-right: 1%;
}

span.date-select span {
    display: flex;
    height: 100%;
}

.occ-plan-ch-controls #monthSelect, .occ-plan-ch-controls #yearSelect, .occ-plan-ch-controls #roomSelect {
    width: auto;
    height: 100%;
    border: none;
    border-radius: 0px;
    background: whitesmoke;
    color: inherit;
    padding: 0px 14px 0px 14px;
    cursor: pointer;
    display: flex;
    border-bottom: 2px solid #2c2c2c;
    font-size: 4.1vw;
    font-weight: bold;
}

.occ-plan-ch-controls #roomSelect {
    padding: 8px 14px 8px 14px;
    width: auto;
}

@media screen and (min-width: 530px) {
    .occ-plan-ch-controls #monthSelect, .occ-plan-ch-controls #yearSelect, .occ-plan-ch-controls #roomSelect {
        font-size: 23px;
    }   
}

.occ-plan-ch-controls select option {
    font-weight: normal;
}

.occ-plan-ch-navigation-buttons {
    display: flex;
    width: 19%;
}
@media screen and (min-width: 530px) {
.occ-plan-ch-navigation-buttons {
    width: 15%;
}    
}
@media screen and (min-width: 960px) {
.occ-plan-ch-navigation-buttons {
    width: 12%;
}    
}

.occ-plan-ch-navigation-buttons #occ-plan-ch-prev {
    margin-right: 4%;
}

.occ-plan-ch-navigation-buttons span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10vw;
    padding: 5%;
    box-sizing: border-box;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #2c2c2c;
    user-select: none;
    color: inherit;
    background: whitesmoke;
}

.occ-plan-ch-navigation-buttons span:hover {
    color: inherit;
    background: whitesmoke;
}
@media screen and (min-width: 960px) {
    .occ-plan-ch-navigation-buttons span:hover {
        color: #7a7a7a;
        background: whitesmoke;
    }   
}

@media screen and (min-width: 530px) {
    .occ-plan-ch-navigation-buttons span {
        width: 48%;
    }
}


/* OCC-PLAN-CH CALENDAR(S) */
main.occ-plan-ch-calendar-wrapper {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.occ-plan-ch-calendar-container {
    width: 29%;
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 1%;
    margin: 1%;
    box-sizing: border-box;
    background-color: #ffffff;
}

.occ-plan-ch-calendar-header {
    width: 100%;
    height: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12%;
}

.occ-plan-ch-calendar-header-date {
    width: fit-content;
    display: flex;
    margin: 0;
    padding: 0;
    font-size: 22px;
    font-weight: bold;
}

.occ-plan-ch-calendar-header-controls {
    display: flex;
    flex-direction: row;
}

.occ-plan-ch-calendar-header-controls a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    color: #2c2c2c;
}

.occ-plan-ch-calendar-header-controls a:first-child {
    margin-right: 5px;
}

.occ-plan-ch-calendar-header-controls a.active {
    transform: scale(1.15);
}

.occ-plan-ch-calendar-content ul {
    width: 100%;
    list-style: none;
    flex-wrap: wrap;
    display: flex;
    text-align: center;
    margin: 0;
    padding: 0;
}

.occ-plan-ch-calendar-content li {
    width: calc(100% / 7);
    font-size: 1em;
    color: inherit;
}

ul.occ-plan-ch-calendar-weekdays {
    border-bottom: 2px solid #2c2c2c;
    margin-bottom: 1%;
}

.occ-plan-ch-calendar-weekdays li {
    cursor: default;
    font-weight: bold;
}

ul.occ-plan-ch-calendar-days {
    aspect-ratio: 7 / 6;
}

ul.occ-plan-ch-calendar-list {
    display: none;
    flex-direction: column;
    aspect-ratio: 7 / 6;
    overflow-y: auto;
}

ul.occ-plan-ch-calendar-list li {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 4px 6px;
    box-sizing: border-box;
    font-size: 0.9em;
    border-bottom: 2px solid rgba(44, 44, 44);
}

ul.occ-plan-ch-calendar-list li .occ-plan-ch-list-day {
    font-weight: bold;
    min-width: 28px;
    margin-right: 8px;
}

ul.occ-plan-ch-calendar-list li .occ-plan-ch-list-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    flex-shrink: 0;
}

ul.occ-plan-ch-calendar-list li .occ-plan-ch-list-time {
    font-size: 0.85em;
    opacity: 0.8;
}

ul.occ-plan-ch-calendar-list li .occ-plan-ch-list-title {
    font-size: 0.85em;
    margin-left: 8px;
    font-style: italic;
}

.occ-plan-ch-calendar-days li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% / 7);
    transition: transform 0.1s ease, opacity 0.1s ease;
}

.occ-plan-ch-calendar-days li::before {
    content: "";
    width: 0px;
    margin-left: -1px;
    float: left;
    height: 0px;
    padding-top: 100%;
}

.occ-plan-ch-calendar-days li::after {
    content: "";
    display: table;
    clear: both;
}

.occ-plan-ch-calendar-days li span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 84%;
    height: 84%;
    color: white;
}

.occ-plan-ch-calendar-days li span.inactive {
    color: #2c2c2c;
}

.occ-plan-ch-calendar-days li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 84%;
    height: 84%;
    text-decoration: none;
    color: white;
}

.occ-plan-ch-processing-spinner {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0);
    color: #76b72a;
    justify-content: center;
    align-items: center;
}


#calendar-infobox {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 2;
    bottom: 0;
    background-color: #fff;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    left: 0;
    top: 0;
    right: 0;
    padding: 2%;
    box-sizing: border-box;
}

#calendar-infobox-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    height: 90dvh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.96);
}

.calendar-infobox-header {
    width: 96%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 2%;
    box-sizing: border-box;
    font-weight: bold;
}

.calendar-infobox-header span {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 77%;
}

#calendar-infobox-room {
    width: fit-content;
    font-size: 4.8vw;
    padding: 5px 10px;
    background: #ecf1d7;
    margin-bottom: 4px;
    display: none;
}

#calendar-infobox-date {
    width: fit-content;
    font-size: 3.6vw;
    padding: 5px 10px;
    background: #ecf1d7;
}

@media screen and (min-width: 530px) {
    #calendar-infobox-room {
        font-size: 25px;
    }
    
    #calendar-infobox-date {
        font-size: 19px;
    }   
}

#calendar-infobox-close {
    width: 44px;
    height: 44px;
    background: #ededed;
    border: 1px solid #cfcfcf;
    display: block;
    box-sizing: border-box;
    cursor: pointer;
    padding: 0;
}

#calendar-infobox-content {
    width: 96%;
    height: auto;
    margin: 2%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: scroll;
    overflow-x: hidden;
}

#calendar-infobox-content ul {
    width: 98%;
    height: auto;
    display: flex;
    flex-direction: column;
    margin: 3% 3% 5% 3%;
    padding: 3%;
    box-sizing: border-box;
    border-top: 1px solid #ededed;
}

#calendar-infobox-content ul:last-child {
    border-bottom: 1px solid #ededed;
    padding: 3% 3% 11% 3%;
}

#calendar-infobox-content ul li {
    list-style: none;
    width: 100%;
    display: flex;
    justify-content: left;
    text-align: left;
    box-sizing: border-box;
    padding: 0.5% 0%;
}

#calendar-infobox-content ul li.info {
    background: #ecf1d7;
    padding: 1px 5px;
    width: fit-content;
    margin-bottom: 3px;
}





#leaf-de-buchs {
    width: 460%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: -180%;
    z-index: -1;
}
@media screen and (min-width: 440px) {
    #leaf-de-buchs {
        width: 220%;
        left: -60%;
    }
}
@media screen and (min-width: 700px) {
    #leaf-de-buchs {
        width: 160%;
        left: -30%;
    } 
}

footer.occ-plan-ch-footer p {
    background: black;
    color: white;
    padding: 5px 10px;
    /* display: inline-block; */
    text-align: center;
}

/* Association Bookings Panel */
#assoc-bookings-panel {
    width: 100%;
    background: white;
    margin: 15px 0;
    box-sizing: border-box;
}

.assoc-bookings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    user-select: none;
}

.assoc-bookings-header h3 {
    margin: 0;
    font-size: 1.1em;
    font-family: 'Montserrat-Bold', 'Arial', sans-serif;
}

.assoc-bookings-toggle-btn {
    width: 32px;
    height: 32px;
    background: #ededed;
    border: 1px solid #cfcfcf;
    cursor: pointer;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

.assoc-bookings-toggle-btn.open {
    transform: rotate(180deg);
}

#assoc-bookings-status {
    color: #d32f2f;
    font-size: 0.85em;
    padding: 0 15px;
    min-height: 0;
}

#assoc-bookings-pw-section {
    padding: 0 15px 15px 15px;
}

#assoc-bookings-list {
    list-style: none;
    margin: 0;
    padding: 0 15px 15px 15px;
}

#assoc-bookings-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #ededed;
    font-size: 0.9em;
}

#assoc-bookings-list li:last-child {
    border-bottom: none;
}

#assoc-bookings-list li.assoc-bookings-empty {
    color: #888;
    font-style: italic;
}

.assoc-booking-date {
    font-weight: bold;
    min-width: 140px;
}

.assoc-booking-time {
    min-width: 100px;
    opacity: 0.8;
}

.assoc-booking-room {
    background: #ecf1d7;
    padding: 2px 8px;
    font-size: 0.9em;
}

.assoc-booking-title {
    font-style: italic;
    flex: 1;
}

.assoc-booking-delete-btn {
    padding: 3px 10px;
    background-color: #d32f2f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    font-family: inherit;
}

.assoc-booking-delete-btn:hover {
    background-color: #b71c1c;
}

/* Association Booking Form */
.assoc-booking-section {
    width: 94%;
    margin: 0 3%;
    padding: 0 0 15px 0;
}
.assoc-booking-section h4 {
    font-size: 1em;
    color: #3d5a6c;
}
.assoc-pw-section,
.assoc-booking-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.assoc-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.assoc-field label,
.assoc-pw-section label {
    font-size: 0.85em;
    color: #555;
}
.assoc-input {
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.assoc-input:focus {
    outline: none;
    border-color: #3d5a6c;
}
.assoc-btn {
    margin-top: 5px;
    padding: 8px 16px;
    background-color: #3d5a6c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95em;
    font-family: inherit;
    align-self: flex-start;
}
.assoc-btn:hover {
    background-color: #2c4555;
}
.assoc-error {
    color: #d32f2f;
    font-size: 0.85em;
    min-height: 1.2em;
}
.assoc-delete-btn {
    margin-top: 4px;
    padding: 4px 12px;
    background-color: #d32f2f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    font-family: inherit;
}
.assoc-delete-btn:hover {
    background-color: #b71c1c;
}