/* ============================================================
   assets/css/style.css – Quiz-Abend · Outline-Design
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --q-dark:    #1a1f2e;
  --q-ink:     #2c3347;
  --q-muted:   #6b7490;
  --q-border:  #d8dce8;
  --q-bg:      #f5f7fc;
  --q-white:   #ffffff;
  --q-accent:  #4a6cf7;
  --q-accent2: #7c9ef8;
  --q-success: #19a97b;
  --q-warn:    #e8a020;
  --q-danger:  #e04040;
  --q-radius:  8px;
  --q-shadow:  0 2px 16px rgba(74,108,247,.10);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Body ────────────────────────────────────────────────── */
.quiz-body {
  background: var(--q-bg);
  color: var(--q-ink);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ── Navbar ──────────────────────────────────────────────── */
.quiz-nav {
  background: var(--q-dark);
  padding: .75rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.quiz-logo-icon { font-size: 1.3rem; line-height: 1; }
.quiz-logo-img  { height: 36px; width: auto; filter: brightness(0) invert(1); }

.quiz-nav .navbar-brand { color: #fff; font-size: 1.15rem; }
.quiz-brand-text {
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .3px;
  line-height: 1.1;
}
@media (max-width: 420px) {
  .quiz-brand-text { font-size: .9rem; }
}

/* ── Footer ──────────────────────────────────────────────── */
.quiz-footer {
  background: var(--q-white);
  border-top: 1px solid var(--q-border);
  padding: 1.25rem 0;
  margin-top: auto;
}

/* ── Card – outline style ────────────────────────────────── */
.quiz-card {
  background: var(--q-white);
  border: 1.5px solid var(--q-border);
  border-radius: var(--q-radius);
  box-shadow: var(--q-shadow);
  overflow: hidden;
}

.quiz-card-header {
  background: var(--q-dark);
  color: #fff;
  padding: 1.25rem 1.5rem;
}

.quiz-card-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.quiz-card-header .eyebrow {
  color: var(--q-accent2);
  font-size: .75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: .3rem;
}

.quiz-card-body { padding: 1.75rem 1.5rem; }

/* ── Form Controls – outline ─────────────────────────────── */
.form-control, .form-select {
  border: 1.5px solid var(--q-border);
  border-radius: var(--q-radius);
  background: var(--q-white);
  color: var(--q-ink);
  transition: border-color .15s, box-shadow .15s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--q-accent);
  box-shadow: 0 0 0 3px rgba(74,108,247,.12);
}

.form-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--q-ink);
  margin-bottom: .4rem;
}

.form-text { color: var(--q-muted); font-size: .8rem; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-quiz {
  background: var(--q-dark);
  color: #fff;
  border: 2px solid var(--q-dark);
  border-radius: var(--q-radius);
  font-weight: 600;
  padding: .65rem 1.5rem;
  transition: background .18s, color .18s;
}
.btn-quiz:hover {
  background: var(--q-accent);
  border-color: var(--q-accent);
  color: #fff;
}

.btn-outline-quiz {
  background: transparent;
  color: var(--q-dark);
  border: 2px solid var(--q-dark);
  border-radius: var(--q-radius);
  font-weight: 600;
  padding: .65rem 1.5rem;
  transition: background .18s, color .18s;
}
.btn-outline-quiz:hover {
  background: var(--q-dark);
  color: #fff;
}

/* ── Code Box (Buchungscode) ─────────────────────────────── */
.booking-code {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .25em;
  color: var(--q-dark);
  background: var(--q-bg);
  border: 2px dashed var(--q-border);
  border-radius: var(--q-radius);
  padding: .75rem 1.5rem;
}

/* ── Detail Table ────────────────────────────────────────── */
.detail-table { width: 100%; border-collapse: collapse; }
.detail-table tr { border-bottom: 1px solid var(--q-border); }
.detail-table tr:last-child { border-bottom: none; }
.detail-table td { padding: .7rem .5rem; font-size: .92rem; vertical-align: top; }
.detail-table td:first-child {
  color: var(--q-muted);
  width: 38%;
  font-weight: 500;
  white-space: nowrap;
}

/* ── Waitlist Badge ──────────────────────────────────────── */
.waitlist-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #fff8ed;
  color: var(--q-warn);
  border: 1.5px solid var(--q-warn);
  border-radius: 20px;
  padding: .3rem .9rem;
  font-size: .85rem;
  font-weight: 600;
}

/* ── Event Card (Landing) ────────────────────────────────── */
.event-card {
  border: 1.5px solid var(--q-border);
  border-radius: var(--q-radius);
  background: var(--q-white);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.event-card:hover {
  border-color: var(--q-accent);
  box-shadow: 0 4px 18px rgba(74,108,247,.13);
  color: inherit;
}
.event-card .event-date {
  font-size: .8rem;
  color: var(--q-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.event-card .event-title { font-size: 1.1rem; font-weight: 700; margin: .2rem 0; }
.event-card .event-motto { color: var(--q-muted); font-size: .9rem; }

/* ── Alert overrides ─────────────────────────────────────── */
.alert {
  border-radius: var(--q-radius);
  border-width: 1.5px;
}

/* ── Participant counter ─────────────────────────────────── */
.part-counter { display: flex; align-items: center; gap: .5rem; }
.part-counter button {
  width: 36px; height: 36px;
  border: 1.5px solid var(--q-border);
  background: var(--q-white);
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.part-counter button:hover { background: var(--q-bg); }
.part-counter .part-value {
  min-width: 2.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 575px) {
  .quiz-card-body { padding: 1.25rem 1rem; }
  .booking-code { font-size: 1.4rem; }
}
