:root{--bg:#f7f1e8;--text:#2d261f;--accent:#8a5a2b;--accent-dark:#67411f;--card:#fffaf2;--line:#e5d8c6}*{box-sizing:border-box}body{margin:0;font-family:Georgia,'Times New Roman',serif;background:var(--bg);color:var(--text)}a{color:inherit}.hero{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(rgba(45,38,31,.35),rgba(45,38,31,.35)),url('/assets/img/hero-placeholder.jpg');background-size:cover;padding:24px}.container{max-width:980px;margin:0 auto;padding:32px 18px}.card,.booking-form{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:28px;box-shadow:0 12px 40px rgba(0,0,0,.08)}.button{display:inline-block;background:var(--accent);color:white;border:0;border-radius:999px;padding:13px 22px;text-decoration:none;cursor:pointer}.button:hover{background:var(--accent-dark)}label{display:block;margin:0 0 16px;font-weight:bold}input,select,textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;background:white;margin-top:6px;font:inherit}textarea{min-height:90px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px}.error{color:#9b1c1c}.sidebar{position:fixed;left:0;top:0;bottom:0;width:286px;background:linear-gradient(180deg,#2d261f,#3b2b1d);color:white;padding:22px;display:flex;flex-direction:column;gap:20px;box-shadow:10px 0 30px rgba(0,0,0,.12);overflow-y:auto}.brand{display:flex;align-items:center;gap:12px;padding:8px 4px 18px;border-bottom:1px solid rgba(255,255,255,.16)}.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:14px;background:var(--accent);font-size:24px;font-weight:bold}.brand strong{display:block;font-size:20px}.brand small{display:block;opacity:.72;margin-top:2px}.side-nav{display:flex;flex-direction:column;gap:8px}.nav-item,.nav-collapse>summary,.nav-sub{display:flex;align-items:center;text-decoration:none;border-radius:14px;color:white}.nav-item,.nav-collapse>summary{justify-content:space-between;gap:10px;padding:12px 14px;background:rgba(255,255,255,.07);cursor:pointer;list-style:none;user-select:none}.nav-collapse>summary::-webkit-details-marker{display:none}.nav-item span:last-child,.summary-left{display:flex;align-items:center;gap:10px}.nav-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:8px;background:rgba(255,255,255,.10);font-size:.9em}.chevron{transition:transform .18s ease;opacity:.75}.nav-collapse[open]>summary .chevron{transform:rotate(90deg)}.nav-subtree{margin:7px 0 2px 12px;padding-left:12px;border-left:1px solid rgba(255,255,255,.18)}.nav-subtree.child{margin-left:8px}.nav-sub{margin:6px 0 0;padding:10px 12px;color:rgba(255,255,255,.88);background:rgba(255,255,255,.045);justify-content:flex-start}.nav-collapse-child>summary{margin-top:6px;padding:10px 12px;background:rgba(255,255,255,.045);color:rgba(255,255,255,.88);font-weight:normal}.nav-item:hover,.nav-collapse>summary:hover,.nav-sub:hover,.nav-item.active,.nav-sub.active{background:rgba(255,255,255,.16)}.nav-item.active,.nav-sub.active{box-shadow:inset 3px 0 0 var(--accent)}.logout-form{margin-top:auto}.logout-form button{width:100%;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:white;border-radius:12px;padding:11px;cursor:pointer}.admin-content{margin-left:286px;padding:32px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.stat{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px}table{width:100%;border-collapse:collapse;background:white}th,td{padding:12px;border-bottom:1px solid var(--line);text-align:left}@media(max-width:760px){.grid,.stats{grid-template-columns:1fr}.sidebar{position:static;width:auto}.admin-content{margin-left:0;padding:18px}}
.admin-card{margin:0 0 24px}.admin-form .button{margin-top:6px}.secondary{background:#75685b}.notice{border-radius:12px;padding:12px 16px;margin:0 0 18px}.notice.success{background:#e8f4e4;color:#285b2a}.weekday-box{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 18px}.weekday-box label{display:flex;gap:8px;align-items:center;margin:0;background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 12px}.weekday-box input{width:auto;margin:0}.filter-form{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin-bottom:18px}.filter-form label{margin:0}.table-wrap{overflow-x:auto}.actions{display:flex;gap:12px;align-items:center}.actions form{margin:0}.small-link{font-weight:bold;color:var(--accent)}.text-danger{border:0;background:transparent;color:#9b1c1c;cursor:pointer;font:inherit;font-weight:bold;padding:0}@media(max-width:760px){.actions{display:block}.actions form{margin-top:8px}}

.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:22px}.eyebrow{text-transform:uppercase;letter-spacing:.12em;color:var(--accent);font-weight:bold;margin:0 0 6px}.page-head h1{margin:0}.head-actions{display:flex;gap:10px;flex-wrap:wrap}.status-pill{display:inline-block;padding:5px 10px;border-radius:999px;background:#f3eadc;color:#5d3b1c;font-weight:bold;font-size:.9em}
@media(max-width:760px){.page-head{display:block}.head-actions{margin-top:14px}.sidebar{box-shadow:none}.nav-sub.indent{margin-left:18px}}

@media(max-width:760px){.sidebar{position:static;width:auto;max-height:none;overflow:visible}.admin-content{margin-left:0}.nav-subtree{margin-left:8px}}

/* Frontend Buchungskalender */
.booking-page h1{margin-top:0}.intro{font-size:1.08rem;line-height:1.6;max-width:720px}.booking-step{display:flex;gap:14px;align-items:flex-start;margin:4px 0 18px}.booking-step h2{margin:0 0 4px}.muted{margin:0;color:#75685b}.step-number{width:36px;height:36px;border-radius:50%;background:var(--accent);color:white;display:flex;align-items:center;justify-content:center;font-weight:bold;flex:0 0 auto}.calendar-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;margin:0 0 18px;box-shadow:0 10px 28px rgba(0,0,0,.06)}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.calendar-toolbar strong{font-size:1.35rem}.calendar-nav{border:1px solid var(--line);background:var(--card);border-radius:999px;width:42px;height:42px;font-size:28px;line-height:1;cursor:pointer;color:var(--text)}.calendar-nav:hover{background:#f1e4d3}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.calendar-weekdays{margin-bottom:8px}.calendar-weekdays span{text-align:center;font-weight:bold;color:#75685b;font-size:.9rem}.calendar-day{min-height:94px;border:1px solid var(--line);border-radius:14px;background:#fffaf2;padding:10px;text-align:left;color:var(--text);display:flex;flex-direction:column;gap:4px;justify-content:flex-start}.calendar-day strong{font-size:1.05rem}.calendar-day span{font-weight:bold}.calendar-day small{margin-top:auto;color:#5d3b1c}.calendar-day.has-event{cursor:pointer;background:#fff6e8;border-color:#d6b98f}.calendar-day.has-event:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(0,0,0,.08)}.calendar-day.is-selected{outline:3px solid var(--accent);background:#f3e2cb}.calendar-day.is-disabled{opacity:.45;background:#f7f1e8}.calendar-day.is-empty{border:0;background:transparent}.calendar-day.is-full{opacity:.55;cursor:not-allowed;background:#f1eeee}.selected-event{border:1px dashed var(--line);background:#fffaf2;border-radius:14px;padding:14px 16px;margin:0 0 24px;color:#75685b}.selected-event.is-active{border-style:solid;background:#f1eadf;color:var(--text)}.selected-event.is-error{border-color:#9b1c1c;background:#fff0f0;color:#9b1c1c}@media(max-width:760px){.calendar-card{padding:12px}.calendar-weekdays,.calendar-grid{gap:5px}.calendar-day{min-height:76px;padding:7px;border-radius:10px;font-size:.84rem}.calendar-day span{display:none}.calendar-toolbar strong{font-size:1.1rem}}

/* Frontend booking checkout */
.booking-checkout .checkout-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 28px 0;
}

.progress-step {
    border: 1px solid rgba(95, 70, 45, .18);
    background: #fffaf4;
    color: #5f462d;
    border-radius: 18px;
    padding: 14px 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.progress-step span {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(95, 70, 45, .12);
}

.progress-step.is-active {
    background: #5f462d;
    color: #fff;
}

.progress-step.is-active span,
.progress-step.is-done span {
    background: rgba(255, 255, 255, .22);
}

.progress-step.is-done {
    background: #8a704f;
    color: #fff;
}

.checkout-panel {
    display: none;
}

.checkout-panel.is-active {
    display: block;
}

.checkout-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 26px;
    flex-wrap: wrap;
}

.button-secondary {
    background: #efe4d4;
    color: #4d3924;
}

.review-card {
    background: #fffaf4;
    border: 1px solid rgba(95, 70, 45, .16);
    border-radius: 22px;
    padding: 10px 22px;
    box-shadow: 0 16px 38px rgba(73, 50, 28, .08);
}

.review-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(95, 70, 45, .12);
}

.review-row:last-child {
    border-bottom: 0;
}

.review-row dt {
    font-weight: 800;
    color: #5f462d;
}

.review-row dd {
    margin: 0;
    white-space: pre-wrap;
}

@media (max-width: 720px) {
    .booking-checkout .checkout-progress {
        grid-template-columns: 1fr;
    }

    .checkout-actions {
        flex-direction: column-reverse;
    }

    .checkout-actions .button {
        width: 100%;
    }

    .review-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.notice {
    border-radius: 14px;
    padding: 14px 16px;
    margin: 18px 0;
    border: 1px solid rgba(80, 55, 35, .18);
    background: rgba(255, 255, 255, .72);
}
.notice-error {
    border-color: rgba(160, 45, 35, .35);
    background: rgba(160, 45, 35, .08);
}
.notice-warning {
    border-color: rgba(170, 120, 35, .35);
    background: rgba(170, 120, 35, .10);
}
.success-card {
    max-width: 860px;
    margin: 48px auto;
}
.booking-summary {
    margin: 28px 0;
}

/* Backend Auswertung */
.report-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 24px;
}
.report-stats .stat span {
    display: block;
    color: #75685b;
    font-weight: bold;
    margin-bottom: 8px;
}
.report-stats .stat strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1.15;
}
.report-stats .stat small {
    display: block;
    margin-top: 8px;
    color: #75685b;
}
.report-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
}
.bar-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.bar-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 14px;
    align-items: center;
}
.bar-label strong,
.bar-label span {
    display: block;
}
.bar-label span {
    color: #75685b;
    font-size: .92rem;
}
.bar-track,
.mini-progress {
    height: 14px;
    border-radius: 999px;
    background: #efe4d4;
    overflow: hidden;
    border: 1px solid rgba(95, 70, 45, .12);
}
.bar-track span,
.mini-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}
.mini-progress {
    min-width: 110px;
    margin-bottom: 4px;
}
@media(max-width:900px){
    .report-stats,.report-grid{grid-template-columns:1fr}
    .bar-row{grid-template-columns:1fr;gap:7px}
}

/* Action icon buttons in backend tables */
.actions,
.table-actions,
.icon-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}

.actions form,
.table-actions form,
.icon-actions form {
    margin: 0;
}

.icon-button {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid var(--line, #e3d8c8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fffaf2;
    color: var(--accent, #7a4b25);
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    font-size: 17px;
    line-height: 1;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.icon-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.icon-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .09);
    background: #f3eadc;
}

.icon-delete {
    color: #9b1c1c;
}

.icon-delete:hover {
    background: #fff0f0;
}

@media (max-width: 760px) {
    .actions,
    .table-actions,
    .icon-actions {
        justify-content: flex-start;
    }
}

/* Booking import / export */
.page-head-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.import-upload-card {
    margin-bottom: 24px;
}
.import-upload-form {
    display: flex;
    gap: 14px;
    align-items: end;
    flex-wrap: wrap;
}
.import-upload-form label {
    min-width: min(420px, 100%);
    flex: 1;
}
.import-upload-form input[type="file"] {
    display: block;
    width: 100%;
    margin-top: 7px;
}
.import-help {
    margin: 14px 0 0;
    color: #75685b;
    font-size: .92rem;
}
.import-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.import-preview-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}
.import-preview-head h2 {
    margin-bottom: 4px;
}
.import-row-error {
    background: rgba(160, 45, 35, .055);
}
.import-row-update {
    background: rgba(170, 120, 35, .06);
}
.import-state {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 800;
    white-space: nowrap;
}
.import-state-ok {
    background: rgba(43, 122, 72, .12);
    color: #23633d;
}
.import-state-update {
    background: rgba(170, 120, 35, .13);
    color: #765415;
}
.import-state-error {
    background: rgba(160, 45, 35, .12);
    color: #8a2720;
}
.import-errors {
    margin: 0;
    padding-left: 18px;
    color: #8a2720;
}
.import-preview-table small {
    color: #75685b;
}
@media (max-width: 900px) {
    .page-head-actions {
        justify-content: flex-start;
    }
    .import-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .import-preview-head {
        align-items: flex-start;
        flex-direction: column;
    }
}
@media (max-width: 620px) {
    .page-head-actions .button,
    .import-upload-form .button,
    .import-preview-head .button {
        width: 100%;
        text-align: center;
    }
    .import-stats {
        grid-template-columns: 1fr;
    }
}

/* Kundenportal: Buchung verwalten */
.manage-page {
    padding-top: 34px;
    padding-bottom: 54px;
}
.manage-hero {
    margin-bottom: 22px;
}
.manage-hero.compact {
    margin-bottom: 18px;
}
.manage-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}
.manage-summary-grid > div {
    padding: 15px 16px;
    border-radius: 16px;
    background: #fffaf4;
    border: 1px solid rgba(95, 70, 45, .12);
}
.manage-summary-grid span,
.manage-summary-grid strong {
    display: block;
}
.manage-summary-grid span {
    color: #75685b;
    font-size: .84rem;
    margin-bottom: 5px;
}
.manage-summary-grid strong {
    overflow-wrap: anywhere;
}
.manage-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.manage-choice-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
.manage-choice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(73, 50, 28, .12);
}
.manage-choice-card h2 {
    margin-top: 0;
}
.manage-choice-icon {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #efe4d4;
    color: #5f462d;
    font-size: 27px;
    font-weight: 800;
}
.manage-choice-danger .manage-choice-icon {
    background: rgba(160, 45, 35, .10);
    color: #8a2720;
}
.button-danger {
    background: #8a2720;
    color: #fff;
}
.manage-security-note {
    margin: 20px 0 0;
    color: #75685b;
    font-size: .9rem;
    text-align: center;
}
.manage-edit-panel {
    display: none;
    margin-bottom: 18px;
}
.manage-edit-panel.is-active {
    display: block;
}
.manage-event-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 24px;
}
.manage-event-option {
    appearance: none;
    border: 1px solid rgba(95, 70, 45, .18);
    background: #fffaf4;
    border-radius: 16px;
    padding: 14px;
    text-align: left;
    color: inherit;
    cursor: pointer;
    font: inherit;
}
.manage-event-option strong,
.manage-event-option span,
.manage-event-option small {
    display: block;
}
.manage-event-option span {
    margin: 4px 0;
}
.manage-event-option small {
    color: #75685b;
}
.manage-event-option:hover:not(:disabled) {
    border-color: #7a5a3c;
}
.manage-event-option.is-selected {
    border-color: #5f704f;
    box-shadow: 0 0 0 2px rgba(95, 112, 79, .12);
    background: #f5f7ef;
}
.manage-event-option:disabled {
    cursor: not-allowed;
    opacity: .48;
}
.manage-price-note {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f5f7ef;
    border: 1px solid rgba(95, 112, 79, .18);
}
.manage-price-note small {
    display: block;
    margin-top: 5px;
    color: #667066;
}
@media (max-width: 900px) {
    .manage-summary-grid,
    .manage-event-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 680px) {
    .manage-summary-grid,
    .manage-choice-grid,
    .manage-event-list {
        grid-template-columns: 1fr;
    }
    .manage-choice-card {
        grid-template-columns: 44px 1fr;
        gap: 14px;
    }
    .manage-choice-icon {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }
}

/* Einstellungen: Kunden-Buchungsverwaltung */
.settings-form h2:not(:first-child) {
    margin-top: 30px;
}
.settings-radio-list,
.settings-check-grid {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}
.settings-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.settings-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(95, 70, 45, .14);
    border-radius: 14px;
    background: #fffaf4;
    cursor: pointer;
}
.settings-choice input {
    width: auto;
    margin: 0;
}
.manage-choice-card.is-disabled {
    opacity: .66;
    cursor: default;
}
@media (max-width: 720px) {
    .settings-check-grid {
        grid-template-columns: 1fr;
    }
}


/* Kommunikation / Mailprotokoll */
.icon-mail { color: #46644c; }
.icon-mail:hover { background: rgba(70,100,76,.10); }
.button-small { padding: 7px 10px; font-size: 13px; white-space: nowrap; }
.communication-table td { vertical-align: top; }
.communication-table small { color: #75685b; }
.mail-error-cell { max-width: 360px; }
.mail-error-cell details summary { cursor: pointer; color: #9b3f36; font-weight: 600; }
.mail-error-cell pre { white-space: pre-wrap; word-break: break-word; margin: 8px 0 0; padding: 10px; border-radius: 10px; background: #fff3f1; color: #7c3029; font-size: 12px; }
@media (max-width: 900px) {
    .communication-table { min-width: 980px; }
}

/* Vertragsmodul */
.contract-admin-card { margin: 0 0 22px; }
.contract-admin-card .page-head { margin-bottom: 0; }
.contract-admin-card .page-head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.contract-admin-card form { margin: 0; }
.contract-customer-box { margin-top: 22px; }
.contract-customer-box .button { margin-top: 8px; }
.contract-text-block { display: block; margin: 18px 0; font-weight: 600; }
.contract-text-block textarea { display: block; width: 100%; margin-top: 7px; min-height: 120px; font-weight: 400; }
.icon-contract, .icon-confirm { text-decoration: none; font-size: 16px; line-height: 1; }
.icon-confirm { font-weight: 800; }
@media (max-width: 760px) {
  .contract-admin-card .page-head-actions { width: 100%; align-items: stretch; }
  .contract-admin-card .page-head-actions .button { width: 100%; text-align: center; }
}

/* Systemdiagnose */
.system-diagnostics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:22px}.system-diagnostic-card{display:grid;grid-template-columns:42px 1fr;gap:14px;align-items:start;margin:0}.system-diagnostic-card h2{font-size:1rem;margin:0 0 5px}.system-diagnostic-card p{margin:0;color:#75685b;overflow-wrap:anywhere}.system-diagnostic-status{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800}.system-diagnostic-card.is-ok .system-diagnostic-status{background:rgba(61,116,70,.12);color:#3d7446}.system-diagnostic-card.is-error .system-diagnostic-status{background:rgba(155,63,54,.12);color:#9b3f36}.system-diagnostic-summary code,.system-disabled-functions code{overflow-wrap:anywhere}.system-disabled-functions{margin-top:18px}.system-disabled-functions summary{cursor:pointer;font-weight:600;margin-bottom:10px}@media(max-width:760px){.system-diagnostics-grid{grid-template-columns:1fr}}

/* Release hardening / contract acceptance */
.button-contract-accept{background:#a33a24!important;color:#fff!important;font-weight:700;box-shadow:0 8px 22px rgba(163,58,36,.28)}
.button-contract-accept:hover{background:#7f2d1c!important}.contract-action-buttons{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:16px 0}.contract-action-buttons form{margin:0}.contract-review-card{max-width:760px;margin:40px auto}.report-monthly-full{width:100%}.user-table form{margin:0}


/* Backend UI alignment fix: users + booking list */
.user-create-card,
.user-list-card {
    margin-bottom: 24px;
}
.user-list-card .section-title-row {
    margin-bottom: 18px;
}
.user-list-card .section-title-row h2 {
    margin: 0 0 6px;
}
.user-list-card .section-title-row p {
    margin: 0;
    color: #75685b;
}
.user-table {
    table-layout: fixed;
    min-width: 860px;
}
.user-table th,
.user-table td {
    vertical-align: middle;
}
.user-table th:nth-child(1) { width: 35%; }
.user-table th:nth-child(2) { width: 18%; }
.user-table th:nth-child(3) { width: 12%; }
.user-table th:nth-child(4) { width: 15%; }
.user-table th:nth-child(5) { width: 20%; }
.user-actions-head,
.user-actions-cell {
    text-align: right;
}
.table-action-group {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
}
.table-action-group form {
    margin: 0;
    display: inline-flex;
}
.icon-button.is-disabled {
    opacity: .35;
    cursor: not-allowed;
    pointer-events: none;
}

.booking-stats .stat {
    min-height: 88px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.booking-stats .stat strong,
.booking-stats .stat span {
    display: block;
}
.booking-stats .stat strong {
    font-size: 1.55rem;
    line-height: 1.05;
}
.booking-stats .stat span {
    color: #75685b;
    font-size: .95rem;
}
.booking-filter {
    display: grid;
    grid-template-columns: minmax(150px,.8fr) minmax(150px,.8fr) minmax(260px,1.55fr) minmax(220px,1.2fr) auto;
    gap: 16px;
    align-items: end;
    padding: 24px 28px;
}
.booking-filter label {
    min-width: 0;
}
.booking-filter input,
.booking-filter select {
    margin-top: 8px;
}
.booking-filter-cancelled {
    display: flex !important;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding-bottom: 2px;
    white-space: nowrap;
}
.booking-filter-cancelled input {
    width: auto;
    margin: 0;
}
.booking-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2px;
}
.booking-actions-cell {
    white-space: nowrap;
    text-align: right;
}
.admin-table th:last-child,
.admin-table td:last-child {
    padding-right: 18px;
}

@media (max-width: 1250px) {
    .booking-filter {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .booking-filter-event,
    .booking-filter-search {
        grid-column: span 1;
    }
    .booking-filter-cancelled {
        grid-column: 1 / -1;
    }
}
@media (max-width: 760px) {
    .booking-filter {
        grid-template-columns: 1fr;
        padding: 18px;
    }
    .booking-filter-event,
    .booking-filter-search,
    .booking-filter-cancelled,
    .booking-filter-actions {
        grid-column: 1;
    }
    .booking-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .booking-filter-actions .button {
        width: 100%;
        text-align: center;
    }
    .user-list-card {
        padding: 18px;
    }
}

/* Küstenmühle Branding */
.frontend-brand{display:flex;justify-content:center;margin:0 auto 24px}.frontend-brand img{display:block;width:min(280px,72vw);height:auto;mix-blend-mode:multiply}.brand.brand-logo{align-items:center}.brand.brand-logo img{width:86px;height:auto;border-radius:10px;background:#fff;padding:4px}.brand.brand-logo strong{font-size:18px}.login-card{width:min(460px,100%)}.login-logo{display:flex;justify-content:center;margin-bottom:20px}.login-logo img{width:min(260px,72vw);height:auto;mix-blend-mode:multiply}@media(max-width:760px){.brand.brand-logo img{width:72px}.frontend-brand{margin-bottom:18px}.frontend-brand img{width:min(230px,70vw)}}
.brand.brand-logo{flex-direction:column;justify-content:center;text-align:center;gap:8px}.brand.brand-logo img{width:170px;max-width:100%;height:auto}.brand.brand-logo strong{font-size:18px}.brand.brand-logo small{margin-top:1px}@media(max-width:760px){.brand.brand-logo{flex-direction:row;justify-content:flex-start;text-align:left}.brand.brand-logo img{width:110px}}

/* Frontend-Logo kompakt: das Quelldokument ist quadratisch und enthält viel Weißraum. */
.frontend-brand {
    width: 100%;
    height: 108px;
    margin: 0 auto 10px;
    overflow: hidden;
    align-items: flex-start;
}
.frontend-brand img {
    width: 190px;
    max-width: 55vw;
    height: auto;
    transform: translateY(-47px);
}

@media (max-width: 760px) {
    .frontend-brand {
        height: 88px;
        margin-bottom: 8px;
    }
    .frontend-brand img {
        width: 160px;
        max-width: 54vw;
        transform: translateY(-39px);
    }
}

/* Mobile calendar readability */
@media (max-width: 760px) {
  .calendar-card {
    padding: 10px 7px 12px;
    border-radius: 16px;
  }

  .calendar-toolbar {
    margin-bottom: 12px;
    gap: 8px;
  }

  .calendar-toolbar strong {
    font-size: 1.22rem;
  }

  .calendar-nav {
    width: 40px;
    height: 40px;
    font-size: 25px;
    flex: 0 0 40px;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 4px;
  }

  .calendar-weekdays span {
    font-size: .82rem;
  }

  .calendar-day {
    min-height: 78px;
    padding: 7px 2px 6px;
    border-radius: 10px;
    align-items: center;
    text-align: center;
    gap: 2px;
    overflow: hidden;
  }

  .calendar-day strong {
    font-size: 1.05rem;
    line-height: 1.05;
  }

  /* Eventtitel auf Mobilgeräten ausblenden – der Termin ist durch die Markierung eindeutig. */
  .calendar-day > span {
    display: none;
  }

  .calendar-day small {
    display: block;
    width: 100%;
    margin-top: auto;
    font-size: .72rem;
    line-height: 1.12;
    text-align: center;
    color: #5d3b1c;
  }

  /* Unbuchbare Tage bleiben ruhig und zeigen nur das Datum. */
  .calendar-day.is-disabled small {
    display: none;
  }

  .calendar-day.is-disabled {
    justify-content: flex-start;
    padding-top: 10px;
  }

  .calendar-day.has-event {
    border-width: 1.5px;
  }

  .calendar-day.is-selected {
    outline-width: 2px;
    outline-offset: 0;
  }
}

@media (max-width: 390px) {
  .calendar-card {
    padding-left: 5px;
    padding-right: 5px;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 3px;
  }

  .calendar-day {
    min-height: 74px;
    border-radius: 9px;
  }

  .calendar-day small {
    font-size: .69rem;
  }
}
@media (max-width: 760px) {
  .calendar-day small b { display:block; font-size:.82rem; line-height:1.05; font-weight:600; }
  .calendar-day small .calendar-free-long { display:none; }
}

/* Bot protection: invisible honeypot, kept outside the visible viewport. */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
