/* ==========================================================================
   DRK Anfragen- und Vorgangsmanagement – verbindliches Design-System
   Entwickelt von Robl-IT
   Grundlage: freigegebenes Mockup. Komponenten nur erweitern, nicht ersetzen.
   ========================================================================== */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-medium.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-semibold.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/inter-bold.woff") format("woff"); }

:root {
  --red: #e60005;
  --red-600: #c70004;
  --red-50: #fdecec;
  --nav: #1b2736;
  --nav-2: #243244;
  --nav-line: #2c3b4e;
  --nav-text: #c7d0dc;
  --nav-muted: #8a97a8;
  --ink: #14202e;
  --text: #2a3849;
  --muted: #6b7685;
  --faint: #98a2b0;
  --line: #e4e8ee;
  --line-2: #d8dee6;
  --soft: #f5f7fa;
  --bg: #ffffff;
  --link: #1d63d6;
  --green: #12a150;
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .05);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, .12);
  --sidebar-w: 236px;
  --topbar-h: 64px;
  --font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 0; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.25; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 12px; }
img { max-width: 100%; }
.icon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.gap-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- Logo ---------- */
.logo-mark { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.logo-mark svg { width: 30px; height: 30px; flex-shrink: 0; }
.logo-text { font-size: 11.5px; line-height: 1.02; font-weight: 700; letter-spacing: -.01em; }
.logo-dark .logo-text { color: #fff; }
.logo-img { max-height: 44px; width: auto; display: block; }
.sidebar .logo-img { max-height: 40px; background: #fff; border-radius: 6px; padding: 3px 6px; }

/* ==========================================================================
   Interner Bereich: Seitenleiste + Hauptinhalt
   ========================================================================== */
.app { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--nav); color: var(--nav-text); display: flex; flex-direction: column; z-index: 40; }
.sidebar-brand { height: 72px; display: flex; align-items: center; padding: 0 20px; flex-shrink: 0; }
.sidebar-brand a:hover { text-decoration: none; }
.sidebar-search { padding: 4px 14px 12px; }
.sidebar-search form { position: relative; }
.sidebar-search .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--nav-muted); }
.sidebar-search input { width: 100%; height: 34px; border: 1px solid var(--nav-line); background: var(--nav-2); color: #fff; border-radius: var(--r); padding: 0 10px 0 32px; font: inherit; font-size: 13px; outline: none; }
.sidebar-search input::placeholder { color: var(--nav-muted); }
.sidebar-search input:focus { border-color: #44556b; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; }
.nav-section { font-size: 12px; color: var(--nav-muted); padding: 18px 10px 6px; margin-top: 6px; border-top: 1px solid var(--nav-line); }
.nav-link { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--r); color: var(--nav-text); font-size: 14px; font-weight: 500; margin-bottom: 2px; transition: background .15s, color .15s; }
.nav-link .icon { width: 18px; height: 18px; color: #aeb9c7; }
.nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.nav-link.active { background: var(--red); color: #fff; }
.nav-link.active .icon { color: #fff; }
.nav-count { margin-left: auto; font-size: 11.5px; background: rgba(255, 255, 255, .12); color: #fff; padding: 1px 7px; border-radius: 10px; }
.nav-link.active .nav-count { background: rgba(255, 255, 255, .25); }
.sidebar-foot { padding: 12px 20px 16px; font-size: 11.5px; color: var(--nav-muted); border-top: 1px solid var(--nav-line); }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar-h); background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 0 28px; }
.topbar-search { flex: 1; max-width: 460px; position: relative; }
.topbar-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.topbar-search input { width: 100%; height: 38px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 12px 0 36px; font: inherit; font-size: 14px; color: var(--text); background: #fff; outline: none; }
.topbar-search input:focus { border-color: #b9c3cf; box-shadow: 0 0 0 3px rgba(27, 39, 54, .06); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar .menu-toggle { display: none; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: var(--r); border: 0; background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { background: var(--soft); }
.icon-btn .dot-count { position: absolute; top: 5px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.user-btn { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 4px 6px 4px 4px; border-radius: var(--r); cursor: pointer; font: inherit; color: var(--ink); font-weight: 500; }
.user-btn:hover { background: var(--soft); }
.user-btn .icon { width: 16px; height: 16px; color: var(--muted); }
.avatar { --av-h: 210; width: 32px; height: 32px; border-radius: 50%; background: hsl(var(--av-h) 45% 90%); color: hsl(var(--av-h) 45% 30%); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.content { padding: 28px 32px 32px; flex: 1; }
.app-footer { padding: 16px 32px 20px; font-size: 12px; color: var(--faint); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.app-footer strong { color: var(--muted); font-weight: 600; }
.sidebar-backdrop { display: none; }

/* ---------- Seitenkopf ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-title { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.page-sub { color: var(--muted); margin: 4px 0 0; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.back-link .icon { width: 15px; height: 15px; }

/* ---------- Dropdown ---------- */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; display: none; }
.dropdown.open > .dropdown-menu { display: block; }
.dropdown-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 6px; color: var(--text); font: inherit; font-size: 14px; background: none; border: 0; text-align: left; cursor: pointer; }
.dropdown-item:hover { background: var(--soft); text-decoration: none; }
.dropdown-item .icon { width: 16px; height: 16px; color: var(--muted); }
.dropdown-item.danger { color: var(--red); }
.dropdown-item.danger .icon { color: var(--red); }
.dropdown-sep { height: 1px; background: var(--line); margin: 6px 0; }
.dropdown-head { padding: 8px 10px 6px; font-size: 12px; color: var(--muted); }
.notif-menu { width: 340px; max-width: calc(100vw - 24px); padding: 0; }
.notif-menu .notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 13px; }
.notif-item:hover { background: var(--soft); text-decoration: none; }
.notif-item.unread { background: #fff8f8; }
.notif-item .when { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.notif-empty { padding: 22px 14px; text-align: center; color: var(--muted); font-size: 13px; }
.link-btn { background: none; border: 0; color: var(--link); font: inherit; font-size: 12.5px; cursor: pointer; padding: 0; }

/* ---------- Karten ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card + .card { margin-top: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; flex-wrap: wrap; }
.card-head + .card-body { padding-top: 0; }
.card-title { font-size: 16px; font-weight: 600; }
.card-sub { color: var(--muted); margin: 3px 0 0; font-size: 13px; }
.card-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-body { padding: 20px; }
.card-body > .table-wrap { margin: 0; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.grid-2, .grid-3 { display: grid; gap: 16px 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main-side { grid-template-columns: minmax(0, 1fr) 340px; }

/* ---------- KPI-Karten ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi { display: flex; align-items: center; gap: 14px; padding: 20px 20px; border-radius: 10px; border: 1px solid transparent; color: var(--ink); min-height: 92px; transition: box-shadow .15s; }
a.kpi:hover { text-decoration: none; box-shadow: var(--shadow); }
.kpi-icon { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.kpi-icon .icon { width: 17px; height: 17px; }
.kpi-body { display: flex; flex-direction: column; }
.kpi-value { font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.kpi-label { font-size: 13px; color: var(--text); margin-top: 3px; }
.kpi-blue { background: #e8f2fd; border-color: #d6e7fb; } .kpi-blue .kpi-icon { background: #1d6fe0; }
.kpi-red { background: #fdeceb; border-color: #f9dad8; } .kpi-red .kpi-icon { background: var(--red); } .kpi-red .kpi-label { color: #b40004; }
.kpi-orange { background: #fdf4e8; border-color: #f8e6cf; } .kpi-orange .kpi-icon { background: #ef8a07; }
.kpi-yellow { background: #fef8df; border-color: #f8edbd; } .kpi-yellow .kpi-icon { background: #f2b705; }
.kpi-green { background: #e7f6ed; border-color: #d3eedd; } .kpi-green .kpi-icon { background: var(--green); }
.kpi-gray { background: var(--soft); border-color: var(--line); } .kpi-gray .kpi-icon { background: #6b7685; }
.kpi-purple { background: #f1edfc; border-color: #e4dcf8; } .kpi-purple .kpi-icon { background: #6d4fd1; }

/* ---------- Tabellen ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; overflow-x: auto; }
.card > .table-wrap { margin: 0 20px 20px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { background: #f5f7fa; text-align: left; font-weight: 500; color: var(--text); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 13px; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text); }
.table tr:last-child td { border-bottom: 0; }
.table td + td, .table th + th { border-left: 1px solid #eef1f5; }
.table tbody tr { transition: background .1s; }
.table tbody tr.row-link { cursor: pointer; }
.table tbody tr.row-link:hover { background: #fafbfc; }
.table .t-num { font-weight: 600; color: var(--ink); white-space: nowrap; }
.table .t-actions { text-align: right; white-space: nowrap; width: 1%; }
.table .t-actions .icon-btn { width: 32px; height: 32px; }
.table .t-actions .icon-btn .icon { width: 17px; height: 17px; }
.table .icon-btn.danger { color: var(--red); }
.table-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 0 20px 16px; }
.table-tools .form-control { height: 36px; width: auto; min-width: 150px; }
.table-tools .search { flex: 1; min-width: 200px; max-width: 320px; }
.sort-handle { cursor: grab; color: var(--faint); }
tr.dragging { opacity: .5; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 6px; font-size: 12.5px; font-weight: 500; line-height: 1.35; white-space: nowrap; }
.badge-sm { padding: 1px 7px; font-size: 11px; border-radius: 5px; }
.badge-blue   { background: #e2ecfb; color: #1f4f99; }
.badge-yellow { background: #fdeeb4; color: #765400; }
.badge-orange { background: #ffe5cc; color: #9a4700; }
.badge-green  { background: #daf2e3; color: #17663a; }
.badge-red    { background: #fde1e1; color: #c2000a; }
.badge-gray   { background: #eceff3; color: #4b5767; }
.badge-purple { background: #ebe5fb; color: #5a3eae; }
.badge-teal   { background: #d7f1ef; color: #0e6862; }
.prio { font-size: 13.5px; }
.prio-high { color: var(--ink); font-weight: 500; }
.prio-urgent { color: var(--red); font-weight: 600; }
.prio-low { color: var(--muted); }
.color-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--r); border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; text-decoration: none !important; }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-600); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--soft); }
.btn-dark { background: var(--nav); color: #fff; }
.btn-dark:hover { background: #26364a; }
.btn-light { background: #eef1f5; color: var(--ink); }
.btn-light:hover { background: #e3e8ee; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--soft); }
.btn-danger { background: #fff; color: var(--red); border-color: #f3c4c4; }
.btn-danger:hover { background: var(--red-50); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.loading { opacity: .65; cursor: default; }
.btn-icon { width: 38px; padding: 0; }

/* ---------- Formulare ---------- */
.form-group { margin-bottom: 16px; min-width: 0; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-label .req { color: var(--red); font-weight: 500; }
.form-control { width: 100%; height: 40px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 12px; font: inherit; font-size: 14px; color: var(--text); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.form-control { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.form-control:focus { border-color: #b8c2ce; box-shadow: 0 0 0 3px rgba(27, 39, 54, .07); }
.form-control::placeholder { color: #9aa4b1; }
.form-control.is-invalid { border-color: var(--red); }
.form-control:disabled { background: var(--soft); color: var(--muted); }
.invalid-feedback { color: var(--red); font-size: 12.5px; margin-top: 5px; }
.form-help { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; }
.select-caret { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); width: 16px !important; height: 16px !important; color: var(--text); pointer-events: none; }
.input-icon { position: relative; }
.input-icon .form-control { padding-right: 38px; }
.input-icon-i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 17px !important; height: 17px !important; color: var(--text); pointer-events: none; }
input[type=date]::-webkit-calendar-picker-indicator, input[type=time]::-webkit-calendar-picker-indicator { opacity: 0; position: absolute; right: 8px; width: 24px; height: 24px; cursor: pointer; }
.form-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 16px; }
.form-row > .w-full { grid-column: span 6; }
.form-row > .w-half { grid-column: span 3; }
.form-row > .w-third { grid-column: span 2; }
.form-row > .w-twothird { grid-column: span 4; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--red); flex-shrink: 0; }
.form-section-title { font-size: 15px; font-weight: 600; color: var(--ink); margin: 6px 0 14px; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.form-actions-end { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Schalter */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { width: 40px; height: 23px; border-radius: 12px; background: #cfd6df; position: relative; transition: background .15s; flex-shrink: 0; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--green); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(17px); }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 3px rgba(18, 161, 80, .25); }
.switch-label { font-size: 14px; }

/* Datei-Upload */
.file-drop { display: block; border: 1.5px dashed var(--line-2); border-radius: 10px; padding: 18px; text-align: center; color: var(--muted); font-size: 13px; cursor: pointer; transition: border-color .15s, background .15s; position: relative; }
.file-drop:hover, .file-drop.drag { border-color: #b8c2ce; background: var(--soft); }
.file-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop .icon { width: 22px; height: 22px; display: block; margin: 0 auto 6px; color: var(--muted); }
.file-list { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; }
.file-list li { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--text); }
.file-list .icon { width: 15px; height: 15px; color: var(--muted); }

/* ---------- Hinweise ---------- */
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; border: 1px solid; }
.alert .icon { width: 18px; height: 18px; margin-top: 1px; }
.alert > div > :last-child { margin-bottom: 0; }
.alert-info { background: #eef5fe; border-color: #d6e6fb; color: #1d4b8f; }
.alert-success { background: #e9f7ef; border-color: #cdebd9; color: #17663a; }
.alert-warning { background: #fff7e6; border-color: #fbe3b3; color: #7a4f00; }
.alert-error { background: #fdeeee; border-color: #f7cfcf; color: #a8000a; }

/* Toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 380px; padding: 12px 14px; border-radius: 10px; background: var(--nav); color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; animation: toast-in .2s ease-out; }
.toast .icon { width: 18px; height: 18px; }
.toast-success .icon { color: #5fd38f; }
.toast-error { background: #9b0a0f; }
.toast-warning .icon { color: #ffc94d; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-start; justify-content: center; padding: 60px 16px 16px; background: rgba(20, 32, 46, .45); overflow-y: auto; }
.modal.open { display: flex; }
.modal-dialog { background: #fff; border-radius: var(--r-lg); width: 100%; max-width: 560px; box-shadow: var(--shadow-lg); }
.modal-dialog.lg { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-title { font-size: 16px; font-weight: 600; }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 12px 12px; font-size: 13.5px; color: var(--text); background: none; border: 0; cursor: pointer; white-space: nowrap; font: inherit; font-size: 13.5px; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.active { color: var(--ink); font-weight: 600; }
.tab.active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--red); border-radius: 2px; }
.tab .count { color: var(--muted); font-weight: 400; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.page-link { min-width: 34px; height: 34px; padding: 0 8px; border-radius: var(--r); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--text); font-size: 13px; }
.page-link:hover { background: var(--soft); text-decoration: none; }
.page-link.active { background: var(--nav); border-color: var(--nav); color: #fff; }
.page-link.disabled { color: var(--faint); }
.page-link .icon { width: 16px; height: 16px; }
.page-gap { color: var(--muted); padding: 0 4px; }

.empty-state { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty-state .icon { width: 30px; height: 30px; color: #c3cad4; margin-bottom: 8px; }
.empty-state p { margin: 0; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-item { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.tl-item::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: #e6eaef; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; position: relative; z-index: 1; }
.tl-dot .icon { width: 13px; height: 13px; stroke-width: 2.5; }
.tl-gray .tl-dot { background: #fff; color: #4b5767; border: 2px solid #4b5767; }
.tl-blue .tl-dot { background: #1d6fe0; }
.tl-indigo .tl-dot { background: #3346c2; }
.tl-teal .tl-dot { background: #0e958c; }
.tl-green .tl-dot { background: var(--green); }
.tl-orange .tl-dot { background: #ef8a07; }
.tl-yellow .tl-dot { background: #f2b705; }
.tl-red .tl-dot { background: var(--red); }
.tl-content { flex: 1; min-width: 0; padding-top: 1px; }
.tl-meta { font-size: 12px; color: var(--muted); }
.tl-title { font-weight: 600; color: var(--ink); font-size: 14px; margin-top: 1px; }
.tl-text { color: var(--text); font-size: 13.5px; margin-top: 3px; overflow-wrap: anywhere; }
.tl-internal .tl-text { background: #fffbea; border: 1px solid #f6e9b4; border-radius: 8px; padding: 8px 10px; margin-top: 6px; }
.tl-files { margin-top: 4px; display: flex; flex-direction: column; gap: 3px; }
.tl-file { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; }
.tl-file .icon { width: 14px; height: 14px; }
.tl-file .muted { font-weight: 400; }

/* ==========================================================================
   Ticket-Detailansicht (Drei-Bereiche-Layout)
   ========================================================================== */
.ticket { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.ticket-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ticket-number { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.ticket-head .page-actions { margin-left: auto; }
.ticket-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr) 290px; }
.ticket-col { min-width: 0; }
.ticket-col + .ticket-col { border-left: 1px solid var(--line); }
.col-head { height: 48px; display: flex; align-items: center; padding: 0 20px; background: #f7f9fb; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: 15px; justify-content: space-between; }
.col-head .tabs { border-bottom: 0; height: 48px; align-items: stretch; margin: 0 -8px; }
.col-head .tab { display: flex; align-items: center; }
.col-head .tab.active::after { bottom: 0; }
.col-body { padding: 18px 20px; }
.master dl { margin: 0; }
.master dt { font-size: 13px; font-weight: 600; color: var(--ink); }
.master dl > div + div { margin-top: 14px; }
.master dt.light { font-weight: 400; color: var(--text); }
.master dd { margin: 2px 0 0; color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.master .edit-link { font-size: 12.5px; font-weight: 500; }
.ticket-center { display: flex; flex-direction: column; min-height: 520px; }
.ticket-center .col-body { flex: 1; overflow-y: auto; max-height: 640px; }
.composer { border-top: 1px solid var(--line); padding: 14px 16px; background: #fff; border-radius: 0 0 0 0; }
.composer-row { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 40px; height: 40px; resize: none; flex: 1; }
.composer textarea.expanded { height: 96px; }
.composer-opts { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.composer-opts .check { font-size: 12.5px; }
.composer-files { font-size: 12.5px; color: var(--text); margin-top: 6px; }
.composer.note-mode textarea { background: #fffdf3; border-color: #efe2a6; }
.side .form-group { margin-bottom: 14px; }
.side .form-label { font-weight: 600; }
.side-info { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.side-info div { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.mobile-tabs { display: none; }
.files-table td { font-size: 13px; }
.data-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 14px; }
.data-list dt { font-weight: 600; color: var(--ink); }
.data-list dd { margin: 0; overflow-wrap: anywhere; }

/* ==========================================================================
   Öffentliches Portal
   ========================================================================== */
.pub { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.pub-header { height: 76px; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 30; }
.pub-header-inner { max-width: 1200px; margin: 0 auto; height: 100%; display: flex; align-items: center; padding: 0 28px; gap: 24px; }
.pub-header .logo-mark svg { width: 36px; height: 36px; }
.pub-header .logo-text { font-size: 13.5px; }
.pub-nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.pub-nav a { position: relative; color: var(--ink); font-size: 14.5px; padding: 26px 14px; font-weight: 500; }
.pub-nav a:hover { color: var(--red); text-decoration: none; }
.pub-nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--red); opacity: .75; }
.pub-nav-toggle { display: none; margin-left: auto; }
.pub-main { flex: 1; }
.pub-container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.pub-narrow { max-width: 820px; margin: 0 auto; padding: 36px 28px 56px; }
.pub-footer { border-top: 1px solid var(--line); padding: 18px 0; font-size: 12.5px; color: var(--muted); }
.pub-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 28px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.pub-footer a { color: var(--muted); }
.pub-footer .grow { flex: 1; }

/* Startseite */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero-bg { position: absolute; inset: 0 0 0 auto; width: 62%; background-size: cover; background-position: center; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .85) 18%, rgba(255, 255, 255, .15) 45%, rgba(255, 255, 255, 0) 60%), linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 0) 30%); }
.hero-bg.placeholder { background: radial-gradient(circle at 70% 40%, #fdecec 0%, #fff 60%); }
.hero-bg.placeholder::before { content: ""; position: absolute; right: 12%; top: 16%; width: 220px; height: 220px; background: linear-gradient(var(--red), var(--red)) center/33.4% 100% no-repeat, linear-gradient(var(--red), var(--red)) center/100% 33.4% no-repeat; opacity: .07; }
.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 48px 28px 48px; }
.hero-tagline { color: var(--red); font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.hero-title { font-size: 44px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; max-width: 560px; }
.hero-text { font-size: 17px; color: var(--text); margin: 18px 0 0; max-width: 520px; white-space: pre-line; }
.type-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 26px; margin-top: 40px; max-width: 1000px; }
.type-card { position: relative; display: flex; align-items: center; gap: 22px; padding: 26px 26px; background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(16, 24, 40, .08); border: 1px solid #edf0f4; color: var(--ink); min-height: 116px; transition: box-shadow .15s, transform .15s; }
.type-card:hover { text-decoration: none; box-shadow: 0 6px 22px rgba(16, 24, 40, .12); transform: translateY(-1px); }
.type-icon { width: 64px; height: 52px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.type-icon .icon { width: 50px; height: 50px; stroke-width: 1.8; }
.type-icon.red { color: var(--red); }
.type-icon.blue { color: #1f4fa3; }
.type-icon.dark { color: var(--ink); }
.type-card-title { font-size: 17px; font-weight: 600; display: block; }
.type-card-sub { display: block; font-size: 14px; color: var(--text); margin-top: 10px; font-weight: 500; }
.type-card-go { position: absolute; right: 20px; bottom: 18px; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; }
.type-card-go .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.home-links { display: flex; gap: 22px; margin: 34px 0 0; flex-wrap: wrap; }
.home-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
 .home-link .icon { color: var(--red); }
.home-service-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; max-width:1000px; margin-top:30px; }
.home-service-card { display:flex; align-items:flex-start; gap:17px; min-width:0; padding:24px; border:1px solid #e7eaf0; border-radius:14px; background:rgba(255,255,255,.96); box-shadow:0 4px 18px rgba(16,24,40,.06); transition:transform .18s ease, box-shadow .18s ease; }
.home-service-card:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(16,24,40,.10); }
.home-service-recognition { border-top:3px solid var(--red); }
.home-service-members { border-top:3px solid #2458a6; }
.home-service-icon { display:flex; align-items:center; justify-content:center; width:46px; height:46px; flex:0 0 46px; border-radius:12px; background:#fdeeee; color:var(--red); }
.home-service-members .home-service-icon { background:#edf3ff; color:#2458a6; }
.home-service-icon .icon { width:25px; height:25px; }
.home-service-copy { min-width:0; }
.home-service-copy h2 { margin:5px 0 8px; font-size:20px; line-height:1.3; color:var(--ink); }
.home-service-copy p { margin:0 0 17px; color:var(--text); font-size:14px; line-height:1.6; }
.home-service-copy .btn { display:inline-flex; align-items:center; gap:8px; }
.home-service-copy .btn .icon { width:16px; height:16px; }
@media (max-width:800px) { .home-service-grid { grid-template-columns:minmax(0,1fr); gap:14px; margin-top:24px; } .home-service-card { padding:20px; } }
@media (max-width:440px) { .home-service-card { gap:12px; padding:17px; } .home-service-icon { width:38px; height:38px; flex-basis:38px; } .home-service-copy h2 { font-size:18px; } }


/* Stepper */
.stepper { display: flex; align-items: center; gap: 12px; margin: 4px 0 28px; }
.step { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.step-num { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #9aa4b1; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text); background: #fff; }
.step.active { color: var(--red); font-weight: 600; }
.step.active .step-num { background: var(--red); border-color: var(--red); color: #fff; }
.step.done .step-num { background: #fff; border-color: var(--red); color: var(--red); }
.step-line { flex: 1; height: 1px; background: var(--line-2); min-width: 20px; }
.pub-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px 30px; }
.pub-title { font-size: 22px; font-weight: 600; margin-bottom: 18px; }
.pub-lead { color: var(--text); margin: -8px 0 20px; }
.review-list { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 9px 22px; margin: 0 0 22px; font-size: 14px; }
.review-list dt { color: var(--muted); }
.review-list dd { margin: 0; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.review-section { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.choose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* Bestätigung */
.confirm { text-align: center; max-width: 520px; margin: 0 auto; padding: 18px 0 8px; }
.confirm-check { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.confirm-check .icon { width: 30px; height: 30px; stroke-width: 3; }
.confirm h1 { font-size: 26px; font-weight: 600; line-height: 1.3; }
.confirm-label { color: var(--text); margin: 18px 0 10px; font-size: 14px; }
.confirm-number { display: inline-flex; align-items: center; gap: 18px; padding: 14px 22px; background: #f3f5f8; border-radius: 10px; font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.confirm-number button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; display: inline-flex; }
.confirm-number button:hover { color: var(--ink); }
.confirm p.lead { margin: 22px auto; max-width: 400px; color: var(--text); }

/* Anfrage verfolgen */
.track-steps { list-style: none; padding: 0; margin: 26px 0 0; }
.track-steps li { position: relative; padding: 0 0 22px 34px; }
.track-steps li::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: #cfd6df; }
.track-steps li:last-child::before { display: none; }
.track-steps li.done::before { background: #ef8a8a; }
.track-steps li.current::before { background: #7f9bc6; }
.track-steps .ts-dot { position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #8f99a6; background: #fff; }
.track-steps li.done .ts-dot { background: var(--red); border-color: var(--red); }
.track-steps li.current .ts-dot { border-color: #f2b705; border-width: 2.5px; }
.ts-title { font-weight: 600; color: var(--ink); }
.ts-meta { font-size: 13px; color: var(--muted); }
.ts-text { font-size: 13.5px; color: var(--text); }
.track-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.track-number { font-size: 20px; font-weight: 700; color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-item .icon { color: var(--red); margin-top: 2px; }
.prose { font-size: 14.5px; line-height: 1.7; }
.prose h2 { font-size: 17px; margin: 24px 0 8px; }

/* Login */
.auth-wrap { min-height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 410px; }
.auth-card .pub-title { text-align: center; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 13px; }

/* ==========================================================================
   Kalender
   ========================================================================== */
.cal-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 20px 16px; }
.cal-month { font-size: 17px; font-weight: 600; color: var(--ink); min-width: 150px; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cal-dow { padding: 10px 10px; font-size: 12.5px; font-weight: 500; color: var(--muted); background: #f7f9fb; border-bottom: 1px solid var(--line); }
.cal-day { min-height: 112px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 6px 8px; min-width: 0; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.other { background: #fbfcfd; }
.cal-day.other .cal-date { color: var(--faint); }
.cal-date { font-size: 12.5px; font-weight: 600; color: var(--ink); padding: 2px 4px 4px; display: inline-block; }
.cal-day.today .cal-date { background: var(--red); color: #fff; border-radius: 6px; padding: 2px 7px; }
.cal-ev { display: block; font-size: 12px; line-height: 1.3; padding: 4px 6px; border-radius: 5px; margin-top: 3px; color: var(--ink); background: #eef3fc; border-left: 3px solid #1d6fe0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev:hover { text-decoration: none; filter: brightness(.97); }
.cal-ev.ev-due { background: #fff3e3; border-left-color: #ef8a07; }
.cal-ev.ev-overdue { background: #fdeaea; border-left-color: var(--red); }
.cal-ev.ev-closed { background: #eef7f1; border-left-color: var(--green); color: var(--muted); }
.cal-ev .t { font-weight: 600; }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; padding: 14px 20px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cal-list { display: none; }

/* ==========================================================================
   Statistik
   ========================================================================== */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 220px; padding: 10px 4px 0; border-bottom: 1px solid var(--line); }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bar { width: 100%; max-width: 34px; background: var(--red); border-radius: 5px 5px 0 0; position: relative; min-height: 2px; }
.bar.closed { background: #f3a6a8; }
.bar-val { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.bar-labels { display: flex; gap: 10px; padding: 6px 4px 0; }
.bar-labels span { flex: 1; text-align: center; font-size: 11.5px; color: var(--muted); min-width: 0; overflow: hidden; }
.hbar { display: grid; grid-template-columns: minmax(120px, 190px) 1fr 44px; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 13.5px; }
.hbar-track { height: 10px; background: #f0f2f5; border-radius: 5px; overflow: hidden; }
.hbar-fill { height: 100%; background: var(--red); border-radius: 5px; }
.hbar-fill.blue { background: #1d6fe0; }
.hbar .num { text-align: right; font-weight: 600; color: var(--ink); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* Verwaltung */
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-nav { position: sticky; top: calc(var(--topbar-h) + 20px); padding: 8px; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r); color: var(--text); font-size: 14px; }
.settings-nav a .icon { width: 16px; height: 16px; color: var(--muted); }
.settings-nav a:hover { background: var(--soft); text-decoration: none; }
.settings-nav a.active { background: var(--red-50); color: var(--red); font-weight: 600; }
.settings-nav a.active .icon { color: var(--red); }
.field-editor { border: 1px solid var(--line); border-radius: 10px; }
.field-row { display: grid; grid-template-columns: 28px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 70px 36px; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.field-row:last-child { border-bottom: 0; }
.field-row.head { background: #f5f7fa; font-size: 12.5px; color: var(--muted); font-weight: 500; border-radius: 10px 10px 0 0; }
.field-row .form-control { height: 34px; font-size: 13px; }
.field-row .select-wrap select { padding-right: 28px; }
.field-row .opts { grid-column: 2 / -2; display: none; }
.field-row.has-opts .opts { display: block; }
.field-row .opts textarea { min-height: 60px; font-size: 13px; }
.color-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.color-pick label { cursor: pointer; }
.color-pick input { position: absolute; opacity: 0; }
.color-pick .badge { border: 2px solid transparent; }
.color-pick input:checked + .badge { border-color: var(--ink); }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; }
.icon-pick label { cursor: pointer; }
.icon-pick input { position: absolute; opacity: 0; }
.icon-pick span { height: 46px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text); }
.icon-pick input:checked + span { border-color: var(--red); color: var(--red); background: var(--red-50); }
.perm-table td, .perm-table th { text-align: center; }
.perm-table td:first-child, .perm-table th:first-child { text-align: left; }
.perm-table input { width: 17px; height: 17px; accent-color: var(--red); }
.perm-group td { background: #fafbfc; font-weight: 600; color: var(--ink); }
.placeholder-list { display: flex; flex-wrap: wrap; gap: 6px; }
.placeholder-list code { background: var(--soft); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; font-size: 12px; cursor: pointer; }
.placeholder-list code:hover { border-color: var(--red); color: var(--red); }
.preview-frame { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 10px; background: #f3f5f8; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
pre.log { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: 12px; max-height: 300px; overflow: auto; white-space: pre-wrap; }

/* Mobile Listenansicht (Karten wie im Mockup) */
.chips { display: none; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 7px; font-size: 13px; background: var(--soft); color: var(--text); }
.chip.on { background: #1f57c3; color: #fff; }
.chip.red { background: var(--red-50); color: #b40004; }
.chip.orange { background: #fdf0e4; color: #b45309; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .ticket-grid { grid-template-columns: 240px minmax(0, 1fr) 260px; }
  .grid-main-side { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 1100px) {
  :root { --sidebar-w: 260px; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: none; }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(20, 32, 46, .45); z-index: 35; }
  .main { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .topbar .menu-toggle { display: inline-flex; }
  .topbar-mobile-logo { display: inline-flex; }
  .content { padding: 22px 20px 28px; }
  .app-footer { padding: 14px 20px 18px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket-grid { grid-template-columns: minmax(0, 1fr) 280px; }
  .ticket-grid .col-master { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .ticket-grid .col-master + .ticket-col { border-left: 0; }
  .master dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
  .master dl > div { margin-bottom: 12px; }
  .master dl > div + div { margin-top: 0; }
  .grid-main-side, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .settings-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .settings-nav a { white-space: nowrap; }
}
@media (min-width: 1101px) { .topbar-mobile-logo { display: none; } }

@media (max-width: 800px) {
  .hero-bg { width: 100%; opacity: .35; }
  .hero-title { font-size: 32px; }
  .type-cards, .choose-grid, .grid-2, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .pub-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 6px 16px 12px; box-shadow: var(--shadow-lg); }
  .pub-nav.open { display: flex; }
  .pub-nav a { padding: 12px 6px; }
  .pub-nav a.active::after { left: 6px; right: auto; width: 30px; }
  .pub-nav-toggle { display: inline-flex; }
  .pub-header-inner, .pub-container { padding: 0 16px; }
  .hero-inner { padding: 30px 16px; }
  .pub-narrow { padding: 22px 14px 40px; }
  .pub-card { padding: 22px 18px; }
  .form-row > .w-half, .form-row > .w-third, .form-row > .w-twothird { grid-column: span 6; }
  .step-label { display: none; }
  .step.active .step-label { display: inline; }
  .ticket-grid { grid-template-columns: minmax(0, 1fr); }
  .ticket-grid .ticket-col { border-left: 0; }
  .mobile-tabs { display: flex; padding: 0 12px; border-bottom: 1px solid var(--line); }
  .ticket-grid .ticket-col { display: none; }
  .ticket-grid .ticket-col.m-active { display: block; }
  .ticket-grid .ticket-center.m-active { display: flex; }
  .ticket-grid .col-master { border-bottom: 0; }
  .master dl { display: block; }
  .master dl > div + div { margin-top: 14px; }
  .ticket-number { font-size: 19px; }
  .ticket-head .page-actions { margin-left: 0; width: 100%; }
  .ticket-center .col-body { max-height: none; }
  .cal { display: none; }
  .cal-list { display: block; padding: 0 16px 16px; }
  .cal-list-day { font-weight: 600; color: var(--ink); margin: 14px 0 6px; font-size: 13.5px; }
  .field-row { grid-template-columns: 24px minmax(0, 1fr) 36px; }
  .field-row .fr-hide { display: none; }
  .field-row.head { display: none; }
  .modal { padding: 16px 10px; }
}

@media (max-width: 640px) {
  .page-title { font-size: 21px; }
  .kpis { gap: 10px; }
  .kpi { padding: 14px; min-height: 80px; gap: 10px; }
  .kpi-value { font-size: 22px; }
  .topbar-search { display: none; }
  .user-btn .user-name { display: none; }
  .card-head { padding: 16px; }
  .card > .table-wrap { margin: 0 12px 12px; }
  .table-tools { padding: 0 12px 12px; }
  .table-tools .form-control, .table-tools .search { min-width: 0; max-width: none; flex: 1 1 140px; }
  .chips { display: flex; }
  .kpis-dash { display: none; }
  /* Tabellen als Karten */
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards thead { display: none; }
  .table-wrap:has(.table-cards) { border: 0; overflow: visible; }
  .table-cards tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 12px 14px; position: relative; background: #fff; box-shadow: var(--shadow); }
  .table-cards td { border: 0 !important; padding: 1px 0; font-size: 13.5px; }
  .table-cards td[data-label]:not(.t-primary):not(.t-badge)::before { content: attr(data-label) ": "; color: var(--muted); }
  .table-cards .t-primary { font-weight: 700; color: var(--ink); padding-right: 110px; }
  .table-cards .t-badge { position: absolute; top: 11px; right: 12px; width: auto; }
  .table-cards .t-actions { text-align: left; width: auto; margin-top: 4px; }
  .table-cards .t-hide-m { display: none; }
  .review-list { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .review-list dd { margin-bottom: 10px; }
  .confirm-number { font-size: 18px; }
  .toasts { left: 12px; right: 12px; }
  .toast { min-width: 0; max-width: none; }
  .hbar { grid-template-columns: 110px 1fr 36px; }
}

@media print {
  .sidebar, .topbar, .app-footer, .page-actions, .composer, .no-print { display: none !important; }
  .main { margin: 0; }
  .card, .ticket { box-shadow: none; }
}

/* Konfigurierter Ort in der öffentlichen Portalüberschrift */
.hero-location { white-space: nowrap; }

/* ---------- Öffentliches Veranstaltungsportal ---------- */
.event-page { max-width: 1180px; margin: 0 auto; padding: 34px 28px 58px; }
.event-page > .back-link { margin: 0 0 16px; }
.event-page > .back-link a { display:inline-flex; align-items:center; gap:7px; color:var(--muted); font-size:13px; font-weight:500; }
.event-page > .back-link a:hover { color:var(--ink); text-decoration:none; }
.event-hero { display:flex; align-items:center; gap:18px; padding:26px 28px; margin-bottom:22px; border:1px solid #ead9d9; border-radius:16px; background:linear-gradient(135deg,#fff 0%,#fff7f7 100%); box-shadow:var(--shadow); }
.event-hero-icon { width:62px; height:62px; border-radius:16px; display:flex; align-items:center; justify-content:center; background:#fdeceb; color:var(--red); flex:0 0 auto; }
.event-hero-icon .icon { width:30px; height:30px; }
.event-hero-copy { min-width:0; }
.event-title { font-size:32px; line-height:1.15; font-weight:700; letter-spacing:-.025em; margin:3px 0 6px; color:var(--ink); }
.event-subtitle { color:var(--muted); margin:0; font-size:14px; }
.event-layout { display:grid; grid-template-columns:minmax(0,1fr) 350px; gap:24px; align-items:start; }
.event-main { min-width:0; }
.event-card { margin-bottom:20px; overflow:hidden; }
.event-info-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.event-info-item { display:flex; gap:14px; padding:22px; min-height:116px; border-bottom:1px solid var(--line); }
.event-info-item:nth-child(odd) { border-right:1px solid var(--line); }
.event-info-item:nth-last-child(-n+2) { border-bottom:0; }
.event-info-icon { width:42px; height:42px; border-radius:11px; display:flex; align-items:center; justify-content:center; background:var(--soft); color:var(--red); flex:0 0 auto; }
.event-info-icon .icon { width:19px; height:19px; }
.event-info-item > div { display:flex; flex-direction:column; gap:3px; min-width:0; }
.event-info-item strong { font-size:15px; color:var(--ink); line-height:1.35; }
.event-info-item span:not(.event-label) { font-size:13px; color:var(--muted); line-height:1.45; }
.event-label { font-size:10.5px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); font-weight:700; }
.event-description { line-height:1.75; color:var(--text); font-size:14px; }
.event-note { display:flex; gap:13px; padding:18px 20px; margin-bottom:20px; border:1px solid #cfe0f5; border-radius:12px; background:#f4f8fd; color:#244b78; }
.event-note-icon { flex:0 0 auto; width:30px; height:30px; display:flex; align-items:center; justify-content:center; }
.event-note-icon .icon { width:19px; height:19px; }
.event-note strong { display:block; margin-bottom:5px; }
.event-note div div { font-size:13px; line-height:1.55; }
.event-sidebar { position:sticky; top:96px; min-width:0; }
.event-register-card { padding:22px; margin-bottom:20px; border-color:#f0d5d5; box-shadow:0 5px 18px rgba(16,24,40,.07); }
.event-register-top { display:flex; gap:13px; align-items:flex-start; margin-bottom:18px; }
.event-register-icon { width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:#fdeceb; color:var(--red); flex:0 0 auto; }
.event-register-icon .icon { width:21px; height:21px; }
.event-register-top div:last-child { display:flex; flex-direction:column; gap:4px; }
.event-register-top strong { font-size:17px; color:var(--ink); line-height:1.3; }
.event-register-top span { font-size:13px; color:var(--muted); line-height:1.5; }
.btn-block { width:100%; justify-content:center; }
.event-register-btn { min-height:50px; font-size:15px; font-weight:600; border-radius:9px; }
.event-register-hint { margin:13px 2px 0; color:var(--muted); font-size:11.5px; line-height:1.55; text-align:center; }
.event-contact-card .card-body { display:flex; flex-direction:column; gap:9px; font-size:13px; }
.event-contact-card a { display:flex; align-items:center; gap:7px; color:var(--link); overflow-wrap:anywhere; }
.event-contact-card a .icon { width:15px; height:15px; }
.event-contact-card .card-title { font-size:15px; }
@media (max-width: 1050px) { .event-page { padding-left:22px; padding-right:22px; } .event-layout { grid-template-columns:minmax(0,1fr) 320px; gap:18px; } }
@media (max-width: 850px) { .event-layout { grid-template-columns:1fr; } .event-sidebar { position:static; } }
@media (max-width: 620px) { .event-page { padding:22px 14px 40px; } .event-hero { padding:20px; gap:14px; } .event-hero-icon { width:52px; height:52px; border-radius:13px; } .event-title { font-size:25px; } .event-info-grid { grid-template-columns:1fr; } .event-info-item { min-height:0; padding:18px; } .event-info-item:nth-child(odd) { border-right:0; } .event-info-item:nth-last-child(-n+2) { border-bottom:1px solid var(--line); } .event-info-item:last-child { border-bottom:0; } .event-register-card { padding:18px; } }

/* ---------- Öffentliches Formular: Rückmeldung Scharfer Einsatz ---------- */
.sharp-page { max-width:1180px; margin:0 auto; padding:34px 28px 58px; }
.sharp-page > .back-link { margin:0 0 16px; }
.sharp-page > .back-link a { display:inline-flex; align-items:center; gap:7px; color:var(--muted); font-size:13px; font-weight:500; }
.sharp-page > .back-link a:hover { color:var(--ink); text-decoration:none; }
.sharp-hero { display:flex; align-items:center; gap:18px; padding:26px 28px; margin-bottom:22px; border:1px solid #ead9d9; border-radius:16px; background:linear-gradient(135deg,#fff 0%,#fff7f7 100%); box-shadow:var(--shadow); }
.sharp-hero-icon { width:62px; height:62px; border-radius:16px; display:flex; align-items:center; justify-content:center; background:#fdeceb; color:var(--red); flex:0 0 auto; }
.sharp-hero-icon .icon { width:30px; height:30px; }
.sharp-title { font-size:32px; line-height:1.15; font-weight:700; letter-spacing:-.025em; margin:3px 0 6px; color:var(--ink); }
.sharp-subtitle { color:var(--muted); margin:0; font-size:14px; }
.sharp-layout { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:24px; align-items:start; }
.sharp-main { min-width:0; }
.sharp-form { display:flex; flex-direction:column; gap:20px; }
.sharp-card { overflow:hidden; }
.sharp-section-head { display:flex; align-items:center; gap:14px; padding:20px 22px; border-bottom:1px solid var(--line); background:#fff; }
.sharp-step { width:34px; height:34px; border-radius:50%; background:var(--red); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; flex:0 0 auto; }
.sharp-card-body { padding:22px; }
.sharp-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 20px; }
.sharp-grid label { display:flex; flex-direction:column; gap:7px; font-size:13px; font-weight:600; color:var(--ink); }
.sharp-grid label.full { grid-column:1/-1; }
.sharp-grid .form-control { width:100%; box-sizing:border-box; }
.sharp-textarea { min-height:150px; resize:vertical; }
.sharp-upload-info { display:flex; gap:14px; align-items:flex-start; margin-top:20px; padding:16px 18px; border:1px solid #cfe0f5; border-radius:12px; background:#f4f8fd; color:#244b78; }
.sharp-upload-icon { width:38px; height:38px; border-radius:10px; background:#fff; display:flex; align-items:center; justify-content:center; color:#2c5d91; flex:0 0 auto; }
.sharp-upload-icon .icon { width:19px; height:19px; }
.sharp-upload-info strong { display:block; margin-bottom:4px; }
.sharp-upload-info p { margin:0; font-size:12.5px; line-height:1.55; color:#496b8f; }
.sharp-sidebar { position:sticky; top:96px; min-width:0; }
.sharp-side-card { padding:24px; margin-bottom:18px; }
.sharp-side-icon { width:48px; height:48px; border-radius:13px; display:flex; align-items:center; justify-content:center; background:#fdeceb; color:var(--red); margin-bottom:14px; }
.sharp-side-icon .icon { width:23px; height:23px; }
.sharp-side-card h2 { margin:0 0 7px; font-size:18px; }
.sharp-side-card p { margin:0; color:var(--muted); font-size:13px; line-height:1.6; }
.sharp-side-list { display:flex; flex-direction:column; gap:12px; margin-top:20px; padding-top:18px; border-top:1px solid var(--line); }
.sharp-side-list > div { display:flex; align-items:flex-start; gap:10px; font-size:12.5px; line-height:1.45; color:var(--text); }
.sharp-check { width:20px; height:20px; border-radius:50%; background:#edf8f0; color:#25834a; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; flex:0 0 auto; }
.sharp-help-card { display:flex; gap:12px; padding:17px 18px; border:1px solid #cfe0f5; border-radius:12px; background:#f4f8fd; color:#244b78; }
.sharp-help-icon { width:28px; height:28px; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.sharp-help-icon .icon { width:18px; height:18px; }
.sharp-help-card strong { display:block; margin-bottom:4px; font-size:13px; }
.sharp-help-card p { margin:0; font-size:12px; line-height:1.55; color:#496b8f; }
.sharp-submit-card { padding:20px 22px; border:1px solid #ead9d9; border-radius:16px; background:linear-gradient(135deg,#fff 0%,#fff9f9 100%); box-shadow:var(--shadow); }
.sharp-consent { display:flex; gap:10px; align-items:flex-start; font-size:12.5px; color:var(--text); line-height:1.55; cursor:pointer; }
.sharp-consent input { margin-top:3px; flex:0 0 auto; }
.sharp-submit-row { margin-top:17px; }
.sharp-submit { min-height:48px; padding:0 22px; font-size:14px; font-weight:600; }
.sharp-submit .icon { width:17px; height:17px; }
.sharp-submit-hint { margin:12px 0 0; color:var(--muted); font-size:11.5px; line-height:1.5; }
@media (max-width:900px) { .sharp-layout { grid-template-columns:1fr; } .sharp-sidebar { position:static; } }
@media (max-width:620px) { .sharp-page { padding:22px 14px 40px; } .sharp-hero { padding:20px; gap:14px; } .sharp-hero-icon { width:52px; height:52px; border-radius:13px; } .sharp-title { font-size:25px; } .sharp-grid { grid-template-columns:1fr; } .sharp-grid label.full { grid-column:auto; } .sharp-card-body { padding:18px; } .sharp-section-head { padding:17px 18px; } .sharp-submit-card { padding:18px; } }
/* 1.6: zentrale Suche und Datenverwaltung */
.search-results{display:grid;gap:8px}.search-result{display:grid;grid-template-columns:auto minmax(180px,1fr) minmax(160px,.8fr) auto;gap:12px;align-items:center;padding:14px 16px;border:1px solid var(--line);border-radius:12px;text-decoration:none;color:inherit;background:var(--surface)}.search-result:hover{border-color:var(--red);box-shadow:0 4px 14px rgba(0,0,0,.05)}@media(max-width:760px){.search-result{grid-template-columns:1fr}.search-result .badge{width:max-content}}

/* 1.6.3 – Veranstaltungsanmeldung im verbindlichen Veranstaltungsdesign */
.event-registration-page .event-hero{margin-bottom:24px}.event-registration-form{display:flex;flex-direction:column;gap:20px}.event-form-card{overflow:hidden}.event-form-head{display:flex;align-items:center;gap:14px;padding:20px 22px;border-bottom:1px solid var(--line);background:#fff}.event-form-step{width:34px;height:34px;border-radius:50%;background:var(--red);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;flex:0 0 auto}.event-form-body{padding:22px}.event-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}.event-form-grid label,.event-comments{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600;color:var(--ink)}.event-form-grid label.event-form-full{grid-column:1/-1}.event-form-grid .form-control{width:100%;box-sizing:border-box}.event-form-grid textarea{resize:vertical;min-height:110px}.event-food-note{display:flex;gap:12px;margin:0 22px 22px;padding:15px 17px;border:1px solid #cfe0f5;border-radius:12px;background:#f4f8fd;color:#244b78}.event-food-note .event-note-icon{width:28px;flex:0 0 auto}.event-food-note strong{display:block;margin-bottom:3px;font-size:13px}.event-food-note div div{font-size:12.5px;line-height:1.5}.event-important{padding:18px;border:1px solid #ead9d9;border-radius:12px;background:linear-gradient(135deg,#fff7f7,#fff);margin-bottom:18px;color:var(--text)}.event-important-title{display:flex;align-items:center;gap:8px;color:var(--red);font-weight:700;font-size:14px;margin-bottom:8px}.event-important-title .icon{width:18px;height:18px}.event-important p{margin:6px 0 0;font-size:12.5px;line-height:1.6}.event-check{display:flex;gap:10px;align-items:flex-start;font-size:12.5px;line-height:1.55;color:var(--text);cursor:pointer;margin-top:15px}.event-check input{margin-top:3px;flex:0 0 auto}.event-comments{margin-top:18px}.event-submit-card{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 22px;border:1px solid #ead9d9;border-radius:16px;background:linear-gradient(135deg,#fff,#fff8f8);box-shadow:var(--shadow)}.event-submit-card>div:first-child{display:flex;flex-direction:column;gap:4px}.event-submit-card strong{font-size:15px}.event-submit-card span{font-size:12px;color:var(--muted)}.event-submit-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.event-submit-btn{min-height:48px;padding:0 20px;font-weight:600}.event-summary-list{display:flex;flex-direction:column;gap:0;border-top:1px solid var(--line)}.event-summary-list>div{padding:15px 0;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:3px}.event-summary-list>div:last-child{border-bottom:0;padding-bottom:0}.event-summary-list strong{font-size:14px;line-height:1.35}.event-summary-list span:not(.event-label){color:var(--muted);font-size:12.5px;line-height:1.45}.event-side-info{display:flex;gap:12px;padding:17px 18px;border:1px solid #cfe0f5;border-radius:12px;background:#f4f8fd;color:#244b78}.event-side-info .event-register-icon{width:38px;height:38px;border-radius:10px;flex:0 0 auto}.event-side-info strong{display:block;margin-bottom:4px;font-size:13px}.event-side-info p{margin:0;font-size:12px;line-height:1.55;color:#496b8f}@media(max-width:850px){.event-submit-card{align-items:stretch;flex-direction:column}.event-submit-actions{justify-content:flex-end}}@media(max-width:620px){.event-form-grid{grid-template-columns:1fr}.event-form-grid label.event-form-full{grid-column:auto}.event-form-body{padding:18px}.event-form-head{padding:17px 18px}.event-food-note{margin:0 18px 18px}.event-submit-card{padding:18px}.event-submit-actions{flex-direction:column-reverse;align-items:stretch}.event-submit-actions .btn{width:100%;justify-content:center}}

/* ---------- Öffentliches Veranstaltungslisting: cache-resistente Klassen ---------- */
.events-public-page{max-width:1180px;margin:0 auto;padding:34px 28px 58px}
.events-public-hero{padding:30px 32px;margin-bottom:24px;border:1px solid #ead9d9;border-radius:16px;background:linear-gradient(135deg,#fff 0%,#fff7f7 100%);box-shadow:0 5px 18px rgba(16,24,40,.07)}
.events-public-hero h1{margin:5px 0 7px;font-size:34px;line-height:1.15;color:var(--ink)}
.events-public-hero p{margin:0;max-width:720px;color:var(--muted);font-size:14px;line-height:1.6}
.events-public-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.events-public-card{padding:24px;border:1px solid #e4e8ee;border-radius:15px;background:#fff;box-shadow:0 3px 14px rgba(16,24,40,.06);transition:transform .15s,box-shadow .15s}
.events-public-card:hover{transform:translateY(-1px);box-shadow:0 7px 24px rgba(16,24,40,.1)}
.events-public-card h2{margin:6px 0 8px;font-size:21px;color:var(--ink);line-height:1.25}
.events-public-card p{color:var(--text);font-size:13.5px;line-height:1.6;margin:0 0 10px}
.events-public-card .btn{margin-top:7px}
@media(max-width:800px){.events-public-page{padding:24px 16px 42px}.events-public-grid{grid-template-columns:1fr}.events-public-hero{padding:24px}.events-public-hero h1{font-size:28px}}

/* 1.9.2: allgemeines Formularraster (interne Formulare) */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.card.form-grid { padding: 20px; }
.form-grid > label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.form-grid > label.check { flex-direction: row; font-weight: 400; }
.form-grid .form-control { width: 100%; box-sizing: border-box; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }


/* 1.15.2: persönliche Menü-Favoriten */
.nav-favorite-row{display:flex;align-items:center;gap:2px;margin-bottom:2px}
.nav-favorite-row>.nav-link{flex:1;min-width:0;margin-bottom:0}
.nav-favorite-toggle{flex:0 0 34px;width:34px;height:38px;border:0;border-radius:var(--r);background:transparent;color:#aeb9c7;font-size:22px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s}
.nav-favorite-toggle:hover{background:rgba(255,255,255,.08);color:#fff}
.nav-favorite-toggle.is-favorite{color:#ffd166}
.nav-favorite-toggle:focus-visible{outline:2px solid #fff;outline-offset:1px}
.nav-favorites[hidden]{display:none}
.nav-favorites-heading{margin-top:14px;padding-top:14px;border-top:2px solid var(--nav-line)}
[data-favorites-list] .nav-link{width:100%;box-sizing:border-box}


/* Live-Suche in den vorhandenen Suchfeldern */
.live-search-results{position:absolute;z-index:1200;top:calc(100% + 6px);left:0;right:0;max-height:min(65vh,440px);overflow:auto;background:var(--surface,#fff);color:var(--text,#17202b);border:1px solid var(--line-2,#d8dee6);border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.16)}
.live-search-results[hidden]{display:none!important}.live-search-result{display:block;padding:10px 13px;border-bottom:1px solid var(--line,#edf0f3);color:inherit;text-decoration:none}.live-search-result:last-child{border-bottom:0}.live-search-result:hover,.live-search-result:focus{background:var(--surface-2,#f4f6f8);outline:none}.live-search-result strong{display:block;font-size:13px;line-height:1.35}.live-search-result small{display:block;margin-top:3px;color:var(--muted,#667085);font-size:11px;overflow-wrap:anywhere}.live-search-result .live-search-kind{display:inline-block;margin-bottom:4px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#667085)}.live-search-message{padding:12px 13px;color:var(--muted,#667085);font-size:12px}.sidebar-search .live-search-results{left:14px;right:14px;width:auto}

/* Gruppierte, einklappbare Navigation */
.nav-group{margin:4px 0 8px;border-bottom:1px solid rgba(255,255,255,.055);padding-bottom:4px}
.nav-group-title{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:38px;padding:0 10px;border-radius:var(--r);color:var(--nav-muted);font-size:11px;font-weight:700;letter-spacing:.045em;text-transform:uppercase;cursor:pointer;list-style:none;user-select:none}
.nav-group-title::-webkit-details-marker{display:none}
.nav-group-title .icon{width:14px;height:14px;transition:transform .15s;color:#aeb9c7}
.nav-group[open]>.nav-group-title .icon{transform:rotate(180deg)}
.nav-group-title:hover{background:rgba(255,255,255,.05);color:#fff}
.nav-group-links{padding:1px 0 3px}
.nav-admin-heading{margin-top:14px}
.nav-favorites{margin-bottom:8px}
.nav-favorites-heading{margin-top:0!important;padding:13px 10px 7px!important;border-top:2px solid var(--nav-line)!important;font-weight:700}
.inline-form{display:inline-flex;margin:0;vertical-align:middle}

/* ---------- Lehrgangs-Terminfindung (2.2.0) ---------- */
.lp-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; padding: 0 20px 20px; }
.lp-month { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.lp-month-head { padding: 9px 12px; font-weight: 600; font-size: 13.5px; color: var(--ink); background: #f7f9fb; border-bottom: 1px solid var(--line); }
.lp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.lp-dow { font-size: 11px; color: var(--muted); text-align: center; padding: 5px 0; }
.lp-day { position: relative; min-height: 34px; padding: 3px 4px; font-size: 12px; border-top: 1px solid #f0f2f5; border-left: 1px solid #f0f2f5; color: var(--ink); }
.lp-day:nth-child(7n+1) { border-left: 0; }
.lp-day.empty { background: #fbfcfd; }
.lp-day.we { background: #f9fafc; font-weight: 600; }
.lp-day.busy { background: #fde1e1; }
.lp-day.soft { background: #fdf3cf; }
.lp-day.holiday { background: #ffe5cc; }
.lp-day.proposal::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 3px; height: 4px; border-radius: 2px; background: #1d6fe0; }
.lp-day.final::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 3px; height: 4px; border-radius: 2px; background: var(--green); }
.lp-day.today .lp-num { background: var(--red); color: #fff; border-radius: 4px; padding: 0 4px; }
.lp-legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 0 20px 18px; font-size: 12.5px; color: var(--muted); }
.lp-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; border: 1px solid rgba(0,0,0,.06); }
.lp-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #eceff3; min-width: 140px; }
.lp-bar span { display: block; height: 100%; }
.lp-bar .a { background: var(--green); } .lp-bar .m { background: #f2b705; } .lp-bar .u { background: var(--red); }
.lp-score { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 24px; padding: 0 7px; border-radius: 6px; font-weight: 600; font-size: 12.5px; background: #eceff3; color: #4b5767; }
.lp-score.hi { background: #daf2e3; color: #17663a; } .lp-score.mid { background: #fdeeb4; color: #765400; } .lp-score.lo { background: #fde1e1; color: #c2000a; }
.lp-details { font-size: 12px; color: var(--muted); margin: 4px 0 0; padding-left: 16px; }
.lp-vote { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lp-vote label { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; font-size: 13px; cursor: pointer; border-left: 1px solid var(--line); white-space: nowrap; }
.lp-vote label:first-child { border-left: 0; }
.lp-vote input { position: absolute; opacity: 0; pointer-events: none; }
.lp-vote input:checked + span { font-weight: 600; }
.lp-vote label.v-available:has(input:checked) { background: #daf2e3; color: #17663a; }
.lp-vote label.v-maybe:has(input:checked) { background: #fdeeb4; color: #765400; }
.lp-vote label.v-unavailable:has(input:checked) { background: #fde1e1; color: #c2000a; }
.lp-vote input:focus-visible + span { outline: 2px solid #1d6fe0; outline-offset: 2px; }
.lp-conflict { color: #c2000a; font-size: 12px; margin-top: 4px; }
.lp-checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; max-height: 320px; overflow: auto; padding: 4px 0; }
.lp-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lp-inline .form-control { width: auto; }
@media (max-width: 720px) { .lp-months { grid-template-columns: 1fr; } .lp-vote label { padding: 6px 8px; } }
.check-field { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink); cursor: pointer; margin: 0 0 8px; }
.check-field input { width: 16px; height: 16px; accent-color: var(--red); }
.lp-nowrap { white-space: nowrap; }
.lp-pop { position: relative; display: inline-block; }
.lp-pop > summary { list-style: none; }
.lp-pop > summary::-webkit-details-marker { display: none; }
.lp-pop-body { position: absolute; right: 0; z-index: 20; margin-top: 6px; width: 260px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(16,24,40,.12); display: flex; flex-direction: column; gap: 8px; text-align: left; white-space: normal; }
.lp-pop-body .form-label { margin: 0; }
