* { box-sizing: border-box; }

body {
    margin: 0;
    background: #f1f4f2;
    color: #183c32;
    font: 16px/1.6 system-ui, sans-serif;
}

main {
    max-width: 1200px;
    margin: auto;
    padding: clamp(16px, 4vw, 48px);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.eyebrow {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #557265;
}

h1 {
    font-size: clamp(28px, 5vw, 38px);
    line-height: 1.2;
    margin: 0;
}

h2 { margin: 0 0 20px; font-size: 23px; }

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 24px;
    align-items: start;
}

.card {
    min-width: 0;
    background: white;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid #d6e1da;
    border-top: 5px solid #245c48;
    border-radius: 14px;
}

label {
    display: block;
    font-weight: 600;
    margin: 18px 0 6px;
}

input:not([type=checkbox]):not([type=hidden]),
select {
    width: 100%;
    padding: 11px;
    border: 1px solid #8a9f93;
    border-radius: 7px;
    font: inherit;
    background: white;
    color: inherit;
}

fieldset {
    border: 1px solid #d6e1da;
    border-radius: 8px;
    margin: 24px 0;
    padding: 12px;
}

legend { font-weight: 600; }

.checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.checks label,
.check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0;
}

input[type=checkbox] {
    width: 20px;
    height: 20px;
    accent-color: #245c48;
    flex-shrink: 0;
}

.help { font-size: 14px; color: #52675c; margin: 8px 0; }

.actions,
.pagination {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 24px;
}

button {
    background: #245c48;
    color: white;
    border: 0;
    border-radius: 8px;
    padding: 12px 24px;
    min-height: 48px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

button:hover { background: #183c32; }
button.small {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 13px;
}
a { color: #245c48; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
input:focus-visible,
select:focus-visible,
button:focus-visible {
    outline: 3px solid #be8524;
    outline-offset: 3px;
}

.user { padding: 18px 0; border-top: 1px solid #e4ebe6; }
.user p { margin: 5px 0; overflow-wrap: anywhere; }
.user > a { display: inline-block; padding: 8px 0; }

.user-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.user-heading strong { overflow-wrap: anywhere; min-width: 0; }

.badge,
.count {
    font-size: 14px;
    background: #e6f3eb;
    color: #236443;
    border-radius: 20px;
    padding: 3px 10px;
    white-space: nowrap;
}

.inactive { background: #eee; color: #555; }

.error,
.success {
    padding: 16px;
    border-radius: 8px;
    overflow-wrap: anywhere;
}

.error { background: #fff0eb; color: #8a2b15; }
.success { background: #e6f3eb; color: #236443; }

@media (max-width: 760px) {
    .layout { grid-template-columns: 1fr; }
    header { align-items: start; }
    .card { padding: 20px; }
}

.narrow { max-width: 650px; margin: 0 auto; }
body { background: #fafafa; color: #303030; }
.eyebrow, .help { color: #555; }
.card { border-color: #ddd; border-top-color: #008bcc; border-radius: 5px; }
button { background: #0086bf; border-radius: 4px; }
button:hover { background: #006a98; }
a { color: #006fa3; }
input[type=checkbox] { accent-color: #0086bf; }
.badge { white-space: normal; }

.account-editor { margin-bottom: 28px; }
.members-card { padding: 24px 16px; }
.list-toolbar { margin: 0 0 24px; }
.account-filter {
    margin: 0 0 24px;
}
.account-filter fieldset {
    margin: 0;
    background: #f7faf8;
}
.filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 16px;
}
.account-filter .checks {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
}
.account-filter label {
    font-weight: 500;
}
.account-filter fieldset + fieldset .checks {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
}
.filter-actions {
    margin-top: 14px;
}
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline: 3px solid #be8524; outline-offset: 3px; }
.members-table { width: 100%; border-collapse: collapse; font-size: .84rem; text-align: left; }
.members-table th { padding: 13px 12px; background: #080808; color: #fff; font-weight: 600; white-space: nowrap; }
.members-table td { padding: 12px; border-bottom: 1px solid #e6e6e6; vertical-align: middle; white-space: nowrap; }
.members-table tbody tr:hover { background: #f1f7fa; }
.members-table .sportleiter-row { color: #08752c; }
.members-table .guest-row { color: #0a6fae; }
.members-table .role-cell { cursor: help; }
.members-table .email-cell { min-width: 210px; }
.members-table .phone-cell { white-space: nowrap; }
.row-actions { display: flex; gap: 8px; flex-wrap: nowrap; align-items: center; }
.row-actions a { text-decoration: none; }
.action-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.2; }
.edit-link { background: #d9effb; color: #006fa3; }
.edit-link:hover { background: #c4e6f8; text-decoration: none; }
.delete-link { background: #fde3df; color: #a12620; }
.delete-link:hover { background: #facdc7; text-decoration: none; }
button.danger { background: #ad2923; }
button.danger:hover { background: #861d18; }
button.own-booking {
    background: #18824f;
}
button.own-booking:hover {
    background: #11633b;
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.public-body {
    background:
        radial-gradient(circle at 50% 0%, rgba(7,141,204,.10), transparent 34rem),
        linear-gradient(180deg, #f8fafb 0%, #f1f1f1 58%);
}
.public-top-bar {
    min-height: 56px;
    margin: 0;
    padding: 0 54px;
    background: #078dcc;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.28);
    justify-content: space-between;
}
.public-top-bar a {
    text-decoration: none;
}
.public-top-bar a:hover {
    text-decoration: underline;
}
.public-top-bar nav {
    display: flex;
    align-items: center;
    gap: 12px;
}
.public-title {
    color: #fff;
    font-weight: 700;
}
.legal-popup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 4px;
    background: #dff3e8;
    color: #11633b;
    font-size: 13px;
    font-weight: 700;
}
.legal-popup-button:hover { background: #cbead9; text-decoration: none; }
.public-main {
    max-width: none;
    padding: 24px 16px 56px;
}
.home-login {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding-top: 2px;
}
.home-logo {
    display: block;
    width: min(340px, 46vw);
    height: auto;
    filter: drop-shadow(0 10px 22px rgba(0,0,0,.18));
}
.login-card {
    width: min(500px, calc(100vw - 32px));
    padding: 26px 24px 22px;
    background: #fff;
    border: 1px solid #dce6e1;
    border-top: 5px solid #078dcc;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(18,47,65,.16);
}
.login-card form {
    display: grid;
    gap: 14px;
}
.login-row {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}
.login-row label {
    margin: 0;
    text-align: right;
    color: #405047;
    font-weight: 700;
}
.login-row input:not([type=checkbox]):not([type=hidden]) {
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #b8c9c0;
    border-radius: 10px;
    background: #fbfdfc;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.login-row input:not([type=checkbox]):not([type=hidden]):focus {
    border-color: #078dcc;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(7,141,204,.13);
    outline: none;
}
.login-forgot {
    margin: -6px 0 0;
    text-align: right;
}
.login-forgot a {
    color: #006fa3;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.login-forgot a:hover { text-decoration: underline; }
.login-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 2px;
}
.login-actions button,
.login-register-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    min-height: 42px;
    padding: 9px 22px;
    border-radius: 9px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}
.login-actions button {
    box-shadow: 0 7px 15px rgba(0,134,191,.22);
}
.login-register-button {
    border: 1px solid #078dcc;
    background: #edf7fb;
    color: #006fa3;
}
.login-register-button:hover {
    background: #dff1f9;
    color: #005f8f;
    text-decoration: none;
}
.login-resend {
    margin-top: 16px;
    text-align: center;
}
.login-resend a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff4d8;
    color: #7a5200;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}
.login-resend a::before {
    content: "✉";
    margin-right: 7px;
}
.login-resend a:hover {
    background: #ffe9ad;
    text-decoration: none;
}
.legal-card {
    max-width: 900px;
    margin: 28px auto;
    line-height: 1.65;
}
.legal-card h1 {
    margin-bottom: 24px;
}
.legal-card h2 {
    margin: 24px 0 8px;
    font-size: 19px;
}
.legal-popup-body .public-top-bar {
    display: none;
}
.legal-popup-body .public-main {
    padding-top: 16px;
}
.legal-popup-body .legal-card {
    margin-top: 0;
}
@media (max-width: 640px) {
    .public-top-bar {
        padding: 10px 16px;
        align-items: flex-start;
    }
    .public-top-bar nav {
        gap: 16px;
        flex-wrap: wrap;
    }
    .home-logo {
        width: min(280px, 72vw);
    }
    .login-card {
        border-radius: 12px;
        padding: 18px 16px;
    }
    .login-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .login-row label {
        text-align: left;
    }
    .login-actions {
        gap: 10px;
    }
}

.calendar-card { max-width: 980px; margin: 0 auto; }
.calendar-nav {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    text-align: center;
}
.calendar-nav a {
    font-size: 32px;
    line-height: 1;
    text-decoration: none;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(90px, 1fr));
    gap: 8px;
}
.calendar-headings {
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    text-align: center;
}
.calendar-day {
    min-height: 102px;
    padding: 12px;
    background: white;
    border: 1px solid #dedede;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.personal-bookings {
    max-width: 980px;
    margin: 28px auto 0;
    color: #333;
}
.personal-bookings h2 {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.3;
}
.personal-bookings-scroll {
    overflow-x: auto;
}
.personal-bookings-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
    font-size: 14px;
    line-height: 1.45;
}
.personal-bookings-table th {
    background: #080808;
    color: #fff;
    text-align: left;
    padding: 12px 14px;
}
.personal-bookings-table th:nth-child(1) { width: 24%; }
.personal-bookings-table th:nth-child(2) { width: 25%; }
.personal-bookings-table th:nth-child(3) { width: 33%; }
.personal-bookings-table th:nth-child(4) { width: 18%; }
.personal-bookings-table td {
    padding: 14px;
    border-bottom: 1px solid #dedede;
    vertical-align: middle;
    overflow-wrap: anywhere;
}
.personal-bookings-table td > strong,
.personal-bookings-table td > span {
    display: block;
}
.personal-bookings-table td > span { margin-top: 3px; color: #555; }
.personal-bookings-table td > .personal-role-participant { color: #007bb5; }
.personal-bookings-table td > .personal-role-supervisor { color: #835300; }
@media (min-width: 721px) {
    .personal-bookings-table .personal-booking-lead td:nth-child(2) > strong {
        color: #c62828;
    }
}
.personal-booking-actions {
    display: grid;
    gap: 6px;
}
.personal-booking-actions form { margin: 0; }
.personal-booking-actions .personal-edit,
.personal-booking-actions .personal-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 6px;
    border: 1px solid #007bb5;
    border-radius: 4px;
    background: #fff;
    color: #007bb5;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
}
.personal-booking-actions .personal-delete { color: #ac2424; border-color: #e4bcbc; }
.personal-booking-actions .personal-edit:hover { background: #e9f6fb; }
.personal-booking-actions .personal-delete:hover:not(:disabled) { background: #fff0f0; }
.personal-booking-actions .personal-delete:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 720px) {
    .personal-bookings {
        min-width: 0;
        margin-top: 24px;
    }
    .personal-bookings-scroll {
        overflow: visible;
    }
    .personal-bookings-table {
        display: block;
        min-width: 0;
        background: transparent;
    }
    .personal-bookings-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .personal-bookings-table tbody {
        display: grid;
        gap: 12px;
    }
    .personal-bookings-table .personal-booking-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
        border: 1px solid #dedede;
        border-left: 4px solid #007bb5;
        border-radius: 6px;
        background: #fff;
    }
    .personal-bookings-table .personal-booking-supervisor { border-left-color: #d89d32; }
    .personal-bookings-table .personal-booking-lead { border-left-color: #18824f; }
    .personal-bookings-table td {
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
        white-space: normal;
    }
    .personal-bookings-table td:first-child {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: space-between;
        gap: 4px 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e6e6e6;
    }
    .personal-bookings-table td:first-child > span {
        margin: 0;
        white-space: nowrap;
    }
    .personal-bookings-table td:nth-child(2) > strong { font-size: 16px; }
    .personal-bookings-table td:nth-child(3) > strong { font-weight: 500; }
    .personal-booking-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding-top: 4px;
    }
    .personal-booking-actions .personal-edit,
    .personal-booking-actions .personal-delete {
        min-height: 44px;
        padding: 10px 6px;
    }
    .personal-booking-actions .personal-edit {
        background: #007bb5;
        color: #fff;
    }
    .personal-booking-actions .personal-edit:hover { background: #006797; }
}
.calendar-day.outside {
    background: #7c7c7a;
    color: #ffef45;
}
.calendar-day.today {
    background: #f5c64b;
}
.calendar-day.mine {
    border-color: #0086bf;
    box-shadow: inset 0 0 0 2px #0086bf, 0 1px 3px rgba(0,0,0,.18);
}
.day-number {
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 700;
    font-style: italic;
}
.calendar-day:nth-child(7n) .day-number {
    color: red;
}
.day-event {
    display: block;
    margin: 4px 0;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.booking-day-card { max-width: 1120px; margin: 0 auto; }
.booking-day-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
    margin: 0 0 24px;
}
.booking-day-header h2 { margin: 0; }
.lead-state { margin: 0; color: red; font-weight: 700; }
.range-block { margin-top: 26px; }
.range-block h3 { text-align: center; margin: 0 0 18px; }
.notice {
    border: 1px dashed #999;
    padding: 12px;
    min-height: 64px;
}
.messages {
    margin: 0 0 18px;
}
.booking-table {
    table-layout: fixed;
    min-width: 900px;
}
.booking-table th:nth-child(1),
.booking-table td:nth-child(1) {
    width: 18%;
}
.booking-table th:nth-child(2),
.booking-table td:nth-child(2) {
    width: 16%;
}
.booking-table th:nth-child(3),
.booking-table td:nth-child(3) {
    width: 53%;
}
.booking-table th:nth-child(4),
.booking-table td:nth-child(4) {
    width: 13%;
}
.slot-people {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
}
.slot-people form,
.booking-table td > form {
    display: block;
    margin: 0;
}
.booking-person {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    padding: 6px 10px;
    background: #f0f4f6;
    border-radius: 4px;
    text-align: center;
    overflow: hidden;
}
.slot-chip {
    width: 100%;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.25;
}
.missing { color: #a12620; font-weight: 600; }

@media (max-width: 760px) {
    .filter-grid { grid-template-columns: 1fr; }
    .account-filter .checks,
    .account-filter fieldset + fieldset .checks { grid-template-columns: 1fr; }
    .calendar-card { padding: 12px; }
    .calendar-grid { grid-template-columns: repeat(7, minmax(44px, 1fr)); gap: 4px; }
    .calendar-headings { font-size: 12px; }
    .calendar-day { min-height: 78px; padding: 7px; }
    .day-number { font-size: 14px; margin-bottom: 8px; }
    .day-event { font-size: 11px; }
    .booking-day-header { display: block; }
    .booking-table { min-width: 820px; }
}

.booking-day-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.link-form { margin: 0; }
.link-button {
    width: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #006fa3;
    text-decoration: underline;
    text-underline-offset: 3px;
    font: inherit;
    font-weight: 500;
}
.link-button:hover { background: transparent; color: #004f75; text-decoration-thickness: 2px; }
.edit-panel,
.note-form,
.message-form {
    margin: 0 0 20px;
    padding: 14px;
    border: 1px solid #dce6e0;
    border-radius: 6px;
    background: #f8fbf9;
}
.edit-panel label,
.note-form label,
.message-form label { margin-top: 0; }
.inline-edit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}
textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #8a9f93;
    border-radius: 7px;
    font: inherit;
    background: white;
    color: inherit;
    resize: vertical;
}
button.claim-chip { background: #be8524; }
button.claim-chip:hover { background: #8e6119; }
.booking-person.guest-person,
button.claim-chip.guest-person {
    background: #fff2a8;
    color: #4b3a00;
    font-weight: 400;
}
button.claim-chip.guest-person:hover { background: #ffe878; }
.mini-action {
    align-self: stretch;
    margin-top: -4px !important;
}
button.tiny {
    width: 100%;
    min-height: 28px;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1.2;
}
button.guest-button { background: #6b7280; }
button.guest-button:hover { background: #4b5563; }

@media (max-width: 760px) {
    .booking-day-actions { align-items: flex-start; }
    .inline-edit { grid-template-columns: 1fr; }
}

/* App-Schale */
body {
    background: #f5f5f5;
    color: #333;
    font-family: Roboto, Arial, system-ui, sans-serif;
}
.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
}
.app-main { min-width: 0; }
.top-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 56px;
    margin: 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #fff;
    background: #078dcc;
    box-shadow: 0 2px 5px rgba(0,0,0,.28);
}
.top-bar > div {
    display: flex;
    align-items: center;
    gap: 28px;
}
.menu-icon {
    font-size: 25px;
    line-height: 1;
}
.side-nav {
    position: sticky;
    top: 56px;
    align-self: start;
    min-height: calc(100vh - 56px);
    padding: 22px 16px;
    background: #fff;
    border-right: 1px solid #ddd;
    box-shadow: 1px 0 3px rgba(0,0,0,.08);
}
.side-logo {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 18px;
}
.side-menu {
    display: grid;
    gap: 16px;
}
.side-menu a,
.side-link {
    display: block;
    width: 100%;
    min-height: 32px;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: #222;
    text-align: left;
    text-decoration: none;
    font: inherit;
    font-weight: 600;
}
.side-menu a:hover,
.side-link:hover {
    background: transparent;
    color: #008dcc;
}
.side-logout { margin: 0 0 18px; }
.app-shell main {
    max-width: none;
    padding: 20px 28px 48px;
}
.page-header {
    margin: 0 auto 20px;
    max-width: 1180px;
}
.top-links { margin-top: 0; }
.app-shell .booking-day-card,
.app-shell .calendar-card {
    border-radius: 2px;
    border-top-color: #008dcc;
    box-shadow: 0 1px 4px rgba(0,0,0,.22);
}
.app-shell .booking-day-card { max-width: 970px; }
.booking-day-header {
    border-bottom: 1px solid #d0d0d0;
    padding-bottom: 18px;
}
.booking-day-actions a::before { content: "✎ "; }
.lead-state strong { color: red; }

/* Ruhiger Bearbeiten-Modus */
.edit-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 14px;
    align-items: end;
    padding: 14px 16px;
    background: #fff;
}
.edit-panel label { margin: 0 0 6px; }
.edit-panel .inline-edit { display: contents; }
.note-form,
.message-form {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}
.note-form label,
.message-form label {
    font-weight: 400;
    text-decoration: underline;
}
.note-form button,
.message-form button { margin-top: 8px; }
.booking-table { min-width: 880px; }
.booking-table th:nth-child(1),
.booking-table td:nth-child(1) { width: 14%; }
.booking-table th:nth-child(2),
.booking-table td:nth-child(2) { width: 14%; }
.booking-table th:nth-child(3),
.booking-table td:nth-child(3) { width: 57%; }
.booking-table th:nth-child(4),
.booking-table td:nth-child(4) { width: 15%; }
.slot-people { grid-template-columns: repeat(5, minmax(86px, 1fr)); }
.slot-cell {
    position: relative;
    min-width: 0;
}
.slot-cell form { margin: 0; }
.slot-cell .booking-person,
.slot-cell .slot-chip {
    height: 36px;
    min-height: 36px;
    padding: 4px 8px;
    overflow: hidden;
}
.chip-name {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.08;
    font-size: clamp(10px, 1.02vw, 13px);
}
.chip-name-single {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chip-name-split {
    flex-direction: column;
    gap: 1px;
}
.chip-name-split span {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chip-name-small { font-size: clamp(9px, .88vw, 11.5px); }
.chip-name-tiny { font-size: clamp(8px, .78vw, 10px); }
.cell-action {
    position: absolute;
    right: -5px;
    top: -8px;
    width: 24px;
    height: 24px;
    margin: 0 !important;
}
button.tiny {
    min-height: 24px;
    width: 24px;
    padding: 0;
    border-radius: 50%;
    font-size: 12px;
}
button.guest-button {
    background: #6b7280;
    color: #fff;
}
button.guest-button:hover { background: #4b5563; }
.booking-person.own-person {
    background: #dff3e8;
    color: #11633b;
    font-weight: 700;
}
.booking-person.unavailable {
    background: transparent;
    color: #999;
    font-style: italic;
}
button:disabled,
button.disabled-chip,
.slot-chip:disabled {
    background: #b9dff0;
    color: #00719f;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .side-nav {
        position: static;
        min-height: 0;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 16px;
        align-items: start;
        padding: 14px 18px;
    }
    .side-logo { width: 76px; height: 76px; margin: 0; }
    .side-menu { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px 14px; }
    .side-logout { grid-column: 2; margin: 0; }
    .top-bar { position: static; align-items: flex-start; flex-direction: column; padding: 12px 16px; }
    .app-shell main { padding: 16px; }
    .edit-panel { grid-template-columns: 1fr; }
}

/* Menü nur links; Burger klappt die Seitenleiste ohne JavaScript ein. */
.nav-toggle {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}
.burger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
}
.burger-button:hover { background: rgba(255,255,255,.16); }
.nav-toggle:checked ~ .side-nav { display: none; }
.nav-toggle:checked ~ .app-main { grid-column: 1 / -1; }
.app-shell .page-header { justify-content: flex-start; }
.app-shell .page-header .top-links { display: none; }

/* Reduziertes Seitenmenü */
.side-nav {
    top: 0;
    min-height: 100vh;
    padding-top: 18px;
}
.side-logo {
    margin-top: 0;
    margin-bottom: 24px;
}
.side-menu {
    gap: 12px;
}
.side-link { display: none; }
.nav-button {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 0;
    border-radius: 5px;
    background: #078dcc;
    color: #fff !important;
    text-align: left;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(0,0,0,.16);
}
.nav-button:hover {
    background: #006fa3;
    color: #fff !important;
    text-decoration: none;
}
.nav-button.active {
    background: #18824f;
}
.nav-button.active:hover {
    background: #11633b;
}
.logout-button {
    background: #b3261e;
    cursor: pointer;
}
.logout-button:hover {
    background: #861d18;
}
.side-logout {
    margin-top: 12px;
}
.app-shell .page-header {
    display: none;
}
.app-shell main {
    padding-top: 20px;
}

@media (max-width: 900px) {
    .side-nav { min-height: 0; padding-top: 14px; }
    .side-menu { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
    .side-logout { grid-column: auto; margin-top: 0; }
}

/* Finale Menü-Normalisierung: alte Link-/Button-Regeln dürfen hier nicht mehr durchschlagen. */
.app-shell {
    grid-template-columns: 160px minmax(0, 1fr);
}
.side-nav {
    padding: 8px 16px 18px;
    overflow: hidden;
}
.side-logo {
    width: 118px;
    height: 118px;
    margin: 0 auto 18px;
}
.side-menu,
.side-logout {
    width: 100%;
}
.side-menu {
    gap: 10px;
}
.side-menu > .nav-button,
.side-logout > .logout-button {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    width: 100% !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border: 0 !important;
    border-radius: 5px !important;
    color: #fff !important;
    text-align: left !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: 0 1px 2px rgba(0,0,0,.16);
}
.side-menu > .nav-button {
    background: #078dcc !important;
}
.side-menu > .nav-button:hover {
    background: #006fa3 !important;
}
.side-menu > .nav-button.active {
    background: #18824f !important;
}
.side-menu > .nav-button.active:hover {
    background: #11633b !important;
}
.side-logout > .logout-button {
    background: #b3261e !important;
}
.side-logout > .logout-button:hover {
    background: #861d18 !important;
}
.top-bar {
    min-height: 56px;
    font-size: 14px;
}
.top-bar strong {
    font-size: 16px;
}
.burger-button {
    font-size: 25px !important;
}

@media (max-width: 900px) {
    .side-nav { padding: 8px 12px; }
    .side-logo { width: 72px; height: 72px; }
    .side-menu > .nav-button,
    .side-logout > .logout-button { min-height: 34px !important; font-size: 13px !important; }
}

/* Kalendersteuerung und zentrierte Menüpunkte */
.side-menu > .nav-button,
.side-logout > .logout-button {
    justify-content: center !important;
    text-align: center !important;
}
.month-picker {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.month-picker select {
    min-height: 40px;
    padding: 8px 10px;
    font-weight: 700;
    text-align: center;
}
.month-picker button.small {
    min-height: 40px;
    padding: 8px 14px;
}
.calendar-day.outside .day-event {
    display: none;
}
.history-notice {
    max-width: 970px;
    margin: 0 auto 16px;
    background: #fff7df;
    border: 1px solid #e6c56d;
    color: #6d4c00;
}

/* Monatswechsel ohne Öffnen-Button und freundlichere Randtage */
.month-picker {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.month-picker select {
    cursor: pointer;
}
#month-select option {
    color: #333;
    font-weight: 400;
}
#month-select option.current-calendar-month {
    color: #007bb5;
    font-weight: 700;
}
.calendar-day.outside {
    background: #eeeeee !important;
    color: #111 !important;
    border-color: #d8d8d8;
    box-shadow: inset 0 0 0 1px #e6e6e6, 0 1px 2px rgba(0,0,0,.12);
}
.calendar-day.outside .day-number {
    color: #111 !important;
}
.calendar-day.outside:nth-child(7n) .day-number {
    color: #111 !important;
}

/* Kalenderfarbtest: Training blau, eigene Termine grün, Randtage grau. */
.calendar-day.training-day {
    background: #d9edf9;
    border-color: #8fc9e8;
    box-shadow: inset 0 0 0 2px #8fc9e8, 0 1px 3px rgba(0,0,0,.14);
}
.calendar-day.past {
    background: #fff !important;
    border-color: #dedede !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.18) !important;
}
.calendar-day.mine {
    background: #dff3e8 !important;
    border-color: #8fd2ac !important;
    box-shadow: inset 0 0 0 2px #8fd2ac, 0 1px 3px rgba(0,0,0,.14) !important;
}
.calendar-day.outside {
    background: #dedede !important;
    color: #111 !important;
}
.calendar-day.outside.training-day,
.calendar-day.outside.mine {
    background: #dedede !important;
    border-color: #d0d0d0 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.12) !important;
}


/* Buchungstabelle: zentrierte Spalten und kontrollierte Disziplin-Zeilen */
.booking-table th,
.booking-table td {
    text-align: center;
}
.booking-table .discipline-cell {
    white-space: normal;
    overflow: hidden;
}
.booking-table .discipline-cell span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    line-height: 1.25;
    max-height: 2.5em;
}
.booking-table th:nth-child(1),
.booking-table td:nth-child(1) { width: 15%; }
.booking-table th:nth-child(2),
.booking-table td:nth-child(2) { width: 13%; }
.booking-table th:nth-child(3),
.booking-table td:nth-child(3) { width: 57%; }
.booking-table th:nth-child(4),
.booking-table td:nth-child(4) { width: 15%; }

/* Kompakte Mitteilungseingabe in der Tagesansicht */
.message-form {
    margin-bottom: 18px;
}
.message-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}
.message-inline input {
    min-height: 36px;
    padding: 7px 10px;
}
.message-inline button.small {
    min-height: 36px;
    margin-top: 0;
    padding: 7px 12px;
    white-space: nowrap;
}
.messages[open] {
    margin-bottom: 18px;
}
.messages p {
    margin: 8px 0;
}

@media (max-width: 700px) {
    .message-inline { grid-template-columns: 1fr; }
    .message-inline button.small { justify-self: start; }
}

/* Tagesansicht: Mitteilungen nach der Tabelle, grüner Zurück-Button und orange Aufsicht */
.booking-messages {
    margin: 16px 0 0;
    padding-top: 12px;
    border-top: 1px solid #e2e2e2;
}
.back-calendar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 4px;
    background: #dff3e8;
    color: #11633b;
    font-weight: 700;
    text-decoration: none;
}
.back-calendar-button:hover {
    background: #cbead9;
    color: #0d4f30;
    text-decoration: none;
}
button.supervisor-chip {
    background: #f6c66f;
    color: #4b3100;
}
button.supervisor-chip:hover {
    background: #efb64b;
}

/* Kompakter Tageskopf */
.compact-day-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
        "title lead lead"
        "mail . edit";
    align-items: center;
    gap: 10px 18px;
}
.day-title-line {
    grid-area: title;
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #555;
}
.day-title-line strong {
    color: #333;
    font: inherit;
    font-weight: 700;
    text-transform: none;
    letter-spacing: .02em;
    white-space: nowrap;
}
.compact-day-header .lead-state {
    grid-area: lead;
    justify-self: center;
    text-align: center;
}
.compact-day-header .booking-day-actions {
    display: contents;
}
.compact-day-header .link-form {
    grid-area: mail;
    justify-self: start;
}
.compact-day-header .edit-header-button {
    grid-area: edit;
    justify-self: end;
}
.green-header-button,
button.link-button.green-header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 4px;
    border: 0;
    background: #dff3e8;
    color: #11633b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}
.green-header-button:hover,
button.link-button.green-header-button:hover {
    background: #cbead9;
    color: #0d4f30;
    text-decoration: none;
}
.compact-day-header .edit-header-button::before { content: "✎ "; }

@media (max-width: 760px) {
    .compact-day-header {
        grid-template-columns: 1fr;
        grid-template-areas: "title" "lead" "mail" "edit";
    }
    .compact-day-header .lead-state,
    .compact-day-header .link-form,
    .compact-day-header .edit-header-button {
        justify-self: start;
    }
    .day-title-line {
        flex-wrap: wrap;
    }
}


/* Tageskopf Feinjustierung */
.day-title-line {
    font-size: 15px;
}
.compact-day-header .lead-state {
    justify-self: end;
    text-align: right;
    font-size: 15px;
    letter-spacing: .02em;
}
.compact-day-header .lead-state strong {
    font-size: inherit;
}

/* Bearbeiten: kompakte Zuweisungs-Dropdowns */
.assign-form {
    display: block;
    margin: 0;
}
.assign-form .booking-assign-select {
    min-height: 36px;
    padding: 4px 6px;
    font-size: 12px;
    border-radius: 4px;
}
.slot-cell .assign-form {
    min-height: 36px;
}

/* Tageskopf: Training/Datum größer, Sportleitung links darunter */
.compact-day-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "title title"
        "lead lead"
        "mail edit";
}
.day-title-line {
    font-size: 16px;
}
.compact-day-header .lead-state {
    justify-self: start;
    text-align: left;
    font-size: 16px;
    letter-spacing: .02em;
}


/* Tageskopf final: Training links, Sportleitung links darunter, Datum rechts */
.compact-day-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "training date"
        "lead date"
        "mail edit";
    align-items: center;
    gap: 8px 18px;
}
.day-training {
    grid-area: training;
    color: #555;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.3;
}
.day-date {
    grid-area: date;
    justify-self: end;
    color: #333;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}
.compact-day-header .lead-state {
    grid-area: lead;
    justify-self: start;
    margin: 0;
    color: red;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}
.compact-day-header .lead-state strong { font-size: inherit; }
.compact-day-header .booking-day-actions { display: contents; }
.compact-day-header .link-form { grid-area: mail; justify-self: start; }
.compact-day-header .edit-header-button { grid-area: edit; justify-self: end; }
@media (max-width: 760px) {
    .compact-day-header {
        grid-template-columns: 1fr;
        grid-template-areas: "training" "lead" "date" "mail" "edit";
    }
    .day-date,
    .compact-day-header .link-form,
    .compact-day-header .edit-header-button { justify-self: start; }
}


/* Sportleitung im Bearbeiten-Modus direkt im Tageskopf */
.lead-form {
    display: inline-grid;
    grid-template-columns: auto minmax(180px, 260px);
    gap: 8px;
    align-items: center;
}
.lead-form label {
    margin: 0;
    color: red;
    font: inherit;
    font-weight: 700;
}
.lead-form .lead-select {
    min-height: 34px;
    padding: 4px 9px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}
@media (max-width: 760px) {
    .lead-form {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}


/* Schlichte Hinweise und stabile leere/gebuchte Felder */
.training-note {
    margin: 0 0 16px;
}
.training-note > div {
    margin-bottom: 4px;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.training-note p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.training-note a {
    text-decoration: underline;
}
.booking-table .slot-chip,
.booking-table .booking-person,
.booking-table .empty-slot {
    min-height: 36px;
    height: 36px;
}
.booking-table .booking-person {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.booking-table .empty-slot {
    display: inline-flex;
    width: 100%;
    background: transparent;
}
.booking-table .booking-person.own-person {
    background: #18824f;
    color: #fff;
}

.booking-table td > .booking-person,
.booking-table td > form > .slot-chip {
    min-width: 86px;
    padding-top: 6px;
    padding-bottom: 6px;
}
.booking-table td > .booking-person .chip-name,
.booking-table td > form > .slot-chip .chip-name {
    min-height: 0;
}


/* Mitteilungen: Auto-Save-Eingabe und schlichte Ausgabe */
.autosave-message-form {
    padding-left: 0;
    padding-right: 0;
}
.autosave-message-form input[type=text] {
    width: 100%;
}
.participant-messages {
    margin: 18px 0 0;
}
.participant-messages > div {
    margin-bottom: 6px;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.participant-messages p {
    margin: 4px 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.training-note p {
    white-space: pre-line;
}
.note-form textarea {
    white-space: pre-wrap;
    tab-size: 4;
}


/* Einheitliche Geometrie für freie, belegte und unsichtbare Buchungsplätze.
   Block/Flex statt Inline-Boxen verhindert zusätzlichen Abstand zur Textgrundlinie,
   insbesondere beim leeren Aufsicht-Feld nach einer Teilnehmerbuchung. */
.booking-table {
    --booking-slot-height: 44px;
}
.booking-table .slot-people {
    grid-auto-rows: var(--booking-slot-height);
}
.booking-table .slot-cell {
    display: flex;
    align-items: center;
    height: var(--booking-slot-height);
    min-height: 0;
}
.booking-table .slot-cell > form:not(.cell-action),
.booking-table td > form {
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--booking-slot-height);
    margin: 0;
    padding: 0;
}
.booking-table .slot-chip,
.booking-table .booking-person,
.booking-table .empty-slot,
.booking-table .booking-assign-select {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: var(--booking-slot-height);
    min-height: var(--booking-slot-height);
    max-height: var(--booking-slot-height);
    margin: 0;
    padding: 6px 8px;
    border-radius: 4px;
    vertical-align: middle;
    overflow: hidden;
}
.booking-table .slot-chip,
.booking-table .booking-person {
    border: 0;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.15;
}
.booking-table .booking-person {
    font-weight: 400;
}
.booking-table .empty-slot {
    padding: 0;
    background: transparent;
}
.booking-table .booking-person.own-person {
    background: #18824f;
    color: #fff;
}
@media (min-width: 721px) {
    .booking-table td:nth-child(4) > form,
    .booking-table td:nth-child(4) > .booking-person,
    .booking-table td:nth-child(4) > .supervisor-edit-cell {
        /* TN: (57% Tabellenbreite - 24px Zellpadding - 4 * 8px Gap) / 5.
           Bezogen auf die Aufsicht-Zelle (15% - 24px): 76% + 7.04px. */
        width: max(86px, calc(76% + 7.04px));
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }
}
.booking-table button.booking-person.own-booking {
    appearance: none;
    cursor: pointer;
}
.booking-table button.booking-person.own-booking:hover {
    background: #11633b;
}
.booking-table .chip-name {
    min-height: 0;
    max-height: 100%;
    line-height: 1.15;
    overflow: hidden;
}
.compact-day-header .lead-state,
.compact-day-header .lead-state strong,
.lead-form label {
    color: #333;
}
.compact-day-header .lead-state.missing-lead,
.compact-day-header .lead-state.missing-lead strong,
.lead-form.missing-lead label {
    color: red;
}
.booking-table .booking-person.missing-supervisor {
    background: transparent;
    color: #c62828;
    font-weight: 700;
    padding: 2px 4px;
}
.booking-table .booking-person.missing-supervisor .chip-name,
.booking-table .booking-person.missing-supervisor .chip-name-small,
.booking-table .booking-person.missing-supervisor .chip-name-tiny {
    color: inherit;
    font-size: 13px;
    line-height: 1.15;
}

/* Trainingsverwaltung */
.training-editor {
    max-width: 1120px;
    margin: 0 auto 24px;
}
.training-editor h2,
.training-editor h3,
.members-card h2 {
    margin-top: 0;
}
.training-mode {
    margin-bottom: 18px;
}
.training-mode .check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 22px;
    white-space: nowrap;
}
.training-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 12px 16px;
}
.training-field {
    display: grid;
    gap: 6px;
}
.training-form-grid label,
.training-form-grid legend {
    margin: 0;
    font-weight: 700;
}
.training-admin-form[data-mode="single"] .training-series-field,
.training-admin-form[data-mode="series"] .training-single-field {
    display: none;
}
.series-week-field {
    margin: 0;
    padding: 10px 12px;
    grid-column: 1 / -1;
}
.series-week-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 18px 24px;
    align-items: start;
}
.series-week-options .check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    white-space: nowrap;
}
.series-week-options .check:nth-child(1) { grid-column: 1; grid-row: 1; }
.series-week-options .check:nth-child(2) { grid-column: 2; grid-row: 1; }
.series-week-options .check:nth-child(3) { grid-column: 3; grid-row: 1; }
.series-week-options .check:nth-child(4) { grid-column: 1; grid-row: 2; }
.series-week-options .check:nth-child(5) { grid-column: 2; grid-row: 2; }
.training-editor textarea {
    width: 100%;
    min-height: 110px;
}
.slot-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.duplicate-slot-button,
.delete-selected-slots-button {
    display: inline-flex;
    border: 0;
}
.training-slots-table th:first-child,
.training-slots-table td:first-child {
    width: 44px;
}
.training-slots-table .slot-row-select {
    min-width: 0;
    width: auto;
}
.training-slots-table input:not(.slot-row-select) {
    width: 100%;
    min-width: 110px;
}
.training-slots-table th,
.training-slots-table td,
.trainings-table th,
.trainings-table td {
    text-align: center;
    vertical-align: middle;
}
.trainings-table td:nth-child(5) {
    text-align: left;
}
.trainings-table button.action-pill {
    border: 0;
    cursor: pointer;
}
.training-bulk-actions {
    justify-content: flex-end;
}
@media (max-width: 900px) {
    .training-form-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}


.supervisor-edit-cell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(76px, 1fr);
    gap: 4px;
    align-items: center;
    width: 100%;
}
.supervisor-edit-cell > .assign-form {
    width: 100%;
}


.booking-table td:nth-child(4) .supervisor-edit-cell .booking-assign-select {
    height: var(--booking-slot-height);
    min-height: var(--booking-slot-height);
    max-height: var(--booking-slot-height);
    font-size: 12px;
    padding: 2px 6px;
}
.booking-table td:nth-child(4) .supervisor-edit-cell .cell-action {
    top: -7px;
    right: -8px;
}

/* Smartphone-Optimierung für Login, Kalender und Buchungstag */
@media (max-width: 720px) {
    html {
        -webkit-text-size-adjust: 100%;
    }
    body {
        font-size: 15px;
        line-height: 1.45;
        background: #f4f4f4;
    }
    main,
    .app-shell main,
    .public-main {
        padding: 12px;
    }
    .card {
        padding: 16px 12px;
        border-radius: 4px;
    }

    .public-top-bar {
        min-height: 48px;
        padding: 8px 10px;
        gap: 8px;
        align-items: center;
    }
    .public-title {
        font-size: 14px;
        line-height: 1.15;
    }
    .public-top-bar nav {
        margin-left: auto;
        gap: 6px;
        justify-content: flex-end;
    }
    .legal-popup-button {
        min-height: 32px;
        padding: 6px 8px;
        font-size: 12px;
        line-height: 1.1;
        white-space: nowrap;
    }
    .home-login {
        gap: 10px;
        padding-top: 8px;
    }
    .home-logo {
        width: min(210px, 58vw);
    }
    .login-card {
        width: 100%;
        max-width: 380px;
        padding: 18px 16px;
        border-radius: 12px;
    }
    .login-card form {
        gap: 10px;
    }
    .login-row {
        grid-template-columns: 1fr;
        gap: 3px;
    }
    .login-row label {
        text-align: left;
        font-size: 14px;
    }
    .login-row input:not([type=checkbox]):not([type=hidden]) {
        min-height: 44px;
        padding: 8px 10px;
        border: 1px solid #8a9f93;
        border-radius: 5px;
    }
    .login-forgot {
        margin-top: -2px;
    }
    .login-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 4px;
    }
    .login-actions button,
    .login-register-button {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 8px 10px;
        font-size: 14px;
    }

    .app-shell {
        display: block;
    }
    .top-bar {
        position: sticky;
        top: 0;
        z-index: 20;
        min-height: 50px;
        padding: 8px 10px;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    .top-bar > div {
        min-width: 0;
        gap: 8px;
    }
    .top-bar strong {
        display: block;
        max-width: 50vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 14px;
    }
    .top-bar > span {
        max-width: 42vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
        text-align: right;
    }
    .burger-button {
        width: 40px;
        height: 40px;
        flex: 0 0 auto;
    }
    .nav-toggle:not(:checked) ~ .side-nav {
        display: grid;
        position: sticky;
        top: 50px;
        z-index: 19;
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 10px;
        min-height: 0;
        padding: 8px 10px 10px;
        border-right: 0;
        border-bottom: 1px solid #ddd;
        box-shadow: 0 2px 4px rgba(0,0,0,.15);
    }
    .side-logo {
        width: 54px;
        height: 54px;
        margin: 0;
    }
    .side-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }
    .side-menu > .nav-button,
    .side-logout > .logout-button {
        min-height: 38px !important;
        padding: 8px 10px !important;
        justify-content: center;
        text-align: center !important;
        font-size: 13px !important;
    }
    .side-logout {
        grid-column: 2;
        margin: 0;
    }

    .calendar-card {
        width: 100%;
        padding: 12px 8px;
    }
    .calendar-nav {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 6px;
        margin-bottom: 10px;
    }
    .calendar-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        border-radius: 6px;
        background: #e9f6fb;
        font-size: 30px;
    }
    .month-picker select {
        min-height: 42px;
        padding: 8px 30px 8px 10px;
        font-size: 15px;
    }
    .month-picker {
        grid-template-columns: minmax(0, 1fr);
    }
    .calendar-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 3px;
    }
    .calendar-headings {
        gap: 3px;
        margin-bottom: 4px;
        font-size: 11px;
    }
    .calendar-day {
        min-height: 68px;
        padding: 5px 3px;
        border-radius: 3px;
        box-shadow: none;
    }
    .day-number {
        margin-bottom: 3px;
        font-size: 13px;
        line-height: 1;
    }
    .day-event {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 22px;
        margin: 2px 0;
        padding: 2px 3px;
        border-radius: 3px;
        background: #078dcc;
        color: #fff;
        font-size: 10px;
        line-height: 1.1;
        text-align: center;
        overflow-wrap: anywhere;
        text-decoration: none;
    }
    .calendar-day.mine .day-event {
        background: #18824f;
    }

    .booking-day-card {
        width: 100%;
        padding: 16px 10px;
        box-shadow: none;
    }
    .booking-day-header {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding-bottom: 12px;
        margin-bottom: 18px;
    }
    .day-training {
        font-size: 17px;
        letter-spacing: .08em;
    }
    .day-date {
        order: -1;
        font-size: 20px;
        line-height: 1.2;
        text-align: left;
    }
    .lead-state {
        font-size: 15px;
    }
    .booking-day-actions {
        align-items: stretch;
        gap: 8px;
    }
    .green-header-button,
    .booking-day-actions .link-button {
        display: flex;
        justify-content: center;
        width: 100%;
        min-height: 40px;
        align-items: center;
        border-radius: 5px;
    }
    .range-block {
        margin-top: 20px;
    }
    .range-block h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    .training-note,
    .message-form {
        margin-bottom: 14px;
    }
    .training-note p {
        white-space: pre-line;
    }
    .message-form input:not([type=checkbox]):not([type=hidden]) {
        min-height: 44px;
    }

    .booking-day-card .table-scroll {
        overflow: visible;
    }
    .booking-table {
        min-width: 0;
        table-layout: auto;
        border-collapse: separate;
        border-spacing: 0 10px;
        font-size: 14px;
    }
    .booking-table thead {
        display: none;
    }
    .booking-table tbody,
    .booking-table tr,
    .booking-table td {
        display: block;
        width: 100% !important;
        white-space: normal;
    }
    .booking-table tr {
        position: relative;
        padding: 10px;
        border: 1px solid #e1e1e1;
        border-left: 4px solid #078dcc;
        border-radius: 6px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,.12);
    }
    .booking-table td {
        padding: 0;
        border: 0;
    }
    .booking-table td::before {
        display: block;
        margin: 8px 0 5px;
        color: #666;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
    }
    .booking-table td:nth-child(1)::before { content: "Disziplin"; }
    .booking-table td:nth-child(2)::before { content: "Zeit"; }
    .booking-table td:nth-child(3)::before { content: "Teilnehmer"; }
    .booking-table td:nth-child(4)::before { content: "Aufsicht"; }
    .booking-table td:nth-child(1) span,
    .booking-table td:nth-child(2) {
        font-size: 16px;
        font-weight: 700;
    }
    .slot-people {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }
    .slot-cell .booking-person,
    .slot-cell .slot-chip,
    .booking-table td > form .booking-person,
    .booking-table td > form .slot-chip,
    .supervisor-edit-cell .booking-assign-select {
        height: 42px;
        min-height: 42px;
        font-size: 13px;
    }
    .booking-person,
    .slot-chip {
        min-height: 42px;
    }
    .chip-name {
        font-size: 12px;
    }
    .chip-name-small,
    .chip-name-tiny {
        font-size: 10.5px;
    }
    .cell-action {
        right: -4px;
        top: -8px;
    }
    .supervisor-edit-cell {
        display: grid;
        grid-template-columns: 1fr 30px;
        gap: 6px;
        align-items: center;
    }
    .supervisor-edit-cell .cell-action {
        position: static;
        width: 30px;
        height: 30px;
    }
    .missing-supervisor {
        max-width: 120px;
        color: #d00000;
        background: transparent;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.05;
    }
}

@media (max-width: 420px) {
    .public-top-bar {
        align-items: flex-start;
    }
    .public-title {
        max-width: 44vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .legal-popup-button {
        font-size: 11px;
        padding-inline: 6px;
    }
    .top-bar strong {
        max-width: 44vw;
    }
    .top-bar > span {
        max-width: 36vw;
    }
    .calendar-day {
        min-height: 60px;
        padding-inline: 2px;
    }
    .day-event {
        font-size: 9px;
        min-height: 20px;
    }
    .slot-people {
        grid-template-columns: 1fr;
    }
}

/* Mobile Feinschliff nach Live-Test */
.mail-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, .38);
}
.mail-dialog {
    width: min(560px, 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 20px;
    border-top: 5px solid #078dcc;
    border-radius: 6px;
    background: #fff;
    color: #303030;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.mail-dialog h2 { margin: 0 0 12px; }
.mail-dialog label { margin: 12px 0; }
.mail-dialog textarea {
    margin-top: 8px;
    min-height: 96px;
}
.mail-dialog-check {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 600;
}
.mail-dialog-confirm {
    margin: 14px 0;
    padding: 12px;
    border-radius: 5px;
    background: #eef8fc;
    font-size: 14px;
    line-height: 1.45;
}
.mail-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}
.mail-dialog-cancel {
    background: #6b7280;
}
.mail-dialog-cancel:hover {
    background: #4b5563;
}
dialog.cancellation-dialog {
    width: min(560px, calc(100% - 32px));
    margin: auto;
    border: 0;
    border-top: 5px solid #078dcc;
}
.cancellation-dialog::backdrop { background: rgba(0, 0, 0, .38); }
.cancellation-dialog h2 { font-size: 20px; line-height: 1.3; }
.cancellation-dialog p { white-space: pre-line; overflow-wrap: anywhere; }
.cancellation-dialog .mail-dialog-actions button { min-height: 44px; }
.cancellation-confirm { background: #ac2424; }
.cancellation-confirm:hover { background: #891d1d; }

@media (max-width: 720px) {
    .top-bar {
        display: grid;
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 8px 10px 10px;
    }
    .top-bar > div {
        width: 100%;
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        align-items: center;
    }
    .top-bar strong,
    .top-bar > span {
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    .top-bar strong {
        font-size: 14px;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }
    .top-bar > span {
        font-size: 12px;
        line-height: 1.25;
        text-align: left;
        padding-left: 50px;
    }
    .nav-toggle:not(:checked) ~ .side-nav {
        position: static;
        grid-template-columns: 50px minmax(0, 1fr);
        align-items: start;
    }
    .side-logo {
        width: 50px;
        height: 50px;
    }
    .side-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .side-logout {
        display: block;
        grid-column: 2;
        width: 100%;
        margin-top: 7px;
    }
    .side-logout > .logout-button {
        width: 100% !important;
        justify-content: center !important;
    }

    .booking-table tr {
        padding: 12px 10px;
    }
    .slot-people {
        grid-template-columns: 1fr;
    }
    .slot-cell .booking-person,
    .slot-cell .slot-chip,
    .booking-table td > form .booking-person,
    .booking-table td > form .slot-chip,
    .missing-supervisor {
        height: 40px;
        min-height: 40px;
        width: 100%;
        max-width: none;
    }
    .chip-name,
    .chip-name-split,
    .chip-name-small,
    .chip-name-tiny {
        display: block;
        font-size: 13px !important;
        line-height: 1.15 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .chip-name-split span {
        display: inline;
        white-space: nowrap;
        overflow: visible;
    }
    .chip-name-split span + span::before {
        content: " ";
    }
    .booking-table td:nth-child(4) > form,
    .booking-table td:nth-child(4) > .booking-person {
        width: 100%;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }
    .missing-supervisor {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #d00000;
        background: transparent;
        font-weight: 700;
    }
    .missing-supervisor .chip-name-split,
    .missing-supervisor .chip-name {
        color: #d00000;
        font-size: 13px !important;
    }

    .training-editor {
        width: 100%;
        padding-inline: 12px;
    }
    .training-mode {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .training-mode .check {
        width: 100%;
    }
    .training-form-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    .training-form-grid > *,
    .training-field,
    .series-week-field {
        min-width: 0;
        width: 100%;
        grid-column: auto !important;
    }
    .series-week-options {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }
    .series-week-options .check {
        grid-column: auto !important;
        grid-row: auto !important;
        min-width: 0;
        width: 100%;
    }
    .training-slots-table {
        min-width: 0;
    }
    .training-slots-table thead {
        display: none;
    }
    .training-slots-table tbody,
    .training-slots-table tr,
    .training-slots-table td {
        display: block;
        width: 100% !important;
        white-space: normal;
    }
    .training-slots-table tr {
        padding: 10px;
        border: 1px solid #e1e1e1;
        border-radius: 6px;
        background: #fff;
    }
    .training-slots-table td {
        padding: 4px 0 !important;
        border: 0 !important;
    }
    .training-slots-table td:nth-child(2)::before { content: "Disziplin"; }
    .training-slots-table td:nth-child(3)::before { content: "Start"; }
    .training-slots-table td:nth-child(4)::before { content: "Ende"; }
    .training-slots-table td:nth-child(5)::before { content: "Teilnehmer"; }
    .training-slots-table td:not(:first-child)::before {
        display: block;
        margin: 2px 0 4px;
        color: #666;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
    }
    .training-slots-table input:not(.slot-row-select) {
        width: 100%;
        min-height: 42px;
    }
    .slot-edit-actions,
    .training-bulk-actions,
    .training-editor .actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .slot-edit-actions button,
    .training-editor .actions button,
    .training-bulk-actions button {
        width: 100%;
    }
    .mail-dialog {
        padding: 16px;
    }
    .mail-dialog-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .top-bar > span {
        padding-left: 0;
    }
    .public-title,
    .top-bar strong,
    .top-bar > span {
        max-width: none;
        white-space: normal;
    }
}

.mobile-legal-links {
    display: none;
}

@media (max-width: 720px) {
    body.public-body .public-top-bar {
        display: none;
    }
    body.public-body .public-main {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 18px;
        padding-bottom: 18px;
    }
    body.public-body .home-login {
        margin: auto 0;
    }
    body.public-body .mobile-legal-links {
        display: flex;
        justify-content: center;
        gap: 18px;
        margin-top: auto;
        padding-top: 18px;
        font-size: 13px;
        text-align: center;
    }
}

@media (max-width: 720px) {
    .training-mode {
        padding-left: 12px;
        padding-right: 12px;
    }
    .training-mode .check {
        justify-content: flex-start !important;
        text-align: left !important;
        margin-left: 0 !important;
        padding-left: 0;
    }
    .training-mode .check input[type=radio] {
        margin-left: 0;
    }
}

@media (max-width: 720px) {
    .training-mode {
        display: block !important;
        padding: 16px 14px !important;
    }
    .training-mode .check {
        display: flex !important;
        width: 100% !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 10px !important;
        min-height: 44px !important;
        margin: 0 0 8px 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }
    .training-mode .check:last-child {
        margin-bottom: 0 !important;
    }
    .training-mode .check input[type=radio] {
        flex: 0 0 auto !important;
        margin: 0 !important;
    }
}

@media (max-width: 720px) {
    fieldset.training-mode {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        width: 100% !important;
        padding: 16px 14px !important;
        overflow: hidden !important;
    }
    fieldset.training-mode label.training-mode-option {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 42px !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        white-space: normal !important;
    }
    fieldset.training-mode label.training-mode-option + label.training-mode-option {
        margin-top: 8px !important;
    }
    fieldset.training-mode label.training-mode-option input[type="radio"] {
        position: static !important;
        display: inline-block !important;
        flex: 0 0 20px !important;
        width: 20px !important;
        height: 20px !important;
        margin: 0 !important;
        transform: none !important;
    }
    fieldset.training-mode label.training-mode-option span {
        display: block !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        white-space: normal !important;
        overflow: visible !important;
    }
}

/* Bearbeiten-Modus: Ansicht schließen als rote Aktion */
.green-header-button.danger-header-button {
    background: #fde2e2;
    color: #9f1d1d;
}
.green-header-button.danger-header-button:hover {
    background: #f8caca;
    color: #7f1616;
}

/* Mehrere Stände eines Tages optisch als eigene Blöcke trennen */
.booking-day-card .range-block + .range-block {
    border-top: 4px solid #008dcc;
    margin-top: 34px;
    padding-top: 26px;
}

/* Orts-Tagesansicht: Trainingsart pro Standblock */
.range-category {
    margin: 0 0 8px;
    color: #666;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .14em;
    text-align: center;
    text-transform: uppercase;
}
.range-block > .lead-state {
    margin: 0 0 16px;
    text-align: center;
}

.booking-day-stack {
    display: grid;
    gap: 30px;
}
.location-training-card .range-block {
    margin-top: 26px;
}
.location-training-card + .location-training-card {
    margin-top: 0;
}

/* Kompakte Standauswahl auf der Orts-Tagesansicht */
details.location-summary-card.booking-day-card {
    display: block;
    max-width: 970px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
    transition: transform .12s ease, box-shadow .12s ease;
}

details.location-summary-card > summary {
    display: block;
    list-style: none;
    cursor: pointer;
}

details.location-summary-card > summary::-webkit-details-marker {
    display: none;
}

details.location-summary-card > summary::marker {
    content: "";
}

details.location-summary-card:hover,
details.location-summary-card:has(> summary:focus-visible) {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,.2);
}

details.location-summary-card > summary:focus-visible {
    outline: none;
}

.location-summary-card .booking-day-header {
    margin-bottom: 18px;
}

.location-summary-stand {
    margin: 8px 0 4px;
    text-align: center;
    font-size: 22px;
}

.location-detail-body {
    margin-top: 18px;
}

details.location-summary-card[open] > summary {
    display: none;
}



body.public-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.public-body .public-main {
    flex: 1 0 auto;
}
.public-legal-links {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 16px 12px 20px;
    font-size: 13px;
    text-align: center;
}
.public-legal-links a {
    color: #0074ad;
    text-decoration: underline;
}
.public-legal-links a:hover {
    color: #005f8f;
}

@media (max-width: 720px) {
    body.public-body .public-legal-links {
        margin-top: auto;
        padding-top: 18px;
    }
    body.public-body .mobile-legal-links {
        display: none;
    }
}

@media (max-width: 720px) {
    .booking-table tr.booking-slot-row {
        cursor: pointer;
    }
    .booking-table tr.booking-slot-row::after {
        content: attr(data-free-label) "  ▾";
        display: block;
        margin-top: 9px;
        padding-top: 9px;
        border-top: 1px solid #ececec;
        color: #11633b;
        font-size: 13px;
        font-weight: 700;
        text-align: center;
    }
    .booking-table tr.booking-slot-row.slot-open::after {
        content: attr(data-free-label) "  ▴";
        margin-bottom: 3px;
    }
    .booking-table tr.booking-slot-row:not(.slot-open) td:nth-child(3),
    .booking-table tr.booking-slot-row:not(.slot-open) td:nth-child(4) {
        display: none;
    }
    .booking-table tr.booking-slot-row:not(.slot-open) td:nth-child(1)::before,
    .booking-table tr.booking-slot-row:not(.slot-open) td:nth-child(2)::before {
        margin-top: 0;
    }
    .booking-table tr.booking-slot-row:not(.slot-open) td:nth-child(1),
    .booking-table tr.booking-slot-row:not(.slot-open) td:nth-child(2) {
        text-align: center;
    }
    .booking-table tr.booking-slot-row:not(.slot-open) td:nth-child(1) span,
    .booking-table tr.booking-slot-row:not(.slot-open) td:nth-child(2) {
        font-size: 15px;
    }
}

@media (max-width: 720px) {
    .booking-table tr.booking-slot-row::after,
    .booking-table tr.booking-slot-row.slot-open::after {
        content: attr(data-free-label) " * " attr(data-supervisor-label);
        border-top: 1px solid #ececec;
        color: #11633b;
    }
    .booking-table tr.booking-slot-row.slot-full::after,
    .booking-table tr.booking-slot-row.slot-missing-supervisor::after {
        color: #d00000;
    }
}

@media (max-width: 720px) {
    .booking-table tr.booking-slot-row::after,
    .booking-table tr.booking-slot-row.slot-open::after {
        content: attr(data-free-label) " · " attr(data-supervisor-label);
    }
    .booking-table tr.booking-slot-row.slot-full::after {
        color: #d00000;
    }
    .booking-table tr.booking-slot-row.slot-missing-supervisor:not(.slot-full)::after {
        color: #d00000;
    }
}

.mobile-slot-summary {
    display: none;
}

@media (max-width: 720px) {
    .booking-table tr.booking-slot-row::after,
    .booking-table tr.booking-slot-row.slot-open::after {
        display: none;
        content: none;
    }
    .booking-table tr.booking-slot-row:not(.slot-open) .mobile-slot-summary {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        margin-top: 9px;
        padding-top: 9px;
        border-top: 1px solid #ececec;
        color: #11633b;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.2;
    }
    .mobile-slot-summary .alert {
        color: #d00000;
    }
    .mobile-summary-separator {
        color: #777;
        font-weight: 700;
    }
}

.info-dialog {
    max-width: 420px;
    border-top-color: #18824f;
}
.info-dialog p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.45;
}

@media (max-width: 720px) {
    .slot-cell:has(.empty-slot) {
        display: none;
    }
}

@media (max-width: 720px) {
    .booking-table tr.booking-slot-row.slot-has-own-booking:not(.slot-open) {
        border-left-color: #18824f;
        background: #e3f6ec;
    }
    .booking-table tr.booking-slot-row.slot-has-own-booking:not(.slot-open) .mobile-slot-summary {
        border-top-color: #c0e6d1;
    }
}
