/* BOND-IQ Booking – Stylesheet. Tokens aus dem Design-Guide (Unterlagen/2026-10-20 Design Guide.pdf). */
/* Switzer (Design-Guide) als eigener Webfont, Variable Font 100–900; Dateien, Lizenz und Herkunft unter assets/fonts/ (E-054).
   Gleicher Familienname wie eine eventuell lokal installierte Kopie: die @font-face-Definition hat Vorrang, damit
   nicht ein einzelner installierter Schnitt (z. B. nur Bold) oder eine lokale Variable-Fassung die Darstellung bestimmt. */
@font-face { font-family: "Switzer"; src: url("/assets/fonts/Switzer-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/assets/fonts/Switzer-VariableItalic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
:root {
  --brand: #FFB30D; --brand-soft: #FFF3D1; --brand-2: #A60000;
  --black: #000000; --dark: #1A1A1A; --grey: #737373; --grey-60: #A3A3A3; --grey-20: #E3E3E3; --grey-10: #F2F1EE;
  --paper: #FFFFFF; --ink: #000000; --ink-2: #444444; --line: #D6D4CD;
  --ok: #1E8E5A; --warn: #B8860B; --err: #A60000; --info: #2F6FD6;
  --r-sm: 8px; --r-md: 16px; --r-lg: 24px;
  --font: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.5 var(--font); color: var(--ink); background: var(--grey-10); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.15; letter-spacing: -.02em; font-weight: 600; }
h1 { font-size: 27px; } h2 { font-size: 18px; } h3 { font-size: 15px; margin-top: 20px; }
code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--grey-10); padding: 1px 5px; border-radius: 4px; }
pre { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.muted { color: var(--grey); } .small { font-size: 13px; } .nowrap { white-space: nowrap; } .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .num-c { text-align: center; font-variant-numeric: tabular-nums; }
.price-break { white-space: normal; line-height: 1.5; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Buttons (Guide: Primary schwarz, Outlined, Ghost, Small) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 32px; border-radius: 999px; border: 1px solid var(--black); background: var(--black); color: #fff; font: 500 15px/1.1 var(--font); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:hover { background: var(--dark); }
.btn-outline { background: transparent; color: var(--ink); } .btn-outline:hover { background: var(--grey-10); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); padding: 10px 16px; } .btn-ghost:hover { background: var(--grey-10); color: var(--ink); }
.btn-sm { padding: 9px 20px; font-size: 14px; } .btn-lg { padding: 18px 40px; font-size: 16px; } .btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn .arr { display: inline-block; transition: transform .25s; } .btn:hover .arr { transform: rotate(45deg); }

/* Formulare */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field input:not([type=checkbox]), .field select, .field textarea, .filter-bar input:not([type=checkbox]), .filter-bar select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: 400 15px/1.4 var(--font); background: var(--paper); color: var(--ink); }
.field textarea { padding: 10px 12px; resize: vertical; }
.field input:not([type=checkbox]):focus, .field select:focus, .field textarea:focus, .filter-bar input:not([type=checkbox]):focus, .filter-bar select:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field input[type=color] { padding: 4px; width: 80px; }
.field-error { color: var(--err); font-size: 13px; font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: 0 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; }

/* Flash / Badges */
.flash { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; font-size: 14px; border: 1px solid transparent; }
.flash-success { background: #E6F4EC; color: #14532D; border-color: #BFE3CD; }
.flash-info { background: #E8F0FB; color: #1E3A8A; border-color: #C7DAF5; }
.flash-warning { background: var(--brand-soft); color: #5A4500; border-color: #F3DDA0; }
.flash-error { background: #FBE7E7; color: #7F1D1D; border-color: #F2C2C2; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--grey-20); color: var(--ink-2); }
.badge-requested { background: var(--brand-soft); color: #5A4500; }
.badge-on_hold { background: #E8F0FB; color: #1E3A8A; }
.badge-confirmed { background: #E6F4EC; color: #14532D; }
.badge-cancelled { background: #FBE7E7; color: #7F1D1D; }
.badge-ph-requested { background: var(--brand-soft); color: #5A4500; } .badge-ph-awaiting_order { background: #E8F0FB; color: #1E3A8A; } .badge-ph-ordering { background: #EEE8FB; color: #4C1D95; } .badge-ph-booked { background: #E6F4EC; color: #14532D; } .badge-ph-clarification { background: #FBE7E7; color: #7F1D1D; } .badge-ph-closed { background: var(--grey-20); color: var(--grey); }
.badge-ps-active { background: #E6F4EC; color: #14532D; } .badge-ps-cancelled { background: #FBE7E7; color: #7F1D1D; } .badge-ps-replaced { background: var(--grey-20); color: var(--grey); }
.badge-dec-pending { background: var(--brand-soft); color: #5A4500; } .badge-dec-confirmed { background: #E6F4EC; color: #14532D; } .badge-dec-rejected { background: #FBE7E7; color: #7F1D1D; }
.badge-comm-open { background: var(--grey-20); color: var(--ink-2); } .badge-comm-sent { background: #E8F0FB; color: #1E3A8A; } .badge-comm-customer_confirmed { background: #E6F4EC; color: #14532D; }
.tile-ph-requested { border-color: var(--brand); } .tile-ph-awaiting_order { border-color: var(--info); } .tile-ph-ordering { border-color: #7C3AED; } .tile-ph-booked { border-color: var(--ok); } .tile-ph-clarification { border-color: var(--err); }
.tiles-compact .tile-v { font-size: 24px; } .tiles-compact { margin-bottom: 16px; }
.card-alert { border: 1px solid #F3C4C4; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; } .card-head h2 { margin: 0 0 8px; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .inline-form select { min-width: 260px; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; background: var(--paper); }
.phase-form .field { margin-top: 10px; }
.ptable { min-width: 900px; } .ptable td { vertical-align: top; }
.p-actions { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; align-items: flex-start; }
.p-detail { display: inline-block; } .p-detail summary { list-style: none; display: inline-flex; } .p-detail summary::-webkit-details-marker { display: none; }
.p-detail[open] { display: block; width: 100%; text-align: left; }
.p-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0 8px; padding: 8px; background: var(--grey-10); border-radius: 8px; }
.p-form input:not([type=checkbox]) { min-height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; background: var(--paper); min-width: 150px; }
.p-form-grid input:not([type=checkbox]) { flex: 1 1 140px; }
.add-person { margin-top: 10px; }
.btn-status-requested { border-color: var(--brand); } .btn-status-on_hold { border-color: var(--info); } .btn-status-ordering { background: #EEE8FB; color: #4C1D95; border-color: #7C3AED; }
.badge-dl-sent { background: #E6F4EC; color: #14532D; } .badge-dl-failed { background: #FBE7E7; color: #7F1D1D; } .badge-dl-unconfirmed { background: var(--brand-soft); color: #5A4500; } .badge-dl-pending { background: var(--grey-20); }
.badge-date-published { background: #E6F4EC; color: #14532D; } .badge-date-booked_out { background: #FBE7E7; color: #7F1D1D; } .badge-date-draft { background: var(--grey-20); } .badge-date-cancelled { background: var(--grey-20); color: var(--grey); text-decoration: line-through; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.demo-banner { background: var(--brand); color: #000; text-align: center; font-size: 13px; font-weight: 500; padding: 6px 12px; }

/* ---------- Admin ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 232px; flex: 0 0 232px; background: var(--dark); color: #fff; display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 22px; text-decoration: none; color: #fff; }
.brand img { display: block; } .brand span { font-size: 13px; color: var(--grey-60); border-left: 1px solid #444; padding-left: 10px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #BDBDBD; text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a svg { width: 20px; height: 20px; flex: 0 0 auto; }
.nav a:hover { background: #2A2A2A; color: #fff; }
.nav a.active { background: var(--brand); color: #000; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 10px; font-size: 13px; color: var(--grey-60); }
.sidebar-foot .muted-link { color: var(--grey-60); } 
.logout { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; }
.logout .user { color: #fff; font-weight: 500; } .logout .btn { color: var(--grey-60); } .logout .btn:hover { color: #fff; background: #2A2A2A; }
.version { font-size: 12px; color: #666; }
.main { flex: 1; min-width: 0; padding: 28px 32px 48px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.card { background: var(--paper); border-radius: var(--r-md); padding: 22px 24px; margin-bottom: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 20px; align-items: start; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.tile { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-md); padding: 16px 18px; text-decoration: none; border-top: 4px solid var(--grey-20); }
.tile-requested { border-color: var(--brand); } .tile-on_hold { border-color: var(--info); } .tile-confirmed { border-color: var(--ok); } .tile-cancelled { border-color: var(--grey-60); }
.tile-k { font-size: 13px; color: var(--grey); font-weight: 500; } .tile-v { font-size: 32px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin: 6px 0 2px; } .tile-s { font-size: 12px; color: var(--grey); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; color: var(--grey); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--grey-20); }
.table td { padding: 10px; border-bottom: 1px solid var(--grey-10); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table a { font-weight: 500; }
.table .actions { text-align: right; white-space: nowrap; }
.table-dense td, .table-dense th { padding: 5px 8px; font-size: 13px; }
.row-muted td { color: var(--grey); }
.log-warning td { background: #FFFBEB; } .log-error td { background: #FEF2F2; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filter-bar input:not([type=checkbox]), .filter-bar select { width: auto; min-width: 180px; height: 40px; min-height: 40px; }
.filter-bar .check { align-items: center; white-space: nowrap; }
.dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.dl dt { color: var(--grey); } .dl dd { margin: 0; }
.pre-small { font-size: 12px; color: var(--ink-2); margin: 6px 0 0; }
.plain { padding-left: 20px; margin: 0; }
.status-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.btn-status { background: var(--paper); color: var(--ink); border-color: var(--line); padding: 10px 18px; font-size: 14px; }
.btn-status:hover { border-color: var(--ink); background: var(--paper); }
.btn-status.is-current { background: var(--ink); color: #fff; border-color: var(--ink); opacity: 1; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.error-text { color: var(--err); }

/* ---------- Auth ---------- */
body.auth { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.auth-wrap { width: 100%; max-width: 380px; padding: 20px; text-align: center; }
.auth-logo { margin-bottom: 24px; }
.auth-card { text-align: left; } .auth-card form { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Public ---------- */
body.public { background: var(--paper); }
.pub-header { display: flex; align-items: center; gap: 16px; padding: 22px 24px; max-width: 1180px; margin: 0 auto; }
.pub-logo img { display: block; }
.pub-admin-link { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: var(--grey); } .pub-admin-link:hover, .pub-admin-link:focus-visible { color: var(--ink); background: var(--grey-10); }
.pub-header-text { color: var(--grey); font-size: 14px; border-left: 1px solid var(--line); padding-left: 16px; }
/* Sprachumschalter DE | EN im Formularkopf (E-062) */
.pub-lang { margin-left: auto; display: inline-flex; gap: 2px; font-size: 13px; font-weight: 600; letter-spacing: .04em; } .pub-lang + .pub-admin-link { margin-left: 8px; }
.pub-lang a { padding: 6px 10px; border-radius: 999px; color: var(--grey); text-decoration: none; } .pub-lang a:hover, .pub-lang a:focus-visible { color: var(--ink); background: var(--grey-10); } .pub-lang a.active { color: var(--ink); background: var(--brand-soft); }
/* Admin-Seite „Website“ (F11): Code zum Kopieren */
.embed-code { width: 100%; min-height: 220px; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--grey-10); white-space: pre; overflow: auto; resize: vertical; }
.copy-row { display: flex; gap: 10px; align-items: center; margin: 8px 0 14px; }
.pub-main { max-width: 1180px; margin: 0 auto; padding: 8px 24px 64px; }
.pub-footer { max-width: 1180px; margin: 0 auto; padding: 20px 24px 40px; display: flex; gap: 20px; font-size: 13px; color: var(--grey); border-top: 1px solid var(--grey-20); }
.pub-footer a { color: var(--grey); }
.booking { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 900px) { .booking { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; } .booking-intro { position: sticky; top: 24px; align-self: start; } }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--grey); margin: 0 0 12px; }
.booking-intro h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.04; letter-spacing: -.03em; }
.lead { font-size: 16px; color: var(--ink-2); margin: 14px 0 0; }
.summary-card { background: var(--dark); color: #fff; border-radius: var(--r-lg); padding: 28px; margin-top: 28px; }
.summary-k { font-size: 14px; color: #BDBDBD; }
.summary-total { display: block; font-size: clamp(40px, 6vw, 56px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; margin-top: 6px; font-variant-numeric: tabular-nums; }
.summary-break { font-size: 13px; color: #BDBDBD; line-height: 1.6; margin: 8px 0 0; white-space: pre-line; }
.summary-fine { font-size: 12px; color: #9A9A9A; margin: 14px 0 0; }
.booking-form { background: var(--grey-10); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 26px; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step legend { font-size: 15px; font-weight: 600; margin-bottom: 12px; padding: 0; }
.choice-list { display: grid; gap: 8px; }
.choice { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--grey-60); }
.choice[aria-checked="true"], .choice.is-checked { background: var(--brand-soft); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice small { display: block; font-size: 12px; color: var(--grey); }
.choice b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.choice-check { align-items: flex-start; padding: 14px 16px; }
.choice-check.is-disabled { opacity: .55; border-style: dashed; cursor: not-allowed; }
.choice-l { display: flex; gap: 12px; align-items: flex-start; }
.choice-l input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: 0 0 auto; }
.choice-t { display: block; font-weight: 600; } .choice-d { display: block; font-size: 13px; color: var(--grey); margin-top: 2px; }
.select-wrap select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; background: var(--paper); }
.stepper { display: flex; align-items: center; gap: 14px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font: 500 20px/1 var(--font); cursor: pointer; }
.round:hover:not(:disabled) { background: var(--grey-20); } .round:disabled { color: var(--grey-20); cursor: default; }
.stepper-n { font-size: 26px; font-weight: 600; min-width: 32px; text-align: center; font-variant-numeric: tabular-nums; }
.note { font-size: 13px; color: var(--grey); margin: 10px 0 0; }
.hint { font-size: 13px; background: var(--brand-soft); color: #5A4500; padding: 10px 14px; border-radius: 10px; margin: 10px 0 0; }
.anleitung h2 { margin-top: 28px; } .anleitung h3 { margin-top: 22px; } .anleitung p, .anleitung li { max-width: 820px; line-height: 1.55; }
.anleitung .anl-img { display: block; max-width: 100%; height: auto; border: 1px solid var(--grey-20); border-radius: 8px; margin: 10px 0 18px; }
.anleitung .anl-table { margin: 10px 0 18px; } .anleitung hr { border: 0; border-top: 1px solid var(--grey-20); margin: 24px 0; }
.hint.hint-seats { color: var(--black, #111); font-weight: 500; }
.hint.hint-demand { background: #FBE7E7; color: #7F1D1D; border: 1px solid #F3C4C4; border-radius: 10px; padding: 10px 14px; font-weight: 500; }
.hint.hint-contact { background: #E8F0FB; color: #1E3A8A; border: 1px solid #C7DAF5; font-weight: 500; }
.participants { margin-top: 14px; font-size: 14px; } .participants-h { margin: 0 0 6px; font-weight: 600; } .participants-h .muted { font-weight: 400; }
.participant-row { display: grid; grid-template-columns: 28px 1fr; gap: 4px 8px; margin-top: 10px; padding: 10px 10px 8px; border: 1px solid var(--grey-20); border-radius: 10px; background: var(--grey-10); }
.pr-n { font-weight: 600; color: var(--grey); padding-top: 10px; }
.pr-fields { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; }
.pr-fields input { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; background: var(--paper); width: 100%; }
.pr-opts { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); }
.pr-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; } .pr-check input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; } .pr-check b { font-weight: 600; color: var(--ink); }
.participant-row.is-pending .pr-fields input { background: var(--grey-10); border-style: dashed; }
.participant-row.is-pending .pr-fields input::placeholder { color: var(--grey-60); }
.contact .form-grid { gap: 14px; }
.submit-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: start; border-top: 1px solid var(--line); padding-top: 24px; }
.submit-option { display: flex; flex-direction: column; gap: 8px; } .submit-option .btn { width: 100%; }
.submit-or { align-self: center; color: var(--grey); font-size: 13px; padding-top: 18px; }
.submit-help { font-size: 12px; color: var(--grey); margin: 0; }
@media (max-width: 640px) { .submit-row { grid-template-columns: 1fr; } .submit-or { text-align: center; padding: 0; } }
.legal { font-size: 12px; color: var(--grey); margin: 0; }
.result-card { max-width: 720px; margin: 24px auto; padding: 36px; border: 1px solid var(--grey-20); }
.result-card h1 { font-size: 28px; } .result-card textarea { width: 100%; font: 13px/1.5 ui-monospace, monospace; margin-top: 8px; }
.error-card { max-width: 720px; margin: 40px auto; } .error-msg { background: var(--grey-10); padding: 12px; border-radius: 8px; }

/* Modal (mailto-Rückmeldung) */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal[hidden] { display: none; }
.modal-box { background: var(--paper); border-radius: var(--r-md); padding: 28px; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; }
.modal-box textarea { width: 100%; font: 12px/1.5 ui-monospace, monospace; margin: 8px 0; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .shell { flex-direction: column; } .sidebar { width: auto; flex: none; height: auto; position: static; padding: 12px; }
  .nav { flex-direction: row; flex-wrap: wrap; } .sidebar-foot { margin-top: 10px; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .main { padding: 18px 16px 40px; } .dl { grid-template-columns: 1fr; gap: 2px 0; } .dl dt { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Mobile-Nachbesserungen */
@media (max-width: 560px) {
  .choice-check { flex-direction: column; align-items: stretch; gap: 8px; }
  .choice-check > b { padding-left: 32px; white-space: normal; }
  .choice { flex-wrap: wrap; }
  .booking-form { padding: 20px 16px; }
  .pr-fields { grid-template-columns: 1fr; } .participant-row { grid-template-columns: 22px 1fr; }
}
.card:has(> .table) { overflow-x: auto; }
.table { min-width: 560px; }
.auth-card .table, .result-card .table { min-width: 0; }

/* ---------- Kalender ---------- */
:root { --lvl-1: #DDF0D6; --lvl-2: #BFE3A8; --lvl-3: #F6E27A; --lvl-4: #F7B96A; --lvl-5: #EE8E7E;
        --ev-blocker: #7FB3E6; --ev-fair: #F2C94C; --ev-vacation: #C49A6C; --pub: #A60000; }   /* Sondertermine hellblau / hellgelb / hellbraun (E-041) */
.cal-head { flex-wrap: wrap; position: sticky; top: 0; z-index: 20; background: var(--grey-10); padding: 10px 0; margin-top: -10px; }
.cal-toggles { display: inline-flex; gap: 12px; align-items: center; font-size: 14px; color: var(--ink-2); }
.cal-toggle { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; } .cal-toggle input { accent-color: var(--ink); width: 16px; height: 16px; } .cal-nav { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg a { padding: 6px 14px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.seg a.active { background: var(--ink); color: #fff; } .seg a:hover:not(.active) { background: var(--grey-10); }
.seg-tabs { margin-bottom: 16px; }
form.inline { display: inline; }
.lvl-0 { background: transparent; } .lvl-1 { background: var(--lvl-1); } .lvl-2 { background: var(--lvl-2); } .lvl-3 { background: var(--lvl-3); } .lvl-4 { background: var(--lvl-4); } .lvl-5 { background: var(--lvl-5); }
.ev-blocker { background: var(--ev-blocker); } .ev-fair { background: var(--ev-fair); } .ev-vacation { background: var(--ev-vacation); }
i.ev-blocker, i.ev-fair, i.ev-vacation { box-shadow: inset 0 0 0 1px rgba(0,0,0,.28); }

/* Jahresübersicht: 12 Monate, sehr kompakt */
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 14px; margin-bottom: 20px; }
.ym { background: var(--paper); border-radius: var(--r-md); padding: 10px 10px 8px; }
.ym h3 { margin: 0 0 6px; font-size: 14px; } .ym h3 a { text-decoration: none; } .ym h3 a:hover { text-decoration: underline; }
.ym-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.ym-wd { font-size: 10px; color: var(--grey); text-align: center; padding-bottom: 2px; }
.yd { position: relative; display: block; aspect-ratio: 1; min-height: 28px; border-radius: 5px; text-decoration: none; color: var(--ink); background: var(--grey-10); overflow: hidden; }
.yd.lvl-1, .yd.lvl-2, .yd.lvl-3, .yd.lvl-4, .yd.lvl-5 { color: #1A1A1A; }
.yd.lvl-5 { color: #fff; }
.yd-empty { background: transparent; }
.yd.yd-we { background: #E4E3DE; }
.yd.yd-we.lvl-1, .yd.yd-we.lvl-2, .yd.yd-we.lvl-3, .yd.yd-we.lvl-4, .yd.yd-we.lvl-5 { filter: brightness(.92); }
.yd-n { position: absolute; top: 2px; left: 4px; font-size: 10.5px; line-height: 1; font-weight: 500; }
.yd-c { position: absolute; bottom: 2px; right: 3px; font-size: 9px; line-height: 1; font-weight: 600; opacity: .85; }
.yd-m { position: absolute; bottom: 3px; left: 3px; display: flex; gap: 1.5px; }
.yd-m i { display: block; width: 6px; height: 6px; border-radius: 50%; border: 1px solid rgba(255,255,255,.8); }
.yd-m i.m-draft { opacity: .5; border-style: dashed; }
.yd-pub .yd-n { color: var(--pub); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.yd-today { outline: 2px solid var(--ink); outline-offset: -2px; }
.yd:hover { filter: brightness(.94); }

/* Monatsansicht */
.month-nav { display: flex; justify-content: space-between; margin-bottom: 10px; }
.month-card { padding: 12px; }
.mg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mg-wd { font-size: 12px; color: var(--grey); font-weight: 500; padding: 4px 6px; }
.md { min-height: 96px; border: 1px solid var(--grey-20); border-radius: 8px; padding: 6px; background: var(--paper); display: flex; flex-direction: column; gap: 3px; }
.md-empty { border-color: transparent; background: transparent; }
.md-we { background: #FAFAF8; } .md-today { border-color: var(--ink); border-width: 2px; }
.md-head { display: flex; justify-content: space-between; align-items: center; }
.md-n { font-size: 13px; font-weight: 600; } .md-pub { color: var(--pub); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.sbadge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 18px; padding: 0 5px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--grey-20); cursor: default; }
.sbadge.lvl-5 { color: #fff; }
.chip { display: block; font-size: 11.5px; line-height: 1.25; padding: 3px 6px; border-radius: 5px; text-decoration: none; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip small { opacity: .8; }
.chip-pub { background: #FBE7E7; color: #7F1D1D; }
.chip-sem { background: var(--sem); color: #000; border-left: 3px solid rgba(0,0,0,.35); }
.chip-draft { opacity: .55; border-left-style: dashed; }
.chip-praxis { background: color-mix(in srgb, var(--sem) 55%, #fff); border-left-style: double; } .chip-praxis b { font-weight: 800; }
.yd-p { font-weight: 800; font-size: .8em; margin-left: 2px; } .yd.yd-praxis { background: color-mix(in srgb, var(--sem) 40%, #fff); }
.li-praxis .lg-dot { outline: 2px double currentColor; outline-offset: 1px; }
.tech-form .tech-group { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; } .tech-form legend { font-weight: 600; padding: 0 4px; } .tech-form .pr-check { display: block; margin: 2px 0; }
.tech-form .field textarea, #notiz textarea { width: 100%; font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--paper); color: var(--ink); }
.form-actions-left { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.tech-table td { vertical-align: top; }
.chip-ev { color: #1A1A1A; border-left: 3px solid rgba(0,0,0,.3); } .chip-ev small { opacity: .7; }
.chip-ev.ev-blocker { background: var(--ev-blocker); } .chip-ev.ev-fair { background: var(--ev-fair); } .chip-ev.ev-vacation { background: var(--ev-vacation); }
.chip:hover { filter: brightness(1.08); }

/* Listenansicht */
.list-card { padding: 10px 24px 20px; }
.list-month { font-size: 15px; margin: 18px 0 8px; color: var(--grey); } .list-month a { text-decoration: none; }
.list-day { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--grey-10); }
.list-day.is-past { opacity: .6; } .list-day.is-today .list-date { color: var(--ink); font-weight: 700; }
.list-date { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.list-wd { color: var(--grey); width: 20px; } .list-d { font-weight: 600; min-width: 42px; }
.list-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.list-items li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.list-items li small { color: var(--grey); } .list-items li a { font-weight: 500; }
.li-pub > span { color: var(--pub); font-weight: 500; }
.li-school > span { color: var(--ink-2); }

/* Legende */
.legend { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.legend-group { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.legend-h { font-weight: 600; color: var(--grey); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; min-width: 90px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.lg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.lg-draft { background: var(--grey-60); border: 1px dashed var(--ink); } .lg-school { background: var(--lvl-3); }
.lg-ring { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--pub); flex: 0 0 auto; }
.lg-sq { display: inline-block; width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--grey-20); }
.legend-src { margin: 0; color: var(--grey); font-size: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Tooltip */
.tip { position: fixed; z-index: 100; max-width: 340px; background: var(--dark); color: #fff; font-size: 12.5px; line-height: 1.45; padding: 8px 10px; border-radius: 8px; white-space: pre-line; pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.tip[hidden] { display: none; }
@media (max-width: 760px) { .list-day { grid-template-columns: 1fr; gap: 4px; } .mg { gap: 2px; } .md { min-height: 64px; padding: 3px; } .chip { font-size: 10px; padding: 2px 4px; } }
.yd.lvl-1, .sbadge.lvl-1 { background: var(--lvl-1); } .yd.lvl-2, .sbadge.lvl-2 { background: var(--lvl-2); } .yd.lvl-3, .sbadge.lvl-3 { background: var(--lvl-3); } .yd.lvl-4, .sbadge.lvl-4 { background: var(--lvl-4); } .yd.lvl-5, .sbadge.lvl-5 { background: var(--lvl-5); }
.sem-dot { background: var(--sem, var(--grey-60)); }
/* Seminartage in Seminarfarbe (0.2.0); Entwürfe nur gestrichelt umrandet */
.yd.yd-sem { background: color-mix(in srgb, var(--sem) 62%, #fff); color: #1A1A1A; }
.yd.yd-sem.yd-we { filter: brightness(.92); }
.yd.yd-sem-draft { background: var(--grey-10); outline: 1.5px dashed var(--sem); outline-offset: -2px; }
.yd.yd-sem .yd-m i:first-child { display: none; }
/* Umschalter Jahresansicht */
.year-grid.hide-school .yd.lvl-1, .year-grid.hide-school .yd.lvl-2, .year-grid.hide-school .yd.lvl-3, .year-grid.hide-school .yd.lvl-4, .year-grid.hide-school .yd.lvl-5 { background: var(--grey-10); color: var(--ink); }
.year-grid.hide-school .yd.yd-we { background: #E4E3DE; filter: none; }
.year-grid.hide-school .yd.yd-sem { background: color-mix(in srgb, var(--sem) 62%, #fff); }
.year-grid.hide-school .yd-c { display: none; }
.year-grid.hide-public .yd-pub .yd-n { color: inherit; font-weight: 500; text-decoration: none; }
.list-pub { color: var(--pub); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; cursor: default; }

/* ---------- E-Mail-Vorlagen ---------- */
.editor { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow: hidden; }
.editor-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid var(--grey-20); background: var(--grey-10); }
.editor-bar button { font: 500 13px/1 var(--font); padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); cursor: pointer; }
.editor-bar button:hover { border-color: var(--ink); }
.editor-bar button[data-ph] { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.editor-sep { width: 1px; background: var(--line); margin: 0 4px; }
.editor-area { min-height: 240px; padding: 14px 16px; font: 400 15px/1.55 var(--font); outline: none; }
.editor-area:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.editor-area p { margin: 0 0 10px; } .editor-area ul, .editor-area ol { margin: 0 0 10px; padding-left: 24px; }
.bulk-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.col-check { width: 32px; } .col-check input { width: 18px; height: 18px; accent-color: var(--ink); }
.confirm-box { max-width: 720px; }

/* Hash-Werkzeug */
.auth-wrap { max-width: 440px; }
.hash-card { margin-bottom: 16px; }
.hash-card textarea { font: 12px/1.5 ui-monospace, Menlo, monospace; resize: vertical; }
.hash-form { display: flex; flex-direction: column; gap: 14px; }
/* Maskiertes Textfeld statt Passwortfeld (F13): der Browser bietet so kein Speichern an; „Anzeigen“ hebt die Maskierung auf */
.pw-wrap { display: flex; gap: 8px; align-items: center; }
.pw-wrap .pw-masked { flex: 1; -webkit-text-security: disc; }
.pw-wrap .pw-masked.pw-shown { -webkit-text-security: none; }
.pw-toggle { flex: 0 0 auto; }
.hash-actions { justify-content: flex-start; flex-wrap: wrap; }
.status-line { min-height: 20px; font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.auth-links { font-size: 13px; margin: 4px 0 12px; } .auth-links a { color: var(--grey); }

/* 0.6.0 Kontaktarchiv (E-039) */
.badge-archived { background: var(--grey-10, #EEE); color: var(--ink-2); }
.badge-lang { background: #E8F0FB; color: #1E3A8A; font-weight: 600; letter-spacing: .04em; }
/* Zusatzleistungen (E-061): Zustände je Person, Kasten im Vorgang, Felder in der Terminmaske */
.badge-ex-open { background: var(--brand-soft); color: #5A4500; } .badge-ex-rejected { background: var(--grey-20); color: var(--grey); text-decoration: line-through; }
.extras-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 8px 0; }
.extra-box { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; } .extra-box-clar { border-color: var(--err); background: #FFF7F7; }
.extra-field { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; } .extra-field .field { margin: 0; }
.extra-seats-hint.extra-full { color: #7F1D1D; font-weight: 600; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-danger { background: #B42318; border-color: #B42318; color: #fff; } .btn-danger:hover { background: #912018; border-color: #912018; }
.btn-danger-text { color: #B42318; } .btn-danger-text:hover { color: #912018; }
.impact-list { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.55; } .impact-list li + li { margin-top: 8px; }
.card .form-actions { margin-top: 14px; }
.open-list { margin: 10px 0 12px; }

/* 0.6.2 Anleitung: Beispiele als Kästen, Text links, Bilder rechts (E-041) */
.anleitung .anl-box { border: 1px solid var(--grey-20); border-left: 4px solid var(--brand); border-radius: 12px; background: var(--grey-10); padding: 18px 22px 20px; margin: 26px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 28px; }
.anleitung .anl-box h2 { margin-top: 0; }
.anleitung .anl-box .anl-text p, .anleitung .anl-box .anl-text li { max-width: none; }
.anleitung .anl-media figure { margin: 0 0 16px; }
.anleitung .anl-media figure:last-child { margin-bottom: 0; }
.anleitung .anl-media .anl-img { margin: 0 0 6px; background: #fff; }
.anleitung .anl-media figcaption { font-size: 12.5px; color: var(--grey); line-height: 1.4; }
@media (min-width: 1000px) { .anleitung .anl-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.auth-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }

/* 0.7.0 Kontaktdialog in der internen Anfrage (E-043) */
.ir-contact-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-weight: 400; }
.ir-contact-label { font-size: 15px; }
#ir-contact-note { margin-top: 4px; }
.modal-wide { max-width: 760px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; } .dialog-head h2 { margin: 0; }
.dialog-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0 10px; }
.dialog-filters input[type=search], .dialog-filters select { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; background: var(--paper); color: var(--ink); }
.dialog-filters input[type=search] { flex: 1 1 220px; }
.dialog-list { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow: auto; border-top: 1px solid var(--line); }
.dialog-list li { border-bottom: 1px solid var(--line); } .dialog-list li:has(.pick[hidden]) { display: none; }
.dialog-list .pick { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; padding: 10px 8px; font: inherit; cursor: pointer; color: var(--ink); }
.dialog-list .pick:hover, .dialog-list .pick:focus-visible { background: var(--grey-10); outline: none; }
.cd-note { margin: 10px 0 0; }
.pr-opts .contact-pick, .p-form .contact-pick { padding: 6px 12px; font-size: 13px; }

/* Tickets (E-046) */
.badge-ticket-open { background: var(--brand-soft); color: #5A4500; } .badge-ticket-done { background: #E6F4EC; color: #14532D; }
.ticket-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; margin: 0 0 14px; }
.ticket-actions { margin-top: 6px; }
.ticket-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 10px; }
.ticket-images .thumb { margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--paper); display: flex; flex-direction: column; gap: 8px; }
.ticket-images .thumb img { display: block; width: 100%; max-height: 180px; object-fit: contain; background: var(--grey-10); border-radius: 6px; }
.ticket-images figcaption { font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.ti-paste { border: 2px dashed var(--line); border-radius: 10px; padding: 16px; text-align: center; color: var(--ink-2); cursor: text; } .ti-paste .btn { margin-left: 10px; vertical-align: middle; }
.log-export { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .log-export select { min-height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font: inherit; background: var(--paper); color: var(--ink); margin-left: 6px; } .ti-paste:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.ti-preview img { display: block; max-width: 100%; max-height: 220px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; }

/* Proof-of-Work-Status unter den Absendeknöpfen (E-047) */
.pow-status { margin-top: 10px; } .pow-status.pow-ok { color: #14532D; } .pow-status.pow-error { color: #7F1D1D; font-size: 13px; }
.order-check { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
