html,
body{
    margin:0;
    padding:0;

    font-family:Arial,sans-serif;
    background:#f5f1eb;
    color:#2b2b2b;

    overflow-x:hidden;
}

/* =========================================================
   LABELS
========================================================= */

.booking-label{
    display:block;

    font-size:18px;
    font-weight:bold;

    margin-bottom:16px;
}

/* =========================================================
   KALENDER
========================================================= */

.booking-calendar{
    width:100%;
}

/* =========================================================
   WOCHENTAGE
========================================================= */

.booking-weekdays{
    display:grid;

    grid-template-columns:repeat(7,minmax(0,1fr));

    gap:10px;

    margin-bottom:12px;
}

.booking-weekdays div{
    text-align:center;

    font-size:15px;
    font-weight:700;

    color:#666;

    padding:6px 0;

    text-transform:uppercase;

    letter-spacing:.5px;
}

/* =========================================================
   GRID
========================================================= */

.booking-calendar-grid{
    display:grid;

    grid-template-columns:repeat(7,minmax(0,1fr));

    gap:10px;

    align-items:start;
}

/* =========================================================
   LEERFELDER
========================================================= */

.booking-empty{
    min-height:88px;

    visibility:hidden;
}

/* =========================================================
   DATUMSKARTEN
========================================================= */

.booking-date-card{
    position:relative;

    min-height:88px;

    border-radius:18px;

    background:#ffffff;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    cursor:pointer;

    transition:all .18s ease;

    box-shadow:
        0 4px 14px rgba(0,0,0,.06);

    border:2px solid transparent;

    user-select:none;

    box-sizing:border-box;

    overflow:hidden;

    text-align:center;

    padding:8px 4px;
}

.booking-date-card:hover{
    transform:translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0,0,0,.10);
}

.booking-date-card.active{
    background:var(--gp-theme-primary, #075b3d);
    color:#fff;

    box-shadow:
        0 10px 24px rgba(0,0,0,.16);
}


/* =========================================================
   OPTIONALE TAGESMARKER FUER VERWALTUNGSANSICHTEN
   =========================================================
   Aktivierung erfolgt bewusst per show_day_markers=1.
   Bedeutung:
   - dezenter Hintergrund = Kalendereintrag aus calendar.csv
   - gruener Punkt oben rechts = Reservierungen aus reservierungen.csv
   Rein optisch, keine Buchungslogik.
========================================================= */

.booking-date-card.marker-has-bookings::after{
    content:"";

    position:absolute;
    top:7px;
    right:7px;

    width:8px;
    height:8px;

    border-radius:999px;

    background:#2e7d32;

    box-shadow:
        0 0 0 2px rgba(255,255,255,.95),
        0 2px 6px rgba(46,125,50,.28);
}

.booking-date-card.active.marker-has-bookings::after{
    background:#ffffff;

    box-shadow:
        0 0 0 2px rgba(255,255,255,.35),
        0 2px 6px rgba(0,0,0,.20);
}

.booking-date-card.marker-calendar-open:not(.active){
    background:#eef8f0;
    border-color:#bfe2c4;
}

.booking-date-card.marker-calendar-closed:not(.active){
    background:#fff1f1;
    border-color:#efc1c1;
}

.booking-date-card.marker-calendar-event:not(.active){
    background:#f5efff;
    border-color:#d8c5f0;
}

.booking-date-card.marker-calendar-holiday:not(.active),
.booking-date-card.marker-calendar-special:not(.active){
    background:#fff8e6;
    border-color:#efd99b;
}

.booking-date-card.marker-calendar-custom:not(.active){
    background:#eef5ff;
    border-color:#c5d8f0;
}

.booking-date-card.marker-has-calendar.marker-has-bookings:not(.active){
    border-width:2px;
}


/* =========================================================
   17D1 – GEBUCHTE SPEZIALITAETEN
   =========================================================
   Kleiner visueller Marker fuer tatsaechlich bestaetigte/angenommene
   Vorbestellungen. Rein optisch; keine Buchungslogik.
========================================================= */

.booking-specialty-booked-marker{
    position:absolute;
    top:5px;
    left:5px;
    z-index:3;

    display:inline-flex;
    align-items:center;
    gap:2px;

    min-height:24px;
    padding:1px 5px 1px 2px;

    border:1px solid #d7b45a;
    border-radius:999px;

    background:#fff7e8;

    box-shadow:
        0 2px 6px rgba(0,0,0,.12);

    pointer-events:none;
    line-height:1;
}

.booking-specialty-booked-marker.is-clickable{
    pointer-events:auto;
    cursor:pointer;
}

.booking-specialty-booked-marker.is-clickable:focus{
    outline:2px solid var(--gp-theme-primary, #075b3d);
    outline-offset:2px;
}

.booking-specialty-booked-icon{
    width:20px !important;
    height:20px !important;
    max-width:20px !important;
    max-height:20px !important;
    margin:0 !important;
    object-fit:contain;
}

.booking-specialty-booked-count{
    min-width:10px;
    color:var(--gp-theme-primary, #075b3d);
    font-size:10px;
    font-weight:700;
    line-height:1;
    text-align:center;
}

.booking-date-card.active .booking-specialty-booked-marker{
    background:#fffdf8;
    border-color:#f0d991;
}

/* =========================================================
   TAGES STATUS
========================================================= */

.booking-date-card.free{
    border-color:#dfeee2;
}

.booking-date-card.medium{
    background:#fff8e1;

    border-color:#ffe0b2;
}

.booking-date-card.high{
    background:#fff3e0;

    border-color:#ffccbc;
}

.booking-date-card.full{
    background:#fdecea;

    border-color:#ef9a9a;
}

.booking-date-card.full .weekday,
.booking-date-card.full .day,
.booking-date-card.full .month{
    color:#b71c1c;
}

.booking-date-card.disabled{
    opacity:.35;

    pointer-events:none;

    filter:grayscale(.3);
}

.booking-date-card.today{
    border-color:var(--gp-theme-primary, #075b3d);
}

.booking-date-card input{
    display:none;
}

.booking-date-card .weekday{
    font-size:11px;

    font-weight:bold;

    margin-bottom:4px;

    opacity:.85;

    text-transform:uppercase;

    letter-spacing:.4px;
}

.booking-date-card .day{
    font-size:28px;

    font-weight:bold;

    line-height:1;

    margin-bottom:4px;
}

.booking-date-card .month{
    font-size:12px;

    opacity:.9;
}

/* =========================================================
   ZEIT GRID
========================================================= */

.booking-time-picker{
    width:100%;
}

.booking-time-grid{
    display:grid;

    grid-template-columns:
        repeat(auto-fill,minmax(120px,1fr));

    gap:12px;

    width:100%;
}

.booking-time-empty{
    background:#f7f7f7;

    border:1px solid #ddd;

    border-radius:16px;

    padding:18px;

    font-size:16px;

    color:#777;

    text-align:center;
}

/* =========================================================
   ZEIT KARTEN
========================================================= */

.booking-time-card{
    position:relative;

    min-height:92px;

    border-radius:18px;

    background:#ffffff;

    border:2px solid transparent;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    cursor:pointer;

    transition:all .18s ease;

    box-sizing:border-box;

    padding:12px 8px;

    user-select:none;

    box-shadow:
        0 4px 14px rgba(0,0,0,.06);
}

.booking-time-card:hover{
    transform:translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0,0,0,.10);
}

.booking-time-card input{
    display:none;
}

.booking-time-card.active{
    background:var(--gp-theme-primary, #075b3d);

    color:#fff;

    box-shadow:
        0 10px 24px rgba(0,0,0,.16);
}


/* =========================================================
   OPTIONALE SLOTMARKER IM DETAIL-TIMEPICKER
   =========================================================
   Grüner Punkt oben rechts = mindestens eine Reservierung
   auf genau diesem Slot. Die Klasse wird ausschließlich im
   Detailmodus gesetzt und verändert keine Slotlogik.
========================================================= */

.booking-time-card.marker-has-bookings::after{
    content:"";

    position:absolute;
    top:7px;
    right:7px;

    width:8px;
    height:8px;

    border-radius:999px;

    background:#2e7d32;

    box-shadow:
        0 0 0 2px rgba(255,255,255,.95),
        0 2px 6px rgba(46,125,50,.28);
}

.booking-time-card.active.marker-has-bookings::after{
    background:#ffffff;

    box-shadow:
        0 0 0 2px rgba(255,255,255,.35),
        0 2px 6px rgba(0,0,0,.20);
}

/* =========================================================
   SLOT STATUS
========================================================= */

.booking-time-card.free{
    border-color:#dfeee2;
}

.booking-time-card.medium{
    border-color:#ffe0b2;
}

.booking-time-card.high{
    border-color:#ffcdd2;
}

.booking-time-card.full{
    opacity:.45;

    filter:grayscale(.25);

    pointer-events:none;

    background:#f0f0f0;
}

/* =========================================================
   SLOT TEXTE
========================================================= */

.booking-time-card .time{
    font-size:24px;

    font-weight:bold;

    line-height:1;

    margin-bottom:8px;
}

.booking-time-card .load{
    font-size:13px;

    opacity:.85;

    margin-bottom:4px;
}

.booking-time-card .status{
    font-size:11px;

    font-weight:bold;

    text-transform:uppercase;

    letter-spacing:.4px;
}

/* =========================================================
   STATUS FARBEN
========================================================= */

.booking-time-card.free .status{
    color:#2e7d32;
}

.booking-time-card.medium .status{
    color:#ef6c00;
}

.booking-time-card.high .status{
    color:#c62828;
}

.booking-time-card.full .status{
    color:#666;
}

.booking-time-card.active .status,
.booking-time-card.active .load{
    color:#fff;
}

/* =========================================================
   PERSON PICKER
========================================================= */

.booking-person-picker{
    width:100%;
}

.booking-person-grid{
    display:grid;

    grid-template-columns:
        repeat(auto-fill,minmax(110px,1fr));

    gap:12px;

    width:100%;
}

.booking-person-card{
    position:relative;

    min-height:92px;

    border-radius:18px;

    background:#ffffff;

    border:2px solid transparent;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    cursor:pointer;

    transition:all .18s ease;

    box-sizing:border-box;

    padding:12px 8px;

    user-select:none;

    box-shadow:
        0 4px 14px rgba(0,0,0,.06);
}

.booking-person-card:hover{
    transform:translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0,0,0,.10);
}

.booking-person-card input{
    display:none;
}

.booking-person-card.active{
    background:var(--gp-theme-primary, #075b3d);

    color:#fff;

    box-shadow:
        0 10px 24px rgba(0,0,0,.16);
}

.booking-person-card .number{
    font-size:28px;

    font-weight:bold;

    line-height:1;

    margin-bottom:8px;
}

.booking-person-card .label{
    font-size:11px;

    font-weight:bold;

    text-transform:uppercase;

    letter-spacing:.4px;

    opacity:.85;
}

.booking-person-card.active .label{
    color:#fff;
}

/* =========================================================
   PERSON STATUS
========================================================= */

.booking-person-card.free{
    border-color:#dfeee2;
}

.booking-person-card.medium{
    border-color:#ffe0b2;
}

.booking-person-card.high{
    border-color:#ffcdd2;
}

.booking-person-card.full{
    opacity:.45;

    filter:grayscale(.25);

    pointer-events:none;

    background:#f0f0f0;

    border-color:#ef9a9a;
}

/* =========================================================
   MONATSNAVIGATION
========================================================= */

.booking-month-bar{
    display:flex;

    justify-content:center;
    align-items:center;

    flex-wrap:wrap;

    gap:8px;

    margin-bottom:18px;
}

/* =========================================================
   MONTH / YEAR BUTTONS
========================================================= */

.booking-month-button,
.booking-month-nav,
.booking-year-button{
    display:inline-flex !important;

    align-items:center !important;
    justify-content:center !important;

    min-width:54px !important;
    height:42px !important;

    padding:0 14px !important;

    border-radius:14px !important;

    border:1px solid #dfeee2 !important;

    background:#ffffff !important;

    color:#555 !important;

    text-decoration:none !important;

    font-size:15px !important;
    font-weight:700 !important;

    line-height:1 !important;

    box-sizing:border-box !important;

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease,
        box-shadow .18s ease !important;

    box-shadow:
        0 4px 14px rgba(0,0,0,.06) !important;

    appearance:none !important;

    -webkit-appearance:none !important;
}

.booking-month-button:hover,
.booking-month-nav:hover,
.booking-year-button:hover{
    transform:translateY(-2px);

    background:#fafdfb !important;

    border-color:#cfe3d6 !important;

    box-shadow:
        0 8px 20px rgba(0,0,0,.10) !important;
}

.booking-month-button.active,
.booking-month-nav.active,
.booking-year-button.active{
    background:var(--gp-theme-primary, #075b3d) !important;

    border-color:var(--gp-theme-primary, #075b3d) !important;

    color:#ffffff !important;

    box-shadow:
        0 10px 24px rgba(0,0,0,.16) !important;
}

/* =========================================================
   JAHRESNAVIGATION
========================================================= */

.booking-year-bar{
    display:flex;

    justify-content:center;
    align-items:center;

    flex-wrap:wrap;

    gap:8px;

    margin-bottom:14px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width:900px){

    .booking-calendar-grid{
        gap:6px;
    }

    .booking-weekdays{
        gap:6px;
    }

    .booking-empty{
        min-height:72px;
    }

    .booking-date-card{
        min-height:72px;

        border-radius:14px;

        padding:6px 2px;
    }

    .booking-date-card .weekday{
        font-size:10px;
    }

    .booking-date-card .day{
        font-size:22px;
    }

    .booking-date-card .month{
        font-size:10px;
    }

    .booking-time-grid{
        grid-template-columns:
            repeat(auto-fill,minmax(100px,1fr));

        gap:8px;
    }

    .booking-time-card{
        min-height:84px;

        border-radius:14px;

        padding:10px 6px;
    }

    .booking-time-card .time{
        font-size:20px;
    }

    .booking-time-card .load{
        font-size:11px;
    }

    .booking-time-card .status{
        font-size:10px;
    }

    .booking-label{
        font-size:16px;
    }

    .booking-person-grid{
        grid-template-columns:
            repeat(auto-fill,minmax(90px,1fr));

        gap:8px;
    }

    .booking-person-card{
        min-height:84px;

        border-radius:14px;

        padding:10px 6px;
    }

    .booking-person-card .number{
        font-size:22px;
    }

    .booking-person-card .label{
        font-size:10px;
    }
}

/* =========================================================
   EXTRA SMALL DEVICES
========================================================= */

@media (max-width:520px){

    .booking-calendar-grid{
        gap:4px;
    }

    .booking-weekdays{
        gap:4px;
    }

    .booking-weekdays div{
        font-size:11px;
    }

    .booking-date-card{
        min-height:64px;

        border-radius:12px;
    }

    .booking-date-card .weekday{
        font-size:9px;
    }

    .booking-date-card .day{
        font-size:18px;
    }

    .booking-date-card .month{
        font-size:9px;
    }

    .booking-time-grid{
        grid-template-columns:
            repeat(3,minmax(0,1fr));

        gap:6px;
    }

    .booking-time-card{
        min-height:76px;

        border-radius:12px;

        padding:8px 4px;
    }

    .booking-time-card .time{
        font-size:18px;
    }

    .booking-time-card .load{
        font-size:10px;
    }

    .booking-time-card .status{
        font-size:9px;
    }

    .booking-person-grid{
        grid-template-columns:
            repeat(3,minmax(0,1fr));

        gap:6px;
    }

    .booking-person-card{
        min-height:76px;

        border-radius:12px;

        padding:8px 4px;
    }

    .booking-person-card .number{
        font-size:18px;
    }

    .booking-person-card .label{
        font-size:9px;
    }
}

@media (max-width:520px){
    .booking-specialty-booked-marker{
        top:3px;
        left:3px;
        min-height:20px;
        padding:1px 4px 1px 2px;
    }

    .booking-specialty-booked-icon{
        width:17px !important;
        height:17px !important;
        max-width:17px !important;
        max-height:17px !important;
    }

    .booking-specialty-booked-count{
        font-size:9px;
    }
}



/* =========================================================
   17E3A Spezialitäten Button im Detail-Timepicker
========================================================= */
.booking-time-card .booking-time-specialty-button{
    position:absolute;
    left:8px;
    bottom:8px;
    width:28px;
    height:28px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:#f6dfa1;
    border:1px solid #e6c66a;
    cursor:pointer;
    pointer-events:auto;
    z-index:3;
    font-size:20px;
    line-height:1;
}

.booking-time-card .booking-time-specialty-button:hover{
    transform:scale(1.08);
}

/* 17E3A2: zentrales Spezialitäten-Icon im Slot-Button kompakt halten. */
.booking-time-card .booking-time-specialty-icon{
    width:22px !important;
    height:22px !important;
    max-width:22px !important;
    max-height:22px !important;
    margin:0 !important;
    object-fit:contain;
}
