/* ============================================================
   DRKSE Intranet â Basis-Theme (aus dem Design-Prototyp)
   VollstÃ¤ndige Komponenten folgen mit den jeweiligen Phasen.
   ============================================================ */

:root {
    /* DRK-Grundfarben */
    --drk-red: #E30613;
    --drk-red-dark: #c20510;

    /* Akzent (wird pro Benutzer in Phase 1 Ã¼berschrieben) */
    --accent: oklch(0.55 0.11 152);
    --accent-soft: oklch(0.965 0.025 152);
    --accent-ink: oklch(0.43 0.10 152);

    /* SchriftgrÃ¶Ãen-Skala (--fs wird in Phase 1 pro Benutzer gesetzt) */
    --fs: 1;
    --t-xs: calc(11.5px * var(--fs));
    --t-sm: calc(13px * var(--fs));
    --t-base: calc(15px * var(--fs));
    --t-md: calc(17px * var(--fs));
    --t-lg: calc(20px * var(--fs));
    --t-xl: calc(27px * var(--fs));
    --t-2xl: calc(34px * var(--fs));
    --t-3xl: calc(46px * var(--fs));

    --ink: #23272c;
    --muted: #697079;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
    /* Feste line-height statt "normal": macht die ZeilenhÃ¶he schriftunabhÃ¤ngig.
       Sonst blÃ¤ht Source Sans 3 (groÃe vertikale Metriken) beim Font-Swap die
       ganze UI â v.a. die Navigation â auf. 1.4 = bisherige kompakte Optik. */
    line-height: 1.4;
    color: var(--ink);
    background: #eceef0;
    -webkit-font-smoothing: antialiased;
}

@keyframes drkUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: #d2d6db; border-radius: 9px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #b7bcc3; background-clip: padding-box; border: 3px solid transparent; }

/* ---- Phase-0-Statusseite ---- */
.status-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.status-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid #e7e9ec;
    border-radius: 18px;
    padding: 30px 32px;
    box-shadow: 0 12px 40px rgba(20, 25, 30, .06);
    animation: drkUp .4s ease both;
}

.status-brand { display: flex; align-items: center; gap: 13px; }
.status-logo {
    width: 46px; height: 46px; border-radius: 11px;
    background: #fdeaea; display: flex; align-items: center; justify-content: center;
}
.status-title { font-size: var(--t-lg); font-weight: 700; letter-spacing: -.015em; color: #1c2024; }
.status-sub { font-size: var(--t-xs); color: #8a9098; margin-top: 2px; }

.status-badge {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 22px 0 4px;
    background: #e9f7ee; color: #1b7a3d;
    font-size: var(--t-sm); font-weight: 600;
    padding: 8px 13px; border-radius: 9px;
}

.status-list { list-style: none; margin: 16px 0 0; padding: 0; }
.status-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 11px 0; border-top: 1px solid #f0f1f3;
    font-size: var(--t-sm);
}
.status-label { color: var(--muted); }
.status-value { font-weight: 600; color: #2b3036; font-family: 'Source Code Pro', monospace; text-align: right; }

.status-note { margin-top: 18px; font-size: var(--t-sm); color: var(--muted); line-height: 1.5; }

/* ---- Phase-1a: Login ---- */
.login { min-height: 100vh; display: flex; }

.login-brand {
    width: 46%;
    background: var(--drk-red);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 54px 56px;
    color: #fff;
}
.login-brand-bg { position: absolute; right: -130px; bottom: -150px; width: 620px; height: 620px; opacity: .10; }
.login-brand-top { display: flex; align-items: center; gap: 14px; position: relative; }
.login-brand-logo {
    background: #fff; width: 46px; height: 46px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.login-brand-logo svg { width: 28px; height: 28px; }
.login-brand-name { font-weight: 700; font-size: var(--t-lg); letter-spacing: -.01em; }
.login-brand-mid { position: relative; max-width: 420px; }
.login-brand-claim { font-size: var(--t-3xl); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }
.login-brand-text { margin-top: 20px; font-size: var(--t-md); opacity: .9; line-height: 1.5; }
.login-brand-foot { position: relative; font-size: var(--t-sm); opacity: .8; }

.login-form-wrap {
    flex: 1; background: #fff;
    display: flex; align-items: center; justify-content: center; padding: 40px;
}
.login-form { width: 100%; max-width: 380px; animation: drkUp .5s ease both; }
.login-title { font-size: var(--t-2xl); font-weight: 700; letter-spacing: -.02em; color: #1c2024; }
.login-sub { margin-top: 8px; font-size: var(--t-base); color: var(--muted); line-height: 1.5; }
.login-sub strong { color: #3a4047; }

.login-hint {
    margin-top: 18px; display: flex; gap: 10px; align-items: flex-start;
    background: #fff7e6; border: 1px solid #f3e0b5; border-radius: 11px;
    padding: 11px 13px; font-size: var(--t-sm); color: #866417; line-height: 1.45;
}
.login-hint > span:first-child { flex-shrink: 0; margin-top: 1px; display: flex; }

.login-error {
    margin-top: 18px; background: #fdecec; border: 1px solid #f3bcbc; border-radius: 11px;
    padding: 11px 13px; font-size: var(--t-sm); color: #b3261e; line-height: 1.45;
}

.login-field { margin-top: 16px; }
.login-field:first-of-type { margin-top: 22px; }
.login-field label { font-size: var(--t-sm); font-weight: 600; color: #3a4047; display: block; margin-bottom: 6px; }
.login-input { position: relative; display: flex; align-items: center; }
.login-input-icon { position: absolute; left: 13px; color: #9aa0a8; display: flex; }
.login-input input {
    width: 100%; padding: 12px 14px 12px 42px;
    border: 1.5px solid #dde0e4; border-radius: 10px;
    font-size: var(--t-base); font-family: inherit; color: var(--ink); outline: none;
    transition: border-color .14s, box-shadow .14s;
}
.login-input input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.login-row {
    margin-top: 14px; display: flex; align-items: center; justify-content: space-between;
    font-size: var(--t-sm);
}
.login-remember { display: flex; align-items: center; gap: 8px; color: #5b626b; cursor: pointer; }
.login-remember input { width: 16px; height: 16px; accent-color: var(--drk-red); }
.login-help { color: var(--accent-ink); font-weight: 600; cursor: pointer; }

.login-btn {
    margin-top: 20px; width: 100%; padding: 13px;
    background: var(--drk-red); color: #fff; border: none; border-radius: 10px;
    font-size: var(--t-base); font-weight: 700; font-family: inherit; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    transition: background .14s;
}
.login-btn:hover { background: var(--drk-red-dark); }

.login-support {
    margin-top: 22px; padding-top: 18px; border-top: 1px solid #eef0f2;
    font-size: var(--t-sm); color: #8a9098; line-height: 1.5; text-align: center;
}
.login-support strong { color: #5b626b; }

@media (max-width: 860px) {
    .login-brand { display: none; }
}

/* ============================================================
   Phase 1b â App-Shell
   ============================================================ */
body.app { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

.muted { color: var(--muted); }

/* ---- Header ---- */
.hdr {
    height: 62px; flex-shrink: 0; background: #fff; border-bottom: 1px solid #e4e7ea;
    display: flex; align-items: center; gap: 18px; padding: 0 22px; z-index: 30;
}
.hdr-brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; text-decoration: none; }
.hdr-logo svg { width: 30px; height: 30px; display: block; }
.hdr-brand-text { line-height: 1.05; }
.hdr-brand-name { font-weight: 700; font-size: var(--t-md); letter-spacing: -.015em; color: #1c2024; display: block; }
.hdr-brand-name span { color: var(--drk-red); }
.hdr-brand-sub { font-size: var(--t-xs); color: #8a9098; margin-top: 2px; display: block; }

.hdr-search { flex: 1; max-width: 430px; margin: 0 auto; position: relative; display: flex; align-items: center; }
.hdr-search-icon { position: absolute; left: 13px; color: #a0a6ad; display: flex; }
.hdr-search input {
    width: 100%; padding: 9px 14px 9px 40px; background: #f3f4f6; border: 1.5px solid transparent;
    border-radius: 10px; font-size: var(--t-sm); font-family: inherit; color: var(--ink); outline: none;
}
.hdr-search input:disabled { cursor: not-allowed; color: #9aa0a8; }

.hdr-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* SchriftgrÃ¶Ãe-Umschalter */
.seg { display: flex; align-items: center; gap: 2px; background: #f1f3f5; border-radius: 9px; padding: 3px; }
.seg-btn {
    width: 30px; height: 28px; border: none; border-radius: 7px; cursor: pointer;
    font-family: inherit; font-weight: 700; line-height: 1; background: transparent; color: #9aa0a8;
}
.seg-btn.on { background: #fff; color: var(--drk-red); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* Akzentfarbe-Umschalter */
.dots { display: flex; align-items: center; gap: 6px; }
.dot { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; box-shadow: 0 0 0 1px #dde0e4; padding: 0; }
.dot.on { border-color: #fff; box-shadow: 0 0 0 2px currentColor; }

.hdr-divider { width: 1px; height: 26px; background: #e4e7ea; margin: 0 2px; }
.hdr-icon-btn {
    width: 38px; height: 38px; border-radius: 9px; border: none; background: transparent; color: #5b626b;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.hdr-icon-btn:hover { background: #f3f4f6; }

/* Profil-Dropdown (details/summary) */
.profile { position: relative; }
.profile > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: 10px; cursor: pointer; }
.profile > summary::-webkit-details-marker { display: none; }
.profile > summary:hover { background: #f3f4f6; }
.profile-avatar {
    width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--t-sm);
}
.profile-meta { line-height: 1.15; }
.profile-name { font-size: var(--t-sm); font-weight: 600; color: #2b3036; display: block; }
.profile-dept { font-size: var(--t-xs); color: #8a9098; display: block; }
.profile-chev { color: #9aa0a8; display: flex; transition: transform .15s; }
.profile[open] .profile-chev { transform: rotate(180deg); }
.profile-menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: #fff;
    border: 1px solid #e7e9ec; border-radius: 12px; box-shadow: 0 12px 34px rgba(20,25,30,.12);
    padding: 8px; z-index: 40; animation: drkUp .15s ease both;
}
.profile-menu-head { padding: 8px 10px 10px; border-bottom: 1px solid #f0f1f3; margin-bottom: 6px; }
.profile-menu-name { font-size: var(--t-sm); font-weight: 700; color: #1c2024; }
.profile-menu-role { font-size: var(--t-xs); color: var(--muted); margin-top: 2px; }
.profile-logout {
    width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: none;
    border-radius: 8px; background: transparent; color: #b3261e; font-size: var(--t-sm); font-weight: 600;
    font-family: inherit; cursor: pointer; text-align: left;
}
.profile-logout:hover { background: #fdecec; }

/* ---- Shell-KÃ¶rper ---- */
.shell { flex: 1; display: flex; min-height: 0; }

/* Sidebar */
.sidebar {
    width: 262px; flex-shrink: 0; background: #fff; border-right: 1px solid #e4e7ea;
    display: flex; flex-direction: column; overflow-y: auto; padding: 16px 0;
}
.sidebar-nav { flex: 1; }
.nav-group { margin-bottom: 14px; }
.nav-group-title {
    display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase; color: #a3a9b0; padding: 0 22px 7px;
}
.nav-group-lock { display: flex; color: #c2c7cd; }
.nav-item {
    position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 22px;
    cursor: pointer; font-size: var(--t-base); text-decoration: none; color: #4a5058; font-weight: 500;
    transition: background .12s, color .12s;
}
.nav-item:hover { background: #f6f7f8; }
.nav-item.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.nav-bar { position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); opacity: 0; }
.nav-item.active .nav-bar { opacity: 1; }
.nav-icon { display: flex; flex-shrink: 0; }
.nav-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-badge {
    background: var(--drk-red); color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px;
    padding: 0 5px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
}
.sidebar-foot { padding: 14px 22px 4px; border-top: 1px solid #eef0f2; font-size: var(--t-xs); color: #a3a9b0; line-height: 1.6; }

/* Inhaltsbereich */
.content { flex: 1; overflow-y: auto; background: #eceef0; min-width: 0; }
.content-inner { max-width: 1240px; margin: 0 auto; padding: 30px 38px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-title { font-size: var(--t-2xl); font-weight: 700; letter-spacing: -.02em; color: #1c2024; line-height: 1.1; }
.page-sub { margin-top: 6px; font-size: var(--t-base); color: var(--muted); }

/* Karten + Buttons */
.card { background: #fff; border: 1px solid #e7e9ec; border-radius: 16px; }
.card-pad { padding: 22px 24px; }
.card-title { font-size: var(--t-md); font-weight: 700; color: #1c2024; display: flex; align-items: center; gap: 9px; }

.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 11px 17px; border: none; border-radius: 10px;
    font-size: var(--t-sm); font-weight: 600; font-family: inherit; cursor: pointer; text-decoration: none;
    transition: background .14s;
}
.btn-primary { background: var(--drk-red); color: #fff; }
.btn-primary:hover { background: var(--drk-red-dark); }

/* Platzhalter / Fehlerseiten in der Shell */
.placeholder { text-align: center; padding: 48px 32px; display: flex; flex-direction: column; align-items: center; }
.placeholder-icon {
    width: 58px; height: 58px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-ink);
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.placeholder-title { font-size: var(--t-lg); font-weight: 700; color: #1c2024; }
.placeholder-text { margin: 10px 0 0; max-width: 440px; font-size: var(--t-sm); color: var(--muted); line-height: 1.6; }
.placeholder .btn { margin-top: 20px; }

@media (max-width: 760px) {
    .hdr-search { display: none; }
    .sidebar { width: 64px; }
    .nav-group-title, .nav-label, .nav-badge, .sidebar-foot { display: none; }
    .nav-item { justify-content: center; padding: 12px 0; }
    .profile-meta { display: none; }
    .content-inner { padding: 22px 18px 50px; }
}

/* ============================================================
   Phase 2 â Dashboard & Neuigkeiten
   ============================================================ */
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dash-link { font-size: var(--t-sm); font-weight: 600; color: var(--accent-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.dash-link:hover { text-decoration: underline; }

/* ---- Dashboard ---- */
.dash-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; align-items: start; }
.dash-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.ql-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 14px; }
.ql { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid #ebedf0; border-radius: 12px; text-decoration: none; color: #3a4047; transition: border-color .14s, background .14s, transform .14s; }
.ql:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.ql-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.ql-label { font-size: var(--t-sm); font-weight: 600; line-height: 1.25; }
.ql-ext { color: var(--muted); display: inline-flex; vertical-align: middle; margin-left: 2px; }

.dash-news { display: flex; flex-direction: column; }
.dash-news-item { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid #f0f1f3; text-decoration: none; }
.dash-news-item:hover .dash-news-title { color: var(--accent-ink); }
.dash-news-thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 10px; background-image: repeating-linear-gradient(135deg, #f1f3f5 0 9px, #e9ebef 9px 18px); display: flex; align-items: center; justify-content: center; font-family: 'Source Code Pro', monospace; font-size: 8.5px; color: #aeb4bb; }
.dash-news-body { min-width: 0; display: flex; flex-direction: column; }
.dash-news-cat { align-self: flex-start; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 6px; color: #fff; margin-bottom: 5px; }
.dash-news-title { font-size: var(--t-base); font-weight: 600; color: #2b3036; line-height: 1.3; }
.dash-news-meta { font-size: var(--t-xs); color: #9aa0a8; margin-top: 3px; }

.dash-cta { position: relative; overflow: hidden; border-radius: 16px; padding: 22px; background: var(--accent); color: #fff; }
.dash-cta-bg { position: absolute; right: -24px; top: -24px; opacity: .18; display: flex; pointer-events: none; }
.dash-cta-title { font-size: var(--t-md); font-weight: 700; position: relative; }
.dash-cta-text { font-size: var(--t-sm); opacity: .92; margin: 6px 0 0; line-height: 1.45; position: relative; }
.dash-cta-btn { margin-top: 15px; position: relative; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--accent-ink); border-radius: 9px; padding: 10px 16px; font-size: var(--t-sm); font-weight: 700; text-decoration: none; }

.dash-ph-text { margin: 8px 0 0; font-size: var(--t-sm); line-height: 1.5; }
.dash-ph .dash-link { margin-top: 12px; }

/* ---- Neuigkeiten-Liste ---- */
.news-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 9px; font-size: var(--t-sm); font-weight: 600; text-decoration: none; border: 1.5px solid #e1e4e8; background: #fff; color: #5b626b; transition: border-color .12s, background .12s, color .12s; }
.chip:hover { border-color: var(--accent); }
.chip.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.chip-count { opacity: .6; }

.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.news-card { background: #fff; border: 1px solid #e7e9ec; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .14s, transform .14s; }
.news-card:hover { box-shadow: 0 8px 24px rgba(20, 25, 30, .08); transform: translateY(-2px); }
.news-card-img { height: 140px; background-image: repeating-linear-gradient(135deg, #f1f3f5 0 12px, #e9ebef 12px 24px); display: flex; align-items: center; justify-content: center; position: relative; }
.news-img-label { font-family: 'Source Code Pro', monospace; font-size: 11px; color: #aeb4bb; }
.news-cat-badge { position: absolute; top: 13px; left: 13px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 7px; color: #fff; }
.news-cat-badge--inline { position: static; display: inline-block; margin: 0 0 12px; }
.news-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.news-card-title { font-size: var(--t-lg); font-weight: 700; color: #1c2024; line-height: 1.25; letter-spacing: -.01em; }
.news-card-excerpt { font-size: var(--t-sm); color: #697079; line-height: 1.5; margin-top: 9px; flex: 1; }
.news-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding-top: 13px; border-top: 1px solid #f0f1f3; }
.news-card-meta { font-size: var(--t-xs); color: #9aa0a8; }
.news-more { font-size: var(--t-sm); font-weight: 600; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 4px; }

/* ---- Neuigkeiten-Detail ---- */
.article { max-width: 820px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-size: var(--t-sm); font-weight: 600; text-decoration: none; margin-bottom: 14px; }
.back-link:hover { text-decoration: underline; }
.article-hero { height: 240px; border-radius: 16px; background-image: repeating-linear-gradient(135deg, #f1f3f5 0 14px, #e9ebef 14px 28px); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.article-body { background: #fff; border: 1px solid #e7e9ec; border-radius: 16px; padding: 28px 32px; margin-top: 18px; }
.article-title { font-size: var(--t-2xl); font-weight: 700; letter-spacing: -.02em; color: #1c2024; line-height: 1.15; margin: 0; }
.article-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 12px; font-size: var(--t-sm); color: var(--muted); }
.article-meta svg { vertical-align: middle; }
.article-meta-sep { opacity: .5; }
.article-lead { font-size: var(--t-md); color: #3a4047; line-height: 1.55; font-weight: 600; margin: 18px 0 0; }
.article-text { margin-top: 14px; font-size: var(--t-base); color: #3a4047; line-height: 1.7; }
.article-text p { margin: 0 0 14px; }
.article-text p:last-child { margin-bottom: 0; }

/* Wichtige Mitteilungen (Phase 3) */
.ann-list { display: flex; flex-direction: column; gap: 16px; max-width: 880px; }
.ann-flash { display: flex; align-items: center; gap: 10px; background: #e9f7ee; border: 1px solid #b8e3c6; border-radius: 12px; padding: 13px 16px; color: #1b7a3d; font-size: var(--t-sm); font-weight: 600; }
.ann-banner { display: flex; align-items: center; gap: 11px; background: #fff4f4; border: 1px solid #f6d4d4; border-radius: 12px; padding: 13px 16px; color: #9a2020; font-size: var(--t-sm); }
.ann-banner-icon { display: flex; color: var(--drk-red); flex-shrink: 0; }
.ann-card { background: #fff; border: 1px solid #e7e9ec; border-left: 4px solid #cfd4d9; border-radius: 14px; padding: 22px; }
.ann-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ann-badge { font-size: var(--t-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 10px; border-radius: 7px; }
.ann-badge.confirm { color: #9a2020; background: #fdeaea; }
.ann-badge.info { color: #697079; background: #f0f1f3; }
.ann-meta { font-size: var(--t-xs); color: #9aa0a8; }
.ann-title { font-size: var(--t-lg); font-weight: 700; color: #1c2024; letter-spacing: -.01em; margin: 0; }
.ann-body { font-size: var(--t-base); color: #5b626b; line-height: 1.55; margin: 9px 0 0; }
.ann-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid #f0f1f3; }
.ann-confirmed { display: inline-flex; align-items: center; gap: 8px; background: #e9f7ee; color: #1b7a3d; font-size: var(--t-sm); font-weight: 600; padding: 9px 14px; border-radius: 9px; }
.ann-confirm-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--drk-red); color: #fff; border: none; border-radius: 9px; padding: 10px 17px; font-size: var(--t-sm); font-weight: 700; font-family: inherit; cursor: pointer; transition: background .14s; }
.ann-confirm-btn:hover { background: var(--drk-red-dark); }
.ann-quote { font-size: var(--t-xs); color: #9aa0a8; }

/* Dashboard-Karte âWichtige Mitteilungen" */
.dash-ann-mega { display: flex; color: var(--drk-red); }
.dash-ann { display: flex; flex-direction: column; gap: 10px; }
.dash-ann-item { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border-radius: 12px; background: #fbfbfc; border: 1px solid #eef0f2; text-decoration: none; transition: border-color .12s, background .12s; }
.dash-ann-item:hover { border-color: #e1e4e8; background: #f7f8fa; }
.dash-ann-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dash-ann-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-ann-title { font-size: var(--t-base); font-weight: 600; color: #2b3036; }
.dash-ann-meta { font-size: var(--t-xs); color: #9aa0a8; margin-top: 2px; }
.dash-ann-tag { font-size: var(--t-xs); font-weight: 600; padding: 3px 10px; border-radius: 7px; flex-shrink: 0; }
.dash-ann-tag.info { color: #697079; background: #f0f1f3; }
.dash-ann-tag.done { color: #1b7a3d; background: #e9f7ee; }
.dash-ann-tag.open { color: #9a2020; background: #fdeaea; }

/* Dokumente (Phase 4a) */
.doc-wrap { max-width: 920px; }
.doc-flash { display: flex; align-items: center; gap: 10px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 12px; padding: 13px 16px; color: var(--accent-ink); font-size: var(--t-sm); font-weight: 600; margin-bottom: 16px; }
.doc-info { display: flex; align-items: flex-start; gap: 11px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 12px; padding: 13px 16px; margin-bottom: 18px; color: var(--accent-ink); font-size: var(--t-sm); line-height: 1.45; }
.doc-info-icon { display: flex; flex-shrink: 0; margin-top: 1px; }
.doc-folders { display: flex; flex-direction: column; gap: 12px; }
.doc-folder { background: #fff; border: 1px solid #e7e9ec; border-radius: 14px; overflow: hidden; }
.doc-folder-head { display: flex; align-items: center; gap: 13px; padding: 16px 18px; cursor: pointer; list-style: none; }
.doc-folder-head::-webkit-details-marker { display: none; }
.doc-folder-icon { display: flex; color: var(--accent-ink); }
.doc-folder-name { flex: 1; font-size: var(--t-md); font-weight: 700; color: #1c2024; }
.doc-folder-count { font-size: var(--t-xs); color: #9aa0a8; }
.doc-folder-chev { display: flex; color: #a3a9b0; transition: transform .15s; }
.doc-folder[open] .doc-folder-chev { transform: rotate(180deg); }
.doc-folder-body { border-top: 1px solid #f0f1f3; }
.doc-empty { padding: 14px 18px 14px 22px; font-size: var(--t-sm); }
.doc-item-row { display: flex; align-items: stretch; border-bottom: 1px solid #f5f6f7; }
.doc-item-row:last-child { border-bottom: none; }
.doc-item { flex: 1; min-width: 0; display: flex; align-items: center; gap: 13px; padding: 12px 18px 12px 22px; text-decoration: none; color: inherit; }
.doc-item:hover { background: #fafbfc; }
.doc-item-elo { cursor: default; }
.doc-item-elo:hover { background: transparent; }
.doc-del { display: flex; align-items: center; padding: 0 12px 0 4px; }
.doc-del-btn { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: none; background: transparent; color: #b3261e; border-radius: 8px; cursor: pointer; }
.doc-del-btn:hover { background: #fdeaea; }
.doc-item-icon { display: flex; flex-shrink: 0; }
.doc-item-icon.elo { color: var(--accent-ink); }
.doc-item-icon.intranet { color: #697079; }
.doc-item-main { flex: 1; min-width: 0; }
.doc-item-name { display: block; font-size: var(--t-sm); font-weight: 600; color: #2b3036; font-family: 'Source Code Pro', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-item-meta { display: block; font-size: var(--t-xs); color: #9aa0a8; margin-top: 2px; }
.doc-tag { font-size: var(--t-xs); font-weight: 600; padding: 3px 10px; border-radius: 7px; flex-shrink: 0; }
.doc-tag.elo { color: var(--accent-ink); background: var(--accent-soft); }
.doc-tag.intranet { color: #697079; background: #f0f1f3; }
.doc-item-open { display: flex; flex-shrink: 0; color: #b7bcc3; }
.doc-item-lock { display: flex; flex-shrink: 0; color: #c4c9cf; }

/* Upload-Panel (Phase 4b, nur Redakteur/Admin) */
.doc-upload { background: #fff; border: 1px solid #e7e9ec; border-radius: 14px; margin-bottom: 14px; overflow: hidden; }
.doc-upload-toggle { display: flex; align-items: center; gap: 8px; padding: 14px 18px; cursor: pointer; list-style: none; font-size: var(--t-sm); font-weight: 700; color: var(--accent-ink); }
.doc-upload-toggle::-webkit-details-marker { display: none; }
.doc-form { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid #f0f1f3; }
.doc-form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.doc-form label { flex: 1; min-width: 200px; font-size: var(--t-sm); font-weight: 600; color: #3a4047; display: flex; flex-direction: column; gap: 6px; }
.doc-form-hint { font-weight: 400; color: var(--muted); }
.doc-form input[type="text"], .doc-form select, .doc-form input[type="file"] { padding: 9px 11px; border: 1.5px solid #e1e4e8; border-radius: 9px; font-size: var(--t-sm); font-family: inherit; color: var(--ink); background: #fff; }
.doc-form input[type="file"] { padding: 8px 11px; }
.doc-form input:focus, .doc-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.doc-form-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; border: none; border-radius: 9px; padding: 10px 18px; font-size: var(--t-sm); font-weight: 700; font-family: inherit; cursor: pointer; transition: background .14s; }
.doc-form-btn:hover { background: var(--accent-ink); }
/* Upload-Formular als offene Karte im Admin-Modul (kein Details-Panel drumherum). */
.doc-upload-card .card-title { display: flex; align-items: center; gap: 8px; }
.doc-upload-card .doc-form { padding: 14px 0 0; margin-top: 14px; }
/* Abstand zwischen gestapelten Formular-Karten (Upload + ELO-VerknÃ¼pfung). */
.doc-upload-card + .doc-upload-card { margin-top: 16px; }
/* Hinweis unter dem Datei-Feld statt neben dem Label. */
.doc-form-hint { display: block; }
/* âDatei auswÃ¤hlen"-Button an das Theme angleichen (nativer file-selector-button). */
.doc-form input[type="file"]::file-selector-button {
    margin-right: 12px; padding: 7px 14px; border: none; border-radius: 8px;
    background: var(--accent-soft); color: var(--accent-ink); font-family: inherit;
    font-size: var(--t-sm); font-weight: 700; cursor: pointer; transition: background .14s;
}
.doc-form input[type="file"]:hover::file-selector-button { background: var(--accent); color: #fff; }
/* Abstand um die ZÃ¤hl-Zeile âX Dokumente in Y Ordnern". */
.doc-wrap .tman-head { margin: 20px 0 10px; }

/* Dashboard-Karte âZuletzt verwendet" */
.dash-doc { display: flex; flex-direction: column; }
.dash-doc-item { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid #f0f1f3; text-decoration: none; }
.dash-doc-item:first-child { border-top: none; }
.dash-doc-icon { display: flex; flex-shrink: 0; }
.dash-doc-icon.elo { color: var(--accent-ink); }
.dash-doc-icon.intranet { color: #697079; }
.dash-doc-main { min-width: 0; flex: 1; }
.dash-doc-name { display: block; font-size: var(--t-sm); font-weight: 600; color: #2b3036; font-family: 'Source Code Pro', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-doc-item:hover .dash-doc-name { color: var(--accent-ink); }
.dash-doc-meta { display: block; font-size: var(--t-xs); color: #9aa0a8; }

/* Avatare (Phase 5, wiederverwendbar) */
.avatar { border-radius: 50%; flex-shrink: 0; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; line-height: 1; }
.avatar-lg { width: 48px; height: 48px; font-size: var(--t-base); }
.avatar-md { width: 46px; height: 46px; font-size: var(--t-base); }
.avatar-sm { width: 34px; height: 34px; font-size: var(--t-xs); }

/* Ansprechpartner (Phase 5) */
.contacts { display: flex; flex-direction: column; gap: 26px; }
.contact-group-title { font-size: var(--t-md); font-weight: 700; color: #1c2024; margin-bottom: 13px; display: flex; align-items: center; gap: 9px; }
.contact-group-bar { width: 6px; height: 20px; background: var(--accent); border-radius: 3px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { background: #fff; border: 1px solid #e7e9ec; border-radius: 14px; padding: 18px; display: flex; gap: 14px; }
.contact-info { min-width: 0; }
.contact-name { font-size: var(--t-base); font-weight: 700; color: #1c2024; }
.contact-role { font-size: var(--t-xs); color: #697079; margin-bottom: 8px; }
.contact-line { font-size: var(--t-xs); color: #5b626b; display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.contact-line.mail { color: var(--accent-ink); word-break: break-all; }
.contact-line a { color: inherit; text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }

/* Geburtstage & JubilÃ¤en (Phase 5) */
.birthdays-wrap { max-width: 760px; }
.birthdays-note { display: flex; align-items: flex-start; gap: 11px; background: #f6f7f8; border: 1px solid #e7e9ec; border-radius: 12px; padding: 13px 16px; margin-bottom: 18px; color: #5b626b; font-size: var(--t-sm); line-height: 1.45; }
.birthdays-note-icon { display: flex; flex-shrink: 0; margin-top: 1px; color: #9aa0a8; }
.birthdays-list { background: #fff; border: 1px solid #e7e9ec; border-radius: 14px; overflow: hidden; }
.birthday-row { display: flex; align-items: center; gap: 15px; padding: 16px 20px; border-bottom: 1px solid #f0f1f3; }
.birthday-row:last-child { border-bottom: none; }
.birthday-main { flex: 1; min-width: 0; }
.birthday-name { font-size: var(--t-base); font-weight: 700; color: #1c2024; }
.birthday-dept { font-size: var(--t-xs); color: #9aa0a8; }
.birthday-tag { font-size: var(--t-xs); font-weight: 600; padding: 4px 11px; border-radius: 7px; flex-shrink: 0; }
.birthday-tag.jub { color: var(--accent-ink); background: var(--accent-soft); }
.birthday-tag.bd { color: #9a6b15; background: #fdf3e0; }
.birthday-date { font-size: var(--t-sm); font-weight: 600; color: #3a4047; min-width: 80px; text-align: right; }

/* Fortbildungen & Schulungen (Phase 6a) */
.train-wrap { max-width: 880px; display: flex; flex-direction: column; gap: 18px; }
.train-progress-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.train-progress-count { font-size: var(--t-2xl); font-weight: 700; color: #1c2024; }
.train-bar { height: 9px; background: #eef0f2; border-radius: 6px; overflow: hidden; }
.train-bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 6px; transition: width .3s; }
.train-progress-sub { font-size: var(--t-sm); color: var(--muted); margin-top: 10px; }
.train-section-title { font-size: var(--t-md); font-weight: 700; color: #1c2024; display: flex; align-items: center; gap: 9px; }
.train-list { display: flex; flex-direction: column; gap: 12px; }
.train-card { background: #fff; border: 1px solid #e7e9ec; border-radius: 14px; padding: 18px 20px; }
.train-card-head { display: flex; gap: 14px; align-items: flex-start; }
.train-icon { display: flex; flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); align-items: center; justify-content: center; }
.train-card-main { flex: 1; min-width: 0; }
.train-title { font-size: var(--t-base); font-weight: 700; color: #1c2024; }
.train-desc { font-size: var(--t-sm); color: #697079; line-height: 1.5; margin-top: 4px; }
.train-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.train-tag { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-xs); font-weight: 600; padding: 3px 9px; border-radius: 7px; color: #5b626b; background: #f0f1f3; }
.train-tag.pflicht { color: #9a2020; background: #fdeaea; }
.train-tag.optional { color: #697079; background: #f0f1f3; }
.train-tag.type { color: var(--accent-ink); background: var(--accent-soft); }
.train-status { flex-shrink: 0; font-size: var(--t-xs); font-weight: 700; padding: 4px 11px; border-radius: 8px; }
.train-status.ok { color: #1b7a3d; background: #e9f7ee; }
.train-status.due { color: #9a2020; background: #fdeaea; }
.train-status.open { color: #9a6b15; background: #fdf3e0; }
.train-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding-top: 13px; border-top: 1px solid #f0f1f3; }
.train-detail { font-size: var(--t-xs); color: #9aa0a8; }
.train-detail.faellig { color: #9a2020; font-weight: 600; }
.train-detail.absolviert { color: #1b7a3d; }
.train-link { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-sm); font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.train-link:hover { text-decoration: underline; }
.train-note { font-size: var(--t-xs); color: #9aa0a8; font-style: italic; }

/* SelbstbestÃ¤tigung / digitale Unterschrift (Phase 6b) */
.train-flash { display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 13px 16px; font-size: var(--t-sm); font-weight: 600; }
.train-flash.ok { background: #e9f7ee; border: 1px solid #b8e3c6; color: #1b7a3d; }
.train-flash.error { background: #fdeaea; border: 1px solid #f3c0c0; color: #9a2020; }
.train-sign { margin-top: 14px; padding-top: 13px; border-top: 1px solid #f0f1f3; }
.train-sign > summary { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: var(--t-sm); font-weight: 600; color: var(--accent-ink); list-style: none; user-select: none; }
.train-sign > summary::-webkit-details-marker { display: none; }
.train-sign[open] > summary { color: #1c2024; margin-bottom: 12px; }
.train-sign-form { background: #fafbfc; border: 1px solid #e7e9ec; border-radius: 11px; padding: 14px 16px; display: flex; flex-direction: column; gap: 11px; }
.train-sign-label { display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #9aa0a8; }
.train-consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); color: #4a5159; line-height: 1.5; cursor: pointer; }
.train-consent input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--drk-red); cursor: pointer; }
.train-confirm-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--drk-red); color: #fff; border: none; border-radius: 9px; padding: 10px 17px; font-size: var(--t-sm); font-weight: 700; font-family: inherit; cursor: pointer; transition: background .14s; }
.train-confirm-btn:hover { background: var(--drk-red-dark); }

/* Admin-BestÃ¤tigung Schulungen (Phase 6b, Teil 2) */
.aform-wrap { max-width: 720px; display: flex; flex-direction: column; gap: 18px; }
.aform-hint { font-size: var(--t-sm); color: var(--muted); line-height: 1.5; margin: 6px 0 16px; }
.aform-hint:has(svg) { display: flex; align-items: flex-start; gap: 6px; }
.aform-hint svg { flex-shrink: 0; margin-top: 2px; }
.aform { display: flex; flex-direction: column; gap: 14px; }
.aform-field { display: flex; flex-direction: column; gap: 6px; }
.aform-label { font-size: var(--t-xs); font-weight: 700; color: #5b626b; }
.aform select, .aform input[type="date"], .aform input[type="datetime-local"], .aform input[type="text"], .aform input[type="url"], .aform input[type="email"], .aform input[type="tel"], .aform input[type="number"], .aform textarea { font-family: inherit; font-size: var(--t-sm); padding: 10px 12px; border: 1px solid #d4d8dd; border-radius: 9px; background: #fff; color: #1c2024; width: 100%; }
.aform select:focus, .aform input:focus, .aform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
/* AbstÃ¤nde innerhalb von Formular-Karten (Felder liegen in .card-pad, nicht direkt in .aform) */
.aform .card-pad .set-section-head { margin-bottom: 16px; }
.aform .card-pad .aform-field + .aform-field { margin-top: 14px; }
.aform-field-date input { max-width: 220px; }
.aform input[type="number"] { max-width: 160px; }
.aform .train-confirm-btn { margin-top: 4px; }
.aform-recent { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.aform-recent li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid #f0f1f3; }
.aform-recent li:last-child { border-bottom: none; }
.aform-recent-main { font-size: var(--t-sm); color: #1c2024; }
.aform-recent-meta { font-size: var(--t-xs); color: #9aa0a8; }

/* Schulungs-Verwaltung / CRUD (Phase 6c-1) */
.tman-wrap { max-width: 840px; display: flex; flex-direction: column; gap: 16px; }
.tman-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tman-count { font-size: var(--t-sm); color: var(--muted); font-weight: 600; }
.tman-list { display: flex; flex-direction: column; gap: 10px; }
.tman-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid #e7e9ec; border-radius: 12px; padding: 14px 18px; }
.tman-item.archived { background: #fafbfc; opacity: .72; }
.tman-main { min-width: 0; flex: 1; }
.tman-title { font-size: var(--t-base); font-weight: 700; color: #1c2024; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tman-arch-tag { font-size: var(--t-xs); font-weight: 700; color: #697079; background: #eceef0; padding: 2px 8px; border-radius: 6px; }
.tman-item .train-tags { margin-top: 8px; }
.tman-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tman-btn { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: var(--t-sm); font-weight: 600; color: #3a4047; background: #fff; border: 1px solid #d4d8dd; border-radius: 8px; padding: 8px 13px; cursor: pointer; text-decoration: none; transition: background .14s, border-color .14s; }
.tman-btn:hover { background: #f5f6f7; }
.tman-btn.danger { color: #9a2020; border-color: #f0cccc; }
.tman-btn.danger:hover { background: #fdeaea; }

/* Schulungs-Formular */
.tform-textarea { resize: vertical; }
.tform-radio { display: flex; flex-direction: column; gap: 8px; }
.tform-radio label, .tform-check { display: flex; align-items: center; gap: 9px; font-size: var(--t-sm); color: #3a4047; cursor: pointer; }
.tform-radio input, .tform-check input { width: 16px; height: 16px; accent-color: var(--drk-red); cursor: pointer; flex-shrink: 0; }
.tform-hint { font-weight: 400; color: #9aa0a8; font-size: var(--t-xs); }
.tform-deps { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tform-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }

/* Termine â Mitarbeitersicht (Phase 6c-2) */
.train-dates { margin-top: 14px; padding-top: 13px; border-top: 1px solid #f0f1f3; }
.train-dates-title { display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #9aa0a8; margin-bottom: 10px; }
.train-dates-empty { font-size: var(--t-sm); color: #9aa0a8; font-style: italic; }
.train-date { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid #f4f5f6; flex-wrap: wrap; }
.train-date:last-child { border-bottom: none; }
.train-date-when { display: block; font-size: var(--t-sm); font-weight: 600; color: #1c2024; }
.train-date-meta { display: block; font-size: var(--t-xs); color: #9aa0a8; margin-top: 2px; }
.train-date-action { display: flex; align-items: center; gap: 9px; }
.train-date-badge { font-size: var(--t-xs); font-weight: 700; padding: 3px 9px; border-radius: 7px; }
.train-date-badge.ok { color: #1b7a3d; background: #e9f7ee; }
.train-date-badge.full { color: #9a6b15; background: #fdf3e0; }
.train-date-btn { font-family: inherit; font-size: var(--t-sm); font-weight: 700; border-radius: 8px; padding: 7px 15px; cursor: pointer; border: none; background: var(--accent); color: #fff; transition: filter .14s; }
.train-date-btn:hover { filter: brightness(.94); }
.train-date-btn.cancel { background: #fff; color: #9a2020; border: 1px solid #f0cccc; }
.train-date-btn.cancel:hover { background: #fdeaea; filter: none; }

/* Termine â Admin-Verwaltung (Phase 6c-2) */
.tdates-back { align-self: flex-start; }
.tdates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tdates-list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.tdates-item { border: 1px solid #e7e9ec; border-radius: 12px; padding: 14px 16px; }
.tdates-item.past { background: #fafbfc; opacity: .82; }
.tdates-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tdates-when { font-size: var(--t-base); font-weight: 700; color: #1c2024; display: flex; align-items: center; gap: 8px; }
.tdates-pasttag { font-size: var(--t-xs); font-weight: 700; color: #697079; background: #eceef0; padding: 2px 8px; border-radius: 6px; }
.tdates-meta { font-size: var(--t-xs); color: #9aa0a8; margin-top: 6px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.tdates-signups { margin-top: 12px; padding-top: 10px; border-top: 1px solid #f0f1f3; display: flex; flex-direction: column; gap: 8px; }
.tdates-empty { font-size: var(--t-sm); color: #9aa0a8; font-style: italic; }
.tdates-signup { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tdates-person { font-size: var(--t-sm); color: #1c2024; font-weight: 600; }
.tdates-dept { color: #9aa0a8; font-weight: 400; }
.tdates-badge { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-xs); font-weight: 700; color: #1b7a3d; background: #e9f7ee; padding: 4px 10px; border-radius: 7px; }
.tdates-confirm-btn { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: var(--t-sm); font-weight: 700; border: none; border-radius: 8px; padding: 7px 14px; cursor: pointer; background: var(--drk-red); color: #fff; transition: background .14s; }
.tdates-confirm-btn:hover { background: var(--drk-red-dark); }
@media (max-width: 640px) { .tdates-grid { grid-template-columns: 1fr; } }

/* Dashboard-Karte âMeine Pflichtschulungen" */
.dash-train { display: flex; align-items: center; gap: 14px; }
.dash-train-count { font-size: var(--t-2xl); font-weight: 700; color: #1c2024; flex-shrink: 0; }
.dash-train-body { flex: 1; min-width: 0; }
.dash-train-sub { font-size: var(--t-xs); color: #9aa0a8; margin-top: 6px; }

/* Dashboard-Karte âDemnÃ¤chst" */
.dash-birth { display: flex; flex-direction: column; gap: 11px; }
.dash-birth-item { display: flex; align-items: center; gap: 11px; }
.dash-birth-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-birth-name { font-size: var(--t-sm); font-weight: 600; color: #2b3036; }
.dash-birth-sub { font-size: var(--t-xs); color: #9aa0a8; }
.dash-birth-date { font-size: var(--t-xs); color: #9aa0a8; flex-shrink: 0; }

@media (max-width: 980px) {
    .dash-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .news-grid { grid-template-columns: 1fr; }
    .ql-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

/* === Admin-Hub & Einstellungen (Phase 6.5) ============================= */
.adm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; align-items: start; }
.adm-module { background: #fff; border: 1px solid #e7e9ec; border-radius: 14px; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.adm-module-head { display: flex; align-items: center; gap: 10px; }
.adm-module-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.adm-module-title { margin: 0; font-size: var(--t-base); font-weight: 700; color: #1c2024; }
.adm-tiles { display: flex; flex-direction: column; gap: 8px; }
.adm-tile { display: flex; align-items: center; gap: 12px; border: 1px solid #e7e9ec; border-radius: 10px; padding: 11px 13px; text-decoration: none; color: inherit; transition: background .14s, border-color .14s, transform .14s; }
.adm-tile:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.adm-tile-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; background: #f3f4f6; color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.adm-tile:hover .adm-tile-icon { background: #fff; }
.adm-tile-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.adm-tile-label { font-size: var(--t-sm); font-weight: 700; color: #2b3036; }
.adm-tile-desc { font-size: var(--t-xs); color: var(--muted); margin-top: 2px; }
.adm-tile-arrow { color: #c2c7cd; flex-shrink: 0; transition: transform .14s, color .14s; }
.adm-tile:hover .adm-tile-arrow { color: var(--accent-ink); transform: translateX(2px); }

/* Einstellungen-Platzhalter */
.adm-settings { display: flex; flex-direction: column; gap: 16px; }
.adm-set-note { display: flex; align-items: center; gap: 10px; background: var(--accent-soft); color: var(--accent-ink); border-radius: 12px; padding: 12px 16px; font-size: var(--t-sm); }
.adm-set-desc { margin: 0; font-size: var(--t-sm); color: var(--muted); line-height: 1.55; }
.adm-set-tag { align-self: flex-start; font-size: var(--t-xs); font-weight: 700; color: #697079; background: #eceef0; padding: 2px 9px; border-radius: 6px; }

/* === Unterhaltungen / Forum (Phase 7) ================================== */
.forum-list { max-width: 920px; }
.forum-detail { max-width: 820px; }
.forum-newform { max-width: 720px; }

.forum-flash { display: flex; align-items: center; gap: 9px; border-radius: 11px; padding: 11px 15px; font-size: var(--t-sm); font-weight: 600; margin-bottom: 16px; }
.forum-flash.ok { background: #e8f6ec; color: #1c6b35; }
.forum-flash.error { background: #fdeaea; color: #9a2020; }

.forum-bar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.forum-new-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; border: none; border-radius: 9px; padding: 10px 16px; font-size: var(--t-sm); font-weight: 600; font-family: inherit; cursor: pointer; text-decoration: none; transition: filter .14s; }
.forum-new-btn:hover { filter: brightness(.94); }

.forum-empty { text-align: center; color: var(--muted); background: #fff; border: 1px solid #e7e9ec; border-radius: 14px; padding: 44px 20px; }
.forum-empty p { margin: 12px 0 0; font-size: var(--t-sm); }

.forum-card { background: #fff; border: 1px solid #e7e9ec; border-radius: 14px; overflow: hidden; }
.forum-row { display: flex; align-items: center; gap: 15px; padding: 16px 20px; border-bottom: 1px solid #f0f1f3; cursor: pointer; text-decoration: none; transition: background .12s; }
.forum-row:last-child { border-bottom: none; }
.forum-row:hover { background: #fafbfc; }
.forum-avatar { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: var(--t-sm); font-weight: 700; }
.forum-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.forum-row-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: var(--t-base); font-weight: 700; color: #1c2024; }
.forum-tag { font-size: 10.5px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.forum-row-meta { font-size: var(--t-xs); color: #9aa0a8; margin-top: 3px; }
.forum-row-count { text-align: center; flex-shrink: 0; }
.forum-row-num { display: block; font-size: var(--t-md); font-weight: 700; color: #3a4047; }
.forum-row-lbl { font-size: 10px; color: #9aa0a8; text-transform: uppercase; letter-spacing: .04em; }

.forum-back { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-size: var(--t-sm); font-weight: 600; text-decoration: none; margin-bottom: 14px; }
.forum-back:hover { text-decoration: underline; }

.forum-head-card { background: #fff; border: 1px solid #e7e9ec; border-radius: 14px; padding: 20px 22px; margin-bottom: 14px; }
.forum-head-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.forum-title { margin: 0; font-size: var(--t-xl); font-weight: 700; color: #1c2024; letter-spacing: -.01em; line-height: 1.25; }

.forum-posts { display: flex; flex-direction: column; gap: 12px; }
.forum-post { background: #fff; border: 1px solid #e7e9ec; border-radius: 14px; padding: 18px; display: flex; gap: 14px; }
.forum-post-main { flex: 1; min-width: 0; }
.forum-post-head { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.forum-post-name { font-size: var(--t-sm); font-weight: 700; color: #1c2024; }
.forum-post-time { font-size: var(--t-xs); color: #9aa0a8; }
.forum-post-body { font-size: var(--t-base); color: #3f454c; line-height: 1.55; word-wrap: break-word; }

.forum-del { margin-left: auto; }
.forum-del-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: #b0676a; font-family: inherit; font-size: var(--t-xs); font-weight: 600; cursor: pointer; padding: 2px 4px; border-radius: 6px; transition: background .12s, color .12s; }
.forum-del-btn:hover { background: #fdeaea; color: #9a2020; }

.forum-reply { background: #fff; border: 1px solid #e7e9ec; border-radius: 14px; padding: 16px; margin-top: 14px; display: flex; gap: 12px; align-items: flex-end; }
.forum-reply textarea { flex: 1; padding: 11px 14px; border: 1.5px solid #dde0e4; border-radius: 10px; font-size: var(--t-sm); font-family: inherit; outline: none; resize: vertical; min-height: 44px; color: var(--ink); }
.forum-reply textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.forum-send-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: #fff; border: none; border-radius: 10px; padding: 11px 16px; font-size: var(--t-sm); font-weight: 600; font-family: inherit; cursor: pointer; transition: filter .14s; }
.forum-send-btn:hover { filter: brightness(.94); }

.forum-form { background: #fff; border: 1px solid #e7e9ec; border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.forum-field { display: flex; flex-direction: column; gap: 6px; }
.forum-label { font-size: var(--t-sm); font-weight: 600; color: #3a4047; }
.forum-form input, .forum-form select, .forum-form textarea { padding: 11px 14px; border: 1.5px solid #dde0e4; border-radius: 10px; font-size: var(--t-sm); font-family: inherit; outline: none; color: var(--ink); background: #fff; }
.forum-form input:focus, .forum-form select:focus, .forum-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.forum-form textarea { resize: vertical; }
.forum-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.forum-cancel { font-size: var(--t-sm); font-weight: 600; color: var(--muted); text-decoration: none; }
.forum-cancel:hover { color: #3a4047; }

@media (max-width: 640px) {
    .forum-reply { flex-direction: column; align-items: stretch; }
    .forum-row { padding: 14px 15px; gap: 12px; }
}

/* === KI-Assistent (Phase 8a, optischer Platzhalter) ==================== */
.ki-wrap { max-width: 860px; margin: 0 auto; }
.ki-chat { background: #fff; border: 1px solid #e7e9ec; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; height: calc(100vh - 250px); min-height: 440px; }
.ki-head { padding: 15px 20px; border-bottom: 1px solid #eef0f2; display: flex; align-items: center; gap: 12px; }
.ki-head-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.ki-head-text { flex: 1; min-width: 0; }
.ki-head-title { font-size: var(--t-base); font-weight: 700; color: #1c2024; }
.ki-head-sub { font-size: var(--t-xs); color: #9aa0a8; }
.ki-badge { font-size: var(--t-xs); font-weight: 600; color: #8a6d1a; background: #fdf3d8; padding: 4px 10px; border-radius: 7px; white-space: nowrap; }
.ki-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ki-msg { display: flex; gap: 10px; align-items: flex-start; }
.ki-msg-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.ki-bubble { background: #f3f4f6; border-radius: 13px; padding: 13px 16px; font-size: var(--t-base); color: #3f454c; line-height: 1.55; max-width: 80%; }
.ki-foot { padding: 14px 20px; border-top: 1px solid #eef0f2; }
.ki-suggest { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 11px; }
.ki-chip { background: #f3f4f6; border: 1px solid #e7e9ec; color: #9aa0a8; font-size: var(--t-xs); padding: 7px 12px; border-radius: 20px; cursor: not-allowed; }
.ki-input-row { display: flex; gap: 10px; align-items: stretch; }
.ki-input { flex: 1; padding: 12px 16px; border: 1.5px solid #dde0e4; border-radius: 11px; font-size: var(--t-base); font-family: inherit; outline: none; background: #f7f8f9; color: #9aa0a8; cursor: not-allowed; }
.ki-send { background: var(--accent); color: #fff; border: none; border-radius: 11px; padding: 12px 16px; font-family: inherit; cursor: not-allowed; display: flex; align-items: center; gap: 7px; opacity: .5; }

/* === KI-Assistent: echter Chat (Phase B1) ============================== */
.ki-layout { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
.ki-side { display: flex; flex-direction: column; gap: 12px; }
.ki-new { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; border-radius: 11px; padding: 11px 14px; font-weight: 600; font-size: var(--t-sm); text-decoration: none; }
.ki-new:hover { filter: brightness(.96); }
.ki-list { display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 320px); overflow-y: auto; }
.ki-list-empty { font-size: var(--t-xs); color: #9aa0a8; padding: 8px 4px; }
.ki-conv { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 10px; text-decoration: none; border: 1px solid transparent; }
.ki-conv:hover { background: #f3f4f6; }
.ki-conv.active { background: var(--accent-soft); border-color: var(--accent); }
.ki-conv-title { font-size: var(--t-sm); font-weight: 600; color: #1c2024; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ki-conv-time { font-size: var(--t-xs); color: #9aa0a8; }
.ki-msg.me { flex-direction: row-reverse; }
.ki-msg.me .ki-msg-icon { background: var(--accent); color: #fff; }
.ki-msg.me .ki-bubble { background: var(--accent-soft); color: #2b3138; }
.ki-msg-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 80%; }
.ki-msg-main .ki-bubble { max-width: 100%; }
.ki-msg.me .ki-msg-main { align-items: flex-end; }
.ki-msg-tokens { font-size: var(--t-xs); color: var(--muted); padding: 0 8px; }
/* Tippanzeige (B4): animierte Punkte, wÃ¤hrend die KI antwortet */
.ki-typing { display: inline-flex; gap: 4px; align-items: center; }
.ki-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-ink); opacity: .35; animation: kiTyping 1.2s infinite ease-in-out; }
.ki-typing span:nth-child(2) { animation-delay: .2s; }
.ki-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes kiTyping { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: .9; transform: translateY(-3px); } }
.ki-flash { display: flex; align-items: center; gap: 9px; border-radius: 11px; padding: 11px 15px; font-size: var(--t-sm); font-weight: 600; }
.ki-flash.ok { background: #e8f6ec; color: #1c6b35; }
.ki-flash.error { background: #fdecec; color: #b02a2a; }

/* Lang-Chat-Banner (B3) */
.ki-longbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 10px 16px; background: #fff8e6; border-bottom: 1px solid #f2e4bd; color: #6b5410; font-size: var(--t-sm); }
.ki-longbar-text { display: inline-flex; align-items: flex-start; gap: 7px; line-height: 1.45; }
.ki-longbar-text svg { flex-shrink: 0; margin-top: 1px; }
.ki-longbar-acts { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ki-longbar-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 7px 13px; font-family: inherit; font-size: var(--t-sm); font-weight: 700; cursor: pointer; }
.ki-longbar-btn:hover { background: var(--accent-ink); }
.ki-longbar-new { color: #6b5410; text-decoration: underline; font-weight: 600; white-space: nowrap; }

/* Zusammenfassung im Folgechat (B3) */
.ki-summary { background: var(--accent-soft); border: 1px solid #e4e7ea; border-radius: 11px; padding: 10px 14px; font-size: var(--t-sm); }
.ki-summary > summary { display: flex; align-items: center; gap: 7px; cursor: pointer; color: var(--accent-ink); font-weight: 600; list-style: none; }
.ki-summary > summary::-webkit-details-marker { display: none; }
.ki-summary-body { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e4e7ea; color: #3f454c; line-height: 1.55; }
.ki-text { flex: 1; padding: 12px 16px; border: 1.5px solid #dde0e4; border-radius: 11px; font-size: var(--t-base); font-family: inherit; outline: none; background: #fff; color: #2b3138; resize: none; max-height: 160px; line-height: 1.5; }
.ki-text:focus { border-color: var(--accent); }
.ki-send-btn { background: var(--accent); color: #fff; border: none; border-radius: 11px; padding: 0 16px; font-family: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ki-send-btn:hover { filter: brightness(.96); }
.ki-hint { font-size: var(--t-xs); color: #9aa0a8; margin: 9px 2px 0; }
/* Umschalter âAuf Dokumente beziehen" (B5.2) */
.ki-docs-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 0 2px 9px; font-size: var(--t-sm); color: #3f454c; cursor: pointer; user-select: none; }
.ki-docs-toggle input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }
.ki-docs-toggle svg { color: var(--accent-ink); }
.ki-bubble strong { font-weight: 700; color: #1c2024; }
.ki-bubble code { background: #eceef1; border-radius: 5px; padding: 1px 5px; font-size: .92em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
/* B1b: Chat-Aktionen, Umbenennen, Archiv, Modell-Umschalter */
.ki-new-ghost { background: #f3f4f6; color: #3f454c; }
.ki-side-label { font-size: var(--t-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #9aa0a8; padding: 2px 4px; }
.ki-conv-row { display: flex; align-items: stretch; gap: 4px; }
.ki-conv-row .ki-conv { flex: 1; min-width: 0; }
.ki-row-act button { background: none; border: none; cursor: pointer; color: #9aa0a8; padding: 0 6px; border-radius: 8px; display: flex; align-items: center; }
.ki-row-act button:hover { background: #f3f4f6; color: var(--accent-ink); }
.ki-archived-link { display: flex; align-items: center; gap: 7px; font-size: var(--t-xs); color: #9aa0a8; text-decoration: none; padding: 6px 4px; margin-top: 2px; }
.ki-archived-link:hover { color: var(--accent-ink); }
.ki-head-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ki-act { background: none; border: 1px solid #e7e9ec; border-radius: 9px; width: 34px; height: 34px; cursor: pointer; color: #6b727b; display: flex; align-items: center; justify-content: center; }
.ki-act:hover { background: #f3f4f6; color: var(--accent-ink); border-color: #dde0e4; }
.ki-rename { display: flex; align-items: center; gap: 6px; }
.ki-rename[hidden] { display: none; }
.ki-rename-input { flex: 1; min-width: 0; padding: 6px 10px; border: 1.5px solid var(--accent); border-radius: 8px; font-size: var(--t-base); font-family: inherit; outline: none; }
.ki-rename-save { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 6px 9px; cursor: pointer; display: flex; align-items: center; }
.ki-rename-cancel { background: none; border: none; color: #9aa0a8; font-size: var(--t-xs); cursor: pointer; }
.ki-model { padding: 0 10px; border: 1.5px solid #dde0e4; border-radius: 11px; background: #fff; color: #3f454c; font-family: inherit; font-size: var(--t-sm); cursor: pointer; max-width: 170px; }
.ki-model:focus { outline: none; border-color: var(--accent); }
/* B2: Projekte */
.ki-proj-head { display: flex; align-items: center; justify-content: space-between; }
.ki-proj-add { color: #9aa0a8; display: flex; align-items: center; padding: 2px; border-radius: 7px; text-decoration: none; }
.ki-proj-add:hover { background: #f3f4f6; color: var(--accent-ink); }
.ki-proj-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.ki-proj-link { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: #3f454c; font-size: var(--t-sm); border: 1px solid transparent; }
.ki-proj-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ki-proj-link:hover { background: #f3f4f6; }
.ki-proj-link.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.ki-proj-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 16px; background: var(--accent-soft); border-bottom: 1px solid #eef0f2; font-size: var(--t-sm); color: #2b3138; }
.ki-proj-bar-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ki-proj-bar-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ki-proj-edit { display: flex; align-items: center; gap: 5px; color: var(--accent-ink); text-decoration: none; font-weight: 600; flex-shrink: 0; }
.ki-proj-edit:hover { text-decoration: underline; }
.ki-proj-delete { margin-top: 14px; }
.ki-proj-delete-btn { display: inline-flex; align-items: center; gap: 7px; background: none; border: 1px solid #f0c9c9; color: #b02a2a; border-radius: 9px; padding: 9px 14px; font-family: inherit; font-size: var(--t-sm); cursor: pointer; }
.ki-proj-delete-btn:hover { background: #fdecec; }
.tform-cancel { color: #9aa0a8; text-decoration: none; font-size: var(--t-sm); align-self: center; }
.tform-cancel:hover { color: var(--accent-ink); }

/* Wissens-Schnipsel je Projekt (B2b) */
.ki-ctx-card { margin-top: 16px; }
.ki-ctx-empty { font-size: var(--t-sm); color: var(--muted); line-height: 1.5; margin: 10px 0 4px; }
.ki-ctx-list { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 20px; }
.ki-ctx-item { display: flex; align-items: flex-start; gap: 8px; }
.ki-ctx-form { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; background: #f8f9fa; border: 1px solid #eef0f2; border-radius: 11px; padding: 12px; }
.ki-ctx-title, .ki-ctx-body { font-family: inherit; font-size: var(--t-sm); padding: 10px 12px; border: 1px solid #d4d8dd; border-radius: 9px; background: #fff; color: #1c2024; width: 100%; }
.ki-ctx-title:focus, .ki-ctx-body:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ki-ctx-title { font-weight: 600; }
.ki-ctx-body { resize: vertical; line-height: 1.5; }
.ki-ctx-actions { display: flex; }
.ki-ctx-save { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--accent); color: var(--accent-ink); border-radius: 8px; padding: 6px 12px; font-family: inherit; font-size: var(--t-sm); font-weight: 600; cursor: pointer; }
.ki-ctx-save:hover { background: var(--accent-soft); }
.ki-ctx-del { flex-shrink: 0; }
.ki-ctx-del-btn { display: inline-flex; align-items: center; justify-content: center; background: none; border: 1px solid #f0c9c9; color: #b02a2a; border-radius: 8px; padding: 8px; cursor: pointer; }
.ki-ctx-del-btn:hover { background: #fdecec; }
.ki-ctx-add { border-top: 1px dashed #e4e7ea; padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.ki-ctx-add-title { font-size: var(--t-sm); font-weight: 700; color: #1c2024; }
@media (max-width: 720px) { .ki-layout { grid-template-columns: 1fr; } .ki-list { max-height: 180px; } .ki-model { max-width: 130px; } }

/* === IT-Tickets (Phase 8b) ============================================= */
.ticket-wrap { max-width: 820px; }
.ticket-flash { display: flex; align-items: center; gap: 9px; border-radius: 11px; padding: 11px 15px; font-size: var(--t-sm); font-weight: 600; margin-bottom: 16px; }
.ticket-flash.ok { background: #e8f6ec; color: #1c6b35; }
.ticket-flash.error { background: #fdeaea; color: #9a2020; }

.ticket-card { background: #fff; border: 1px solid #e7e9ec; border-radius: 16px; padding: 22px; }
.ticket-card-head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.ticket-card-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: #fdeaea; color: #E30613; display: flex; align-items: center; justify-content: center; }
.ticket-card-title { font-size: var(--t-md); font-weight: 700; color: #1c2024; }
.ticket-card-sub { font-size: var(--t-xs); color: #9aa0a8; }
.ticket-form { display: flex; flex-direction: column; gap: 15px; }
.ticket-field { display: flex; flex-direction: column; gap: 6px; }
.ticket-label { font-size: var(--t-sm); font-weight: 600; color: #3a4047; }
.ticket-form input, .ticket-form select, .ticket-form textarea { padding: 11px 13px; border: 1.5px solid #dde0e4; border-radius: 10px; font-size: var(--t-sm); font-family: inherit; outline: none; color: var(--ink); background: #fff; }
.ticket-form input:focus, .ticket-form select:focus, .ticket-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ticket-form textarea { resize: vertical; }
.ticket-form-actions { display: flex; justify-content: flex-end; }
.ticket-submit { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; border: none; border-radius: 10px; padding: 11px 20px; font-size: var(--t-sm); font-weight: 700; font-family: inherit; cursor: pointer; transition: filter .14s; }
.ticket-submit:hover { filter: brightness(.94); }

/* === Inhalte-Verwaltung (Phase 9a) ==================================== */
/* Datei-Upload im Redaktions-Formular (ergÃ¤nzt .aform aus Phase 6b). */
.aform input[type="file"] { font-family: inherit; font-size: var(--t-sm); padding: 9px 11px; border: 1px solid #d4d8dd; border-radius: 9px; background: #fff; color: #1c2024; width: 100%; }
.aform input[type="file"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
/* âDatei auswÃ¤hlen"-Button an das Theme angleichen (nativer file-selector-button). */
.aform input[type="file"]::file-selector-button {
    margin-right: 12px; padding: 7px 14px; border: none; border-radius: 8px;
    background: var(--accent-soft); color: var(--accent-ink); font-family: inherit;
    font-size: var(--t-sm); font-weight: 700; cursor: pointer; transition: background .14s;
}
.aform input[type="file"]:hover::file-selector-button { background: var(--accent); color: #fff; }

/* Beitragsbild-Vorschau im Bearbeiten-Formular. */
.nform-img { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.nform-img img { width: 120px; height: 80px; object-fit: cover; border-radius: 9px; border: 1px solid #e1e4e8; flex-shrink: 0; }

/* Kategorie-Farbpunkt in der Beitragsliste. */
.nman-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* === Benutzerverwaltung (Phase 9b) ==================================== */
.uman-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.uman-select { font-family: inherit; font-size: var(--t-sm); padding: 7px 10px; border: 1px solid #d4d8dd; border-radius: 8px; background: #fff; color: #1c2024; cursor: pointer; }
.uman-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.uman-self { font-size: var(--t-xs); font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; }
.uman-status { font-size: var(--t-xs); font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.uman-status.aktiv { color: #1c6b35; background: #e8f6ec; }
.uman-status.inaktiv { color: #697079; background: #eceef0; }
.uman-phone { width: 150px; font-family: inherit; font-size: var(--t-sm); padding: 7px 10px; border: 1px solid #d4d8dd; border-radius: 8px; background: #fff; color: #1c2024; }
.uman-phone:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
/* Benutzer-Zeile: drei Formulare (Telefon + Rolle + Status) passen nicht neben die
   Infospalte â daher Infos oben (volle Breite), Aktionen darunter (umbrechend). */
.tman-item.uman-row { flex-direction: column; align-items: stretch; }
.tman-item.uman-row .tman-main { width: 100%; }
.tman-item.uman-row .tman-actions { flex-wrap: wrap; justify-content: flex-start; }
.uman-check { display: flex; align-items: center; gap: 10px; font-size: var(--t-sm); color: #3f454c; cursor: pointer; line-height: 1.5; }
.uman-check input { accent-color: var(--accent); width: 17px; height: 17px; flex-shrink: 0; cursor: pointer; }

/* Neuigkeiten-Kategorien-Verwaltung (N3) */
.tman-head-actions { display: flex; align-items: center; gap: 8px; }
.ncat-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.ncat-col { display: flex; flex-direction: column; gap: 6px; }
.ncat-col > span { font-size: var(--t-sm); font-weight: 600; color: #3a4047; }
.ncat-col-name { flex: 1 1 200px; }
.ncat-col-sort { flex: 0 0 100px; }
.ncat-col input[type="text"], .ncat-col input[type="number"] {
    width: 100%; padding: 9px 12px; border: 1px solid #d4d8dd; border-radius: 9px;
    font-size: var(--t-base); font-family: inherit; color: var(--ink); outline: none;
}
.ncat-col input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ncat-col input[type="color"] {
    width: 46px; height: 40px; padding: 3px; border: 1px solid #d4d8dd; border-radius: 9px;
    background: #fff; cursor: pointer;
}
.ncat-hint { font-size: var(--t-xs); margin: 10px 0 0; }
/* âAnlegen"-Button unten mit den Eingabefeldern bÃ¼ndig (Basis-Regel setzt flex-start). */
.ncat-form .train-confirm-btn { align-self: flex-end; }
.ncat-item { flex-wrap: wrap; gap: 12px; }
.ncat-form-edit { flex: 1 1 auto; margin-top: 0; }
.ncat-lbl { display: none; } /* Labels in der Zeile visuell knapp halten */
.ncat-swatch { width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; border: 1px solid rgba(0,0,0,.12); align-self: center; }
.dfol-icon { display: flex; flex-shrink: 0; align-self: center; color: var(--muted); }
.doc-manage-bar { display: flex; justify-content: flex-end; margin-bottom: 4px; }
/* Feste Breite, damit â1 Beitrag" vs. â2 BeitrÃ¤ge" die Zeilen nicht verschiebt. */
.ncat-count { flex: 0 0 92px; text-align: center; box-sizing: border-box; font-size: var(--t-xs); font-weight: 600; color: var(--muted); background: #f2f4f6; border-radius: 999px; padding: 4px 10px; white-space: nowrap; align-self: center; }
.ncat-del { flex-shrink: 0; }

/* === Portal-Einstellungen (Phase 9c) ================================= */
.set-form { max-width: 640px; gap: 16px; }
.set-section-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.set-section-icon { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.set-section-title { font-size: var(--t-md); font-weight: 700; color: #1c2024; }
.set-section-sub { font-size: var(--t-xs); color: var(--muted); margin-top: 2px; }
.set-toggle { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0 4px; border-top: 1px solid #f0f1f3; cursor: pointer; }
.set-toggle:first-of-type { margin-top: 8px; }
.set-toggle input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--drk-red); cursor: pointer; flex-shrink: 0; }
.set-toggle-text { display: flex; flex-direction: column; gap: 3px; }
.set-toggle-label { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-sm); font-weight: 700; color: #2b3036; }
.set-toggle-desc { font-size: var(--t-xs); color: var(--muted); line-height: 1.5; }
.set-warn { display: flex; align-items: center; gap: 8px; margin-top: 14px; background: #fdeaea; color: #9a2020; border-radius: 9px; padding: 10px 13px; font-size: var(--t-xs); }

/* Wartungsseite (schlankes Layout) */
.maint { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: #f1f3f5; }
.maint-card { background: #fff; border: 1px solid #e7e9ec; border-radius: 18px; padding: 40px 36px; max-width: 440px; text-align: center; box-shadow: 0 8px 30px rgba(20,24,28,.06); }
.maint-logo { display: inline-flex; margin-bottom: 14px; }
.maint-title { margin: 0 0 10px; font-size: var(--t-xl); font-weight: 700; color: #1c2024; }
.maint-text { margin: 0 0 22px; font-size: var(--t-sm); color: #5b626b; line-height: 1.6; }
.maint-logout { margin: 0; }
.maint-logout-btn { display: inline-flex; align-items: center; gap: 7px; background: #fff; color: #3a4047; border: 1px solid #d4d8dd; border-radius: 9px; padding: 9px 16px; font-family: inherit; font-size: var(--t-sm); font-weight: 600; cursor: pointer; transition: background .14s; }
.maint-logout-btn:hover { background: #f5f6f7; }
.maint-foot { margin-top: 20px; font-size: var(--t-xs); color: #9aa0a8; }

/* === Globale Suche (Phase 10a) ====================================== */
.search-page { max-width: 860px; display: flex; flex-direction: column; gap: 18px; }
.search-summary { font-size: var(--t-sm); color: var(--muted); }
.search-summary strong { color: #1c2024; }
.search-group { display: flex; flex-direction: column; gap: 8px; }
.search-group-title { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; font-size: var(--t-md); font-weight: 700; color: #1c2024; }
.search-group-title svg { color: var(--accent); }
.search-group-count { font-size: var(--t-xs); font-weight: 700; color: var(--muted); background: #eceef0; border-radius: 6px; padding: 1px 8px; }
.search-hit { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e7e9ec; border-radius: 12px; padding: 13px 16px; text-decoration: none; color: inherit; transition: border-color .14s, box-shadow .14s; }
a.search-hit:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(20,24,28,.05); }
.search-hit-main { min-width: 0; flex: 1; }
.search-hit-title { font-size: var(--t-base); font-weight: 700; color: #1c2024; }
.search-hit-sub { margin-top: 3px; font-size: var(--t-sm); color: #5b626b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-hit-meta { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.search-hit-date { font-size: var(--t-xs); color: var(--muted); white-space: nowrap; }
.search-tag { font-size: var(--t-xs); font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 6px; padding: 2px 8px; }
.search-hit-contact .avatar { flex-shrink: 0; }
.search-contact-links { flex-direction: column; align-items: flex-end; gap: 4px; }
.search-contact-links a { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-xs); color: var(--accent-ink); text-decoration: none; }
.search-contact-links a:hover { text-decoration: underline; }
@media (max-width: 640px) {
    .search-hit { flex-wrap: wrap; }
    .search-hit-sub { white-space: normal; }
    .search-contact-links { flex-direction: row; align-items: center; }
}

/* === Benachrichtigungen / Glocke (Phase 10b) ======================== */
.notif { position: relative; }
.notif > summary { list-style: none; position: relative; }
.notif > summary::-webkit-details-marker { display: none; }
.notif-count {
    position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 9px; background: var(--drk-red); color: #fff; font-size: 10px; font-weight: 700;
    line-height: 16px; text-align: center; box-shadow: 0 0 0 2px #fff;
}
.notif-menu {
    position: absolute; right: 0; top: calc(100% + 8px); width: 340px; max-width: 88vw; background: #fff;
    border: 1px solid #e7e9ec; border-radius: 12px; box-shadow: 0 12px 34px rgba(20,25,30,.12);
    padding: 6px; z-index: 40; animation: drkUp .15s ease both;
}
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid #f0f1f3; margin-bottom: 4px; }
.notif-head-title { font-size: var(--t-sm); font-weight: 700; color: #1c2024; }
.notif-readall { border: none; background: transparent; color: var(--accent-ink); font-family: inherit; font-size: var(--t-xs); font-weight: 600; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.notif-readall:hover { background: var(--accent-soft); }
.notif-list { max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.notif-empty { padding: 22px 10px; text-align: center; color: var(--muted); font-size: var(--t-sm); }
.notif-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: inherit; }
.notif-item:hover { background: #f5f6f7; }
.notif-item.unread { background: var(--accent-soft); }
.notif-item.unread:hover { background: var(--accent-soft); filter: brightness(.98); }
.notif-ic { flex-shrink: 0; color: var(--accent); margin-top: 1px; display: flex; }
.notif-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif-title { font-size: var(--t-sm); font-weight: 600; color: #2b3036; line-height: 1.35; }
.notif-time { font-size: var(--t-xs); color: var(--muted); }

/* === Mein Konto / Notfall-Passwort (Phase 11c) ====================== */
.profile-link {
    width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 10px;
    border-radius: 8px; background: transparent; color: #3a4047; font-size: var(--t-sm); font-weight: 600;
    text-decoration: none; cursor: pointer;
}
.profile-link:hover { background: #f5f6f7; }

.prof-wrap { max-width: 640px; display: flex; flex-direction: column; gap: 16px; }
.prof-card { background: #fff; border: 1px solid #e7e9ec; border-radius: 16px; padding: 22px; }
.prof-h { display: flex; align-items: center; gap: 9px; font-size: var(--t-md); font-weight: 700; color: #1c2024; margin: 0 0 14px; }
.prof-h svg { color: var(--accent); }
.prof-set { font-size: var(--t-xs); font-weight: 700; color: #1b7a3d; background: #e9f7ee; border: 1px solid #b8e3c6; padding: 2px 9px; border-radius: 999px; }
.prof-dl { margin: 0; }
.prof-row { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid #f0f1f3; }
.prof-row:last-child { border-bottom: none; }
.prof-row dt { flex: 0 0 130px; font-size: var(--t-sm); color: var(--muted); font-weight: 600; }
.prof-row dd { margin: 0; font-size: var(--t-sm); color: #1c2024; font-weight: 600; word-break: break-word; }
.prof-note { font-size: var(--t-sm); color: var(--muted); line-height: 1.55; margin: 0 0 16px; }
.prof-form { display: flex; flex-direction: column; gap: 13px; max-width: 360px; }
.prof-label { display: flex; flex-direction: column; gap: 6px; }
.prof-label span { font-size: var(--t-sm); font-weight: 600; color: #3a4047; }
.prof-label input {
    width: 100%; padding: 10px 12px; border: 1px solid #d4d8dd; border-radius: 9px;
    font-size: var(--t-base); font-family: inherit; color: var(--ink); outline: none;
}
.prof-label input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.prof-label select {
    width: 100%; padding: 10px 12px; border: 1px solid #d4d8dd; border-radius: 9px;
    font-size: var(--t-base); font-family: inherit; color: var(--ink); outline: none; background: #fff; cursor: pointer;
}
.prof-label select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.prof-bday-row { display: flex; gap: 12px; }
.prof-bday-row .prof-label:first-child { flex: 0 0 90px; }
.prof-bday-row .prof-label:last-child { flex: 1; }
.prof-check { display: flex; align-items: center; gap: 10px; font-size: var(--t-sm); color: #3f454c; cursor: pointer; line-height: 1.5; }
.prof-check input { accent-color: var(--accent); width: 17px; height: 17px; flex-shrink: 0; cursor: pointer; }
.prof-hint { font-size: var(--t-xs); margin: 0; }
.prof-form .tman-btn { align-self: flex-start; }
.prof-del { margin-top: 14px; padding-top: 14px; border-top: 1px solid #f0f1f3; }

/* Notfall-PW-Chip in der Benutzerverwaltung */
.uman-pw { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-xs); font-weight: 700; color: #866417; background: #fdf3da; border: 1px solid #efdca6; padding: 2px 8px; border-radius: 6px; }

/* Arbeitsplatzbuchung â BuchungsoberflÃ¤che (Phase A3) */
.apb-mine { margin-bottom: 18px; }
.apb-mine-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.apb-mine-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 13px; background: var(--accent-soft); border-radius: 10px; font-size: var(--t-sm); flex-wrap: wrap; }
.apb-mini-cancel { border: none; background: transparent; color: var(--drk-red); font-weight: 700; font-family: inherit; font-size: var(--t-xs); cursor: pointer; }
.apb-mini-cancel:hover { text-decoration: underline; }
.apb-datebar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.apb-nav { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #e7e9ec; color: var(--accent-ink); text-decoration: none; }
.apb-nav:hover { background: var(--accent-soft); border-color: var(--accent); }
.apb-nav.disabled { opacity: .4; pointer-events: none; }
.apb-dateform { margin: 0; }
.apb-dateform input { padding: 9px 11px; border: 1px solid #d7dade; border-radius: 9px; font-family: inherit; font-size: var(--t-sm); }
.apb-weekday { font-weight: 700; color: #1c2024; margin-left: auto; }
.apb-room { margin-bottom: 14px; }
.apb-room-title { font-size: var(--t-md); font-weight: 700; color: #1c2024; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.apb-wp { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid #eef0f2; }
.apb-room-body > .apb-wp:first-child { border-top: none; }
.apb-wp-name { flex: 1 1 200px; min-width: 150px; }
.apb-wp-sub { display: block; font-size: var(--t-xs); color: var(--muted); margin-top: 2px; }
.apb-wp-slots { display: flex; gap: 10px; flex-wrap: wrap; }
.apb-wp-slot { display: flex; flex-direction: column; gap: 4px; min-width: 168px; }
.apb-slot-label { font-size: var(--t-xs); color: var(--muted); font-weight: 600; }
.apb-cellform { margin: 0; }
.apb-slot { display: inline-flex; align-items: center; gap: 6px; width: 100%; justify-content: center; padding: 8px 10px; border-radius: 9px; font-size: var(--t-sm); font-weight: 600; font-family: inherit; border: 1px solid transparent; }
button.apb-slot { cursor: pointer; transition: background .14s, color .14s; }
.apb-slot.free { background: var(--accent-soft); color: var(--accent-ink); border-color: color-mix(in oklch, var(--accent) 40%, #fff); }
.apb-slot.free:hover { background: var(--accent); color: #fff; }
.apb-slot.mine { background: #eaf5ec; color: #1c6b34; border-color: #9fd3ad; }
.apb-slot.mine:hover { background: #fdeaea; color: #9a2020; border-color: #e6a6a6; }
.apb-slot.booked { background: #f0f1f3; color: #697079; }
.apb-slot.none { background: transparent; color: #aeb4bb; }
@media (max-width: 640px) { .apb-wp { flex-direction: column; align-items: stretch; } .apb-weekday { margin-left: 0; width: 100%; } .apb-wp-slot { min-width: 0; } }
.apb-slot.fullday { background: #fff; color: var(--accent-ink); border-color: color-mix(in oklch, var(--accent) 55%, #fff); }
.apb-slot.fullday:hover { background: var(--accent); color: #fff; }

/* Arbeitsplatzbuchung â Tages-Kopf + Leerzustand */
.apb-daybar { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.apb-back { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-ink); text-decoration: none; font-weight: 700; font-size: var(--t-sm); padding: 8px 12px; border: 1px solid #e7e9ec; border-radius: 9px; }
.apb-back:hover { background: var(--accent-soft); border-color: var(--accent); }
.apb-daytitle { font-size: var(--t-md); font-weight: 800; color: #1c2024; }
.apb-empty { display: flex; align-items: center; gap: 13px; color: var(--accent-ink); }
.apb-empty strong { color: #1c2024; }

/* Arbeitsplatzbuchung â Kalender */
.apb-cal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.apb-cal-title { font-size: var(--t-lg, 1.15rem); font-weight: 800; color: #1c2024; min-width: 170px; }
.apb-cal-legend { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--muted); }
.apb-cal-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.apb-cal-dot.free { background: var(--accent); }
.apb-cal-dot.mine { background: #1c6b34; margin-left: 8px; }
.apb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.apb-cal-dow { text-align: center; font-size: var(--t-xs); font-weight: 700; color: var(--muted); padding: 2px 0 4px; }
.apb-cal-empty { min-height: 76px; }
.apb-cal-cell { min-height: 76px; border: 1px solid #e7e9ec; border-radius: 10px; padding: 7px 9px; display: flex; flex-direction: column; gap: 3px; background: #fff; text-decoration: none; color: inherit; }
a.apb-cal-cell:hover { border-color: var(--accent); background: var(--accent-soft); }
.apb-cal-cell.muted { background: #f7f8f9; color: #b7bcc2; }
.apb-cal-cell.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.apb-cal-daynum { font-weight: 700; font-size: var(--t-sm); }
.apb-cal-free { font-size: var(--t-xs); color: var(--accent-ink); font-weight: 700; margin-top: auto; }
.apb-cal-full { font-size: var(--t-xs); color: #b7bcc2; margin-top: auto; }
.apb-cal-mine { font-size: var(--t-xs); font-weight: 700; color: #1c6b34; }
.apb-cal-amps { display: flex; gap: 4px; margin-top: auto; }
.apb-amp { flex: 1; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .02em; padding: 3px 0; border-radius: 5px; }
.apb-amp.ok { background: #e6f4ea; color: #1c6b34; }
.apb-amp.full { background: #fdeaea; color: #9a2020; }
.apb-cal-legend .apb-amp { flex: none; padding: 3px 8px; }

/* Arbeitsplatzbuchung â Freigaben & Intervalle (Phase A4) */
.apb-cal-cta { margin-top: 14px; }
.apb-wrap > .card { margin-bottom: 16px; }
.apb-rel-pick { display: flex; flex-direction: column; gap: 8px; }
.apb-rel-pick select, #ivform select { padding: 9px 11px; border: 1px solid #d7dade; border-radius: 9px; font-family: inherit; font-size: var(--t-sm); max-width: 480px; }
.apb-rel-single { display: flex; align-items: center; gap: 8px; }
.apb-rel-ivlist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.apb-rel-iv { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 13px; background: #f7f8f9; border-radius: 10px; font-size: var(--t-sm); }
.apb-rel-range { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.apb-rel-range input { padding: 9px 11px; border: 1px solid #d7dade; border-radius: 9px; font-family: inherit; font-size: var(--t-sm); }
.apb-rel-uplist { display: flex; flex-direction: column; gap: 7px; }
.apb-rel-up { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 13px; border: 1px solid #eef0f2; border-radius: 10px; font-size: var(--t-sm); flex-wrap: wrap; }
.apb-rel-up.booked { background: #fafbfc; }

/* Dashboard-Karte âMein Arbeitsplatz" */
.dash-apb { display: flex; flex-direction: column; gap: 10px; }
.dash-apb-row { display: flex; gap: 9px; align-items: flex-start; font-size: var(--t-sm); line-height: 1.45; }
.dash-apb-icon { color: var(--accent-ink); flex-shrink: 0; margin-top: 1px; }
.dash-apb-row .dash-link { margin-left: 6px; }
.dash-apb-actions { margin-top: 2px; }
.dash-apb-btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 9px;
    background: var(--accent-soft); color: var(--accent-ink); font-size: var(--t-sm); font-weight: 600;
    text-decoration: none; transition: background .14s;
}
.dash-apb-btn:hover { background: var(--accent); color: #fff; }
@media (max-width: 640px) { .apb-cal-cell, .apb-cal-empty { min-height: 58px; } .apb-cal-cell { padding: 5px 6px; } .apb-cal-free, .apb-cal-mine, .apb-cal-full { font-size: 10px; } }

/* ============================================================
   Schnellbuchen am Platz (A5) â Ã¶ffentliche, mobil-first Seite
   ============================================================ */
.qb { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center;
    padding: 24px 16px 40px; background: linear-gradient(180deg, var(--accent-soft) 0%, #f6f7f9 240px); }
.qb-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid #e7e9ec;
    border-radius: 16px; box-shadow: 0 8px 30px rgba(20,30,45,.08); padding: 22px; margin-top: 24px; }
.qb-card-center { text-align: center; }
.qb-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.qb-logo { width: 34px; height: 34px; flex-shrink: 0; }
.qb-logo svg { width: 100%; height: 100%; display: block; }
.qb-brand { font-size: var(--t-lg); font-weight: 700; color: #1c2024; line-height: 1.1; }
.qb-sub { font-size: var(--t-xs); color: var(--muted); }
.qb-place { display: flex; align-items: center; gap: 11px; padding: 12px 13px; border-radius: 11px;
    background: var(--accent-soft); margin-bottom: 16px; }
.qb-place-icon { color: var(--accent-ink); flex-shrink: 0; }
.qb-place-name { font-weight: 700; color: #1c2024; }
.qb-place-room { font-size: var(--t-sm); color: var(--muted); }
.qb-form { display: flex; flex-direction: column; }
.qb-label { font-size: var(--t-sm); font-weight: 600; color: #3a4149; margin: 10px 0 5px; }
.qb-input { width: 100%; padding: 12px 13px; border: 1px solid #d7dade; border-radius: 10px;
    font-size: var(--t-md); font-family: inherit; background: #fff; color: #1c2024; box-sizing: border-box; }
.qb-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.qb-remember { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; font-size: var(--t-sm); color: #3a4149; }
.qb-btn { margin-top: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 16px; border: none; border-radius: 11px; background: var(--drk-red); color: #fff;
    font-size: var(--t-md); font-weight: 700; font-family: inherit; cursor: pointer; transition: background .14s; }
.qb-btn:hover { background: var(--drk-red-dark); }
.qb-btn-book { background: var(--accent); }
.qb-btn-book:hover { filter: brightness(.94); }
.qb-error { padding: 11px 13px; border-radius: 10px; background: #fdecec; color: #a01722;
    border: 1px solid #f6c9cd; font-size: var(--t-sm); margin-bottom: 14px; }
.qb-ok { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border-radius: 10px;
    background: #e8f6ed; color: #1b7a3d; border: 1px solid #bfe6cd; font-size: var(--t-sm); margin-bottom: 14px; }
.qb-hint { margin-top: 16px; font-size: var(--t-xs); color: var(--muted); line-height: 1.5; }
.qb-invalid-text { margin: 12px 0 0; font-size: var(--t-sm); color: var(--muted); line-height: 1.55; }
.qb-next { margin-top: 20px; padding-top: 16px; border-top: 1px solid #eceef0; }
.qb-next-title { font-size: var(--t-sm); font-weight: 700; color: #3a4149; margin-bottom: 8px; }
.qb-next-empty { font-size: var(--t-sm); color: var(--muted); }
.qb-next-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.qb-next-list li { display: flex; align-items: center; gap: 9px; font-size: var(--t-sm); color: #3a4149; }
.qb-next-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.qb-logout { margin-top: 18px; text-align: center; }
.qb-link-btn { background: none; border: none; color: var(--muted); font-size: var(--t-sm);
    font-family: inherit; cursor: pointer; text-decoration: underline; padding: 4px; }
.qb-link-btn:hover { color: var(--drk-red); }

/* QR-Druckansicht (A5, Admin) */
.qrp { max-width: 520px; margin: 0 auto; padding: 20px 16px 40px; }
.qrp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.qrp-back { color: var(--accent-ink); text-decoration: none; font-size: var(--t-sm); font-weight: 600; }
.qrp-back:hover { text-decoration: underline; }
.qrp-actions { display: flex; gap: 8px; }
.qrp-btn { padding: 9px 15px; border: none; border-radius: 9px; background: var(--accent); color: #fff;
    font-size: var(--t-sm); font-weight: 600; font-family: inherit; cursor: pointer; text-decoration: none; display: inline-block; }
.qrp-btn-ghost { background: var(--accent-soft); color: var(--accent-ink); }
.qrp-sheet { background: #fff; border: 1px solid #e7e9ec; border-radius: 16px; padding: 28px; text-align: center; }
.qrp-code { width: 240px; height: 240px; margin: 0 auto 18px; }
.qrp-code svg { width: 100%; height: 100%; display: block; }
.qrp-title { font-size: var(--t-lg); font-weight: 700; color: #1c2024; }
.qrp-room { font-size: var(--t-sm); color: var(--muted); margin-top: 3px; }
.qrp-caption { margin-top: 14px; font-size: var(--t-sm); color: #3a4149; }
.qrp-url { margin-top: 6px; font-size: var(--t-xs); color: var(--muted); word-break: break-all; }
@media print {
    .qrp-toolbar { display: none; }
    .qrp-sheet { border: none; box-shadow: none; }
}

/* AktivitÃ¤ts-Log / Protokoll (Phase A6) -------------------------------------- */
.log-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; background: #fff; border: 1px solid #e7e9ec; border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; }
.log-filter-field { display: flex; flex-direction: column; gap: 4px; }
.log-filter-field label { font-size: var(--t-xs); font-weight: 700; color: var(--muted); }
.log-filter-field .uman-select { min-width: 150px; }
.log-filter-grow { flex: 1 1 200px; }
.log-filter-grow .uman-select { min-width: 100%; }
.log-filter-actions { display: flex; gap: 8px; margin-left: auto; }
.log-badge { font-size: var(--t-xs); font-weight: 700; padding: 2px 9px; border-radius: 6px; background: #eceef0; color: #454b52; }
.log-badge.log-create { background: var(--accent-soft); color: var(--accent-ink); }
.log-badge.log-update { background: #eaf1fb; color: #1f5fb0; }
.log-badge.log-delete { background: #fdeaea; color: #9a2020; }
.log-badge.log-login  { background: #f2eefb; color: #5a3fa0; }
.log-badge.log-book   { background: #eaf7ef; color: #1c7a44; }
.log-area { font-size: var(--t-sm); font-weight: 700; color: #1c2024; }
.log-subject { font-size: var(--t-sm); font-weight: 500; color: #4a5058; }
.log-subject::before { content: "Â· "; color: #b6bbc1; }
.log-detail { color: var(--muted); }
.log-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.log-pager-info { font-size: var(--t-sm); color: var(--muted); font-weight: 600; }

/* KI-Wissensbasis: Index-Status (B5.3) */
.kidx-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.kidx-stat { background: var(--card, #fff); border: 1px solid #eceef0; border-radius: 11px; padding: 10px 16px; font-size: var(--t-sm); color: #4a5058; }
.kidx-num { font-size: var(--t-lg); font-weight: 800; color: #1c2024; margin-right: 6px; }
.kidx-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.kidx-badge { font-size: var(--t-xs); font-weight: 700; padding: 2px 9px; border-radius: 6px; background: #eceef0; color: #454b52; }
.kidx-badge.kidx-ok { background: #eaf7ef; color: #1c7a44; }
.kidx-badge.kidx-empty { background: #eceef0; color: #5a6067; }
.kidx-badge.kidx-unsupported { background: #fff4e2; color: #9a6a12; }
.kidx-badge.kidx-error { background: #fdeaea; color: #9a2020; }
.kidx-badge.kidx-none { background: #f2eefb; color: #5a3fa0; }
.kidx-ext { font-size: var(--t-xs); font-weight: 700; color: #9aa0a8; letter-spacing: .03em; }
