body {
    margin: 0;
    background: #f3f5f8;
    color: #17304f;
    font-family: Arial, Helvetica, sans-serif;
}
.container { max-width: 1100px; margin: 32px auto; padding: 0 20px 32px; }
h1 { margin: 0 0 16px; font-size: 2.2rem; }
h2 { margin: 0 0 16px; font-size: 1.5rem; }
.lead { color: #5a6b82; font-size: 1.1rem; margin: 0; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 20px;
}

.page-header__text {
    flex: 1;
}

.page-header__logo {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.page-header__logo img {
    max-width: 220px;   /* kleiner */
    height: auto;
}

@media (max-width: 800px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header__logo {
        justify-content: flex-start;
    }

    .page-header__logo img {
        max-width: 180px;
    }
}

.card {
    background: #fff; border: 1px solid #d8dee8; border-radius: 18px;
    padding: 24px; margin-top: 22px; box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.card.small { max-width: 420px; }
.message { border-radius: 12px; padding: 14px 16px; margin: 16px 0; font-weight: bold; }
.message.success { background: #e8f7e8; color: #206320; }
.message.error { background: #fdeaea; color: #8b1f1f; }
.message.notice { background: #fff4da; color: #7a5710; }

.calendar-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.month-nav { color: #2663eb; text-decoration: none; font-weight: bold; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-bottom: 10px; }
.weekday { text-align: center; font-weight: bold; color: #63738b; padding: 8px 0; }
.day {
    min-height: 72px; border-radius: 14px; border: 1px solid #d8dee8; background: #eef4ff;
    display: flex; align-items: center; justify-content: center;
}
.day a, .day span {
    display: flex; width: 100%; height: 100%; min-height: 72px; align-items: center; justify-content: center;
    text-decoration: none; font-weight: bold; font-size: 1.1rem;
}
.day a { color: #17304f; }
.day:hover:not(.blocked):not(.empty) { border-color: #7aa4ff; }
.day.blocked, .day.past { background: #eceff4; color: #8d97a8; }
.day.manual { background: #fff1d9; border-color: #f0c36d; }
.day.monthblocked { background: #f5e5ff; border-color: #c88cff; }
.day.fullybooked { background: #e7ebf0; border-color: #b9c3d1; }
.day.blocked span, .day.past span, .day.manual span, .day.monthblocked span, .day.fullybooked span { color: #8d97a8; }
.day.selected { background: #dfeaff; border: 2px solid #2663eb; }
.day.empty { background: transparent; border: none; }

.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; color: #5a6b82; }
.legend-box {
    display: inline-block; width: 16px; height: 16px; border-radius: 4px; margin-right: 6px;
    vertical-align: middle; border: 1px solid #cfd7e3;
}
.legend-box.selectable { background: #eef4ff; }
.legend-box.blocked { background: #eceff4; }
.legend-box.manual { background: #fff1d9; border-color: #f0c36d; }
.legend-box.monthblocked { background: #f5e5ff; border-color: #c88cff; }
.legend-box.fullybooked { background: #e7ebf0; border-color: #b9c3d1; }
.legend-box.past { background: #eceff4; }
.legend-box.selected { background: #dfeaff; }

.booking-form label { display: block; margin: 16px 0 8px; font-weight: bold; }
.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="password"],
.booking-form input[type="date"],
.booking-form select {
    width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 10px;
    border: 1px solid #cfd7e3; font-size: 1rem;
}
.slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span {
    display: block; border-radius: 12px; border: 1px solid #cfd7e3; padding: 14px 10px;
    text-align: center; font-weight: bold;
}
.slot.free span { background: #eef7ee; cursor: pointer; }
.slot.free input:checked + span { border: 2px solid #198754; background: #dff3df; }
.slot.booked span { background: #eceff4; color: #9099a8; text-decoration: line-through; cursor: not-allowed; }

button, .button-link {
    display: inline-block; margin-top: 18px; background: #2663eb; color: #fff; border: none;
    border-radius: 10px; padding: 12px 18px; text-decoration: none; font-weight: bold; cursor: pointer;
}
.button-link.secondary, button.danger { background: #8b1f1f; }
.toolbar { display: flex; gap: 12px; margin-bottom: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #e1e7ef; vertical-align: top; }

@media (max-width: 800px) {
    .page-header { flex-direction: column; align-items: flex-start; }
    .page-header__logo img { max-width: 260px; max-height: 92px; }
    .calendar-header { flex-direction: column; align-items: flex-start; }
    .day, .day a, .day span { min-height: 56px; }
}
