@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── VARIABLEN ─────────────────────────────────────────────── */
:root {
  --brand:        #005d55;
  --brand-dark:   #004740;
  --brand-light:  #e6f2f1;
  --brand-mid:    #cce6e4;
  --bg:           #f0f2f5;
  --surface:      #ffffff;
  --border:       #e2e8f0;
  --border2:      #cbd5e1;
  --text:         #1a2332;
  --muted:        #64748b;
  --dim:          #94a3b8;
  --danger:       #dc2626;
  --success:      #16a34a;
  --warning:      #d97706;
  --radius:       8px;
  --shadow:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:    0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:    0 10px 32px rgba(0,0,0,.14);
  --topbar-h:     54px;
  --filterbar-h:  46px;
}

body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── FORMULAR ──────────────────────────────────────────────── */
input, textarea, select {
  width: 100%; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 9px 12px; color: var(--text);
  font-size: 13px; font-family: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s; box-shadow: var(--shadow);
}
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,93,85,.12); }
textarea { resize: vertical; }
label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .06em; }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn { cursor: pointer; border: none; font-family: inherit; font-size: 13px; font-weight: 600; border-radius: var(--radius); padding: 8px 16px; transition: all .15s; display: inline-flex; align-items: center; gap: 6px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary   { background: var(--brand); color: #fff; box-shadow: 0 1px 4px rgba(0,93,85,.3); }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--brand-light); border-color: var(--brand-mid); color: var(--brand); }
.btn-ghost     { background: #fff; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border2); color: var(--text); }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: .9; }
.btn-sm        { padding: 5px 12px; font-size: 12px; }
.btn-icon { padding: 5px 7px; background: transparent; color: var(--dim); border-radius: 6px; cursor: pointer; border: none; font-size: 13px; transition: background .12s, color .12s; font-family: inherit; }
.btn-icon:hover { background: var(--brand-light); color: var(--brand); }

/* ── LOGIN ─────────────────────────────────────────────────── */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f0f7f6 0%, #e8f4f3 50%, #f0f2f5 100%); }
.login-box { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 40px; width: 100%; max-width: 380px; box-shadow: var(--shadow-lg); animation: fadeUp .25s ease; }
.login-logo { display: flex; justify-content: center; margin-bottom: 8px; }
.login-logo img { height: 36px; width: auto; }
.login-subtitle { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }

/* ── TOPBAR ────────────────────────────────────────────────── */
.topbar { background: var(--brand); color: #fff; padding: 0 20px; position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 8px rgba(0,93,85,.3); }
.topbar-main { display: flex; align-items: center; justify-content: space-between; height: var(--topbar-h); gap: 12px; }
.topbar-left  { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.topbar-right { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.topbar-logo  { height: 26px; width: auto; filter: brightness(0) invert(1); }
.topbar-divider { width: 1px; height: 18px; background: rgba(255,255,255,.2); flex-shrink: 0; }
.topbar-title { font-size: 13px; color: rgba(255,255,255,.75); font-weight: 500; white-space: nowrap; }
.topbar-btn { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.2); font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: var(--radius); cursor: pointer; font-family: inherit; transition: all .15s; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.topbar-btn:hover  { background: rgba(255,255,255,.22); color: #fff; border-color: rgba(255,255,255,.4); }
.topbar-btn.active { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.55); }
.topbar-btn-primary { background: #fff; color: var(--brand); border: none; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: var(--radius); cursor: pointer; font-family: inherit; transition: all .15s; box-shadow: 0 1px 4px rgba(0,0,0,.15); white-space: nowrap; }
.topbar-btn-primary:hover { background: #f0f7f6; }
.badge-filter { font-size: 11px; background: rgba(255,255,255,.9); color: var(--brand); padding: 2px 8px; border-radius: 20px; font-weight: 700; white-space: nowrap; }

/* Suchfeld — in der weißen Filterbar */
.topbar-search { position: relative; display: flex; align-items: center; }
.topbar-search-icon { position: absolute; left: 10px; color: var(--dim); font-size: 13px; pointer-events: none; }
.topbar-search input {
  width: 220px; padding: 6px 28px 6px 32px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; color: var(--text); font-size: 12px;
  box-shadow: none; transition: all .2s;
}
.topbar-search input::placeholder { color: var(--dim); }
.topbar-search input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,93,85,.1); width: 260px; }
.topbar-search-clear { position: absolute; right: 10px; color: var(--dim); cursor: pointer; font-size: 15px; line-height: 1; transition: color .1s; }
.topbar-search-clear:hover { color: var(--danger); }

/* ── FILTER-LEISTE ─────────────────────────────────────────── */
.filterbar { background: #fff; border-bottom: 1px solid var(--border); padding: 0 20px; display: flex; align-items: center; gap: 8px; height: var(--filterbar-h); position: sticky; top: var(--topbar-h); z-index: 150; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.filterbar-sep { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; }

/* Filter-Dropdown-Button */
.filter-dd { position: relative; }
.filter-dd-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; cursor: pointer; font-size: 12px; font-weight: 600; font-family: inherit; background: var(--bg); border: 1px solid var(--border); color: var(--muted); transition: all .15s; white-space: nowrap; }
.filter-dd-btn:hover { border-color: var(--brand-mid); color: var(--brand); background: var(--brand-light); }
.filter-dd-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.filter-dd-btn .arrow { font-size: 9px; opacity: .6; transition: transform .15s; }
.filter-dd-btn.open .arrow { transform: rotate(180deg); }
.filter-dd-panel { position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 500; overflow: hidden; animation: fadeUp .15s ease; }
.filter-dd-option { display: flex; align-items: center; gap: 9px; padding: 8px 14px; cursor: pointer; font-size: 13px; transition: background .1s; user-select: none; }
.filter-dd-option:hover { background: var(--brand-light); }
.filter-dd-option.selected { color: var(--brand); font-weight: 600; }
.filter-dd-check { width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--border2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all .12s; }
.filter-dd-option.selected .filter-dd-check { background: var(--brand); border-color: var(--brand); }
.filter-dd-sep { height: 1px; background: var(--border); margin: 4px 0; }
.filter-date-row { display: flex; align-items: center; gap: 6px; padding: 8px 14px; }
.filter-date-row input { font-size: 11px; padding: 5px 8px; width: auto; flex: 1; }
.filter-reset { margin-left: auto; font-size: 11px; color: var(--danger); cursor: pointer; font-weight: 600; padding: 4px 10px; border-radius: 20px; border: 1px solid #fecaca; background: #fef2f2; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; transition: all .15s; font-family: inherit; }
.filter-reset:hover { background: #fee2e2; }

/* Suchfeld in der weißen Filterbar */
.filterbar-search { position: relative; display: flex; align-items: center; }
.filterbar-search-icon { position: absolute; left: 10px; color: var(--dim); font-size: 13px; pointer-events: none; }
.filterbar-search input {
  width: 220px; padding: 5px 32px 5px 30px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; color: var(--text); font-size: 12px;
  box-shadow: none; transition: all .2s;
}
.filterbar-search input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,93,85,.1); width: 260px; }

/* ── BOARD (5-Spalten Grid) ────────────────────────────────── */
.board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 16px 20px; align-items: start; min-height: calc(100vh - var(--topbar-h) - var(--filterbar-h) - 2px); }
.column { background: var(--surface); border-radius: 12px; border: 1px solid var(--border); display: flex; flex-direction: column; height: calc(100vh - var(--topbar-h) - var(--filterbar-h) - 34px); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; min-width: 0; }
.column.drag-over { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(0,93,85,.2); }
.col-header { padding: 12px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.col-title-wrap { display: flex; align-items: center; gap: 8px; }
.col-dot   { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.col-title { font-size: 11px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .07em; }
.col-count { font-size: 11px; color: var(--muted); background: var(--bg); padding: 1px 7px; border-radius: 20px; border: 1px solid var(--border); font-weight: 600; }
.col-body  { padding: 10px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; }

/* ── CARDS ─────────────────────────────────────────────────── */
.card { background: #fff; border-radius: var(--radius); padding: 12px; border: 1px solid var(--border); position: relative; cursor: grab; user-select: none; animation: fadeUp .2s ease; transition: transform .15s, box-shadow .15s, border-color .15s; box-shadow: var(--shadow); }
.card:hover    { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border2); }
.card:active   { cursor: grabbing; }
.card.dragging { opacity: .35; }
.card-prio-bar { position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; }
.card-title    { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; flex: 1; }
.card-client   { font-size: 11px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.card-desc     { font-size: 11px; color: var(--dim); margin-top: 5px; line-height: 1.5; }
.card-avatars  { display: flex; align-items: center; margin-top: 10px; }
.card-footer   { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.deadline-tag  { font-size: 10px; padding: 2px 7px; border-radius: 20px; border: 1px solid var(--border); background: var(--bg); color: var(--muted); font-weight: 500; }
.deadline-tag.soon { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.deadline-tag.over { background: #fef2f2; color: var(--danger); border-color: #fecaca; }
.prio-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.empty-col { text-align: center; padding: 20px 10px; color: var(--dim); font-size: 12px; border: 1.5px dashed var(--border); border-radius: var(--radius); cursor: pointer; transition: all .12s; }
.empty-col:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }

/* ── AVATAR ────────────────────────────────────────────────── */
.avatar { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; color: #fff; flex-shrink: 0; }

/* ── MODAL ─────────────────────────────────────────────────── */
.overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: flex; align-items: flex-start; justify-content: center; z-index: 1000; padding: 24px 20px 40px; backdrop-filter: blur(4px); animation: fadeIn .15s ease; overflow-y: auto; }
.modal { background: #fff; border-radius: 16px; width: 100%; border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: fadeUp .2s ease; position: relative; }
.modal-sm      { max-width: 420px; }
.modal-md      { max-width: 560px; }
.modal-project { max-width: 1200px; }

.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px 0; margin-bottom: 20px; }
.modal-header h2 { font-size: 17px; font-weight: 700; color: var(--text); }
.modal-close { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; color: var(--muted); transition: all .15s; flex-shrink: 0; font-family: inherit; }
.modal-close:hover { background: #fee2e2; border-color: #fca5a5; color: var(--danger); }
.modal-body { padding: 0 28px; }
.modal-sm .modal-body, .modal-md .modal-body { padding: 0 22px; }
.modal-sm .modal-header, .modal-md .modal-header { padding: 22px 22px 0; }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; padding: 18px 28px 24px; border-top: 1px solid var(--border); }
.modal-sm .modal-footer, .modal-md .modal-footer { padding: 16px 22px 22px; }

.form-grid  { display: grid; gap: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.form-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

/* ── ASSIGNEE PICKER ───────────────────────────────────────── */
.assignee-box { position: relative; }
.assignee-trigger { min-height: 42px; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 5px 10px; cursor: pointer; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .15s; }
.assignee-trigger:hover { border-color: var(--border2); }
.assignee-chip { display: flex; align-items: center; gap: 4px; padding: 2px 8px 2px 4px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.assignee-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--border2); border-radius: var(--radius); z-index: 300; overflow: hidden; box-shadow: var(--shadow-lg); }
.assignee-option { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; transition: background .1s; }
.assignee-option:hover    { background: var(--brand-light); }
.assignee-option.selected { background: var(--brand-light); }

/* ── TAGS ──────────────────────────────────────────────────── */
.tag-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 20px; white-space: nowrap; cursor: default; }
.tag-chip.selectable { cursor: pointer; transition: opacity .12s; }
.tag-chip.selectable:hover { opacity: .75; }

/* ── KOMMENTARE ────────────────────────────────────────────── */
.comment-item { padding: 10px 12px; background: var(--bg); border-radius: var(--radius); margin-bottom: 8px; }
.comment-meta { font-size: 11px; color: var(--muted); margin-bottom: 4px; display: flex; gap: 8px; }
.comment-author { font-weight: 600; color: var(--text); }
.comment-text { font-size: 13px; color: var(--text); line-height: 1.5; white-space: pre-wrap; }

/* ── TEAM MANAGER ──────────────────────────────────────────── */
.team-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }

/* ── TOAST ─────────────────────────────────────────────────── */
.toast { position: fixed; bottom: 20px; right: 20px; padding: 11px 20px; border-radius: var(--radius); font-size: 13px; font-weight: 600; z-index: 9999; animation: slideUp .2s ease; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px; }
.toast-success { background: var(--brand); color: #fff; }
.toast-error   { background: var(--danger); color: #fff; }

/* ── DASHBOARD ─────────────────────────────────────────────── */
.dash-wrap { padding: 20px; max-width: 1400px; margin: 0 auto; }
.dash-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; margin-bottom: 20px; }
.dash-kpi { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; transition: transform .15s, box-shadow .15s; }
.dash-kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dash-kpi-icon  { font-size: 22px; margin-bottom: 4px; }
.dash-kpi-value { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1; }
.dash-kpi-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dash-kpi-sub   { font-size: 11px; color: var(--dim); margin-top: 2px; }
.dash-kpi.danger  .dash-kpi-value { color: var(--danger); }
.dash-kpi.warning .dash-kpi-value { color: var(--warning); }
.dash-kpi.success .dash-kpi-value { color: var(--success); }
.dash-kpi.brand   .dash-kpi-value { color: var(--brand); }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.dash-card-head { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.dash-card-title { font-size: 12px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .06em; }
.dash-card-body  { padding: 14px 18px; }
.dash-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--border); cursor: pointer; border-radius: 6px; transition: background .1s; }
.dash-row:last-child { border-bottom: none; }
.dash-row:hover { background: var(--brand-light); }
.dash-row-title  { font-size: 13px; font-weight: 600; color: var(--text); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-row-client { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.dash-row-date   { font-size: 11px; font-weight: 600; flex-shrink: 0; }
.member-bar-wrap { height: 6px; background: var(--border); border-radius: 3px; flex: 1; overflow: hidden; min-width: 60px; }
.member-bar-fill { height: 100%; border-radius: 3px; transition: width .4s ease; }
.status-funnel { display: flex; gap: 8px; align-items: flex-end; height: 64px; }
.status-funnel-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.status-funnel-bar { width: 100%; border-radius: 4px 4px 0 0; min-height: 6px; transition: opacity .15s; }
.status-funnel-bar:hover { opacity: .75; }
.status-funnel-count { font-size: 15px; font-weight: 800; color: var(--text); }
.status-funnel-label { font-size: 9px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; text-align: center; }

/* ── DEADLINE ALERT ────────────────────────────────────────── */
.deadline-alert { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; animation: pulse 1.5s ease-in-out infinite; }
.deadline-alert.urgent { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }
.deadline-alert.today  { background: #fff7ed; color: #c2410c; border: 1px solid #fdba74; }

/* ── ZEITERFASSUNG ─────────────────────────────────────────── */
.time-bar-wrap { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 3px; }
.time-bar-fill { height: 100%; border-radius: 3px; transition: width .3s ease; }
.time-entry-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.time-entry-row:last-child { border-bottom: none; }

/* ── CHECKLISTE ────────────────────────────────────────────── */
.checklist-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.checklist-item:last-child { border-bottom: none; }
.checklist-cb { width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--border2); flex-shrink: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .12s, border-color .12s; }
.checklist-cb.checked { background: var(--brand); border-color: var(--brand); }
.checklist-text { flex: 1; font-size: 13px; line-height: 1.4; transition: color .12s; }
.checklist-text.done { text-decoration: line-through; color: var(--dim); }

/* ── HILFE MODAL ───────────────────────────────────────────── */
.help-section { margin-bottom: 18px; }
.help-h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.help-p { font-size: 13px; color: var(--muted); line-height: 1.65; }
.help-p strong { color: var(--text); font-weight: 600; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.help-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.help-card-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.help-card-body { font-size: 12px; color: var(--muted); line-height: 1.6; }
.retainer-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; transition: box-shadow .15s; }
.retainer-row:hover { box-shadow: var(--shadow-md); }
.retainer-status { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: transform .15s; }
.retainer-status:hover { transform: scale(1.2); }

/* ── PROJEKT-MODAL EDIT-SEKTIONEN (Kommentare / Checkliste / Zeit) ── */
.modal-edit-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.edit-section {
  padding: 18px 22px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.edit-section:last-child { border-right: none; }
.edit-section-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px; flex-shrink: 0;
}
.edit-section-title {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.edit-section-badge {
  font-size: 10px; background: var(--border); color: var(--muted);
  padding: 1px 6px; border-radius: 10px; font-weight: 600;
}
.edit-section-body { flex: 1; display: flex; flex-direction: column; }

@media (max-width: 900px) {
  .modal-edit-sections { grid-template-columns: 1fr; }
  .edit-section { border-right: none; border-bottom: 1px solid var(--border); }
  .edit-section:last-child { border-bottom: none; }
}
@keyframes fadeUp  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse   { 0%,100% { opacity: 1; } 50% { opacity: .7; } }
[x-cloak] { display: none !important; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1300px) { .board { gap: 10px; padding: 12px 14px; } }
@media (max-width: 960px) {
  .board { grid-template-columns: repeat(3, 1fr); overflow-x: auto; }
  .column { min-width: 200px; }
  .form-row-3 { grid-template-columns: 1fr 1fr; }
  .form-row-4 { grid-template-columns: 1fr 1fr; }
  .dash-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --filterbar-h: 0px; }
  .filterbar { display: none; }
  .board { grid-template-columns: repeat(5, 80vw); padding: 10px 12px; gap: 10px; overflow-x: auto; }
  .topbar { padding: 0 12px; }
  .topbar-title { display: none; }
  .topbar-search input { width: 140px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .form-row-4 { grid-template-columns: 1fr 1fr; }
  .modal-header, .modal-body, .modal-footer { padding-left: 16px !important; padding-right: 16px !important; }
  .modal { border-radius: 12px; }
  .overlay { padding: 12px 8px 30px; }
  .dash-wrap { padding: 12px; }
}
