/* ============================================================
   DATEEX Corporate Theme — Modern Responsive Design
   Colors: Red #e3001a | Dark Teal #032b38 | Navy #01171e
   Font:   Open Sans (loaded via App.razor)
   ============================================================ */

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
    /* Brand */
    --dx-red:          #e3001a;
    --dx-red-dark:     #c4001a;
    --dx-teal:         #032b38;
    --dx-teal-dark:    #01171e;
    --dx-teal-light:   #054a62;
    --dx-blue-link:    #2ea3f2;

    /* Neutrals */
    --dx-white:        #ffffff;
    --dx-bg:           #f5f6f8;
    --dx-border:       #e2e5e9;
    --dx-text:         #666666;
    --dx-text-dark:    #01171e;
    --dx-text-muted:   #6f797d;

    /* Elevation (box-shadows) */
    --dx-shadow-xs:    0 1px 3px rgba(1,23,30,.06), 0 1px 2px rgba(1,23,30,.04);
    --dx-shadow-sm:    0 2px 6px rgba(1,23,30,.08), 0 1px 3px rgba(1,23,30,.05);
    --dx-shadow-md:    0 4px 14px rgba(1,23,30,.10), 0 2px 6px rgba(1,23,30,.06);
    --dx-shadow-lg:    0 8px 28px rgba(1,23,30,.14), 0 4px 10px rgba(1,23,30,.07);

    /* Transitions */
    --dx-ease:         cubic-bezier(.25,.46,.45,.94);
    --dx-duration:     200ms;

    /* Radius */
    --dx-radius-sm:    4px;
    --dx-radius-md:    8px;
    --dx-radius-lg:    12px;
    --dx-radius-xl:    16px;

    /* Schriftart für DevExpress-Komponenten — bleibt als einziges DX-Token gesetzt,
       damit die App-Schrift konsistent ist. Accent-Farben werden über die
       Fluent-Theme-API (SetCustomAccentColor) gesteuert, nicht hier. */
    --dxds-font-family-base: "Open Sans", Helvetica, Arial, Lucida, sans-serif;
}

/* ── Reset / Base ───────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    font-family: "Open Sans", Helvetica, Arial, Lucida, sans-serif;
}

html {
    height: 100%;
    font-size: var(--global-size, 16px);
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: 1.6;
    color: var(--dx-text);
    background-color: var(--dx-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    color: var(--dx-text-dark);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5rem;
}

h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

a {
    color: var(--dx-blue-link);
    text-decoration: none;
    transition: color var(--dx-duration) var(--dx-ease);
}
a:hover { color: #1a8fd4; }

/* ── Sidebar-Navigation (NavMenu, AdminNavMenu) ─────────────── */
.dax-sidenav {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
}

.dax-sidenav-section-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.4);
    padding: 1.1rem 1rem .25rem;
}

.dax-sidenav-item {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .5rem 1rem;
    font-size: .875rem;
    font-weight: 500;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    border-radius: 6px;
    margin: 1px 4px;
    transition: background 180ms ease, color 180ms ease;
}

.dax-sidenav-item:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
    text-decoration: none;
}

.dax-sidenav-item.active {
    background: rgba(255,255,255,.15);
    color: #fff;
    font-weight: 600;
}

.dax-sidenav-icon {
    font-size: 1rem;
    flex-shrink: 0;
    opacity: .85;
}

/* ── Login-Popup ────────────────────────────────────────────── */
.login-popup-backdrop {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #032b38 0%, #01171e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-popup-card {
    background: #fff;
    border-radius: var(--dx-radius-xl);
    box-shadow: var(--dx-shadow-lg);
    width: 100%;
    max-width: 420px;
    padding: 2.5rem 2rem 2rem;
}

.login-popup-logo {
    display: block;
    height: 2rem;
    margin: 0 auto 1.75rem;
}

.login-popup-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dx-text-dark);
    text-align: center;
    margin-bottom: 0.25rem;
}

.login-popup-subtitle {
    font-size: 13px;
    color: var(--dx-text-muted);
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.login-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dx-text-dark);
    margin-bottom: 0.375rem;
}

.login-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 14px;
    border: 1px solid var(--dx-border);
    border-radius: var(--dx-radius-sm);
    outline: none;
    transition: border-color var(--dx-duration) var(--dx-ease),
                box-shadow var(--dx-duration) var(--dx-ease);
}
.login-input:focus {
    border-color: var(--dx-red);
    box-shadow: 0 0 0 3px rgba(227,0,26,.15);
}

.login-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 13px;
    color: var(--dx-text);
}

.btn-login {
    width: 100%;
    padding: 0.625rem 1rem;
    background-color: var(--dx-red);
    color: #fff;
    border: none;
    border-radius: var(--dx-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--dx-duration) var(--dx-ease);
}
.btn-login:hover { background-color: var(--dx-red-dark); }

/* ── Cards / panels (generic) ───────────────────────────────── */
.dx-card {
    background: var(--dx-white);
    border: 1px solid var(--dx-border);
    border-radius: var(--dx-radius-lg);
    box-shadow: var(--dx-shadow-sm);
    transition: box-shadow var(--dx-duration) var(--dx-ease),
                transform var(--dx-duration) var(--dx-ease);
}
.dx-card:hover {
    box-shadow: var(--dx-shadow-md);
    transform: translateY(-2px);
}

/* DevExpress-Buttons + Inputs erben die DATEEX-rote Akzentfarbe automatisch
   aus dem Fluent-Theme (siehe AppThemeCatalog.cs → SetCustomAccentColor).
   Keine manuellen Overrides mehr nötig — die hier früher stehenden
   .dxbl-btn-primary / .dxbl-input:focus-within-Hacks sind raus, weil sie
   im Dark-Mode rosa Ränder erzeugt haben. */

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar        { width: 5px; height: 5px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: #c9d0d5; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--dx-teal); }

/* ── Bootstrap utility overrides ───────────────────────────── */
.text-danger   { color: var(--dx-red) !important; }
.btn-primary   { background-color: var(--dx-red); border-color: var(--dx-red); }
.btn-primary:hover { background-color: var(--dx-red-dark); border-color: var(--dx-red-dark); }

.alert-danger  { border-left: 3px solid var(--dx-red); }
.alert-success { border-left: 3px solid var(--dx-teal); }

.validation-message { color: var(--dx-red); font-size: 12px; margin-top: 2px; }

/* ── Account / Auth pages ───────────────────────────────────── */
.card {
    border: 1px solid var(--dx-border);
    border-radius: var(--dx-radius-lg);
    box-shadow: var(--dx-shadow-sm);
}
.card-header {
    background-color: var(--dx-teal);
    color: var(--dx-white);
    font-weight: 600;
    border-radius: var(--dx-radius-lg) var(--dx-radius-lg) 0 0;
    padding: 1rem 1.25rem;
}

/* ── Responsive visibility helpers ─────────────────────────── */
@media (max-width: 768px) {
    .display-desktop { display: none !important; }
}
@media (min-width: 769px) {
    .display-mobile { display: none !important; }
}

/* ── Admin-Bereich ──────────────────────────────────────────── */
.admin-card {
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.admin-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #01171e;
    margin: 0;
}
.admin-hint {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
}
.farb-chip {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,.1);
}
.ticket-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.5;
}
.admin-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #01171e;
    margin-bottom: 1.5rem;
}
.admin-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}
.admin-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 10px;
    text-decoration: none;
    color: #01171e;
    font-size: 0.875rem;
    font-weight: 600;
    transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.admin-tile:hover {
    border-color: #e3001a;
    box-shadow: 0 4px 16px rgba(227,0,26,.12);
    transform: translateY(-2px);
    color: #e3001a;
}
.admin-tile-icon { font-size: 1.75rem; color: #e3001a; }


/* ── Ticket-Seiten ─────────────────────────────────── */
.ticket-list-container { padding: 0; width: 100%; }
.ticket-list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.ticket-filter-bar { display: flex; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.ticket-filter-bar .ticket-search { min-width: 240px; }
.ticket-grid { cursor: pointer; }
.ticket-grid .dxbl-grid-cell { vertical-align: middle; }
.ticket-empty { padding: 2rem; text-align: center; color: var(--dxbl-text-muted, #6c757d); }
.ticket-ungelesen-dot { display: inline-block; width: 8px; height: 8px; background: var(--bs-primary, #0d6efd); border-radius: 50%; margin-right: 6px; flex-shrink: 0; vertical-align: middle; }
.ticket-betreff-cell { display: flex; align-items: center; }
.ticket-betreff-cell.ungelesen { font-weight: 600; }

.ticket-form-card { max-width: 900px; margin: 1.5rem auto; }
.ticket-form { padding: .75rem 1.5rem; }
.ticket-form-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e9ecef; }

.ticket-detail-container { padding: 0; }
.ticket-detail-header { background: #fff; border: 1px solid #e0e4ea; border-radius: 8px; padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.ticket-detail-title-row { display: flex; align-items: baseline; gap: .75rem; margin-bottom: .6rem; }
.ticket-nummer { font-size: .85rem; font-weight: 600; color: #6c757d; white-space: nowrap; }
.ticket-betreff { margin: 0; font-size: 1.25rem; font-weight: 600; }
.ticket-detail-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ticket-meta-tag { background: #f0f2f5; border-radius: 4px; padding: 2px 8px; font-size: .8rem; }
.ticket-meta-datum, .ticket-meta-autor { font-size: .8rem; color: #6c757d; white-space: nowrap; }

/* Status + Projekt + Zeit – kombinierte Gruppe */
.ticket-aktionen-gruppe { background: var(--bg-secondary, #f8f9fa); border: 1px solid var(--border-color, #dee2e6); border-radius: 8px; padding: .6rem 1rem; margin-bottom: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.aktionen-felder-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.aktionen-feld { display: flex; align-items: center; gap: .5rem; }
.aktionen-label { font-size: .85rem; color: var(--text-secondary, #666); white-space: nowrap; font-weight: 500; }
.aktionen-feld .status-select { min-width: 200px; }
.aktionen-feld .ticket-projekt-select { min-width: 220px; }
.zeit-arbeitsgang-select { min-width: 180px; }
.zeit-datum-cell { white-space: nowrap; }

/* Kompakte Zeiterfassung-Buttons */
.zeit-kompakt-row { display: flex; align-items: center; gap: .4rem; }
.ticket-aktionen-gruppe .zeit-kompakt-row { margin-left: 0; }
.zeit-stop-btn { background: #ef4444; color: #fff; border: none; border-radius: 6px;
                 padding: 5px 14px; cursor: pointer; font-size: .88rem; font-weight: 600;
                 font-variant-numeric: tabular-nums; transition: background 150ms; }
.zeit-stop-btn:hover { background: #dc2626; }

.ticket-section { background: #fff; border: 1px solid #e0e4ea; border-radius: 8px; padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.ticket-section-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6c757d; margin-bottom: .75rem; }
.ticket-beschreibung-html { line-height: 1.65; }
.ticket-beschreibung-html img, .kommentar-inhalt img { max-width: 100%; height: auto; cursor: zoom-in; border-radius: 4px; }

/* Lightbox */
.lightbox-popup-img { max-width: 100%; max-height: 80vh; display: block; margin: 0 auto; border-radius: 4px; }

/* Anhänge */
.anhaenge-liste { list-style: none; padding: 0; margin: 0 0 1rem; }
.anhang-item { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid #f0f2f5; font-size: .88rem; }
.anhang-item:last-child { border-bottom: none; }
.anhang-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anhang-groesse { font-size: .78rem; color: #6c757d; white-space: nowrap; }
.anhang-upload-bereich { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid #e9ecef; }

.ticket-kommentar { border-left: 3px solid #dee2e6; padding: .75rem 1rem; margin-bottom: .75rem; border-radius: 0 6px 6px 0; background: #f9fafb; }
.kommentar-intern { border-left-color: #ffc107; background: #fffdf0; }
.kommentar-staff   { border-left-color: #0d6efd; background: #f0f5ff; }
.kommentar-header  { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .4rem; }
.kommentar-autor   { font-weight: 600; font-size: .88rem; }
.kommentar-datum   { font-size: .78rem; color: #6c757d; }
.kommentar-badge   { font-size: .72rem; font-weight: 600; padding: 1px 7px; border-radius: 12px; }
.kommentar-badge.intern { background: #fff3cd; color: #856404; }
.kommentar-badge.staff  { background: #cfe2ff; color: #084298; }
.kommentar-inhalt  { font-size: .92rem; line-height: 1.6; }

.kommentar-optionen { display: flex; gap: 1.5rem; margin-top: .75rem; }
.ticket-antwort-section { }

/* ── Zeiterfassung ─────────────────────────────────── */
.zeiterfassung-section { }
.zeit-tabelle { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: .88rem; }
.zeit-tabelle th { text-align: left; padding: 4px 8px; border-bottom: 2px solid #dee2e6; font-weight: 600; color: #495057; }
.zeit-tabelle td { padding: 5px 8px; border-bottom: 1px solid #f0f2f5; vertical-align: middle; }
.zeit-tabelle tfoot td { border-top: 2px solid #dee2e6; border-bottom: none; }
.zeit-tabelle .text-end { text-align: right; }
.zeit-laufend td { background: #f0fff4; }
.zeit-stunden { font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 60px; }
.zeit-notiz { color: #6c757d; font-style: italic; }
.zeit-badge-laufend { background: #d1fae5; color: #065f46; font-size: .72rem; font-weight: 700;
                       padding: 1px 7px; border-radius: 12px; margin-left: 4px; }
.farb-chip-sm { font-size: .76rem; padding: 1px 7px; }

.zeit-tabs { display: flex; gap: 0; margin: .75rem 0 0; border-bottom: 2px solid #dee2e6; }
.zeit-tab { background: none; border: none; padding: 6px 16px; cursor: pointer; font-size: .88rem;
             color: #6c757d; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.zeit-tab.aktiv { color: var(--bs-primary, #0d6efd); border-bottom-color: var(--bs-primary, #0d6efd); font-weight: 600; }

.zeit-panel { padding: .75rem 0 0; }
.stempel-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.stempel-arbeitsgang { min-width: 200px; }
.stempel-laufend { background: #f0fff4; padding: .5rem .75rem; border-radius: 6px; border: 1px solid #d1fae5; }
.stempel-uhr { font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 90px; color: #065f46; }
.stempel-info { font-size: .85rem; color: #374151; flex: 1; }
.stempel-notiz { min-width: 180px; }

.manuell-form-grid { display: grid; grid-template-columns: auto 1fr; gap: .65rem 1rem; align-items: center; padding: 1rem 1.5rem; }
.manuell-grid-label { font-size: .88rem; color: var(--text-secondary, #666); font-weight: 500; text-align: right; white-space: nowrap; }

/* ── Textbaustein-Insert ───────────────────────────── */
.textbaustein-bar { margin-bottom: .5rem; }
.textbaustein-select { min-width: 260px; }

/* ── Automatisierungs-Regeleditor ─────────────────── */
.regel-editor { padding: .5rem 0; }
.regel-abschnitt { border: 1px solid #e0e4ea; border-radius: 8px; padding: 1rem; margin-top: 1rem; }
.regel-abschnitt-header { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; font-weight: 600; }
.regel-zeile { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; flex-wrap: wrap; }
.regel-feld  { min-width: 180px; }
.regel-op    { min-width: 110px; }
.regel-wert  { min-width: 180px; flex: 1; }

/* ── Benachrichtigungs-Glocke ──────────────────────── */
.benachrichtigung-glocke { position: relative; display: inline-flex; align-items: center; }
.glocke-btn { background: none; border: none; cursor: pointer; padding: 4px 8px; position: relative;
              display: flex; align-items: center; color: inherit; }
.glocke-icon { font-size: 1.1rem; }
.glocke-badge { position: absolute; top: 0; right: 0; background: #dc3545; color: #fff;
                font-size: .65rem; font-weight: 700; min-width: 16px; height: 16px;
                border-radius: 8px; display: flex; align-items: center; justify-content: center;
                padding: 0 3px; line-height: 1; }

.glocke-dropdown { position: absolute; top: calc(100% + 4px); right: 0; width: 340px;
                   background: #fff; border: 1px solid #e0e4ea; border-radius: 8px;
                   box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 1050; overflow: hidden; }
.glocke-dropdown-header { display: flex; justify-content: space-between; align-items: center;
                           padding: .6rem 1rem; border-bottom: 1px solid #e0e4ea;
                           font-weight: 600; font-size: .88rem; }
.glocke-alle-lesen { background: none; border: none; cursor: pointer; color: var(--bs-primary, #0d6efd);
                     font-size: .8rem; padding: 0; }
.glocke-leer { padding: 1.5rem; text-align: center; color: #6c757d; font-size: .88rem; }
.glocke-item { padding: .6rem 1rem; cursor: pointer; border-bottom: 1px solid #f0f2f5;
               transition: background .15s; }
.glocke-item:hover { background: #f8f9fa; }
.glocke-item.ungelesen { background: #eff6ff; }
.glocke-item.ungelesen:hover { background: #dbeafe; }
.glocke-item-titel { font-weight: 600; font-size: .85rem; }
.glocke-item-nachricht { font-size: .8rem; color: #374151; margin: 2px 0; }
.glocke-item-zeit { font-size: .75rem; color: #9ca3af; }

/* ── Eingehende E-Mails ────────────────────────────── */
.email-status-badge { font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 12px; }
.email-status-empfangen       { background: #dbeafe; color: #1d4ed8; }
.email-status-verarbeitet     { background: #d1fae5; color: #065f46; }
.email-status-alsSpammarkiert { background: #fef9c3; color: #854d0e; }
.email-status-fehler          { background: #fee2e2; color: #991b1b; }
.email-fehler { font-size: .8rem; color: #6c757d; font-style: italic; }
.ticket-link { color: var(--bs-primary, #0d6efd); text-decoration: none; }
.ticket-link:hover { text-decoration: underline; }

/* ── API-Keys ──────────────────────────────────────── */
.apikey-neu-box { background: #f0fff4; border: 2px solid #86efac; border-radius: 8px;
                  padding: 1rem 1.25rem; margin-bottom: 1rem; display: flex;
                  align-items: center; gap: 1rem; flex-wrap: wrap; }
.apikey-code { font-size: .88rem; background: #fff; border: 1px solid #ccc;
               padding: 4px 10px; border-radius: 4px; word-break: break-all; flex: 1; }
.apikey-perms { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ── Community & News ──────────────────────────────── */
.community-container {
    width: 90%;
    max-width: 1440px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}
.community-header { margin-bottom: 1.25rem; }
.community-lead { color: #6c757d; margin: 0; }
.community-back { margin-bottom: .75rem; }
.back-link { color: var(--bs-primary, #0d6efd); text-decoration: none; font-size: .9rem; }
.back-link:hover { text-decoration: underline; }

.community-liste { display: flex; flex-direction: column; gap: .75rem; }
.community-card { display: flex; justify-content: space-between; align-items: center;
                  background: #fff; border: 1px solid #e0e4ea; border-radius: 8px;
                  padding: 1rem 1.25rem; cursor: pointer; transition: box-shadow .15s; gap: 1rem; }
.community-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.community-card-main { flex: 1; min-width: 0; }
.community-card-titel { font-weight: 600; font-size: 1rem; margin-bottom: .3rem; }
.community-card-meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.community-card-stats { display: flex; gap: 1rem; flex-shrink: 0; }
.community-stat { display: flex; flex-direction: column; align-items: center;
                  cursor: pointer; padding: .4rem .6rem; border-radius: 6px;
                  border: 1px solid #e0e4ea; min-width: 56px; transition: background .15s; }
.community-stat:hover { background: #f0f4ff; }
.community-stat.upvote-aktiv { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }
.community-stat-zahl { font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.community-stat-label { font-size: .7rem; color: #6c757d; }
.community-upvote-inline { cursor: pointer; padding: 2px 10px; border-radius: 12px;
                            border: 1px solid #e0e4ea; font-size: .85rem; }
.community-upvote-inline.upvote-aktiv { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }

/* News */
.news-liste { display: flex; flex-direction: column; gap: 1rem; }
.news-card { background: #fff; border: 1px solid #e0e4ea; border-radius: 8px;
             padding: 1.25rem 1.5rem; cursor: pointer; transition: box-shadow .15s; }
.news-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.news-card-datum { font-size: .8rem; color: #6c757d; margin-bottom: .3rem; }
.news-card-titel { margin: 0 0 .5rem; font-size: 1.15rem; }
.news-card-auszug { color: #4b5563; font-size: .9rem; margin: 0 0 .5rem; line-height: 1.55; }
.news-card-link { font-size: .85rem; color: var(--bs-primary, #0d6efd); }
.news-detail-header { background: #fff; border: 1px solid #e0e4ea; border-radius: 8px;
                      padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.news-detail-datum { font-size: .85rem; color: #6c757d; margin-bottom: .4rem; }
.news-detail-titel { margin: 0 0 .5rem; font-size: 1.5rem; font-weight: 700; }
.news-inhalt { font-size: .95rem; line-height: 1.7; }

/* ── Dashboard ─────────────────────────────────────── */
.dashboard-container { max-width: 100%; margin: 1.5rem auto; padding: 0 1rem; }
.dashboard-titel { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.25rem; }

.dashboard-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
                  gap: .75rem; margin-bottom: 1.25rem; }
.kpi-card { background: #fff; border: 1px solid #e0e4ea; border-radius: 10px;
            padding: 1.1rem 1rem; cursor: pointer; transition: box-shadow .15s;
            text-align: center; }
.kpi-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.kpi-card.kpi-warn   { border-left: 4px solid #ef4444; }
.kpi-card.kpi-info   { border-left: 4px solid #3b82f6; }
.kpi-card.kpi-success{ border-left: 4px solid #10b981; }
.kpi-zahl { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.kpi-label { font-size: .78rem; color: #6c757d; margin-top: .2rem; }

.dashboard-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
@media (max-width: 700px) { .dashboard-charts { grid-template-columns: 1fr; } }
.dashboard-chart-card { background: #fff; border: 1px solid #e0e4ea; border-radius: 8px;
                         padding: 1rem 1.25rem; }

.recent-ticket-row { display: flex; align-items: center; gap: .75rem; padding: .55rem .5rem;
                      border-bottom: 1px solid #f0f2f5; cursor: pointer; border-radius: 4px; }
.recent-ticket-row:hover { background: #f8f9fa; }
.recent-ticket-betreff { flex: 1; min-width: 0; font-size: .9rem; overflow: hidden;
                           white-space: nowrap; text-overflow: ellipsis; }

/* Welcome */
.welcome-container { max-width: 560px; margin: 6rem auto; text-align: center; padding: 0 1rem; }
.welcome-logo { height: 56px; margin-bottom: 1.5rem; }
.welcome-titel { font-size: 1.8rem; font-weight: 800; margin-bottom: .75rem; }
.welcome-text { color: #6c757d; line-height: 1.65; margin-bottom: 1.5rem; }
.welcome-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.ms-2 { margin-left: .5rem; }

/* SLA */
.sla-leiste { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.sla-badge { font-size: .78rem; padding: .2rem .55rem; border-radius: 4px; font-weight: 500; }
.sla-ok { background: #d1fae5; color: #065f46; }
.sla-verletzt { background: #fee2e2; color: #991b1b; font-weight: 700; }
.sla-erfuellt { background: #dbeafe; color: #1e40af; }

/* Kanban */
.kanban-toolbar { display:flex; align-items:center; justify-content:space-between;
                  margin-bottom:1rem; flex-wrap:wrap; gap:.5rem; }
.kanban-board { display:flex; gap:1rem; overflow-x:auto; padding-bottom:1rem;
                align-items:flex-start; min-height:60vh; }
.kanban-spalte { background:#f8f9fa; border-radius:8px; min-width:240px; width:240px;
                 flex-shrink:0; display:flex; flex-direction:column; }
.kanban-spalten-header { padding:.6rem .9rem; display:flex; align-items:center;
                          justify-content:space-between; border-radius:8px 8px 0 0;
                          background:#fff; border:1px solid #e0e4ea; border-bottom:none; }
.kanban-spalten-titel { font-weight:600; font-size:.88rem; }
.kanban-badge { background:#e0e4ea; color:#555; border-radius:12px;
                padding:.1rem .45rem; font-size:.75rem; }
.kanban-karten { padding:.5rem; display:flex; flex-direction:column; gap:.5rem;
                  border:1px solid #e0e4ea; border-top:none; border-radius:0 0 8px 8px;
                  min-height:80px; }
.kanban-karte { background:#fff; border:1px solid #e0e4ea; border-radius:6px;
                padding:.6rem .75rem; cursor:grab; transition:box-shadow .15s; }
.kanban-karte:hover { box-shadow:0 2px 8px rgba(0,0,0,.1); }
.kanban-karte-sla { border-left:3px solid #ef4444; }
.kanban-karte-nummer { font-size:.72rem; color:#6c757d; }
.kanban-karte-betreff { font-size:.85rem; font-weight:500; margin-bottom:.35rem;
                         overflow:hidden; display:-webkit-box; -webkit-line-clamp:2;
                         -webkit-box-orient:vertical; }
.kanban-karte-meta { display:flex; gap:.4rem; flex-wrap:wrap; align-items:center; margin-bottom:.35rem; }
.kanban-karte-footer { display:flex; justify-content:space-between; align-items:center;
                        margin-top:.4rem; padding-top:.35rem; border-top:1px solid #f0f2f5; }
.kanban-karte-kunde { font-size:.72rem; color:#6c757d; max-width:120px;
                       overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* CSAT */
.csat-sterne { display:flex; gap:.4rem; justify-content:center; margin:1rem 0 .25rem; }
.csat-stern { font-size:2rem; background:none; border:none; cursor:pointer;
               color:#d1d5db; transition:color .1s; line-height:1; }
.csat-stern-aktiv { color:#f59e0b; }
.csat-label { text-align:center; font-size:.85rem; color:#6c757d; margin-bottom:.5rem; }

/* ── Dark Mode ──────────────────────────────────────────────── */

/* Globale CSS-Tokens für Dark Mode überschreiben */
[data-theme="dark"] {
    --dx-bg:         #1a1d23;
    --dx-white:      #242831;
    --dx-border:     #363b47;
    --dx-text:       #c4c9d4;
    --dx-text-dark:  #e2e8f0;
    --dx-text-muted: #7c8490;
    --dx-shadow-xs:  0 1px 3px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.25);
    --dx-shadow-sm:  0 2px 6px rgba(0,0,0,.4),  0 1px 3px rgba(0,0,0,.3);
    --dx-shadow-md:  0 4px 14px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.35);
    --dx-shadow-lg:  0 8px 28px rgba(0,0,0,.6), 0 4px 10px rgba(0,0,0,.4);
}

/* Layout-Container */
[data-theme="dark"] body,
[data-theme="dark"] .drawer-content { background-color: #1a1d23; color: #e2e8f0; }

/* Topbar-Dark-Mode in layout.css */

/* Cards */
[data-theme="dark"] .dx-card,
[data-theme="dark"] .admin-card,
[data-theme="dark"] .ticket-section,
[data-theme="dark"] .ticket-detail-header,
[data-theme="dark"] .news-detail-header { background: #242831; border-color: #363b47; color: #e2e8f0; }

[data-theme="dark"] .card { background: #242831; border-color: #363b47; }

/* Ticket-Bereiche */
[data-theme="dark"] .ticket-detail-container { background: #1a1d23; }
[data-theme="dark"] .ticket-kommentar { background: #2d3340; border-left-color: #4b5563; }
[data-theme="dark"] .kommentar-intern { background: #2d2a1a; border-left-color: #ca8a04; }
[data-theme="dark"] .kommentar-staff  { background: #1a2342; border-left-color: #3b82f6; }
[data-theme="dark"] .ticket-meta-tag  { background: #2d3340; color: #c4c9d4; }

/* Dashboard */
[data-theme="dark"] .dashboard-container { background: #1a1d23; }
[data-theme="dark"] .kpi-card { background: #242831; border-color: #363b47; color: #e2e8f0; }
[data-theme="dark"] .kpi-zahl { color: #e2e8f0; }
[data-theme="dark"] .dashboard-chart-card { background: #242831; border-color: #363b47; }
[data-theme="dark"] .recent-ticket-row:hover { background: #2d3340; }

/* Kanban */
[data-theme="dark"] .kanban-spalte { background: #2d3340; }
[data-theme="dark"] .kanban-spalten-header,
[data-theme="dark"] .kanban-karte { background: #1a1d23; border-color: #363b47; color: #e2e8f0; }
[data-theme="dark"] .kanban-karte:hover { box-shadow: 0 2px 8px rgba(0,0,0,.4); }
[data-theme="dark"] .kanban-karte-footer { border-top-color: #363b47; }
[data-theme="dark"] .kanban-karte-nummer,
[data-theme="dark"] .kanban-karte-kunde { color: #7c8490; }

/* Community / News */
[data-theme="dark"] .community-card,
[data-theme="dark"] .news-card,
[data-theme="dark"] .news-detail-header { background: #242831; border-color: #363b47; }

/* Glocke / Benachrichtigungen */
[data-theme="dark"] .glocke-dropdown { background: #242831; border-color: #363b47; }
[data-theme="dark"] .glocke-dropdown-header { border-bottom-color: #363b47; color: #e2e8f0; }
[data-theme="dark"] .glocke-item { border-bottom-color: #2d3340; }
[data-theme="dark"] .glocke-item:hover { background: #2d3340; }
[data-theme="dark"] .glocke-item.ungelesen { background: #1a2342; }
[data-theme="dark"] .glocke-item.ungelesen:hover { background: #1e2a50; }
[data-theme="dark"] .glocke-item-nachricht { color: #c4c9d4; }

[data-theme="dark"] .ticket-aktionen-gruppe { background: #1e2433; border-color: #363b47; }

/* Zeiterfassung */
[data-theme="dark"] .zeit-tabelle th { color: #c4c9d4; border-bottom-color: #363b47; }
[data-theme="dark"] .zeit-tabelle td { border-bottom-color: #2d3340; }
[data-theme="dark"] .zeit-tabelle tfoot td { border-top-color: #363b47; }
[data-theme="dark"] .zeit-laufend td { background: #1a2a20; }
[data-theme="dark"] .stempel-laufend { background: #1a2a20; border-color: #16532b; }

/* Admin */
[data-theme="dark"] .admin-tile { background: #242831; border-color: #363b47; color: #e2e8f0; }
[data-theme="dark"] .admin-tile:hover { border-color: #e3001a; }
[data-theme="dark"] .admin-card-header h3 { color: #e2e8f0; }

/* Login */
[data-theme="dark"] .login-popup-card { background: #242831; }
[data-theme="dark"] .login-input { background: #1a1d23; border-color: #363b47; color: #e2e8f0; }
[data-theme="dark"] .login-label { color: #e2e8f0; }
[data-theme="dark"] .login-popup-title { color: #e2e8f0; }

/* SLA */
[data-theme="dark"] .sla-ok { background: #14532d; color: #86efac; }
[data-theme="dark"] .sla-verletzt { background: #450a0a; color: #fca5a5; }
[data-theme="dark"] .sla-erfuellt { background: #1e3a5f; color: #93c5fd; }

/* ── Notizen ─────────────────────────────────────────────────── */
.notizen-layout {
    display: flex;
    gap: 0;
    height: calc(100vh - 80px);
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 10px;
    overflow: hidden;
}
.notizen-sidebar {
    width: 300px;
    min-width: 260px;
    border-right: 1px solid #e2e5e9;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.notizen-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .875rem 1rem;
    border-bottom: 1px solid #e2e5e9;
}
.notizen-sidebar-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #01171e;
    margin: 0;
}
.notizen-suche {
    padding: .5rem .75rem;
    border-bottom: 1px solid #e2e5e9;
}
.notizen-liste {
    flex: 1;
    overflow-y: auto;
}
.notiz-listeneintrag {
    padding: .75rem 1rem;
    border-bottom: 1px solid #f0f2f4;
    cursor: pointer;
    transition: background .15s;
}
.notiz-listeneintrag:hover { background: #f7f9fb; }
.notiz-listeneintrag.aktiv { background: #fde8ea; border-left: 3px solid #e3001a; }
.notiz-listeneintrag-titel {
    font-size: .9rem;
    font-weight: 600;
    color: #01171e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notiz-listeneintrag-meta {
    font-size: .75rem;
    color: #6c757d;
    margin-top: .2rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.notiz-projekt-badge {
    background: #eaf0ff;
    color: #2563eb;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: .7rem;
}
.notizen-leer {
    padding: 1.5rem 1rem;
    color: #6c757d;
    font-size: .875rem;
    text-align: center;
}
.notizen-inhalt {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.notizen-inhalt-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e5e9;
    gap: 1rem;
}
.notizen-inhalt-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #01171e;
    margin: 0 0 .25rem;
}
.notizen-meta {
    font-size: .8rem;
    color: #6c757d;
}
.notizen-aktionen {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}
.notizen-inhalt-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
}
.notizen-leer-rechts {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: .9rem;
}

/* Dark mode – Notizen */
[data-theme="dark"] .notizen-layout { background: #242831; border-color: #363b47; }
[data-theme="dark"] .notizen-sidebar { border-right-color: #363b47; }
[data-theme="dark"] .notizen-sidebar-header { border-bottom-color: #363b47; }
[data-theme="dark"] .notizen-sidebar-header h3 { color: #e2e8f0; }
[data-theme="dark"] .notizen-suche { border-bottom-color: #363b47; }
[data-theme="dark"] .notiz-listeneintrag { border-bottom-color: #2d3340; }
[data-theme="dark"] .notiz-listeneintrag:hover { background: #2d3340; }
[data-theme="dark"] .notiz-listeneintrag.aktiv { background: #3a1a1d; border-left-color: #e3001a; }
[data-theme="dark"] .notiz-listeneintrag-titel { color: #e2e8f0; }
[data-theme="dark"] .notizen-inhalt-header { border-bottom-color: #363b47; }
[data-theme="dark"] .notizen-inhalt-header h2 { color: #e2e8f0; }
[data-theme="dark"] .notiz-projekt-badge { background: #1e2a50; color: #93c5fd; }



/*Dashboard DATEEX-Portal*/

.dashboard-page {
    width: 80%;
    max-width: 1440px;
    margin: 1.5rem auto;
    padding: 0 1rem 2rem 1rem;
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.dashboard-eyebrow {
    font-size: .8rem;
    font-weight: 600;
    color: #d0001b;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .35rem;
}

.dashboard-titel {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #111827;
}

.dashboard-subtitle {
    margin: .45rem 0 0 0;
    color: #6b7280;
    font-size: .98rem;
}

.dashboard-hero-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.kunden-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpi-card {
    cursor: pointer;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .kpi-card:hover {
        transform: translateY(-2px);
        border-color: #d1d5db;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
    }

.kpi-zahl {
    font-size: 2rem;
    font-weight: 750;
    color: #111827;
    line-height: 1;
}

.kpi-label {
    margin-top: .6rem;
    color: #6b7280;
    font-size: .92rem;
}

.kpi-warn {
    border-left: 5px solid #dc2626;
}

.kpi-info {
    border-left: 5px solid #2563eb;
}

.kpi-success {
    border-left: 5px solid #16a34a;
}

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-card {
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: .85rem;
}

.dashboard-card-actions {
    display: flex;
    gap: .5rem;
}

.ticket-section-label {
    font-size: .95rem;
    font-weight: 700;
    color: #111827;
}

.recent-ticket-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.recent-ticket-row {
    display: grid;
    grid-template-columns: 130px minmax(180px, 1fr) auto 110px auto;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border: 1px solid #edf0f3;
    border-radius: 14px;
    background: #fbfcfd;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

    .recent-ticket-row:hover {
        background: #ffffff;
        border-color: #d9dee5;
        transform: translateX(2px);
    }

.ticket-nummer {
    font-weight: 700;
    color: #d0001b;
    white-space: nowrap;
}

.recent-ticket-betreff {
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-meta-datum {
    color: #6b7280;
    font-size: .9rem;
    white-space: nowrap;
}

.welcome-page {
    width: 80%;
    max-width: 1440px;
    min-height: calc(100vh - 160px);
    margin: 1.5rem auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-card {
    width: 100%;
    max-width: 720px;
    padding: 3rem 2.5rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

/* ── Ticket-Zuweisungen ──────────────────────────────────────── */
.ticket-section-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.zuweisung-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.zuweisung-chip { display: inline-flex; align-items: center; gap: .2rem; font-size: .82rem; font-weight: 500; padding: .2rem .65rem; border-radius: 20px; background: #e8f0f5; color: #032b38; border: 1px solid #c8d9e3; }
.zuweisung-haupt { background: #fff8e1; color: #7a5700; border-color: #f0d060; font-weight: 700; }
.zuweisung-popup-label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .3rem; color: #374151; }
[data-theme="dark"] .zuweisung-chip { background: #1e3040; color: #a8c8dc; border-color: #2e4a5f; }
[data-theme="dark"] .zuweisung-haupt { background: #3d2e00; color: #f5d060; border-color: #7a5700; }

/* ── Ticket-Checkliste ────────────────────────────────────── */
.checkliste-progress-wrap { height: 6px; background: #e9ecef; border-radius: 3px; margin-bottom: .75rem; overflow: hidden; }
.checkliste-progress { height: 100%; background: #198754; border-radius: 3px; transition: width .3s ease; }
.checkliste-liste { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .6rem; }
.checkliste-item { display: flex; align-items: center; gap: .6rem; padding: .3rem .4rem; border-radius: 6px; transition: background .15s; }
.checkliste-item:hover { background: #f8f9fa; }
.checkliste-text { flex: 1; font-size: .92rem; line-height: 1.4; }
.checkliste-item-erledigt .checkliste-text { text-decoration: line-through; color: #9ca3af; }
.checkliste-neu-row { display: flex; gap: .5rem; align-items: center; margin-top: .25rem; }
.checkliste-input { flex: 1; }
.checkliste-vorlage-select { width: 180px; }
[data-theme="dark"] .checkliste-progress-wrap { background: #2d3748; }
[data-theme="dark"] .checkliste-progress { background: #22c55e; }
[data-theme="dark"] .checkliste-item:hover { background: #1e2530; }
[data-theme="dark"] .checkliste-item-erledigt .checkliste-text { color: #6b7280; }

/* ── Ticket-Verknüpfungen ──────────────────────────────────── */
.verknuepfung-liste { display: flex; flex-direction: column; gap: .4rem; }
.verknuepfung-item { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .35rem .6rem; border-radius: 6px; background: #f8f9fa; border: 1px solid #e9ecef; }
.verknuepfung-link { display: flex; align-items: center; gap: .45rem; text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.verknuepfung-link:hover .verknuepfung-betreff { text-decoration: underline; color: var(--bs-primary, #0d6efd); }
.verknuepfung-nummer { font-size: .8rem; font-weight: 600; color: #6c757d; white-space: nowrap; }
.verknuepfung-betreff { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verknuepfung-richtung { font-size: .85rem; color: #9ca3af; flex-shrink: 0; }
.verknuepfung-art-badge { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 12px; white-space: nowrap; flex-shrink: 0; }
.verknuepfung-art-badge.art-verweis    { background: #e0f2fe; color: #075985; }
.verknuepfung-art-badge.art-duplikat   { background: #fef9c3; color: #713f12; }
.verknuepfung-art-badge.art-zusammen   { background: #f0fdf4; color: #166534; }
.verknuepfung-art-badge.art-blockiert  { background: #fee2e2; color: #991b1b; }
[data-theme="dark"] .verknuepfung-item { background: #1e2530; border-color: #2d3748; }
[data-theme="dark"] .verknuepfung-art-badge.art-verweis   { background: #0c3047; color: #7dd3fc; }
[data-theme="dark"] .verknuepfung-art-badge.art-duplikat  { background: #3d2e00; color: #fde68a; }
[data-theme="dark"] .verknuepfung-art-badge.art-zusammen  { background: #052e16; color: #86efac; }
[data-theme="dark"] .verknuepfung-art-badge.art-blockiert { background: #450a0a; color: #fca5a5; }

.welcome-logo {
    max-width: 190px;
    margin-bottom: 1.5rem;
}

.welcome-titel {
    margin: 0;
    font-size: 2rem;
    font-weight: 750;
    color: #111827;
}

.welcome-text {
    max-width: 520px;
    margin: 1rem auto 1.5rem auto;
    color: #6b7280;
    line-height: 1.6;
}

.welcome-actions {
    display: flex;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
}

@@media (max-width: 1200px) {
    .dashboard-page,
    .welcome-page {
        width: 90%;
    }

    .dashboard-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-charts {
        grid-template-columns: 1fr;
    }
}

@@media (max-width: 800px) {
    .dashboard-page,
    .welcome-page {
        width: 100%;
        margin: 1rem auto;
    }

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-kpis,
    .kunden-kpis {
        grid-template-columns: 1fr;
    }

    .recent-ticket-row {
        grid-template-columns: 1fr;
        gap: .35rem;
    }
}
