  
    :root {
      --lh-blue: #0069b4;
      --lh-blue-light: #e2e7f3;
      --lh-green: #87bd1f;
      --lh-black: #000000;
      --radius-card: 0.75rem;
      --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.15);
      --cat-pflicht: #facc15;
      --cat-fach: #166534;
      --cat-it: #60a5fa;
      --cat-fuehrung: #f97373;
      --cat-gesundheit: #86efac;
      --cat-individuell: #9ca3af;
      --cat-global: #6b7280;
    }

    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: "Calibri", "Arial", sans-serif;
      font-size: 13px;
      line-height: 1.45;
      background: linear-gradient(135deg, #e2e7f3, #f3f6fc);
      color: var(--lh-black);
      position: relative;
	}
	
    /* Sicherstellen dass alle Inhalte über dem Hintergrundbild liegen */
    #app {
      position: relative;
      z-index: 1;
    }

    h1, h2, h3, h4, h5 {
      font-family: "Open Sans", sans-serif;
      font-weight: 700;
      margin-top: 0;
      color: var(--lh-blue);
    }
    h1 { font-size: 1.6rem; margin-bottom: 1rem; }
    h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }
    h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
/* Nur im Bereich „Schulungen“ die Schriftfarbe für Kacheln auf Weiß setzen */
.trainings-section .dashboard-card h3 {
  color: white; /* Weiß für die Überschrift */
}

.trainings-section .dashboard-card p {
  color: white; /* Weiß für den Text */
}

    .dashboard-title { font-size: 2rem; margin-bottom: 1.25rem; }
    .app-shell { display: flex; min-height: 100vh; }

    .sidebar {
      width: 240px;
      background: var(--lh-blue);
      color: white;
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
    }
    .sidebar h1 {
      font-family: "Open Sans";
      font-size: 1.4rem;
      margin-top: 0;
      margin-bottom: 1.5rem;
      color: white;
    }
    .sidebar p { margin-top: 0; margin-bottom: 1rem; }
    .sidebar nav a {
      display: block;
      padding: 0.6rem 0.8rem;
      margin-bottom: 0.3rem;
      border-radius: 0.5rem;
      text-decoration: none;
      color: white;
      font-size: 0.95rem;
    }
    .sidebar nav a:hover, .sidebar nav a.active { background: rgba(255,255,255,0.25); }

    .sidebar .lh-logo {
      max-width: 120px;
      height: auto;
      display: block;
      margin-bottom: 1rem;
    }
    .sidebar-spacer { flex: 1 1 auto; }

    .main { flex: 1; padding: 1.5rem; }

    .card {
      background: white;
      border-radius: var(--radius-card);
      padding: 1rem;
      box-shadow: var(--shadow-card);
      margin-bottom: 1rem;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.4rem 0.8rem;
      font-family: "Calibri", "Arial", sans-serif;
      font-size: 13px;
      border-radius: 999px;
      border: none;
      cursor: pointer;
      gap: 0.35rem;
      white-space: nowrap;
    }
    .btn-primary { background: var(--lh-blue); color: white; }
    .btn-primary:hover { background: #005a98; }
    .btn-secondary { background: #e5e7eb; color: #111; }
    .btn-danger { background: #f97373; color: white; }
    .btn-danger:hover { background: #c53030; }

    .form-field { margin-bottom: 0.75rem; }
    .form-field label {
      font-family: "Open Sans";
      font-size: 0.9rem;
      color: var(--lh-blue);
      margin-bottom: 0.25rem;
      display: block;
    }
    .form-field input, .form-field select, .form-field textarea {
      width: 100%;
      padding: 0.45rem 0.6rem;
      border-radius: 0.5rem;
      border: 1px solid #d1d5db;
      font-family: "Calibri", "Arial", sans-serif;
      font-size: 13px;
    }

    .table { width: 100%; border-collapse: collapse; }
    .table th {
      background: var(--lh-blue-light);
      font-family: "Open Sans";
      font-weight: 700;
      color: var(--lh-blue);
      padding: 0.5rem;
      vertical-align: bottom;
      position: relative;
      user-select: none;
	  text-align: left;

    }
    .table td { padding: 0.5rem; border-bottom: 1px solid #e5e7eb; }
    .table tr.clickable-row { cursor: pointer; }
    .table tr.clickable-row:hover { background: #eef2ff; }

    .th-sort {
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }
    .sort-indicator {
      font-size: 0.9rem;
      opacity: 0.9;
    }
    .th-filter {
      margin-top: 0.35rem;
    }
    .th-filter input {
      width: 100%;
      padding: 0.25rem 0.4rem;
      border-radius: 0.4rem;
      border: 1px solid #d1d5db;
      font-size: 12px;
      font-family: "Calibri", "Arial", sans-serif;
    }

    .badge {
      display: inline-block;
      padding: 0.2rem 0.5rem;
      border-radius: 999px;
      font-size: 11px;
      font-family: "Calibri", "Arial", sans-serif;
    }
.badge-pflicht,
.badge-fach,
.badge-it,
.badge-fuehrung,
.badge-gesundheit {
  color: #ffffff; /* Alle farbigen Kacheln → weiße Schrift */
}

.badge-pflicht { background: var(--cat-pflicht); }
.badge-fach { background: var(--cat-fach); }
.badge-it { background: var(--cat-it); }
.badge-fuehrung { background: var(--cat-fuehrung); }
.badge-gesundheit { background: var(--cat-gesundheit); }
.badge-individuell {
  background: #ffffff;
  color: var(--lh-blue);
}
.badge-pflicht h1,
.badge-pflicht h3,
.badge-fach h1,
.badge-fach h3,
.badge-it h1,
.badge-it h3,
.badge-fuehrung h1,
.badge-fuehrung h3,
.badge-gesundheit h1,
.badge-gesundheit h3 {
  color: #ffffff;
}

.badge-individuell h1,
.badge-individuell h3 {
  color: var(--lh-blue);
}

    .login-wrapper {
      max-width: 420px;
      margin: 5rem auto;
      padding: 2rem;
      border-radius: 1rem;
      background: white;
      box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    }
    .login-wrapper h2 { margin-top: 0; }
    .small-text { font-size: 0.85rem; }
    .text-error { color: red; font-size: 0.9rem; }
    .text-success { color: green; font-size: 0.9rem; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
 
 .dashboard-header-tile {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--lh-blue), #004f8a);
  color: white;
  padding: 24px;
  border-radius: 1rem;
}

.dashboard-header-tile h1 {
  margin: 0;
  font-size: 1.8rem;
  color: white;
}


.dashboard-card-modern {
  position: relative;   /* WICHTIG */
  padding: 30px 22px;
  border-radius: 18px;
  cursor: pointer;

  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
}

.dashboard-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.dashboard-card-modern i {
  font-size: 28px;
  margin-bottom: 14px;
  color: var(--lh-blue);
}

.dashboard-card-modern h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--lh-blue);
}

.dashboard-card-modern p {
  font-size: 0.9rem;
  margin-top: 8px;
  color: #64748b;
}
    .subgrid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.75rem;
      margin-top: 0.5rem;
    }

    .mini-calendar {
      background: white;
      color: #111827;
      border-radius: 0.75rem;
      padding: 0.6rem;
      box-shadow: var(--shadow-card);
      font-size: 11px;
    }
    .mini-cal-header {
      display: flex;
      justify-content: center;
      align-items: center;
      font-weight: 600;
      margin-bottom: 0.25rem;
      color: var(--lh-blue);
    }
    .mini-cal-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 2px;
    }
    .mini-cal-weekday {
      text-align: center;
      font-weight: 600;
      color: #6b7280;
      padding: 2px 0;
    }
    .mini-cal-day {
      position: relative;
      text-align: center;
      padding: 2px 0;
      border-radius: 4px;
      cursor: default;
    }
    .mini-cal-day.empty { cursor: default; }
    .mini-cal-day.today {
      border: 1px solid var(--lh-blue);
      font-weight: 600;
      background: #eff6ff;
    }
    .mini-cal-day.has-events { background: #e5f3ff; }
    .mini-cal-day .event-dot {
      display: inline-block;
      width: 5px;
      height: 5px;
      border-radius: 999px;
      margin: 1px 1px 0;
    }
    .mini-cal-day:hover { background: #dbeafe; }

    .event-popup {
      position: absolute;
      left: 100%;
      top: 0;
      transform: translateX(4px);
      background: #111827;
      color: white;
      padding: 4px 6px;
      border-radius: 4px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
      min-width: 160px;
      z-index: 20;
      font-size: 11px;
      text-align: left;
      pointer-events: none;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.12s ease-out, visibility 0.12s ease-out;
    }
    .mini-cal-day:hover .event-popup {
      opacity: 1;
      visibility: visible;
    }
    .event-popup-item {
      display: flex;
      align-items: center;
      margin-bottom: 2px;
    }
    .event-popup-item:last-child { margin-bottom: 0; }
    .event-popup-dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      margin-right: 4px;
      flex-shrink: 0;
    }
    .event-popup-label { flex: 1; }
    .event-popup-label span { display: block; }
    .event-popup-label .event-title { font-weight: 600; }
    .event-popup-label .event-meta { font-size: 10px; color: #e5e7eb; }

    .dialog-backdrop {
      position: fixed;
      z-index: 1000;
      left: 0; top: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }
    .dialog {
      background: white;
      border-radius: 1rem;
      box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
      padding: 1.25rem;
      min-width: 320px;
      max-width: 1100px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
    }
    .dialog h3 { margin-top: 0; }

    .toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 0.75rem;
    }
    .toolbar-left, .toolbar-right {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      align-items: center;
    }

 @media (max-width: 1000px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .subgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .subgrid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 220px;
  }
}

.dashboard-card:hover {
  background-color: rgba(0, 0, 0, 0.05); /* Optional: Ändert den Hintergrund beim Überfahren */
}
.dashboard-card {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  cursor: pointer; /* Zeigefinger-Cursor */
  border-radius: 0.75rem;
  color: white;
  transition: background-color 0.3s ease;
}

.dashboard-card:hover {
  background-color: rgba(0, 0, 0, 0.1); /* Hintergrund bei Hover */
}

.dashboard-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.dashboard-card p {
  font-size: 0.9rem;
  margin-top: 10px;
}

/* ================================ */
/* Dashboard – blaue Header */
/* ================================ */

.dashboard-blue-header {
  background: linear-gradient(135deg, var(--lh-blue), #004f8a);
  color: #ffffff;
}

.dashboard-modern:hover .training-card-header i {
  transform: scale(1.12) rotate(-3deg);
}
/* Schulungstyp-Farben */

.tile-white {
  background: #ffffff !important;
  border: 2px solid #eff6ff;
}

.tile-white h3,
.tile-white p {
  color: #0069b4 !important;
}
/* Standard: Titel in farbigen Kacheln soll weiß sein */
.badge-pflicht h3,
.badge-fach h3,
.badge-it h3,
.badge-gesundheit h3,
.badge-fuehrung h3 {
  color: #fff !important;
}


.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-warning {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background-color: #fee2e2;
  color: #7f1d1d;
}
/* Status-Badges (Zur Freigabe / Genehmigt / Abgelehnt) */
.status-badge{
  display:inline-block;
  padding:0.25rem 0.6rem;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  line-height:1;
}
.training-title-card h3 {
  font-size: 1rem;
  line-height: 1.3;
  word-break: break-word;
}
.admin-plus-btn{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: #0069b4; /* oder dein Lebenshilfe-Blau */
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-plus-btn:hover{ opacity: 0.92; }

.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid .full{
  grid-column: 1 / -1;
}

.term-row{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-top: 10px;
}

.term-row label{
  font-size: 12px;
  font-weight: 600;
  display:block;
  margin-bottom: 4px;
}

.term-row input{
  width: 100%;
}

.btn-mini{
  padding: 8px 10px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
}

.btn-danger-mini{
  background: #fee2e2;
  color: #7f1d1d;
}
.header-tile {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  cursor: default;
}

.header-tile h1 {
  margin: 0;
  font-size: 1.6rem; /* an Kachel angepasst */
  line-height: 1.2;
}

.header-tile .small-text {
  margin: 6px 0 0 0;
  opacity: 0.95;
}
/* Nur für Bearbeiten-Panel auf der Title-Seite */
.title-edit-grid {
  display: grid;
  grid-template-columns: 1fr;     /* alles untereinander */
  gap: 12px;
  margin-top: 10px;
}

.title-edit-grid label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.title-edit-grid input,
.title-edit-grid textarea {
  width: 100%;
}

.title-edit-textarea {
  width: 100%;
  min-height: 260px;     /* größer */
  height: auto;
  resize: vertical;      /* Nutzer kann es größer ziehen */
}
.status-success{ background:#d1fae5; color:#065f46; }
.status-warning{ background:#fef3c7; color:#92400e; }
.status-danger{  background:#fee2e2; color:#7f1d1d; }
.status-neutral{ background:#e5e7eb; color:#111827; }

/* Nur Schulungen-Übersicht */
.trainings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .trainings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .trainings-grid {
    grid-template-columns: 1fr;
  }
}

.training-tile-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
/* ===== Skipper Slide-In Panel ===== */

.chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}

.chat-overlay.active {
  opacity: 1;
  pointer-events: all;
}
/* ===== Chatblasen ===== */

.chat-msg {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 18px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.chat-msg.user {
  background: var(--lh-blue);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chat-msg.bot {
  background: #f1f5f9;
  color: #111827;
  margin-right: auto;
  border-bottom-left-radius: 4px;
}
.chat-msg {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 20px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.45;
  animation: fadeIn 0.25s ease;
}

.chat-msg.user {
  background: var(--lh-blue);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 6px;
}

.chat-msg.bot {
  background: #f1f5f9;
  color: #111827;
  margin-right: auto;
  border-bottom-left-radius: 6px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8fafc;
}

/* Scrollbar dezenter */
.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.dashboard-card-modern i {
  font-size: 30px;
  margin-bottom: 18px;
  color: var(--lh-blue);
}

/* ===================================================== */
/* CHATBOT */
/* ===================================================== */

.chatbot-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 150px;
  height: 150px;
  background-image: url("nino.png");
/*  background-image: url("pingu_back.png");
/*  background-image: url("eisbaer.png");*/

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  z-index: 3000;
    transition: transform 0.2s ease, opacity 0.2s ease;

}
.chatbot-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
 display: none !important;
}
.chatbot-btn:hover {
  animation: ninoWiggle 0.4s ease;
}

@keyframes ninoWiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  50% { transform: rotate(4deg); }
  75% { transform: rotate(-2deg); }
  100% { transform: rotate(0deg); }
}
.chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.chat-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.chatbot-panel {
  position: fixed;
  top: 0;
  right: -380px;
  width: 380px;
  height: 100vh;
  background: white;
  transition: right 0.35s ease;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 40px rgba(0,0,0,0.15);
}

.chatbot-panel.open {
  right: 0;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--lh-blue), #004f8a);
  color: white;
  padding: 18px;
  display: flex;
  justify-content: space-between;
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8fafc;
}

.chat-msg {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 20px;
  margin-bottom: 10px;
  font-size: 13px;
}

.chat-msg.user {
  background: var(--lh-blue);
  color: white;
  margin-left: auto;
}

.chat-msg.bot {
  background: #f1f5f9;
  color: #111827;
}

.chatbot-input {
  padding: 18px;
  display: flex;
  gap: 10px;
  border-top: 1px solid #e5e7eb;
}

.chatbot-input input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 12px 16px;
}

.chatbot-input button {
  background: var(--lh-blue);
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  color: white;
}


.dashboard-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--lh-blue);
  color: white;
}

.dashboard-badge.success { background: #16a34a; }
.dashboard-badge.warning { background: #f59e0b; }

.badge-number { font-weight: 700; }
.badge-label { font-size: 10px; opacity: 0.9; }

/* ===================================== */
/* ICE BACKGROUND BOTTOM */
/* ===================================== */


body::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 280px;              /* Höhe der Eislandschaft */
  background: url("eisberg.png") no-repeat bottom center;
  background-size: cover;
  opacity: 0.35;              /* wichtig: dezent */
  pointer-events: none;
  z-index: 0;
}
/* ===== Nino Idle Animation ===== */

.chatbot-btn {
  animation: ninoFloat 3s ease-in-out infinite;
}

@keyframes ninoFloat {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}
.chatbot-btn.pop {
  animation: ninoPop 0.3s ease;
}

@keyframes ninoPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
#nino-character {
  position: fixed;
  bottom: 0;
  right: 30px;           /* Abstand vom Rand */
  width: 220px;          /* anpassen wenn nötig */
  height: auto;
  z-index: 5;
  pointer-events: none;
}
body::before {
  display: none !important;
}
/* ================================ */
/* Moderne, lebendige Schulungs-Kacheln */
/* ================================ */

.training-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: 
    transform 0.25s cubic-bezier(.2,.8,.2,1),
    box-shadow 0.25s ease;
  box-shadow:
    0 4px 10px rgba(0,0,0,0.05),
    0 1px 3px rgba(0,0,0,0.04);
  position: relative;
}

.training-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 14px 28px rgba(0,0,0,0.08),
    0 6px 12px rgba(0,0,0,0.06);
}

/* Header */

.training-card-header {
  padding: 16px 20px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* dezenter Licht-Overlay-Effekt */

.training-card-header::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.25), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

/* Header Content */

.training-card-header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

/* Icon */

.training-card-header i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.training-card:hover .training-card-header i {
  transform: scale(1.15) rotate(-4deg);
}

/* Body */

.training-card-body {
  padding: 18px 20px;
  flex-grow: 1;
  background: #ffffff;
}

.training-count {
  margin: 0 0 10px 0;
  font-size: 1rem;
  font-weight: 600;
}

.training-next {
  margin: 0;
  color: #374151;
}

/* ================================ */
/* Kategorie-Gradienten */
/* ================================ */

.training-card-header.badge-pflicht {
  background: linear-gradient(135deg, #facc15, #f59e0b);
}

.training-card-header.badge-fach {
  background: linear-gradient(135deg, #166534, #15803d);
}

.training-card-header.badge-it {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.training-card-header.badge-gesundheit {
  background: linear-gradient(135deg, #86efac, #22c55e);
}

.training-card-header.badge-fuehrung {
  background: linear-gradient(135deg, #f97373, #dc2626);
}

/* Individuelle Schulungen */

.tile-white-header {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: var(--lh-blue);
}/* Kategorie-Farben nur im Header */

/* ================================ */
/* Frosted Glass Dashboard */
/* ================================ */

.dashboard-modern {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.12);
}

.dashboard-modern .training-card-body {
  background: transparent;
}

.dashboard-modern:hover {
  transform: translateY(-8px);
  box-shadow:
    0 18px 40px rgba(31, 38, 135, 0.18);
}
.form-input {
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-family: "Calibri", "Arial", sans-serif;
  font-size: 13px;
  width: 260px;
}
.form-input:focus {
  outline: none;
  border-color: #0069b4;
  box-shadow: 0 0 0 2px rgba(0,105,180,0.15);
}
.personal-layout{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:20px;
  align-items:start;
}

.personal-layout > div{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.personal-stats .stat{
  padding:12px;
  border-bottom:1px solid #e5e7eb;
}

tr.selected{
background:#eef6ff;
}
.detail-flags{
display:flex;
flex-direction:column;
gap:6px;
margin-top:8px;
}
.role-badges{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.badge{
display:inline-flex;
align-items:center;
gap:4px;
  font-size:11px;
  padding:3px 6px;
  border-radius:6px;
  background:#eef2f7;
}

.badge.manager{
  background:#dbeafe;
  color:#1e40af;
}

.badge.scheduler{
  background:#dcfce7;
  color:#166534;
}

.badge.ehrenamt{
  background:#fef3c7;
  color:#92400e;
}

.badge.gfb{
  background:#fce7f3;
  color:#9d174d;
}

.badge.betriebsrat{
  background:#e0f2fe;
  color:#075985;
}

.role-badges i{
  margin-right:4px;
  font-size:11px;
}
.org-tree{
font-size:13px;
line-height:1.6;
}

.org-node{
margin-left:14px;
}

.org-leader{
font-weight:600;
}

.org-leader i{
margin-right:6px;
color:#1e40af;
}
.detail-separator{
margin:18px 0;
border:none;
border-top:1px solid #e5e7eb;
}

.detail-actions{
display:flex;
justify-content:flex-end;
margin-top:10px;
}

.detail-actions button i{
margin-right:6px;
}
.detail-toolbar{
display:flex;
justify-content:space-between;
margin:10px 0 18px 0;
}

.detail-toolbar button i{
margin-right:6px;
}
.employee-header{
display:flex;
align-items:center;
gap:12px;
margin-bottom:15px;
}

.employee-avatar{
width:42px;
height:42px;
border-radius:50%;
background:#1e40af;
color:white;
display:flex;
align-items:center;
justify-content:center;
font-weight:600;
font-size:16px;
}

.employee-title h2{
margin:0;
font-size:18px;
}

.employee-subtitle{
font-size:13px;
color:#6b7280;
}
.table-avatar{
width:28px;
height:28px;
border-radius:50%;
color:white;
display:flex;
align-items:center;
justify-content:center;
font-size:12px;
font-weight:600;
}
.table-avatar{
margin-left:4px;
}
.clickable-row{
cursor:pointer;
}

.clickable-row:hover{
background:#f1f5f9;
}

.clickable-row.selected{
background:#eef4ff;
border-left:3px solid #2563eb;
}
.my-area-top{
display:grid;
grid-template-columns:1fr 1fr;
gap:20px;
}

.my-training-grid{
display:grid;
grid-template-columns:1fr 1fr 1fr;
gap:20px;
}

.my-training-head{
display:grid;
grid-template-columns:2fr 1fr;
margin-bottom:10px;
}
.my-area-header{
display:grid;
grid-template-columns:2fr 1fr;
gap:20px;
align-items:start;
}

.my-area-actions{
display:flex;
flex-direction:column;
gap:12px;
}

.my-training-grid{
display:grid;
grid-template-columns:1fr 1fr 1fr;
gap:20px;
}

.table-small td{
padding:4px 6px;
font-size:13px;
}
.table-more{
margin-top:6px;
font-size:13px;
}

.table-more a{
color:#2563eb;
cursor:pointer;
text-decoration:none;
}

.table-more a:hover{
text-decoration:underline;
}
.clickable-row{
cursor:pointer;
}

.clickable-row:hover{
background:#f1f5f9;
}
.status-ok{
color:#16a34a;
font-size:13px;
display:flex;
align-items:center;
gap:5px;
}
.training-date-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
gap:12px;
margin-top:10px;
}

.training-date-card{
border:1px solid #e5e7eb;
border-radius:8px;
padding:12px;
background:white;
display:flex;
flex-direction:column;
gap:8px;
}

.training-date{
font-weight:600;
font-size:14px;
}

.training-meta{
font-size:13px;
display:flex;
flex-direction:column;
gap:6px;
}

.training-free{
color:#2563eb;
font-size:12px;
}

.status-ok{
color:#16a34a;
font-size:13px;
display:flex;
align-items:center;
gap:5px;
}

.status-full{
color:#dc2626;
font-size:13px;
display:flex;
align-items:center;
gap:5px;
}
.training-row{
cursor:pointer;
}

.training-row:hover{
background:#f1f5f9;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field.full {
  grid-column: span 2;
}
.form-field input,
.form-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  background: #fff;
  transition: all 0.2s ease;
}

.form-field input:focus,
.form-field select:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
}
.form-field label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 4px;
  color: #6b7280;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
/* ===== USER MODAL FIX ===== */

.dialog input,
.dialog select {
  width: 100% !important;
  padding: 10px !important;
  border-radius: 10px !important;
  border: 1px solid #ccc !important;
  margin-top: 4px !important;
}

.dialog label {
  display: block;
  font-size: 0.8rem;
  margin-top: 10px;
}

.dialog .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dialog .full {
  grid-column: span 2;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  min-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: flex-end;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
.table-more-container {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.table-more-container button {
  border-radius: 20px;
}
.training-row {
  cursor: pointer;
}

.training-row:hover {
  background: rgba(0,0,0,0.05);
}

.table-more-container {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}
.ticket-fehler { color: red; }
.ticket-verbesserung { color: orange; }
.ticket-feature { color: green; }
.chatbot-btn {
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* ausgeblendet */
.chatbot-btn.hidden {
  transform: translateX(150%);
  opacity: 0;
}

/* Toggle Button */
#nino-toggle {
  position: fixed;
  right: 0;
  bottom: 50%;
  transform: translateY(50%);
  background: #0069b4;
  color: white;
  padding: 10px;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  display: none;
  z-index: 999;
}

#nino-toggle.visible {
  display: block;
}