/* Eigene Styles für die Impo App können hier ergänzt werden. */

/* --- Modernes, einheitliches UI für die Impo App --- */
:root {
  --impo-primary: #5f228c;
  --impo-secondary: #52217f;
  --impo-accent: #fefefe;
  --impo-dark: #2c292d;
  --impo-bg: #f6f3fa;
  --impo-success: #22c55e;
  --impo-danger: #ef4444;
  --impo-warning: #f59e42;
}

body {
  background: var(--impo-bg);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: #2c292d;
  margin: 0;
  min-height: 100vh;
}

/* Beispiel für eigene Buttons und Bereiche, falls Tailwind überschrieben werden soll */
.btn-impo {
  background: linear-gradient(90deg, var(--impo-primary) 60%, var(--impo-secondary));
  color: var(--impo-accent);
  border-radius: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 12px 0 rgba(95,34,140,0.10);
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  width: 100%;
  padding: 0.75rem 0;
  font-size: 1.125rem;
  border: none;
  outline: none;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.btn-impo:hover, .btn-impo:focus {
  background: linear-gradient(90deg, var(--impo-secondary) 60%, var(--impo-primary));
  box-shadow: 0 4px 16px 0 rgba(95,34,140,0.16);
  transform: translateY(-2px) scale(1.02);
}
.btn-impo:active {
  background: var(--impo-secondary);
  transform: scale(0.98);
}

/* Modus-Auswahl Farben */
#real-mode {
  background: var(--impo-primary) !important;
  color: var(--impo-accent) !important;
}
#online-mode {
  background: var(--impo-primary) !important;
  color: var(--impo-accent) !important;
  opacity: 1;
}

/* Weitere Anpassungen für Inputs, Karten etc. */
input[type="text"], input[type="number"], input[type="password"], textarea {
  border: 2px solid var(--impo-primary);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  background: #fff;
  box-shadow: 0 1px 4px 0 rgba(95,34,140,0.04);
}
input:focus, textarea:focus {
  border-color: var(--impo-secondary);
  box-shadow: 0 2px 8px 0 rgba(95,34,140,0.10);
}

#swipe-area {
  background: linear-gradient(120deg, var(--impo-accent) 80%, var(--impo-bg));
  border: 2px solid var(--impo-primary);
}

/* Optional: Schriftfarbe für Überschriften */
h1, h2, h3, h4 {
  color: var(--impo-primary);
  font-weight: 800;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  letter-spacing: 0.01em;
}
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

header img {
  display: block;
  max-width: 416px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  border-radius: 1.5rem;
  box-shadow: none;
}

.logo-small {
  max-width: 208px !important;
  transition: max-width 0.3s;
}

/* Entferne individuelle Margins für Buttons auf der Startseite */
#instructions-btn, #start-btn {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Fehlermeldungen und Hinweise */
.error, .impo-error {
  color: var(--impo-danger);
  background: #fff0f3;
  border: 1.5px solid var(--impo-danger);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0;
  font-weight: 500;
  font-size: 1rem;
}
.success, .impo-success {
  color: var(--impo-success);
  background: #f0fff4;
  border: 1.5px solid var(--impo-success);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0;
  font-weight: 500;
  font-size: 1rem;
}

/* Voting-Karten und Avatare */
.impo-avatar {
  border-radius: 50%;
  border: 3px solid var(--impo-primary);
  box-shadow: 0 2px 8px 0 rgba(95,34,140,0.10);
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  background: #fff;
}

.impo-vote-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px 0 rgba(95,34,140,0.10);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 2px solid transparent;
  transition: border 0.2s, box-shadow 0.2s;
}
.impo-vote-card.selected {
  border: 2px solid var(--impo-primary);
  background: #f6f3fa;
  box-shadow: 0 4px 16px 0 rgba(95,34,140,0.16);
}

/* Chat-Bubble */
.impo-bubble {
  border-radius: 1.25rem;
  padding: 0.75rem 1.25rem;
  background: #f6f3fa;
  color: var(--impo-dark);
  font-size: 1rem;
  box-shadow: 0 1px 4px 0 rgba(95,34,140,0.04);
  margin-bottom: 0.25rem;
}
.impo-bubble.me {
  background: linear-gradient(90deg, var(--impo-primary) 60%, var(--impo-secondary));
  color: #fff;
  text-align: right;
}

/* Responsive Optimierung */
@media (max-width: 600px) {
  .card, .impo-card {
    padding: 1rem 0.5rem;
    margin-bottom: 1rem;
  }
  header img {
    max-width: 90vw;
  }
  .logo-small {
    max-width: 48vw !important;
  }
}

/* Bestehende Animationen */
@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.animate-spin-slow {
  animation: spin-slow 1.2s linear infinite;
}

.bg-primary {
  background: var(--impo-primary) !important;
}

header + #game-area, header + .game-area, header + .impo-card, .impo-card {
  margin-top: 0.5rem !important;
  padding-top: 0 !important;
}

#game-area {
  margin-top: 0.5rem !important;
  padding-top: 0 !important;
} 