/* === CSS extrahiert aus index.html (extrahiert 2026-04-26) === */
  @import url('/shared/fonts/inter.css');
  * { margin: 0; padding: 0; box-sizing: border-box; }

  :root {
    --bg: linear-gradient(145deg, #eef2f7 0%, #e4ecf4 25%, #dfe8f0 50%, #e8eef5 75%, #f0f4f8 100%);
    --nav-bg: rgba(255,255,255,0.55);
    --nav-border: rgba(255,255,255,0.5);
    --card-bg: rgba(255,255,255,0.45);
    --card-border: rgba(255,255,255,0.6);
    --card-hover: rgba(255,255,255,0.65);
    --text-primary: #1c1c1e;
    --text-secondary: #636366;
    --text-tertiary: #8e8e93;
    --border-color: rgba(0,0,0,0.08);
    --input-bg: rgba(0,0,0,0.03);
    --overlay-subtle: rgba(0,0,0,0.02);
    --overlay-light: rgba(0,0,0,0.04);
    --overlay-medium: rgba(0,0,0,0.06);
    --shadow: 0 2px 16px rgba(0,0,0,0.06);
  }

  [data-theme="dark"] {
    --bg: #0f1117;
    --nav-bg: rgba(15,17,23,0.9);
    --nav-border: rgba(255,255,255,0.08);
    --card-bg: rgba(255,255,255,0.04);
    --card-border: rgba(255,255,255,0.08);
    --card-hover: rgba(255,255,255,0.08);
    --text-primary: #f5f5f7;
    --text-secondary: #ccc;
    --text-tertiary: #888;
    --border-color: rgba(255,255,255,0.06);
    --input-bg: rgba(255,255,255,0.04);
    --overlay-subtle: rgba(255,255,255,0.03);
    --overlay-light: rgba(255,255,255,0.04);
    --overlay-medium: rgba(255,255,255,0.06);
    --shadow: 0 2px 16px rgba(0,0,0,0.2);
  }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
  }

  /* NAV */
  nav {
    position: sticky; top: 0; z-index: 200;
    background: var(--nav-bg);
    backdrop-filter: blur(32px) saturate(160%);
    border-bottom: 1px solid var(--nav-border);
    padding: 0 20px; height: 52px;
    display: flex; align-items: center; gap: 10px;
    overflow: hidden;
  }
  .nav-logo { height: 24px; width: auto; filter: brightness(2.2) contrast(0.85); flex-shrink: 0; }
  .nav-brand { font-size: 15px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.3px; }
  .nav-sep { width: 1px; height: 16px; background: rgba(255,255,255,0.12); margin: 0 2px; }
  .nav-title { font-size: 13px; color: #4fc3f7; font-weight: 500; flex: 1; }
  .nav-link {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 12px; border-radius: 8px;
    font-size: 13px; font-weight: 500;
    color: var(--text-secondary); text-decoration: none;
    transition: all 0.15s; white-space: nowrap;
  }
  .nav-link:hover { background: var(--card-hover); color: var(--text-primary); }
  .nav-back {
    display: flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 8px;
    font-size: 13px; font-weight: 500; color: var(--text-secondary); text-decoration: none;
    border: 1px solid var(--card-border); background: var(--card-bg);
    transition: all 0.15s; white-space: nowrap; margin-left: auto;
  }
  .nav-back:hover { background: var(--card-hover); color: var(--text-primary); }

  /* MAIN */
  .main { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }

  /* GESAMT-HEADER */
  .header { margin-bottom: 28px; }
  .header h1 { font-size: 22px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.4px; margin-bottom: 16px; }

  .stats-row {
    display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  }
  .stat-card {
    padding: 14px 20px; border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    text-align: center; min-width: 100px;
    cursor: pointer; transition: all 0.2s;
    user-select: none;
  }
  .stat-card:hover { background: var(--card-hover); transform: translateY(-1px); }
  .stat-card.active { border-width: 2px; transform: translateY(-2px); }
  .stat-card.active.total { border-color: rgba(79,195,247,0.5); background: rgba(79,195,247,0.1); }
  .stat-card.active.green { border-color: rgba(76,175,80,0.5); background: rgba(76,175,80,0.1); }
  .stat-card.active.yellow { border-color: rgba(255,152,0,0.5); background: rgba(255,152,0,0.1); }
  .stat-card.active.red { border-color: rgba(244,67,54,0.5); background: rgba(244,67,54,0.1); }
  .stat-card.active.tasks-filter { border-color: rgba(255,152,0,0.5); background: rgba(255,152,0,0.1); }
  .stat-card .num { font-size: 28px; font-weight: 700; line-height: 1.2; }
  .stat-card .label { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; font-weight: 500; }
  .stat-card.green .num { color: #4caf50; }
  .stat-card.yellow .num { color: #ff9800; }
  .stat-card.red .num { color: #f44336; }
  .stat-card.total .num { color: #4fc3f7; }

  /* Fortschrittsbalken */
  .progress-wrap { flex: 1; min-width: 200px; }
  .progress-label { font-size: 12px; color: var(--text-tertiary); margin-bottom: 6px; display: flex; justify-content: space-between; }
  .progress-bar {
    height: 20px; border-radius: 10px;
    background: var(--overlay-medium);
    overflow: hidden; display: flex;
  }
  .progress-bar .seg { height: 100%; transition: width 0.6s ease; }
  .seg-green { background: #4caf50; }
  .seg-yellow { background: #ff9800; }
  .seg-red { background: rgba(244,67,54,0.3); }
  .progress-pct { font-size: 22px; font-weight: 700; color: #4fc3f7; min-width: 60px; text-align: right; }

  /* ADD-CUSTOM Button */
  .add-custom-btn {
    padding: 10px 20px; border-radius: 10px;
    border: 1px dashed rgba(79,195,247,0.3);
    background: rgba(79,195,247,0.05);
    color: #4fc3f7; font-size: 13px; font-weight: 500;
    cursor: pointer; transition: all 0.15s;
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 12px;
  }
  .add-custom-btn:hover { background: rgba(79,195,247,0.12); border-color: #4fc3f7; }

  /* KAPITEL-KARTEN */
  .chapters { display: flex; flex-direction: column; gap: 12px; }

  .chapter {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s;
  }
  .chapter:hover { border-color: rgba(79,195,247,0.3); }

  .chapter-header {
    padding: 16px 20px;
    display: flex; align-items: center; gap: 14px;
    cursor: pointer; user-select: none;
  }
  .chapter-header:hover { background: var(--overlay-subtle); }

  .ch-num {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; color: #fff; flex-shrink: 0;
  }
  .ch-1 { background: linear-gradient(135deg, #42a5f5, #1976d2); }
  .ch-2 { background: linear-gradient(135deg, #66bb6a, #388e3c); }
  .ch-3 { background: linear-gradient(135deg, #ffa726, #f57c00); }
  .ch-4 { background: linear-gradient(135deg, #ef5350, #c62828); }
  .ch-5 { background: linear-gradient(135deg, #ab47bc, #7b1fa2); }

  .ch-info { flex: 1; min-width: 0; }
  .ch-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
  .ch-sub { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }

  .ch-badges { display: flex; gap: 6px; flex-shrink: 0; }
  .ch-badge {
    padding: 3px 10px; border-radius: 6px;
    font-size: 12px; font-weight: 600;
  }
  .ch-badge.g { background: rgba(76,175,80,0.15); color: #4caf50; }
  .ch-badge.y { background: rgba(255,152,0,0.15); color: #ff9800; }
  .ch-badge.r { background: rgba(244,67,54,0.15); color: #f44336; }
  .ch-badge.tasks {
    background: rgba(255,152,0,0.15); color: #ff9800;
  }
  .ch-badge.tasks-done {
    background: var(--overlay-medium); color: var(--text-tertiary);
  }

  .ch-progress {
    width: 120px; height: 6px; border-radius: 3px;
    background: var(--overlay-medium);
    overflow: hidden; display: flex; flex-shrink: 0;
  }

  .ch-arrow { color: var(--text-tertiary); font-size: 10px; transition: transform 0.2s; flex-shrink: 0; }
  .chapter.open .ch-arrow { transform: rotate(90deg); }

  /* ANFORDERUNGEN (aufklappbar) */
  .chapter-body { display: none; border-top: 1px solid var(--border-color); }
  .chapter.open .chapter-body { display: block; }

  .req-list { padding: 0; }
  .req-item-wrap {
    border-bottom: 1px solid var(--border-color);
  }
  .req-item-wrap:last-child { border-bottom: none; }
  .req-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 20px;
    font-size: 13px;
    transition: background 0.1s;
    cursor: pointer;
  }
  .req-item:hover { background: var(--overlay-subtle); }

  .req-status { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
  .req-ref {
    font-weight: 600; color: #4fc3f7; min-width: 60px; flex-shrink: 0;
    font-size: 12px; margin-top: 1px;
  }
  .req-text { flex: 1; color: var(--text-secondary); line-height: 1.5; }
  .req-task-badge {
    font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px;
    background: rgba(255,152,0,0.15); color: #ff9800;
    flex-shrink: 0; margin-top: 1px;
  }
  .req-task-badge.done { background: var(--overlay-medium); color: var(--text-tertiary); }
  .req-note-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #4fc3f7;
    flex-shrink: 0; margin-top: 5px;
  }
  .req-docs {
    font-size: 11px; color: var(--text-tertiary); flex-shrink: 0; min-width: 50px; text-align: right;
  }

  /* Action Buttons (Ordner, Chat, RUDI-Link) */
  .req-actions { display: flex; gap: 4px; flex-shrink: 0; }
  .req-action-btn {
    width: 30px; height: 30px; border-radius: 7px;
    border: 1px solid var(--card-border);
    background: transparent;
    color: var(--text-tertiary); cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s; opacity: 0.4;
    text-decoration: none;
  }
  .req-item:hover .req-action-btn { opacity: 1; }
  .req-action-btn:hover { background: var(--card-hover); color: var(--text-primary); border-color: rgba(255,255,255,0.2); }
  .req-action-btn.chat-btn { color: #4fc3f7; border-color: rgba(79,195,247,0.3); }
  .req-action-btn.chat-btn:hover { background: rgba(79,195,247,0.15); }
  .req-action-btn.chat-btn.highlight { opacity: 1; border-color: #4fc3f7; background: rgba(79,195,247,0.1); }

  /* ===== Freigabe-Button (4 States) ===== */
  .req-approve-btn { width: auto; min-width: 30px; padding: 0 8px; gap: 4px; font-size: 13px; }
  .req-approve-btn[data-state="ready"] { color: var(--text-tertiary); border-color: var(--card-border); }
  .req-approve-btn[data-state="ready"]:hover { color: #4caf50; border-color: rgba(76,175,80,0.4); background: rgba(76,175,80,0.08); }
  .req-approve-btn[data-state="pending"] {
    opacity: 1; color: #04b3d6; border-color: rgba(4,179,214,0.5); background: rgba(4,179,214,0.08);
    animation: qms-approve-pulse 1.8s ease-in-out infinite;
  }
  .req-approve-btn[data-state="pending"]:hover { background: rgba(4,179,214,0.18); }
  .req-approve-btn[data-state="approved"] {
    opacity: 1; color: #4caf50; border-color: rgba(76,175,80,0.4); background: rgba(76,175,80,0.08);
  }
  .req-approve-btn[data-state="approved"]:hover { background: rgba(76,175,80,0.18); }
  .req-approve-btn[data-state="re-approval"] {
    opacity: 1; color: #ff9800; border-color: rgba(255,152,0,0.5); background: rgba(255,152,0,0.08);
    animation: qms-approve-pulse 1.8s ease-in-out infinite;
  }
  .req-approval-version {
    font-size: 11px; font-weight: 600; letter-spacing: 0.2px;
    padding: 0 4px; border-radius: 4px; background: rgba(76,175,80,0.18);
  }
  @keyframes qms-approve-pulse {
    0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
    50% { box-shadow: 0 0 0 6px transparent; opacity: 0.55; }
  }

  /* ===== Stats-Counter "Freigaben offen" ===== */
  .stat-card.approval-pending { border-color: rgba(4,179,214,0.4); background: rgba(4,179,214,0.06); cursor: pointer; }
  .stat-card.approval-pending .num { color: #04b3d6; }
  .stat-card.approval-pending.active { background: rgba(4,179,214,0.18); border-color: #04b3d6; }

  /* ===== Approve-Popover ===== */
  .qms-approve-popover {
    position: absolute;
    min-width: 300px; max-width: 360px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 9999;
    color: var(--text-primary);
    font-size: 13px;
  }
  .qms-pop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .qms-pop-title { font-size: 14px; font-weight: 600; }
  .qms-pop-close {
    background: transparent; border: none; color: var(--text-tertiary);
    font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px;
  }
  .qms-pop-close:hover { color: var(--text-primary); }
  .qms-pop-doc { padding: 10px 12px; border-radius: 9px; background: rgba(255,255,255,0.04); margin-bottom: 10px; }
  .qms-pop-doc-old { border: 1px dashed var(--card-border); background: transparent; opacity: 0.7; }
  .qms-pop-doc-name { font-weight: 500; word-break: break-all; margin-bottom: 4px; }
  .qms-pop-doc-link { color: #04b3d6; text-decoration: none; font-size: 12px; }
  .qms-pop-doc-link:hover { text-decoration: underline; }
  .qms-pop-meta { font-size: 11px; color: var(--text-tertiary); margin-bottom: 10px; }
  .qms-pop-message { padding: 8px 10px; border-left: 2px solid #04b3d6; background: rgba(4,179,214,0.06); border-radius: 4px; margin-bottom: 10px; font-style: italic; }
  .qms-pop-info { margin-bottom: 8px; }
  .qms-pop-hint { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
  .qms-pop-chips-label { font-size: 12px; color: var(--text-secondary); margin: 8px 0 6px; }
  .qms-pop-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
  .qms-chip {
    padding: 6px 10px; border-radius: 14px;
    border: 1px solid var(--card-border); background: transparent;
    color: var(--text-secondary); font-size: 12px; cursor: pointer; transition: all 0.15s;
  }
  .qms-chip:hover { color: var(--text-primary); border-color: rgba(4,179,214,0.4); }
  .qms-chip.selected { background: rgba(4,179,214,0.2); border-color: #04b3d6; color: #04b3d6; font-weight: 500; }
  .qms-pop-kommentar {
    width: 100%; min-height: 52px; box-sizing: border-box;
    padding: 8px 10px; border-radius: 8px;
    border: 1px solid var(--card-border);
    background: rgba(0,0,0,0.15); color: var(--text-primary);
    font-family: inherit; font-size: 12px; resize: vertical;
    margin-bottom: 10px;
  }
  .qms-pop-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
  .qms-pop-btn {
    padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 13px;
    font-family: inherit; transition: all 0.15s;
  }
  .qms-pop-btn.primary { background: #04b3d6; color: #fff; border: 1px solid #04b3d6; }
  .qms-pop-btn.primary:hover:not([disabled]) { background: #038bb0; border-color: #038bb0; }
  .qms-pop-btn.primary[disabled] { opacity: 0.4; cursor: not-allowed; }
  .qms-pop-btn.secondary { background: transparent; color: var(--text-secondary); border: 1px solid var(--card-border); }
  .qms-pop-btn.secondary:hover { background: var(--card-hover); color: var(--text-primary); }
  .qms-pop-row { font-size: 12px; line-height: 1.5; margin-bottom: 4px; word-break: break-word; }
  .qms-pop-row.qms-pop-warn { color: #ff9800; padding: 6px 8px; background: rgba(255,152,0,0.08); border-radius: 6px; margin-bottom: 10px; }
  .qms-pop-label { color: var(--text-tertiary); margin-right: 4px; }

  /* Mobile: Popover Vollbreite */
  @media (max-width: 600px) {
    .qms-approve-popover { left: 12px !important; right: 12px; max-width: none; width: auto; }
  }

  /* Detail-Panel (aufklappbar unter jeder Anforderung) */
  .req-detail { display: none; padding: 0 20px 14px 52px; }
  .req-item-wrap.detail-open .req-detail { display: block; }

  .req-detail-inner {
    background: var(--overlay-subtle);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px;
  }

  /* Tasks im Detail */
  .task-list { margin-bottom: 10px; }
  .task-row {
    display: flex; align-items: center; gap: 10px;
    padding: 5px 0;
    font-size: 12px;
  }
  .task-row input[type="checkbox"] {
    accent-color: #4fc3f7; width: 16px; height: 16px; cursor: pointer; flex-shrink: 0;
  }
  .task-row .task-text { flex: 1; color: var(--text-secondary); }
  .task-row .task-text.done { text-decoration: line-through; color: var(--text-tertiary); }
  .task-row .task-del {
    width: 20px; height: 20px; border: none; background: transparent;
    color: var(--text-tertiary); cursor: pointer; font-size: 14px; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.1s;
  }
  .task-row:hover .task-del, .task-row:hover .task-edit-btn { opacity: 1; }
  .task-row .task-del:hover { background: rgba(244,67,54,0.15); color: #f44336; }
  .task-row .task-edit-btn:hover { background: rgba(79,195,247,0.15); color: #4fc3f7; }

  .task-add {
    display: flex; gap: 8px; margin-top: 6px;
  }
  .task-add input {
    flex: 1; padding: 6px 10px; border-radius: 6px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-primary); font-size: 12px; font-family: inherit;
    outline: none;
  }
  .task-add input:focus { border-color: rgba(79,195,247,0.3); }
  .task-add input::placeholder { color: var(--text-tertiary); }
  .task-add button {
    padding: 6px 12px; border-radius: 6px; border: none;
    background: #4fc3f7; color: #fff; font-size: 12px;
    font-weight: 600; cursor: pointer;
  }
  .task-add button:hover { background: #81d4fa; }

  /* Notes */
  .notes-section { margin-top: 10px; }
  .notes-label { font-size: 11px; font-weight: 600; color: var(--text-tertiary); margin-bottom: 4px; }
  .notes-area {
    width: 100%; min-height: 50px; max-height: 120px; padding: 8px 10px;
    border-radius: 6px; border: 1px solid var(--card-border);
    background: var(--overlay-subtle); color: var(--text-secondary);
    font-size: 12px; font-family: inherit; resize: vertical; outline: none;
  }
  .notes-area:focus { border-color: rgba(79,195,247,0.3); }
  .notes-area::placeholder { color: var(--text-tertiary); }
  .notes-saved { font-size: 10px; color: #4caf50; margin-top: 3px; opacity: 0; transition: opacity 0.3s; }
  .notes-saved.show { opacity: 1; }

  /* CUSTOM-SECTION (eigene Punkte) */
  .custom-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px; margin-top: 12px;
    overflow: hidden;
  }
  .custom-header {
    padding: 16px 20px;
    display: flex; align-items: center; gap: 14px;
    cursor: pointer; user-select: none;
  }
  .custom-header:hover { background: var(--overlay-subtle); }
  .custom-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; background: linear-gradient(135deg, #78909c, #455a64); flex-shrink: 0;
  }
  .custom-body { display: none; border-top: 1px solid var(--border-color); padding: 14px 20px; }
  .custom-section.open .custom-body { display: block; }
  .custom-task-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
  }
  .custom-task-row:last-child { border-bottom: none; }
  .custom-task-label { font-size: 11px; color: #4fc3f7; font-weight: 600; min-width: 80px; }

  /* Chat-Panel wird ueber /shared/chat-panel.css geladen */

  /* TAB-LEISTE */
  .tab-bar {
    display: flex; gap: 0; margin-bottom: 24px;
    border-bottom: 1px solid var(--nav-border);
  }
  .tab-btn {
    padding: 10px 20px; border: none; background: transparent;
    color: var(--text-tertiary); font-size: 14px; font-weight: 600;
    font-family: inherit; cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s; position: relative;
  }
  .tab-btn:hover { color: var(--text-secondary); }
  .tab-btn.active { color: #4fc3f7; border-bottom-color: #4fc3f7; }
  .tab-btn .tab-badge {
    font-size: 10px; font-weight: 700;
    padding: 1px 6px; border-radius: 8px;
    margin-left: 6px; vertical-align: middle;
  }
  .tab-btn .tab-badge.warn { background: rgba(255,152,0,0.15); color: #ff9800; }
  .tab-btn .tab-badge.danger { background: rgba(244,67,54,0.15); color: #f44336; }
  .tab-content { display: none; }
  .tab-content.active { display: block; }

  /* AUFGABEN-TAB STYLES */
  .aufg-stats { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
  .aufg-stat {
    padding: 12px 18px; border-radius: 10px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    text-align: center; min-width: 90px;
  }
  .aufg-stat .num { font-size: 24px; font-weight: 700; line-height: 1.2; }
  .aufg-stat .label { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
  .aufg-stat.open .num { color: #ff9800; }
  .aufg-stat.done .num { color: #4caf50; }
  .aufg-stat.s-total .num { color: #4fc3f7; }

  .aufg-filter-bar {
    display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; align-items: center;
  }
  .aufg-filter-btn {
    padding: 6px 14px; border-radius: 8px;
    border: 1px solid var(--card-border);
    background: transparent; color: var(--text-tertiary);
    font-size: 12px; font-weight: 500; cursor: pointer;
    transition: all 0.15s; font-family: inherit;
  }
  .aufg-filter-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--text-secondary); }
  .aufg-filter-btn.active { border-color: #4fc3f7; color: #4fc3f7; background: rgba(79,195,247,0.08); }
  .aufg-filter-search {
    flex: 1; min-width: 180px;
    padding: 6px 12px; border-radius: 8px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-primary); font-size: 12px; font-family: inherit; outline: none;
  }
  .aufg-filter-search:focus { border-color: rgba(79,195,247,0.3); }
  .aufg-filter-search::placeholder { color: var(--text-tertiary); }

  .aufg-add-bar {
    display: flex; gap: 8px; margin-bottom: 24px;
    padding: 14px; border-radius: 12px;
    border: 1px dashed rgba(79,195,247,0.2);
    background: rgba(79,195,247,0.03);
  }
  .aufg-add-bar select {
    padding: 8px 10px; border-radius: 8px;
    border: 1px solid var(--card-border);
    background: var(--overlay-medium);
    color: var(--text-primary); font-size: 12px; font-family: inherit; outline: none;
    max-width: 160px;
  }
  .aufg-add-bar input {
    flex: 1; padding: 8px 12px; border-radius: 8px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-primary); font-size: 13px; font-family: inherit; outline: none;
  }
  .aufg-add-bar input:focus { border-color: rgba(79,195,247,0.3); }
  .aufg-add-bar input::placeholder { color: var(--text-tertiary); }
  .aufg-add-bar button {
    padding: 8px 18px; border-radius: 8px; border: none;
    background: #4fc3f7; color: #fff; font-size: 13px;
    font-weight: 600; cursor: pointer; white-space: nowrap;
  }
  .aufg-add-bar button:hover { background: #81d4fa; }

  .aufg-group { margin-bottom: 20px; }
  .aufg-group-header {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; margin-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer; user-select: none;
  }
  .aufg-group-header:hover { opacity: 0.8; }
  .aufg-ref { font-size: 13px; font-weight: 700; color: #4fc3f7; min-width: 60px; }
  .aufg-title { font-size: 13px; color: var(--text-secondary); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .aufg-status { font-size: 14px; }
  .aufg-count { font-size: 11px; color: var(--text-tertiary); padding: 2px 8px; border-radius: 5px; background: var(--overlay-medium); }
  .aufg-arrow { color: var(--text-tertiary); font-size: 10px; transition: transform 0.2s; }
  .aufg-group.open .aufg-arrow { transform: rotate(90deg); }
  .aufg-group-body { display: none; padding-left: 8px; }
  .aufg-group.open .aufg-group-body { display: block; }

  .aufg-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; margin: 4px 0;
    border-radius: 8px; transition: background 0.1s;
  }
  .aufg-item:hover { background: var(--overlay-subtle); }
  .aufg-item input[type="checkbox"] { accent-color: #4fc3f7; width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; }
  .aufg-item-text { flex: 1; font-size: 13px; color: var(--text-secondary); line-height: 1.4; cursor: text; }
  .aufg-item-text.done { text-decoration: line-through; color: var(--text-tertiary); }
  .aufg-item-date { font-size: 10px; color: var(--text-tertiary); flex-shrink: 0; }
  .aufg-item-ref { font-size: 10px; font-weight: 600; color: #4fc3f7; flex-shrink: 0; padding: 2px 6px; border-radius: 4px; background: rgba(79,195,247,0.08); text-decoration: none; }
  .aufg-item-ref:hover { background: rgba(79,195,247,0.15); }
  .aufg-item-actions { display: flex; gap: 4px; flex-shrink: 0; }
  .aufg-item-btn {
    width: 26px; height: 26px; border-radius: 6px;
    border: none; background: transparent;
    color: var(--text-tertiary); cursor: pointer; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.1s;
  }
  .aufg-item:hover .aufg-item-btn { opacity: 1; }
  .aufg-item-btn:hover { background: var(--card-hover); color: var(--text-secondary); }
  .aufg-item-btn.del:hover { background: rgba(244,67,54,0.15); color: #f44336; }
  .aufg-group-notes {
    margin: 8px 0 4px 30px;
    font-size: 12px; color: #777; font-style: italic;
    padding: 6px 10px; border-left: 2px solid rgba(79,195,247,0.2);
  }
  .aufg-empty { text-align: center; padding: 60px 20px; color: var(--text-tertiary); font-size: 14px; }

  /* Recurring im Aufgaben-Tab */
  .rec-section { margin-bottom: 32px; }
  .rec-section-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
  }
  .rec-section-header h2 {
    font-size: 18px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.3px;
    display: flex; align-items: center; gap: 8px;
  }
  .rec-badge-count { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 8px; color: #fff; }
  .rec-badge-count.overdue { background: #f44336; }
  .rec-badge-count.soon { background: #ff9800; }
  .rec-stats { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
  .rec-stat {
    padding: 10px 16px; border-radius: 10px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    text-align: center; min-width: 80px;
  }
  .rec-stat .num { font-size: 20px; font-weight: 700; line-height: 1.2; }
  .rec-stat .label { font-size: 10px; color: var(--text-tertiary); margin-top: 2px; }
  .rec-stat.s-overdue .num { color: #f44336; }
  .rec-stat.s-soon .num { color: #ff9800; }
  .rec-stat.s-ok .num { color: #4caf50; }
  .rec-stat.s-total .num { color: #4fc3f7; }
  .rec-list { display: flex; flex-direction: column; gap: 6px; }
  .rec-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 10px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    transition: all 0.15s;
  }
  .rec-item:hover { background: rgba(255,255,255,0.07); }
  .rec-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
  .rec-dot.overdue { background: #f44336; box-shadow: 0 0 6px rgba(244,67,54,0.5); }
  .rec-dot.soon { background: #ff9800; box-shadow: 0 0 6px rgba(255,152,0,0.4); }
  .rec-dot.ok { background: #4caf50; }
  .rec-info { flex: 1; min-width: 0; }
  .rec-title { font-size: 13px; font-weight: 500; color: var(--text-primary); }
  .rec-meta { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
  .rec-meta a { color: #4fc3f7; text-decoration: none; }
  .rec-meta a:hover { text-decoration: underline; }
  .rec-due { font-size: 12px; font-weight: 500; color: var(--text-tertiary); flex-shrink: 0; white-space: nowrap; }
  .rec-due.overdue { color: #f44336; font-weight: 600; }
  .rec-due.soon { color: #ff9800; }
  .rec-actions { display: flex; gap: 4px; flex-shrink: 0; }
  .rec-btn {
    padding: 5px 10px; border-radius: 6px; border: none;
    font-size: 11px; font-weight: 500; cursor: pointer;
    font-family: inherit; transition: all 0.15s;
  }
  .rec-btn.complete { background: rgba(76,175,80,0.12); color: #4caf50; }
  .rec-btn.complete:hover { background: rgba(76,175,80,0.25); }
  .rec-btn.chat { background: rgba(79,195,247,0.1); color: #4fc3f7; }
  .rec-btn.chat:hover { background: rgba(79,195,247,0.2); }
  .rec-btn.del { background: transparent; color: var(--text-tertiary); padding: 5px 6px; }
  .rec-btn.del:hover { background: rgba(244,67,54,0.15); color: #f44336; }
  .rec-empty { text-align: center; padding: 30px 20px; color: var(--text-tertiary); font-size: 13px; }
  .rec-history-toggle { font-size: 11px; color: var(--text-tertiary); cursor: pointer; margin-top: 4px; }
  .rec-history-toggle:hover { color: var(--text-tertiary); }
  .rec-history { display: none; margin-top: 6px; padding-left: 22px; font-size: 11px; color: var(--text-tertiary); }
  .rec-history.open { display: block; }
  .rec-history-entry { padding: 3px 0; border-bottom: 1px solid var(--border-color); }

  /* ORDNERSTRUKTUR */
  .folders-section { margin-top: 32px; }
  .folders-section h2 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
  .folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
  .folder-card {
    padding: 12px 16px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: var(--overlay-subtle);
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; text-decoration: none; color: inherit;
    transition: border-color 0.15s;
  }
  .folder-card:hover { border-color: rgba(79,195,247,0.3); }
  .folder-icon { font-size: 20px; }
  .folder-name { font-size: 13px; font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .folder-count {
    font-size: 11px; font-weight: 600; padding: 2px 8px;
    border-radius: 5px; background: rgba(79,195,247,0.1); color: #4fc3f7;
  }

  /* UPLOAD */
  .upload-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 10px;
    border: 1px solid rgba(79,195,247,0.25);
    background: rgba(79,195,247,0.08);
    color: #4fc3f7; font-size: 13px; font-weight: 600;
    font-family: inherit; cursor: pointer;
    transition: all 0.15s;
  }
  .upload-btn:hover { background: rgba(79,195,247,0.15); border-color: rgba(79,195,247,0.4); }
  .folders-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
  .folders-header h2 { margin-bottom: 0 !important; }

  .upload-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px); z-index: 500; display: none;
    align-items: center; justify-content: center;
  }
  .upload-overlay.active { display: flex; }
  .upload-modal {
    background: #1a1d26; border: 1px solid var(--card-border);
    border-radius: 16px; width: 520px; max-width: 95vw;
    max-height: 85vh; display: flex; flex-direction: column;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  }
  .upload-modal-header {
    padding: 18px 20px; border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
  }
  .upload-modal-header h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); }
  .upload-close {
    width: 28px; height: 28px; border-radius: 50%;
    border: none; background: var(--card-hover);
    color: var(--text-secondary); font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .upload-close:hover { background: rgba(255,255,255,0.15); color: var(--text-primary); }
  .upload-modal-body { padding: 20px; flex: 1; overflow-y: auto; }
  .upload-target-row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  }
  .upload-target-row label { font-size: 13px; color: var(--text-secondary); font-weight: 500; white-space: nowrap; }
  .upload-target-select {
    flex: 1; padding: 8px 12px; border-radius: 8px;
    border: 1px solid var(--card-border);
    background: #1e2130; color: var(--text-primary);
    font-size: 13px; font-family: inherit;
  }
  .upload-target-select option {
    background: #1e2130; color: var(--text-primary);
    padding: 6px 8px;
  }
  .upload-dropzone {
    border: 2px dashed rgba(79,195,247,0.25); border-radius: 12px;
    padding: 32px 20px; text-align: center; cursor: pointer;
    transition: all 0.2s; position: relative;
  }
  .upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: rgba(79,195,247,0.5); background: rgba(79,195,247,0.05);
  }
  .upload-dropzone-icon { font-size: 36px; margin-bottom: 8px; }
  .upload-dropzone-text { font-size: 14px; color: var(--text-secondary); }
  .upload-dropzone-text strong { color: #4fc3f7; }
  .upload-dropzone-hint { font-size: 11px; color: #636366; margin-top: 6px; }
  .upload-file-list { margin-top: 16px; max-height: 200px; overflow-y: auto; }
  .upload-file-item {
    display: flex; align-items: center; gap: 8px; padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px; color: #c0c0c0;
  }
  .upload-file-item .file-path { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .upload-file-item .file-size { color: #636366; white-space: nowrap; }
  .upload-modal-footer {
    padding: 14px 20px; border-top: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
  }
  .upload-count { font-size: 12px; color: #636366; }
  .upload-submit {
    padding: 8px 20px; border-radius: 8px; border: none;
    background: #4fc3f7; color: #0a0a1a; font-size: 13px;
    font-weight: 600; font-family: inherit; cursor: pointer;
    transition: all 0.15s;
  }
  .upload-submit:hover { background: #81d4fa; }
  .upload-submit:disabled { opacity: 0.4; cursor: not-allowed; }
  .upload-progress { width: 100%; height: 4px; border-radius: 2px; background: var(--overlay-medium); margin-top: 12px; display: none; }
  .upload-progress-bar { height: 100%; border-radius: 2px; background: #4fc3f7; width: 0; transition: width 0.3s; }
  .upload-result { margin-top: 12px; font-size: 13px; padding: 10px 14px; border-radius: 8px; display: none; }
  .upload-result.success { background: rgba(76,175,80,0.1); color: #66bb6a; display: block; }
  .upload-result.error { background: rgba(244,67,54,0.1); color: #ef5350; display: block; }

  /* LOADING */
  .loading {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; min-height: 300px; gap: 14px; color: var(--text-tertiary);
  }
  .spinner {
    width: 32px; height: 32px;
    border: 3px solid rgba(79,195,247,0.15);
    border-top-color: #4fc3f7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  .badge-fresh {
    position: fixed; bottom: 18px; right: 18px;
    width: 96px; height: auto; opacity: 0.45; z-index: 50;
    pointer-events: none; filter: brightness(1.8);
  }

  @media (max-width: 600px) {
    nav { padding: 0 10px; gap: 6px; }
    .nav-title { display: none; }
    .nav-link { padding: 5px 8px; font-size: 11px; }
    .nav-back span { display: none; }
    .nav-back { padding: 6px 8px; margin-left: auto; }
    .main { padding: 16px 12px 60px; }
    .header h1 { font-size: 18px; }
    .stats-row { flex-direction: column; }
    .stat-card { min-width: auto; flex: 1; }
    .ch-badges { display: none; }
    .ch-progress { display: none; }
    .ch-name { font-size: 13px; }
    .chapter-header { padding: 14px 14px; gap: 10px; }
    .req-item { padding: 10px 14px; gap: 8px; font-size: 12px; }
    .req-ref { min-width: 48px; font-size: 11px; }
    .req-docs { display: none; }
    .folder-grid { grid-template-columns: 1fr; }
    .req-action-btn { opacity: 1; }
    .req-detail { padding-left: 14px; }
    .add-custom-btn { font-size: 12px; padding: 8px 14px; }
    .tab-btn { padding: 8px 14px; font-size: 13px; }
    .aufg-stats { flex-direction: column; }
    .aufg-add-bar { flex-direction: column; }
    .aufg-add-bar select { max-width: none; }
    .aufg-item-btn { opacity: 1; }
    .rec-item { flex-wrap: wrap; }
    .rec-actions { width: 100%; justify-content: flex-end; }
    .rek-form { flex-direction: column; }
    .rek-form-row { flex-direction: column; }
    .rek-card { flex-direction: column; }
    .rek-card-actions { width: 100%; justify-content: flex-start; margin-top: 8px; }
  }

  /* ===== REKLAMATIONEN-TAB ===== */
  .rek-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
  .rek-header h2 { font-size: 20px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.3px; }
  .rek-new-btn {
    padding: 8px 18px; border-radius: 10px; border: none;
    background: linear-gradient(135deg, #f44336, #c62828);
    color: #fff; font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    display: flex; align-items: center; gap: 6px;
    transition: all 0.2s; box-shadow: 0 2px 12px rgba(244,67,54,0.3);
  }
  .rek-new-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(244,67,54,0.4); }

  .rek-stats { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
  .rek-stat {
    padding: 12px 18px; border-radius: 10px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    text-align: center; min-width: 90px;
  }
  .rek-stat .num { font-size: 24px; font-weight: 700; line-height: 1.2; }
  .rek-stat .label { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
  .rek-stat.s-offen .num { color: #f44336; }
  .rek-stat.s-bearbeitung .num { color: #ff9800; }
  .rek-stat.s-abgeschlossen .num { color: #4caf50; }
  .rek-stat.s-total .num { color: #4fc3f7; }

  /* Reklamation-Formular (Modal) */
  .rek-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px); z-index: 500; display: none;
    align-items: center; justify-content: center;
  }
  .rek-overlay.active { display: flex; }
  .rek-modal {
    background: #1a1d26; border: 1px solid var(--card-border);
    border-radius: 16px; width: 600px; max-width: 95vw;
    max-height: 90vh; display: flex; flex-direction: column;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  }
  .rek-modal-header {
    padding: 18px 20px; border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
  }
  .rek-modal-header h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); }
  .rek-modal-body { padding: 20px; flex: 1; overflow-y: auto; }
  .rek-modal-footer {
    padding: 14px 20px; border-top: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  }
  .rek-form { display: flex; flex-direction: column; gap: 14px; }
  .rek-form-row { display: flex; gap: 12px; }
  .rek-form-row > .rek-field { flex: 1; }
  .rek-field { display: flex; flex-direction: column; gap: 4px; }
  .rek-field label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
  .rek-field input, .rek-field textarea, .rek-field select {
    padding: 8px 12px; border-radius: 8px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-primary); font-size: 13px; font-family: inherit; outline: none;
  }
  .rek-field input:focus, .rek-field textarea:focus { border-color: rgba(244,67,54,0.4); }
  .rek-field textarea { min-height: 70px; resize: vertical; }
  .rek-field input::placeholder, .rek-field textarea::placeholder { color: var(--text-tertiary); }

  .rek-submit {
    padding: 8px 20px; border-radius: 8px; border: none;
    background: #f44336; color: #fff; font-size: 13px;
    font-weight: 600; font-family: inherit; cursor: pointer;
    transition: all 0.15s;
  }
  .rek-submit:hover { background: #e53935; }
  .rek-submit:disabled { opacity: 0.4; cursor: not-allowed; }
  .rek-cancel {
    padding: 8px 16px; border-radius: 8px;
    border: 1px solid var(--card-border);
    background: transparent; color: var(--text-secondary); font-size: 13px;
    font-weight: 500; font-family: inherit; cursor: pointer;
  }
  .rek-cancel:hover { background: var(--overlay-medium); color: var(--text-primary); }

  /* Reklamation-Karten */
  .rek-list { display: flex; flex-direction: column; gap: 10px; }
  .rek-card {
    padding: 16px 18px; border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    display: flex; align-items: flex-start; gap: 14px;
    transition: all 0.15s; cursor: pointer;
  }
  .rek-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(244,67,54,0.2); }
  .rek-card-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
  }
  .rek-card-icon.offen { background: rgba(244,67,54,0.15); }
  .rek-card-icon.in_bearbeitung { background: rgba(255,152,0,0.15); }
  .rek-card-icon.abgeschlossen { background: rgba(76,175,80,0.15); }
  .rek-card-info { flex: 1; min-width: 0; }
  .rek-card-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
  .rek-card-meta { font-size: 12px; color: var(--text-tertiary); display: flex; gap: 12px; flex-wrap: wrap; }
  .rek-card-grund { font-size: 12px; color: #aaa; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rek-card-dateien { font-size: 11px; color: #4fc3f7; margin-top: 4px; }
  .rek-card-status {
    font-size: 11px; font-weight: 600; padding: 3px 10px;
    border-radius: 6px; flex-shrink: 0; white-space: nowrap;
  }
  .rek-card-status.offen { background: rgba(244,67,54,0.15); color: #f44336; }
  .rek-card-status.in_bearbeitung { background: rgba(255,152,0,0.15); color: #ff9800; }
  .rek-card-status.abgeschlossen { background: rgba(76,175,80,0.15); color: #4caf50; }
  .rek-card-actions { display: flex; gap: 4px; flex-shrink: 0; }
  .rek-action-btn {
    padding: 5px 10px; border-radius: 6px; border: none;
    font-size: 11px; font-weight: 500; cursor: pointer;
    font-family: inherit; transition: all 0.15s;
  }
  .rek-action-btn.rudi { background: rgba(79,195,247,0.1); color: #4fc3f7; }
  .rek-action-btn.rudi:hover { background: rgba(79,195,247,0.2); }
  .rek-action-btn.status-btn { background: rgba(255,152,0,0.1); color: #ff9800; }
  .rek-action-btn.status-btn:hover { background: rgba(255,152,0,0.2); }
  .rek-action-btn.del { background: transparent; color: var(--text-tertiary); }
  .rek-action-btn.del:hover { background: rgba(244,67,54,0.15); color: #f44336; }
  .rek-empty { text-align: center; padding: 60px 20px; color: var(--text-tertiary); font-size: 14px; }

  /* Reklamation-Detail Modal */
  .rek-detail-section { margin-bottom: 16px; }
  .rek-detail-label { font-size: 11px; font-weight: 600; color: var(--text-tertiary); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
  .rek-detail-value { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
  .rek-detail-files { display: flex; flex-direction: column; gap: 6px; }
  .rek-detail-file {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px; border-radius: 6px;
    background: var(--card-bg);
    font-size: 12px; color: var(--text-secondary);
  }
  .rek-detail-file a { color: #4fc3f7; text-decoration: none; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rek-detail-file a:hover { text-decoration: underline; }

  /* Upload-Bereich im Detail */
  .rek-upload-zone {
    border: 2px dashed rgba(244,67,54,0.2); border-radius: 10px;
    padding: 20px; text-align: center; cursor: pointer;
    transition: all 0.2s; margin-top: 8px;
  }
  .rek-upload-zone:hover, .rek-upload-zone.dragover {
    border-color: rgba(244,67,54,0.5); background: rgba(244,67,54,0.05);
  }
  .rek-upload-zone-text { font-size: 13px; color: var(--text-tertiary); }
  .rek-upload-zone-hint { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; }


/* === Auto-generierte Klassen aus inline style="..." (index.html, 24 unique) === */
.s-fbadc3 { border:none;cursor:pointer;font-size:16px; }
.s-5499ee { margin-bottom:18px; }
.s-8ebe8b { display:flex;align-items:center;gap:10px;margin-bottom:10px; }
.s-a96539 { font-size:13px;font-weight:600;color:#f5f5f7; }
.s-7d8af6 { flex:1;height:1px;background:rgba(255,255,255,0.08); }
.s-432cb2 { background:none;border:none;color:#4fc3f7;font-size:12px;cursor:pointer;font-family:inherit; }
.s-014ca0 { border:2px dashed rgba(79,195,247,0.25);border-radius:12px;padding:20px;text-align:center;cursor:pointer;transition:all 0.2s;margin-bottom:10px; }
.s-a81909 { font-size:28px;margin-bottom:6px; }
.s-d3900f { font-size:13px;color:#a0a0a8; }
.s-2822e3 { font-size:11px;color:#636366;margin-top:4px; }
.s-c58d5b { margin-bottom:10px; }
.s-b0eef7 { font-size:11px;color:#636366;margin-bottom:4px; }
.s-9b5de8 { width:100%;min-height:100px;max-height:240px;padding:12px;border-radius:10px;border:1px solid rgba(79,195,247,0.2);background:rgba(79,195,247,0.04);color:var(--text-primary);font-size:13px;font-family:inherit;resize:vertical;outline:none;line-height:1.5; }
.s-e1e441 { display:flex;align-items:center;gap:10px;margin-top:12px;flex-wrap:wrap; }
.s-aeabc9 { padding:9px 20px;border-radius:8px;border:none;background:linear-gradient(135deg,#04b3d6,#0090b0);color:#fff;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;display:flex;align-items:center;gap:6px;transition:all 0.15s; }
.s-7a23b3 { font-size:12px;color:#888;flex:1; }
.s-396576 { margin-top:10px;padding:10px 14px;border-radius:8px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.06);font-size:11px;color:#888;line-height:1.5; }
.s-15ffd6 { display:flex;align-items:center;gap:10px;margin-bottom:14px; }
.s-db96bb { min-height:50px; }
.s-d79ce2 { margin-top:8px; }
.s-b74dd9 { width:650px; }
.s-82f6a3 { padding:8px 18px;font-size:13px; }
.s-d67456 { text-align:center;margin-top:8px; }
.s-cf4928 { background:none;border:none;color:#4fc3f7;font-size:12px;cursor:pointer;text-decoration:underline;font-family:inherit; }


/* === Auto-Klassen aus inline style="..." in index.js (48 unique) === */
.s-c76dad { color:#f44336; }
.s-74b3d8 { border-color:rgba(255,152,0,0.2); }
.s-ffd8d7 { color:#ff9800; }
.s-92aa9a { margin-bottom:20px;padding:16px;border-radius:14px;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08); }
.s-75e36a { display:flex;align-items:center;gap:10px;margin-bottom:12px; }
.s-dd7e28 { font-size:16px; }
.s-5f2b32 { font-size:14px;font-weight:600;color:#f5f5f7; }
.s-37b708 { display:none;font-size:10px;font-weight:700;background:#4fc3f7;color:#fff;padding:1px 6px;border-radius:6px; }
.s-cab5c1 { display:none;font-size:10px;font-weight:600;background:rgba(255,152,0,0.15);color:#ff9800;padding:1px 6px;border-radius:6px; }
.s-d5e8c5 { flex:1; }
.s-c5b1f7 { font-size:11px;color:#4fc3f7;text-decoration:none;padding:5px 10px;border-radius:7px;background:rgba(79,195,247,0.08);border:1px solid rgba(79,195,247,0.15);transition:background 0.15s; }
.s-dccc92 { font-size:11px;color:#ff9800;text-decoration:none;padding:5px 10px;border-radius:7px;background:rgba(255,152,0,0.08);border:1px solid rgba(255,152,0,0.15);transition:background 0.15s; }
.s-614695 { font-size:12px;color:#a0a0a8; }
.s-a5d2ba { font-weight:600; }
.s-65a087 { color:#4fc3f7; }
.s-63d0b8 { width:20px;height:20px;border:none;background:transparent;color:#555;cursor:pointer;font-size:12px;border-radius:4px;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity 0.1s; }
.s-ff8529 { accent-color:#4fc3f7;width:16px;height:16px;cursor:pointer; }
.s-f81998 { flex:1;font-size:13px; }
.s-63cd35 { width:20px;height:20px;border:none;background:transparent;color:#555;cursor:pointer;font-size:12px;border-radius:4px;display:flex;align-items:center;justify-content:center;opacity:0.5; }
.s-f0867e { opacity:0.5; }
.s-92d173 { margin-top:10px; }
.s-1fc493 { max-width:140px; }
.s-d79ce2 { margin-top:8px; }
.s-adeba0 { background:none;border:none;color:#636366;cursor:pointer;font-size:14px; }
.s-3f57a4 { font-size:18px;font-weight:700;color:#f5f5f7;margin-bottom:16px; }
.s-65b839 { background:rgba(255,152,0,0.1);color:#ff9800; }
.s-8fdce8 { text-decoration:none; }
.s-da7d98 { text-decoration:none;color:inherit; }
.s-d26566 { background:rgba(76,175,80,0.1);color:#4caf50; }
.s-9c5879 { margin-top:24px;padding:14px 18px;border-radius:10px;border:1px solid rgba(171,71,188,0.2);background:rgba(171,71,188,0.05);font-size:12px;color:#ab47bc; }
.s-1676b7 { display:flex;align-items:center;gap:8px;padding:4px 0;font-size:12px;color:#ccc; }
.s-8aab4e { flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.s-1387ec { color:#636366; }
.s-06a1ef { display:flex;align-items:center;gap:8px;padding:6px 10px;margin-bottom:4px;border-radius:8px;background:rgba(79,195,247,0.06);border:1px solid rgba(79,195,247,0.15);font-size:12px; }
.s-65da0b { color:#4fc3f7;font-weight:500;font-size:11px; }
.s-61ff41 { flex:1;color:#ccc;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.s-b0649b { color:#4caf50; }
.s-d55bce { display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px; }
.s-83e4c5 { font-size:12px;color:#888;padding:3px 10px;border-radius:6px;background:rgba(255,255,255,0.04); }
.s-6c3ca2 { font-size:14px; }
.s-dde943 { color:#555;font-size:11px; }
.s-93b8ea { display:none; }
.s-f0aa1a { margin-top:8px;font-size:12px; }
.s-5aecb0 { color:#4fc3f7;font-size:13px;text-decoration:none; }
.s-ed6f7c { width:6px;height:6px;border-radius:50%;background:#4fc3f7;flex-shrink:0; }
.s-53d057 { width:6px;flex-shrink:0; }
.s-11d1e4 { flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.s-0f322b { font-size:10px;color:#636366;flex-shrink:0; }
