/* co:bb booking – Frontend styles. Uses theme custom properties where available. */

.cobb-booking {
    max-width: 640px;
    margin: 0 auto;
}

.cobb-booking h3 {
    margin-top: 0;
}

.cobb-booking label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.cobb-booking input[type="text"],
.cobb-booking input[type="email"],
.cobb-booking input[type="password"],
.cobb-booking input[type="number"],
.cobb-booking input[type="date"],
.cobb-booking input[type="time"],
.cobb-booking textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--base, #ccc);
    border-radius: 4px;
    box-sizing: border-box;
}

.cobb-booking .cobb-row {
    display: flex;
    gap: 16px;
}

.cobb-booking .cobb-row > p {
    flex: 1;
}

.cobb-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent, #060606);
    color: var(--white, #fff);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.cobb-button:hover {
    opacity: 0.9;
}

.cobb-notice {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.cobb-notice.cobb-success {
    background: #e6f4ea;
    border: 1px solid #34a853;
}

.cobb-notice.cobb-error {
    background: #fce8e6;
    border: 1px solid #d93025;
}

.cobb-notice ul {
    margin: 0;
    padding-left: 20px;
}

.cobb-upcoming {
    margin-top: 32px;
}

.cobb-upcoming table {
    width: 100%;
    border-collapse: collapse;
}

.cobb-upcoming th,
.cobb-upcoming td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid var(--base-light, #eee);
}

/* --- Wochen-Kalender (Time-Grid) --- */

.cobb-calendar {
    margin: 8px 0 28px;
}

.cobb-cal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.cobb-cal-title {
    font-weight: 600;
}

.cobb-cal-nav {
    cursor: pointer;
    border: 1px solid var(--base, #ccc);
    background: var(--white, #fff);
    border-radius: 4px;
    padding: 4px 14px;
    font-size: 1.2em;
    line-height: 1;
}

.cobb-cal-nav:hover {
    background: var(--base-light, #f2f2f2);
}

.cobb-cal-grid {
    display: grid;
    grid-template-columns: 56px repeat(7, 1fr);
    border: 1px solid var(--base-light, #e2e2e2);
    border-radius: 6px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.cobb-cal-corner {
    border-bottom: 1px solid var(--base-light, #e2e2e2);
}

.cobb-cal-dayhead {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 4px;
    line-height: 1.2;
    border-left: 1px solid var(--base-light, #e2e2e2);
    border-bottom: 1px solid var(--base-light, #e2e2e2);
}

.cobb-cal-dow {
    font-weight: 600;
}

.cobb-cal-date {
    font-size: 0.8em;
    color: var(--black-light, #666);
}

.cobb-cal-today {
    background: var(--base-light, #eef3ff);
}

.cobb-cal-gutter {
    position: relative;
}

.cobb-cal-hour {
    position: absolute;
    right: 6px;
    transform: translateY(-50%);
    font-size: 0.72em;
    color: var(--black-light, #888);
}

.cobb-cal-day {
    position: relative;
    border-left: 1px solid var(--base-light, #e2e2e2);
    box-sizing: border-box;
    cursor: crosshair;
}

.cobb-cal-slot {
    box-sizing: border-box;
    border-bottom: 1px dotted #efefef;
}

.cobb-cal-slot.cobb-cal-hourline {
    border-bottom: 1px solid var(--base-light, #e2e2e2);
}

.cobb-cal-event {
    position: absolute;
    left: 2px;
    right: 2px;
    z-index: 1;
    box-sizing: border-box;
    padding: 1px 4px;
    border-radius: 3px;
    background: #d93025;
    color: #fff;
    font-size: 0.7em;
    line-height: 1.3;
    overflow: hidden;
}

.cobb-cal-selection {
    position: absolute;
    left: 2px;
    right: 2px;
    z-index: 2;
    box-sizing: border-box;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(6, 6, 6, 0.18);
    border: 1px solid var(--accent, #060606);
    color: var(--black, #060606);
    font-size: 0.7em;
    line-height: 1.3;
    pointer-events: none;
}

.cobb-cal-hint {
    margin-top: 8px;
    font-size: 0.85em;
    color: var(--black-light, #666);
}

@media (max-width: 640px) {
    .cobb-cal-grid {
        font-size: 0.8em;
    }
    .cobb-cal-grid {
        grid-template-columns: 42px repeat(7, 1fr);
    }
}

.cobb-lock-form {
    margin-top: 24px;
    text-align: right;
}

.cobb-link {
    background: none;
    border: none;
    color: var(--base, #666);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85em;
    padding: 0;
}
