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

body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e1b4b, #4c1d95 45%, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #1f2430;
}

.app { width: 100%; max-width: 560px; }

.screen { display: none; }
.screen.active { display: block; animation: fadeIn .35s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: translateY(0);} }

.card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  padding: 32px 28px;
}

.intro-card, .end-card { text-align: center; }
.intro-card h1, .end-card h1 { font-size: 1.9rem; margin-bottom: 8px; }
.subtitle { color: #444; font-size: 1.05rem; margin-bottom: 14px; }
.hint { color: #777; font-size: .92rem; margin-bottom: 26px; line-height: 1.4; }

.btn {
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 26px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.btn.primary {
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
  color: #fff;
  box-shadow: 0 8px 20px rgba(124,58,237,.4);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(124,58,237,.5); }
.btn.primary:active { transform: translateY(0); }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  margin-bottom: 14px;
  gap: 16px;
}
.progress-wrap { flex: 1; }
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,.25);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: #22d3ee;
  border-radius: 6px;
  transition: width .35s ease;
}
#progress-text { font-size: .82rem; opacity: .9; }
.score { font-weight: 700; white-space: nowrap; }

.logo-display {
  height: 190px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid #eee;
}
.logo-inner { width: 72%; height: 72%; display: flex; align-items: center; justify-content: center; transition: transform .25s ease; }
.logo-inner svg { width: 100%; height: 100%; }

.feedback {
  min-height: 26px;
  text-align: center;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.05rem;
}
.feedback.correct { color: #16a34a; }
.feedback.wrong { color: #dc2626; }

.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 420px) {
  .answers { grid-template-columns: 1fr; }
}

.answer-btn {
  padding: 14px 10px;
  border: 2px solid #e2e2ea;
  border-radius: 12px;
  background: #f9f9fc;
  font-size: .98rem;
  font-weight: 600;
  color: #26293a;
  cursor: pointer;
  transition: all .15s ease;
}
.answer-btn:hover:not(:disabled) { border-color: #7c3aed; background: #f3ecff; }
.answer-btn:disabled { cursor: default; }
.answer-btn.correct { background: #dcfce7; border-color: #16a34a; color: #14532d; }
.answer-btn.wrong { background: #fee2e2; border-color: #dc2626; color: #7f1d1d; }

.next-btn { display: block; margin: 0 auto; }
.hidden { display: none !important; }

.end-score { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; color: #4c1d95; }
.end-message { color: #555; margin-bottom: 26px; }

/* ---------- Brand logo styling (echte Logo-Pfade, Quelle: Simple Icons) ---------- */

.logo-apple, .logo-nike, .logo-adidas, .logo-x { background: #111; }

.logo-mcdonalds { background: #DA291C; }
.logo-cocacola { background: #D00013; }
.logo-pepsi { background: #fff; }
.logo-google { background: #fff; }
.logo-amazon { background: #fff; }
.logo-microsoft { background: #fff; }
.logo-samsung { background: #fff; }
.logo-facebook { background: #fff; }
.logo-instagram { background: #fff; }
.logo-whatsapp { background: #fff; }
.logo-youtube { background: #fff; }
.logo-netflix { background: #141414; }
.logo-spotify { background: #fff; }
.logo-linkedin { background: #fff; }
.logo-snapchat { background: #FFFC00; }
.logo-bmw { background: #fff; }
.logo-mercedes { background: #f2f2f2; }
.logo-audi { background: #fff; }
.logo-vw { background: #003399; }
.logo-toyota { background: #fff; }
.logo-ikea { background: #0058A3; }
.logo-visa { background: #fff; }
.logo-lego { background: #D01012; }
.logo-tesla { background: #fff; }

.ms-logo { display: flex; align-items: center; gap: 14px; height: 100%; }
.ms-squares { width: 60px !important; height: 60px !important; flex: none; }
.ms-text { font-size: 1.5rem; font-weight: 600; color: #5E5E5E; }

.word-lego {
  color: #FFE800;
  -webkit-text-stroke: 2px #fff;
  font-weight: 900;
  font-size: 2.6rem;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
