/* Formular-Layout */
.tdb-booking-form-wrapper {
    max-width: 700px;
    margin: 2rem auto;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tdb-booking-form {
    margin: 0;
}

.tdb-booking-field {
    margin-bottom: 1rem;
}

.tdb-booking-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.tdb-booking-field input[type="text"],
.tdb-booking-field input[type="email"],
.tdb-booking-field input[type="date"],
.tdb-booking-field select,
.tdb-booking-field textarea {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.tdb-booking-field textarea {
    resize: vertical;
}

.tdb-booking-field-inline {
    display: flex;
    gap: 0.75rem;
}

.tdb-booking-field-half {
    flex: 1;
}

.tdb-slot-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.tdb-slot-options label {
    font-weight: 500;
}

.tdb-required {
    color: #dc2626;
}

.tdb-help-text {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.tdb-booking-submit-wrapper {
    text-align: right;
    margin-top: 1.25rem;
}

.tdb-booking-submit {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    background: #2563eb;
    color: #ffffff;
    transition: background 0.2s ease, transform 0.05s ease, box-shadow 0.1s ease;
}

.tdb-booking-submit:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}

.tdb-booking-submit:active {
    transform: translateY(1px);
}

.tdb-booking-notice {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.tdb-booking-notice-success {
    background: #ecfdf3;
    border: 1px solid #4ade80;
    color: #166534;
}

.tdb-booking-notice-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

/* Kalender-Wrapper */
.tdb-calendar-wrapper {
    max-width: 700px;
    margin: 2rem auto;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tdb-calendar-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.tdb-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.tdb-calendar-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.tdb-calendar-room {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.tdb-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.tdb-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tdb-legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid #9ca3af;
}

.tdb-legend-free {
    background: #dcfce7;
}

.tdb-legend-partial {
    background: #fef9c3;
}

.tdb-legend-booked {
    background: #fee2e2;
}

/* Kalender-Tabelle */
.tdb-calendar-table th,
.tdb-calendar-table td {
    text-align: center;
    vertical-align: middle;
    padding: 0.35rem;
    font-size: 0.85rem;
}

.tdb-calendar-day-empty {
    background: #f9fafb;
}

.tdb-calendar-day-inner {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: center;
}

.tdb-calendar-day-number {
    font-weight: 700;
}

.tdb-calendar-day-label {
    font-size: 0.75rem;
    text-transform: lowercase;
}

.tdb-calendar-day-free {
    background: #dcfce7;
}

.tdb-calendar-day-partial {
    background: #fef9c3;
}

.tdb-calendar-day-booked {
    background: #fee2e2;
}

/* Mobile tweaks */
@media (max-width: 480px) {
    .tdb-booking-form-wrapper,
    .tdb-calendar-wrapper {
        margin: 1rem;
        padding: 1.1rem;
    }

    .tdb-booking-field-inline {
        flex-direction: column;
    }

    .tdb-calendar-title {
        font-size: 1.05rem;
    }
}
