:root {
    --bg: #f3f5f7;
    --panel: #ffffff;
    --text: #1f2933;
    --muted: #546477;
    --line: #dce2e7;
    --brand: #154c5d;
    --brand-dark: #0e3946;
    --free: #79c990;
    --selected: #438ed7;
    --cart: #438ed7;
    --past: #f2f4f5;
    --pending: #e7a33a;
    --booked: #d85a5a;
    --blocked: #9ca3aa;
    --radius: 16px;
    --site-header-height: 68px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; min-height: 100vh; background: var(--bg); }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
.site-header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px clamp(18px, 4vw, 52px); background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.brand { color: var(--text); text-decoration: none; font-weight: 750; letter-spacing: -.02em; }
.top-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: .94rem; }
.top-nav a:hover { color: var(--text); }
.page-shell { max-width: 1440px; margin: 0 auto; padding: 12px clamp(18px, 4vw, 52px) 80px; }
.page-intro { margin-bottom: 22px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.04em; margin-bottom: 10px; }
h2 { font-size: 1.2rem; letter-spacing: -.015em; margin-bottom: 8px; }
.eyebrow { margin-bottom: 7px; color: var(--brand); text-transform: uppercase; font-size: .76rem; font-weight: 800; letter-spacing: .12em; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 760px; line-height: 1.55; }
.muted { color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.7vw, 28px); }
.alert { padding: 12px 14px; border-radius: 11px; margin: 14px 0; line-height: 1.45; }
.alert-error { background: #fff0f0; border: 1px solid #f2c2c2; color: #873535; }
.alert-success { background: #eefaf1; border: 1px solid #bfe5c8; color: #27633a; }
.hidden { display: none !important; }
.auth-wrap {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 180px);
    padding: 32px 16px;
    box-sizing: border-box;
}

/* Normale Login-/Auth-Box */
.auth-panel {
    width: min(480px, 100%);
    box-sizing: border-box;
}

/* Breite Variante, z. B. Login mit Intrografik */
.auth-panel.wide {
    width: min(720px, 100%);
    padding: 0;
    overflow: hidden;
}

/* Intrografik */
.auth-intro-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

/* Inhalt unterhalb der Grafik */
.auth-content {
    width: 100%;
    padding: 32px 42px 48px;
    box-sizing: border-box;
}

/* Link unter dem Formular */
.auth-link {
    margin: 22px 0 0;
    text-align: center;
    color: var(--muted);
}

/* Mobile */
@media (max-width: 640px) {
    .auth-wrap {
        padding: 20px 12px;
    }

    .auth-panel,
    .auth-panel.wide {
        width: 100%;
    }

    .auth-content {
        padding: 26px 22px 36px;
    }
}
.stack-form { display: grid; gap: 14px; }
.stack-form.two-col { grid-template-columns: repeat(2, 1fr); }
.stack-form .span-two { grid-column: 1 / -1; }
.stack-form.compact { gap: 10px; }
label { display: grid; gap: 7px; font-weight: 650; font-size: .92rem; }
label small { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], select, textarea {
    width: 100%; border: 1px solid #cbd4dc; background: #fff; color: var(--text); border-radius: 10px; padding: 11px 12px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: #6ca4b5; box-shadow: 0 0 0 3px rgba(21,76,93,.12); }
.button { border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 750; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.button.primary { color: #fff; background: var(--brand); }
.button.primary:hover { background: var(--brand-dark); }
.button.secondary { color: var(--text); background: #eef1f3; }
.button.danger { color: #8b2f2f; background: #fff0f0; }
.button.full { width: 100%; }
.text-button { border: 0; background: none; padding: 0; color: var(--brand); font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; }
.icon-button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 1.5rem; line-height: 1; }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.booking-layout.readonly { grid-template-columns: 1fr; }
.booking-main { min-width: 0; }
.calendar-panel { padding-bottom: 18px; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.calendar-toolbar h2, .calendar-toolbar p { margin-bottom: 2px; }
.month-nav { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.month-nav strong { min-width: 150px; text-align: center; text-transform: capitalize; }
.calendar-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.availability-calendar { --calendar-days: 31; min-width: 780px; display: grid; grid-template-columns: 94px repeat(var(--calendar-days), minmax(22px, 1fr)); }
.calendar-day-head, .calendar-board-head { min-height: 48px; border-right: 1px solid #e6eaed; border-bottom: 1px solid #e6eaed; display: flex; align-items: center; justify-content: center; }
.calendar-day-head { flex-direction: column; font-size: .76rem; color: var(--muted); }
.calendar-day-head span { font-weight: 800; color: var(--text); }
.calendar-day-head small { font-size: .68rem; }
.calendar-day-head.weekend { background: #f7f8f9; }
.calendar-board-head { position: sticky; left: 0; z-index: 2; background: #fff; padding: 6px 8px; justify-content: center; flex-direction: column; align-items: flex-start; font-size: .82rem; line-height: 1.15; }
.calendar-board-head strong { display: block; max-width: 78px; overflow: hidden; white-space: normal; overflow-wrap: anywhere; }
.calendar-board-head small { display: block; max-width: 78px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: .62rem; font-weight: 400; margin-top: 3px; }
.calendar-corner { z-index: 3; color: var(--muted); font-size: .78rem; font-weight: 700; }
.calendar-cell { min-height: 48px; border: 0; border-right: 1px solid rgba(255,255,255,.5); border-bottom: 1px solid rgba(255,255,255,.5); padding: 0; position: relative; }
.calendar-cell.free { background: var(--free); }
.calendar-cell.selected { background: var(--selected); }
.calendar-cell.cart { background: var(--cart); }
.calendar-cell.past { background: var(--past); }
.calendar-cell.pending { background: var(--pending); }
.calendar-cell.booked { background: var(--booked); }
.calendar-cell.blocked { background: var(--blocked); }
.calendar-cell.free:hover, .calendar-cell.cart:hover { filter: brightness(.93); outline: 2px solid rgba(31,41,51,.35); outline-offset: -2px; }
.calendar-cell.weekend { background-image: linear-gradient(rgba(255,255,255,.10), rgba(255,255,255,.10)); }
.calendar-loading { padding: 30px; color: var(--muted); }
.calendar-tooltip { position: fixed; z-index: 999; max-width: 320px; padding: 9px 11px; border-radius: 8px; background: #1f2933; color: #fff; font-size: .78rem; line-height: 1.45; white-space: pre-line; pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.16); }
.legend { display: flex; gap: 14px 18px; flex-wrap: wrap; margin-top: 13px; color: var(--muted); font-size: .8rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.legend-dot.free { background: var(--free); }.legend-dot.selected { background: var(--selected); }.legend-dot.cart { background: var(--cart); }.legend-dot.pending { background: var(--pending); }.legend-dot.booked { background: var(--booked); }.legend-dot.blocked { background: var(--blocked); }.legend-dot.past { background: var(--past); border: 1px solid var(--line); }
.calendar-note {
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
}
.composer-panel { margin-top: 22px; }
.composer-edit-note { margin: -4px 0 18px; padding: 10px 12px; border: 1px solid #b9d3dc; border-radius: 10px; background: #eef7f9; color: var(--brand-dark); font-size: .9rem; }
.section-heading { margin-bottom: 18px; }
.composer-grid { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr); gap: 24px; }
.board-picker { border: 0; padding: 0; margin: 0; }
.board-picker legend { font-weight: 800; margin-bottom: 10px; }
.check-row { display: flex; grid-template-columns: none; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eef0f2; font-weight: 500; }
.check-row input { width: 18px; height: 18px; accent-color: var(--brand); }
.composer-fields { display: grid; grid-template-columns: 1fr 1fr 90px; gap: 12px; align-items: end; }
.composer-actions { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.composer-actions .button { grid-column: auto; }
.period-preview { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 3px 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #f7f9fa; }
.period-preview-label { color: var(--muted); font-size: .78rem; font-weight: 700; grid-column: 1 / -1; }
.period-preview strong { font-size: 1rem; }
.period-preview-summary { justify-self: end; font-size: .82rem; }
.sticky-cart { position: sticky; top: calc(var(--site-header-height, 68px) + 16px); }
.cart-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.count-badge { min-width: 30px; height: 30px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; background: #eef2f4; border-radius: 999px; font-weight: 800; }
.cart-item { padding: 13px 0; border-top: 1px solid #edf0f2; font-size: .9rem; line-height: 1.45; }
.cart-item-top { display: flex; justify-content: space-between; gap: 10px; }
.cart-item-actions { display: inline-flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.cart-item.is-editing { background: #f2f8fa; margin-inline: -10px; padding-inline: 10px; border-radius: 9px; }
.cart-empty { color: var(--muted); padding: 18px 0; border-top: 1px solid #edf0f2; }
.cart-total { border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding: 16px 0; margin-top: 4px; }
.mobile-cart-shell { display: none; }
.list-stack { display: grid; gap: 12px; }
.booking-card { display: grid; grid-template-columns: 1.3fr .8fr .8fr .6fr; gap: 16px; align-items: center; }
.status { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: .78rem; font-weight: 750; background: #eef1f3; }
.status-pending { background: var(--status-booking-pending-bg, #fff3dc); color: var(--status-booking-pending-text, #815913); }
.status-confirmed { background: var(--status-booking-confirmed-bg, #e6f7eb); color: var(--status-booking-confirmed-text, #27623a); }
.status-cancelled { background: var(--status-booking-cancelled-bg, #eff1f2); color: var(--status-booking-cancelled-text, #697078); }
.status-completed { background: var(--status-booking-completed-bg, #eef0f2); color: var(--status-booking-completed-text, #4f5963); }
.payment-status-unpaid { background: var(--status-payment-unpaid-bg, #fff3dc); color: var(--status-payment-unpaid-text, #815913); }
.payment-status-paid { background: var(--status-payment-paid-bg, #e6f7eb); color: var(--status-payment-paid-text, #27623a); }
.payment-status-refunded { background: var(--status-payment-refunded-bg, #f0ebf7); color: var(--status-payment-refunded-text, #5a4778); }
.user-status-pending { background: var(--status-user-pending-bg, #fff3dc); color: var(--status-user-pending-text, #815913); }
.user-status-active { background: var(--status-user-active-bg, #e6f7eb); color: var(--status-user-active-text, #27623a); }
.user-status-restricted { background: var(--status-user-restricted-bg, #f0ebf7); color: var(--status-user-restricted-text, #5a4778); }
.user-status-blocked { background: var(--status-user-blocked-bg, #eff1f2); color: var(--status-user-blocked-text, #697078); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; min-width: 120px; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.dashboard-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric { padding: 20px; }.metric strong { display: block; font-size: 2rem; letter-spacing: -.04em; }.metric span { color: var(--muted); font-size: .85rem; }
/* BETA 1 / 0.4.3.6: Dashboard-Kennzahlen greifen direkt die konfigurierbaren Kalenderfarben auf. */
.metric-calendar-pending { background: color-mix(in srgb, var(--pending) 30%, #fff); border-color: color-mix(in srgb, var(--pending) 55%, #fff); }
.metric-calendar-booked { background: color-mix(in srgb, var(--booked) 30%, #fff); border-color: color-mix(in srgb, var(--booked) 55%, #fff); }
.metric-calendar-cart { background: color-mix(in srgb, var(--cart) 27%, #fff); border-color: color-mix(in srgb, var(--cart) 52%, #fff); }
.metric-calendar-pending span, .metric-calendar-booked span, .metric-calendar-cart span { color: color-mix(in srgb, var(--text) 84%, transparent); }
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; }
.empty-state { color: var(--muted); }

.admin-editor-table input,
.admin-editor-table select,
.editable-blocks input,
.editable-blocks select { min-width: 110px; }
.admin-editor-table td:nth-child(3) input { min-width: 220px; }
.admin-editor-table .compact-check { border-bottom: 0; padding: 0; white-space: nowrap; }
.admin-editor-table .new-row td { background: #f8fafb; border-top: 2px solid var(--line); }
.editor-hint { margin: 14px 0 0; font-size: .82rem; }
.global-save { display: flex; justify-content: flex-end; }
.danger-text { color: #9a3e3e; }
.customer-edit-panel { border-color: #c8d9df; }

code { padding: 2px 5px; border-radius: 5px; background: #eef1f3; }

@media (max-width: 1220px) {
    .dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .booking-layout { grid-template-columns: 1fr; }
    .sticky-cart { position: static; }
    .availability-calendar { min-width: 640px; grid-template-columns: 74px repeat(var(--calendar-days), minmax(18px, 1fr)); }
    .calendar-board-head { padding: 5px 6px; font-size: .72rem; }
    .calendar-board-head strong { max-width: 62px; }
    .calendar-board-head small { max-width: 62px; font-size: .56rem; }
    .calendar-day-head { font-size: .68rem; }
    .calendar-day-head small { font-size: .6rem; }
    .admin-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .calendar-panel { padding-left: 12px; padding-right: 12px; }
    .availability-calendar { min-width: 610px; grid-template-columns: 58px repeat(var(--calendar-days), minmax(17px, 1fr)); }
    .calendar-board-head { font-size: .66rem; padding: 4px; }
    .calendar-board-head strong { max-width: 50px; }
    .calendar-board-head small { display: none; }
    .page-shell { padding-bottom: 96px; }
    .site-header { align-items: flex-start; flex-direction: column; gap: 10px; }
    .top-nav { justify-content: flex-start; gap: 10px 14px; }
    .calendar-toolbar { align-items: flex-start; flex-direction: column; }
    .composer-grid, .composer-fields, .stack-form.two-col { grid-template-columns: 1fr; }
    .stack-form .span-two { grid-column: auto; }
    .composer-actions { grid-template-columns: 1fr; }
    .period-preview { grid-column: auto; grid-template-columns: 1fr; }
    .period-preview-summary { justify-self: start; }
    .desktop-cart { display: none; }
    .mobile-cart-shell { display: block; position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(0,0,0,.10); }
    .mobile-cart-toggle { width: 100%; min-height: 58px; border: 0; background: #fff; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 16px; text-align: left; color: var(--text); }
    .cart-chevron { font-size: 1.2rem; transition: transform .2s ease; }
    .mobile-cart-shell.open .cart-chevron { transform: rotate(180deg); }
    .mobile-cart-drawer { max-height: 65vh; overflow-y: auto; padding: 0 16px 16px; }
    .booking-card { grid-template-columns: 1fr 1fr; }
    .admin-grid, .form-grid { grid-template-columns: 1fr; }
}

/* Alpha 0.2.4: read-only admin calendar + transparent live carts. */
.admin-calendar-panel { margin-bottom: 24px; }
.admin-availability-calendar .admin-calendar-cell { cursor: default; }

/* Alpha 0.2.5: Werbeflächen-Profile, BRouter/OpenStreetMap und Fotos. */
input[type="url"] {
    width: 100%; border: 1px solid #cbd4dc; background: #fff; color: var(--text); border-radius: 10px; padding: 11px 12px; outline: none;
}
input[type="url"]:focus { border-color: #6ca4b5; box-shadow: 0 0 0 3px rgba(21,76,93,.12); }

.board-profile-list { display: grid; gap: 22px; }
.board-profile { overflow: hidden; }
.board-profile-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.board-profile-heading h2 { font-size: 1.45rem; margin-bottom: 7px; }
.board-address { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.45; }
.board-profile-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.board-profile-photo, .board-profile-map, .board-photo-preview, .board-map-preview { min-width: 0; }
.board-profile-photo img, .board-photo-preview img { width: 100%; height: 100%; min-height: 280px; max-height: 430px; object-fit: cover; display: block; border-radius: 12px; background: #eef1f3; }
.board-profile-map { display: grid; grid-template-rows: minmax(280px, 1fr) auto; gap: 8px; }
.board-profile-map iframe, .board-map-preview iframe { width: 100%; height: 100%; min-height: 280px; border: 1px solid var(--line); border-radius: 12px; display: block; background: #eef1f3; }
.board-map-link { justify-self: start; font-size: .84rem; }
.board-media-placeholder { min-height: 280px; display: grid; place-items: center; padding: 24px; border: 1px dashed #cbd4dc; border-radius: 12px; background: #f7f9fa; color: var(--muted); text-align: center; }
.board-media-placeholder.warning { color: #873535; background: #fff7f7; border-color: #e3b7b7; }

.board-admin-list { display: grid; gap: 18px; }
.board-admin-card { padding: 22px; }
.board-admin-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.board-admin-heading h2 { font-size: 1.25rem; margin-bottom: 0; }
.board-active-check { align-self: center; border-bottom: 0; padding: 0; white-space: nowrap; }
.board-admin-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 22px; align-items: start; }
.board-field-grid { display: grid; grid-template-columns: minmax(120px, .35fr) minmax(220px, 1fr); gap: 14px; }
.board-field-grid .span-two { grid-column: 1 / -1; }
.board-field-grid input[type="file"] { width: 100%; max-width: 100%; color: var(--muted); font-weight: 400; }
.remove-image-check { margin-top: 14px; border: 0; color: var(--muted); font-weight: 500; }
.board-admin-preview { display: grid; gap: 12px; }
.board-photo-preview img, .board-photo-preview .board-media-placeholder, .board-map-preview iframe, .board-map-preview .board-media-placeholder { min-height: 190px; max-height: 240px; }
.board-photo-preview img { object-fit: cover; }
.map-preview-status { margin: 0; font-size: .78rem; line-height: 1.4; }
.new-board-card { border-style: dashed; }
.board-admin-form .global-save { position: sticky; bottom: 14px; z-index: 10; margin-top: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); }

@media (max-width: 900px) {
    .board-profile-media, .board-admin-layout { grid-template-columns: 1fr; }
    .board-profile-photo img, .board-profile-map iframe, .board-media-placeholder { min-height: 240px; }
    .board-admin-preview { grid-template-columns: 1fr 1fr; }
    .board-admin-preview .map-preview-status { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .board-field-grid, .board-admin-preview { grid-template-columns: 1fr; }
    .board-field-grid .span-two, .board-admin-preview .map-preview-status { grid-column: auto; }
    .board-profile-photo img, .board-profile-map iframe, .board-media-placeholder { min-height: 210px; }
    .board-admin-heading { align-items: flex-start; flex-direction: column; }
}

/* Alpha 0.2.6: Beschreibung im Werbeflächen-Profil. */
.board-description {
    margin: -2px 0 20px;
    max-width: 78ch;
    color: var(--text);
    line-height: 1.65;
}
.board-field-grid textarea {
    width: 100%;
    min-height: 132px;
    resize: vertical;
}

/* Alpha 0.2.7 – Mehrfachauswahl für Sperrzeiten */
.block-create-form {
    display: grid;
    grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
    gap: 28px;
    align-items: start;
}
.block-board-picker .check-row-all {
    padding-top: 0;
    margin-bottom: 3px;
    border-bottom-color: var(--line);
}
.block-create-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}
.block-create-fields .block-reason,
.block-create-fields .block-create-action {
    grid-column: 1 / -1;
}
.block-create-action {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 820px) {
    .block-create-form { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .block-create-fields { grid-template-columns: 1fr; }
    .block-create-fields .block-reason,
    .block-create-fields .block-create-action { grid-column: auto; }
    .block-create-action .button { width: 100%; }
}


/* Alpha 0.2.8: zentrale Status-Nomenklatur und Statusfarben. */
.status-settings-form { display: grid; gap: 18px; }
.status-editor-panel { padding-bottom: 18px; }
.status-editor-table td:first-child { width: 150px; }
.status-editor-table td:nth-child(2) { min-width: 220px; }
.status-editor-table td:nth-child(3) { min-width: 190px; }
.status-editor-table td:nth-child(4) { min-width: 180px; }
.status-color-control { display: grid; grid-template-columns: 46px minmax(110px, 1fr); gap: 9px; align-items: center; }
.status-color-control input[type="color"] { width: 46px; height: 42px; padding: 3px; border: 1px solid #cbd4dc; border-radius: 9px; background: #fff; cursor: pointer; }
.status-color-control input[type="text"] { min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: uppercase; }
.status-calendar-preview { width: 34px; height: 24px; border-radius: 6px; border: 1px solid rgba(31,41,51,.10); display: inline-block; vertical-align: middle; margin-right: 8px; }
.status-preview-label { vertical-align: middle; font-size: .86rem; }
.status-config-preview { transition: background-color .15s ease, color .15s ease; }
.status-global-actions { margin-top: 2px; }
.status-reset-form { margin-top: 12px; display: flex; justify-content: flex-end; }

@media (max-width: 700px) {
    .status-color-control { grid-template-columns: 42px minmax(100px, 1fr); }
    .status-editor-table td:first-child { width: auto; }
}

/* Alpha 0.2.9: minimales Rollen-/Rechtekonzept und Registrierungsfreigabe. */
.permission-note { margin-bottom: 18px; }
.team-role { white-space: nowrap; }
.registration-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.registration-settings-grid .span-two { grid-column: 1 / -1; }
@media (max-width: 700px) { .registration-settings-grid { grid-template-columns: 1fr; } .registration-settings-grid .span-two { grid-column: auto; } }

/* Alpha 0.4.0 – Rechnungsstellung */
.invoice-settings-panel { margin-bottom: 24px; padding: 0; overflow: hidden; }
.invoice-settings-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 800;
    color: var(--ink);
    user-select: none;
    list-style: none;
}
.invoice-settings-summary::-webkit-details-marker { display: none; }
.invoice-settings-summary::marker { content: ''; }
.invoice-settings-summary:hover { background: rgba(15, 83, 99, .035); }
.invoice-settings-summary:focus-visible { outline: 3px solid rgba(21, 96, 117, .28); outline-offset: -3px; }
.invoice-settings-chevron {
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
    transition: transform .18s ease;
}
.invoice-settings-panel[open] .invoice-settings-chevron { transform: rotate(90deg); }
.invoice-settings-content { padding: 0 22px 22px; border-top: 1px solid var(--line); }
.invoice-settings-content > .section-heading { padding-top: 18px; }
.invoice-settings-form { display: grid; gap: 18px; }
.invoice-settings-section { padding-top: 4px; }
.invoice-settings-section + .invoice-settings-section { padding-top: 18px; border-top: 1px solid var(--line); }
.invoice-settings-section h3 { margin: 0 0 14px; font-size: 1rem; }
.invoice-settings-section textarea { width: 100%; min-height: 110px; resize: vertical; }
.invoice-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.invoice-actions form { margin: 0; }
.invoice-admin-table td:last-child { min-width: 250px; }
.booking-card-with-invoice { grid-template-columns: .9fr 1.45fr 1.55fr; gap: 20px; }
.booking-identity-status { align-self: center; }
.booking-status-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.booking-finance-invoice { display: grid; gap: 11px; align-content: center; }
.booking-amount { display: grid; gap: 2px; }
.booking-invoice-actions { display: grid; gap: 6px; align-content: start; padding-top: 9px; border-top: 1px solid var(--line); }
.booking-invoice-meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.booking-invoice-actions .invoice-actions { margin-top: 2px; }
.booking-invoice-actions .button { font-size: .76rem; padding: 8px 10px; }

@media (max-width: 1050px) {
    .booking-card-with-invoice { grid-template-columns: 1fr 1fr; }
    .booking-finance-invoice { grid-column: 1 / -1; grid-template-columns: minmax(160px, .6fr) minmax(0, 1.4fr); align-items: start; }
    .booking-invoice-actions { padding-top: 0; padding-left: 16px; border-top: 0; border-left: 1px solid var(--line); }
}

@media (max-width: 620px) {
    .booking-card-with-invoice { grid-template-columns: 1fr; }
    .booking-finance-invoice { grid-column: auto; grid-template-columns: 1fr; }
    .booking-invoice-actions { padding-top: 9px; padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
    .booking-invoice-actions .invoice-actions { align-items: stretch; }
    .booking-invoice-actions .invoice-actions .button,
    .booking-invoice-actions .invoice-actions form,
    .booking-invoice-actions .invoice-actions form .button { width: 100%; }
}

/* BETA 1 / 0.4.2.4 – kompakter Admin, Versionsanzeige und Admin-Buchungen. */
.admin-version-inline {
    display: inline-block;
    margin-left: 9px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .055em;
    text-transform: uppercase;
    vertical-align: .08em;
}
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.page-title-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.page-title-actions h1 { margin-bottom: 0; }
.page-title-actions > .button { flex: 0 0 auto; margin-top: 3px; }

.admin-collapsible-panel,
.admin-calendar-details {
    margin-bottom: 18px;
    padding: 0;
    overflow: hidden;
}
.admin-calendar-details { margin-bottom: 24px; }
.admin-collapsible-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 22px;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
    user-select: none;
}
.admin-collapsible-summary::-webkit-details-marker { display: none; }
.admin-collapsible-summary::marker { content: ''; }
.admin-collapsible-summary:hover { background: rgba(15, 83, 99, .035); }
.admin-collapsible-summary:focus-visible { outline: 3px solid rgba(21, 96, 117, .28); outline-offset: -3px; }
.admin-collapsible-chevron {
    display: inline-block;
    font-size: 1.45rem;
    line-height: 1;
    transition: transform .18s ease;
}
.admin-collapsible-panel[open] .admin-collapsible-chevron,
.admin-calendar-details[open] .admin-collapsible-chevron { transform: rotate(90deg); }
.admin-collapsible-content { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.admin-collapsible-content > .muted:first-child { margin-bottom: 18px; }
.embedded-calendar-panel { margin: 0; padding: 0 0 2px; border: 0; border-radius: 0; background: transparent; }
.embedded-calendar-panel .calendar-toolbar { margin-top: 0; }

.admin-booking-customer-panel { margin-bottom: 22px; }
.admin-booking-customer-panel .section-heading { margin-bottom: 12px; }
.admin-booking-layout .composer-panel { margin-top: 22px; }
.admin-booking-submit-actions { display: grid; gap: 8px; }
.admin-booking-summary .sticky-cart { top: 88px; }

@media (max-width: 700px) {
    .admin-version-inline { margin-left: 7px; font-size: .64rem; }
    .page-title-actions { flex-direction: column; align-items: stretch; }
    .page-title-actions > .button { width: 100%; margin-top: 0; }
    .admin-collapsible-summary { padding: 15px 16px; }
    .admin-collapsible-content { padding: 16px; }
}

/* BETA 1 / 0.4.2.4 – Produktionshinweise: Motive, externes Spezialbanner und Grafik. */
.alert-info {
    background: #eef6f8;
    border-color: #b9d5dd;
    color: #24444d;
}
.production-panel { margin-top: 22px; }
.production-alert {
    display: grid;
    gap: 4px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #c6dce2;
    border-radius: 12px;
    background: #f3f8fa;
}
.production-alert strong { color: var(--ink); }
.production-options-grid {
    display: grid;
    grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
    gap: 18px;
    align-items: start;
}
.production-motif-count input,
#admin-motif-count { max-width: 140px; }
.production-service-card,
.production-graphic-choice {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 16px;
}
.production-service-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
}
.production-service-card h3,
.production-graphic-choice legend { margin: 0 0 7px; font-size: 1rem; font-weight: 800; }
.production-service-card p { margin: 5px 0; }
.production-service-image {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
}
.production-graphic-choice { grid-column: 1 / -1; }
.production-radio { align-items: flex-start; margin-top: 8px; }
.production-radio small { display: inline-block; margin-top: 2px; }
.production-confirmation {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #d8c48e;
    border-radius: 12px;
    background: #fffaf0;
    align-items: flex-start;
}
.checkout-production-summary {
    display: grid;
    gap: 5px;
    margin: 14px 0;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #f8fafb;
    font-size: .83rem;
    line-height: 1.42;
}
.checkout-production-title { font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.checkout-production-summary small { color: var(--muted); }
.booking-production-mini { margin-top: 8px; line-height: 1.45; }

.production-admin-form { display: grid; gap: 18px; }
.production-admin-card { margin: 0; }
.production-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr);
    gap: 24px;
    align-items: start;
}
.production-admin-preview {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #f8fafb;
}
.production-admin-preview img,
.production-admin-preview .board-media-placeholder {
    display: block;
    width: 100%;
    min-height: 210px;
    max-height: 290px;
    object-fit: cover;
}
.production-admin-preview p { margin: 0; padding: 14px 16px 16px; line-height: 1.5; }

@media (max-width: 900px) {
    .production-options-grid,
    .production-admin-grid { grid-template-columns: 1fr; }
    .production-graphic-choice { grid-column: auto; }
}

@media (max-width: 560px) {
    .production-service-card { grid-template-columns: 1fr; }
    .production-service-image { width: 100%; height: auto; max-height: 220px; }
    .production-confirmation { padding: 12px; }
}
.production-separation-note { margin: 10px 2px 0; font-size: .86rem; line-height: 1.5; }

/* BETA 1 / 0.4.2.4 – schlanker Produktionsschritt + getrennte Bestell-Zusammenfassung. */
.production-panel-compact {
    padding: 18px 20px;
}
.production-panel-compact .compact-heading {
    margin-bottom: 12px;
}
.production-panel-compact .compact-heading h2 {
    margin-bottom: 3px;
}
.production-panel-compact .compact-heading p {
    margin-bottom: 0;
    font-size: .86rem;
}
.production-compact-grid {
    display: grid;
    grid-template-columns: minmax(210px, .62fr) minmax(0, 1.38fr);
    gap: 20px;
    align-items: center;
    padding: 4px 0 12px;
}
.production-compact-grid .production-motif-count {
    gap: 5px;
}
.production-compact-grid .production-motif-count input {
    max-width: 110px;
    padding-block: 8px;
}
.production-compact-grid .production-motif-count small {
    line-height: 1.35;
}
.production-compact-service {
    display: grid;
    gap: 2px;
    padding-left: 18px;
    border-left: 3px solid #d8e6ea;
    font-size: .9rem;
    line-height: 1.4;
}
.production-compact-service span { color: var(--muted); }
.production-compact-service span:last-child { color: var(--text); }
.production-service-compact {
    margin: 0;
    padding: 10px 0 0;
    border: 0;
    border-top: 1px solid var(--line);
}
.production-service-compact legend {
    margin-bottom: 4px;
    font-weight: 800;
}
.production-banner-compact {
    margin-top: 2px;
}
.production-graphic-compact .compact-radio {
    padding: 6px 0;
    border-bottom: 0;
    font-size: .9rem;
}
.production-graphic-compact .compact-radio input {
    flex: 0 0 auto;
}
.production-graphic-price {
    margin: 1px 0 0 28px;
    font-size: .8rem;
}

.checkout-page {
    width: min(900px, 100%);
    margin: 0 auto;
}
.checkout-intro { margin-bottom: 20px; }
.checkout-order-panel { padding-bottom: 22px; }
.checkout-order-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 8px;
}
.checkout-order-heading h2 { margin-bottom: 0; }
.checkout-order-items { border-top: 1px solid var(--line); }
.checkout-order-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.checkout-order-item > div {
    display: grid;
    gap: 3px;
}
.checkout-order-item span { font-size: .9rem; }
.checkout-order-item small { color: var(--muted); }
.checkout-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f7f9fa;
}
.checkout-note p { margin: 5px 0 0; line-height: 1.5; }
.checkout-grand-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
    padding: 16px 0 4px;
    font-size: 1.05rem;
}
.checkout-grand-total strong { font-size: 1.35rem; }
.checkout-final-form { margin-top: 10px; }
.checkout-banner-confirmation {
    margin: 0 0 14px;
    padding: 13px 14px;
    border: 1px solid #d8c48e;
    border-radius: 11px;
    background: #fffaf0;
    align-items: flex-start;
    line-height: 1.45;
}
.checkout-confirmation-copy {
    display: grid;
    gap: 7px;
}
.checkout-graphic-choice {
    padding-top: 7px;
    border-top: 1px solid rgba(151, 120, 45, .22);
}
.checkout-pay-button { min-height: 52px; font-size: 1rem; }
.checkout-external-panel {
    margin-top: 18px;
    background: #f8fafb;
}
.checkout-external-panel h2 { margin-bottom: 14px; }
.external-service-lines {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}
.external-service-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: .9rem;
}
.external-service-line > div { display: grid; gap: 2px; }
.external-service-line span { color: var(--muted); }
.checkout-external-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .production-panel-compact { padding: 16px; }
    .production-compact-grid { grid-template-columns: 1fr; gap: 12px; }
    .production-compact-service { padding-left: 12px; }
    .checkout-order-heading { flex-direction: column; }
    .checkout-order-heading .button { width: 100%; }
    .checkout-order-item,
    .external-service-line { grid-template-columns: 1fr; gap: 7px; }
    .checkout-grand-total { align-items: flex-start; flex-direction: column; gap: 5px; }
}

/* BETA 1 / 0.4.2.5 – kompaktere Kunden-Buchungsliste: Betrag und Rechnung in einer Spalte. */

/* BETA 1 / 0.4.2.7 – Kernbuchung in „Meine Buchungen“ wieder vollständig sichtbar. */
.booking-details-column { min-width: 0; }
.booking-position-list { display: grid; gap: 9px; }
.booking-position-summary { display: grid; gap: 1px; line-height: 1.35; }
.booking-position-summary + .booking-position-summary { padding-top: 8px; border-top: 1px solid var(--line); }
.booking-position-summary strong { font-size: .96rem; }
.booking-position-summary > span:last-child { font-size: .9rem; }
.booking-production-mini { padding-top: 9px; border-top: 1px solid var(--line); font-size: .9rem; }

/* BETA 1 / 0.4.2.8 – klar abgegrenzter Testbetrieb für BETA-Buchungen. */
.admin-test-mode-badge,
.test-data-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    background: #fff0c9;
    color: #7a4b00;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    vertical-align: middle;
}
.admin-test-mode-badge { margin-left: 8px; }
.test-mode-panel { padding: 0; overflow: hidden; }
.test-mode-panel.is-active { border-color: #e4c26e; }
.test-mode-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}
.test-mode-summary::-webkit-details-marker { display: none; }
.test-mode-state {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: .72rem;
    letter-spacing: .06em;
}
.test-mode-state.active { background: #fff0c9; color: #7a4b00; }
.test-mode-state.inactive { background: #eef2f4; color: var(--muted); }
.test-mode-content {
    display: grid;
    gap: 18px;
    padding: 0 20px 20px;
    border-top: 1px solid var(--line);
}
.test-mode-content > .muted { margin: 16px 0 0; }
.test-mode-toggle-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.test-mode-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.test-mode-stats > div {
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafb;
}
.test-mode-stats strong { font-size: 1.2rem; }
.test-mode-stats span { color: var(--muted); font-size: .8rem; }
.test-mode-action-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.test-mode-action-block p { margin: 4px 0 0; }
.test-mode-action-block.danger-zone {
    padding: 14px;
    border: 1px solid #efc5c5;
    border-radius: 12px;
    background: #fff8f8;
}
.test-mode-number-note { margin: 0; font-size: .84rem; color: var(--muted); }

@media (max-width: 760px) {
    .test-mode-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .test-mode-action-block,
    .test-mode-toggle-form { align-items: stretch; flex-direction: column; }
    .test-mode-action-block .button,
    .test-mode-toggle-form .button { width: 100%; }
}

/* BETA 1 / 0.4.3.0 – Bestellprozess, Rabattcodes, FAQ und Navigation. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}
.top-nav a + a::before {
    content: "|";
    color: #c5ccd2;
    margin-right: 16px;
    pointer-events: none;
}

.order-progress {
    position: sticky;
    top: var(--site-header-height, 68px);
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin: 0 0 20px;
    padding: 9px 0;
    background: var(--bg);
    color: var(--muted);
    font-size: .86rem;
}
.order-progress-step {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    text-decoration: none;
}
.order-progress-step b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 999px;
    background: #e9edf0;
    color: var(--muted);
    font-size: .75rem;
}
.order-progress-step.active { color: var(--text); font-weight: 750; }
.order-progress-step.active b { background: var(--brand); color: #fff; }
.order-progress-arrow { color: #a7b0b8; font-size: 1.1rem; }

.booking-calendar-details { padding: 0; overflow: hidden; }
.calendar-details-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 20px;
    cursor: pointer;
    list-style: none;
    font-size: 1.05rem;
    font-weight: 800;
}
.calendar-details-summary::-webkit-details-marker { display: none; }
.calendar-details-summary .details-chevron { transition: transform .2s ease; color: var(--muted); font-size: 1.3rem; }
.booking-calendar-details[open] .details-chevron { transform: rotate(90deg); }
.calendar-details-body { padding: 0 20px 18px; border-top: 1px solid var(--line); }
.compact-calendar-toolbar { margin-top: 14px; }
.compact-calendar-toolbar > p { margin: 0; }

.production-panel-compact .compact-heading p {
    max-width: 980px;
    line-height: 1.48;
}
.production-service-compact {
    border-top: 2px solid #cfd7dd;
    padding-top: 12px;
}
.production-graphic-compact { margin-top: 8px; }
.production-contact-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 4px 0 2px 28px;
    font-size: .82rem;
}
.production-contact-line a { white-space: nowrap; }

.checkout-discount-block {
    margin-top: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.discount-apply-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto auto;
    gap: 9px;
    align-items: center;
    margin-top: 2px;
}
.discount-success { margin: 8px 0 0; color: #27633a; font-size: .88rem; }
.checkout-customer-note { margin-top: 15px; }
.checkout-totals { display: grid; gap: 7px; margin-top: 14px; }
.checkout-totals > div:not(.checkout-grand-total) {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    font-size: .92rem;
}
.checkout-totals .discount-line { color: #27633a; }
.checkout-totals .checkout-grand-total { margin-top: 2px; border-top: 1px solid var(--line); }

.discount-table input,
.discount-table select { min-width: 105px; }
.discount-table td:first-child input { min-width: 130px; text-transform: uppercase; }
.discount-new-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}
.compact-check { border-bottom: 0; padding: 0; white-space: nowrap; }

.faq-page { width: min(980px, 100%); margin: 0 auto; }
.faq-list { display: grid; gap: 10px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary {
    padding: 17px 20px;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "›"; float: right; color: var(--muted); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(90deg); }
.faq-answer { padding: 0 20px 20px; border-top: 1px solid var(--line); padding-top: 15px; line-height: 1.6; }
.faq-admin-form { gap: 14px; }
.faq-admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 12px; }
.faq-admin-grid .span-two { grid-column: 1 / -1; }

@media (max-width: 900px) {
    .discount-new-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .site-header { top: 0; }
    .top-nav { gap: 8px 12px; }
    .top-nav a + a::before { margin-right: 12px; }
    .mobile-cart-shell,
    .mobile-cart-toggle,
    .mobile-cart-drawer { background: #eaf5e8; }
    .mobile-cart-shell { border-top-color: #bdd8b9; }
    .cart-chevron { color: #b73535; font-weight: 900; font-size: 1.45rem; }
    .calendar-details-summary { padding: 15px 14px; }
    .calendar-details-body { padding: 0 12px 14px; }
    .discount-apply-row { grid-template-columns: 1fr auto; }
    .discount-apply-row .text-button { grid-column: 1 / -1; justify-self: start; }
    .discount-new-grid,
    .faq-admin-grid { grid-template-columns: 1fr; }
    .faq-admin-grid .span-two { grid-column: auto; }
    .order-progress { font-size: .8rem; }
}

/* BETA 1 / 0.4.3.3 – historische Admin-Nachbuchungen */
.historical-booking-panel { margin-bottom: 22px; }
.historical-booking-switch { border-bottom: 0; padding: 0; }
.historical-booking-options { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.historical-booking-options .alert { margin-top: 0; }
.historical-submit-note { padding: 10px 12px; border: 1px solid #c7dce3; border-radius: 10px; background: #f2f8fa; color: var(--brand-dark); font-size: .84rem; line-height: 1.45; }

/* BETA 1 / 0.4.3.5 – Desktop/Tablet: Kalender volle Breite, Composer + Warenkorb darunter, feine Summenleiste. */
:root {
    --cart-soft-bg: #f4faf2;
    --cart-soft-border: #d3e6cf;
}

.booking-layout {
    display: block;
}
.booking-main {
    width: 100%;
}
.booking-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 24px;
    align-items: start;
    margin-top: 22px;
}
.booking-workbench .composer-panel {
    margin-top: 0;
}
.booking-workbench .booking-cart {
    min-width: 0;
}
.booking-workbench .sticky-cart {
    position: static;
    top: auto;
}
.booking-cart-panel {
    background: var(--cart-soft-bg);
    border-color: var(--cart-soft-border);
}
.booking-cart-panel .count-badge {
    background: rgba(255, 255, 255, .72);
}

.desktop-cart-summary {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 75;
    border-top: 1px solid var(--cart-soft-border);
    background: rgba(244, 250, 242, .96);
    box-shadow: 0 -5px 18px rgba(31, 41, 51, .08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.desktop-cart-summary-inner {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 9px clamp(18px, 4vw, 52px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
    font-size: .84rem;
}
.desktop-cart-summary-inner strong {
    color: var(--text);
}
.desktop-cart-summary-total {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    text-align: right;
}
.desktop-cart-summary-total strong {
    font-size: 1rem;
}

@media (min-width: 901px) and (max-width: 1180px) {
    .booking-workbench {
        grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr);
        gap: 18px;
    }
    .booking-workbench .composer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .booking-workbench {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .desktop-cart-summary {
        display: none;
    }
    .mobile-cart-shell,
    .mobile-cart-toggle,
    .mobile-cart-drawer {
        background: var(--cart-soft-bg);
    }
    .mobile-cart-shell {
        border-top-color: var(--cart-soft-border);
    }
}

/* BETA 1 / 0.4.3.7 – Kundenkontext, Präsenzanzeige und Aktivitätsprotokoll. */
.customer-context-strip {
    margin: -14px 0 22px;
    padding: 10px 14px 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line));
}
.customer-welcome-line { font-size: .96rem; }
.customer-current-notice {
    margin-top: 5px;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.45;
    max-width: 980px;
}
.dashboard-presence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.presence-metric { display: grid; gap: 4px; align-content: start; }
.presence-metric strong { font-size: 1.7rem; }
.presence-metric .presence-name { font-size: 1.1rem; letter-spacing: -.02em; line-height: 1.25; }
.presence-metric small { display: block; line-height: 1.4; }
.activity-log-note { display: flex; gap: 10px; align-items: baseline; margin-bottom: 18px; }
.activity-session-list { display: grid; gap: 12px; }
.activity-session { padding: 0; overflow: hidden; }
.activity-session-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 20px;
}
.activity-session-summary::-webkit-details-marker,
.activity-event summary::-webkit-details-marker { display: none; }
.activity-session[open] > .activity-session-summary { border-bottom: 1px solid var(--line); }
.activity-session-main, .activity-session-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.activity-session-meta { justify-content: flex-end; color: var(--muted); font-size: .82rem; }
.activity-online { background: #e6f7eb; color: #27623a; }
.activity-session-body { padding: 18px 20px 20px; }
.activity-session-facts { display: flex; gap: 12px 22px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
.activity-user-agent { margin-top: 9px; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.activity-event-list { display: grid; gap: 8px; margin-top: 18px; }
.activity-event { border: 1px solid var(--line); border-radius: 11px; background: #fbfcfd; overflow: hidden; }
.activity-event summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: 72px minmax(150px, auto) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 11px 13px;
}
.activity-event time { color: var(--muted); font-variant-numeric: tabular-nums; }
.activity-event-summary { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-event-body { padding: 12px 14px 14px; border-top: 1px solid var(--line); background: #fff; }
.activity-event-body p { margin-bottom: 8px; }
.activity-details { display: grid; gap: 7px; margin: 12px 0 0; }
.activity-details > div { display: grid; grid-template-columns: minmax(130px, .35fr) minmax(0, 1fr); gap: 12px; padding-top: 7px; border-top: 1px solid #eef1f3; }
.activity-details dt { color: var(--muted); font-size: .82rem; font-weight: 700; }
.activity-details dd { margin: 0; font-size: .88rem; overflow-wrap: anywhere; }

@media (max-width: 760px) {
    .customer-context-strip { margin-top: -20px; }
    .dashboard-presence { grid-template-columns: 1fr; }
    .activity-log-note { align-items: flex-start; flex-direction: column; }
    .activity-session-summary { align-items: flex-start; flex-direction: column; }
    .activity-session-meta { justify-content: flex-start; }
    .activity-event summary { grid-template-columns: 62px 1fr auto; }
    .activity-event-summary { grid-column: 1 / -1; white-space: normal; }
    .activity-details > div { grid-template-columns: 1fr; gap: 3px; }
}

/* BETA 1 / 0.4.4.0 – FAQ-Bilder + kompakte "Was brauche ich?"-Hilfe im Buchungsprozess. */
.booking-needs-help {
    margin: -4px 0 18px;
}
.booking-needs-help > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;
    color: var(--brand-dark);
    font-weight: 800;
    font-size: .94rem;
}
.booking-needs-help > summary::-webkit-details-marker { display: none; }
.booking-needs-help > summary .details-chevron { transition: transform .2s ease; }
.booking-needs-help[open] > summary .details-chevron { transform: rotate(90deg); }
.booking-needs-help-body {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}
.booking-needs-help-body img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 9px;
}

.faq-answer-with-image {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 38%);
    gap: 24px;
    align-items: start;
}
.faq-answer-text { min-width: 0; }
.faq-answer-image {
    justify-self: end;
    width: 100%;
    max-width: 430px;
}
.faq-answer-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.faq-admin-image-preview {
    justify-self: start;
    width: min(430px, 100%);
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafb;
}
.faq-admin-image-preview img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .faq-answer-with-image {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .faq-answer-with-image .faq-answer-image {
        order: -1;
        justify-self: stretch;
        max-width: none;
    }
}

/* BETA 1 / 0.4.4.0 – Admin-Menü Settings + dreistufiger Buchungsprozess. */
.top-nav-settings {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.top-nav-settings::before {
    content: "|";
    color: #c5ccd2;
    margin-right: 16px;
    pointer-events: none;
}
.top-nav-settings > summary {
    list-style: none;
    cursor: pointer;
    color: var(--muted);
    font-size: .94rem;
    white-space: nowrap;
}
.top-nav-settings > summary::-webkit-details-marker { display: none; }
.top-nav-settings > summary::after {
    content: "⌄";
    display: inline-block;
    margin-left: 5px;
    font-size: .8em;
    transition: transform .15s ease;
}
.top-nav-settings[open] > summary { color: var(--text); }
.top-nav-settings[open] > summary::after { transform: rotate(180deg); }
.top-nav-settings-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 140;
    min-width: 190px;
    padding: 8px;
    display: grid;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(31, 41, 51, .14);
}
.top-nav-settings-menu a {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    white-space: nowrap;
}
.top-nav-settings-menu a:hover { background: var(--bg); }
.top-nav-settings-menu a::before { content: none !important; }
.top-nav-settings + a::before {
    content: "|";
    color: #c5ccd2;
    margin-right: 16px;
    pointer-events: none;
}

.information-page { width: 100%; }
.information-intro { margin-bottom: 20px; }
.information-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
    gap: 24px;
    align-items: start;
}
.information-production-panel { min-width: 0; }
.information-form { display: grid; gap: 18px; }
.production-info-section {
    border-top: 2px solid #cfd7dd;
    padding-top: 13px;
}
.production-info-section h3 {
    margin: 0 0 14px;
    font-size: 1.04rem;
}
.information-acknowledgement {
    margin-top: 2px;
    padding: 14px;
    border: 1px solid #d8c48e;
    border-radius: 11px;
    background: #fffaf0;
    align-items: flex-start;
    line-height: 1.45;
}
.information-cart { min-width: 0; }
.information-cart-panel {
    background: var(--cart-soft-bg);
    border-color: var(--cart-soft-border);
}
.information-cart-panel .count-badge { background: rgba(255,255,255,.72); }
.information-cart-items { max-height: 560px; overflow: auto; }
.checkout-order-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.checkout-banner-confirmation.is-confirmed {
    display: flex;
    gap: 10px;
}
.checkout-confirmation-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-weight: 900;
}

@media (max-width: 1000px) {
    .information-workbench { grid-template-columns: 1fr; }
    .information-cart { order: 2; }
}

@media (max-width: 700px) {
    .top-nav-settings {
        display: block;
        width: 100%;
    }
    .top-nav-settings::before { display: none; }
    .top-nav-settings > summary { padding: 4px 0; }
    .top-nav-settings-menu {
        position: static;
        margin-top: 6px;
        box-shadow: none;
        border-radius: 9px;
        min-width: 0;
    }
    .top-nav-settings + a::before { content: none; }
    .checkout-order-actions { width: 100%; justify-content: stretch; }
    .checkout-order-actions .button { flex: 1 1 100%; }
}

/* SEC1 – Security honeypot: intentionally invisible to human users. */
.bot-trap {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
