  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: 'Segoe UI', Arial, sans-serif; background: #f4f6f9; color: #333; min-height: 100vh; }

  .screen { display: none; }
  .screen.active { display: block; }

  #loginScreen {
    min-height: 100vh;
    background: linear-gradient(160deg, #1565C0 0%, #1976D2 50%, #43A047 100%);
    display: none; align-items: center; justify-content: center;
  }
  #loginScreen.active { display: flex; }
  .login-box {
    background: white; border-radius: 20px; padding: 40px 36px;
    width: 400px; max-width: 95vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    display: flex; flex-direction: column; gap: 18px;
    overflow: hidden;
  }
  .login-logo {
    font-size: 32px; font-weight: 900; color: #1565C0;
    letter-spacing: -1px; display: flex; align-items: center; justify-content: center;
    gap: 4px;
  }
  .login-logo-dot { width: 8px; height: 8px; background: #43A047; border-radius: 50%; margin-bottom: 14px; }
  .login-slogan { text-align: center; font-size: 13px; color: #90A4AE; margin-top: -10px; }
  .login-title { font-size: 16px; font-weight: 700; color: #1A2840; text-align: center; }
  .login-field { display: flex; flex-direction: column; gap: 5px; }
  .login-label { font-size: 12px; font-weight: 700; color: #546E7A; }
  .login-input {
    border: 1.5px solid #E3EAF3; border-radius: 10px; padding: 11px 14px;
    font-size: 14px; font-family: inherit; background: #F4F7FB; color: #1A2840;
    outline: none; transition: border-color 0.15s;
    width: 100%; box-sizing: border-box;
  }
  .login-input:focus { border-color: #1976D2; background: white; }
  .login-btn {
    height: 48px; border-radius: 12px; border: none;
    background: linear-gradient(135deg, #1565C0, #1976D2);
    color: white; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: opacity 0.15s;
  }
  .login-btn:hover { opacity: 0.9; }
  .login-btn.green { background: linear-gradient(135deg, #2E7D32, #43A047); }
  .login-divider { display: flex; align-items: center; gap: 10px; }
  .login-divider hr { flex: 1; border: none; border-top: 1px solid #E3EAF3; }
  .login-divider span { font-size: 12px; color: #B0BEC5; }
  .login-error { background: #FEE2E2; color: #C0392B; border-radius: 8px; padding: 10px 14px; font-size: 13px; font-weight: 600; display: none; }
  .login-switch { text-align: center; font-size: 13px; color: #90A4AE; }
  .login-switch a { color: #1976D2; cursor: pointer; font-weight: 700; text-decoration: none; }

  .header {
    background: linear-gradient(135deg, #1565C0 0%, #1976D2 60%, #2196F3 100%);
    padding: 12px 24px; display: flex; align-items: center; gap: 14px;
    box-shadow: 0 2px 12px rgba(21,101,192,0.25);
  }
  .header-logo { font-size: 22px; font-weight: 800; color: white; letter-spacing: -0.5px; display: flex; align-items: center; }
  .logo-dot { width: 6px; height: 6px; background: #43A047; border-radius: 50%; margin-left: 2px; margin-bottom: 10px; }
  .header-sep { width: 1px; height: 24px; background: rgba(255,255,255,0.25); }
  .nav-btn {
    background: rgba(255,255,255,0.18); border: none; border-radius: 8px;
    padding: 6px 14px; color: white; font-size: 13px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; gap: 6px; transition: background 0.15s; white-space: nowrap;
  }
  .nav-btn:hover { background: rgba(255,255,255,0.28); }
  .nav-btn.green { background: #43A047; }
  .nav-btn.green:hover { background: #388E3C; }
  .nav-btn.red { background: rgba(229,57,53,0.8); }
  .header-center { flex: 1; text-align: center; }
  .header-kw { font-size: 16px; font-weight: 800; color: white; }
  .header-date { font-size: 11px; color: rgba(255,255,255,0.75); }
  .header-spacer { flex: 1; }
  .sync-badge {
    background: #E8F5E9; color: #2E7D32; border: 1px solid #C8E6C9;
    border-radius: 20px; padding: 5px 12px; font-size: 12px; font-weight: 700; white-space: nowrap;
  }
  .sync-badge.saving { background: #FFF8E1; color: #F57F17; border-color: #FFE082; }
  .sync-badge.error { background: #FEE2E2; color: #C0392B; border-color: #FFCDD2; }

  #todoPanel { position: sticky; top: calc(var(--plan-bar-h, 0px) + var(--plan-tb-h, 0px)); z-index: 60; }

  .toolbar {
    display: flex; align-items: center; gap: 10px; padding: 10px 24px;
    background: white; border-bottom: 1px solid #dce3ec; flex-wrap: wrap;
  }
  .toolbar-btn {
    padding: 8px 16px; border-radius: 6px; border: none;
    font-size: 13px; font-weight: 700; cursor: pointer;
    transition: all 0.15s; display: flex; align-items: center; gap: 6px; white-space: nowrap;
  }
  .tb-green { background: #43A047; color: white; }
  .tb-green:hover { background: #388E3C; }
  .tb-blue { background: #1565C0; color: white; }
  .tb-blue:hover { background: #1251A3; }
  .filter-select {
    padding: 7px 12px; border: 1.5px solid #ced4da; border-radius: 6px;
    font-size: 13px; font-weight: 600; background: white; color: #374151;
  }
  .toolbar-sep { width: 1px; height: 28px; background: #dee2e6; flex-shrink: 0; }
  .weekend-toggle { display: flex; gap: 6px; margin-left: auto; }
  .wknd-btn {
    padding: 7px 14px; border-radius: 6px; border: 1.5px solid #ced4da;
    background: white; font-size: 13px; font-weight: 700; cursor: pointer; color: #6c757d; transition: all 0.15s;
  }
  .wknd-btn.active { background: #E3F2FD; border-color: #1976D2; color: #1565C0; }

  #kwScreen { padding-bottom: 40px; }
  .kw-hero {
    background: linear-gradient(125deg, #1f3d5b 0%, #1976D2 55%, #2196F3 100%);
    color: white; padding: 20px 24px; margin-bottom: 16px;
  }
  .kw-hero-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
  .kw-hero-sub { font-size: 14px; opacity: 0.85; }
  .kw-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    padding: 0 24px 16px;
  }
  .kw-stat {
    background: white; border: 1px solid #d8e1eb; border-radius: 10px; padding: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  }
  .kw-stat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: #677483; margin-bottom: 4px; }
  .kw-stat-value { font-size: 24px; font-weight: 800; color: #1e2b39; }
  .kw-toolbar { display: flex; gap: 10px; padding: 0 24px 12px; align-items: center; }
  .kw-jahr-btn {
    padding: 8px 16px; border-radius: 6px; border: none;
    font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.15s;
  }
  .kw-jahr-btn.active { background: #1565C0; color: white; }
  .kw-jahr-btn.inactive { background: #E3EAF3; color: #546E7A; }
  .kw-jahr-btn.inactive:hover { background: #D0DAE8; }
  .kw-legend { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
  .kw-legend-chip {
    display: flex; align-items: center; gap: 5px;
    border: 1px solid #d8e0e8; background: white; border-radius: 20px;
    padding: 4px 10px; font-size: 12px; color: #415366; font-weight: 600;
  }
  .legend-dot { width: 8px; height: 8px; border-radius: 50%; }
  .kw-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 24px; }
  .kw-card {
    background: white; border: 1.5px solid #E3EAF3; border-radius: 10px;
    padding: 14px 16px; cursor: pointer; transition: all 0.15s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  }
  .kw-card:hover { border-color: #90A4AE; transform: translateX(2px); }
  .kw-card.aktuelle { background: #5cb85c; border-color: #4cae4c; box-shadow: 0 4px 12px rgba(92,184,92,0.3); }
  .kw-card.naechste { background: #E3F2FD; border-color: #1976D2; }
  .kw-card.vergangen { background: #f1f3f5; border-color: #d6dbe1; }
  .kw-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; }
  .kw-card-title { font-size: 15px; font-weight: 800; color: #1f2e3d; }
  .kw-card.aktuelle .kw-card-title { color: white; }
  .kw-card.naechste .kw-card-title { color: #1565C0; }
  .kw-card.vergangen .kw-card-title { color: #7d8791; }
  .kw-card-range { font-size: 12px; color: #4f5f6f; font-weight: 600; }
  .kw-card.aktuelle .kw-card-range { color: rgba(255,255,255,0.85); }
  .kw-badge {
    font-size: 10px; font-weight: 800; border-radius: 20px; padding: 3px 8px;
    background: white; color: #2f7d32; border: 1px solid #c5e6c5; white-space: nowrap;
  }
  .kw-badge.blau { color: #1565C0; border-color: #BBDEFB; }

  #planScreen { padding-bottom: 40px; }
  .table-wrap { padding: 16px 24px 40px; overflow-x: auto; }
  .plan-table {
    width: 100%; border-collapse: collapse; background: white;
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); min-width: 700px;
    table-layout: fixed;
  }
  .plan-table col { width: auto; }
  .plan-table thead th {
    background: linear-gradient(180deg, #43A047 0%, #388E3C 100%);
    color: white; font-size: 14px; font-weight: 700;
    padding: 12px 14px; text-align: center;
    border-right: 1px solid rgba(255,255,255,0.15);
  }
  .plan-table thead th:last-child { border-right: none; }
  .th-day { font-size: 16px; font-weight: 800; }
  .th-date { font-size: 11px; opacity: 0.85; margin-top: 2px; }
  .th-today { background: linear-gradient(180deg, #E65100 0%, #BF360C 100%) !important; }
  .th-feiertag { background: linear-gradient(180deg, #C62828 0%, #8E0000 100%) !important; }
  .th-feiertag-label { font-size: 10px; opacity: 0.9; margin-top: 2px; font-weight: 700; }

  @media (min-width: 900px) {

    #planScreen > .toolbar {
      position: sticky; top: var(--plan-bar-h, 0px); z-index: 70;
      box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }
    #planScreen .table-wrap { overflow: visible; }
    #planScreen #mainPlanTable { overflow: visible; }
    #planScreen #mainPlanTable thead th {
      position: sticky; top: var(--plan-th-top, 0px); z-index: 50;
      box-shadow: 0 3px 6px rgba(0,0,0,0.18);
    }

    .header:has(.export-dropdown) { position: relative; z-index: 80; }
  }

  .y-speicher-status {
    position: fixed; bottom: 14px; right: 14px; z-index: 900;
    background: rgba(30,43,57,0.92); color: rgba(255,255,255,0.9);
    font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 20px;
    white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    pointer-events: none;
  }

  .y-speicher-status {
    position: fixed; bottom: 14px; right: 14px; z-index: 900;
    background: rgba(30,43,57,0.92); color: rgba(255,255,255,0.9);
    font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 20px;
    white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    pointer-events: none;
  }

  #toastContainer {
    position: fixed; bottom: 20px; right: 20px; z-index: 9999;
    display: flex; flex-direction: column; gap: 8px; max-width: 360px;
  }
  .wedo-toast {
    display: flex; align-items: center; gap: 10px;
    border: 1.5px solid; border-radius: 10px; padding: 12px 14px;
    font-size: 13px; font-weight: 600; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .wedo-toast-sichtbar { opacity: 1; transform: translateY(0); }

  #bestaetigenModal .modal-box { max-width: 380px; }
  .bestaetigen-titel { font-size: 16px; font-weight: 800; color: #1e2b39; margin-bottom: 8px; }
  .bestaetigen-text { font-size: 14px; color: #546E7A; line-height: 1.5; margin-bottom: 18px; }
  .modal-btn-danger {
    background: #C0392B; color: white; border: none; border-radius: 8px;
    padding: 10px 18px; font-size: 14px; font-weight: 700; cursor: pointer;
  }
  .plan-table tbody td {

    padding: 10px; border-right: 1px solid #000;
    border-bottom: 1px solid #000; vertical-align: top; min-width: 160px;

  }

  .cell-inner { min-height: 80px; }
  .plan-table tbody td:last-child { border-right: none; }
  .plan-table tbody td.weekend-col { background: #FAFBFC; }
  .plan-table tbody td.feiertag-col { background: #FDECEA; }
  .plan-table tbody td.today-col { background: #FFF8F0; }
  .cell-inner { display: flex; flex-direction: column; gap: 5px; min-height: 80px; }
  .cell-top-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
  .bauleiter-tag {
    display: inline-flex; align-items: center; gap: 4px;
    background: #E3EAF3; border-radius: 5px; padding: 2px 8px;
    font-size: 11px; font-weight: 800; color: #34495E; min-height: 22px;

    flex: 1 1 auto; min-width: 0; max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .bauleiter-tag.empty { background: #F1F3F5; color: #B0BEC5; font-style: italic; font-weight: 500; }
  .del-btn { background: none; border: none; color: #ccc; font-size: 15px; cursor: pointer; padding: 1px 3px; transition: color 0.12s; flex-shrink: 0; }
  .del-btn:hover { color: #c0392b; }
  .field-lbl { font-size: 10px; font-weight: 800; color: #90A4AE; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 1px; }
  .ma-wrap { position: relative; }
  .ma-field, .auf-field {
    width: 100%; border: 1px solid #dde3eb; border-radius: 5px;
    padding: 5px 7px; font-size: 12px; font-family: inherit;
    resize: none; background: white; color: #1e2b39;
    line-height: 1.4; min-height: 32px; overflow-y: hidden;
    transition: border-color 0.15s, background 0.15s;
  }
  .ma-field:focus, .auf-field:focus { border-color: #1976D2; outline: none; background: #EAF1FB; }
  .auf-field { min-height: 44px; }
  .sug-box {
    position: absolute; top: calc(100% + 2px); left: 0; right: 0;
    background: white; border: 1px solid #c5d5e8; border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12); z-index: 300;
    padding: 5px; display: flex; flex-wrap: wrap; gap: 4px;
  }
  .sug-box.hidden { display: none; }
  .sug-chip {
    background: #EEF4FB; border: 1px solid #C7D3DF; border-radius: 20px;
    padding: 2px 9px; font-size: 11px; font-weight: 600; color: #24405E; cursor: pointer;
  }
  .sug-chip:hover { background: #D5E6F7; }

  .sug-chip-aktiv { background: #1565C0; border-color: #1565C0; color: white; }
  .add-kol-row td { padding: 10px 24px; border-bottom: 1px solid #eef2f5; }
  .add-kol-btn {
    width: 100%; background: #F0FBF4; border: 1.5px dashed #A5D6A7;
    border-radius: 8px; padding: 10px; font-size: 13px; font-weight: 700;
    color: #2E7D32; cursor: pointer; text-align: center; transition: all 0.15s;
  }
  .add-kol-btn:hover { background: #E8F5E9; }
  .free-row td { padding: 8px 10px; border-right: 1px solid #eef2f5; border-top: 1px dashed #dee2e6; vertical-align: top; }
  .free-row td:last-child { border-right: none; }
  .free-title { font-size: 10px; font-weight: 800; color: #90A4AE; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; }
  .free-names { display: flex; flex-wrap: wrap; gap: 4px; }
  .free-chip { background: #F1F3F5; border-radius: 4px; padding: 2px 7px; font-size: 11px; font-weight: 600; color: #4A5568; }

  .loading { text-align: center; padding: 60px 20px; color: #90A4AE; font-size: 15px; }
  .spinner {
    width: 36px; height: 36px; border: 3px solid #E3EAF3;
    border-top-color: #1976D2; border-radius: 50%;
    animation: spin 0.8s linear infinite; margin: 0 auto 16px;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  .footer { text-align: center; padding: 14px; font-size: 12px; color: #90A4AE; border-top: 1px solid #E3EAF3; background: white; margin-top: 10px; }

  .abw-field {
    width: 100%; border: 1px solid #dde3eb; border-radius: 5px;
    padding: 5px 7px; font-size: 12px; font-family: inherit;
    resize: none; background: white; color: #1e2b39;
    line-height: 1.4; min-height: 32px; overflow-y: hidden;
    transition: border-color 0.15s;
  }
  .urlaub-td .abw-field:focus { border-color: #F57F17; outline: none; background: #FFFBF0; }
  .krank-td .abw-field:focus { border-color: #E53935; outline: none; background: #FFF5F5; }
  .doppelt-verplant { background: #FFF3CD !important; border: 2px solid #FF6B35 !important; }
  .doppelt-badge {
    background: #FF6B35; color: white; font-size: 10px; font-weight: 800;
    border-radius: 4px; padding: 1px 5px; margin-left: 4px;
  }
  .abw-row td { border-bottom: 1px solid #eef2f5; border-right: 1px solid #eef2f5; padding: 8px 10px; vertical-align: top; }
  .abw-row td:last-child { border-right: none; }
  .abw-td { min-width: 160px; }
  .abw-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 5px; }
  .urlaub-td { background: #FFF9EC !important; }
  .urlaub-td .abw-label { color: #F57F17; }
  .krank-td { background: #FEF2F2 !important; }
  .krank-td .abw-label { color: #C0392B; }
  .abw-names { display: flex; flex-wrap: wrap; gap: 4px; min-height: 24px; }
  .abw-chip { border-radius: 4px; padding: 2px 8px; font-size: 11px; font-weight: 700; }
  .abw-chip.u { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
  .abw-chip.k { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
  .abw-empty { color: #D1D5DB; font-size: 12px; }

  .plan-table tbody tr.kol-teilzeile td { padding-top: 2px; padding-bottom: 2px; border-bottom: none; }
  .plan-table tbody tr.kol-teilzeile.kz-erste td  { padding-top: 8px; }

  .plan-table tbody tr.kol-teilzeile.kz-letzte td { padding-bottom: 8px; border-bottom: 1px solid #000; }

  .plan-table tbody tr.kol-teilzeile.hov td:not(.weekend-col):not(.feiertag-col):not(.today-col):not(.kopiert) { background: #F8FAFC; }
  .plan-table tbody tr.kol-teilzeile.hov td.today-col:not(.kopiert) { background: #FFF1E3; }

  .plan-table tbody td.kopiert { background: #E3F2FD; box-shadow: inset 3px 0 0 #1565C0; }

  .plan-table tbody td.drop-aktiv { outline: 2px dashed #2E7D32; outline-offset: -2px; }

  .cell-top-row { padding: 0 3px; min-height: 18px; gap: 5px; }

  .bauleiter-tag {
    -webkit-appearance: none; appearance: none;
    background: transparent; border: none; border-bottom: 1px dashed transparent; border-radius: 0;
    padding: 0 2px; min-height: 0;
    font-family: inherit; font-size: 11px; font-weight: 700; color: #78909C;
    cursor: pointer; text-overflow: ellipsis;
  }
  .bauleiter-tag:hover { border-bottom-color: #B0BEC5; color: #34495E; }
  .bauleiter-tag:focus-visible { outline: 2px solid #1976D2; outline-offset: 1px; }
  .bauleiter-tag.empty { background: transparent; color: #B0BEC5; font-style: italic; font-weight: 500; }

  .wdh-btn { display: flex; align-items: center; gap: 2px; }
  .wdh-label { font-size: 10px; font-weight: 800; }

  @media (hover: hover) {
    .kol-del-btn { opacity: 0; transition: opacity 0.12s; }
    .plan-table td:hover .kol-del-btn, .kol-del-btn:focus-visible { opacity: 1; }
  }

  .ma-field, .auf-field { border-color: transparent; background: transparent; }
  .ma-field:hover, .auf-field:hover { border-color: #dde3eb; background: white; }
  .ma-field:focus, .auf-field:focus { border-color: #1976D2; background: #EAF1FB; }
  .ma-field::placeholder, .auf-field::placeholder { color: #B0BEC5; font-weight: 500; }
  textarea[id^="ma-"].ma-field  { font-weight: 800; font-size: 13px; }
  .auf-field                    { font-size: 12px; color: #455A64; }
  textarea[id^="fz-"].ma-field  { font-size: 11px; font-weight: 700; color: #546E7A; }

  .abw-field { border-color: transparent; background: transparent; font-weight: 600; color: #34495E; }
  .abw-field:hover { border-color: #dde3eb; background: white; }
  .urlaub-td .abw-field:focus, .krank-td .abw-field:focus, .abw-field:focus { border-color: #1976D2; background: #EAF1FB; }
  .abw-label { margin-left: 5px; margin-bottom: 2px; }

  .pill-row { display: flex; align-items: center; gap: 5px; margin-top: 2px; }
  .pill-wrap { position: relative; display: inline-block; cursor: pointer; user-select: none; }
  .pill-wrap input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
  .pill {
    display: inline-block; border: 1px solid #E3EAF3; background: #F1F4F7; color: #90A4AE;
    border-radius: 20px; padding: 2px 10px; font-size: 11px; font-weight: 700;
    transition: border-color 0.12s;
  }
  .pill-wrap:hover .pill { border-color: #90A4AE; }
  .pill-wrap input:focus-visible + .pill { outline: 2px solid #1976D2; outline-offset: 1px; }
  .pill-wrap input:checked + .pill-erledigt { background: #E8F5E9; color: #2E7D32; border-color: #A5D6A7; }
  .pill-wrap input:checked + .pill-erledigt::before { content: '✓ '; }
  .pill-wrap input:checked + .pill-anmelden { background: #FFF3CD; color: #8a5a00; border-color: #FFE082; }

  .send-btn, .send-btn:hover { margin-left: auto; color: #1565C0; }

  .urlaub-ma-block { background: white; border-radius: 10px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); overflow: hidden; border: 1px solid #E3EAF3; }
  .urlaub-ma-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; cursor: pointer; background: #F4F7FB; transition: background 0.12s; }
  .urlaub-ma-header:hover { background: #E8F0F8; }
  .urlaub-ma-name { font-size: 14px; font-weight: 700; color: #1e2b39; }
  .urlaub-ma-summary { font-size: 12px; color: #90A4AE; display: flex; gap: 10px; }
  .urlaub-ma-summary span { display: flex; align-items: center; gap: 3px; }
  .urlaub-ma-body { display: none; padding: 12px 16px; }
  .urlaub-ma-body.open { display: block; }
  .urlaub-monat-block { margin-bottom: 12px; }
  .urlaub-monat-header { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #90A4AE; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
  .urlaub-monat-header:hover { color: #546E7A; }
  .urlaub-monat-body { display: none; }
  .urlaub-monat-body.open { display: flex; flex-wrap: wrap; gap: 4px; }
  .urlaub-tag {
    width: 36px; height: 36px; border-radius: 6px; border: 1.5px solid #E3EAF3;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; cursor: pointer; background: white;
    color: #546E7A; transition: all 0.12s; position: relative;
  }
  .urlaub-tag:hover { border-color: #1976D2; background: #EAF1FB; }
  .urlaub-tag.u { background: #FEF3C7; border-color: #F59E0B; color: #92400E; }
  .urlaub-tag.k { background: #FEE2E2; border-color: #EF4444; color: #991B1B; }
  .urlaub-tag.we { background: #F8F9FA; color: #CED4DA; cursor: default; border-color: #F0F0F0; }
  .urlaub-tag.vergangen { opacity: 0.4; }
  .typ-picker { position: absolute; top: 100%; left: 0; z-index: 400; background: white; border: 1px solid #E3EAF3; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,0.12); padding: 6px; display: flex; gap: 5px; white-space: nowrap; }
  .typ-btn { padding: 5px 12px; border-radius: 5px; border: none; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
  .typ-btn.u { background: #FEF3C7; color: #92400E; }
  .typ-btn.k { background: #FEE2E2; color: #991B1B; }
  .typ-btn.del { background: #F1F3F5; color: #6c757d; }

  .sd-tab {
    padding: 12px 20px; border: none; background: none; cursor: pointer;
    font-size: 14px; font-weight: 700; color: #6c757d;
    border-bottom: 3px solid transparent; transition: all 0.15s; font-family: inherit;
  }
  .sd-tab.active { color: #1565C0; border-bottom-color: #1565C0; }
  .sd-tab:hover { color: #1565C0; }

  #kundenakteContent, #maList, #fzList, #adminList { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ma-table { min-width: 640px; }
  .ma-table {
    width: 100%; border-collapse: collapse; background: white;
    border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  }
  .ma-table th {
    background: #F4F7FB; padding: 11px 14px; text-align: left;
    font-size: 12px; font-weight: 800; color: #546E7A; text-transform: uppercase;
    letter-spacing: 0.4px; border-bottom: 1.5px solid #E3EAF3;
  }
  .ma-table td {
    padding: 11px 14px; border-bottom: 1px solid #f0f4f8;
    font-size: 13px; color: #1e2b39; vertical-align: middle;
  }
  .ma-table tr:last-child td { border-bottom: none; }
  .ma-table tr:hover td { background: #F8FAFC; }
  .aktiv-badge {
    display: inline-flex; align-items: center; gap: 4px;
    border-radius: 20px; padding: 2px 9px; font-size: 11px; font-weight: 700;
  }
  .aktiv-badge.ja { background: #E8F5E9; color: #2E7D32; }
  .aktiv-badge.nein { background: #FEE2E2; color: #C0392B; }
  .rolle-badge {
    display: inline-flex; border-radius: 20px; padding: 2px 9px;
    font-size: 11px; font-weight: 700; background: #E3F2FD; color: #1565C0;
  }
  .rolle-badge.admin { background: #F3E5F5; color: #7B1FA2; }
  .rolle-badge.assistent { background: #E8F5E9; color: #2E7D32; }
  .edit-btn {
    padding: 4px 10px; border-radius: 5px; border: 1px solid #dde3eb;
    background: white; font-size: 12px; font-weight: 600; cursor: pointer;
    color: #546E7A; transition: all 0.12s;
  }
  .edit-btn:hover { background: #E3F2FD; border-color: #1976D2; color: #1565C0; }
  .modal-bg { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:1000; align-items:center; justify-content:center; }
  .modal-bg.open { display:flex; }
  .modal-box { background:white; border-radius:14px; padding:28px; width:460px; max-width:95vw; box-shadow:0 10px 40px rgba(0,0,0,0.2); display:flex; flex-direction:column; gap:16px; }

  .modal-box-breit { width: 820px; }
  .modal-header { display:flex; align-items:center; justify-content:space-between; }
  .modal-title { font-size:18px; font-weight:800; color:#1e2b39; }
  .modal-close { background:#f1f3f5; border:none; border-radius:8px; width:32px; height:32px; font-size:18px; cursor:pointer; color:#555; display:flex; align-items:center; justify-content:center; }
  .modal-close:hover { background:#e2e6ea; }
  .modal-btn { padding:10px 24px; border:none; border-radius:8px; font-size:14px; font-weight:700; cursor:pointer; }
  .modal-btn-ok { background:#43A047; color:white; }
  .modal-btn-ok:hover { background:#388E3C; }
  .modal-btn-cancel { background:#e2e6ea; color:#495057; }

  @media print {
    .header .nav-btn, .toolbar, .del-btn, .add-kol-row, .footer, .sug-box, .export-dropdown { display: none !important; }
    body { background: white; }
    .table-wrap { padding: 0; }
    .plan-table { box-shadow: none; }
  }

  .export-dropdown { position: relative; }
  .export-menu {
    display: none; position: absolute; top: 100%; right: 0; margin-top: 6px;
    background: white; border-radius: 10px; box-shadow: 0 4px 18px rgba(0,0,0,0.18);
    overflow: hidden; min-width: 190px; z-index: 50;
  }
  .export-menu.open { display: block; }
  .export-menu button {
    display: block; width: 100%; text-align: left; padding: 11px 16px;
    border: none; background: white; cursor: pointer; font-size: 13px; font-weight: 600;
    color: #1e2b39; border-bottom: 1px solid #f0f2f5;
  }
  .export-menu button:last-child { border-bottom: none; }
  .export-menu button:hover { background: #f4f7fb; }

  .print-kopf {
    display: none;
  }
  .print-kopf-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 2px solid #1565C0; }
  .print-kopf-bild { max-height: 70px; max-width: 180px; object-fit: contain; }
  .print-kopf-mitte { flex: 1; text-align: center; padding: 0 16px; }
  .print-kopf-titel { font-size: 18px; font-weight: 800; color: #1e2b39; }
  .print-kopf-sub { font-size: 13px; color: #546E7A; margin-top: 2px; }
  .print-kopf-platzhalter { width: 180px; height: 70px; }

  #dashboardScreen { background: linear-gradient(160deg, #1565C0 0%, #1976D2 40%, #43A047 100%); min-height: 100vh; }
  .dash-header {
    background: #185FA5;
    padding: 14px 24px; display: flex; align-items: center; justify-content: space-between;
  }
  .dash-logo { color: white; font-size: 22px; font-weight: 900; display: flex; align-items: center; gap: 4px; }
  .dash-logo-dot { width: 8px; height: 8px; background: #43A047; border-radius: 50%; }
  .dash-subtitle { color: rgba(255,255,255,0.8); font-size: 14px; margin-left: 12px; }
  .dash-user { color: white; font-size: 13px; font-weight: 600; background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 20px; display: flex; align-items: center; gap: 8px; }

  .dash-body { display: grid; grid-template-columns: 260px 1fr 300px; gap: 20px; padding: 24px; max-width: 1400px; margin: 0 auto; }

  .dash-menu { background: white; border: 1px solid #E3EAF3; border-radius: 16px; padding: 20px; }
  .dash-menu-title { font-size: 12px; font-weight: 800; color: #90A4AE; margin-bottom: 14px; letter-spacing: 1px; text-transform: uppercase; }
  .dash-menu-btn {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 10px 12px; border-radius: 8px; border: none; cursor: pointer;
    font-size: 14px; font-weight: 500; margin-bottom: 6px;
    transition: filter 0.1s;
  }
  .dash-menu-btn:hover { filter: brightness(0.97); }

  .btn-planung  { background: #E6F1FB; color: #0C447C; }

  .btn-personal { background: #E1F5EE; color: #085041; }
  .btn-fuhrpark { background: #E1F5EE; color: #085041; }

  .btn-admin    { background: #F1F4F7; color: #546E7A; }
  .dash-kw-btns { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
  .dash-kw-btn {
    padding: 10px 12px; border-radius: 8px; border: none; cursor: pointer;
    font-size: 14px; font-weight: 500; transition: filter 0.1s;
  }

  .dash-kw-btn-aktiv { background: #E6F1FB; color: #0C447C; }
  .dash-kw-btn-folge { background: #E6F1FB; color: #0C447C; }
  .dash-kw-btn:hover { filter: brightness(0.97); }

  .dash-right { display: flex; flex-direction: column; gap: 16px; }

  .dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-tile { background: white; border: 1px solid #E3EAF3; border-radius: 12px; padding: 14px; }

  .stat-tile:nth-child(3) { background: #E6F1FB; border: 1.5px solid #85B7EB; }
  .stat-tile:nth-child(3) .stat-tile-header,
  .stat-tile:nth-child(3) .stat-tile-num { color: #0C447C; }
  .stat-tile:nth-child(3) .stat-tile-label { color: #185FA5; }
  .stat-tile-header { font-size: 10px; font-weight: 800; color: #90A4AE; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
  .stat-tile-num { font-size: 28px; font-weight: 900; color: #1e2b39; }
  .stat-tile-label { font-size: 11px; color: #90A4AE; margin-top: 2px; }
  .stat-tile-sub { font-size: 12px; color: #546E7A; margin-top: 8px; display: flex; align-items: center; gap: 4px; }
  .stat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .dot-green { background: #43A047; }
  .dot-orange { background: #F57C00; }
  .dot-blue { background: #1565C0; }

  .dash-notizen {
    background: white; border: 1px solid #E3EAF3; border-radius: 16px; padding: 20px;
    flex: 1; overflow: hidden;
  }
  .dash-notizen-title { font-size: 15px; font-weight: 800; color: #1e2b39; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
  .dash-notizen-body { display: grid; grid-template-columns: 1fr 200px; gap: 16px; }

  .dash-notizen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .notizen-list { background: #F8FAFB; border-radius: 10px; padding: 14px; min-height: 140px; border: 1px solid #E3EAF3; }
  .notizen-item { font-size: 13px; color: #546E7A; padding: 8px 0; border-bottom: 1px solid #f0f2f5; cursor: pointer; }
  .notizen-item:last-child { border-bottom: none; }
  .notizen-item:hover { color: #1565C0; }
  .notizen-add { margin-top: 10px; width: 100%; padding: 8px; border: 1.5px dashed #FFB300; border-radius: 8px; background: transparent; font-size: 12px; color: #F57C00; cursor: pointer; font-weight: 700; }
  .notizen-add:hover { background: #FFF8E1; }
  .todos-panel { background: #F8FAFB; border-radius: 10px; padding: 14px; border: 1px solid #E3EAF3; }
  .todos-title { font-size: 11px; font-weight: 800; color: #90A4AE; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
  .todo-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #546E7A; padding: 7px 0; border-bottom: 1px solid #f0f2f5; }
  .todo-row:last-child { border-bottom: none; }
  .todo-count { font-size: 16px; font-weight: 800; color: #1565C0; }
  .todo-count.warning { color: #E65100; }

  .dash-bottom { display: flex; justify-content: center; gap: 12px; padding: 0 24px 28px; }
  .dash-bottom-btn {
    padding: 13px 32px; border-radius: 12px; border: none; cursor: pointer;
    font-size: 14px; font-weight: 700; color: white;
    transition: transform 0.1s, box-shadow 0.1s;
  }
  .dash-bottom-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }
  .btn-plan { background: linear-gradient(135deg, #1565C0, #00838F); }
  .btn-berichte { background: linear-gradient(135deg, #FFB300, #F57C00); }
  .btn-einstellungen { background: linear-gradient(135deg, #78909C, #546E7A); }

  .dash-logout { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 12px; cursor: pointer; margin-left: 8px; padding: 4px 8px; border-radius: 6px; }
  .dash-logout:hover { color: white; background: rgba(255,255,255,0.1); }

  #planAuswahlScreen, #berichteScreen { background: linear-gradient(160deg, #1565C0 0%, #1976D2 40%, #43A047 100%); min-height: 100vh; }
  .plan-auswahl-body { max-width: 900px; margin: 0 auto; padding: 32px 24px; }
  .plan-auswahl-title { color: white; font-size: 26px; font-weight: 900; margin-bottom: 6px; }
  .plan-auswahl-sub { color: rgba(255,255,255,0.8); font-size: 14px; margin-bottom: 32px; }
  .plan-auswahl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .plan-karte {
    background: white; border-radius: 16px; padding: 28px 24px;
    cursor: pointer; transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex; flex-direction: column; gap: 10px;
    border: 2px solid transparent;
  }
  .plan-karte:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.18); border-color: rgba(255,255,255,0.5); }
  .plan-karte.coming-soon { opacity: 0.55; cursor: not-allowed; }
  .plan-karte.coming-soon:hover { transform: none; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
  .plan-karte-icon { font-size: 40px; }
  .plan-karte-title { font-size: 20px; font-weight: 900; color: #1e2b39; }
  .plan-karte-desc { font-size: 13px; color: #546E7A; line-height: 1.5; }
  .plan-karte-badge {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 800; margin-top: 4px; width: fit-content;
  }
  .badge-aktiv { background: #E8F5E9; color: #2E7D32; }
  .badge-bald { background: #FFF8E1; color: #F57F17; }
  .plan-karte-woche { border-top: 4px solid #1565C0; }
  .plan-karte-pflege { border-top: 4px solid #43A047; }
  .plan-karte-winter { border-top: 4px solid #00838F; }
  .plan-karte-jahres { border-top: 4px solid #FFB300; }

  #pflegeScreen { padding-bottom: 60px; }

  .pflege-kunde-block { margin: 0 24px 0px; }
  .pflege-kunde-header {
    background: linear-gradient(135deg, #E65100, #F57C00);
    color: white; padding: 10px 16px; border-radius: 8px 8px 0 0;
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 20px;
  }
  .pflege-kunde-name { font-size: 15px; font-weight: 900; }
  .pflege-kunde-meta { font-size: 12px; opacity: 0.85; display: flex; gap: 16px; }
  .pflege-kunde-actions { display: flex; gap: 8px; }
  .pflege-kunde-btn {
    background: rgba(255,255,255,0.2); border: none; border-radius: 6px;
    color: white; font-size: 11px; font-weight: 700; padding: 4px 10px;
    cursor: pointer; transition: background 0.15s;
  }
  .pflege-kunde-btn:hover { background: rgba(255,255,255,0.35); }

  .pflege-table-wrap { overflow-x: auto; margin: 0 24px; }
  .pflege-table {
    width: 100%; border-collapse: collapse; background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06); min-width: 1100px;
    border-radius: 0 0 8px 8px; overflow: hidden;
  }
  .pflege-table thead th {
    background: #37474F; color: white; font-size: 11px; font-weight: 700;
    padding: 8px 10px; text-align: center; white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,0.1);
  }
  .pflege-table thead th:last-child { border-right: none; }
  .pflege-table thead th.ag-header { background: #455A64; }
  .pflege-table tbody td {
    padding: 7px 9px; border-right: 1px solid #eef2f5;
    border-bottom: 1px solid #eef2f5; font-size: 12px; color: #334155;
    vertical-align: middle;
  }
  .pflege-table tbody tr:hover td { background: #F8FAFB; }
  .pflege-table tbody td:last-child { border-right: none; }

  .ag-cell {
    text-align: center; min-width: 68px; padding: 4px 6px !important;
    position: relative;
  }
  .ag-input {
    width: 100%; border: 1.5px solid #E3EAF3; border-radius: 6px;
    padding: 4px 5px; font-size: 11px; font-weight: 700; text-align: center;
    font-family: inherit; background: white; cursor: pointer;
    transition: all 0.15s; color: #334155;
  }
  .ag-input:focus { outline: none; border-color: #1976D2; }
  .ag-input.ag-leer { background: white; color: #B0BEC5; }
  .ag-input.ag-geplant { background: #FFF9C4; border-color: #F9A825; color: #E65100; font-weight: 800; }
  .ag-input.ag-erledigt { background: #E8F5E9; border-color: #43A047; color: #2E7D32; font-weight: 800; }
  .ag-input.ag-zukunft { background: #F5F5F5; border-color: #CFD8DC; color: #607D8B; }
  .ag-input.ag-inaktiv { background: #ECEFF1; border-color: #ECEFF1; color: #B0BEC5; cursor: not-allowed; }
  .ag-zaehler {
    text-align: center; font-size: 11px; font-weight: 800;
    color: #1565C0; background: #E3F2FD; border-radius: 6px;
    padding: 4px 8px; white-space: nowrap;
  }

  .pflege-toolbar {
    display: flex; align-items: center; gap: 10px; padding: 12px 24px;
    background: white; border-bottom: 1px solid #dce3ec; flex-wrap: wrap;
  }

  .kunde-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; display: none;
  }
  .kunde-modal-overlay.active { display: flex; }
  .kunde-modal {
    background: white; border-radius: 16px; padding: 28px;
    width: 560px; max-width: 95vw; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  }
  .kunde-modal-title { font-size: 18px; font-weight: 900; color: #1e2b39; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
  .kunde-modal-section { font-size: 11px; font-weight: 800; color: #90A4AE; text-transform: uppercase; letter-spacing: 0.5px; margin: 16px 0 8px; }
  .kunde-modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
  .kunde-modal-field { display: flex; flex-direction: column; gap: 4px; }
  .kunde-modal-label { font-size: 11px; font-weight: 700; color: #546E7A; }
  .kunde-modal-input {
    border: 1.5px solid #E3EAF3; border-radius: 8px; padding: 9px 12px;
    font-size: 13px; font-family: inherit; color: #1e2b39; background: #F8FAFB;
  }
  .kunde-modal-input:focus { outline: none; border-color: #1976D2; background: white; }

  .leistung-liste { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
  .leistung-zeile {
    background: #F8FAFB;
    border-radius: 8px; padding: 8px 10px; border: 1px solid #E3EAF3;
  }
  .leistung-zeile input, .leistung-zeile select {
    border: 1px solid #E3EAF3; border-radius: 6px; padding: 6px 8px;
    font-size: 12px; font-family: inherit; background: white; color: #1e2b39;
    width: 100%; box-sizing: border-box;
  }
  .leistung-zeile input:focus, .leistung-zeile select:focus { outline: none; border-color: #1976D2; }
  .leistung-del-btn { background: none; border: none; color: #BDBDBD; cursor: pointer; font-size: 16px; padding: 2px 4px; }
  .leistung-del-btn:hover { color: #c0392b; }
  .add-leistung-btn {
    background: #F0FBF4; border: 1.5px dashed #A5D6A7; border-radius: 8px;
    padding: 8px; font-size: 12px; font-weight: 700; color: #2E7D32;
    cursor: pointer; width: 100%; text-align: center;
  }
  .add-leistung-btn:hover { background: #E8F5E9; }

  .pflege-empty {
    text-align: center; padding: 60px 20px; color: #90A4AE;
    font-size: 15px;
  }
  .pflege-empty-icon { font-size: 48px; margin-bottom: 12px; }

.walter-spalte, #walterOverlay {
  background: white; border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex; flex-direction: column; overflow: hidden;
}
.walter-spalte { height: calc(100vh - 220px); min-height: 420px; }
.walter-kopf {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #F0F2F5;
  font-size: 14px; font-weight: 800; color: #1e2b39; background: #F8F9FA;
}
.walter-verlauf { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.walter-msg { max-width: 88%; padding: 9px 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.walter-msg-walter { background: #E3F2FD; color: #1e2b39; align-self: flex-start; border-bottom-left-radius: 3px; }
.walter-msg-nutzer { background: #1565C0; color: white; align-self: flex-end; border-bottom-right-radius: 3px; }
.walter-bestaetigen-bar { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid #F0F2F5; justify-content: flex-end; }
.walter-eingabe-zeile { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid #F0F2F5; }
.walter-eingabe-zeile input {
  flex: 1; border: 1.5px solid #E3EAF3; border-radius: 8px; padding: 9px 12px;
  font-size: 13px; font-family: inherit; background: #F4F7FB; color: #1A2840;
}
.walter-eingabe-zeile button {
  width: 38px; height: 38px; border-radius: 8px; border: none; background: #1565C0;
  color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.walter-eingabe-zeile button:hover { background: #0D47A1; }

#walterFloatBtn {
  position: fixed; bottom: 20px; left: 20px; z-index: 9998;
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, #1565C0, #0D47A1); color: white;
  box-shadow: 0 4px 14px rgba(21,101,192,0.4); cursor: pointer;
  align-items: center; justify-content: center;
}
#walterFloatBtn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(21,101,192,0.5); }

#walterOverlay {
  position: fixed; bottom: 84px; left: 20px; z-index: 9998;
  width: 340px; height: 460px;
  transform: scale(0.9) translateY(10px); opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
#walterOverlay.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
  .dash-body { grid-template-columns: 1fr; }
  .walter-spalte { height: 380px; }
}

@media (max-width: 640px) {
  .header {
    flex-wrap: wrap;
    padding: 10px 14px;
    row-gap: 8px;
  }
  .header-center { flex: 1 1 100%; order: 3; text-align: center; }
  .header-spacer { display: none; }

  .dash-header {
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 12px 16px;
  }
  .dash-subtitle { display: none; }
  .dash-user { font-size: 12px; padding: 5px 10px; flex-wrap: wrap; }

  .dash-body { padding: 14px; gap: 14px; }
  .dash-stats { grid-template-columns: 1fr; }
  .dash-notizen-body { grid-template-columns: 1fr; }
  .dash-notizen-grid { grid-template-columns: 1fr; }
  .y-speicher-status { font-size: 10px; padding: 4px 9px; bottom: 10px; right: 10px; }
  .kw-stats { grid-template-columns: 1fr; }
  .dash-bottom { flex-wrap: wrap; padding: 0 14px 20px; }
  .dash-bottom-btn { flex: 1 1 100%; }

  .toolbar { padding: 10px 14px; }

  html, body { overflow-x: hidden; }

  #wbBuch, #nbBuch { grid-template-columns: 1fr; }
  .wb-seite-links { border-right: none; border-bottom: 1px solid #ecdfc4; }
  #nbBuch .nb-seite.links { border-right: none; border-bottom: 1px solid #ecdfc4; }

  .plan-auswahl-grid { grid-template-columns: 1fr; }

  .handbuch-layout { flex-direction: column; padding: 14px; gap: 14px; }
  .handbuch-sidebar { width: 100%; }
}

.wissensbank-body { max-width: 1000px; margin: 0 auto; padding: 24px; }
.wissensbank-lade-hinweis { text-align: center; color: #90A4AE; font-size: 14px; padding: 48px 0; }
.wissensbank-lade-hinweis.wissensbank-fehler { color: #C0392B; }

.wb-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.wb-toolbar-titel { font-size: 20px; font-weight: 900; color: #1e2b39; margin-right: auto; }
.wb-such-wrap { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.wb-such-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #90A4AE; display: flex; }
.wb-such-input {
  width: 100%; border: 1.5px solid #E3EAF3; border-radius: 10px; padding: 9px 14px 9px 34px;
  font-size: 13px; font-family: inherit; background: #F4F7FB; color: #1A2840; outline: none; transition: border-color 0.15s;
}
.wb-such-input:focus { border-color: #1976D2; background: white; }
.wb-neue-kategorie-btn {
  background: #43A047; color: white; border: none; border-radius: 8px; padding: 10px 18px;
  font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background 0.15s;
}
.wb-neue-kategorie-btn:hover { background: #388E3C; }

.wb-kategorien-liste { display: flex; flex-direction: column; gap: 16px; }

.wb-kategorie-karte {
  background: white; border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); border-top: 4px solid #1565C0;
}
.wb-kategorie-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.wb-kategorie-titel { font-size: 16px; font-weight: 800; color: #1e2b39; }
.wb-kategorie-beschreibung { font-size: 12.5px; color: #78909C; margin-top: 2px; }

.wb-unterpunkte { display: flex; flex-direction: column; gap: 10px; }
.wb-unterpunkt { background: #F7F9FB; border: 1px solid #EEF2F6; border-radius: 10px; padding: 12px 14px; }
.wb-unterpunkt-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.wb-unterpunkt-titel { font-size: 13.5px; font-weight: 700; color: #1e2b39; }
.wb-unterpunkt p { font-size: 12.5px; color: #455A64; line-height: 1.5; margin-bottom: 2px; }
.wb-unterpunkt p b { color: #1e2b39; }
.wb-leer { font-size: 12.5px; color: #B0BEC5; font-style: italic; }
.wb-meta { font-size: 11px; color: #B0BEC5; margin-top: 6px; }

.wb-badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; }
.wb-badge-allgemein { background: #E3F2FD; color: #1565C0; }
.wb-badge-kunde { background: #FFF3E0; color: #E65100; }
.wb-badge-firma { background: #E8F5E9; color: #2E7D32; }

.timeline-body { max-width: 780px; margin: 0 auto; padding: 32px 20px 60px; }
.timeline-intro { text-align: center; margin-bottom: 40px; }
.timeline-intro h1 { font-size: 24px; color: #1e2b39; margin-bottom: 10px; }
.timeline-intro p { color: #607D8B; font-size: 14px; line-height: 1.6; max-width: 560px; margin: 0 auto; }

.timeline-line { position: relative; padding-left: 36px; }
.timeline-line::before {
  content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, #90CAF9, #1565C0);
}
.timeline-eintrag { position: relative; margin-bottom: 36px; }
.timeline-punkt {
  position: absolute; left: -36px; top: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: #1565C0; color: white; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px white;
}
.timeline-karte {
  background: white; border-radius: 14px; padding: 18px 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.timeline-karte-heute { border: 2px solid #1565C0; }
.timeline-jahr { font-size: 11px; font-weight: 800; color: #1565C0; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 4px; }
.timeline-titel { font-size: 17px; font-weight: 800; color: #1e2b39; margin-bottom: 12px; }
.timeline-karte img { width: 100%; border-radius: 8px; border: 1px solid #E3EAF3; margin-bottom: 12px; display: block; }
.timeline-karte p { font-size: 13.5px; color: #546E7A; line-height: 1.6; margin: 0; }
.timeline-karte code { background: #F4F7FB; padding: 1px 5px; border-radius: 4px; font-size: 12px; }

.plan-karte-timeline .plan-karte-icon { color: #1565C0; }

.todo-chip {
  background: white; border: 1px solid #FFE082; border-radius: 8px; padding: 6px 10px;
  font-size: 12.5px; color: #5D4037; display: flex; align-items: center; gap: 6px;
}
.todo-chip-quelle {
  font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px;
  color: #F57C00; background: #FFF3E0; border-radius: 4px; padding: 1px 5px;
}
.todo-chip-manuell { background: #F3F0FF; border-color: #D1C4E9; color: #4527A0; }
.todo-chip-manuell button {
  background: none; border: none; color: inherit; opacity: 0.6; cursor: pointer;
  font-size: 13px; line-height: 1; padding: 0 0 0 2px;
}
.todo-chip-manuell button:hover { opacity: 1; }

.todo-chip-nr {
  font-size: 10px; font-weight: 800; color: white; background: #BCA477;
  border-radius: 50%; width: 16px; height: 16px; display: inline-flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.todo-chip-manuell .todo-chip-nr { background: #7E57C2; }
.todo-chip-eingabe { flex: 1; min-width: 180px; }
.todo-chip-eingabe input {
  width: 100%; border: 1px dashed #D7CCC8; border-radius: 8px; padding: 6px 10px;
  font-size: 12.5px; font-family: inherit; background: white; color: #5D4037;
}

.zt-anleitung {
  background: #E3F2FD; border: 1px solid #BBDEFB; border-radius: 10px;
  padding: 12px 16px; font-size: 13px; color: #0D47A1; margin-bottom: 18px;
}
.zt-toolbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: white; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.zt-toolbar label { font-size: 13px; color: #546E7A; display: flex; align-items: center; gap: 8px; }
.zt-toolbar select { padding: 7px 10px; border: 1px solid #dde3e8; border-radius: 8px; font-size: 13px; min-width: 200px; }
.zt-toolbar input[type="number"] { width: 70px; padding: 6px 8px; border: 1px solid #dde3e8; border-radius: 6px; font-size: 13px; text-align: center; }
.zt-ergebnis-hinweis { font-size: 12.5px; color: #90A4AE; margin-left: auto; }

.zt-kunde-block { margin-bottom: 28px; }
.zt-kunde-kopf { font-size: 13px; color: #F57C00; font-weight: 700; margin-bottom: 10px; }
.zt-objekt-kopf { background: #F4F7FB; color: #607D8B; font-size: 11px; text-transform: uppercase; width: 180px; }
.zt-leistung-kopf { background: #F4F7FB; cursor: pointer; user-select: none; vertical-align: top; min-width: 110px; }
.zt-leistung-kopf:hover { background: #E3F2FD; }
.zt-lk-name { font-weight: 700; color: #1e2b39; font-size: 12.5px; }
.zt-lk-anzahl { font-size: 10px; color: #607D8B; font-weight: 400; margin-top: 2px; }
.zt-lk-stift { font-size: 10px; color: #90A4AE; }
.zt-leer-hinweis { text-align: center; color: #90A4AE; padding: 30px; background: white; border-radius: 12px; font-size: 13px; }

.zt-suchbegriff-zeile {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 10px; border-radius: 8px; background: #F4F7FB; margin-bottom: 6px; font-size: 13px;
}
.zt-suchbegriff-zeile button { background: none; border: none; color: #c0392b; cursor: pointer; font-size: 15px; padding: 0 4px; }

#teamsPanel { padding: 4px 0 20px; }
.teams-leiste { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.teams-hinweis { font-size:12px; color:#78909C; }
.teams-leer { text-align:center; padding:40px 16px; color:#90A4AE; font-size:13px; line-height:1.6; }
.teams-leer-wert { color:#B0BEC5; }
.teams-name { font-weight:800; color:#1e2b39; }
.teams-ma { font-weight:700; }
.teams-aktionen { text-align:right; white-space:nowrap; }

.team-modal-bg { position:fixed; inset:0; background:rgba(20,30,45,.45); display:flex; align-items:center; justify-content:center; z-index:3000; padding:16px; }
.team-modal { background:#fff; border-radius:14px; padding:18px; width:100%; max-width:460px; box-shadow:0 10px 40px rgba(0,0,0,.3); }
.team-modal h3 { margin:0 0 6px; font-size:17px; color:#1e2b39; }
.team-modal label { display:block; font-size:11px; font-weight:800; color:#546E7A; margin:12px 0 4px; text-transform:uppercase; letter-spacing:.2px; }
.team-modal input, .team-modal textarea { width:100%; box-sizing:border-box; border:1px solid #E3EAF3; border-radius:8px; padding:8px 10px; font:inherit; font-size:13px; }
.team-modal textarea { resize:none; }
.team-modal input:focus, .team-modal textarea:focus { outline:none; border-color:#1565C0; box-shadow:0 0 0 3px rgba(21,101,192,.12); }
.team-modal-hinweis { font-size:12px; color:#546E7A; margin-top:6px; min-height:16px; }
.team-modal-warn { color:#8a5a00; font-weight:700; }
.team-modal-aktionen { display:flex; justify-content:flex-end; gap:8px; margin-top:16px; }

.team-modal { max-width: 500px; }

.team-verf-titel { margin-top: 12px; }
.team-verf-anzahl { font-weight:600; color:#B0BEC5; }
.team-verfuegbar { max-height:140px; overflow:auto; }
.team-free-chip { cursor:pointer; font-size:12px; padding:3px 9px; }
.team-free-chip:hover { background:#D5E6F7; color:#24405E; }
.team-free-aktiv, .team-free-aktiv:hover { background:#1565C0; color:#fff; }
.team-auswahl-leer { font-size:12px; color:#90A4AE; align-self:center; }

.team-menue { position:absolute; z-index:3000; background:#fff; border-radius:12px; box-shadow:0 8px 30px rgba(0,0,0,.22); padding:8px; max-height:70vh; overflow:auto; }
.team-menue-titel { font-size:11px; font-weight:800; color:#78909C; text-transform:uppercase; letter-spacing:.3px; margin:4px 8px 6px; }
.team-menue-leer { padding:10px; font-size:13px; color:#78909C; line-height:1.5; }
.team-menue-info { margin:6px 8px 4px; padding-top:8px; border-top:1px solid #eef2f5; font-size:12px; color:#78909C; }
.team-menue-eintrag { display:block; width:100%; text-align:left; background:none; border:0; border-radius:8px; padding:9px 10px; cursor:pointer; font-family:inherit; }
.team-menue-eintrag:hover { background:#E3F2FD; }
.team-menue-name { display:block; font-weight:800; font-size:14px; color:#1e2b39; }
.team-menue-ma { display:block; font-size:12px; color:#546E7A; margin-top:2px; }
.team-menue-teil { display:block; margin-top:4px; font-size:11px; font-weight:700; color:#546E7A; }
.team-menue-abw { display:inline-block; margin-top:4px; background:#FFF3CD; color:#8a5a00; border-radius:6px; padding:1px 7px; font-size:11px; font-weight:800; }

.add-kol-gruppe { display: flex; gap: 8px; align-items: stretch; }
.add-kol-gruppe .add-kol-btn { width: auto; flex: 1 1 auto; }
.add-kol-gruppe .add-team-btn { flex: 0 0 30%; background:#F3F8FE; border-color:#90CAF9; color:#1565C0; }
.add-kol-gruppe .add-team-btn:hover { background:#E3F2FD; }

.pill-row { flex-wrap: wrap; row-gap: 6px; }
.pill-wrap { flex-shrink: 0; }
.send-btn { flex-shrink: 0; padding: 6px 10px !important; }
.send-btn svg { width: 20px; height: 20px; }
.add-kol-gruppe { position: sticky; left: 0; max-width: min(100%, calc(100vw - 32px)); box-sizing: border-box; }

#planContent.bl-plan-modus .abw-row { display: none; }

.free-ersatz-block { flex: 0 0 100%; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.free-ersatz-block .free-title { flex: 0 0 100%; margin-bottom: 0; }
.free-chip.ersatz { background: #E3F2FD; color: #1565C0; }

.anm-liste { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.anm-liste th { background: #546E7A; color: #fff; text-align: left; padding: 8px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
.anm-liste td { padding: 8px 10px; border-bottom: 1px solid #eef2f5; font-size: 13px; vertical-align: top; }
.anm-liste tr.anm-tag td { background: #FFF3E0; color: #BF360C; font-weight: 800; padding: 6px 10px; }
.anm-liste tr.anm-tag.heute td { background: #FFE0B2; }
.anm-liste .pill-row { margin: 0; }
.anm-liste .anm-bl { font-size: 11px; font-weight: 700; color: #78909C; }
.anm-liste tr.anm-weg td { opacity: 0.45; text-decoration: line-through; }
.anm-leer { padding: 30px !important; text-align: center; color: #90A4AE; }

.ws-tabs{display:flex;gap:4px;margin-bottom:16px;border-bottom:2px solid #eef1f4;overflow-x:auto}
.ws-tab{padding:10px 16px;border:none;background:none;font-size:14px;font-weight:700;color:#90A4AE;cursor:pointer;border-bottom:3px solid transparent;margin-bottom:-2px;white-space:nowrap}
.ws-tab.aktiv{color:#1565C0;border-bottom-color:#1565C0}
.ws-badge{background:#C0392B;color:#fff;border-radius:10px;padding:1px 7px;font-size:11px}
.ws-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-bottom:16px}
.ws-kpi{border-radius:10px;padding:14px;color:#fff;display:flex;flex-direction:column}
.ws-kpi b{font-size:28px;line-height:1}.ws-kpi span{font-size:12px;opacity:.9;margin-top:4px}
.ws-kpi.gruen{background:#2E7D32}.ws-kpi.blau{background:#1565C0}.ws-kpi.rot{background:#C0392B}.ws-kpi.grau{background:#607D8B}
.ws-leiste{display:flex;gap:10px;margin-bottom:14px;flex-wrap:wrap;align-items:center}
.ws-suche,.ws-link,.ws-notiz{padding:8px 10px;border:1px solid #cfd8dc;border-radius:8px;font-size:14px;min-width:0}
.ws-suche{flex:1;min-width:160px}.ws-link{width:100%;font-size:12px;margin:6px 0}.ws-notiz{flex:1}
.ws-filter{padding:7px 14px;border:1px solid #cfd8dc;background:#fff;border-radius:18px;font-weight:700;cursor:pointer;color:#546E7A}
.ws-filter.aktiv{background:#1565C0;color:#fff;border-color:#1565C0}
.ws-tabelle-wrap{overflow-x:auto;background:#fff;border-radius:10px;border:1px solid #eef1f4}
.ws-tabelle{width:100%;border-collapse:collapse;font-size:14px}
.ws-tabelle th{text-align:left;padding:9px 12px;background:#f5f7f9;color:#546E7A;font-size:12px;text-transform:uppercase}
.ws-tabelle td{padding:9px 12px;border-top:1px solid #eef1f4;vertical-align:top}
.ws-tabelle.klein{font-size:13px}
.ws-tabelle .klick,.klick{cursor:pointer}.ws-tabelle tr.klick:hover,.ws-tabelle td.klick:hover{background:#f0f6ff}
.ws-inaktiv{opacity:.5}
.ws-leer{padding:24px;text-align:center;color:#90A4AE}
.ws-chip{display:inline-block;padding:2px 9px;border-radius:12px;font-size:12px;font-weight:700;margin-right:4px;background:#eceff1;color:#455A64}
.ws-chip.gruen{background:#E8F5E9;color:#2E7D32}.ws-chip.blau{background:#E3F2FD;color:#1565C0}
.ws-chip.rot{background:#FDECEA;color:#C0392B}.ws-chip.grau{background:#eceff1;color:#455A64}
.ws-chip.status-neu{background:#FFF3E0;color:#E65100}.ws-chip.status-in_arbeit{background:#E3F2FD;color:#1565C0}.ws-chip.status-behoben{background:#E8F5E9;color:#2E7D32}
.ws-chip a{cursor:pointer;margin-left:4px;color:#C0392B}
.ws-kacheln{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.ws-kachel{background:#fff;border:1px solid #eef1f4;border-left:5px solid #90A4AE;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:8px}
.ws-kachel.prio-hoch{border-left-color:#C0392B}.ws-kachel.prio-normal{border-left-color:#F9A825}.ws-kachel.prio-niedrig{border-left-color:#43A047}
.ws-kachel-kopf{display:flex;justify-content:space-between;gap:8px;align-items:center}
.ws-kachel-text{font-size:14px}.ws-klein{font-size:12px;color:#78909C}
.ws-zeile{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.ws-zeile select,.ws-zeile input{padding:7px;border:1px solid #cfd8dc;border-radius:8px;font-size:14px}
.ws-senden{width:38px;height:38px;border-radius:50%;border:none;background:#1565C0;color:#fff;font-size:16px;cursor:pointer;flex:none}
.ws-mini{padding:5px 11px;border:1px solid #cfd8dc;background:#fff;border-radius:8px;cursor:pointer;font-size:13px;font-weight:600}
.ws-fotos{display:flex;gap:6px;margin-top:4px}.ws-fotos img{width:56px;height:56px;object-fit:cover;border-radius:6px;cursor:pointer}
.ws-box{background:#fff;border:1px solid #eef1f4;border-radius:10px;padding:14px;margin-bottom:14px}.ws-box h3{margin:0 0 10px;font-size:15px}
.ws-qr-reihe{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.ws-qr-bild{width:220px;height:220px;max-width:100%;margin:6px 0;border:1px solid #eef1f4;border-radius:6px;background:#fff}
.ws-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.ws-modal-bg{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:9999;display:flex;align-items:center;justify-content:center;padding:12px}
.ws-modal{background:#fff;border-radius:12px;width:min(640px,100%);max-height:90vh;overflow:auto}
.ws-modal-kopf{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid #eef1f4}
.ws-modal-body{padding:14px 16px}.ws-modal-body label{display:block;font-size:12px;font-weight:700;color:#546E7A;margin-bottom:10px}
.ws-modal-body label input,.ws-modal-body label select{display:block;width:100%;margin-top:4px;padding:8px;border:1px solid #cfd8dc;border-radius:8px;font-size:14px;box-sizing:border-box}
.ws-modal-body h4{margin:14px 0 6px}.ws-check{display:flex!important;gap:8px;align-items:center}.ws-check input{width:auto!important;margin:0!important}
.ws-modal-knoepfe{display:flex;gap:10px;justify-content:flex-end;margin-top:8px}

.ws-tabelle tr.ws-zeile-prio-hoch td:first-child{border-left:4px solid #C0392B}
.ws-tabelle tr.ws-zeile-prio-normal td:first-child{border-left:4px solid #F9A825}
.ws-tabelle tr.ws-zeile-prio-niedrig td:first-child{border-left:4px solid #43A047}
.ws-tabelle select,.ws-tabelle .ws-notiz{padding:5px;border:1px solid #cfd8dc;border-radius:6px;font-size:13px}

.pill-row { flex-wrap: wrap; row-gap: 4px; }

.pill-row .bauleiter-tag { flex: 0 1 auto; width: auto; max-width: 96px; min-height: 22px; padding: 1px 6px; cursor: pointer; }
.pill-row .bauleiter-tag.bl-auto { font-style: italic; font-weight: 600; color: #5F6F7A; }

.pill-rechts { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; }
.pill-rechts .send-btn { margin-left: 0; }


.werkstatt-td { background: #F7F2EF !important; }
.werkstatt-td .abw-label { color: #6D4C41; }
.wp-block-person { margin: 0 0 6px 5px; font-size: 12px; color: #1e2b39; }
.wp-block-name { font-weight: 800; }
.wp-block-job { border-left: 3px solid #8D6E63; padding: 1px 0 1px 6px; margin-top: 3px; overflow-wrap: anywhere; }
.wp-block-job.wp-fertig { opacity: .55; }
.wp-block-detail { color: #546E7A; }
.wp-warnung { color: #B45309; font-size: 11px; font-weight: 700; }

.wp-marke { display: inline-block; font-size: 10px; font-weight: 800; border-radius: 4px; padding: 1px 6px; margin: 2px 0; background: #ECEFF1; color: #455A64; }
.wp-marke.wp-rot { background: #FDECEA; color: #C0392B; }
.wp-marke.wp-orange { background: #FFF3E0; color: #BF360C; }
.wp-marke.wp-gruen { background: #E8F5E9; color: #2E7D32; }
.wp-knopf { padding: 5px 10px; border: 1px solid #cfd8dc; background: #fff; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; color: #374151; }
.wp-knopf-gruen { background: #2E7D32; border-color: #2E7D32; color: #fff; }
.wp-knopf:disabled { opacity: .5; cursor: default; }

.wp-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; padding: 16px 24px 40px; align-items: start; }
.wp-auftraege h2 { font-size: 15px; margin: 0 0 10px; color: #1f2e3d; }
.wp-anzahl { background: #6D4C41; color: #fff; border-radius: 10px; padding: 1px 8px; font-size: 12px; }
.wp-auftrag { background: #fff; border: 1px solid #dde3eb; border-left: 5px solid #F9A825; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; cursor: grab; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; overflow-wrap: anywhere; }
.wp-auftrag.wp-prio-hoch { border-left-color: #C0392B; }
.wp-auftrag.wp-prio-niedrig { border-left-color: #43A047; }
.wp-auftrag-kopf { display: flex; justify-content: space-between; gap: 8px; width: 100%; }
.wp-prio-text { font-size: 11px; font-weight: 700; color: #78909C; }
.wp-klein { font-size: 12px; color: #78909C; }
.wp-gewaehlt { outline: 3px solid #1976D2; }
.wp-fotos { display: flex; gap: 4px; flex-wrap: wrap; }
.wp-fotos img { width: 48px; height: 48px; object-fit: cover; border-radius: 5px; cursor: pointer; }
.wp-foto-gross { position: fixed; inset: 0; z-index: 10001; background: rgba(0,0,0,.8); display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.wp-foto-gross img { max-width: 100%; max-height: 100%; }

.wp-leiste { margin-bottom: 10px; }
.wp-hinweis { background: #E3F2FD; color: #1565C0; border-radius: 6px; padding: 8px 12px; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.wp-tabelle-wrap { overflow-x: auto; background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.wp-tabelle { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 860px; }
.wp-tabelle thead th { background: #6D4C41; color: #fff; padding: 10px; font-size: 15px; }
.wp-tabelle thead th span { display: block; font-size: 11px; font-weight: 600; opacity: .85; }
.wp-tabelle th.wp-person { width: 140px; }
.wp-tabelle tbody th { text-align: left; vertical-align: top; padding: 10px; font-size: 13px; background: #F7F2EF; border-bottom: 1px solid #000; }
.wp-tabelle tbody th button { display: block; margin-top: 6px; }
.wp-zelle { vertical-align: top; padding: 6px; border-right: 1px solid #eef2f5; border-bottom: 1px solid #000; }
.wp-zelle.wp-abwesend { background: #FEF2F2; }
.wp-zelle.wp-ziel { outline: 2px dashed #2E7D32; outline-offset: -2px; }
.wp-job { position: relative; border: 1px solid #D7CCC8; border-left: 4px solid #8D6E63; border-radius: 6px; padding: 7px 22px 7px 8px; margin-bottom: 6px; font-size: 12px; background: #fff; overflow-wrap: anywhere; }
.wp-job[draggable="true"] { cursor: grab; }
.wp-job.wp-fertig { background: #F1F8F1; border-left-color: #43A047; }
.wp-job-fuss { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 6px; }
.wp-x { position: absolute; top: 2px; right: 2px; border: none; background: none; color: #90A4AE; font-size: 16px; cursor: pointer; }
.wp-x:hover { color: #C62828; }
.wp-text, .wp-neu { width: 100%; box-sizing: border-box; border: 1px solid transparent; border-radius: 5px; font: inherit; font-size: 12px; resize: vertical; padding: 3px; background: transparent; color: #1e2b39; }
.wp-text:hover, .wp-text:focus, .wp-neu { border-color: #cfd8dc; background: #fff; }
.wp-plus, .wp-hier { width: 100%; border: 1.5px dashed #BCAAA4; background: none; border-radius: 6px; padding: 5px; font-size: 12px; font-weight: 700; color: #6D4C41; cursor: pointer; }
.wp-hier { border-color: #1976D2; color: #1565C0; background: #E3F2FD; }
.wp-leer { padding: 18px; text-align: center; color: #90A4AE; font-size: 13px; }

@media (max-width: 900px) {
  .wp-layout { grid-template-columns: minmax(0, 1fr); padding: 12px 14px 30px; }
}
.wp-job > .wp-marke.wp-orange { display: table; }

.fs-body { max-width: 1200px; margin: 0 auto; padding: 16px 24px 70px; }
.fs-kpis { grid-template-columns: repeat(4, 1fr); }
.fs-body .kw-stats { padding: 0 0 14px; }
.fs-kpi { cursor: pointer; text-align: left; font-family: inherit; border-left-width: 5px; }
.fs-kpi span { display: block; }
.fs-kpi-faellig { border-left: 5px solid #C0392B; }
.fs-kpi-bald { border-left: 5px solid #F9A825; }
.fs-kpi-nie { border-left: 5px solid #90A4AE; }
.fs-kpi-ok { border-left: 5px solid #43A047; }
.fs-kpi.aktiv { background: #E3F2FD; }
.fs-leiste { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.fs-leiste input { flex: 1; min-width: 180px; }
#fsListe { overflow-x: auto; }
.fs-badge { display: inline-block; border-radius: 20px; padding: 2px 10px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.fs-faellig { background: #FEE2E2; color: #C0392B; }
.fs-bald { background: #FFF3CD; color: #8a5a00; }
.fs-nie { background: #ECEFF1; color: #455A64; }
.fs-ok { background: #E8F5E9; color: #2E7D32; }
.fs-aktion { white-space: nowrap; text-align: right; }
.fs-leer { padding: 30px; text-align: center; color: #90A4AE; }
#fsModalBox { max-height: 92vh; overflow-y: auto; }
#fsModalInhalt { display: flex; flex-direction: column; gap: 14px; }
.fs-raster, .fs-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fs-klassen { display: flex; flex-wrap: wrap; gap: 6px; }
.fs-klassen input:checked + .pill { background: #1565C0; border-color: #1565C0; color: white; }
.fs-foto { border: 1.5px dashed #90CAF9; background: #F3F8FE; border-radius: 10px; min-height: 120px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #1565C0; font-weight: 700; font-size: 13px; overflow: hidden; text-align: center; }
.fs-foto img { width: 100%; display: block; }
.fs-foto input { display: none; }
#fsUnterschrift { width: 100%; border: 1.5px solid #E3EAF3; border-radius: 8px; background: #F8FAFB; touch-action: none; display: block; margin-bottom: 6px; }
.fs-meldung { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: #E3F2FD; color: #0D47A1; font-size: 13px; line-height: 1.5; }
.fs-warnung { margin-top: 0; background: #FFF3CD; color: #8a5a00; font-weight: 700; }
.kunde-modal-input.fs-gelesen { background: #FFF8E1; border-color: #F9A825; }
.fs-bestaetigen { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; }
.fs-fuss { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.fs-eintrag { border: 1px solid #E3EAF3; border-radius: 10px; padding: 12px; font-size: 13px; line-height: 1.6; }
.fs-eintrag img { max-width: 160px; margin: 6px 6px 6px 0; border: 1px solid #E3EAF3; border-radius: 6px; vertical-align: top; cursor: pointer; }
.fs-eintrag img.gross { max-width: 100%; }

@media (max-width: 700px) {
  .fs-kpis { grid-template-columns: 1fr 1fr; }
  .fs-body { padding: 12px 14px 70px; }
  .fs-raster, .fs-fotos { grid-template-columns: 1fr; }
  #fsModalBox { padding: 18px; max-height: 80vh; }
  .ma-table.fs-tabelle { min-width: 0; }
  .fs-tabelle .fs-neben { display: none; }
  .ma-table.fs-tabelle th, .ma-table.fs-tabelle td { padding: 9px 6px; }
  .fs-aktion .edit-btn { display: block; width: 100%; margin: 3px 0; }
}
