/**
 * TASKMATE - Board Styles
 * =======================
 * Kanban Board, Header, Login - Modernes Light Theme
 */

/* ========================================
   LOGIN SCREEN
   ======================================== */

.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--spacing-6);
  background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-tertiary) 100%);
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: var(--spacing-8);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

.login-header {
  text-align: center;
  margin-bottom: var(--spacing-8);
}

.login-header h1 {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-2);
}

.login-header p {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

.login-form .form-group {
  margin-bottom: var(--spacing-5);
}

.login-form .btn {
  margin-top: var(--spacing-2);
}

/* Enhanced Login Button for better visibility */
.login-form .btn-primary {
  background: #10B981;
  color: #FFFFFF !important;
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  height: 48px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  border: none;
}

.login-form .btn-primary .btn-text {
  color: #FFFFFF !important;
  background: transparent !important;
}

.login-form .btn-primary:hover:not(:disabled) {
  background: #059669;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
}

.login-form .btn-primary:active:not(:disabled) {
  background: #047857;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.login-form .btn-loading {
  display: none;
}

.login-form .btn.loading .btn-text {
  display: none;
}

.login-form .btn.loading .btn-loading {
  display: flex;
}

/* ========================================
   APP LAYOUT
   ======================================== */

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-main);
}

/* ========================================
   HEADER
   ======================================== */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 var(--spacing-4);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  width: 100%;
  box-sizing: border-box;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.view-tabs-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-1) var(--spacing-4);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: var(--header-height);
  z-index: calc(var(--z-sticky) - 1);
}

.logo {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--primary);
  letter-spacing: -0.025em;
  white-space: nowrap;
}

/* Project Selector */
.project-selector {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.project-select {
  width: 100%;
  min-width: 120px;
  max-width: 200px;
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
}

/* View Tabs - Modern Design */
.view-tabs {
  display: flex;
  gap: var(--spacing-1);
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-lg);
  position: relative;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  justify-content: center;
}

.view-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: var(--font-medium);
  color: var(--text-tertiary);
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-default);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Tab Icon */
.view-tab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: all var(--transition-default);
}

/* Hover State */
.view-tab:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
}

.view-tab:hover svg {
  transform: translateY(-1px);
}

/* Active State with Underline */
.view-tab.active {
  color: var(--primary);
  background: rgba(200, 168, 81, 0.1);
  border-radius: var(--radius-md);
}

.view-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  animation: slideIn 0.3s ease-out;
}

/* Animation for active indicator */
@keyframes slideIn {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Subtle border between tabs */
.view-tab:not(:last-child)::before {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: var(--border-light);
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.view-tab:hover::before,
.view-tab:hover + .view-tab::before {
  opacity: 0;
}

/* Search */
.search-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  flex: 1 1 auto;
  min-width: 150px;
  max-width: 450px;
}

.search-icon {
  width: 22px;
  height: 22px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  max-width: 450px;
  padding: 10px 16px;
  background: var(--bg-tertiary);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
}

.search-input:hover {
  background: var(--bg-hover);
}

.search-input:focus {
  background: var(--bg-card);
  border-color: var(--primary);
}

.search-input::placeholder {
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Search Clear Button */
.search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.search-clear:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.search-clear.hidden {
  display: none;
}

/* Search Spinner */
.search-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.search-spinner.hidden {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Search container with active search */
.search-container.has-search .search-input {
  background: var(--bg-card);
  border-color: var(--primary-light);
}

/* Connection Status */
.connection-status {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-2) var(--spacing-3);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
}

.connection-status.online {
  color: var(--success-text);
  background: var(--success-bg);
}

.connection-status.offline {
  color: var(--error-text);
  background: var(--error-bg);
}

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

.connection-status.online .status-dot {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Session Timer */
.session-timer {
  display: flex;
  align-items: center;
  gap: var(--spacing-1);
  padding: var(--spacing-1) var(--spacing-2);
  font-size: var(--text-sm);
  font-family: var(--font-mono, monospace);
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.session-timer.hidden {
  display: none;
}

.session-timer-icon {
  opacity: 0.7;
}

.session-timer.warning {
  color: var(--warning);
  background: rgba(255, 165, 0, 0.15);
}

.session-timer.warning .session-timer-icon {
  opacity: 1;
}

.session-timer.critical {
  color: var(--error);
  background: rgba(255, 59, 48, 0.15);
  animation: pulse-critical 1s ease-in-out infinite;
}

@keyframes pulse-critical {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* User Menu */
.user-menu {
  position: relative;
}

.user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-inverse);
  background: var(--primary);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.user-avatar::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

.offline .user-avatar::after {
  background: var(--error);
}

.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.user-dropdown {
  position: fixed;
  top: 60px;
  right: 20px;
  min-width: 220px;
  padding: var(--spacing-2);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
}

.user-info {
  padding: var(--spacing-3) var(--spacing-3);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--spacing-2);
}

.user-info #user-name {
  display: block;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.user-info #user-role {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ========================================
   OFFLINE BANNER
   ======================================== */

.offline-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
  padding: var(--spacing-2) var(--spacing-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--warning-text);
  background: var(--warning-bg);
  border-bottom: 1px solid var(--warning);
}

.offline-banner .icon {
  width: 18px;
  height: 18px;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.view {
  flex: 1;
  display: none;
  overflow: auto;
}

.view.active {
  display: flex;
  flex-direction: column;
}

/* ========================================
   FILTER BAR
   ======================================== */

.filter-bar-actions {
  display: flex;
  gap: var(--spacing-2);
  align-items: center;
  flex-shrink: 0;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.filter-toggle-btn.has-filters {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}

.filter-popover {
  position: absolute;
  top: 100%;
  right: var(--spacing-4);
  z-index: var(--z-dropdown);
  min-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-4);
}

.filter-popover.hidden {
  display: none;
}

.filter-popover-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.filter-popover-row {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-1);
}

.filter-popover-row label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 200px;
  overflow-y: auto;
}

.filter-checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: 6px 8px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.filter-checkbox-item:hover {
  background: var(--bg-hover);
}

.filter-checkbox-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  background: var(--bg-tertiary);
  cursor: pointer;
  position: relative;
}

.filter-checkbox-item input[type="checkbox"]:hover {
  border-color: var(--primary);
}

.filter-checkbox-item input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.filter-checkbox-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-popover-footer {
  padding-top: var(--spacing-2);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  margin-top: var(--spacing-2);
}

/* ========================================
   BOARD STATS BAR
   ======================================== */

.board-stats-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--spacing-6);
  padding: var(--spacing-2) var(--spacing-4);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.board-stat {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.board-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-lg);
}

.board-stat-icon svg {
  width: 16px;
  height: 16px;
}

.board-stat-icon.stat-open {
  background: var(--primary-light);
  color: var(--primary);
}

.board-stat-icon.stat-progress {
  background: var(--warning-bg);
  color: var(--warning);
}

.board-stat-icon.stat-done {
  background: var(--success-bg);
  color: var(--success);
}

.board-stat-icon.stat-overdue {
  background: var(--error-bg);
  color: var(--error);
}

.board-stat-value {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  min-width: 20px;
}

.board-stat-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.board-stat.stat-danger .board-stat-value {
  color: var(--error);
}

/* ========================================
   BOARD
   ======================================== */

.view-board {
  flex-direction: column !important;
  overflow: hidden;
  padding: 0;
  gap: 0;
  background: var(--bg-main);
}

.board {
  display: flex;
  gap: var(--spacing-3);
  flex: 1;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--spacing-4);
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

/* Column */
.column {
  display: flex;
  flex-direction: column;
  width: var(--column-width, 280px);
  min-width: var(--column-min-width, 260px);
  max-width: 100%;
  max-height: calc(100vh - var(--header-height) - 160px);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: width var(--transition-default), min-width var(--transition-default);
}

.column-header {
  display: flex;
  align-items: center;
  padding: var(--spacing-3);
  border-bottom: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
}

.column-header:active {
  cursor: grabbing;
}

.column-header.dragging,
.column-header[draggable="true"]:active {
  cursor: grabbing;
}

.column-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column-count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: inherit;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
}

.column-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-1);
  opacity: 0;
  transition: opacity var(--transition-fast);
  flex-shrink: 0;
  margin-left: var(--spacing-2);
}

.column-actions .btn-icon {
  color: inherit;
}

.column-actions .btn-icon:hover {
  background: rgba(255, 255, 255, 0.2);
}

.column:hover .column-actions {
  opacity: 1;
}

.column-body {
  flex: 1;
  padding: var(--spacing-2);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.column-footer {
  padding: var(--spacing-2);
  border-top: 1px solid var(--border-light);
}

.btn-add-task {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
  width: 100%;
  padding: var(--spacing-2);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-tertiary);
  background: none;
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-add-task:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}

/* Add Column Button */
.btn-add-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
  width: 280px;
  min-width: 260px;
  min-height: 150px;
  color: var(--text-tertiary);
  background: transparent;
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-default);
  flex-shrink: 0;
}

.btn-add-column:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}

/* ========================================
   TASK CARD
   ======================================== */

.task-card {
  padding: var(--spacing-3);
  background: #F8F9FA;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-default);
}

.task-card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.task-card.selected {
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

.task-card.dragging {
  opacity: 0.5;
  transform: rotate(3deg);
}

/* Column Dragging */
.column.dragging {
  opacity: 0.6;
  transform: scale(0.98);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
}

.column.drag-over-left {
  border-left: 4px solid var(--primary) !important;
  margin-left: -2px;
}

.column.drag-over-right {
  border-right: 4px solid var(--primary) !important;
  margin-right: -2px;
}

.task-card.overdue {
  border-left: 4px solid var(--error);
}

.task-card.due-soon {
  border-left: 4px solid var(--warning);
}

.task-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-2);
  margin-bottom: var(--spacing-2);
}

.task-title {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  line-height: var(--leading-normal);
  word-break: break-word;
}

/* Priority Stars - siehe components.css */

.task-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-3);
  margin-top: var(--spacing-3);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.task-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.task-meta-item .icon {
  width: 14px;
  height: 14px;
}

.task-card-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--spacing-3);
}

.task-label {
  padding: 3px 8px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
}

.task-card-progress {
  margin-top: var(--spacing-3);
}

.task-progress-bar {
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.task-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-default);
}

.task-progress-text {
  display: block;
  margin-top: 4px;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Verknüpfte Genehmigungen */
.task-card-proposals {
  margin-top: var(--spacing-3);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.task-proposal-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding: 4px 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--warning);
}

.task-proposal-item.approved {
  border-left-color: var(--success);
}

.task-proposal-icon {
  font-size: 10px;
  width: 14px;
  text-align: center;
}

.task-proposal-item.pending .task-proposal-icon {
  color: var(--warning);
}

.task-proposal-item.approved .task-proposal-icon {
  color: var(--success);
}

.task-proposal-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--spacing-3);
  padding-top: var(--spacing-3);
  border-top: 1px solid var(--border-light);
}

.task-assignee {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.task-assignees {
  display: flex;
  align-items: center;
}

.task-assignee-avatar {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.task-assignee-avatar.stacked {
  margin-left: -8px;
  border: 2px solid var(--bg-primary);
  box-sizing: content-box;
}

.task-assignee-avatar.stacked:first-child {
  margin-left: 0;
}

.task-assignee-avatar.more-indicator {
  background: var(--bg-tertiary) !important;
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: var(--font-semibold);
}

.task-counts {
  display: flex;
  gap: var(--spacing-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.task-counts span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Drag & Drop */
.column-body.drag-over {
  background: var(--primary-light);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-lg);
}

.drop-indicator {
  height: 4px;
  background: var(--primary);
  border-radius: var(--radius-full);
  margin: var(--spacing-1) 0;
}

/* ========================================
   WEEK STRIP CALENDAR
   ======================================== */

.week-strip {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-2) var(--spacing-4);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.week-strip-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.week-strip-nav:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.week-strip-nav svg {
  width: 16px;
  height: 16px;
}

.week-strip-today {
  flex-shrink: 0;
  font-size: var(--text-xs);
  padding: var(--spacing-1) var(--spacing-2);
}

.week-strip-days {
  display: flex;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.week-strip-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-1) var(--spacing-2);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  min-width: 0;
  transition: all var(--transition-fast);
}

.week-strip-day.today {
  background: var(--primary-light);
  border: 1px solid var(--primary);
}

.week-strip-day.weekend {
  opacity: 0.6;
}

.week-strip-day-name {
  font-size: 10px;
  font-weight: var(--font-semibold);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.week-strip-day.today .week-strip-day-name {
  color: var(--primary);
}

.week-strip-day-number {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  line-height: 1.2;
}

.week-strip-day.today .week-strip-day-number {
  color: var(--primary);
}

.week-strip-day-dots {
  display: flex;
  gap: 3px;
  margin-top: 4px;
  min-height: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

.week-strip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--transition-fast);
  position: relative;
}

.week-strip-dot:hover {
  transform: scale(1.4);
  z-index: 10;
}

.week-strip-dot.start {
  border: 2px solid currentColor;
  background: var(--bg-card);
}

.week-strip-dot.end {
  background: currentColor;
}

.week-strip-dot.both {
  background: currentColor;
  box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px currentColor;
}

/* Tooltip for week strip dots */
.week-strip-tooltip {
  position: fixed;
  z-index: var(--z-tooltip);
  padding: var(--spacing-2) var(--spacing-3);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-xs);
  max-width: 250px;
  pointer-events: none;
}

.week-strip-tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-2);
  padding-bottom: var(--spacing-2);
  margin-bottom: var(--spacing-2);
  border-bottom: 1px solid var(--border-default);
  border-left: 3px solid;
  padding-left: var(--spacing-2);
  margin-left: calc(-1 * var(--spacing-3));
}

.week-strip-tooltip-column-name {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.week-strip-tooltip-count {
  font-size: var(--text-2xs);
  color: var(--text-tertiary);
}

.week-strip-tooltip-task-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-1);
  max-height: 200px;
  overflow-y: auto;
}

.week-strip-tooltip-task {
  display: flex;
  align-items: center;
  gap: var(--spacing-1);
}

.week-strip-tooltip-task-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.week-strip-tooltip-task-dot.start {
  border: 1.5px solid currentColor;
  background: transparent;
}

.week-strip-tooltip-task-dot.end {
  background: currentColor;
}

.week-strip-tooltip-task-title {
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.week-strip-tooltip-task-type {
  color: var(--text-tertiary);
  font-size: var(--text-2xs);
  flex-shrink: 0;
}

/* ========================================
   MULTI-COLUMN LAYOUT
   ======================================== */

/* Standard Layout (einspalltig) */
.board .column-body {
  flex: 1;
  padding: var(--spacing-2);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

