/* Gemeinsames Aussehen für Begrüßung, Umfrage, Dashboard und Fehlerseite.
   Farben und Typografie sind aus dem bestehenden Tour-Build übernommen. */

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

:root {
  --accent: #4a8fd4;
  --accent-dark: #3a7ec4;
  --accent-tint: #eaf2fb;
  --emilio: #c97a4a;
  --panel: #f6f7f9;
  --border: #e2e5ec;
  --ink: #2c313a;
  --ink-soft: #6b7280;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  background: var(--panel);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  line-height: 1.6;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  padding: 40px;
  width: 100%;
  max-width: 620px;
}

.project-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

h1 { font-size: 25px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.01em; }
h2 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
p  { color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; }

.divider { height: 1px; background: var(--border); margin: 26px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 9px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover:not(:disabled) { background: var(--accent-dark); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) { background: var(--panel); color: var(--ink); }

/* Platzhalter-Markierung — verschwindet, sobald echte Inhalte eingesetzt sind */
.placeholder {
  background: #fff8e6;
  border: 1px dashed #e0c060;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #8a6d1f;
  margin-bottom: 20px;
}

/* ── Dashboard-Kacheln ─────────────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

.tile {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile .tile-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; color: #fff;
  background: var(--accent); margin-bottom: 12px;
}
.tile-chat .tile-icon { background: linear-gradient(135deg, var(--accent), var(--emilio)); }
.tile h2 { margin-bottom: 4px; }
.tile p  { margin-bottom: 0; font-size: 13px; }

/* ── Umfrage ───────────────────────────────────────────────────────────── */
.question { margin-bottom: 26px; }
.question > label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; }

.scale { display: flex; gap: 8px; flex-wrap: wrap; }
.scale label {
  flex: 1;
  min-width: 42px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale label:hover { border-color: var(--accent); }
.scale label:has(input:checked) {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--accent-dark);
  font-weight: 600;
}
.scale-ends {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ink-soft); margin-top: 6px;
}

textarea {
  width: 100%;
  min-height: 110px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}
textarea:focus { outline: none; border-color: var(--accent); }

.loading { color: var(--ink-soft); font-size: 14px; }
