/* Einfaches, aufgeräumtes Design - funktioniert auf Handy & Beamer */

:root {
  --bg: #12141c;
  --card: #1c1f2b;
  --text: #f2f2f7;
  --muted: #9a9db0;
  --accent: #2e5aa8; /* Kompera Navy-Blau, für gute Lesbarkeit auf dunklem Grund leicht aufgehellt */
  --accent-2: #ff8c6c;
  --danger: #ff6c6c;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

.wrap.wide { max-width: 980px; }

h1, h2, h3 { line-height: 1.25; }

h1 { font-size: 1.6rem; }

.muted { color: var(--muted); }

a { color: var(--accent); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}

input[type=text], input[type=password], input[type=number], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: #0f1119;
  color: var(--text);
  font-size: 1rem;
  margin-top: 6px;
  margin-bottom: 14px;
}

label { font-size: 0.9rem; color: var(--muted); }

button {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--accent);
  color: white;
  transition: opacity 0.15s;
}

button:hover { opacity: 0.88; }

button.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text);
}

button.danger { background: var(--danger); }

button:disabled { opacity: 0.5; cursor: not-allowed; }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.code-badge {
  display: inline-block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 4px;
  background: #0f1119;
  padding: 10px 22px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.question-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  background: #0f1119;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}

.question-list-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.type-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: rgba(255,255,255,0.06);
  padding: 3px 8px;
  border-radius: 6px;
}

.error { color: var(--danger); margin-top: -6px; margin-bottom: 12px; }
.success { color: #6cff9c; }

.center { text-align: center; }

/* --- Skala / Dot-Plot --- */
.scale-line-wrap { padding: 40px 10px 60px; }
.scale-line {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: 0 10px;
}
.scale-dot {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  transform: translate(-50%, -50%);
}
.scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}
.scale-pick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}
.scale-pick-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0f1119;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  font-weight: 600;
}
.scale-pick-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
}

/* --- Wortwolke --- */
.wordcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: baseline;
  justify-content: center;
  padding: 20px 10px;
}
.wordcloud span {
  color: var(--accent);
}

/* --- Textantworten --- */
.text-answers { display: flex; flex-direction: column; gap: 10px; }
.text-answers .item {
  background: #0f1119;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 14px;
}

/* --- Mehrfach-Eingabefelder (Text & Wortwolke) --- */
#multiFields { display: flex; flex-direction: column; gap: 4px; }
.multi-field-input { margin-bottom: 4px; }

.qr-hint { font-size: 0.9rem; color: var(--muted); margin-top: 4px; }

/* --- Kompera-Branding: Logo-Kopfbereich & Footer --- */
.brand-header {
  text-align: center;
  margin-bottom: 8px;
}
.brand-header img {
  max-width: 220px;
  height: auto;
  border-radius: 6px;
}
.privacy-note {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}
.privacy-note a { color: var(--muted); text-decoration: underline; }
.privacy-note a:hover { color: var(--text); }

.legal-page h2 { margin-top: 32px; font-size: 1.2rem; }
.legal-page p, .legal-page li { color: var(--muted); line-height: 1.6; }
.legal-page a { color: var(--accent); }
