/* =====================================================================
   SekuraCity Dev Hub – Design System
   Farbwelt aus dem Server-Logo: Tiefblau, Cyan-Glow, gebuerstetes Silber
   ===================================================================== */

:root {
  --bg: #040c13;
  --bg-2: #071722;
  --bg-3: #0a2130;

  --panel: rgba(10, 30, 44, 0.72);
  --panel-solid: #0b2130;
  --panel-hi: rgba(19, 48, 68, 0.85);

  --line: rgba(94, 173, 210, 0.16);
  --line-hi: rgba(94, 205, 245, 0.4);

  --cyan: #16d0ff;
  --cyan-bright: #5df6ff;
  --cyan-dim: rgba(22, 208, 255, 0.14);
  --blue: #0f6790;
  --blue-deep: #083f5e;

  --silver: #e6edf3;
  --silver-2: #aebac6;

  --text: #d5e4ef;
  --muted: #7c94a6;
  --muted-2: #5b7183;

  --ok: #4fd88f;
  --warn: #ffc247;
  --danger: #ff6b6b;
  --purple: #c48cff;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
  --glow: 0 0 22px rgba(22, 208, 255, 0.35);

  --sidebar-w: 250px;
  --topbar-h: 66px;

  --font: 'Segoe UI', system-ui, -apple-system, 'Inter', Roboto, sans-serif;
  --mono: 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Hintergrund: Hexagon-Raster + Cyan-Lichtkegel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 620px at 12% -8%, rgba(22, 208, 255, 0.16), transparent 62%),
    radial-gradient(760px 520px at 92% 8%, rgba(15, 103, 144, 0.24), transparent 60%),
    radial-gradient(1000px 760px at 50% 118%, rgba(8, 63, 94, 0.34), transparent 68%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.42;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cpath d='M28 0 L56 16 L56 48 L28 64 L0 48 L0 16 Z M28 64 L56 80 L56 112 M0 80 L28 64' fill='none' stroke='%231d6f95' stroke-width='1' stroke-opacity='.28'/%3E%3C/svg%3E");
  mask-image: radial-gradient(1200px 900px at 50% 20%, #000 20%, transparent 78%);
}

::selection { background: rgba(22, 208, 255, 0.28); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(94, 173, 210, 0.22);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(94, 205, 245, 0.4); background-clip: content-box; }

/* ============================================================ Typografie */

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: 0.2px; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
}

.silver-text {
  background: linear-gradient(120deg, #ffffff 0%, #cfd9e2 30%, #8b98a5 52%, #ffffff 78%, #b6c2ce 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ================================================================= Login */

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  overflow: auto;
}

.login-card {
  width: min(430px, 100%);
  padding: 40px 38px 34px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(16, 44, 63, 0.9), rgba(6, 20, 30, 0.94));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.login-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(150deg, rgba(93, 246, 255, 0.55), transparent 45%, rgba(22, 208, 255, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

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

.login-logo {
  width: 108px;
  height: 108px;
  margin: 0 auto 18px;
  display: block;
  filter: drop-shadow(0 0 26px rgba(22, 208, 255, 0.45));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.login-card h1 {
  text-align: center;
  font-size: 27px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.login-sub {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 28px;
  letter-spacing: 0.6px;
}

.login-hint {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.7;
}

.login-hint code {
  font-family: var(--mono);
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 1px 6px;
  border-radius: 5px;
}

/* ============================================================== Formulare */

.field { margin-bottom: 16px; }

.field label,
.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
  font-weight: 600;
}

input[type='text'],
input[type='password'],
input[type='date'],
input[type='number'],
input[type='search'],
input[type='color'],
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(4, 16, 24, 0.7);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

input::placeholder, textarea::placeholder { color: var(--muted-2); }

input:focus, select:focus, textarea:focus {
  border-color: var(--line-hi);
  box-shadow: 0 0 0 3px rgba(22, 208, 255, 0.12);
  background: rgba(6, 24, 35, 0.9);
}

textarea { resize: vertical; min-height: 92px; line-height: 1.6; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237c94a6' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}

select option { background: #0b2130; color: var(--text); }

input[type='color'] { padding: 4px; height: 40px; cursor: pointer; }

input[type='range'] {
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan) var(--val, 0%), rgba(94, 173, 210, 0.18) var(--val, 0%));
  outline: none;
}

input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #b9c6d2);
  border: 2px solid var(--cyan);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(22, 208, 255, 0.6);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.checkbox input { accent-color: var(--cyan); width: 16px; height: 16px; cursor: pointer; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ================================================================ Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(15, 44, 63, 0.6);
  color: var(--text);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.btn:hover { border-color: var(--line-hi); background: rgba(22, 62, 88, 0.75); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #0d8fc4 60%, #0a6b96 100%);
  border-color: rgba(93, 246, 255, 0.6);
  color: #02222f;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(13, 143, 196, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--cyan-bright) 0%, #14a4dc 60%, #0d7ba9 100%);
  box-shadow: 0 8px 26px rgba(22, 208, 255, 0.45);
}

.btn-ghost { background: transparent; }
.btn-danger { color: var(--danger); border-color: rgba(255, 107, 107, 0.3); }
.btn-danger:hover { background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.55); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 11px; font-size: 12px; }

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* ================================================================= Shell */

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 26, 38, 0.92), rgba(4, 14, 21, 0.92));
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  gap: 6px;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 20px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.brand img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 12px rgba(22, 208, 255, 0.5));
}

.brand-name {
  font-size: 15.5px;
  font-weight: 750;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-sub {
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}

.nav-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 14px 10px 6px;
  font-weight: 700;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 550;
  border: 1px solid transparent;
  transition: all 0.15s;
  position: relative;
}

.nav-item svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: 0.85; }

.nav-item:hover { background: rgba(22, 62, 88, 0.4); color: var(--text); }

.nav-item.active {
  background: linear-gradient(90deg, var(--cyan-dim), transparent 85%);
  border-color: rgba(22, 208, 255, 0.22);
  color: var(--cyan-bright);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 22px;
  border-radius: 0 3px 3px 0;
  background: var(--cyan);
  box-shadow: var(--glow);
}

.nav-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(94, 173, 210, 0.14);
  color: var(--muted);
}

.nav-item.active .nav-count { background: rgba(22, 208, 255, 0.2); color: var(--cyan-bright); }

.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }

.user-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.user-chip:hover { background: rgba(22, 62, 88, 0.45); }
.user-chip .meta { min-width: 0; }
.user-chip .name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .role { font-size: 10.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 1.2px; }

/* Hexagon-Avatar */
.hex-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 750;
  color: #02222f;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(160deg, var(--cyan-bright), var(--blue));
  letter-spacing: 0.4px;
}

.hex-avatar.sm { width: 25px; height: 25px; flex-basis: 25px; font-size: 10px; }
.hex-avatar.lg { width: 52px; height: 52px; flex-basis: 52px; font-size: 18px; }

/* ================================================================ Topbar */

.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }

.topbar {
  height: var(--topbar-h);
  flex: 0 0 var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 20, 30, 0.6);
  backdrop-filter: blur(12px);
}

.topbar h2 { font-size: 18px; letter-spacing: 0.4px; }
.topbar .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.search-box { position: relative; }
.search-box input { width: 230px; padding-left: 34px; }
.search-box svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--muted-2);
  pointer-events: none;
}

.content { flex: 1; overflow-y: auto; padding: 24px; }

.view { animation: fade 0.28s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ================================================================= Karten */

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(10px);
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.card-head h3 { font-size: 14.5px; letter-spacing: 0.4px; }
.card-head .btn { margin-left: auto; }

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-dash { grid-template-columns: 1.6fr 1fr; align-items: start; }

/* KPI */
.kpi {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
}

.kpi::after {
  content: '';
  position: absolute;
  right: -26px;
  top: -26px;
  width: 96px;
  height: 96px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(160deg, rgba(22, 208, 255, 0.16), transparent 70%);
}

.kpi .label {
  font-size: 10.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}

.kpi .value {
  font-size: 32px;
  font-weight: 750;
  line-height: 1.15;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

.kpi .foot { font-size: 12px; color: var(--muted-2); margin-top: 4px; }
.kpi.accent .value { color: var(--cyan-bright); text-shadow: 0 0 22px rgba(22, 208, 255, 0.4); }
.kpi.warn .value { color: var(--warn); }
.kpi.danger .value { color: var(--danger); }
.kpi.ok .value { color: var(--ok); }

/* Fortschritt */
.bar {
  height: 7px;
  border-radius: 99px;
  background: rgba(94, 173, 210, 0.14);
  overflow: hidden;
}

.bar > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--cyan) 70%, var(--cyan-bright));
  box-shadow: 0 0 12px rgba(22, 208, 255, 0.5);
  transition: width 0.45s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.bar.thin { height: 4px; }

.progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}

.progress-row .name { font-size: 13px; width: 132px; flex: 0 0 132px; color: var(--text); }
.progress-row .bar { flex: 1; }
.progress-row .num { font-size: 12px; color: var(--muted); width: 44px; text-align: right; font-variant-numeric: tabular-nums; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.badge-prio-low { color: var(--muted); background: rgba(124, 148, 166, 0.12); border-color: rgba(124, 148, 166, 0.25); }
.badge-prio-medium { color: #7ea6ff; background: rgba(126, 166, 255, 0.12); border-color: rgba(126, 166, 255, 0.3); }
.badge-prio-high { color: var(--warn); background: rgba(255, 194, 71, 0.12); border-color: rgba(255, 194, 71, 0.32); }
.badge-prio-critical { color: var(--danger); background: rgba(255, 107, 107, 0.14); border-color: rgba(255, 107, 107, 0.4); }

.badge-blocked { color: var(--danger); background: rgba(255, 107, 107, 0.14); border-color: rgba(255, 107, 107, 0.4); }

.tag {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(94, 173, 210, 0.12);
  color: var(--muted);
  border: 1px solid var(--line);
}

/* ================================================================= Board */

.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(258px, 1fr));
  gap: 14px;
  align-items: start;
  min-height: 100%;
}

.column {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 23, 34, 0.55);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--topbar-h) - 48px);
  transition: border-color 0.18s, background 0.18s;
}

.column.drag-over {
  border-color: var(--line-hi);
  background: rgba(13, 45, 65, 0.7);
  box-shadow: inset 0 0 30px rgba(22, 208, 255, 0.08);
}

.column-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
}

.column-head .hex-dot {
  width: 11px;
  height: 12px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--cyan);
  box-shadow: 0 0 10px currentColor;
}

.column-head .title { font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.column-head .count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(94, 173, 210, 0.13);
  padding: 2px 8px;
  border-radius: 99px;
}

.column-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  min-height: 90px;
}

.task {
  border: 1px solid var(--line);
  border-left: 3px solid var(--cat, var(--cyan));
  border-radius: 11px;
  background: linear-gradient(150deg, rgba(16, 44, 63, 0.72), rgba(7, 24, 35, 0.86));
  padding: 12px 13px;
  cursor: grab;
  transition: transform 0.14s, border-color 0.14s, box-shadow 0.14s;
}

.task:hover {
  transform: translateY(-2px);
  border-color: var(--line-hi);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.task.dragging { opacity: 0.45; cursor: grabbing; }
.task.is-blocked { border-left-color: var(--danger); }

.task-top { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; flex-wrap: wrap; }

.task-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cat, var(--cyan));
}

.task h4 { font-size: 13.8px; font-weight: 600; line-height: 1.4; margin-bottom: 9px; }

.task-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }

.task-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted-2);
}

.task-foot .spacer { margin-left: auto; }

.due { display: inline-flex; align-items: center; gap: 4px; }
.due.soon { color: var(--warn); }
.due.over { color: var(--danger); font-weight: 650; }

.empty-col {
  text-align: center;
  color: var(--muted-2);
  font-size: 12px;
  padding: 20px 8px;
  border: 1px dashed var(--line);
  border-radius: 10px;
}

/* ================================================================ Listen */

.list-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(9, 28, 41, 0.5);
  transition: border-color 0.15s, background 0.15s;
}

.list-item + .list-item { margin-top: 9px; }
.list-item:hover { border-color: var(--line-hi); background: rgba(14, 40, 58, 0.6); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-size: 14px; font-weight: 600; }
.list-item .sub { font-size: 12px; color: var(--muted); margin-top: 3px; }

.activity-item {
  display: flex;
  gap: 11px;
  padding: 10px 2px;
  font-size: 13px;
  border-bottom: 1px solid rgba(94, 173, 210, 0.08);
}

.activity-item:last-child { border-bottom: none; }
.activity-item .when { margin-left: auto; font-size: 11px; color: var(--muted-2); white-space: nowrap; }
.activity-item .txt { color: var(--muted); line-height: 1.45; }
.activity-item .txt strong { color: var(--text); font-weight: 600; }

/* Meilensteine */
.milestone { padding: 18px 20px; }
.milestone-top { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }

.version-chip {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan-bright);
  background: var(--cyan-dim);
  border: 1px solid rgba(22, 208, 255, 0.28);
  padding: 3px 9px;
  border-radius: 6px;
}

.ms-status {
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
}

.ms-status.planned { color: var(--muted); background: rgba(124, 148, 166, 0.14); }
.ms-status.active { color: var(--cyan-bright); background: rgba(22, 208, 255, 0.15); }
.ms-status.released { color: var(--ok); background: rgba(79, 216, 143, 0.15); }

/* Tabelle */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left;
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
  padding: 0 12px 11px;
  border-bottom: 1px solid var(--line);
}
td { padding: 12px; border-bottom: 1px solid rgba(94, 173, 210, 0.08); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(22, 62, 88, 0.22); }

/* =================================================== Modal & Drawer */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 13, 0.72);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 24px;
  animation: fadeIn 0.18s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: min(680px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 18px;
  border: 1px solid var(--line-hi);
  background: linear-gradient(160deg, rgba(14, 40, 58, 0.97), rgba(5, 17, 25, 0.99));
  box-shadow: var(--shadow);
  animation: rise 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.modal.wide { width: min(880px, 100%); }

.modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(8, 26, 38, 0.96);
  backdrop-filter: blur(8px);
  z-index: 1;
}

.modal-head h3 { font-size: 16px; }
.modal-head .btn-icon { margin-left: auto; }
.modal-body { padding: 22px 24px; }
.modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line);
}
.modal-foot .left { margin-right: auto; }

/* Checkliste im Detail */
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(4, 16, 24, 0.5);
  border: 1px solid var(--line);
  font-size: 13px;
}

.check-item + .check-item { margin-top: 7px; }
.check-item.done .txt { text-decoration: line-through; color: var(--muted-2); }
.check-item .txt { flex: 1; }
.check-item input[type='checkbox'] { accent-color: var(--cyan); width: 16px; height: 16px; cursor: pointer; }

.comment {
  display: flex;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(94, 173, 210, 0.08);
}
.comment:last-of-type { border-bottom: none; }
.comment .who { font-size: 12.5px; font-weight: 650; }
.comment .when { font-size: 11px; color: var(--muted-2); }
.comment .text { font-size: 13px; color: var(--muted); line-height: 1.55; margin-top: 4px; white-space: pre-wrap; }

/* Trennlinie mit Label */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  font-size: 10.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}

.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ================================================================ Toasts */

.toasts {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-hi);
  background: linear-gradient(140deg, rgba(14, 44, 63, 0.97), rgba(5, 18, 26, 0.97));
  box-shadow: var(--shadow);
  font-size: 13.5px;
  animation: slideIn 0.26s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.toast.err { border-color: rgba(255, 107, 107, 0.5); }
.toast.err .hex-dot { background: var(--danger); }
.toast .hex-dot {
  width: 10px;
  height: 11px;
  flex: 0 0 10px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--cyan);
  box-shadow: 0 0 10px currentColor;
}

@keyframes slideIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }

.form-error {
  color: var(--danger);
  font-size: 13px;
  margin-bottom: 14px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  display: none;
}

.form-error.show { display: block; animation: shake 0.4s; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.empty-state {
  text-align: center;
  padding: 58px 20px;
  color: var(--muted-2);
}

.empty-state svg { width: 46px; height: 46px; opacity: 0.4; margin-bottom: 14px; }
.empty-state p { margin: 0 0 4px; font-size: 14px; color: var(--muted); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filters select, .filters input { width: auto; min-width: 150px; }

.chip-toggle {
  padding: 7px 13px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}

.chip-toggle:hover { border-color: var(--line-hi); color: var(--text); }
.chip-toggle.on { background: var(--cyan-dim); border-color: rgba(22, 208, 255, 0.35); color: var(--cyan-bright); }

/* ============================================================== Responsiv */

@media (max-width: 1280px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-dash { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  :root { --sidebar-w: 68px; }
  .brand-text, .nav-item span:not(.nav-count), .user-chip .meta, .nav-label { display: none; }
  .nav-item { justify-content: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .search-box input { width: 150px; }
}

@media (max-width: 700px) {
  .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .board { grid-template-columns: 1fr; }
  .column { max-height: none; }
}

/* ======================================================= Screenshot-Upload */

.dropzone {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 16px 18px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(4, 16, 24, 0.45);
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, transform 0.16s;
  outline: none;
}

.dropzone:hover,
.dropzone:focus-visible {
  border-color: var(--line-hi);
  background: rgba(13, 45, 65, 0.55);
}

.dropzone.over {
  border-color: var(--cyan);
  border-style: solid;
  background: rgba(22, 208, 255, 0.1);
  transform: scale(1.01);
  box-shadow: inset 0 0 30px rgba(22, 208, 255, 0.12);
}

.dropzone.busy {
  pointer-events: none;
  opacity: 0.6;
  border-style: solid;
}

.dropzone svg { width: 26px; height: 26px; flex: 0 0 26px; color: var(--cyan); opacity: 0.9; }
.dropzone strong { display: block; font-size: 13.5px; font-weight: 650; margin-bottom: 3px; }
.dropzone span { font-size: 12px; color: var(--muted); }

.dropzone kbd {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: rgba(94, 173, 210, 0.12);
  color: var(--text);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.shot {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(4, 16, 24, 0.6);
  transition: border-color 0.15s, transform 0.15s;
}

.shot:hover { border-color: var(--line-hi); transform: translateY(-2px); }
.shot.pending { opacity: 0.75; border-style: dashed; }

.shot img {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
  cursor: zoom-in;
  background: #061119;
}

.shot figcaption {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  font-size: 11px;
  border-top: 1px solid var(--line);
}

.shot-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.shot-size { color: var(--muted-2); white-space: nowrap; }

.shot-del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 107, 107, 0.4);
  background: rgba(8, 20, 28, 0.85);
  color: var(--danger);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}

.shot:hover .shot-del { opacity: 1; }
.shot-del:hover { background: rgba(255, 107, 107, 0.2); }

/* Lightbox */
.lightbox { cursor: zoom-out; padding: 40px; }

.lightbox-inner {
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: default;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line-hi);
  box-shadow: var(--shadow);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(8, 26, 38, 0.95);
  font-size: 13px;
  cursor: default;
}

.lightbox-bar .muted { font-size: 12px; }
.lightbox-bar .btn { margin-left: auto; text-decoration: none; }

/* ============================================================ Gruppen */

.group-card { border-left: 3px solid var(--grp, var(--cyan)); }

.perm-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.perm-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  color: var(--grp, var(--cyan));
  background: color-mix(in srgb, var(--grp, #16d0ff) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--grp, #16d0ff) 32%, transparent);
}

.group-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 650;
  padding: 2px 8px;
  margin: 2px 4px 2px 0;
  border-radius: 99px;
  color: var(--grp, var(--cyan));
  background: color-mix(in srgb, var(--grp, #16d0ff) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--grp, #16d0ff) 30%, transparent);
}

.member-row { display: flex; flex-wrap: wrap; gap: 8px; }

.member {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 4px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(9, 28, 41, 0.6);
  font-size: 12.5px;
}

.perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.perm-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: rgba(4, 16, 24, 0.4);
}

.perm-section-title {
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 10px;
}

.perm-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.perm-row input { accent-color: var(--cyan); width: 16px; height: 16px; cursor: pointer; flex: 0 0 16px; }
.perm-row span { flex: 1; }
.perm-row code { font-size: 10.5px; color: var(--muted-2); }

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.member-pick {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(4, 16, 24, 0.45);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.member-pick:hover { border-color: var(--line-hi); background: rgba(14, 40, 58, 0.6); }
.member-pick input { accent-color: var(--cyan); width: 16px; height: 16px; cursor: pointer; flex: 0 0 16px; }
.member-pick .grow { flex: 1; min-width: 0; }

/* ============================================================== Tracker */

.tracker-dot {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan-bright);
}

.tracker-dot.warn { color: var(--warn); }
.tracker-dot.muted { color: var(--muted-2); }

.tracker-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 1px 6px;
  margin-left: 6px;
  border-radius: 99px;
  color: var(--warn);
  background: rgba(255, 194, 71, 0.13);
  border: 1px solid rgba(255, 194, 71, 0.32);
  vertical-align: middle;
}

.tracker-box {
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted-2);
  border-radius: var(--radius-sm);
  background: rgba(4, 16, 24, 0.45);
  padding: 12px 14px;
}

.tracker-box.ok { border-left-color: var(--cyan); }
.tracker-box.warn { border-left-color: var(--warn); background: rgba(255, 194, 71, 0.06); }

.tracker-line { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.tracker-line .grow { flex: 1; min-width: 180px; }
.tracker-line strong { display: block; font-size: 13.5px; font-weight: 650; margin-bottom: 2px; }
.tracker-line .muted { font-size: 12px; line-height: 1.5; }
.tracker-line a.btn { text-decoration: none; }

/* Rueckmeldung aus dem Tracker deutlich abheben */
.comment.from-tracker {
  border-left: 2px solid rgba(255, 194, 71, 0.45);
  padding-left: 11px;
  margin-left: -2px;
  background: linear-gradient(90deg, rgba(255, 194, 71, 0.05), transparent 60%);
  border-radius: 0 8px 8px 0;
}

/* Statuszeile in der Kopfleiste */
.tracker-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(9, 28, 41, 0.6);
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.tracker-state:hover { border-color: var(--line-hi); color: var(--text); }
.tracker-state .led { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); flex: 0 0 7px; }
.tracker-state.on .led { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.tracker-state.err .led { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.tracker-state.off .led { background: var(--muted-2); }

.tracker-dot.err { color: var(--danger); }
.tracker-dot.ok { color: var(--ok); }
.tracker-box.err { border-left-color: var(--danger); background: rgba(255, 107, 107, 0.06); }
.tracker-tag.err { color: var(--danger); background: rgba(255,107,107,.13); border-color: rgba(255,107,107,.35); }
.tracker-tag.ok { color: var(--ok); background: rgba(79,216,143,.13); border-color: rgba(79,216,143,.32); }
.comment.from-tracker.is-issue {
  border-left-color: rgba(255, 107, 107, 0.55);
  background: linear-gradient(90deg, rgba(255, 107, 107, 0.06), transparent 60%);
}

/* ================================================== Benachrichtigungen */

.bell { position: relative; overflow: visible; }

/* Das Glockensymbol fuellte den Knopf sonst komplett aus. */
.bell svg { width: 15px; height: 15px; flex: 0 0 15px; }

.bell-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--danger);
  color: #fff;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
  animation: pop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

.bell.has-unread svg { color: var(--cyan-bright); }

.notif-panel {
  position: absolute;
  top: calc(var(--topbar-h) - 8px);
  right: 24px;
  width: min(420px, calc(100vw - 32px));
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line-hi);
  background: linear-gradient(160deg, rgba(14, 40, 58, 0.98), rgba(5, 17, 25, 0.99));
  box-shadow: var(--shadow);
  z-index: 90;
  animation: rise 0.2s cubic-bezier(0.2, 0.8, 0.3, 1);
  overflow: hidden;
}

.notif-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.notif-head h4 { font-size: 14px; }
.notif-head .btn { margin-left: auto; }
.notif-list { overflow-y: auto; padding: 6px; }

.notif {
  display: flex;
  gap: 11px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.14s, border-color 0.14s;
}

.notif:hover { background: rgba(22, 62, 88, 0.4); border-color: var(--line); }
.notif.unread { background: rgba(22, 208, 255, 0.07); }
.notif.unread::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  flex: 0 0 6px;
  margin-top: 7px;
  box-shadow: 0 0 8px var(--cyan);
}
.notif:not(.unread)::before { content: ''; width: 6px; flex: 0 0 6px; }

.notif .body { flex: 1; min-width: 0; }
.notif .titel { font-size: 13.2px; font-weight: 600; line-height: 1.4; }
.notif .text { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.notif .meta { font-size: 11px; color: var(--muted-2); margin-top: 5px; display: flex; gap: 7px; align-items: center; }

.notif-art {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.notif-art.wichtig { color: var(--danger); background: rgba(255,107,107,.13); border-color: rgba(255,107,107,.35); }
.notif-art.info { color: var(--cyan-bright); background: var(--cyan-dim); border-color: rgba(22,208,255,.3); }

.notif-empty { text-align: center; padding: 34px 16px; color: var(--muted-2); font-size: 13px; }
.notif-foot { padding: 9px 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; }

/* ================================================ Bearbeiter mit Namen */

.assignee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 2px 8px 2px 6px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(22, 62, 88, 0.35);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assignee.leer { color: var(--muted-2); font-weight: 500; border-style: dashed; background: transparent; }

.assignee-dot {
  width: 7px;
  height: 8px;
  flex: 0 0 7px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.task-foot .assignee { max-width: 130px; }
td .assignee { max-width: 150px; }

/* ==================================================== Bereiche verwalten */

.link-mini {
  background: none;
  border: 0;
  padding: 0 0 0 8px;
  color: var(--cyan-bright);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-mini:hover { color: #fff; }

.cat-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.cat-row input[type='color'] {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 2px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
}

.cat-row input[type='text'] { flex: 1; min-width: 0; }

/* ============================================== Mehrere Bearbeiter */

.assignee-group { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.assignee.mehr { font-weight: 700; color: var(--muted); padding: 2px 7px; }

.assignee-pick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 6px;
  max-height: 168px;
  overflow-y: auto;
  padding: 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(6, 22, 33, 0.5);
}

.assignee-pick.gesperrt { opacity: 0.6; pointer-events: none; }

.assignee-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  transition: background 0.13s;
}

.assignee-opt:hover { background: rgba(22, 62, 88, 0.5); }
.assignee-opt input { flex: 0 0 auto; margin: 0; }
.assignee-opt span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================================================== Reihenfolge ziehen */

.ziehgriff {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1;
  cursor: grab;
  padding: 0 2px;
  user-select: none;
  letter-spacing: -1px;
}

.ziehgriff:active { cursor: grabbing; }
.sortierbar:hover .ziehgriff { color: var(--cyan-bright); }

.sortierbar.wird-gezogen {
  opacity: 0.45;
  outline: 1px dashed var(--cyan);
  outline-offset: 2px;
}

.cat-row.sortierbar { transition: transform 0.12s; }
.group-card.sortierbar .card-head { cursor: default; }

/* ============================================ Felder fuer das Testteam */

.feld-hinweis {
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(22, 62, 88, 0.4);
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.test-block {
  margin-bottom: 16px;
  padding: 13px 14px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 194, 71, 0.28);
  background: rgba(255, 194, 71, 0.05);
}

.test-block-kopf {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12.5px;
}

.test-block-kopf .muted { font-size: 11.5px; margin-left: auto; }
.test-block textarea { min-height: 62px; }

.test-block-warnung {
  margin-top: 11px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--warn);
  background: rgba(255, 194, 71, 0.1);
  color: var(--warn);
  font-size: 12px;
  line-height: 1.55;
}

.notif .bestaetigt { font-size: 11px; color: var(--ok); font-weight: 600; }

/* ================================================ Gruppen als Bearbeiter */

.assignee.ist-gruppe {
  border-style: dashed;
  border-color: rgba(22, 208, 255, 0.45);
  background: var(--cyan-dim);
}

.assignee-opt.ist-gruppe-opt {
  border: 1px dashed rgba(22, 208, 255, 0.28);
  background: rgba(22, 208, 255, 0.05);
}

.assignee-opt.ist-gruppe-opt:hover { background: rgba(22, 208, 255, 0.12); }
