/* EDN IT Portal: gemeinsames Erscheinungsbild.
   Die Seiten nutzen Tailwind-Klassen; die Regeln unten bringen sie auf eine Palette
   (Slate + Markenfarbe aus dem Logo). "body " hebt die Spezifitaet ueber Tailwind,
   weil einige Seiten eigene Styles erst im Seiteninhalt laden. */
@font-face { font-family: 'Bricolage Grotesque'; src: url('/css/fonts/bricolage.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/css/fonts/instrument-sans.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/css/fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
    --font-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
    --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-tech: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
    --bg: #f4f5f7;
    --surface: #ffffff;
    --line: #e2e5ea;
    --line-strong: #cdd2d9;
    --ink: #17202b;
    --ink-2: #4a5563;
    --ink-3: #6d7784;
    --brand: #012b50;
    --brand-2: #0a3d68;
    --accent: #0f6390;
    --accent-soft: #e8f1f6;
    --ok: #157f5b;
    --ok-soft: #e6f4ee;
    --warn: #96600b;
    --warn-soft: #fbf2df;
    --bad: #b42318;
    --bad-soft: #fcefed;
    --radius: 10px;
    --sidebar: 248px;
    --topbar: 56px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 1px 2px rgba(1, 43, 80, 0.05), 0 8px 24px -16px rgba(1, 43, 80, 0.18);
}

html, body { background: var(--bg); }
body {
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
body .font-mono, body code, body kbd, .tech { font-family: var(--font-tech); font-size: .92em; letter-spacing: -.01em; }
body td, .tabular { font-variant-numeric: tabular-nums; }

/* App-Rahmen */
.app-sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 40;
    background: var(--brand); color: #fff; padding: 12px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 12px;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent;
}
.app-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.app-brand img { height: 52px; width: auto; }
.app-brand span { font-weight: 600; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; }
.svg-white { filter: brightness(0) invert(1); }
.app-nav-link {
    display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin-bottom: 2px;
    border-radius: 8px; color: rgba(255,255,255,.72); font-size: 14px; font-weight: 500;
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.app-nav-link i { width: 16px; text-align: center; font-size: 13px; opacity: .8; }
.app-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.app-nav-link:active { transform: scale(.98); }
.app-nav-link.is-active { background: #fff; color: var(--brand); }
.app-nav-link.is-active i { opacity: 1; }
.app-nav-link:focus-visible, .app-logout:focus-visible, .app-menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.app-frame { margin-left: var(--sidebar); min-height: 100dvh; display: flex; flex-direction: column; min-width: 0; }
.app-topbar {
    position: sticky; top: 0; z-index: 30; height: var(--topbar); flex: none;
    display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 0 24px;
    background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.app-menu-btn { display: none; margin-right: auto; width: 36px; height: 36px; border-radius: 8px; color: var(--ink); }
.app-menu-btn:hover { background: var(--bg); }
.app-search-btn { display: inline-flex; align-items: center; gap: 9px; height: 34px; width: min(340px, 40vw); margin-right: auto; padding: 0 8px 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink-3); font-size: 14px; transition: border-color .15s var(--ease); }
.app-search-btn:hover { border-color: var(--ink-3); }
.app-search-btn i { font-size: 12px; }
.app-search-btn kbd, .app-search-field kbd { margin-left: auto; padding: 1px 6px; border-radius: 5px; background: var(--bg); color: var(--ink-3); font-family: var(--font-body); font-size: 11.5px; }
.app-search { width: min(640px, calc(100vw - 24px)); max-width: none; margin: 10vh auto auto; padding: 0; border: 0; border-radius: 12px; background: var(--surface); box-shadow: 0 30px 70px -24px rgba(1,43,80,.5); }
.app-search::backdrop { background: rgba(1,43,80,.38); }
.app-search-field { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.app-search-field i { color: var(--ink-3); }
body .app-search-field input { flex: 1; min-width: 0; height: 54px; border: 0; background: transparent; font-size: 16px; box-shadow: none; outline: none; }
.app-search-results { max-height: 58vh; overflow-y: auto; padding: 6px; }
.app-search-results h3 { padding: 10px 10px 4px; font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.app-search-results a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; color: var(--ink); }
.app-search-results a i { width: 16px; text-align: center; font-size: 13px; color: var(--accent); }
.app-search-results a.is-active, .app-search-results a:hover { background: var(--accent-soft); }
.app-search-results a span { min-width: 0; }
.app-search-results strong, .app-search-results small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-search-results strong { font-size: 14px; font-weight: 600; }
.app-search-results small { font-size: 12.5px; color: var(--ink-3); }
.app-search-hint { padding: 22px 12px; text-align: center; font-size: 14px; color: var(--ink-3); }
.app-toast { position: fixed; right: 20px; bottom: 20px; z-index: 90; max-width: 340px; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 14px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.app-toast.is-visible { opacity: 1; transform: none; }
.app-toast.is-error { background: var(--bad); }
.app-user { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); min-width: 0; }
.app-user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.app-user-initial {
    width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600;
}
.app-logout {
    display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 8px;
    border: 1px solid var(--line-strong); color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap;
    transition: background .2s var(--ease), transform .2s var(--ease);
}
.app-logout:hover { background: var(--bg); }
.app-logout:active { transform: scale(.98); }
.app-main { flex: 1; min-width: 0; padding: 28px; animation: app-rise .4s var(--ease) backwards; }
.app-backdrop { display: none; }

@keyframes app-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes app-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes app-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (max-width: 1023px) {
    .app-frame { margin-left: 0; }
    .app-menu-btn { display: inline-grid; place-items: center; margin-right: 0; }
    .app-search-btn { width: auto; flex: 1; }
    .app-search-btn kbd { display: none; }
    .app-sidebar { transform: translateX(-100%); transition: transform .3s var(--ease); }
    .app-sidebar.is-open { transform: none; box-shadow: 0 0 40px rgba(1,43,80,.3); }
    .app-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(1,43,80,.4); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
    .app-backdrop.is-open { opacity: 1; pointer-events: auto; }
    .app-main { padding: 16px; }
    .app-topbar { padding: 0 16px; }
}
@media (max-width: 480px) {
    .app-user-name, .app-logout span { display: none; }
}

.app-sidebar nav { flex: 1; }

/* Typografie */
body h1, body h2, body h3 { font-family: var(--font-display); letter-spacing: -.015em; }
body .text-white { color: #fff; }
body .text-3xl, body .text-4xl { font-size: 1.875rem; line-height: 2.2rem; font-weight: 600; }
body .text-2xl { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
body .text-xl { font-size: 1.0625rem; line-height: 1.5rem; }
body .text-gray-900, body .text-gray-800 { color: var(--ink); }
body .text-gray-700, body .text-gray-600 { color: var(--ink-2); }
body .text-gray-500, body .text-gray-400 { color: var(--ink-3); }

/* Flaechen */
body .bg-gray-50 { background-color: var(--bg); }
body .bg-gray-100 { background-color: #eceef1; }
body .bg-gray-200 { background-color: var(--line); }
body .shadow, body .shadow-md, body .shadow-lg, body .shadow-xl, body .shadow-sm { box-shadow: var(--shadow); }
body .shadow-2xl { box-shadow: 0 24px 60px -24px rgba(1,43,80,.35); }
body .rounded-lg, body .rounded-xl, body .rounded-2xl, body .rounded-3xl { border-radius: var(--radius); }
body .border-gray-100, body .border-gray-200 { border-color: var(--line); }
body .border-gray-300 { border-color: var(--line-strong); }
body .divide-gray-200 > * + *, body .divide-gray-100 > * + * { border-color: var(--line); }
body .bg-gradient-to-r, body .bg-gradient-to-br, body .bg-gradient-to-b { background-image: none; }
body .gradient-bg { background: var(--bg); }
body .glass-effect { background: var(--surface); backdrop-filter: none; }

/* Eine Akzentfarbe statt vieler Blau-, Indigo- und Lilatoene */
body .bg-blue-400, body .bg-blue-500, body .bg-blue-600, body .bg-blue-700, body .bg-indigo-500, body .bg-indigo-600, body .bg-purple-500, body .bg-purple-600,
body .from-blue-500, body .from-blue-600, body .from-indigo-500, body .from-indigo-600 { background-color: var(--brand); }
body .hover\:bg-blue-600:hover, body .hover\:bg-blue-700:hover, body .hover\:bg-blue-800:hover, body .hover\:bg-indigo-700:hover, body .hover\:bg-purple-700:hover { background-color: var(--brand-2); }
body .bg-blue-50, body .bg-blue-100, body .bg-indigo-50, body .bg-indigo-100, body .bg-purple-50, body .bg-purple-100 { background-color: var(--accent-soft); }
body .hover\:bg-blue-50:hover, body .hover\:bg-blue-100:hover { background-color: var(--accent-soft); }
body .text-blue-500, body .text-blue-600, body .text-blue-700, body .text-blue-800, body .text-indigo-600, body .text-indigo-700, body .text-purple-600, body .text-purple-700 { color: var(--accent); }
body .hover\:text-blue-700:hover, body .hover\:text-blue-800:hover, body .hover\:text-blue-900:hover, body .hover\:text-indigo-900:hover { color: var(--brand); }
body .text-blue-100 { color: rgba(255,255,255,.75); }
body .border-blue-200, body .border-blue-300 { border-color: #c5dae6; }
body .border-blue-500, body .border-blue-600 { border-color: var(--accent); }

/* Statusfarben */
body .bg-green-500, body .bg-green-600 { background-color: var(--ok); }
body .hover\:bg-green-700:hover { background-color: #10684a; }
body .bg-green-50, body .bg-green-100 { background-color: var(--ok-soft); }
body .text-green-500, body .text-green-600, body .text-green-700, body .text-green-800 { color: var(--ok); }
body .bg-red-500, body .bg-red-600 { background-color: var(--bad); }
body .hover\:bg-red-600:hover, body .hover\:bg-red-700:hover { background-color: #912018; }
body .bg-red-50, body .bg-red-100 { background-color: var(--bad-soft); }
body .text-red-500, body .text-red-600, body .text-red-700, body .text-red-800 { color: var(--bad); }
body .bg-yellow-50, body .bg-yellow-100, body .bg-orange-50, body .bg-orange-100 { background-color: var(--warn-soft); }
body .text-yellow-500, body .text-yellow-600, body .text-yellow-700, body .text-yellow-800, body .text-orange-600, body .text-orange-700 { color: var(--warn); }

/* Formulare */
body input[type="text"], body input[type="email"], body input[type="password"], body input[type="number"],
body input[type="date"], body input[type="search"], body input[type="tel"], body input[type="url"], body select, body textarea {
    border-radius: 8px; font-size: 14px; color: var(--ink); background-color: var(--surface);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
body input:focus, body select:focus, body textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,99,144,.16);
}
body label { color: var(--ink-2); }
/* Felder ohne eigene Rahmenbreite waren unsichtbar */
body input.border-gray-300, body select.border-gray-300, body textarea.border-gray-300 { border-width: 1px; border-style: solid; }
body input.border-gray-300:not([class*="p-"]):not([class*="px-"]):not([class*="pl-"]):not([type="checkbox"]):not([type="radio"]),
body select.border-gray-300:not([class*="p-"]):not([class*="px-"]):not([class*="pl-"]),
body textarea.border-gray-300:not([class*="p-"]):not([class*="px-"]):not([class*="pl-"]) { padding: 7px 10px; }

/* Buttons */
body button, body a[class*="bg-"], body [role="button"] { transition: background-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease), border-color .15s var(--ease); }
body button:active, body a[class*="bg-"]:active { transform: scale(.98); }
body .hover\:scale-105:hover, body .hover-scale:hover { transform: none; }
body .hover\:-translate-y-1:hover, body .hover\:shadow-xl:hover, body .hover\:shadow-lg:hover { --tw-translate-y: 0; }

/* Tabellen */
body table thead th {
    background: #f8f9fb; color: var(--ink-3); font-size: 11px; font-weight: 600; letter-spacing: .05em;
    border-bottom: 1px solid var(--line);
}
body table tbody td { border-color: var(--line); }
body table tbody tr { transition: background-color .12s linear; }
body .table-container { scrollbar-color: var(--line-strong) transparent; }
body .table-container::-webkit-scrollbar-thumb { background-color: var(--line-strong); }

/* Dialoge ueber Sidebar und Kopfzeile */
body .fixed.inset-0 { z-index: 60; }
body .bg-gray-600.bg-opacity-50, body .bg-gray-500.bg-opacity-75, body .bg-black.bg-opacity-50 { background-color: rgba(1,43,80,.45); }

/* Lange Tabellen duerfen die Seite nicht breiter machen */
.app-main .flex-1 { min-width: 0; }
.app-main .sticky.top-8 { top: calc(var(--topbar) + 16px); }
body table th.px-6, body table td.px-6 { padding-left: 14px; padding-right: 14px; }
/* separate Rahmen, sonst verschwinden die Linien unter der fixierten Spalte */
body .overflow-x-auto > table, body .table-container table { border-collapse: separate; border-spacing: 0; }
body .overflow-x-auto > table tbody td, body .table-container table tbody td { border-bottom: 1px solid var(--line); }
body .overflow-x-auto > table tbody tr:last-child td, body .table-container table tbody tr:last-child td { border-bottom: 0; }
body .overflow-x-auto > table tbody td:last-child, body .table-container table tbody td:last-child { position: sticky; right: 0; background: var(--surface); box-shadow: -1px 0 0 var(--line); }
body .overflow-x-auto > table thead th:last-child, body .table-container table thead th:last-child { position: sticky; right: 0; box-shadow: -1px 0 0 var(--line); }
body .edv-col-action { width: 38px; min-width: 38px; padding: 0 !important; text-align: center; }
.edv-delete { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; color: var(--ink-3); font-size: 13px; transition: background .15s var(--ease), color .15s var(--ease); }
.edv-delete:hover { background: var(--bad-soft); color: var(--bad); }
body .table-container table th, body .table-container table td { padding-left: 8px; padding-right: 8px; }
body .table-container table td.edv-col-action, body .table-container table th.edv-col-action { padding: 0; }
body .table-container table thead th .fas, body .table-container table thead th .fa-solid { display: none; }
.app-main > .max-w-full, .app-main > .max-w-7xl { max-width: none; padding: 0; }
.app-main .gradient-bg { padding: 14px 18px; }
.app-main .glass-effect.p-6 { padding: 12px 18px; }
.app-main img, .app-main canvas { max-width: 100%; }
.app-main .overflow-x-auto { -webkit-overflow-scrolling: touch; }

/* Hinweisband */
.app-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 20px; border-radius: 8px; font-size: 14px; background: var(--warn-soft); color: var(--warn); }
.app-alert--bad { background: var(--bad-soft); color: var(--bad); }

/* Dashboard */
.dash-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; min-height: 340px; padding: 24px 28px; margin-bottom: 14px; border-radius: 14px; background: #c9d4df url('/img/hafen.jpg') 62% 58% / cover no-repeat; }
.dash-hero-text { position: relative; max-width: 620px; color: var(--brand); }
.dash-hero-text > p:first-child { font-size: 14px; color: rgba(1,43,80,.72); }
.dash-hero-text h1 { margin-top: 2px; color: var(--brand); font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1.02; font-weight: 700; letter-spacing: -.03em; }
.dash-weather {
    position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); width: min(760px, 100%);
    border-radius: 12px; background: rgba(255,255,255,.76); backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid rgba(255,255,255,.65); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 16px 32px -24px rgba(1,43,80,.5);
}
.dash-weather-main { padding: 18px 20px; min-width: 0; }
.dash-weather-now { display: flex; align-items: center; gap: 14px; }
.dash-weather-now > i { font-size: 30px; color: var(--accent); }
.dash-weather-now > strong { font-family: var(--font-display); font-size: 52px; line-height: 1; font-weight: 600; letter-spacing: -.04em; color: var(--ink); }
.dash-weather-now h2 { font-size: 16px; font-weight: 600; color: var(--ink); }
.dash-weather-now p { font-size: 13px; color: var(--ink-2); }
.dash-forecast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(1,43,80,.12); }
.dash-forecast li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.dash-forecast i { color: var(--accent); width: 15px; text-align: center; }
.dash-forecast b { font-weight: 600; color: var(--ink); }
.dash-forecast em { font-style: normal; color: var(--ink-3); }
.dash-weather-list { padding: 10px; border-left: 1px solid rgba(1,43,80,.12); min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.dash-weather-list button { display: grid; grid-template-columns: 1fr 18px 42px; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--ink); text-align: left; }
.dash-weather-list button:hover { background: rgba(255,255,255,.75); }
.dash-weather-list button:focus-visible { outline: 2px solid var(--accent); }
.dash-weather-list button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-weather-list button i { color: var(--accent); font-size: 13px; text-align: center; }
.dash-weather-list button b { font-weight: 600; text-align: right; }
.dash-weather-list small { padding: 6px 10px 0; font-size: 12px; color: var(--ink-3); }
.dash-weather-error { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; font-size: 14px; color: var(--ink-2); }
.dash-weather-error button { padding: 7px 12px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 500; }
.dash-modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.dash-mod { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); animation: app-rise .45s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
.dash-mod:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.dash-mod:active { transform: scale(.99); }
.dash-mod span { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.dash-mod i { color: var(--accent); font-size: 13px; width: 16px; text-align: center; }
.dash-mod b { font-family: var(--font-display); font-size: 26px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.dash-mod small { margin-left: 6px; font-family: var(--font-body); font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); }
.dash-work { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; }
.dash-panel { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.dash-panel > h2 { margin-bottom: 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.dash-panel .inv-empty { padding: 24px 12px; }
.dash-attention a { display: grid; grid-template-columns: 62px minmax(0, 1fr) 14px; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink); transition: background .15s var(--ease); }
.dash-attention a:hover { background: var(--bg); }
.dash-attention a > i { font-size: 12px; color: var(--ink-3); transition: transform .15s var(--ease); }
.dash-attention a:hover > i { transform: translateX(2px); }
.dash-attention b { padding: 2px 0; border-radius: 7px; text-align: center; font-family: var(--font-display); font-size: 17px; font-weight: 600; background: var(--bg); color: var(--ink-2); }
.dash-attention .is-bad b { background: var(--bad-soft); color: var(--bad); }
.dash-attention .is-warn b { background: var(--warn-soft); color: var(--warn); }
.dash-attention .is-info b { background: var(--accent-soft); color: var(--accent); }
.dash-attention strong, .dash-activity strong { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-attention small, .dash-activity small { display: block; font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-activity a { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink); }
.dash-activity a:hover { background: var(--bg); }
.dash-activity i { color: var(--ink-3); font-size: 12px; text-align: center; }
.dash-activity time { font-size: 12.5px; color: var(--ink-3); }
.dash-empty { padding: 32px 24px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-2); font-size: 14px; max-width: 65ch; }
.dash-empty strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.dash-skel { border-radius: 8px; background: linear-gradient(90deg, rgba(1,43,80,.07) 25%, rgba(1,43,80,.03) 50%, rgba(1,43,80,.07) 75%); background-size: 200% 100%; animation: app-shimmer 1.6s linear infinite; }
@media (max-width: 767px) {
    .dash-hero { padding: 18px; gap: 40px; min-height: 0; background-position: 74% 50%; }
    .dash-weather { grid-template-columns: 1fr; }
    .dash-weather-list { border-left: 0; border-top: 1px solid rgba(1,43,80,.12); }
    .dash-weather-now > strong { font-size: 44px; }
    .dash-modules { grid-template-columns: 1fr 1fr; }
    .dash-attention small, .dash-attention strong { white-space: normal; }
    .dash-work { grid-template-columns: 1fr; }
}

/* Login */
.login-shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--surface); }
.login-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 36px 40px; color: #fff; background: #2c3e58 url('/img/hafen.jpg') 62% 58% / cover no-repeat; }
.login-panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,27,50,.55) 0%, rgba(1,27,50,.18) 30%, rgba(1,27,50,.3) 55%, rgba(1,27,50,.82) 100%); pointer-events: none; }
.login-panel > * { position: relative; z-index: 1; }
.login-logo { height: 92px; width: auto; align-self: flex-start; margin-left: -6px; }
.login-claim { margin-top: auto; }
.login-claim h1 { color: #fff; font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.04; font-weight: 600; letter-spacing: -.03em; max-width: 15ch; }
.login-claim p { margin-top: 14px; color: rgba(255,255,255,.82); font-size: 16px; max-width: 42ch; line-height: 1.5; }
.login-panel small { margin-top: 24px; color: rgba(255,255,255,.62); font-size: 12px; }
.login-main { display: flex; align-items: center; justify-content: center; padding: 40px clamp(24px, 5vw, 72px); }
.login-form { width: 100%; max-width: 380px; animation: app-rise .5s var(--ease) backwards; }
.login-form h2 { color: var(--brand); font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.login-form .login-sub { margin-top: 10px; font-size: 15px; color: var(--ink-3); }
.login-field { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.login-field label { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.login-field input { height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); width: 100%; font-size: 15px; }
.login-password { position: relative; }
.login-password input { padding-right: 46px; }
.login-password button { position: absolute; top: 4px; right: 4px; width: 38px; height: 38px; border-radius: 6px; color: var(--ink-3); }
.login-password button:hover { background: var(--bg); color: var(--ink); }
.login-submit { width: 100%; height: 46px; margin-top: 26px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; }
.login-submit i { transition: transform .2s var(--ease); }
.login-submit:hover { background: var(--brand-2); }
.login-submit:hover i { transform: translateX(3px); }
.login-submit[disabled] { opacity: .7; cursor: progress; }
.login-error { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; padding: 10px 12px; border-radius: 8px; background: var(--bad-soft); color: var(--bad); font-size: 14px; }
.login-error i { margin-top: 3px; }
@media (max-width: 899px) {
    .login-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .login-panel { padding: 18px 16px; min-height: 180px; background-position: 70% 52%; }
    .login-logo { height: 64px; }
    .login-claim p, .login-panel small { display: none; }
    .login-claim h1 { font-size: 22px; max-width: 22ch; }
    .login-main { align-items: flex-start; padding: 28px 16px; }
    .login-form { max-width: none; }
    .login-form h2 { font-size: 44px; }
}

/* Gemeinsam: Inventar und Server */
.inv-name { font-weight: 600; color: var(--ink); }
.inv-sub { font-size: 13px; color: var(--ink-3); margin-top: 1px; }
.inv-line { font-size: 14px; color: var(--ink); }
.inv-line.is-eol { color: var(--warn); }
.inv-actions { display: flex; justify-content: flex-end; gap: 4px; }
.inv-actions button { width: 32px; height: 32px; border-radius: 7px; color: var(--ink-3); font-size: 13px; }
.inv-actions button:hover { background: var(--accent-soft); color: var(--accent); }
.inv-actions button.is-danger:hover { background: var(--bad-soft); color: var(--bad); }
.inv-empty { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 44px 16px; text-align: center; font-size: 14px; color: var(--ink-3); }
.inv-empty strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); }

/* Inventar */
.inv-head { margin-bottom: 18px; }
.inv-head p, .srv-head p { margin-top: 2px; font-size: 15px; color: var(--ink-3); }
.inv-stats { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(200px, 1.3fr) minmax(0, 3fr); margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.inv-stat { padding: 16px 20px; border-left: 1px solid var(--line); min-width: 0; }
.inv-stat:first-child { border-left: 0; }
.inv-stat > span { display: block; font-size: 13px; color: var(--ink-3); }
.inv-stat > strong { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.inv-stat > strong.inv-stat-small { font-size: 20px; line-height: 1.5; letter-spacing: -.01em; }
.inv-osbar { display: flex; gap: 2px; height: 8px; margin-top: 10px; border-radius: 4px; overflow: hidden; }
.inv-osbar i { flex-basis: 0; min-width: 3px; background: var(--accent); }
.inv-osbar i:nth-child(even) { background: #7fa9c2; }
.inv-osbar i.is-eol { background: #d39a33; }
.inv-stat--os ul { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.inv-stat--os li.is-eol { color: var(--warn); }
.inv-stat--os b { font-weight: 600; }
.inv-filter-note { display: flex; justify-content: space-between; gap: 12px; padding: 8px 16px; background: var(--warn-soft); color: var(--warn); font-size: 14px; }
.inv-filter-note a { font-weight: 500; text-decoration: underline; }
.inv-tr { cursor: pointer; }
.inv-tr:hover td { background: #f8f9fb; }
.inv-tr:hover .inv-name { color: var(--accent); }
.inv-page #systemTable thead i { display: none; }
@media (max-width: 767px) {
    .inv-stats { grid-template-columns: 1fr 1fr; }
    .inv-stat--os { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
}

/* Detail-Fenster Inventar */
.inv-drawer-wrap { position: fixed; inset: 0; z-index: 70; }
.inv-drawer-backdrop { position: absolute; inset: 0; background: rgba(1,43,80,.42); animation: inv-fade .2s linear backwards; }
.inv-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(620px, 100%); overflow-y: auto; background: var(--surface); box-shadow: -24px 0 60px -30px rgba(1,43,80,.55); animation: inv-slide .35s var(--ease) backwards; }
@keyframes inv-fade { from { opacity: 0; } }
@keyframes inv-slide { from { transform: translateX(48px); opacity: 0; } }
.inv-drawer-close { position: absolute; top: 18px; right: 18px; z-index: 1; width: 36px; height: 36px; border-radius: 8px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.12); }
.inv-drawer-close:hover { background: rgba(255,255,255,.22); color: #fff; }
.inv-drawer-head { padding: 28px 64px 24px 28px; background: var(--brand); color: #fff; }
.inv-drawer-head p { font-size: 14px; color: rgba(255,255,255,.72); }
.inv-drawer-head h2 { margin-top: 2px; color: #fff; font-size: 32px; line-height: 1.1; font-weight: 600; word-break: break-word; }
.inv-drawer-user { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.88); }
.inv-drawer-user i { font-size: 12px; opacity: .7; }
.inv-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.inv-facts div { padding: 14px 16px 14px 28px; border-left: 1px solid var(--line); min-width: 0; }
.inv-facts div:first-child { border-left: 0; }
.inv-facts span { display: block; font-size: 12.5px; color: var(--ink-3); }
.inv-facts strong { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.inv-section { padding: 22px 28px; border-bottom: 1px solid var(--line); }
.inv-section:last-child { border-bottom: 0; }
.inv-section h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 18px; font-weight: 600; color: var(--ink); }
.inv-section h4 { margin: 12px 0 6px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.inv-section h3 + h4 { margin-top: 0; }
.inv-count { padding: 1px 8px; border-radius: 99px; background: var(--bg); font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.inv-row-item { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 7px 0; font-size: 14px; }
.inv-row-item + .inv-row-item { border-top: 1px solid #f0f1f4; }
.inv-row-item dt { color: var(--ink-3); }
.inv-row-item dd { color: var(--ink); word-break: break-word; }
.inv-disk + .inv-disk { margin-top: 14px; }
.inv-disk-head { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.inv-disk-head strong { font-weight: 600; }
.inv-disk-head span { color: var(--ink-3); }
.inv-disk-head em { margin-left: auto; font-style: normal; font-size: 13px; }
.inv-disk-head em.is-ok { color: var(--ok); }
.inv-disk-head em.is-bad { color: var(--bad); }
.inv-meter { height: 8px; margin-top: 6px; border-radius: 4px; background: #eceef1; overflow: hidden; }
.inv-meter span { display: block; height: 100%; border-radius: 4px; background: var(--accent); transform-origin: left; animation: inv-meter .7s var(--ease) backwards; }
.inv-meter.is-warn span { background: #d39a33; }
.inv-meter.is-bad span { background: var(--bad); }
@keyframes inv-meter { from { transform: scaleX(0); } }
.inv-disk-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.inv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.inv-chips span { padding: 3px 8px; border-radius: 6px; background: var(--bg); color: var(--ink-2); word-break: break-all; }
.inv-updates li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; padding: 7px 0; font-size: 13.5px; align-items: baseline; }
.inv-updates li + li { border-top: 1px solid #f0f1f4; }
.inv-updates strong { font-weight: 500; color: var(--accent); }
.inv-updates span { color: var(--ink-2); }
.inv-updates time { color: var(--ink-3); font-size: 13px; }
.inv-empty-line { font-size: 14px; color: var(--ink-3); }
.inv-loading { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
@media (max-width: 479px) {
    .inv-drawer-head { padding: 22px 56px 20px 16px; }
    .inv-facts div { padding: 12px; }
    .inv-section { padding: 18px 16px; }
    .inv-updates li { grid-template-columns: 1fr auto; }
    .inv-updates span { grid-column: 1 / -1; grid-row: 2; }
}

/* Server */
.srv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.srv-actions { display: flex; gap: 8px; }
.srv-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; }
.srv-btn:hover { background: var(--bg); }
.srv-btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.srv-btn--primary:hover { background: var(--brand-2); }
.srv-upload-status { font-size: 14px; color: var(--ok); }
.srv-upload-status:not(:empty) { margin-bottom: 12px; }
.srv-overview { display: grid; grid-template-columns: 180px minmax(160px, 220px) minmax(0, 1fr); align-items: stretch; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.srv-donut { position: relative; align-self: center; padding: 18px; }
.srv-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.srv-donut-center strong { font-family: var(--font-display); font-size: 36px; line-height: 1; font-weight: 600; letter-spacing: -.03em; }
.srv-donut-center span { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.srv-kpis { display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); padding: 8px 0; }
.srv-kpis div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 20px; }
.srv-kpis div + div { border-top: 1px solid #f0f1f4; }
.srv-kpis dt { font-size: 14px; color: var(--ink-3); }
.srv-kpis dd { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.srv-kpis .is-bad dd { color: var(--bad); }
.srv-chart { border-left: 1px solid var(--line); padding: 16px 20px; min-width: 0; }
.srv-chart h2 { font-size: 15px; font-weight: 600; color: var(--ink); }
.srv-chart-box { position: relative; height: 150px; margin-top: 8px; }
.srv-chart-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font-size: 14px; color: var(--ink-3); }
.srv-chart-empty[hidden] { display: none; }
.srv-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.srv-search { position: relative; flex: 1 1 260px; }
.srv-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--ink-3); }
.srv-filters input, .srv-filters select { height: 40px; border: 1px solid var(--line-strong); padding: 0 12px; }
.srv-search input { width: 100%; padding-left: 36px; }
.srv-status { display: inline-flex; align-items: center; gap: 7px; padding: 2px 10px 2px 8px; border-radius: 99px; font-size: 13px; font-weight: 500; background: var(--bg); color: var(--ink-3); }
.srv-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.srv-status.is-checking i { animation: app-pulse 1.1s ease-in-out infinite; }
.srv-status.is-online { background: var(--ok-soft); color: var(--ok); }
.srv-status.is-online i { animation: app-pulse 2.4s ease-in-out infinite; }
.srv-status.is-offline { background: var(--bad-soft); color: var(--bad); }
.srv-status.is-warn { background: var(--warn-soft); color: var(--warn); }
.srv-ip { color: var(--ink); }
.srv-latency { color: var(--ink-2); }
.server-row { cursor: pointer; }
.server-row:hover td { background: #f8f9fb; }
.server-row:hover .inv-name { color: var(--accent); }
@media (max-width: 1023px) {
    .srv-overview { grid-template-columns: 150px minmax(0, 1fr); }
    .srv-chart { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
}

/* Tickets */
.tk-page { display: flex; flex-direction: column; min-height: calc(100dvh - var(--topbar) - 56px); }
.tk-page .srv-head { margin-bottom: 12px; }
.tk-tabs { display: flex; gap: 2px; margin-bottom: -1px; overflow-x: auto; }
.tk-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.tk-tabs button:hover { color: var(--ink); }
.tk-tabs button.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.tk-tabs b { padding: 0 7px; border-radius: 99px; background: #eceef1; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.tk-tabs .is-active b { background: var(--brand); color: #fff; }
.tk-board { flex: 1 0 auto; display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: calc(100dvh - var(--topbar) - 190px); min-height: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) var(--radius); overflow: hidden; }
.tk-sidebar { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.tk-tools { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.tk-tools .srv-search { flex: none; }
body .tk-tools input, body .tk-tools select { height: 36px; border: 1px solid var(--line-strong); padding: 0 10px; font-size: 13.5px; width: 100%; }
body .tk-tools .srv-search input { padding-left: 34px; }
.tk-tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tk-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-quick button { padding: 3px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: 12.5px; color: var(--ink-2); }
.tk-quick button:hover { border-color: var(--line-strong); }
.tk-quick button.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.tk-list { flex: 1; overflow-y: auto; }
.tk-list-empty { display: flex; flex-direction: column; gap: 2px; padding: 40px 20px; text-align: center; font-size: 14px; color: var(--ink-3); }
.tk-list-empty strong { color: var(--ink); font-weight: 600; }
.tk-row { position: relative; display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 11px 14px; border-bottom: 1px solid #f0f1f4; text-align: left; transition: background-color .12s linear; }
.tk-row:hover { background: #f8f9fb; }
.tk-row.is-selected { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--brand); }
.tk-row.is-high::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--bad); }
.tk-row.is-selected.is-high::before { background: var(--brand); }
.tk-row-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-3); }
.tk-row-from { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-row time { flex: none; font-size: 12.5px; }
.tk-row time.is-old { color: var(--warn); font-weight: 500; }
.tk-row-subject { font-size: 14px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-row.is-new .tk-row-subject { font-weight: 600; }
.tk-row-foot { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.tk-row-notes { font-size: 12px; color: var(--ink-3); }
.tk-pill { padding: 0 8px; border-radius: 99px; font-size: 12px; line-height: 19px; font-weight: 500; white-space: nowrap; }
.tk-pill--high { background: var(--bad-soft); color: var(--bad); }
.tk-status-new { background: var(--accent-soft); color: var(--accent); }
.tk-status-work { background: var(--warn-soft); color: var(--warn); }
.tk-status-wait { background: #eceef1; color: var(--ink-2); }
.tk-status-done { background: var(--ok-soft); color: var(--ok); }
.tk-owner { display: grid; place-items: center; width: 20px; height: 20px; margin-left: auto; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; }
.tk-owner.is-empty { background: transparent; border: 1px dashed var(--line-strong); }
.tk-detail { overflow-y: auto; min-width: 0; }
.tk-detail-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 100%; min-height: 300px; font-size: 14px; color: var(--ink-3); }
.tk-detail-empty strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); }
.tk-back { display: none; align-items: center; gap: 8px; padding: 12px 20px 0; font-size: 14px; color: var(--ink-3); }
.tk-detail-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 24px 12px; }
.tk-detail-title { flex: 1 1 280px; min-width: 0; }
.tk-detail-title p { font-size: 13px; color: var(--ink-3); }
.tk-detail-title h2 { margin-top: 1px; font-size: 24px; line-height: 1.2; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.tk-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-meta { padding: 0 24px 14px; font-size: 13.5px; }
.tk-meta div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 1px 0; }
.tk-meta dt { color: var(--ink-3); }
.tk-meta dd { color: var(--ink-2); overflow-wrap: anywhere; }
.tk-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 12px 24px; background: #f8f9fb; border-block: 1px solid var(--line); }
.tk-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-3); }
body .tk-field input, body .tk-field select, body .tk-field textarea { width: 100%; border: 1px solid var(--line-strong); padding: 7px 10px; }
.tk-section { padding: 18px 24px; border-bottom: 1px solid var(--line); }
.tk-section:last-child { border-bottom: 0; }
.tk-section h3 { margin-bottom: 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
.tk-mail { font-size: 14.5px; line-height: 1.55; color: var(--ink); overflow-x: auto; overflow-wrap: break-word; }
.tk-mail img { max-width: 100%; height: auto; }
.tk-mail a { color: var(--accent); text-decoration: underline; }
.tk-mail table { max-width: 100%; }
.tk-mail-plain { white-space: pre-wrap; }
.tk-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tk-files a { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 7px; background: var(--bg); font-size: 13px; color: var(--ink-2); }
.tk-files a:hover { background: var(--accent-soft); color: var(--accent); }
.tk-timeline { margin-bottom: 12px; }
.tk-timeline li { position: relative; padding: 0 0 12px 18px; font-size: 14px; }
.tk-timeline li::before { content: ''; position: absolute; left: 3px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.tk-timeline li::after { content: ''; position: absolute; left: 6px; top: 16px; bottom: -5px; width: 1px; background: var(--line); }
.tk-timeline li:last-child::after { display: none; }
.tk-timeline li.is-note::before { background: var(--accent); }
.tk-timeline .is-note p { padding: 8px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.tk-timeline .is-event p { color: var(--ink-2); font-size: 13.5px; }
.tk-timeline small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.tk-note-form { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
body .tk-note-form textarea { width: 100%; border: 1px solid var(--line-strong); padding: 9px 11px; resize: vertical; }
.tk-dialog { width: min(520px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: 12px; box-shadow: 0 30px 70px -24px rgba(1,43,80,.5); }
.tk-dialog::backdrop { background: rgba(1,43,80,.38); }
.tk-dialog form { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.tk-dialog header { display: flex; align-items: center; justify-content: space-between; }
.tk-dialog h2 { font-size: 22px; font-weight: 600; color: var(--ink); }
.tk-dialog header button { width: 32px; height: 32px; border-radius: 7px; color: var(--ink-3); }
.tk-dialog header button:hover { background: var(--bg); }
.tk-dialog footer { display: flex; justify-content: flex-end; }
.tk-form-error { min-height: 1em; font-size: 13.5px; color: var(--bad); }
@media (max-width: 1023px) {
    .tk-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .tk-board { display: block; height: auto; min-height: 0; border-radius: var(--radius); }
    .tk-sidebar { border-right: 0; }
    .tk-list { overflow: visible; }
    .tk-detail { display: none; }
    .tk-detail.is-open { display: block; position: fixed; inset: var(--topbar) 0 0 0; z-index: 25; background: var(--surface); }
    .tk-back { display: inline-flex; }
    .tk-detail-head, .tk-meta, .tk-fields, .tk-section { padding-left: 16px; padding-right: 16px; }
}

/* Geraetedetails */
.dd-page { max-width: 1040px; }
.dd-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14px; color: var(--ink-3); }
.dd-back:hover { color: var(--accent); }
.dd-back i { font-size: 12px; transition: transform .2s var(--ease); }
.dd-back:hover i { transform: translateX(-3px); }
.dd-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-bottom: 18px; }
.dd-icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 14px; background: var(--brand); color: #fff; font-size: 26px; }
.dd-title > p { font-size: 14px; color: var(--ink-3); }
.dd-title h1 { font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.1; font-weight: 600; color: var(--ink); }
.dd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dd-tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; background: #eceef1; color: var(--ink-2); font-size: 12.5px; }
.dd-tag--ok { background: var(--ok-soft); color: var(--ok); font-weight: 500; }
.dd-tag--ok i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: app-pulse 2.4s ease-in-out infinite; }
.dd-tag--bad { background: var(--bad-soft); color: var(--bad); font-weight: 500; }
.dd-edit { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .15s var(--ease), transform .15s var(--ease); }
.dd-edit:hover { background: var(--brand-2); }
.dd-edit:active { transform: scale(.98); }
.dd-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.dd-summary div { padding: 14px 18px; border-left: 1px solid var(--line); min-width: 0; }
.dd-summary div:first-child { border-left: 0; }
.dd-summary dt { font-size: 13px; color: var(--ink-3); }
.dd-summary dd { margin-top: 2px; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dd-tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.dd-tabs .nav-item { padding: 13px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 500; color: var(--ink-3); white-space: nowrap; cursor: pointer; transition: color .15s var(--ease), border-color .15s var(--ease); }
.dd-tabs .nav-item i { display: none; }
.dd-tabs .nav-item:hover { color: var(--ink); }
.dd-tabs .nav-item.active { color: var(--brand); border-bottom-color: var(--brand); }
.dd-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.dd-list > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid #f0f1f4; font-size: 15px; }
.dd-list dt { color: var(--ink-3); }
.dd-list dd { color: var(--ink); font-weight: 500; word-break: break-word; }
.dd-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dd-spec { display: flex; flex-direction: column; padding: 16px; border-radius: 10px; background: #f8f9fb; }
.dd-spec i { color: var(--accent); font-size: 15px; }
.dd-spec span { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.dd-spec strong { font-family: var(--font-display); font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.dd-spec small { font-family: var(--font-body); font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); }
.dd-block + .dd-block { margin-top: 22px; padding-top: 20px; border-top: 1px solid #f0f1f4; }
.dd-block--doc { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
@media (max-width: 767px) {
    .dd-head { grid-template-columns: auto minmax(0, 1fr); }
    .dd-edit { grid-column: 1 / -1; justify-content: center; }
    .dd-icon { width: 54px; height: 54px; font-size: 20px; }
    .dd-summary, .dd-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dd-summary div:nth-child(odd) { border-left: 0; }
    .dd-summary div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .dd-list { grid-template-columns: 1fr; }
    .dd-list > div { grid-template-columns: 120px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* Ticket-Chat (Team und Support-Portal) */
.tk-pill--chat { background: var(--warn-soft); color: var(--warn); }
.tk-chat { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.tk-chat-log { flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 140px; max-height: 380px; padding: 14px; overflow-y: auto; background: #f8f9fb; scrollbar-width: thin; }
.tk-chat-log:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tk-chat-empty { margin: auto; max-width: 36ch; padding: 16px; text-align: center; font-size: 14px; color: var(--ink-3); }
.tk-chat-day { align-self: center; padding: 1px 10px; border-radius: 99px; background: #eceef1; font-size: 12px; color: var(--ink-2); }
.tk-chat-row { display: flex; justify-content: flex-start; animation: app-rise .25s var(--ease) backwards; }
.tk-chat-row.is-own { justify-content: flex-end; }
.tk-chat-bubble { max-width: min(78%, 520px); padding: 7px 11px 8px; border: 1px solid var(--line); border-radius: 10px 10px 10px 3px; background: var(--surface); color: var(--ink); font-size: 14px; line-height: 1.45; }
.is-own .tk-chat-bubble { border-color: var(--brand); border-radius: 10px 10px 3px 10px; background: var(--brand); color: #fff; }
.tk-chat-bubble p { white-space: pre-wrap; overflow-wrap: anywhere; }
.tk-chat-bubble p.is-unreadable { font-style: italic; opacity: .75; }
.tk-chat-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 1px; font-size: 12px; color: var(--ink-3); }
.tk-chat-meta b { font-weight: 600; color: var(--ink-2); }
.is-own .tk-chat-meta, .is-own .tk-chat-meta b { color: rgba(255,255,255,.78); }
.tk-chat-notice { padding: 8px 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); background: var(--bg); }
.tk-chat-notice[hidden], .tk-chat-form[hidden] { display: none; }
.tk-chat-notice.is-error { background: var(--bad-soft); color: var(--bad); }
.tk-chat-notice a { font-weight: 600; text-decoration: underline; }
.tk-chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
body .tk-chat-form textarea { flex: 1; min-width: 0; min-height: 40px; max-height: 160px; padding: 9px 11px; border: 1px solid var(--line-strong); line-height: 1.4; resize: none; }
.tk-chat-send { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 14px; }
.tk-chat-send:hover { background: var(--brand-2); }
.tk-chat-send:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tk-chat-send[disabled] { opacity: .6; cursor: progress; }

/* Support-Portal */
.pt-page { max-width: 1120px; margin: 0 auto; }
.pt-page--form { max-width: 760px; }
.pt-hero { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; min-height: 196px; padding: 24px 28px; margin-bottom: 18px; border-radius: 14px; background: #c9d4df url('/img/hafen.jpg') 62% 58% / cover no-repeat; }
.pt-hero-text { position: relative; max-width: 620px; color: var(--brand); }
.pt-hero-text h1 { color: var(--brand); font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1.02; font-weight: 700; letter-spacing: -.03em; }
.pt-hero-text p { margin-top: 8px; font-size: 15px; color: rgba(1,43,80,.86); max-width: 48ch; }
.pt-hero-action { position: relative; }
.pt-alert-ok { background: var(--ok-soft); color: var(--ok); }
.pt-board { background: var(--surface); border: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) var(--radius); overflow: hidden; }
.pt-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
body .pt-tools input, body .pt-tools select { height: 38px; border: 1px solid var(--line-strong); padding: 0 10px; font-size: 14px; }
body .pt-tools .srv-search input { padding-left: 34px; }
.pt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 12px; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid #f0f1f4; color: var(--ink); transition: background-color .12s linear; }
.pt-row:last-child { border-bottom: 0; }
.pt-row:hover { background: #f8f9fb; }
.pt-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pt-row-main { min-width: 0; }
.pt-row-subject { display: block; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-row-meta { display: block; margin-top: 1px; font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-row-side { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.pt-row-arrow { font-size: 11px; color: var(--ink-3); transition: transform .15s var(--ease); }
.pt-row:hover .pt-row-arrow { transform: translateX(2px); }
.pt-pill-reply { background: var(--brand); color: #fff; }
.pt-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; color: var(--ink-3); }
.pt-back:hover { color: var(--ink); }
.pt-ticket-head { margin-bottom: 18px; }
.pt-ticket-head > p { font-size: 13.5px; color: var(--ink-3); }
.pt-ticket-head h1 { margin-top: 2px; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pt-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; max-width: 620px; }
.pt-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-3); }
.pt-steps li i { position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg); }
.pt-steps li:not(:last-child)::after { content: ''; position: absolute; top: 5px; left: 12px; right: 0; height: 2px; background: var(--line-strong); }
.pt-steps li.is-done i { border-color: var(--ok); background: var(--ok); }
.pt-steps li.is-done:not(:last-child)::after { background: var(--ok); }
.pt-steps li.is-done { color: var(--ink-2); }
.pt-steps li.is-current { color: var(--brand); font-weight: 600; }
.pt-steps li.is-current i { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px rgba(1,43,80,.14); }
.pt-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); align-items: start; gap: 14px; }
.pt-detail-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pt-card { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.pt-card[hidden] { display: none; }
.pt-card > h2 { margin-bottom: 10px; font-size: 17px; font-weight: 600; color: var(--ink); }
.pt-card h3 { margin: 18px 0 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.pt-card--ok { background: var(--ok-soft); border-color: #bfe0d1; }
.pt-card--ok > h2 { color: var(--ok); }
.pt-card--ok > h2 i { margin-right: 4px; font-size: 15px; }
.pt-plain { font-size: 14.5px; line-height: 1.55; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.pt-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pt-facts dt { font-size: 13px; color: var(--ink-3); }
.pt-facts dd { color: var(--ink); font-weight: 500; }
.pt-mail-frame { display: block; width: 100%; height: 240px; border: 0; }
.pt-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pt-files a { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--ink-2); transition: border-color .15s var(--ease); }
.pt-files a:hover { border-color: var(--line-strong); color: var(--accent); }
.pt-files a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-files a.is-image { flex-direction: column; align-items: stretch; padding: 0 0 6px; overflow: hidden; }
.pt-files a.is-image img { width: 100%; height: 84px; object-fit: cover; }
.pt-files a.is-image span { padding: 0 8px; }
.pt-chat-card { position: sticky; top: calc(var(--topbar) + 16px); padding: 0; overflow: hidden; }
.pt-chat-card > h2 { margin: 0; padding: 14px 16px; font-size: 16px; }
.pt-chat-card .tk-chat { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.pt-chat-card .tk-chat-log { min-height: 300px; max-height: calc(100dvh - var(--topbar) - 200px); }
.pt-form { display: flex; flex-direction: column; gap: 16px; padding: 22px; }
.pt-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pt-types legend { margin-bottom: 6px; padding: 0; font-size: 13px; color: var(--ink-3); }
body .pt-type { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }
.pt-type:hover { background: #f8f9fb; }
.pt-type input { position: absolute; opacity: 0; pointer-events: none; }
.pt-type-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 13px; }
.pt-type b { display: block; font-size: 14px; font-weight: 600; }
.pt-type small { display: block; margin-top: 1px; font-size: 13px; line-height: 1.35; color: var(--ink-3); }
.pt-type:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--accent-soft); }
.pt-type:has(input:checked) .pt-type-icon { background: var(--brand); color: #fff; }
.pt-type:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pt-form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body .pt-upload { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px dashed var(--line-strong); border-radius: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }
.pt-upload:hover { background: #f8f9fb; border-color: var(--ink-3); }
.pt-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pt-upload:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pt-upload i { color: var(--ink-3); }
.pt-upload span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.pt-form .tk-form-error:empty { display: none; }
.srv-btn[disabled] { opacity: .65; cursor: progress; }
@media (max-width: 1023px) {
    .pt-detail-grid { grid-template-columns: 1fr; }
    .pt-chat-card { position: static; }
    .pt-chat-card .tk-chat-log { max-height: 60dvh; }
}
@media (max-width: 767px) {
    .pt-hero { padding: 18px; min-height: 0; background-position: 74% 50%; }
    .pt-row { grid-template-columns: minmax(0, 1fr) 12px; gap: 6px 10px; }
    .pt-row-main { grid-column: 1; }
    .pt-row-side { grid-column: 1; grid-row: 2; justify-content: flex-start; }
    .pt-row-arrow { grid-column: 2; grid-row: 1 / span 2; }
    .pt-types, .pt-form-row { grid-template-columns: 1fr; }
    .pt-form { padding: 16px; }
    .tk-chat-bubble { max-width: 88%; }
}
@media (prefers-reduced-motion: reduce) {
    .tk-chat-row { animation: none; }
}
.pt-jump { display: none; }
@media (max-width: 1023px) {
    .pt-jump { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--accent); }
    .pt-chat-card { scroll-margin-top: calc(var(--topbar) + 12px); }
}

/* Ivanti-Abgleich */
.iv-page { max-width: 1120px; margin: 0 auto; }
.iv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.iv-stats span { display: block; font-size: 13px; color: var(--ink-3); }
.iv-stats strong { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.iv-access { margin-bottom: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: var(--radius); font-size: 14px; color: var(--ink-2); }
.iv-access[hidden], .app-alert[hidden] { display: none; }
.iv-access h2 { margin-bottom: 4px; font-size: 16px; font-weight: 600; color: var(--ink); }
.iv-access pre { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--bg); font-family: var(--font-tech); font-size: 13px; line-height: 1.5; overflow-x: auto; }
body .iv-table { width: 100%; font-size: 14px; }
body .iv-table thead th { padding: 8px 10px; text-align: left; }
body .iv-table td { padding: 8px 10px; border-bottom: 1px solid #f0f1f4; }
body .iv-table td:last-child, body .iv-table td:first-child { white-space: nowrap; }
@media (max-width: 767px) { .iv-stats { grid-template-columns: 1fr 1fr; } }

/* Ticket-Board: Mails, Archiv, aehnliche Tickets */
.tk-mail { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tk-mail:has(> .tk-mail-frame) { background: #f8f9fb; }
.tk-mail-frame { display: block; width: 100%; height: 120px; border: 0; }
.tk-section[hidden] { display: none; }
.tk-tools.is-archive .tk-tool-row, .tk-tools.is-archive .tk-quick { display: none; }
.tk-more { width: 100%; padding: 12px; font-size: 13.5px; font-weight: 500; color: var(--accent); }
.tk-more:hover { background: #f8f9fb; }
.tk-similar { display: flex; flex-direction: column; gap: 6px; }
.tk-similar button { display: block; width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; text-align: left; transition: border-color .15s var(--ease), background .15s var(--ease); }
.tk-similar button:hover { border-color: var(--line-strong); background: #f8f9fb; }
.tk-similar strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.tk-similar span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 1px; font-size: 13px; color: var(--ink-3); }
.tk-import { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.tk-import p { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.tk-import progress { width: 100%; height: 8px; accent-color: var(--brand); }
.tk-import footer { display: flex; justify-content: flex-end; }
.tk-import [data-close][disabled] { opacity: .5; cursor: progress; }

/* Infrastruktur */
.in-page { max-width: 1280px; margin: 0 auto; }
.in-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.in-stats strong { font-size: 26px; font-variant-numeric: tabular-nums; }
.in-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
body .in-table { width: 100%; font-size: 14px; }
body .in-table thead th { position: sticky; top: 0; padding: 9px 14px; text-align: left; white-space: nowrap; text-transform: none; letter-spacing: 0; font-size: 12.5px; }
body .in-table thead th.sortable:hover { color: var(--ink); }
body .in-table tbody td { padding: 9px 14px; white-space: nowrap; color: var(--ink-2); }
body .in-table tbody tr.row-entry { cursor: pointer; }
body .in-table tbody tr.row-entry:hover td { background: #f8f9fb; }
body .in-table tbody tr.row-entry:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.in-table tr.is-deleted .entry-name, .in-table tr.is-deleted .entry-logon { color: var(--ink-3); text-decoration: line-through; }
.in-name { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.in-name .entry-name { font-weight: 600; color: var(--ink); white-space: normal; }
.in-initial { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 600; }
body .in-table td.in-actions { width: 44px; padding: 4px 8px; text-align: right; }
.modal[style*="flex"] .in-dialog { animation: app-rise .2s var(--ease) backwards; }
.in-dialog { width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); border-radius: 12px; box-shadow: 0 30px 70px -24px rgba(1,43,80,.5); }
.in-dialog--wide { width: min(640px, 100%); }
.in-dialog header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.in-dialog header > div { flex: 1; min-width: 0; }
.in-dialog h2 { font-size: 19px; font-weight: 600; color: var(--ink); }
.in-dialog header p { font-size: 13px; color: var(--ink-3); }
.in-dialog header button { flex: none; width: 32px; height: 32px; border-radius: 7px; color: var(--ink-3); }
.in-dialog header button:hover { background: var(--bg); }
.in-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 20px; }
.in-form-full { grid-column: 1 / -1; }
.in-form--text { display: block; font-size: 14.5px; color: var(--ink-2); }
.in-form--text span { font-weight: 600; color: var(--ink); }
.in-dialog footer { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: #f8f9fb; }
.in-dialog footer > span { flex: 1; }
.srv-btn.in-danger { border-color: #e5b5b0; color: var(--bad); }
.srv-btn.in-danger:hover { background: var(--bad-soft); }
@media (max-width: 767px) { .in-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .in-stats strong { font-size: 22px; } .in-form { grid-template-columns: 1fr; } .in-dialog footer { flex-wrap: wrap; } }

/* Personenauswahl im Ticket-Dialog */
.tk-picker { position: relative; }
.tk-picker-list { position: absolute; z-index: 5; top: 100%; left: 0; right: 0; max-height: 232px; margin-top: 4px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 12px 28px -14px rgba(1,43,80,.4); }
.tk-picker-list[hidden] { display: none; }
.tk-picker-list li { display: block; padding: 7px 11px; cursor: pointer; }
.tk-picker-list li:hover, .tk-picker-list li.is-active { background: var(--accent-soft); }
.tk-picker-list strong { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
.tk-picker-list small { display: block; font-size: 12.5px; color: var(--ink-3); }
.tk-picker-list li.tk-picker-hint { font-size: 13.5px; color: var(--ink-3); cursor: default; background: none; }
.tk-dialog:has(.tk-picker-list:not([hidden])) form { padding-bottom: 150px; }

/* Kopfzeile: Neu und Glocke */
.app-quick { position: relative; }
.app-icon-btn { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); transition: background .2s var(--ease); }
.app-icon-btn:hover { background: var(--bg); }
.app-icon-btn b { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; line-height: 17px; font-weight: 600; text-align: center; }
.app-icon-btn b[hidden], .app-menu[hidden] { display: none; }
.app-icon-btn:focus-visible, .app-quick .app-logout:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.app-menu { position: absolute; z-index: 45; top: calc(100% + 6px); right: 0; width: 270px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 36px -18px rgba(1,43,80,.45); animation: app-rise .15s var(--ease) backwards; }
.app-menu--bell { width: 310px; }
.app-menu a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 7px; color: var(--ink); }
.app-menu a:hover { background: var(--accent-soft); }
.app-menu a > i { width: 16px; text-align: center; font-size: 13px; color: var(--accent); }
.app-menu a > span { flex: 1; min-width: 0; }
.app-menu strong { display: block; font-size: 14px; font-weight: 600; }
.app-menu small { display: block; font-size: 12.5px; color: var(--ink-3); }
.app-menu a > b { padding: 0 8px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 600; line-height: 20px; }
.app-menu a.is-empty > b { background: #eceef1; color: var(--ink-3); }
.app-menu a.is-empty strong { font-weight: 500; }
@media (max-width: 640px) { .app-quick .app-logout span { display: none; } .app-menu { position: fixed; top: calc(var(--topbar) + 4px); left: 12px; right: 12px; width: auto; } }

/* Anhänge im Ticket */
.tk-add-file { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 13.5px; font-weight: 500; color: var(--accent); cursor: pointer; }
.tk-add-file:hover { color: var(--brand); }
.tk-add-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tk-add-file:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Störungen */
.st-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.st-card { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--radius); }
.st-card--warn { border-left-color: var(--warn); }
.st-card--bad { border-left-color: var(--bad); }
.st-card--info { border-left-color: var(--accent); }
.st-card-main { flex: 1 1 320px; min-width: 0; }
.st-card h2 { margin: 2px 0 4px; font-size: 18px; font-weight: 600; color: var(--ink); }
.st-card-meta, .st-card-foot { font-size: 13px; color: var(--ink-3); }
.st-card-meta b { font-weight: 600; color: var(--ink-2); }
.st-card-foot { margin-top: 6px; }

/* Support-Portal: Störungsanzeige */
.pt-status-ok { display: flex; align-items: center; gap: 8px; max-width: 1120px; margin: 0 auto 12px; font-size: 14px; color: var(--ok); }
.pt-incidents { display: flex; flex-direction: column; gap: 8px; max-width: 1120px; margin: 0 auto 14px; }
.pt-incident { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 14px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid; }
.pt-incident > i { margin-top: 3px; font-size: 17px; }
.pt-incident--warn { background: var(--warn-soft); border-color: #eeddb3; }
.pt-incident--warn > i { color: var(--warn); }
.pt-incident--bad { background: var(--bad-soft); border-color: #f2cdc8; }
.pt-incident--bad > i { color: var(--bad); }
.pt-incident--info { background: var(--accent-soft); border-color: #c5dae6; }
.pt-incident--info > i { color: var(--accent); }
.pt-incident-main { flex: 1 1 280px; min-width: 0; }
.pt-incident h2 { margin: 1px 0 2px; font-size: 17px; font-weight: 600; color: var(--ink); }
.pt-incident-meta { font-size: 13px; color: var(--ink-2); }
.pt-incident-meta b { font-weight: 600; }
.pt-incident-hint { margin-top: 4px; font-size: 13.5px; color: var(--ink-2); }

/* Support-Portal: Geräte und Hilfe */
.pt-link { color: var(--accent); text-decoration: underline; }
.pt-devices { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.pt-device { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pt-device-main { flex: 1 1 200px; min-width: 0; }
.pt-device h2 { font-size: 16px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pt-device-main > p { font-size: 13.5px; color: var(--ink-3); }
.pt-device dl { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 13.5px; }
.pt-device dt { font-size: 12.5px; color: var(--ink-3); }
.pt-device dd { color: var(--ink); overflow-wrap: anywhere; }
.pt-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin-bottom: 14px; }
.pt-tip { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pt-tip .pt-type-icon { display: grid; margin-bottom: 10px; }
.pt-tip h2 { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.pt-tip p { margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.pt-faq { margin-bottom: 14px; }
.pt-faq details { border-top: 1px solid var(--line); }
.pt-faq summary { padding: 10px 2px; font-size: 14.5px; font-weight: 500; color: var(--ink); cursor: pointer; }
.pt-faq details p { padding: 0 2px 12px; }
.pt-help-ticket { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.pt-help-ticket ul { margin-top: 4px; padding-left: 18px; list-style: disc; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.pt-reopen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--bg); font-size: 13.5px; color: var(--ink-2); }
.pt-reopen[hidden] { display: none; }

/* Ticket-Ansicht: Kopf, Inhalt in Reitern, Eigenschaften rechts */
.tk-detail { container-type: inline-size; }
.tk-detail-head { align-items: flex-start; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.tk-detail-title p.tk-overline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 13px; color: var(--ink-3); }
.tk-detail-title h2 { font-size: 22px; }
.tk-body { display: grid; grid-template-columns: minmax(0, 1fr) 268px; align-items: start; }
.tk-content { min-width: 0; padding: 0 22px 22px; }
.tk-tabs-detail { display: flex; gap: 2px; margin: 0 -4px 14px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tk-tabs-detail button { display: inline-flex; align-items: center; gap: 7px; padding: 11px 10px 10px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.tk-tabs-detail button:hover { color: var(--ink); }
.tk-tabs-detail button.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.tk-tabs-detail button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tk-tabs-detail b { padding: 0 7px; border-radius: 99px; background: #eceef1; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.tk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.tk-pane[hidden] { display: none; }
.tk-pane .tk-chat-log { max-height: 460px; min-height: 260px; }
.tk-solution { margin-bottom: 14px; padding: 12px 16px; border: 1px solid #bfe0d1; border-radius: var(--radius); background: var(--ok-soft); }
.tk-solution strong { display: block; font-size: 13px; font-weight: 600; color: var(--ok); }
.tk-solution p { font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.tk-pane .tk-note-form { margin-bottom: 18px; }
.tk-rail { min-width: 0; padding: 14px 18px 22px; border-left: 1px solid var(--line); background: #fafbfc; align-self: stretch; }
.tk-rail-box { padding: 14px 0; border-bottom: 1px solid var(--line); }
.tk-rail-box:first-child { padding-top: 2px; }
.tk-rail-box:last-child { border-bottom: 0; }
.tk-rail-box[hidden] { display: none; }
.tk-rail-box > h3 { margin-bottom: 8px; font-family: var(--font-body); font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.tk-rail-box .tk-field { margin-bottom: 8px; font-size: 12.5px; }
.tk-rail-box .tk-field:last-child { margin-bottom: 0; }
body .tk-rail-box .tk-field input, body .tk-rail-box .tk-field select { padding: 5px 8px; font-size: 13.5px; }
.tk-person-name { font-size: 14px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.tk-person-sub { margin-top: 1px; font-size: 12.5px; line-height: 1.4; color: var(--ink-3); overflow-wrap: anywhere; }
.tk-link { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--accent); }
.tk-link:hover { color: var(--brand); text-decoration: underline; }
.tk-rail .tk-meta { padding: 0; font-size: 13px; }
.tk-rail .tk-meta div { grid-template-columns: 30px minmax(0, 1fr); }
.tk-rail .tk-files { flex-direction: column; margin: 0 0 8px; }
.tk-rail .tk-files a { max-width: 100%; overflow-wrap: anywhere; }
.tk-rail .tk-add-file { margin-top: 0; font-size: 13px; }
.tk-rail .tk-similar button { padding: 7px 9px; }
.tk-rail .tk-similar strong { font-size: 13px; }
.tk-rail .tk-similar span { font-size: 12.5px; }
.tk-chat-composer { border-top: 1px solid var(--line); }
.tk-chat-composer[hidden] { display: none; }
.tk-chat-composer .tk-chat-form { border-top: 0; }
.tk-chat-snippets { display: flex; flex-wrap: wrap; gap: 5px; padding: 9px 10px 0; }
.tk-chat-snippets button { padding: 2px 9px; border: 1px solid var(--line); border-radius: 99px; font-size: 12.5px; color: var(--ink-2); }
.tk-chat-snippets button:hover { border-color: var(--line-strong); background: var(--bg); }
.tk-dialog form .tk-field > span { line-height: 1.35; }
@container (max-width: 760px) {
    .tk-body { grid-template-columns: minmax(0, 1fr); }
    .tk-rail { border-left: 0; border-top: 1px solid var(--line); }
}

/* EDV-Ausstattung */
.dv-page { max-width: 1400px; margin: 0 auto; }
.dv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.dv-stats .dash-mod b { font-size: 24px; font-variant-numeric: tabular-nums; }
.dv-note { margin-bottom: 8px; font-size: 13.5px; color: var(--warn); }
.dv-count { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-3); }
.dv-device { display: flex; flex-direction: column; min-width: 0; }
.dv-device small { font-size: 12.5px; color: var(--ink-3); }
.dv-table .entry-name { font-weight: 600; color: var(--ink); white-space: normal; }
.dv-table a.entry-name:hover { color: var(--accent); text-decoration: underline; }
.dv-table a.entry-name:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.dv-table tr[hidden] { display: none; }
.dv-table .in-initial { font-size: 12px; }
.dv-table tbody td { font-size: 14px; }
body .dv-table thead th.sortable { cursor: pointer; user-select: none; }
body .dv-table thead th.sortable:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sort-indicator { font-size: 10px; }
.dv-table tr.is-deleted td { opacity: .62; }
.dv-table tr.is-deleted .entry-name { color: var(--ink-3); }
.dv-delete-text { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.dv-delete-text b { font-weight: 600; color: var(--ink); }
.tk-dialog footer.dv-delete-actions { gap: 8px; }
.dv-form-page { max-width: 1120px; margin: 0 auto; }
.dv-form-head { margin-bottom: 16px; }
.dv-form-head h1 { font-size: 1.875rem; line-height: 2.2rem; font-weight: 600; color: var(--ink); }
.dv-form-head p { margin-top: 2px; font-size: 15px; color: var(--ink-3); }
.dv-form-card > form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.dv-form-card h2 { font-size: 17px; font-weight: 600; margin-bottom: 14px; }
body .dv-form-card label { font-size: 13px; font-weight: 400; color: var(--ink-3); }
body .dv-form-card input[type="file"] { font-size: 13.5px; color: var(--ink-2); }
.dv-form-card input[type="file"]::file-selector-button { margin-right: 10px; padding: 4px 11px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.dv-form-card input[type="file"]::file-selector-button:hover { background: var(--bg); }
@media (max-width: 767px) {
    .dv-stats { grid-template-columns: 1fr 1fr; }
    .dv-hide-m { display: none; }
    body .dv-table tbody td { white-space: normal; }
}

/* EDV-Ausstattung: feste Spalten, damit lange Seriennummern die Tabelle nicht sprengen */
@media (min-width: 768px) {
    body .dv-table { table-layout: fixed; }
    body .dv-table th:nth-child(1) { width: 25%; }
    body .dv-table th:nth-child(2) { width: 17%; }
    body .dv-table th:nth-child(3) { width: 12%; }
    body .dv-table th:nth-child(4) { width: 13%; }
    body .dv-table th:nth-child(5) { width: 14%; }
    body .dv-table th:nth-child(6) { width: 9%; }
    body .dv-table th:nth-child(7) { width: 8%; }
    body .dv-table th:nth-child(8) { width: 46px; }
    body .dv-table thead th { padding-left: 10px; padding-right: 8px; overflow: hidden; text-overflow: ellipsis; }
    body .dv-table tbody td { padding-left: 10px; padding-right: 8px; overflow: hidden; text-overflow: ellipsis; }
    body .dv-table tbody td:first-child { white-space: normal; }
    body .dv-table tbody td.tech { font-size: 12.5px; }
    body .dv-table td.in-actions { width: 46px; padding: 4px; text-align: center; }
}
