/* ============================================================
   HSP Checkliste V2 — style.css
   ============================================================ */

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

:root {
  --green-900: #064e3b;
  --green-700: #047857;
  --green-600: #059669;
  --green-400: #34d399;
  --green-100: #d1fae5;
  --green-50:  #ecfdf5;
  --blue-600:  #2563eb;
  --blue-100:  #dbeafe;
  --red-600:   #dc2626;
  --red-100:   #fee2e2;
  --yellow-100:#fef9c3;
  --yellow-600:#ca8a04;
  --gray-900:  #111827;
  --gray-700:  #374151;
  --gray-500:  #6b7280;
  --gray-300:  #d1d5db;
  --gray-100:  #f3f4f6;
  --white:     #ffffff;
  --radius:    16px;
  --shadow:    0 8px 32px rgba(0,0,0,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, #0a1628 0%, #0d2137 40%, #0a2e1f 100%);
  min-height: 100vh;
  color: var(--gray-900);
  overflow-x: hidden;
}

/* ---- Animated Background ---- */
.bg-mesh {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15; animation: blobMove 12s ease-in-out infinite;
}
.blob-1 { width: 500px; height: 500px; background: #059669; top: -100px; left: -100px; animation-delay: 0s; }
.blob-2 { width: 400px; height: 400px; background: #2563eb; top: 40%; right: -80px; animation-delay: -4s; }
.blob-3 { width: 350px; height: 350px; background: #7c3aed; bottom: -80px; left: 30%; animation-delay: -8s; }

@keyframes blobMove {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(30px,-40px) scale(1.05); }
  66%       { transform: translate(-20px,20px) scale(0.95); }
}

/* ---- Page ---- */
.page {
  position: relative; z-index: 1;
  max-width: 820px; margin: 0 auto;
  padding: 24px 16px 120px;
}

/* ---- Glass ---- */
.glass {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius);
}

/* ---- Header ---- */
.page-header {
  padding: 24px 28px;
  margin-bottom: 16px;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px;
}
.header-logo-area { display: flex; align-items: center; gap: 16px; }
.header-text h1 { font-size: 1.8rem; font-weight: 800; color: var(--white); line-height: 1.1; }
.header-text .subtitle { color: var(--green-400); font-size: 0.95rem; margin-top: 2px; }

.admin-link {
  display: flex; align-items: center; gap: 6px;
  background: rgba(37,99,235,0.2); border: 1px solid rgba(37,99,235,0.4);
  color: #93c5fd; padding: 8px 16px; border-radius: 50px; font-size: 0.85rem;
  font-weight: 600; text-decoration: none; transition: all 0.2s; white-space: nowrap;
}
.admin-link:hover { background: rgba(37,99,235,0.35); transform: translateY(-1px); }

/* ---- Progress ---- */
.progress-container { }
.progress-info { display: flex; justify-content: space-between; margin-bottom: 8px; }
.progress-label { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.progress-value { color: var(--green-400); font-weight: 700; }
.progress-bar-bg {
  height: 8px; background: rgba(255,255,255,0.1); border-radius: 99px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; width: 0%; background: linear-gradient(90deg, var(--green-600), var(--green-400));
  border-radius: 99px; transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Standort Bar ---- */
.standort-bar {
  display: flex; gap: 16px; padding: 16px 24px; margin-bottom: 16px;
  flex-wrap: wrap;
}
.standort-row {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px;
}
.standort-row label {
  display: flex; align-items: center; gap: 6px;
  color: var(--green-400); font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}
.standort-row label svg { opacity: 0.8; }
.standort-row input, .standort-row select {
  flex: 1; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; padding: 10px 14px;
  color: var(--white); font-family: 'Outfit', sans-serif; font-size: 0.95rem;
  outline: none; transition: border-color 0.2s;
}
.standort-row select option { background: #1a2a3a; color: var(--white); }
.standort-row input:focus, .standort-row select:focus {
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(52,211,153,0.15);
}

/* ---- Sections ---- */
.sections { display: flex; flex-direction: column; gap: 14px; }

.section {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.section:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.25); }

/* Section Group Label */
.section-group-label {
  padding: 12px 20px 4px;
  color: var(--green-400);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-top: 8px;
}

/* Zulassung wrapper */
.zulassung-wrapper {
  background: rgba(37,99,235,0.04);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: var(--radius);
  overflow: hidden;
}
.zulassung-header {
  padding: 16px 20px;
  background: rgba(37,99,235,0.12);
  border-bottom: 1px solid rgba(37,99,235,0.15);
  color: #93c5fd;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.zulassung-bundesland-tag {
  background: rgba(37,99,235,0.3);
  color: #bfdbfe;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
}
.zulassung-sections { display: flex; flex-direction: column; }

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; cursor: pointer; user-select: none;
  transition: background 0.15s;
}
.section-header:hover { background: rgba(255,255,255,0.04); }

.section-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 1rem; font-weight: 700; color: var(--white);
}

.sec-progress-ring {
  width: 28px; height: 28px; transform: rotate(-90deg);
  flex-shrink: 0;
}
.ring-bg  { cx: 14; cy: 14; r: 10; fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 3; }
.ring-fill { cx: 14; cy: 14; r: 10; fill: none; stroke: var(--green-400); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset 0.5s; }

.toggle-icon { color: rgba(255,255,255,0.4); transition: transform 0.25s; }
.section.open .toggle-icon { transform: rotate(180deg); }

/* Section body collapse */
.section-body-wrapper { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.section.open .section-body-wrapper { grid-template-rows: 1fr; }
.section-body { overflow: hidden; }
.section-body-inner { padding: 8px 20px 16px; display: flex; flex-direction: column; gap: 4px; }

/* ---- Items ---- */
.item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px;
  transition: background 0.15s;
  cursor: pointer;
}
.item:hover { background: rgba(255,255,255,0.05); }
.item.checked { opacity: 0.6; }

.custom-checkbox { display: flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.custom-checkbox input[type="checkbox"] { display: none; }
.checkmark {
  width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; background: rgba(255,255,255,0.05);
}
.custom-checkbox input:checked + .checkmark {
  background: var(--green-600); border-color: var(--green-600);
}
.checkmark svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 2.5; opacity: 0; transition: opacity 0.15s; }
.custom-checkbox input:checked + .checkmark svg { opacity: 1; }

.item-text {
  color: rgba(255,255,255,0.85); font-size: 0.9rem; line-height: 1.4; cursor: pointer; flex: 1;
}
.item.checked .item-text { text-decoration: line-through; color: rgba(255,255,255,0.35); }

/* Tristate / Radio Items */
.item-tristate {
  display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px;
  padding: 12px 12px; border-radius: 10px;
  transition: background 0.15s;
}
.item-tristate:hover { background: rgba(255,255,255,0.04); }

.item-label {
  color: rgba(255,255,255,0.85); font-size: 0.9rem; line-height: 1.4;
  flex: 1; min-width: 160px;
}
.tristate-group { display: flex; gap: 6px; flex-wrap: wrap; }

.tristate-group label {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 99px; cursor: pointer;
  font-size: 0.78rem; font-weight: 600;
  border: 1.5px solid transparent;
  transition: all 0.15s;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
}
.tristate-group label input[type="radio"] { display: none; }
.tristate-group label:hover { background: rgba(255,255,255,0.1); }

.tristate-group label.ja       { border-color: rgba(52,211,153,0.3); }
.tristate-group label.ja.active { background: rgba(5,150,105,0.25); border-color: var(--green-400); color: var(--green-400); }
.tristate-group label.nein     { border-color: rgba(220,38,38,0.3); }
.tristate-group label.nein.active { background: rgba(220,38,38,0.2); border-color: #f87171; color: #f87171; }
.tristate-group label.nachgereicht { border-color: rgba(234,179,8,0.3); }
.tristate-group label.nachgereicht.active { background: rgba(234,179,8,0.15); border-color: #fbbf24; color: #fbbf24; }

/* Zulassung tristate (liegt vor / liegt nicht vor) */
.tristate-group label.liegt_vor.active { background: rgba(5,150,105,0.25); border-color: var(--green-400); color: var(--green-400); }
.tristate-group label.liegt_vor { border-color: rgba(52,211,153,0.3); }
.tristate-group label.liegt_nicht_vor { border-color: rgba(220,38,38,0.3); }
.tristate-group label.liegt_nicht_vor.active { background: rgba(220,38,38,0.2); border-color: #f87171; color: #f87171; }

/* ---- Add Row ---- */
.add-row { display: flex; gap: 8px; margin-top: 8px; }
.add-row input {
  flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 9px 12px; color: var(--white);
  font-family: 'Outfit', sans-serif; font-size: 0.85rem; outline: none;
}
.add-row input:focus { border-color: var(--green-400); }
.add-row input::placeholder { color: rgba(255,255,255,0.3); }

.btn-add {
  display: flex; align-items: center; gap: 4px;
  background: rgba(5,150,105,0.2); border: 1px solid rgba(5,150,105,0.3);
  color: var(--green-400); border-radius: 8px; padding: 8px 14px;
  font-size: 0.8rem; font-weight: 600; cursor: pointer; font-family: 'Outfit', sans-serif;
  transition: all 0.15s;
}
.btn-add:hover { background: rgba(5,150,105,0.35); }

.btn-del {
  margin-left: auto; background: transparent; border: none;
  color: rgba(220,38,38,0.5); cursor: pointer; padding: 4px;
  border-radius: 6px; transition: all 0.15s;
}
.btn-del:hover { color: #f87171; background: rgba(220,38,38,0.1); }

/* ---- PDF Button ---- */
.btn-pdf.floating {
  position: fixed; bottom: 28px; right: 28px;
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: var(--white); border: none; border-radius: 50px;
  padding: 14px 24px; font-size: 0.9rem; font-weight: 700;
  font-family: 'Outfit', sans-serif; cursor: pointer;
  box-shadow: 0 4px 20px rgba(5,150,105,0.4);
  transition: all 0.2s; z-index: 100;
}
.btn-pdf.floating:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(5,150,105,0.5); }

/* ---- Toast ---- */
.toast {
  position: fixed; bottom: 90px; right: 28px;
  background: rgba(17,24,39,0.95); border: 1px solid rgba(52,211,153,0.3);
  color: var(--green-400); padding: 12px 20px; border-radius: 12px;
  font-size: 0.85rem; font-weight: 600; z-index: 200;
  transform: translateY(20px); opacity: 0;
  transition: all 0.3s; pointer-events: none;
  backdrop-filter: blur(12px);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ============================================================
   ADMIN PORTAL STYLES
   ============================================================ */
.admin-page {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 24px 16px 60px;
}

.admin-header {
  padding: 24px 28px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.admin-header-left h1 { font-size: 1.8rem; font-weight: 800; color: var(--white); }
.admin-header-left p { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-top: 2px; }

.admin-back-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7); padding: 8px 16px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: all 0.2s;
}
.admin-back-btn:hover { background: rgba(255,255,255,0.12); color: var(--white); }

/* Admin Stats Row */
.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; margin-bottom: 20px;
}
.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 18px 20px;
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card .stat-val {
  font-size: 2rem; font-weight: 800; color: var(--green-400); line-height: 1;
}
.stat-card .stat-label {
  color: rgba(255,255,255,0.5); font-size: 0.8rem; margin-top: 4px;
}

/* Admin Grid */
.admin-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; }
@media (max-width: 800px) { .admin-grid { grid-template-columns: 1fr; } }

/* Location Cards */
.locations-panel h2, .activity-panel h2 {
  color: var(--white); font-size: 1rem; font-weight: 700;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.location-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 18px 20px; margin-bottom: 10px;
  transition: box-shadow 0.2s;
}
.location-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.location-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.location-name { color: var(--white); font-size: 1rem; font-weight: 700; }
.location-bundesland {
  background: rgba(37,99,235,0.2); border: 1px solid rgba(37,99,235,0.3);
  color: #93c5fd; padding: 3px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 600;
}
.location-pct { color: var(--green-400); font-weight: 700; font-size: 0.9rem; }
.location-progress-bg {
  height: 6px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; margin-bottom: 10px;
}
.location-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--green-600), var(--green-400));
  border-radius: 99px; transition: width 0.4s;
}
.location-sections-mini { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-badge {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 99px; padding: 4px 10px; font-size: 0.72rem; color: rgba(255,255,255,0.6);
}
.mini-badge .mini-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.mini-badge .mini-dot.green { background: var(--green-400); }
.mini-badge .mini-dot.yellow { background: #fbbf24; }
.mini-badge .mini-dot.red { background: #f87171; }

/* Activity Panel */
.activity-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 18px;
  height: fit-content;
}
.activity-list { display: flex; flex-direction: column; gap: 8px; max-height: 480px; overflow-y: auto; }
.activity-list::-webkit-scrollbar { width: 4px; }
.activity-list::-webkit-scrollbar-track { background: transparent; }
.activity-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 99px; }

.activity-item {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 10px 12px;
}
.activity-item .act-location { color: var(--green-400); font-size: 0.78rem; font-weight: 700; }
.activity-item .act-text { color: rgba(255,255,255,0.7); font-size: 0.8rem; margin-top: 2px; }
.activity-item .act-time { color: rgba(255,255,255,0.3); font-size: 0.72rem; margin-top: 3px; }
.act-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-400); margin-right: 5px;
}

.no-locations {
  text-align: center; padding: 40px 20px;
  color: rgba(255,255,255,0.3); font-size: 0.9rem;
}

/* Email notify button */
.notify-btn {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(37,99,235,0.3), rgba(37,99,235,0.15));
  border: 1px solid rgba(37,99,235,0.4); color: #93c5fd;
  border-radius: 10px; padding: 10px 16px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  font-family: 'Outfit', sans-serif; transition: all 0.2s;
  width: 100%; justify-content: center; margin-top: 12px;
}
.notify-btn:hover { background: rgba(37,99,235,0.3); }

.clear-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.2);
  color: #f87171; border-radius: 10px; padding: 8px 14px;
  font-size: 0.78rem; font-weight: 600; cursor: pointer;
  font-family: 'Outfit', sans-serif; transition: all 0.2s;
  margin-top: 8px; width: 100%; justify-content: center;
}
.clear-btn:hover { background: rgba(220,38,38,0.2); }

/* Admin Login Overlay */
.login-overlay {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, #0a1628, #0a2e1f);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.login-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(20px); border-radius: 20px;
  padding: 40px; max-width: 360px; width: 100%; text-align: center;
}
.login-card h2 { color: var(--white); font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.login-card p { color: rgba(255,255,255,0.4); font-size: 0.85rem; margin-bottom: 28px; }
.login-card input {
  width: 100%; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; padding: 12px 16px;
  color: var(--white); font-family: 'Outfit', sans-serif; font-size: 1rem;
  outline: none; text-align: center; letter-spacing: 4px;
  margin-bottom: 16px; transition: border-color 0.2s;
}
.login-card input:focus { border-color: var(--green-400); }
.login-card button {
  width: 100%; background: linear-gradient(135deg, var(--green-700), var(--green-600));
  border: none; border-radius: 10px; padding: 12px;
  color: var(--white); font-family: 'Outfit', sans-serif;
  font-size: 1rem; font-weight: 700; cursor: pointer; transition: opacity 0.2s;
}
.login-card button:hover { opacity: 0.9; }
.login-error { color: #f87171; font-size: 0.82rem; margin-top: 8px; display: none; }

/* ============================================================
   MOBILE (Smartphones) — komplette Ansicht optimiert
   ============================================================ */
@media (max-width: 640px) {

  /* --- Grundlayout Checkliste --- */
  .page { padding: 12px 10px 110px; }
  .page-header { padding: 16px 14px; }
  .header-inner { flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
  .header-text h1 { font-size: 1.3rem; }
  .btn-logout { padding: 8px 12px; }
  .standort-bar { flex-direction: column; padding: 14px 14px; gap: 12px; }
  .standort-row { min-width: 0; width: 100%; }
  .section-header { padding: 14px 14px; }
  .section-body-inner { padding: 6px 10px 12px; }

  /* Eingaben mit 16px Schrift — verhindert Auto-Zoom auf dem iPhone */
  .form-input, .add-row input, .item-text-input, .editor-input,
  .standort-row input, .standort-row select, .login-card input,
  .item-date-input, .upload-name {
    font-size: 16px;
  }

  /* --- Checklisten-Punkte: Frage oben, Antwort-Buttons darunter,
         große Touch-Flächen --- */
  .item { padding: 12px 8px; }
  .item-tristate { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 8px; }
  .item-tristate .item-label { min-width: 0; }
  .tristate-group { gap: 8px; }
  .tristate-group label { padding: 9px 14px; font-size: 0.85rem; min-height: 40px; }
  .item-input-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .item-input-row .item-label { min-width: 0; }
  .item-text-input, .item-date-input { width: 100%; min-width: 0; }
  .date-badge { align-self: flex-start; }
  .add-row { flex-wrap: wrap; }
  .add-row input { min-width: 0; }
  .btn-add { flex-shrink: 0; }

  /* --- Upload am Punkt + Dokumente-Panel --- */
  .item-upload-row { padding: 6px 8px 10px 16px; margin-left: 6px; }
  .upload-panel { padding: 14px 14px; }
  .upload-form { flex-direction: column; align-items: stretch; }
  .upload-file-btn { text-align: center; padding: 12px 14px; }
  .upload-file-chosen { max-width: 100%; }
  .upload-name { min-width: 0; }
  #uploadSubmitBtn { justify-content: center; padding: 12px 14px; }
  .file-row { flex-wrap: wrap; }
  .file-row .file-name { flex: 1 1 100%; }
  .file-chip-name { max-width: 180px; }

  /* --- Übergabe-Kette & Banner --- */
  .hc-step { min-width: 64px; }
  .hc-label { font-size: 0.62rem; }
  .handover-complete-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .hb-icon { margin: 0 auto; }
  .hb-btn { justify-content: center; padding: 13px 18px; }

  /* --- Schwebende Buttons & Toast --- */
  .btn-pdf.floating { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 0.85rem; }
  .toast { left: 14px; right: 14px; bottom: 78px; text-align: center; }

  /* --- Login-Seite --- */
  .login-full-page { padding: 16px 12px; }
  .login-big-card { padding: 26px 18px; }
  .login-brand { font-size: 1.35rem; }
  .btn-login { padding: 15px; }

  /* --- Admin-Portal --- */
  .admin-page { padding: 14px 10px 40px; }
  .admin-header { padding: 16px 14px; }
  .admin-header-left h1 { font-size: 1.3rem; }
  .admin-header > div:last-child { width: 100%; }
  .admin-header .notify-btn, .admin-header .admin-back-btn { flex: 1; justify-content: center; margin-top: 0; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px 14px; }
  .stat-card .stat-val { font-size: 1.5rem; }
  .add-location-panel { padding: 16px 14px; }
  .add-loc-form { flex-direction: column; }
  .add-loc-form .form-input { min-width: 0; }
  .btn-add-loc { padding: 13px 20px; }
  .location-card { padding: 14px 14px; }
  .location-card-header { flex-wrap: wrap; gap: 8px; }
  .dept-name { min-width: 84px; font-size: 0.7rem; }

  /* --- Modals (Standort-Detail + Checklisten-Editor): Vollbild --- */
  .detail-overlay { padding: 0; }
  .detail-modal {
    max-width: 100%; width: 100%;
    height: 100vh; height: 100dvh;
    max-height: 100vh; max-height: 100dvh;
    border-radius: 0;
  }
  .detail-header { padding: 14px 14px 12px; flex-wrap: wrap; gap: 10px; }
  .detail-header h3 { font-size: 1.15rem; }
  .detail-progress-row { padding: 12px 10px; }
  .detail-prog-dot { width: 32px; height: 32px; font-size: 0.8rem; }
  .detail-prog-label { font-size: 0.58rem; max-width: 62px; }
  .detail-prog-line { margin-bottom: 28px; min-width: 10px; }
  .detail-body { padding: 14px 12px 24px; }
  .detail-items-grid { grid-template-columns: 1fr; }
  .detail-item { padding: 10px 12px; }
  .detail-dept-header { flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
  .editor-tabs { padding: 10px 12px 0; }
  .editor-tab { padding: 9px 12px; font-size: 0.78rem; }
  .editor-del { width: 38px; height: 38px; }
}

/* Sehr schmale Geräte */
@media (max-width: 380px) {
  .roles-grid { gap: 4px; }
  .role-pill { font-size: 0.68rem; padding: 4px 9px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .hc-step { min-width: 56px; }
}

/* ============================================================
   LOGIN FULL PAGE
   ============================================================ */
.login-full-page {
  position: relative; z-index: 1;
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.login-big-card {
  max-width: 480px; width: 100%;
  padding: 40px; border-radius: 24px;
}
.login-logo {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
}
.login-brand {
  font-size: 1.6rem; font-weight: 800; color: var(--white);
}
.login-sub {
  color: var(--green-400); font-size: 0.9rem; margin-top: 2px;
}
.login-divider {
  height: 1px; background: rgba(255,255,255,0.08); margin-bottom: 28px;
}
.login-title {
  color: var(--white); font-size: 1.3rem; font-weight: 700; margin-bottom: 6px;
}
.login-hint {
  color: rgba(255,255,255,0.4); font-size: 0.85rem; margin-bottom: 24px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; color: rgba(255,255,255,0.6);
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 8px;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 10px; padding: 12px 16px;
  color: var(--white); font-family: 'Outfit', sans-serif;
  font-size: 0.95rem; outline: none; transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--green-400); box-shadow: 0 0 0 3px rgba(52,211,153,0.1); }
.form-input option { background: #1a2a3a; }
.pw-wrap { position: relative; }
.pw-wrap .form-input { padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,0.3);
  cursor: pointer; padding: 4px; transition: color 0.15s;
}
.pw-toggle:hover { color: rgba(255,255,255,0.7); }
.login-error-msg {
  color: #f87171; font-size: 0.82rem; margin-bottom: 12px;
  display: none; text-align: center;
}
.btn-login {
  width: 100%;
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  border: none; border-radius: 12px; padding: 14px;
  color: var(--white); font-family: 'Outfit', sans-serif;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 8px;
}
.btn-login:hover { opacity: 0.92; transform: translateY(-1px); }

.login-roles { margin-top: 28px; }
.roles-label {
  color: rgba(255,255,255,0.3); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px;
}
.roles-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.role-pill {
  padding: 5px 12px; border-radius: 99px; font-size: 0.75rem; font-weight: 600;
  border: 1.5px solid;
}
.role-pill.role-marketing   { background: rgba(167,139,250,0.1); border-color: rgba(167,139,250,0.3); color: #a78bfa; }
.role-pill.role-it          { background: rgba(56,189,248,0.1);  border-color: rgba(56,189,248,0.3);  color: #38bdf8; }
.role-pill.role-buchhaltung { background: rgba(251,146,60,0.1);  border-color: rgba(251,146,60,0.3);  color: #fb923c; }
.role-pill.role-franchise   { background: rgba(52,211,153,0.1);  border-color: rgba(52,211,153,0.3);  color: #34d399; }
.role-pill.role-admin       { background: rgba(244,114,182,0.1); border-color: rgba(244,114,182,0.3); color: #f472b6; }

/* ============================================================
   CHECKLIST PAGE — NEW ELEMENTS
   ============================================================ */
.header-meta {
  display: flex; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap;
}
.role-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 99px; padding: 4px 12px;
  font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.7);
}
.role-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.standort-label {
  color: rgba(255,255,255,0.4); font-size: 0.8rem;
}

.btn-logout {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5); padding: 8px 14px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  font-family: 'Outfit', sans-serif; transition: all 0.2s; white-space: nowrap;
}
.btn-logout:hover { background: rgba(220,38,38,0.1); border-color: rgba(220,38,38,0.3); color: #f87171; }

/* Standort bar with select */
.bundesland-display {
  color: #93c5fd; font-weight: 700; font-size: 0.9rem;
  background: rgba(37,99,235,0.15); border: 1px solid rgba(37,99,235,0.3);
  border-radius: 99px; padding: 4px 12px;
}

/* Handover Bar */
.handover-bar {
  padding: 14px 20px; margin-bottom: 14px;
}
.handover-title {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.5); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px;
}
.handover-chain {
  display: flex; align-items: center; gap: 0; overflow-x: auto;
  padding-bottom: 4px;
}
.handover-chain::-webkit-scrollbar { height: 3px; }
.handover-chain::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 99px; }
.hc-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; min-width: 80px;
}
.hc-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800; color: var(--white);
  transition: all 0.3s;
}
.hc-step.done .hc-dot { color: var(--white); }
.hc-label { font-size: 0.68rem; font-weight: 600; text-align: center; line-height: 1.2; }
.hc-pct   { font-size: 0.68rem; font-weight: 700; }
.hc-line {
  flex: 1; height: 2px; background: rgba(255,255,255,0.08); min-width: 20px;
  margin-bottom: 20px; transition: background 0.3s;
}
.hc-line.done { background: var(--green-600); }

/* Handover Complete Banner */
.handover-complete-banner {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; margin-bottom: 14px;
  background: rgba(5,150,105,0.12); border: 1px solid rgba(52,211,153,0.3) !important;
  border-radius: var(--radius); flex-wrap: wrap;
}
.hb-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-600); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.4); } 50% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } }
.hb-text { flex: 1; }
.hb-text strong { color: var(--green-400); font-size: 0.95rem; display: block; }
.hb-text span { color: rgba(255,255,255,0.6); font-size: 0.82rem; margin-top: 2px; display: block; }
.hb-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--green-600); border: none;
  color: var(--white); border-radius: 10px; padding: 10px 18px;
  font-size: 0.85rem; font-weight: 700; cursor: pointer;
  font-family: 'Outfit', sans-serif; transition: all 0.2s;
  white-space: nowrap;
}
.hb-btn:hover { background: var(--green-700); transform: translateY(-1px); }

/* No location hint */
.no-location-hint {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; text-align: center;
  color: rgba(255,255,255,0.25); font-size: 0.9rem;
}
.no-location-hint svg { margin-bottom: 16px; }

/* ============================================================
   ADMIN — NEW ELEMENTS
   ============================================================ */
.add-location-panel {
  padding: 20px 24px; margin-bottom: 16px;
}
.add-location-panel h3 {
  color: var(--white); font-size: 0.95rem; font-weight: 700;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.add-loc-form {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.add-loc-form .form-input {
  flex: 1; min-width: 160px;
}
.btn-add-loc {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  border: none; border-radius: 10px; padding: 12px 20px;
  color: var(--white); font-family: 'Outfit', sans-serif;
  font-size: 0.9rem; font-weight: 700; cursor: pointer;
  transition: opacity 0.2s; white-space: nowrap;
}
.btn-add-loc:hover { opacity: 0.9; }

/* Department bars inside location card */
.dept-bars { display: flex; flex-direction: column; gap: 8px; }
.dept-row {
  display: flex; align-items: center; gap: 8px;
}
.dept-name {
  font-size: 0.75rem; font-weight: 600; min-width: 100px; white-space: nowrap;
}
.dept-progress-bg {
  flex: 1; height: 5px; background: rgba(255,255,255,0.07);
  border-radius: 99px; overflow: hidden;
}
.dept-progress-fill {
  height: 100%; border-radius: 99px; transition: width 0.4s;
  opacity: 0.8;
}
.dept-pct { color: rgba(255,255,255,0.4); font-size: 0.72rem; min-width: 30px; text-align: right; }
.dept-done { color: #34d399; font-size: 0.75rem; font-weight: 800; }

/* Toast for checklist page */
.toast.success { border-color: rgba(52,211,153,0.3); color: #34d399; }
.toast.error   { border-color: rgba(220,38,38,0.3);  color: #f87171; }

/* ============================================================
   INPUT ITEMS — date picker & text input
   ============================================================ */
.item-input-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.item-input-row:last-child { border-bottom: none; }
.item-input-row .item-label {
  flex: 1; min-width: 160px;
  color: rgba(255,255,255,0.75); font-size: 0.9rem; font-weight: 500;
}

/* Date input */
.item-date-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 8px 12px;
  color: var(--white); font-family: 'Outfit', sans-serif;
  font-size: 0.85rem; cursor: pointer;
  transition: border-color 0.2s;
  color-scheme: dark;
}
.item-date-input:focus { outline: none; border-color: var(--green-400); }

/* Date badge */
.date-badge {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 99px; padding: 5px 14px;
  font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.35);
  white-space: nowrap; transition: all 0.2s;
}
.date-badge.set {
  background: rgba(52,211,153,0.12);
  border-color: rgba(52,211,153,0.3);
  color: #34d399;
}

/* Text input item */
.item-text-input {
  flex: 1; min-width: 200px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 9px 14px;
  color: var(--white); font-family: 'Outfit', sans-serif;
  font-size: 0.88rem; outline: none; transition: border-color 0.2s;
}
.item-text-input:focus { border-color: var(--green-400); box-shadow: 0 0 0 2px rgba(52,211,153,0.1); }
.item-text-input::placeholder { color: rgba(255,255,255,0.2); }

/* ============================================================
   ADMIN DETAIL MODAL — REDESIGNED
   ============================================================ */
.detail-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.detail-modal {
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15,18,32,0.98) 0%, rgba(10,14,25,0.99) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: modalIn 0.25s cubic-bezier(0.22,1,0.36,1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---- Header ---- */
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 36px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  background: rgba(255,255,255,0.02);
}

.detail-header h3 {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
  margin: 0;
  letter-spacing: -0.02em;
}

.detail-close-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.detail-close-btn:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.3);
  color: #f87171;
  transform: rotate(90deg);
}

/* ---- Progress Chain ---- */
.detail-progress-row {
  display: flex;
  align-items: center;
  padding: 20px 36px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  gap: 0;
}

.detail-prog-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.detail-prog-dot {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: #fff;
  outline-offset: 4px;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.detail-prog-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  max-width: 80px;
}

.detail-prog-pct {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
}

.detail-prog-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.06);
  max-width: 80px;
  margin-bottom: 36px;
}

/* ---- Body (scrollable) ---- */
.detail-body {
  padding: 24px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  flex: 1;
}

.detail-body::-webkit-scrollbar { width: 5px; }
.detail-body::-webkit-scrollbar-track { background: transparent; }
.detail-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 99px; }
.detail-body::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ---- Department Block ---- */
.detail-dept-block {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s;
  background: rgba(255,255,255,0.02);
  /* WICHTIG: Blöcke dürfen im Flex-Container NICHT schrumpfen,
     sonst werden Checklisten-Punkte abgeschnitten */
  flex-shrink: 0;
}

.detail-dept-block:hover {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}

.detail-dept-active {
  border-color: rgba(255,255,255,0.18) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.detail-dept-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  gap: 12px;
}

.detail-dept-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.detail-dept-stats {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.05);
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap;
}

.detail-dept-badge-active {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  animation: pulse 2s infinite;
}

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

/* ---- Item Grid (2 columns for non-Zulassung sections) ---- */
.detail-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 8px 0;
}

.detail-items-list {
  padding: 8px 0;
}

.detail-zul-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 20px 4px;
}

/* ---- Individual Item ---- */
.detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.15s;
  min-height: 44px;
}

.detail-item:last-child { border-bottom: none; }
.detail-item:hover { background: rgba(255,255,255,0.025); }

.di-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}

.di-text {
  font-size: 0.88rem;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.di-val {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 99px;
  font-weight: 700;
  white-space: nowrap;
}

/* Done */
.di-done .di-icon {
  background: rgba(52,211,153,0.15);
  color: #34d399;
}
.di-done .di-text {
  color: rgba(255,255,255,0.35);
  text-decoration: line-through;
  text-decoration-color: rgba(52,211,153,0.3);
}

/* Open */
.di-open .di-icon {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.25);
}
.di-open .di-text { color: rgba(255,255,255,0.7); }

/* Pending (Wird nachgereicht) */
.di-pending .di-icon {
  background: rgba(251,146,60,0.15);
  color: #fb923c;
}
.di-pending .di-text { color: rgba(255,255,255,0.6); }
.di-pending .di-val {
  background: rgba(251,146,60,0.12);
  color: #fb923c;
  border: 1px solid rgba(251,146,60,0.25);
}

/* Custom */
.di-custom { background: rgba(255,255,255,0.015); }

/* Zulassung separator */
.detail-zul-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px;
}

.detail-zul-header {
  padding: 14px 20px 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-zul-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.detail-zul-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 20px 2px;
}


/* ============================================================
   Datei-Upload (Abteilung Franchise) + Datei-Listen
   ============================================================ */
.upload-panel { border-radius: 16px; padding: 18px 20px; margin-top: 14px; }
.upload-title { font-weight: 700; color: #34d399; font-size: 1rem; margin-bottom: 4px; }
.upload-hint { color: rgba(255,255,255,0.4); font-size: 0.8rem; margin: 0 0 12px; }
.upload-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.upload-file-btn {
  background: rgba(52,211,153,0.12); border: 1px dashed rgba(52,211,153,0.5);
  color: #34d399; padding: 9px 14px; border-radius: 10px; cursor: pointer;
  font-size: 0.83rem; font-weight: 600; white-space: nowrap;
}
.upload-file-btn:hover { background: rgba(52,211,153,0.2); }
.upload-file-chosen {
  color: rgba(255,255,255,0.5); font-size: 0.8rem; max-width: 220px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.upload-name { flex: 1; min-width: 180px; }
.file-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.file-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; padding: 9px 12px;
}
.file-icon { flex-shrink: 0; }
.file-name { flex: 1; min-width: 0; color: #fff; font-size: 0.85rem; font-weight: 600; display: flex; flex-direction: column; }
.file-ext { display: inline; color: rgba(255,255,255,0.45); font-weight: 400; }
.file-meta {
  color: rgba(255,255,255,0.35); font-size: 0.72rem; font-weight: 400; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-btn {
  background: rgba(56,189,248,0.12); border: 1px solid rgba(56,189,248,0.3); color: #38bdf8;
  border-radius: 8px; padding: 5px 10px; font-size: 0.75rem; cursor: pointer;
  font-family: 'Outfit', sans-serif; flex-shrink: 0;
}
.file-btn:hover { background: rgba(56,189,248,0.22); }
.file-btn-del { background: rgba(220,38,38,0.1); border-color: rgba(220,38,38,0.25); color: #f87171; }
.file-btn-del:hover { background: rgba(220,38,38,0.2); }
.file-empty { color: rgba(255,255,255,0.3); font-size: 0.8rem; padding: 6px 0; }
.location-files { color: #38bdf8; font-size: 0.72rem; font-weight: 600; }
.detail-files {
  margin-top: 12px; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.detail-files-title {
  color: #34d399; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* ============================================================
   Checklisten-Editor (Admin)
   ============================================================ */
.editor-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 22px 0; }
.editor-tab {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6); border-radius: 10px; padding: 7px 14px; cursor: pointer;
  font-size: 0.8rem; font-weight: 600; font-family: 'Outfit', sans-serif;
}
.editor-tab:hover { color: #fff; }
.editor-tab.active { background: rgba(52,211,153,0.15); border-color: rgba(52,211,153,0.5); color: #34d399; }
.editor-hint { color: rgba(255,255,255,0.35); font-size: 0.78rem; margin-bottom: 14px; }
.editor-section { margin-bottom: 20px; }
.editor-sec-title {
  color: #34d399; font-weight: 700; font-size: 0.82rem; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.editor-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.editor-input {
  flex: 1; min-width: 0; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 9px; padding: 8px 12px;
  color: #fff; font-size: 0.84rem; font-family: 'Outfit', sans-serif;
}
.editor-input:focus { outline: none; border-color: rgba(52,211,153,0.5); }
.editor-type {
  color: #fbbf24; font-size: 0.68rem; border: 1px solid rgba(251,191,36,0.3);
  border-radius: 6px; padding: 2px 7px; white-space: nowrap; flex-shrink: 0;
}
.editor-del {
  background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.25); color: #f87171;
  border-radius: 8px; width: 30px; height: 30px; cursor: pointer; flex-shrink: 0;
  font-size: 0.8rem; font-family: 'Outfit', sans-serif;
}
.editor-del:hover { background: rgba(220,38,38,0.2); }
.editor-add { margin-top: 8px; }

/* ============================================================
   Benutzerverwaltung (Admin)
   ============================================================ */
.user-form { display: flex; flex-direction: column; gap: 8px; }
.user-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.user-row > div:first-child { flex: 1; min-width: 0; }
.user-name { color: #fff; font-size: 0.85rem; font-weight: 600; }
.user-meta { color: rgba(255,255,255,0.4); font-size: 0.72rem; }
.user-dept { font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }

/* ============================================================
   Upload direkt am Checklisten-Punkt (Franchise)
   ============================================================ */
.item-upload-row {
  display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap;
  padding: 6px 14px 10px 34px; margin-top: -4px;
  border-left: 2px solid rgba(52,211,153,0.25);
  margin-left: 12px;
}
.item-upload-btn {
  background: rgba(52,211,153,0.1); border: 1px dashed rgba(52,211,153,0.45);
  color: #34d399; padding: 5px 11px; border-radius: 8px; cursor: pointer;
  font-size: 0.74rem; font-weight: 600; font-family: 'Outfit', sans-serif;
  white-space: nowrap; flex-shrink: 0;
}
.item-upload-btn:hover { background: rgba(52,211,153,0.2); }
.item-files { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-width: 0; }
.file-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.3);
  border-radius: 99px; padding: 3px 10px; font-size: 0.72rem; max-width: 100%;
}
.file-chip-name {
  color: #38bdf8; cursor: pointer; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px;
}
.file-chip-name:hover { text-decoration: underline; }
.file-chip-del { color: #f87171; cursor: pointer; font-weight: 700; flex-shrink: 0; }
.file-chip-del:hover { color: #fca5a5; }

/* Aktivitäten: Benutzer-Zeile (wer hat es geändert) */
.act-user { color: rgba(255,255,255,0.55); font-size: 0.74rem; font-weight: 600; margin-top: 2px; }
