
/* Gästehaus-Verfügbarkeitskalender */

.pw-gaestehaus-calendar {
    --cal-free-bg: #e1f1e4;
    --cal-free-text: #227343;
    --cal-busy-bg: #fce6e4;
    --cal-busy-text: #ae3831;

    max-width: 680px;
    margin: 0 auto;
    font-family: inherit;
}

.pw-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.pw-calendar-header h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
}

.pw-calendar-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pw-calendar-month {
    min-width: 135px;
    text-align: center;
    font-weight: 600;
    text-transform: capitalize;
}

.pw-calendar-navigation button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 36px;
    height: 36px;
    min-height: 36px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.pw-calendar-navigation button:hover:not(:disabled) {
    background: #f2f2f2;
}

.pw-calendar-navigation button:disabled {
    opacity: 0.25;
    cursor: default;
}

.pw-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.pw-cal-weekday {
    padding: 10px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #777;
}

.pw-cal-day,
.pw-cal-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    border-radius: 7px;
    font-size: 15px;
}

.pw-cal-free {
    background: var(--cal-free-bg);
    color: var(--cal-free-text);
}

.pw-cal-busy {
    background: var(--cal-busy-bg);
    color: var(--cal-busy-text);
}

.pw-cal-today {
    outline: 2px solid currentColor;
    outline-offset: -3px;
    font-weight: 700;
}

.pw-calendar-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 24px;
}

.pw-cal-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.pw-cal-swatch {
    display: inline-block;
    width: 15px;
    height: 15px;
    min-width: 15px;
    border-radius: 3px;
}

.pw-calendar-notice:not(:empty) {
    margin-bottom: 18px;
    padding: 12px 15px;
    border-radius: 6px;
    background: #fff3db;
    color: #765000;
    font-size: 14px;
    line-height: 1.5;
}

.pw-calendar-error .pw-calendar-notice {
    margin-bottom: 0;
}

/* Smartphone */
@media (max-width: 600px) {
    .pw-calendar-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .pw-calendar-header h3 {
        font-size: 20px;
        text-align: center;
    }

    .pw-calendar-navigation {
        justify-content: center;
    }

    .pw-calendar-grid {
        gap: 3px;
    }

    .pw-cal-day,
    .pw-cal-empty {
        min-height: 40px;
        font-size: 13px;
        border-radius: 4px;
    }

    .pw-cal-weekday {
        font-size: 11px;
    }

    .pw-calendar-legend {
        justify-content: flex-start;
        gap: 10px;
    }
}


/* ========================================
   Gästehaus-Kalender – 12-Monats-Ansicht
======================================== */

.pw-gaestehaus-calendar--year {
    max-width: 100%;
    width: 100%;
}

/* Legende und Monatsauswahl */

.pw-year-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.pw-year-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pw-year-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.pw-year-color {
    width: 14px;
    height: 14px;
    display: inline-block;
    border-radius: 1px;
}

.pw-year-select-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pw-year-select-wrap label {
    font-size: 12px;
    white-space: nowrap;
}

.pw-year-select-wrap select {
    width: auto;
    max-width: 190px;
    padding: 5px 25px 5px 8px;
    font-family: inherit;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    color: #333;
}

/* 12 Monate: Desktop mit 3 Spalten */

/* 12-Monats-Kalender: 2 Monate nebeneinander */
.pw-year-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 25px;
    row-gap: 35px;
}

.pw-year-month {
    min-width: 0;
    scroll-margin-top: 120px;
}

.pw-year-month h3 {
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
    margin: 0 0 6px;
    font-weight: 700;
}

.pw-year-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
}

.pw-year-weekday {
    text-align: center;
    font-size: 10px;
    color: #888;
    padding: 2px 0 5px;
    white-space: nowrap;
    overflow: hidden;
}

.pw-year-day,
.pw-year-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 20px;
    padding: 0;
    border-radius: 0;
    font-size: 11px;
    line-height: 1;
    font-weight: 500;
}

/* Frei – dezentes Pastellgrün */
.pw-gaestehaus-calendar--year .pw-cal-free {
    background: #e1f1e4;
    color: #227343;
}

/* Belegt – dezentes Pastellrosa */
.pw-gaestehaus-calendar--year .pw-cal-busy {
    background: #fce6e4;
    color: #ae3831;
}

/* Legende ebenfalls in Pastellfarben */
.pw-gaestehaus-calendar--year .pw-year-color.pw-cal-free {
    background: #e1f1e4;
    border: 1px solid #96cba6;
}

.pw-gaestehaus-calendar--year .pw-year-color.pw-cal-busy {
    background: #fce6e4;
    border: 1px solid #e7a6a2;
}

.pw-year-day.pw-year-today {
    outline: 2px solid #333;
    outline-offset: -2px;
    font-weight: 700;
}

.pw-year-message:not(:empty) {
    padding: 12px;
    margin-bottom: 18px;
    background: #fff3db;
    color: #765000;
    font-size: 13px;
    border-radius: 4px;
}

.pw-gaestehaus-calendar--year .pw-year-day,
.pw-gaestehaus-calendar--year .pw-year-empty {
    height: 28px;
    font-size: 12px;
}

/* Tablet: 2 Monate nebeneinander */
/*
@media (max-width: 900px) {
    .pw-year-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pw-year-day,
    .pw-year-empty {
        height: 25px;
        font-size: 12px;
  */  }
}

/* Smartphone: ein Monat pro Zeile */

@media (max-width: 600px) {
    .pw-year-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
    }

    .pw-year-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .pw-year-select-wrap {
        width: 100%;
        justify-content: space-between;
    }

    .pw-year-month h3 {
        font-size: 17px;
    }

    .pw-year-day,
    .pw-year-empty {
        height: 36px;
        font-size: 13px;
    }

    .pw-year-weekday {
        font-size: 12px;
    }
}
