/* ============================================================
   style.css
   ------------------------------------------------------------
   Helles, modernes Premium-Design (Light Mode).
   Alle Farben als CSS-Variablen (Design-Tokens) zentral oben.
   ============================================================ */

/* ---------- Design-Tokens ---------- */
:root {
  /* Flaechen */
  --bg: #F7F9FC;          /* Seiten-Hintergrund */
  --surface: #FFFFFF;     /* Karten / Flaechen */
  --surface-2: #F1F5F9;   /* sekundaere Flaeche */
  --border: #E6EAF0;      /* Rand */

  /* Text */
  --text: #0F172A;        /* Haupttext */
  --muted: #64748B;       /* gedaempfter Text */

  /* Akzent */
  --accent: #2563EB;      /* Akzent Blau */
  --accent-light: #3B82F6;/* Akzent hell */
  --accent-grad: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);

  /* Status */
  --s-hoch: #EF4444;      /* Hoch / ueberfaellig */
  --s-mittel: #F59E0B;    /* Mittel / heute */
  --s-niedrig: #0EA5E9;   /* Niedrig */
  --s-ok: #10B981;        /* Erledigt / OK */
  --s-warten: #8B5CF6;    /* Warten */

  /* Form */
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .12);
  --shadow-lg: 0 20px 50px -18px rgba(15, 23, 42, .22);
  --shadow-glow: 0 8px 24px -6px rgba(37, 99, 235, .45);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

/* ---------- Grund-Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }

.hidden { display: none !important; }

/* ---------- Dekorative Hintergrund-Blobs ---------- */
.bg-blobs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; }
.blob-1 { width: 480px; height: 480px; top: -160px; right: -120px;
  background: radial-gradient(circle, #3B82F6, transparent 70%); }
.blob-2 { width: 420px; height: 420px; bottom: -160px; left: -120px;
  background: radial-gradient(circle, #2563EB, transparent 70%); opacity: .25; }
.blob-3 { width: 360px; height: 360px; top: 40%; left: 55%;
  background: radial-gradient(circle, #60A5FA, transparent 70%); opacity: .18; }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--accent-grad);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.logo-glyph { width: 60%; height: 60%; }
.logo-text { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 11px 18px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary {
  background: var(--accent-grad); color: #fff; border: none;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 12px 30px -6px rgba(37, 99, 235, .55); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; transform: none; }
.btn-danger { color: var(--s-hoch); border-color: transparent; background: transparent; }
.btn-danger:hover { background: rgba(239, 68, 68, .08); box-shadow: none; transform: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }

/* ---------- Formularfelder ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--text);
  padding: 11px 13px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 78px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .18);
}
.link { color: var(--accent); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ============================================================
   AUTH-BILDSCHIRME (Login / Registrieren)
   ============================================================ */
.auth-screen {
  position: relative; z-index: 1;
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.auth-card {
  width: 100%; max-width: 940px;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg);
}

/* Linke Markenseite mit blauem Verlauf */
.auth-brand {
  background: var(--accent-grad); color: #fff;
  padding: 40px 36px; display: flex; flex-direction: column; gap: 26px;
  position: relative; overflow: hidden;
}
.auth-brand::after {
  content: ""; position: absolute; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255, 255, 255, .12);
  bottom: -120px; right: -90px; filter: blur(10px);
}
.auth-brand .logo-mark { background: rgba(255, 255, 255, .2); box-shadow: none; }
.auth-brand-mid h2 { font-size: 30px; font-weight: 800; }
.auth-brand-mid p { margin-top: 12px; opacity: .9; font-size: 15px; }
.auth-brand-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.auth-brand-list li { position: relative; padding-left: 26px; font-size: 14px; opacity: .95; }
.auth-brand-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: 11px;
}

/* Rechte Formularseite */
.auth-form { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h1 { font-size: 26px; }
.auth-sub { color: var(--muted); margin: 6px 0 26px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 20px; font-size: 13px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.auth-foot { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; }

/* ============================================================
   APP-GERUEST
   ============================================================ */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }

/* Seitenleiste */
.sidebar {
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 22px 16px; display: flex; flex-direction: column; gap: 26px;
  position: sticky; top: 0; height: 100vh;
}
.sidebar-logo { padding: 6px 8px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left; font-family: inherit; font-size: 14.5px; font-weight: 600;
  color: var(--muted); background: transparent; border: none; cursor: pointer;
  padding: 11px 13px; border-radius: 12px; transition: all .16s ease;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent-grad); color: #fff; box-shadow: var(--shadow-glow); }
.nav-ico { width: 20px; text-align: center; font-size: 15px; }
.sidebar-foot { margin-top: auto; }
.plan-badge {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border);
}
.plan-badge strong { font-size: 14px; }
.plan-badge span { font-size: 12px; color: var(--muted); }

/* Topbar */
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 30px; border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .7); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 5;
}
.topbar-left { display: flex; align-items: baseline; gap: 12px; }
.topbar-left h2 { font-size: 20px; }
.topbar-firma { font-size: 13px; color: var(--muted); }
.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px 12px 6px 6px; cursor: pointer; font-family: inherit; transition: box-shadow .16s;
}
.user-btn:hover { box-shadow: var(--shadow); }
.avatar {
  width: 32px; height: 32px; border-radius: 9px; background: var(--accent-grad);
  color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.user-name { font-size: 14px; font-weight: 600; }
.caret { color: var(--muted); font-size: 12px; }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 170px; z-index: 20;
}
.user-dropdown button {
  display: block; width: 100%; text-align: left; font-family: inherit; font-size: 14px;
  padding: 9px 12px; border: none; background: transparent; border-radius: 9px; cursor: pointer; color: var(--text);
}
.user-dropdown button:hover { background: var(--surface-2); }

/* Inhaltsbereich */
.content { padding: 28px 30px 60px; }

/* ---------- Seitenkopf in den Modulen ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; }
.page-head p { color: var(--muted); margin-top: 4px; font-size: 14px; }

/* ============================================================
   KARTEN / KPI
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 24px; }
.kpi {
  padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .16s, box-shadow .16s;
}
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; }
.kpi-value { font-size: 30px; font-weight: 800; margin-top: 12px; letter-spacing: -.02em; }
.kpi-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* Farbtoene der KPI-Icons */
.tint-blue   { background: rgba(37, 99, 235, .12);  color: var(--accent); }
.tint-red    { background: rgba(239, 68, 68, .12);  color: var(--s-hoch); }
.tint-amber  { background: rgba(245, 158, 11, .14); color: var(--s-mittel); }
.tint-green  { background: rgba(16, 185, 129, .14); color: var(--s-ok); }
.tint-purple { background: rgba(139, 92, 246, .14); color: var(--s-warten); }

/* Dashboard-Listen */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { padding: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-head h3 { font-size: 16px; }
.list { display: flex; flex-direction: column; }
.list-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--border);
}
.list-row:last-child { border-bottom: none; }
.list-main { min-width: 0; }
.list-title { font-weight: 600; font-size: 14.5px; }
.list-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ============================================================
   TOOLBAR / FILTER
   ============================================================ */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar .search {
  flex: 1; min-width: 200px; position: relative;
}
.toolbar .search input {
  width: 100%; padding: 10px 14px 10px 38px; border: 1px solid var(--border);
  border-radius: 12px; font-family: inherit; font-size: 14px; background: var(--surface);
}
.toolbar .search::before {
  content: "⌕"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 16px;
}
.toolbar select {
  font-family: inherit; font-size: 13.5px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer;
}
.toolbar .spacer { flex: 1; }

/* ============================================================
   TABELLEN
   ============================================================ */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface);
}
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .14s; cursor: pointer; }
tbody tr:hover { background: var(--surface-2); }
.cell-title { font-weight: 600; }
.cell-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.row-overdue { background: rgba(239, 68, 68, .05); }
.row-overdue:hover { background: rgba(239, 68, 68, .09); }
.row-soon { background: rgba(245, 158, 11, .06); }
.row-soon:hover { background: rgba(245, 158, 11, .11); }

/* ---------- Badges / Pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-hoch    { background: rgba(239, 68, 68, .12);  color: var(--s-hoch); }
.b-mittel  { background: rgba(245, 158, 11, .14); color: #B45309; }
.b-niedrig { background: rgba(14, 165, 233, .12); color: var(--s-niedrig); }
.b-ok      { background: rgba(16, 185, 129, .14); color: #047857; }
.b-warten  { background: rgba(139, 92, 246, .14); color: var(--s-warten); }
.b-offen   { background: var(--surface-2); color: var(--muted); }
.b-blue    { background: rgba(37, 99, 235, .12); color: var(--accent); }
.tag-overdue { color: var(--s-hoch); font-size: 12px; font-weight: 600; }
.tag-soon { color: #B45309; font-size: 12px; font-weight: 600; }

/* Aktionen in Tabellenzeile */
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }

/* Leerer Zustand */
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-ico { font-size: 34px; margin-bottom: 8px; opacity: .5; }

/* ============================================================
   CRM
   ============================================================ */
.tabs { display: inline-flex; gap: 4px; background: var(--surface-2); padding: 5px; border-radius: 13px; margin-bottom: 20px; }
.tab {
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
  border: none; background: transparent; padding: 9px 18px; border-radius: 10px; cursor: pointer; transition: all .16s;
}
.tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* Kanban-Brett */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.kanban-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; min-height: 200px; }
.kanban-col.drag-over { outline: 2px dashed var(--accent-light); outline-offset: -4px; background: rgba(59,130,246,.06); }
.kanban-col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 0 4px; }
.kanban-col-head h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.kanban-count { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 1px 9px; }
.kanban-col-sum { font-size: 11.5px; color: var(--muted); margin-bottom: 10px; padding: 0 4px; }
.kanban-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px; margin-bottom: 10px; box-shadow: var(--shadow); cursor: grab; transition: transform .14s, box-shadow .14s;
  border-left: 3px solid var(--accent-light);
}
.kanban-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kanban-card.dragging { opacity: .5; }
.kanban-card .kc-title { font-weight: 600; font-size: 14px; }
.kanban-card .kc-contact { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.kanban-card .kc-value { font-size: 13px; font-weight: 700; color: var(--accent); margin-top: 8px; }
.col-accent-gewonnen .kanban-card { border-left-color: var(--s-ok); }
.col-accent-verloren .kanban-card { border-left-color: var(--s-hoch); }
.col-accent-verhandlung .kanban-card { border-left-color: var(--s-mittel); }

/* ============================================================
   EINSTELLUNGEN
   ============================================================ */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.member-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.member-row:last-child { border-bottom: none; }
.member-row .avatar { width: 38px; height: 38px; border-radius: 11px; font-size: 13px; }
.member-info { min-width: 0; }
.member-info .m-name { font-weight: 600; font-size: 14px; }
.member-info .m-mail { font-size: 12.5px; color: var(--muted); }
.plan-box { padding: 22px; }
.plan-box .price { font-size: 32px; font-weight: 800; }
.plan-box .price span { font-size: 15px; color: var(--muted); font-weight: 600; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(15, 23, 42, .45); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 24px;
  animation: fadeIn .18s ease;
}
.modal {
  width: 100%; max-width: 620px; max-height: 90vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg);
  animation: popIn .2s ease;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 18px; }
.modal-close { width: 34px; height: 34px; border-radius: 10px; border: none; background: var(--surface-2); color: var(--muted); font-size: 15px; cursor: pointer; transition: all .15s; }
.modal-close:hover { background: rgba(239, 68, 68, .1); color: var(--s-hoch); }
.modal-body { padding: 22px 24px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 24px; border-top: 1px solid var(--border); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- Positions-Editor (Angebote) ---------- */
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 6px 0 8px; }
.pos-head, .pos-row {
  display: grid; grid-template-columns: 1fr 84px 110px 110px 34px; gap: 8px; align-items: center;
}
.pos-head { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.pos-head span:nth-child(n+2) { text-align: right; }
.pos-row { margin-bottom: 8px; }
.pos-row input {
  width: 100%; font-family: inherit; font-size: 13.5px; padding: 9px 10px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.pos-row input:focus { outline: none; border-color: var(--accent-light); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.pos-menge, .pos-preis { text-align: right; }
.pos-summe { text-align: right; font-size: 13.5px; font-weight: 600; }
.pos-del {
  width: 30px; height: 30px; border-radius: 8px; border: none; background: var(--surface-2);
  color: var(--muted); cursor: pointer; font-size: 13px; transition: all .15s;
}
.pos-del:hover { background: rgba(239,68,68,.1); color: var(--s-hoch); }
.pos-totals { margin: 14px 0 4px; margin-left: auto; width: 260px; }
.pt-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.pt-row span { color: var(--muted); }
.pt-brutto { border-top: 2px solid var(--text); margin-top: 6px; padding-top: 10px; font-size: 16px; }
.pt-brutto span { color: var(--text); font-weight: 700; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Kontakt-Detail + Kommunikationshistorie ---------- */
.muted-text { color: var(--muted); }
.kd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.kd-sub { font-size: 14px; color: var(--muted); }
.kd-info { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; font-size: 13.5px; color: var(--text); }
.kd-info span { display: inline-flex; align-items: center; gap: 6px; }

.quick-add { display: grid; grid-template-columns: 120px 150px 1fr auto; gap: 8px; align-items: center;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px; margin-bottom: 18px; }
.quick-add select, .quick-add input {
  font-family: inherit; font-size: 13.5px; padding: 9px 10px; border: 1px solid var(--border);
  border-radius: 9px; background: var(--surface); width: 100%;
}
.quick-add select:focus, .quick-add input:focus { outline: none; border-color: var(--accent-light); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }

.vl-count { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 12px; }
.verlauf { position: relative; }
/* senkrechte Linie des Zeitstrahls */
.verlauf::before { content: ""; position: absolute; left: 17px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.vl-item { display: flex; gap: 14px; align-items: flex-start; padding: 4px 0 16px; position: relative; }
.vl-item:last-child { padding-bottom: 2px; }
.vl-ico { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  font-size: 16px; background: var(--surface-2); position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--surface); }
.vl-main { flex: 1; min-width: 0; }
.vl-top { display: flex; align-items: center; gap: 10px; }
.vl-typ { font-weight: 700; font-size: 14px; }
.vl-datum { font-size: 12.5px; color: var(--muted); }
.vl-text { font-size: 14px; margin-top: 3px; }
.vl-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.vl-del { width: 28px; height: 28px; border-radius: 8px; border: none; background: transparent; color: var(--muted);
  cursor: pointer; font-size: 12px; transition: all .15s; flex: 0 0 auto; }
.vl-del:hover { background: rgba(239,68,68,.1); color: var(--s-hoch); }
.vl-empty { text-align: center; color: var(--muted); padding: 30px 16px; font-size: 14px; }

@media (max-width: 560px) {
  .quick-add { grid-template-columns: 1fr 1fr; }
  .quick-add input#ix-text, .quick-add button { grid-column: 1 / -1; }
}

/* ============================================================
   RESPONSIVE (Desktop und Tablet)
   ============================================================ */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kanban { grid-template-columns: repeat(3, minmax(190px, 1fr)); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 76px 1fr; }
  .sidebar { padding: 18px 10px; }
  .logo-text, .sidebar-foot, .nav-item span:not(.nav-ico) { display: none; }
  .nav-item { justify-content: center; padding: 12px; }
  .sidebar-logo { justify-content: center; }
  .dash-grid, .settings-grid { grid-template-columns: 1fr; }
  .auth-card { grid-template-columns: 1fr; max-width: 460px; }
  .auth-brand { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .content { padding: 20px 16px 50px; }
  .topbar { padding: 14px 16px; }
  .user-name { display: none; }
}
