/* ─────────────────────────────────────────────────────────────────────────────
   Mitarbeiterbefragungstool – Hauptstylesheet
   Design: Corporate Dark / Swiss Precision
   ───────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;600&family=Source+Code+Pro:wght@400&display=swap');

/* ─── CSS Custom Properties ──────────────────────────────────────────────── */
:root {
  /* Farbpalette – Light / Corporate Blue */
  --bg-primary: #FFFFFF;
  --bg-secondary: #EEF3F8;
  --bg-card: #003F67;           /* RGB 0,63,103 – Karten/Bereiche */
  --bg-card-hover: #004F80;     /* Etwas heller für Hover */
  --bg-input: #003F67;          /* RGB 0,63,103 – Eingabefelder */

  --accent-blue: #2878D6;
  --accent-green: #1FAD75;
  --accent-orange: #D4870A;
  --accent-red: #C93060;
  --accent-purple: #7B3FA6;
  --accent-teal: #0F9E87;

  --text-primary: #002B48;      /* Sehr dunkles Blau – optimal auf Weiss */
  --text-secondary: #3A5570;    /* Mittleres Blau-Grau */
  --text-muted: #6B84A0;        /* Gedämpftes Blau */
  --text-accent: #2878D6;

  /* Text auf dunkelblauen Eingabefeldern */
  --text-on-input: #FFFFFF;
  --text-placeholder-on-input: rgba(255,255,255,0.55);

  --border-subtle: rgba(0,63,103,0.14);
  --border-active: rgba(40,120,214,0.55);
  --shadow-card: 0 4px 24px rgba(0,63,103,0.09);
  --shadow-glow: 0 0 30px rgba(40,120,214,0.10);

  /* Typografie */
  --font-body: 'Source Sans 3', sans-serif;
  --font-display: 'Source Sans 3', sans-serif;
  --font-mono: 'Source Code Pro', monospace;

  /* Abstände */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

/* ─── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Hintergrundmuster */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(0,63,103,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(31,173,117,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-style: normal;
}

.logo-text strong, .logo-brand {
  font-weight: 700;
  font-style: normal;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

/* ─── Hero / Page Header ─────────────────────────────────────────────────── */
.page-hero {
  padding: 64px 0 48px;
  text-align: center;
}

.page-hero .tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(79,142,247,0.12);
  border: 1px solid rgba(79,142,247,0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.page-hero h1 em {
  font-style: normal;
  font-weight: 300;
  color: var(--accent-blue);
}

.page-hero .subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
  font-weight: 300;
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.card:hover { border-color: rgba(255,255,255,0.22); box-shadow: 0 6px 32px rgba(0,0,0,0.2); }

/* Text innerhalb von Karten – weiss für Kontrast auf dunkelblauem Hintergrund */

/* ① Überschriften / Titel → reines Weiss */
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6,
.card .card-title,
.card strong,
.card b,
.card a,
.card li > strong,
.card li > b { color: #FFFFFF !important; }

/* ② Beschreibungen / Erklärungen → helles Weiss */
.card .card-subtitle,
.card .question-text,
.card .question-number,
.card .category-name,
.card p,
.card span,
.card small,
.card label,
.card li,
.card div { color: rgba(255,255,255,0.65) !important; }

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

/* ─── Survey Form ────────────────────────────────────────────────────────── */
.survey-progress {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 20px 28px;
  margin-bottom: 32px;
  border: 1px solid rgba(255,255,255,0.12);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-label {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.70);
  font-weight: 500;
}

.progress-count {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: rgba(255,255,255,0.90);
}

.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* Kategorie-Trenner */
.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.category-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.90);
}

.category-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.category-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.50);
}

/* Einzelne Frage */
.question-block {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color 0.3s;
  animation: slideInQuestion 0.3s ease forwards;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

@keyframes slideInQuestion {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.question-block.answered {
  border-color: rgba(52,199,138,0.2);
}

.question-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.50);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.question-text {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  line-height: 1.55;
  margin-bottom: 20px;
}
/* Likert Skala */
.likert-scale {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.likert-option {
  display: none;
}

.likert-label {
  flex: 1;
  min-width: 44px;
  padding: 12px 8px;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.likert-label .score {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}

.likert-label .descriptor {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.50);
  text-align: center;
  line-height: 1.2;
}

.likert-label:hover {
  border-color: rgba(255,255,255,0.50);
  background: rgba(255,255,255,0.08);
}

.likert-option:checked + .likert-label {
  border-color: var(--accent-blue);
  background: rgba(79,142,247,0.12);
}

.likert-option:checked + .likert-label .score {
  color: var(--accent-blue);
}

/* Farbkodierung nach Wert */
.likert-label[data-value="1"]:has(:checked),
.likert-option:checked + .likert-label[data-value-label="1"] { border-color: var(--accent-red); background: rgba(233,79,124,0.1); }
.likert-label[data-value="2"]:hover { border-color: rgba(245,166,35,0.3); }
.likert-option[value="2"]:checked + .likert-label { border-color: var(--accent-orange); background: rgba(245,166,35,0.1); }
.likert-option[value="3"]:checked + .likert-label { border-color: rgba(139,144,160,0.5); background: rgba(139,144,160,0.08); }
.likert-option[value="4"]:checked + .likert-label { border-color: rgba(52,199,138,0.4); background: rgba(52,199,138,0.08); }
.likert-option[value="5"]:checked + .likert-label { border-color: var(--accent-green); background: rgba(52,199,138,0.12); }

.likert-anchors {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.50);
}

/* Textarea für offene Fragen */
.open-answer-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(0,63,103,0.4);
  border-radius: var(--radius-md);
  color: var(--text-on-input);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 16px;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.2s;
  outline: none;
}

.open-answer-textarea:focus {
  border-color: rgba(40,120,214,0.8);
  box-shadow: 0 0 0 3px rgba(0,63,103,0.15);
}

.open-answer-textarea::placeholder { color: var(--text-placeholder-on-input); }

/* Respondent Info */
.respondent-info {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}

.respondent-info h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.60);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field label {
  display: block;
  font-size: 0.825rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(0,63,103,0.4);
  border-radius: var(--radius-sm);
  color: var(--text-on-input);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input::placeholder { color: var(--text-placeholder-on-input); }

.form-input:focus { border-color: rgba(40,120,214,0.8); box-shadow: 0 0 0 3px rgba(0,63,103,0.12); }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
}

.btn-primary:hover {
  background: #6A9EF8;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79,142,247,0.25);
}

.btn-success {
  background: var(--accent-green);
  color: #fff;
}

.btn-success:hover {
  background: #45D49A;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(52,199,138,0.25);
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.80);
  border: 1px solid rgba(255,255,255,0.28);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  border-color: rgba(255,255,255,0.55);
}

.btn-large { padding: 16px 36px; font-size: 1rem; border-radius: var(--radius-lg); }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ─── Dashboard Stats ────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 8px;
  color: #FFFFFF;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.60);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Score Meter ─────────────────────────────────────────────────────────── */
.score-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.score-bar-wrap {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-label-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  flex: 1;
  min-width: 160px;
}

.score-value-badge {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  min-width: 36px;
  text-align: right;
}

/* Risikoampel */
.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.risk-low     { background: rgba(31,173,117,0.35);  color: #7FFFD4; }
.risk-medium  { background: rgba(212,135,10,0.40);  color: #FFD580; }
.risk-high    { background: rgba(201,48,96,0.38);   color: #FFB3C8; }
.risk-critical{ background: rgba(180,0,50,0.50);    color: #FFD0DC; }

/* ─── AI Analysis Block ───────────────────────────────────────────────────── */
.ai-block {
  background: linear-gradient(135deg, rgba(0,63,103,0.04), rgba(15,158,135,0.03));
  border: 1px solid rgba(0,63,103,0.18);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-top: 32px;
}

.ai-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.ai-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.ai-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Themen-Tags */
.theme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.theme-tag {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
}

.theme-positive { background: rgba(52,199,138,0.1); color: var(--accent-green); border: 1px solid rgba(52,199,138,0.2); }
.theme-negative { background: rgba(233,79,124,0.1); color: var(--accent-red); border: 1px solid rgba(233,79,124,0.2); }
.theme-neutral { background: rgba(139,144,160,0.1); color: var(--text-secondary); border: 1px solid var(--border-subtle); }

/* ─── Submissions Table ───────────────────────────────────────────────────── */
.submissions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.submissions-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.submissions-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.80);
}

.submissions-table tr:hover td { background: rgba(255,255,255,0.05); }

/* ─── Loading States ─────────────────────────────────────────────────────── */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0,63,103,0.15);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-card-hover) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer { to { background-position: -200% 0; } }

/* ─── Toast Notifications ────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.90);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  min-width: 280px;
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-success { border-color: rgba(52,199,138,0.3); }
.toast-error { border-color: rgba(233,79,124,0.3); }
.toast-info { border-color: rgba(79,142,247,0.3); }

/* ─── Success Screen ─────────────────────────────────────────────────────── */
.success-screen {
  text-align: center;
  padding: 64px 32px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(52,199,138,0.12);
  border: 2px solid rgba(52,199,138,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
  animation: successBounce 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes successBounce {
  0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
  40%, 43% { transform: translate3d(0, -20px, 0); }
  70% { transform: translate3d(0, -10px, 0); }
  90% { transform: translate3d(0,-4px,0); }
}

/* ─── Chart Container ────────────────────────────────────────────────────── */
.chart-container {
  position: relative;
  height: 260px;
  margin: 16px 0;
}

/* ─── Action Items ───────────────────────────────────────────────────────── */
.action-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}

.action-item:last-child { border-bottom: none; }

.action-priority {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  height: fit-content;
  margin-top: 2px;
}

.priority-immediate { background: rgba(201,48,96,0.15);  color: #8B0030; }
.priority-short     { background: rgba(212,135,10,0.15);  color: #7A4500; }
.priority-medium    { background: rgba(40,120,214,0.15);  color: #0A3A7A; }
.priority-long      { background: rgba(31,173,117,0.15);  color: #0A5C38; }

.action-content strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary, #002B48);
  margin-bottom: 4px;
}

.action-content span {
  font-size: 0.8rem;
  color: var(--text-secondary, #3A5570);
}

/* ─── Attention Banner ───────────────────────────────────────────────────── */
.attention-banner {
  background: rgba(233,79,124,0.08);
  border: 1px solid rgba(233,79,124,0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

/* ─── Section Divider ────────────────────────────────────────────────────── */
.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.50);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.10);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .likert-label .descriptor { display: none; }
  .info-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 40px 0 32px; }
  .header-nav { display: none; }
}

/* ─── Admin Components ───────────────────────────────────────────────────── */

/* Role Buttons */
.role-btn {
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: rgba(255,255,255,0.75);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.role-btn:hover { border-color: rgba(255,255,255,0.50); color: #fff; background: var(--bg-card-hover); }
.role-btn.selected {
  border-color: #fff;
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Department Grid */
.dept-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.dept-btn {
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255,255,255,0.60);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.825rem;
  cursor: pointer;
  transition: all 0.2s;
}
.dept-btn:hover { border-color: rgba(15,158,135,0.60); color: #fff; background: rgba(255,255,255,0.06); }
.dept-btn.selected {
  border-color: var(--accent-teal);
  background: rgba(15,158,135,0.20);
  color: #fff;
}

/* Form Steps */
.form-step { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.10); }
.form-step:last-child { border-bottom: none; }
.step-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

/* Session Cards */
.session-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  color: rgba(255,255,255,0.95);
}
.session-card:hover { border-color: rgba(255,255,255,0.22); box-shadow: 0 6px 28px rgba(0,0,0,0.2); }

/* ① Überschriften → reines Weiss */
.session-card .card-title,
.session-card strong,
.session-card b,
.session-card h1,
.session-card h2,
.session-card h3,
.session-card h4,
.session-card h5,
.session-card a { color: #FFFFFF !important; }

/* ② Beschreibungen → helles Weiss */
.session-card .card-subtitle,
.session-card span,
.session-card p,
.session-card small,
.session-card time,
.session-card li,
.session-card div,
.session-card label { color: rgba(255,255,255,0.65) !important; }
.session-card.session-active { border-left: 3px solid #5EEFC0; }
.session-card.session-closed { border-left: 3px solid rgba(255,255,255,0.25); opacity: 0.75; }
.session-card-header { display: flex; gap: 16px; margin-bottom: 16px; }
.session-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}
.pill-active { background: rgba(31,173,117,0.20); color: #5EEFC0; border: 1px solid rgba(31,173,117,0.45); }
.pill-closed { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.60); border: 1px solid rgba(255,255,255,0.20); }

/* Notifications */
.notif-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(233,79,124,0.12);
  border: 1px solid rgba(233,79,124,0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--accent-red);
  cursor: pointer;
  font-weight: 600;
}
.notif-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
  animation: pulse 2s infinite;
}
.notif-panel {
  position: fixed;
  top: 70px;
  right: 24px;
  width: 380px;
  max-height: 480px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  z-index: 200;
  color: rgba(255,255,255,0.90);
}
.notif-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-weight: 600;
  font-size: 0.9rem;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  color: rgba(255,255,255,0.90);
}
.notif-header span:first-child { flex: 1; }

/* Toggle Switch */
.toggle-wrap {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-wrap input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #D0D9E4;
  border: 1px solid rgba(0,63,103,0.2);
  border-radius: 100px;
  cursor: pointer;
  transition: 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 2px; bottom: 2px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-wrap input:checked + .toggle-slider { background: rgba(0,63,103,0.20); border-color: var(--accent-blue); }
.toggle-wrap input:checked + .toggle-slider::before { transform: translateX(18px); background: var(--accent-blue); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.40);
  color: rgba(255,255,255,0.90);
}

/* ─── Custom Question Rows ───────────────────────────────────────────────── */
.custom-q-row {
  background: rgba(123,63,166,0.04);
  border: 1px solid rgba(123,63,166,0.18);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}
.custom-q-row:hover { border-color: rgba(123,63,166,0.35); }

#contextQuestionsPreview {
  background: rgba(0,63,103,0.04);
  border: 1px solid rgba(0,63,103,0.18);
  border-radius: var(--radius-md);
  padding: 16px;
}

/* V03: Ghost-Buttons auf hellem Grund lesbar, auf dunklen Karten weiterhin hell */
.btn-ghost { color: var(--text-primary); border-color: rgba(0,63,103,0.28); }
.btn-ghost:hover { background: rgba(0,63,103,0.06); color: var(--text-primary); border-color: rgba(0,63,103,0.5); }
.card .btn-ghost, .ai-block .btn-ghost, .modal-box .btn-ghost { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.28); }
.card .btn-ghost:hover, .ai-block .btn-ghost:hover, .modal-box .btn-ghost:hover { background: rgba(255,255,255,0.10); color: #fff; }

.card .action-row { border-color: rgba(255,255,255,0.25) !important; color: #fff; }
.card .action-row label { color: rgba(255,255,255,0.8); }
.card .action-row .form-input { color: var(--text-primary) !important; }
