/* JUS Booking – Frontend Styles */

.jus-booking-wrap {
    max-width: 680px;
    font-family: inherit;
}

/* ── Kalender ──────────────────────────────────────────────────────────────── */
.jus-calendar {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    user-select: none;
}

.jus-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a5276;
    color: #fff;
    padding: 12px 16px;
}

.jus-cal-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 8px;
}

.jus-cal-title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.jus-cal-weekdays,
.jus-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.jus-cal-day-name {
    text-align: center;
    padding: 8px 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
    background: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.jus-cal-cell {
    position: relative;
    min-height: 52px;
    padding: 6px 4px 4px;
    border: 1px solid #f0f0f0;
    text-align: center;
    cursor: default;
    transition: background 0.15s;
}

.jus-day-num {
    display: block;
    font-size: 0.9rem;
}

.jus-day-label {
    display: block;
    font-size: 0.65rem;
    margin-top: 2px;
    line-height: 1.2;
}

/* Zustände */
.jus-free        { background: #eafaf1; }
.jus-selectable  { cursor: pointer; }
.jus-selectable:hover { background: #d5f5e3; }
.jus-selectable.jus-selected { background: #27ae60; color: #fff; }

.jus-blocked     { background: #fdebd0; color: #a04000; }
.jus-booked      { background: #fadbd8; color: #922b21; }
.jus-out-of-range { background: #f9f9f9; color: #ccc; }
.jus-empty       { background: #fff; }
.jus-today .jus-day-num { font-weight: 700; text-decoration: underline; }

/* Legende */
.jus-cal-legend {
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    background: #fafafa;
    border-top: 1px solid #eee;
    font-size: 0.78rem;
    flex-wrap: wrap;
}

.jus-cal-legend span::before {
    content: '●';
    margin-right: 4px;
}

.jus-leg-free::before    { color: #27ae60; }
.jus-leg-blocked::before { color: #e67e22; }
.jus-leg-booked::before  { color: #e74c3c; }
.jus-leg-weekend::before { color: #bbb; }

/* ── Formular ──────────────────────────────────────────────────────────────── */
.jus-form-wrap {
    margin-top: 24px;
}

.jus-selected-date {
    font-weight: 600;
    color: #1a5276;
    margin-bottom: 16px;
}

.jus-booking-form p {
    margin-bottom: 12px;
}

.jus-booking-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.jus-booking-form input[type="text"],
.jus-booking-form input[type="email"],
.jus-booking-form select,
.jus-booking-form textarea {
    width: 100%;
    max-width: 440px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    box-sizing: border-box;
}

.jus-booking-form textarea {
    resize: vertical;
    min-height: 80px;
}

.jus-submit-btn {
    background: #1a5276;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}

.jus-submit-btn:hover   { background: #154360; }
.jus-submit-btn:disabled { background: #aaa; cursor: not-allowed; }

.jus-form-error {
    color: #c0392b;
    background: #fadbd8;
    border: 1px solid #f1948a;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

/* ── Erfolgsmeldung ────────────────────────────────────────────────────────── */
.jus-success-wrap p {
    background: #eafaf1;
    border: 1px solid #a9dfbf;
    border-radius: 4px;
    padding: 16px;
    color: #196f3d;
    font-size: 1rem;
}
