/* TEMM-Feedback v0.2.0 — Profi-Optik mit Wohlfühlfarben und Glow */

:root {
  /* TEMM Primary */
  --temm-primary: #000066;
  --temm-primary-light: #2a2a8f;
  --temm-primary-soft: #e8e8f5;
  --temm-primary-glow: rgba(0, 0, 102, 0.25);

  /* Hintergründe */
  --bg-canvas: #fafbff;
  --bg-card: #ffffff;
  --bg-soft: #f5f7fc;

  /* Text */
  --text-main: #1a1d2e;
  --text-muted: #6b7286;
  --text-subtle: #9ca3af;
  --border-soft: #eef0f7;
  --border-default: #e5e9f2;

  /* Wohlfühl-Palette */
  --c-very-neg: #ff6b8a;
  --c-very-neg-soft: #ffe4ec;
  --c-very-neg-glow: rgba(255, 107, 138, 0.35);
  --c-neg: #ffa875;
  --c-neg-soft: #ffe8d6;
  --c-neg-glow: rgba(255, 168, 117, 0.35);
  --c-neutral: #c5b9a8;
  --c-neutral-soft: #f5f0e8;
  --c-pos: #6ee7b7;
  --c-pos-soft: #dcfce7;
  --c-pos-glow: rgba(110, 231, 183, 0.4);
  --c-very-pos: #10b981;
  --c-very-pos-soft: #c6f3dd;
  --c-very-pos-glow: rgba(16, 185, 129, 0.4);

  --c-blue: #60a5fa;
  --c-blue-soft: #dbeafe;
  --c-blue-glow: rgba(96, 165, 250, 0.35);
  --c-purple: #a78bfa;
  --c-amber: #fbbf24;
  --c-amber-soft: #fef3c7;

  /* Form */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 24px -4px rgba(0, 0, 102, 0.08), 0 2px 6px -2px rgba(0, 0, 102, 0.04);
  --shadow-hover: 0 12px 32px -8px rgba(0, 0, 102, 0.15), 0 4px 12px -4px rgba(0, 0, 102, 0.08);
  --shadow-soft: 0 2px 8px -2px rgba(0, 0, 102, 0.05);
}

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

html, body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
  background:
    radial-gradient(ellipse at top left, #f0f3ff 0%, transparent 40%),
    radial-gradient(ellipse at top right, #fef3f8 0%, transparent 40%),
    var(--bg-canvas);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; color: inherit; }

a { color: var(--temm-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--temm-primary); font-weight: 600; letter-spacing: -0.2px; }
h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.15rem; margin-bottom: 0.4rem; }
h3 { font-size: 1rem; margin-bottom: 0.3rem; }

/* =============================================================
   LAYOUT
============================================================= */
.loading { padding: 2rem; text-align: center; color: var(--text-muted); font-size: 14px; }

.app-layout { display: grid; grid-template-rows: auto auto 1fr auto; min-height: 100vh; }

.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 2rem;
  background: linear-gradient(135deg, var(--temm-primary) 0%, #1a0f5c 100%);
  color: white;
  box-shadow: 0 8px 24px -8px var(--temm-primary-glow);
  position: relative;
  overflow: hidden;
}
.header::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.2) 0%, transparent 60%);
  pointer-events: none;
}
.header .brand { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.header .brand img {
  width: 44px; height: 44px;
  background: white;
  border-radius: 12px;
  padding: 4px;
  object-fit: contain;
  box-shadow: 0 4px 16px rgba(255,255,255,0.15);
}
.header .brand-text { line-height: 1.3; }
.header .brand-text .name { font-weight: 600; font-size: 17px; letter-spacing: -0.2px; }
.header .brand-text .sub { font-size: 12px; opacity: 0.85; margin-top: 1px; }
.header .company {
  text-align: right; font-size: 13px; position: relative; z-index: 1;
  background: rgba(255,255,255,0.1);
  padding: 10px 16px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
}
.header .company .name { color: white; font-weight: 500; }
.header .company .link {
  font-size: 11px; color: rgba(255,255,255,0.75);
  display: block; margin-top: 2px;
}

.participant-banner {
  padding: 0.6rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #78350f;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.footer {
  padding: 20px 2rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}
.main-grid.full-width { grid-template-columns: 1fr; max-width: 900px; }

/* =============================================================
   SIDEBAR
============================================================= */
.sidebar { display: flex; flex-direction: column; gap: 4px; }
.sidebar a {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.sidebar a.active {
  background: linear-gradient(135deg, var(--temm-primary) 0%, var(--temm-primary-light) 100%);
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 12px var(--temm-primary-glow);
}
.sidebar a:hover:not(.active) {
  background: var(--temm-primary-soft);
  color: var(--temm-primary);
  text-decoration: none;
}
.sidebar .logout {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border-soft);
  padding-top: 1rem;
}
.sidebar .logout:hover { background: transparent; color: var(--c-very-neg); }

.content { min-width: 0; }
.content section { margin-bottom: 2rem; }
.content section > h1 {
  background: linear-gradient(135deg, var(--temm-primary) 0%, #4338ca 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
.content section > .subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 1.5rem;
}

/* =============================================================
   CARDS
============================================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.25rem;
  transition: all 0.3s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.card h2 { font-size: 17px; letter-spacing: -0.2px; }
.card .hint { font-size: 13px; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.55; }

/* =============================================================
   GRIDS
============================================================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* =============================================================
   STATS
============================================================= */
.stat {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.stat::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--temm-primary-glow) 0%, transparent 70%);
  opacity: 0.4;
  border-radius: 50%;
  transform: translate(30px, -40px);
}
.stat .label {
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 600;
  position: relative; z-index: 1;
}
.stat .value {
  font-size: 36px; font-weight: 700;
  background: linear-gradient(135deg, var(--temm-primary) 0%, var(--temm-primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1; letter-spacing: -1px;
  margin-top: 0.25rem;
  position: relative; z-index: 1;
}
.stat .hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; position: relative; z-index: 1; }

/* =============================================================
   FORMS
============================================================= */
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 13px; font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="url"],
.field textarea,
.field select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-default);
  border-radius: 10px;
  background: var(--bg-card);
  font-size: 14px;
  transition: all 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--temm-primary);
  box-shadow: 0 0 0 4px var(--temm-primary-soft);
}
.field .hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.field .error { font-size: 12px; color: var(--c-very-neg); margin-top: 4px; }
.field textarea { min-height: 120px; resize: vertical; font-family: inherit; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox-row input { margin-top: 0.2rem; width: 1.1rem; height: 1.1rem; accent-color: var(--temm-primary); }
.checkbox-row .label { font-size: 14px; }
.checkbox-row .hint { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* =============================================================
   BUTTONS
============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  gap: 8px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--temm-primary) 0%, var(--temm-primary-light) 100%);
  color: white;
  box-shadow: 0 4px 12px var(--temm-primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--temm-primary-glow);
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-secondary {
  background: var(--bg-card);
  border: 1.5px solid var(--temm-primary);
  color: var(--temm-primary);
}
.btn-secondary:hover { background: var(--temm-primary-soft); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border-default); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text-main); }
.btn-danger {
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
  color: white;
  box-shadow: 0 4px 12px var(--c-very-neg-glow);
}
.btn-small { padding: 6px 12px; font-size: 12px; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* =============================================================
   TABLES
============================================================= */
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
th {
  text-align: left; font-size: 11px; text-transform: uppercase;
  color: var(--text-muted); padding: 12px 8px;
  letter-spacing: 0.05em; font-weight: 700;
  border-bottom: 2px solid var(--border-soft);
}
td { padding: 14px 8px; border-bottom: 1px solid var(--border-soft); }
tr:hover td { background: var(--bg-soft); }

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: var(--temm-primary-soft);
  color: var(--temm-primary);
}
.tag-success {
  background: var(--c-very-pos-soft); color: #047857;
  box-shadow: 0 2px 6px var(--c-very-pos-glow);
}
.tag-warn {
  background: var(--c-amber-soft); color: #92400e;
  box-shadow: 0 2px 6px rgba(251, 191, 36, 0.25);
}
.tag-danger {
  background: var(--c-very-neg-soft); color: #be185d;
  box-shadow: 0 2px 6px var(--c-very-neg-glow);
}

/* =============================================================
   ALERTS
============================================================= */
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 1rem; font-size: 14px; }
.alert-info {
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.alert-warn {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #78350f;
  border: 1px solid #fcd34d;
}
.alert-danger {
  background: linear-gradient(135deg, #ffe4ec 0%, #fbcfe8 100%);
  color: #be185d;
  border: 1px solid #fbb6ce;
}
.alert-success {
  background: linear-gradient(135deg, #dcfce7 0%, #a7f3d0 100%);
  color: #047857;
  border: 1px solid #6ee7b7;
}

/* =============================================================
   LOGIN
============================================================= */
.login-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 2rem 1rem;
  background:
    radial-gradient(ellipse at top left, #f0f3ff 0%, transparent 40%),
    radial-gradient(ellipse at top right, #fef3f8 0%, transparent 40%),
    var(--bg-canvas);
}
.login-box { width: 100%; max-width: 480px; }
.login-brand { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.login-brand img {
  width: 72px;
  background: var(--bg-card);
  padding: 8px;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

/* =============================================================
   SETUP
============================================================= */
.setup-wrap { max-width: 700px; margin: 0 auto; padding: 2rem 1rem; }
.setup-steps {
  display: flex; justify-content: space-between;
  margin-bottom: 1.5rem; gap: 0.5rem;
}
.setup-step {
  flex: 1; text-align: center;
  padding: 10px; border-radius: 10px;
  font-size: 12px; font-weight: 600;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
}
.setup-step.active {
  background: linear-gradient(135deg, var(--temm-primary) 0%, var(--temm-primary-light) 100%);
  color: white;
  box-shadow: 0 4px 12px var(--temm-primary-glow);
  border-color: transparent;
}
.setup-step.done {
  background: var(--c-very-pos-soft);
  color: #047857;
  border-color: var(--c-pos);
}

/* =============================================================
   QR
============================================================= */
.qr-display { text-align: center; }
.qr-display img {
  max-width: 280px;
  width: 100%;
  height: auto;
  background: white;
  padding: 16px;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}
.qr-url {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  color: var(--text-muted);
  word-break: break-all;
  margin-top: 1rem;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-radius: 8px;
}

/* =============================================================
   TEILNEHMER-ANSICHT (RESPONSIVE!)
============================================================= */
.participant-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top left, #f0f3ff 0%, transparent 50%),
    radial-gradient(ellipse at top right, #fef3f8 0%, transparent 50%),
    var(--bg-canvas);
  padding: 0;
}

.participant-header {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 2px 8px rgba(0, 0, 102, 0.04);
}
.participant-header-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.participant-header img {
  width: 44px; height: 44px; object-fit: contain;
  padding: 4px;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}
.participant-header .brand-block { display: flex; align-items: center; gap: 12px; }
.participant-header .company {
  font-size: 13px;
  font-weight: 600;
  color: var(--temm-primary);
}
.participant-header .frage-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.participant-progress-bar {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 5px;
  position: relative;
}
.participant-progress-bar::before {
  content: '';
  position: absolute;
  left: 1.5rem; right: 1.5rem;
  top: 0;
  height: 100%;
  background: var(--border-soft);
  border-radius: 3px;
}
.participant-progress-fill {
  position: absolute;
  left: 1.5rem;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--temm-primary) 0%, var(--c-blue) 100%);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px var(--c-blue-glow);
}

.participant-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
}
.question-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--temm-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
  line-height: 1.4;
}
.question-help {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* =============================================================
   SKALEN: LIKERT/QUALITY (5 gleiche Buttons)
============================================================= */
.scale-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.scale-btn {
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 18px 10px;
  min-height: 100px;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  user-select: none;
}
.scale-btn:hover {
  border-color: var(--temm-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--temm-primary-glow);
}
.scale-btn.selected {
  background: linear-gradient(135deg, var(--temm-primary) 0%, var(--temm-primary-light) 100%);
  color: white;
  border-color: var(--temm-primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px var(--temm-primary-glow);
}
.scale-num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.scale-label {
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.3;
  font-weight: 500;
}

/* SCHULNOTEN (6 gleiche Buttons) */
.scale-grades {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.grade-btn {
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 14px 4px;
  height: 100px;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.grade-btn:hover {
  border-color: var(--temm-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--temm-primary-glow);
}
.grade-btn.selected {
  background: linear-gradient(135deg, var(--temm-primary) 0%, var(--temm-primary-light) 100%);
  color: white;
  border-color: var(--temm-primary);
  box-shadow: 0 12px 28px var(--temm-primary-glow);
}
.grade-num { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.grade-label { font-size: 10px; opacity: 0.85; line-height: 1.2; font-weight: 500; }

/* JA / NEIN */
.scale-yesno {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.yesno-btn {
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  min-height: 110px;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.yesno-btn.yes:hover {
  border-color: var(--c-very-pos);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px var(--c-very-pos-glow);
}
.yesno-btn.no:hover {
  border-color: var(--c-very-neg);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px var(--c-very-neg-glow);
}
.yesno-btn.yes.selected {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white; border-color: var(--c-very-pos);
  box-shadow: 0 12px 32px var(--c-very-pos-glow);
}
.yesno-btn.no.selected {
  background: linear-gradient(135deg, #fb7185 0%, #ec4899 100%);
  color: white; border-color: var(--c-very-neg);
  box-shadow: 0 12px 32px var(--c-very-neg-glow);
}
.yesno-icon { font-size: 32px; font-weight: 700; }
.yesno-label { font-size: 17px; font-weight: 600; }

/* NPS */
.scale-nps {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 4px;
}
.nps-btn {
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 16px 0;
  text-align: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.25s;
  user-select: none;
}
.nps-btn:hover {
  transform: translateY(-3px);
  border-color: var(--temm-primary);
  box-shadow: 0 8px 20px var(--temm-primary-glow);
}
.nps-btn.selected {
  background: linear-gradient(135deg, var(--temm-primary) 0%, var(--temm-primary-light) 100%);
  color: white; border-color: var(--temm-primary);
  box-shadow: 0 12px 28px var(--temm-primary-glow);
}
.nps-zone { display: grid; grid-template-columns: 7fr 2fr 2fr; gap: 4px; margin-top: 10px; }
.nps-zone div { text-align: center; font-size: 11px; padding: 6px; border-radius: 6px; font-weight: 600; }
.nps-detractor { background: var(--c-very-neg-soft); color: #b91c1c; box-shadow: 0 2px 8px var(--c-very-neg-glow); }
.nps-passive { background: var(--c-amber-soft); color: #92400e; }
.nps-promoter { background: var(--c-very-pos-soft); color: #047857; box-shadow: 0 2px 8px var(--c-very-pos-glow); }
.nps-anchors { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-top: 8px; padding: 0 6px; }

/* Konfidenz */
.scale-confidence {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.conf-btn {
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  min-height: 110px;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: all 0.25s;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.conf-btn:hover {
  border-color: var(--temm-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--temm-primary-glow);
}
.conf-btn.selected {
  background: linear-gradient(135deg, var(--temm-primary) 0%, var(--temm-primary-light) 100%);
  color: white; border-color: var(--temm-primary);
  box-shadow: 0 12px 28px var(--temm-primary-glow);
}
.conf-icon { font-size: 24px; opacity: 0.7; }
.conf-btn.selected .conf-icon { opacity: 1; }

/* Häufigkeit */
.scale-frequency {
  display: flex; gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-soft);
}
.freq-btn {
  flex: 1;
  background: var(--bg-card);
  border: none;
  border-right: 1px solid var(--border-default);
  padding: 16px 8px;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.freq-btn:last-child { border-right: none; }
.freq-btn:hover { background: var(--temm-primary-soft); }
.freq-btn.selected {
  background: linear-gradient(135deg, var(--temm-primary) 0%, var(--temm-primary-light) 100%);
  color: white;
}

/* Sterne */
.scale-stars { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.star {
  font-size: 40px;
  cursor: pointer;
  color: var(--border-default);
  transition: all 0.2s;
  user-select: none;
}
.star:hover { transform: scale(1.2) rotate(-8deg); }
.star.active {
  color: #fbbf24;
  text-shadow: 0 2px 16px rgba(251, 191, 36, 0.5);
}
.stars-label {
  margin-left: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--temm-primary);
  min-width: 120px;
}

/* Traffic */
.traffic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.traffic-btn {
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 18px;
  min-height: 100px;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  user-select: none;
}
.traffic-btn:hover { border-color: var(--temm-primary); transform: translateY(-3px); box-shadow: 0 8px 24px var(--temm-primary-glow); }
.traffic-btn.selected { background: linear-gradient(135deg, var(--temm-primary) 0%, var(--temm-primary-light) 100%); color: white; border-color: var(--temm-primary); box-shadow: 0 12px 28px var(--temm-primary-glow); }
.traffic-dot { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* Choice lists */
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-card);
  font-size: 14px;
}
.choice-item:hover {
  border-color: var(--temm-primary);
  background: var(--temm-primary-soft);
}
.choice-item.selected {
  border-color: var(--temm-primary);
  background: var(--temm-primary-soft);
  box-shadow: 0 4px 12px var(--temm-primary-glow);
}
.choice-item input { accent-color: var(--temm-primary); width: 18px; height: 18px; }

/* Color choice */
.color-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.color-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
}
.color-btn:hover { border-color: var(--temm-primary); }
.color-btn.selected {
  background: linear-gradient(135deg, var(--temm-primary) 0%, var(--temm-primary-light) 100%);
  color: white; border-color: var(--temm-primary);
}
.color-dot { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }

/* Freitext */
.freetext-warn {
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c-amber-soft) 0%, #fde68a 100%);
  color: #78350f;
  font-size: 12px;
  margin-bottom: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}
.freetext-area {
  width: 100%; min-height: 140px;
  padding: 14px;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  font-family: inherit; font-size: 14px;
  transition: all 0.2s;
  background: var(--bg-card);
  resize: vertical;
}
.freetext-area:focus {
  outline: none;
  border-color: var(--temm-primary);
  box-shadow: 0 0 0 4px var(--temm-primary-soft);
}
.freetext-count {
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* =============================================================
   BAR CHART
============================================================= */
.bar-chart { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 60px; gap: 12px; align-items: center; font-size: 13px; }
.bar-label {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bar-track {
  background: var(--bg-soft);
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--temm-primary) 0%, var(--c-blue) 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px var(--c-blue-glow);
}
.bar-count {
  text-align: right;
  font-weight: 700;
  color: var(--temm-primary);
  font-size: 14px;
}

/* =============================================================
   CONSENT PAGE
============================================================= */
.consent-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.consent-text {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.7;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--bg-soft) 0%, #f0f3ff 100%);
  border-radius: var(--radius-md);
  margin: 1.25rem 0;
  border: 1px solid var(--border-soft);
}

/* =============================================================
   THANK YOU
============================================================= */
.thanks-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 2rem 1rem; text-align: center;
}
.thanks-box { max-width: 480px; width: 100%; }
.thanks-emoji {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 8px 16px rgba(16, 185, 129, 0.3));
}
.thanks-box h1 {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--c-very-pos) 0%, var(--temm-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =============================================================
   UTILITY
============================================================= */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 12px; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-gap { display: flex; gap: 0.5rem; }
.hidden { display: none !important; }

/* =============================================================
   RESPONSIVE - MOBILE FIRST
============================================================= */
@media (max-width: 900px) {
  .main-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }
  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    background: var(--bg-card);
    padding: 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
  }
  .sidebar a {
    flex: 1; min-width: 120px; text-align: center;
    padding: 10px 12px; font-size: 13px;
  }
  .sidebar .logout { margin-top: 0; border-top: none; padding-top: 10px; }

  .header {
    padding: 14px 1rem;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .header .company {
    align-self: stretch;
    text-align: left;
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }

  .card { padding: 1.25rem; }
  .question-card { padding: 1.5rem 1.25rem; }
  .question-text { font-size: 17px; }

  /* Skalen kompakter aber lesbar */
  .scale-buttons { gap: 6px; }
  .scale-btn {
    padding: 12px 4px;
    min-height: 82px;
  }
  .scale-num { font-size: 18px; }
  .scale-label { font-size: 10px; }

  .scale-grades { gap: 4px; }
  .grade-btn { height: 82px; padding: 10px 2px; }
  .grade-num { font-size: 20px; }
  .grade-label { font-size: 9px; }

  .scale-yesno { gap: 10px; }
  .yesno-btn { padding: 18px 10px; min-height: 90px; }
  .yesno-icon { font-size: 28px; }
  .yesno-label { font-size: 15px; }

  .scale-nps { grid-template-columns: repeat(11, 1fr); gap: 2px; }
  .nps-btn { padding: 10px 0; font-size: 13px; }

  .scale-confidence { gap: 4px; }
  .conf-btn { padding: 10px 4px; min-height: 84px; font-size: 11px; }
  .conf-icon { font-size: 20px; }

  .freq-btn { padding: 12px 4px; font-size: 12px; }

  .participant-header { padding: 14px 1rem; }
  .participant-body { padding: 1.5rem 1rem; }
  .participant-progress-bar { padding: 0 1rem; }
  .participant-progress-bar::before { left: 1rem; right: 1rem; }
  .participant-progress-fill { left: 1rem; }

  .bar-row { grid-template-columns: 100px 1fr 40px; gap: 8px; }
  .bar-label { font-size: 12px; }
}

@media (max-width: 400px) {
  .scale-label { font-size: 9px; }
  .grade-label { font-size: 8px; }
  .nps-btn { font-size: 12px; padding: 8px 0; }
}
