:root {
    --bg: #eef1f6;
    --surface: #ffffff;
    --surface-2: #f5f7fb;
    --text: #1b2636;
    --muted: #667085;
    --border: #e3e8ef;
    --border-strong: #d3dae5;
    --primary: #3067bf;        /* KGN-Logo-Blau, abgedunkelt (gleiche Sättigung) */
    --primary-dark: #295ba3;   /* Hover */
    --primary-soft: #e7eef9;
    --success-bg: #e7f6ec; --success-fg: #1a7f45;
    --error-bg: #fdecec;   --error-fg: #b42318;
    --info-bg: #e8f0fe;    --info-fg: #1a4fbf;
    --warn-fg: #8a6d1a;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --header-h: 60px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}

/* Halbtransparentes Logo-Wasserzeichen im Hintergrund */
body.has-watermark::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: var(--logo-url);
    background-repeat: no-repeat;
    background-position: 58% 52%;
    background-size: min(70vw, 760px);
    opacity: .055;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

a { color: var(--primary); }

/* ---------- Header / Navigation ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.topbar__top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--header-h);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -.01em;
}
.brand__logo { height: 34px; width: auto; display: block; }
.brand__name { font-size: 1.12rem; }
.brand__sub { color: var(--muted); font-weight: 600; font-size: .95rem; }

.topbar__right { display: flex; align-items: center; gap: 12px; }
.topbar__user { color: var(--muted); font-size: .9rem; font-weight: 600; }

.topbar__nav-wrap { border-top: 1px solid var(--border); }
.navbar-row { display: flex; align-items: center; gap: 4px; max-width: 960px; margin: 0 auto; padding-right: 12px; }
.navbar {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 7px 20px;
    flex: 1 1 auto;
    min-width: 0;
    scrollbar-width: thin;
}

/* Sekundäres „Mehr"-Menü */
.navmore { position: relative; flex: none; }
.navmore__summary {
    padding: 8px 14px; border-radius: var(--radius-sm);
    color: var(--muted); font-weight: 600; font-size: .92rem; white-space: nowrap;
    cursor: pointer; list-style: none; user-select: none;
}
.navmore__summary::-webkit-details-marker { display: none; }
.navmore__summary:hover,
.navmore[open] > .navmore__summary { background: var(--surface-2); color: var(--text); }
.navmore__summary.is-active { background: var(--primary); color: #fff; }
.navmore__menu {
    position: absolute; right: 0; top: calc(100% + 4px); z-index: 60;
    min-width: 180px; padding: 6px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: 2px;
}
.navmore__item {
    padding: 8px 12px; border-radius: var(--radius-sm);
    color: var(--text); text-decoration: none; font-size: .92rem; white-space: nowrap;
}
.navmore__item:hover { background: var(--surface-2); }
.navmore__item.is-active { background: var(--primary); color: #fff; }
.navbar::-webkit-scrollbar { height: 6px; }
.navbar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.navlink {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    white-space: nowrap;
    transition: background .12s, color .12s;
}
.navlink:hover { background: var(--surface-2); color: var(--text); }
.navlink.is-active { background: var(--primary); color: #fff; }

/* ---------- Layout ---------- */
.main { padding: 28px 0 56px; }
.main--student { max-width: 640px; }

/* ---------- Headings ---------- */
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 6px; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; margin: 0 0 8px; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.06rem; line-height: 1.5; }
.center { text-align: center; }

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}
.card > h2:first-child { margin-top: 0; }
.card--narrow { max-width: 440px; margin-left: auto; margin-right: auto; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
    font: inherit;
    padding: 11px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    width: 100%;
    transition: border-color .12s, box-shadow .12s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.field select { min-height: 48px; }
.field small { color: var(--muted); }

fieldset.field { border: 0; padding: 0; margin: 0; }
.radio { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.radio input { width: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-weight: 600;
    padding: 11px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background .12s, border-color .12s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost { background: #fff; border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--danger { background: var(--error-bg); color: var(--error-fg); }
.btn--danger:hover { background: #f9d7d3; }
.btn--block { width: 100%; }
.btn--sm { padding: 7px 12px; font-size: .875rem; }
.inline { display: inline; margin: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mt { margin-top: 16px; }

/* ---------- Flash ---------- */
.flash {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: .95rem;
    border: 1px solid transparent;
}
.flash--success { background: var(--success-bg); color: var(--success-fg); border-color: #bfe6cd; }
.flash--error   { background: var(--error-bg);   color: var(--error-fg);   border-color: #f6cfc9; }
.flash--info    { background: var(--info-bg);     color: var(--info-fg);     border-color: #cfe0fb; }

/* ---------- Stats ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 18px 20px;
    text-align: center;
}
.stat__num { font-size: 2rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.stat__pct { color: var(--muted); font-size: .8rem; font-weight: 600; margin-top: 1px; }
.stat__label { color: var(--muted); font-size: .88rem; margin-top: 2px; }

.checklist { padding-left: 20px; color: var(--muted); }
.checklist li { margin: 4px 0; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.table thead th {
    font-size: .74rem; text-transform: uppercase; letter-spacing: .04em;
    color: var(--muted); background: var(--surface-2);
    position: sticky; top: 0;
}
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr.is-current td { background: var(--primary-soft); }
.table--sm th, .table--sm td { padding: 6px 8px; font-size: .9rem; }
.table-scroll {
    max-height: 460px; overflow: auto; margin-top: 8px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
}
/* Wie .table-scroll, aber ohne Höhenbegrenzung: die Tabelle fließt komplett
   auf der Seite (nur horizontales Scrollen auf schmalen Screens). */
.table-flow {
    overflow-x: auto; margin-top: 8px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.search-input {
    width: 100%; padding: 10px 12px; margin-top: 12px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    font: inherit; background: #fff;
}
.search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.copy-btn { white-space: nowrap; }

.actions { white-space: nowrap; text-align: right; }
.actions a { margin-right: 10px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--primary); text-decoration: underline; }
.linkbtn--danger { color: var(--error-fg); }

/* ---------- Report-Listen ---------- */
.report { margin: 8px 0 0; padding-left: 18px; font-size: .9rem; }
.report--warn li { color: var(--warn-fg); }
.report--err li { color: var(--error-fg); }
details > summary { cursor: pointer; margin: 6px 0; font-weight: 600; }

code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: .88em; border: 1px solid var(--border); }

/* ---------- Grid ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; vertical-align: middle; }
.badge--muted  { background: var(--border); color: #475467; }
.badge--info   { background: var(--info-bg); color: var(--info-fg); }
.badge--open   { background: var(--success-bg); color: var(--success-fg); }
.badge--closed { background: var(--error-bg); color: var(--error-fg); }
.table td .badge { margin-right: 4px; }

/* ---------- Schüler-Wahlseite ---------- */
.errors { border-color: var(--error-fg); }
.errors ul { margin: 8px 0 0; padding-left: 20px; color: var(--error-fg); }
.project-list { list-style: none; padding: 0; margin: 8px 0 0; }
.project-list li { padding: 11px 0; border-bottom: 1px solid var(--border); }
.project-list li:last-child { border-bottom: 0; }
.project-list .small { display: block; margin-top: 2px; }
.project-desc { margin: 6px 0 0; }
.project-pre { margin: 4px 0 0; font-size: .9rem; }
.project-pre__label { font-weight: 600; }
.saved-list { margin: 8px 0 0; padding-left: 22px; }
.saved-list li { margin: 6px 0; }

/* Pflichtfeld-Sternchen (Einreichungsformular) */
.req { color: var(--error-fg); }
.mb { margin-bottom: 16px; }

/* Eingereichte Projekte prüfen (Admin) */
.card--review { border: 1px solid var(--primary); background: var(--primary-soft); }
.review-item { padding: 14px 0 4px; border-top: 1px solid var(--border-strong); }
.review-item h3 { margin: 0 0 8px; }
.review-dl { display: grid; grid-template-columns: 170px 1fr; gap: 4px 14px; margin: 0 0 10px; }
.review-dl dt { font-weight: 600; color: var(--muted); }
.review-dl dd { margin: 0; }
@media (max-width: 560px) { .review-dl { grid-template-columns: 1fr; } .review-dl dd { margin-bottom: 6px; } }

/* ---------- Zuteilung ---------- */
.move-form { display: inline-flex; gap: 6px; margin: 0; }
.move-form select { padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 6px; font: inherit; max-width: 220px; }

/* Roster-Tabellen: feste Spaltenbreiten, Dropdown-Spalte rechtsbündig */
.assign-table { table-layout: fixed; min-width: 700px; }
.assign-table .col-klasse { width: 72px; }
.assign-table .col-gesch  { width: 48px; }
.assign-table .col-badge  { width: 168px; }
.assign-table .col-move   { width: 248px; }
.assign-table td { vertical-align: middle; overflow-wrap: anywhere; }
.assign-table td:last-child { text-align: right; }
.assign-table .move-form { display: flex; justify-content: flex-end; width: 100%; max-width: none; }
.assign-table .move-form select { width: 100%; max-width: none; }
.warn-title { color: var(--error-fg); }
.hint-dot { cursor: help; }

/* ---------- Hinweise-Bearbeitung ---------- */
.note-card.is-done { opacity: .65; }
.note-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.note-quote { margin: 12px 0; padding: 10px 14px; border-left: 3px solid var(--primary); background: var(--surface-2); border-radius: 6px; }
.note-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.note-move { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 0; min-width: 220px; }
.note-move .move-form { flex: 1 1 auto; min-width: 0; }
.note-move .move-form select { max-width: none; width: 100%; min-width: 0; }

/* Zweispaltige Ansicht: Hinweise links, Nachschlage-Spalte rechts */
.notes-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.notes-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.notes-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; position: sticky; top: calc(var(--header-h) + 12px); }
@media (max-width: 860px) { .notes-grid { grid-template-columns: minmax(0, 1fr); } .notes-side { position: static; } }
.note-quote, .mention { overflow-wrap: anywhere; }
.side-card { margin: 0; }
.side-title { font-size: 1rem; margin: 0 0 4px; }

/* Im Text erkannte Mitschüler:innen */
.note-mentions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; }
.mentions-label { margin-right: 2px; }
.mention {
    font-size: .82rem; padding: 4px 10px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border);
}
.mention__name { font-weight: 600; }

/* Belegung-Badge */
.occ { font-weight: 600; white-space: nowrap; }
.occ--ok    { color: var(--success-fg); }
.occ--under { color: var(--warn-fg); }
.occ--full  { color: var(--error-fg); }

/* Belegungsliste (rechte Spalte) */
.occ-list { display: flex; flex-direction: column; gap: 18px; margin-top: 10px; max-height: 460px; overflow: auto; }
.occ-row__head { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; align-items: center; }
.occ-row__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.occ-row__right { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.occ-raise { padding: 2px 8px; font-size: .75rem; line-height: 1.4; border-radius: 999px; white-space: nowrap; }
.occ-note { margin: 5px 0 0; }
.occ-note--warn { color: var(--warn-fg); }
.occ-bar { height: 5px; border-radius: 999px; background: var(--surface-2); margin-top: 4px; overflow: hidden; }
.occ-bar__fill { height: 100%; border-radius: 999px; background: var(--success-fg); }
.occ-bar__fill.occ--under { background: var(--warn-fg); }
.occ-bar__fill.occ--full  { background: var(--error-fg); }

/* Sofort-Suche (rechte Spalte) */
.search-results { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.search-hit { padding: 7px 9px; border-radius: var(--radius-sm); background: var(--surface-2); }
.search-hit__name { font-size: .9rem; }
.search-hit__proj { margin-top: 1px; }

/* ---------- Ergebnisse: Kopf & Umschalter ---------- */
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.results-head h1 { margin-bottom: 2px; }
.toggle { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.toggle a { padding: 9px 16px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .9rem; }
.toggle a:hover { background: var(--surface-2); }
.toggle a.is-active { background: var(--primary); color: #fff; }

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--border);
    padding: 22px 0;
    color: var(--muted);
    text-align: center;
    font-size: .9rem;
}

/* ---------- Einstellungen: Abschnittsüberschrift ---------- */
.settings-section { margin: 22px 0 -2px; font-size: 1.05rem; }

/* ---------- Organisation ---------- */
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.subtabs a {
    padding: 8px 14px; border-radius: 999px; text-decoration: none;
    color: var(--text); font-weight: 600; font-size: .9rem;
    background: var(--surface-2); border: 1px solid var(--border);
}
.subtabs a:hover:not(.is-active) { background: var(--surface); }
.subtabs a.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Raumzuweisung: Räume unter dem Titel, Button mit Abstand darunter */
.orga-assign { display: flex; flex-direction: column; gap: 5px; margin: 12px 0 16px; }
.orga-assign .move-form { display: block; width: 100%; max-width: 420px; }
.orga-assign .move-form select { width: 100%; max-width: none; }
.mt-sm { margin-top: 10px; }
.orga-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }

/* Räume als Checkbox-Kacheln im Raster (mehrere pro Projekt möglich) */
.room-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 8px;
    margin-top: 6px;
}
.room-chip {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 13px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong); background: var(--surface);
    font-size: .9rem; font-weight: 600; cursor: pointer; user-select: none;
    line-height: 1.25; overflow-wrap: anywhere;
}
.room-chip input { width: auto; margin: 0; flex: none; }
.room-chip:hover:not(.is-taken) { background: var(--surface-2); border-color: var(--primary); }
.room-chip.is-on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }
.room-chip.is-taken { opacity: .5; cursor: not-allowed; font-weight: 400; }

/* Besondere Raumanforderungen (rechte Spalte) */
.req-list { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; max-height: 560px; overflow: auto; }
.req-row { padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); }
.req-row__title { font-weight: 600; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.req-row__need { margin-top: 3px; overflow-wrap: anywhere; }
.note-card.just-assigned { animation: orga-flash 1.8s ease-out; }
@keyframes orga-flash {
    0%, 30% { box-shadow: 0 0 0 3px var(--primary); }
    100%    { box-shadow: 0 0 0 0 transparent; }
}

.orga-room { display: inline-flex; align-items: center; gap: 8px; }
.orga-table { table-layout: fixed; min-width: 560px; }
.orga-table td { vertical-align: top; overflow-wrap: anywhere; }
.orga-table .col-proj { width: 34%; }
.orga-table .col-lead { width: 22%; }
.orga-dl { display: grid; grid-template-columns: 130px 1fr; gap: 4px 14px; margin: 8px 0 12px; }
.orga-dl dt { font-weight: 600; color: var(--muted); }
.orga-dl dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .orga-dl { grid-template-columns: 1fr; } .orga-dl dd { margin-bottom: 6px; } }

/* ---------- Protokoll (Audit-Log) ---------- */
.audit-table { table-layout: fixed; min-width: 720px; }
.audit-table td { vertical-align: top; overflow-wrap: anywhere; }
.audit-table .col-when { width: 128px; }
.audit-table .col-who  { width: 150px; }
.audit-table .col-what { width: 190px; }
.nowrap { white-space: nowrap; }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 12px; }

/* ---------- Bestätigungs-Overlay (Umverteilung, mit „Rückgängig") ---------- */
.toast {
    position: fixed; left: 50%; top: 18px; transform: translateX(-50%);
    z-index: 200; display: flex; align-items: center; gap: 18px;
    width: min(760px, calc(100vw - 32px));
    padding: 14px 18px; border-radius: var(--radius);
    background: #f3e1a3; color: #574710; border: 1px solid #ddc271;
    box-shadow: var(--shadow); animation: toast-in .2s ease; transition: opacity .3s ease;
}
.toast.is-hiding { opacity: 0; }
.toast__text { font-size: .95rem; flex: 1; }
.toast__undo {
    background: none; border: 0; padding: 4px 4px; cursor: pointer; font: inherit; font-weight: 700;
    color: #6b4e08; text-decoration: underline; white-space: nowrap;
}
.toast__undo:hover { color: #3f2e00; }
.toast__close { background: none; border: 0; color: #8a6d1a; cursor: pointer; font-size: 1.25rem; line-height: 1; padding: 0 2px; }
.toast__close:hover { color: #3f2e00; }
@keyframes toast-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 480px) { .toast { left: 16px; right: 16px; transform: none; width: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .brand__sub { display: none; }
    .topbar__user { display: none; }
}
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .card { padding: 18px; }
    h1 { font-size: 1.35rem; }
    .brand__name { font-size: 1rem; }
    .brand__logo { height: 30px; }
}

/* ---------- Projektseite (öffentlich) ---------- */
.project-facts { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 16px; margin: 6px 0 0; }
.project-facts dt { font-weight: 600; color: var(--muted); }
.project-facts dd { margin: 0; overflow-wrap: anywhere; }
.times-list { margin: 0; padding-left: 18px; }
.times-list li { margin: 2px 0; }
.notice { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); margin-top: 14px; overflow-wrap: anywhere; }
.notice--remind { border-left: 3px solid var(--warn-fg); }

/* ---------- Dashboard: Nachrichten ans Orga-Team ---------- */
.card--accent { border: 1px solid var(--primary); }
.msg-list { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.msg { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.msg__head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.msg__body { margin: 8px 0 10px; padding: 8px 12px; border-left: 3px solid var(--primary); background: var(--surface); border-radius: 6px; overflow-wrap: anywhere; }

/* Sonderzeiten-Tagesfelder im Projektformular */
.sonderzeit-days { margin-top: 8px; }

/* ---------- Dashboard: Status-Übersicht ---------- */
.status-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.status-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status-row + .status-row { border-top: 1px solid var(--border); padding-top: 10px; }
.status-row__label { font-weight: 600; min-width: 190px; }
.status-row__note { }
.status-row__link { margin-left: auto; font-size: .9rem; white-space: nowrap; }
@media (max-width: 560px) {
    .status-row__label { min-width: 0; flex-basis: 100%; }
    .status-row__link { margin-left: 0; }
}

/* Treffer der Namenssuche auf der Ergebnisseite deutlicher hervorheben */
#resultSearchOut .search-hit {
    background: #fdf6d6;
    border: 1px solid #ecdd9c;
}
#resultSearchOut .search-hit__name { font-weight: 600; }
