/* ========================================================
   THE PADELLERS - BRAND CI DESIGN SYSTEM & QUIZ STYLESHEET
   Authentic Dark Navy, Blush Pink, Ball Neon, Pure White Theme
   ======================================================== */

:root {
  /* ========================================================
     THE PADELLERS MARKEN-FARBPALETTE (WEBSITE-ORIGINAL)
     ======================================================== */
  /* Primär (Dark) - Deep Midnight Navy (Website-Canvas) */
  --color-primary-dark: #0A1124;
  --color-navy-card: #121A32;
  --color-navy-elevated: #172344;
  --color-navy-elevated-hover: #1F2D54;
  --color-navy-court: #0B1428;

  /* Primär (Brand Accent) - Blush Pink / Altrosa (CTAs wie „COURT BUCHEN“, Highlights) */
  --color-brand-accent: #F2A7B5;
  --color-brand-accent-hover: #F8B4C0;
  --color-brand-accent-tint: rgba(242, 167, 181, 0.15);
  --color-brand-accent-glow: rgba(242, 167, 181, 0.35);

  /* Akzent (Sport) - Ball Neon / Padel-Gelb (Badges, Ball-Emojis & Highlights) */
  --color-sport-accent: #D9F938;
  --color-sport-accent-hover: #E2FA52;
  --color-sport-accent-glow: rgba(217, 249, 56, 0.4);

  /* Basis / Text - Pure White (Headlines, Nav-Links, Icons) */
  --color-white: #FFFFFF;

  /* Typografie (Body) - Soft White / Light Silver (Optimaler Kontrast auf Dark Navy) */
  --color-body: #E2E8F0;
  --color-muted: #8E9BB5;
  --color-faint: #5E6A85;

  /* Functional UI Theme Mappings */
  --bg-page: #0A1124;
  --bg-card: #121A32;
  --bg-court: #0B1428;
  --bg-pill: #172344;
  --bg-pill-hover: #1F2D54;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(242, 167, 181, 0.28);

  --text-main: #FFFFFF;
  --text-body: #E2E8F0;
  --text-muted: #8E9BB5;
  --text-faint: #5E6A85;

  --correct-bg: rgba(34, 197, 94, 0.16);
  --correct-border: #22C55E;
  --correct-text: #4ADE80;

  --wrong-bg: rgba(239, 68, 68, 0.16);
  --wrong-border: #EF4444;
  --wrong-text: #F87171;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-card: 24px;
  --radius-court: 18px;
  --radius-button: 10px;
  --radius-pill: 9999px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

/* Page Wrapper */
.quiz-viewport {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

/* ========================================================
   TOP HEADER & PROGRESS BAR
   ======================================================== */
.quiz-top-nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4px;
  width: 100%;
  box-sizing: border-box;
}

/* Brand Logo & Title */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.18s ease;
}

.brand-logo:hover {
  text-decoration: none;
  opacity: 0.95;
}

.brand-logo-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.22s ease;
  filter: drop-shadow(0 3px 12px rgba(242, 167, 181, 0.28));
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo:hover .brand-logo-img,
.brand-logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 5px 20px rgba(242, 167, 181, 0.5));
}

.brand-quiz-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-title-city {
  display: inline;
  color: var(--color-brand-accent);
}

.header-right-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-cancel-header {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.btn-cancel-header:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
  color: #FCA5A5;
}

.btn-cancel-text-desktop {
  display: inline;
}

.btn-cancel-text-mobile {
  display: none;
}

/* Hidden by default on Desktop */
.btn-hamburger,
.progress-section-mobile,
.mobile-menu-drawer,
.mobile-menu-backdrop {
  display: none !important;
}

.progress-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.progress-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.progress-track {
  width: 150px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: var(--color-brand-accent);
  border-radius: var(--radius-pill);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(242, 167, 181, 0.6);
}

.header-utility-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-tool-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-white);
  transition: all 0.15s ease;
}

.header-tool-btn:hover {
  background: rgba(242, 167, 181, 0.18);
  border-color: var(--color-brand-accent);
  color: var(--color-brand-accent);
  transform: translateY(-1px);
}

/* ========================================================
   MAIN QUIZ CARD (ELEVATED DEEP NAVY CONTAINER)
   ======================================================== */
.quiz-main-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  padding: 32px 36px 36px 36px;
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: 36px;
  position: relative;
  box-sizing: border-box;
  width: 100%;
}

/* ========================================================
   LEFT COLUMN: COURT VISUALIZER
   ======================================================== */
.court-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
}

.court-container-box {
  background-color: var(--bg-court);
  border-radius: var(--radius-court);
  border: 1px solid var(--border-subtle);
  padding: 16px;
  position: relative;
  min-height: 480px;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  perspective: 1200px;
  perspective-origin: center center;
  user-select: none;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.court-3d-interactive {
  transition: transform 0.16s cubic-bezier(0.2, 0.8, 0.35, 1);
  transform-style: preserve-3d;
  will-change: transform;
  transform-origin: center center;
}

#court-visualizer-container {
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.court-visualizer-wrap {
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.court-header-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
}

/* 3D / 2D Toggle Pill */
.view-toggle-pill {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  padding: 3px;
  backdrop-filter: blur(8px);
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
}

.view-btn.active {
  background-color: var(--color-brand-accent);
  color: var(--color-primary-dark);
  box-shadow: 0 2px 8px rgba(242, 167, 181, 0.4);
}

.view-btn:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.toggle-icon {
  display: inline-block;
  vertical-align: middle;
}

/* Court Canvas / SVG Area */
.court-canvas-area {
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.court-svg {
  width: 100%;
  height: auto;
  max-height: 460px;
  display: block;
  margin: auto;
}

/* Legend below Court */
.court-legend-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 6px;
  flex-wrap: wrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.du {
  background-color: var(--color-brand-accent);
  box-shadow: 0 0 8px rgba(242, 167, 181, 0.6);
}

.legend-dot.partner {
  background-color: var(--color-white);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.legend-dot.gegner {
  background-color: #64748B;
  border: 1.5px solid var(--color-white);
}

.legend-ball-traj {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ========================================================
   ANIMATED FLYING BALL (3D & 2D)
   ======================================================== */
.animated-flying-ball-3d,
.animated-flying-ball-2d {
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(217, 249, 56, 0.6));
  will-change: transform, opacity;
}

/* ========================================================
   TEAM CONNECTION VISUALIZER (FRAGE 11)
   ======================================================== */
.team-connection-3d,
.team-connection-2d {
  filter: drop-shadow(0 0 6px rgba(242, 167, 181, 0.4));
}

.team-connection-3d text,
.team-connection-2d text {
  user-select: none;
  pointer-events: none;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: var(--color-navy-elevated);
  border: 1px solid var(--color-brand-accent);
  color: var(--color-white);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ========================================================
   RIGHT COLUMN: QUESTION & OPTIONS
   ======================================================== */
.question-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
}

.question-top-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Category Badges (Sport Akzent: Ball Neon #D9F938) */
.category-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-pill {
  background-color: var(--color-brand-accent);
  color: var(--color-primary-dark);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 0 14px var(--color-brand-accent-glow);
}

.badge-pill.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
}

/* Question Heading (Pure White bold - like The Padellers headline) */
.question-text {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--color-white);
  letter-spacing: -0.01em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Answer Options List */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
  width: 100%;
  box-sizing: border-box;
}

.option-btn {
  background-color: var(--color-navy-elevated);
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-button);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.option-btn:hover:not(:disabled) {
  background-color: var(--color-navy-elevated-hover);
  border-color: var(--color-brand-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(242, 167, 181, 0.22);
}

.option-btn:disabled {
  cursor: default;
}

.option-letter {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-brand-accent);
  width: 22px;
  flex-shrink: 0;
  text-align: center;
}

.option-text {
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.44;
  color: var(--color-white);
  flex: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Option feedback states */
.option-btn.selected {
  border-color: var(--color-brand-accent);
  background-color: var(--color-brand-accent-tint);
  box-shadow: 0 0 16px rgba(242, 167, 181, 0.25);
}

.option-btn.is-correct {
  border-color: var(--correct-border) !important;
  background-color: var(--correct-bg) !important;
}

.option-btn.is-correct .option-letter,
.option-btn.is-correct .option-text {
  color: var(--correct-text) !important;
  font-weight: 700;
}

.option-btn.is-wrong {
  border-color: var(--wrong-border) !important;
  background-color: var(--wrong-bg) !important;
}

.option-btn.is-wrong .option-letter,
.option-btn.is-wrong .option-text {
  color: var(--wrong-text) !important;
}

/* ========================================================
   SKIP / "NICHT BEANTWORTEN" OPTION
   ======================================================== */
.skip-action-container {
  margin-top: 10px;
  display: flex;
  width: 100%;
}

.btn-skip-question {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  background-color: rgba(242, 167, 181, 0.04);
  color: var(--color-brand-accent);
  border: 1.5px dashed rgba(242, 167, 181, 0.45);
  border-radius: var(--radius-button);
  padding: 13px 18px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-skip-question:hover {
  background-color: rgba(242, 167, 181, 0.14);
  border-color: var(--color-brand-accent);
  color: var(--color-white);
}

.btn-skip-question svg {
  flex-shrink: 0;
  color: var(--color-brand-accent);
  transition: color 0.2s ease;
}

.btn-skip-question:hover svg {
  color: var(--color-white);
}

/* ========================================================
   FEEDBACK & EXPLANATION CARD (revealed on answer)
   ======================================================== */
.feedback-box {
  background-color: #162242;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-button);
  padding: 20px 22px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 0.25s ease-out;
}

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

.feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
}

.feedback-header.correct {
  color: var(--correct-text);
}

.feedback-header.wrong {
  color: var(--wrong-text);
}

.feedback-header.skipped {
  color: var(--color-brand-accent);
}

.feedback-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-body);
}

/* Call-to-Action: Matching 'COURT BUCHEN' and 'JETZT STANDORT FINDEN' */
.btn-next-question {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-brand-accent);
  color: var(--color-primary-dark);
  border: none;
  border-radius: var(--radius-button);
  padding: 13px 28px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  align-self: flex-end;
  margin-top: 6px;
  transition: all 0.18s ease;
  box-shadow: 0 4px 16px rgba(242, 167, 181, 0.4);
}

.btn-next-question:hover {
  background-color: var(--color-brand-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(242, 167, 181, 0.55);
}

/* ========================================================
   MODALS (Deep Navy with Blush Pink Borders)
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 20, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 2500;
  padding: 16px;
  box-sizing: border-box;
  overflow-y: auto;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  padding: 28px 30px;
  max-width: 520px;
  width: 100%;
  max-height: 94vh;
  overflow-y: auto;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(12px) scale(0.98);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-sizing: border-box;
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-white);
}

.modal-body {
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--color-body);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.2;
}

.btn-secondary:hover {
  background: var(--bg-pill-hover);
  border-color: var(--color-brand-accent);
  color: var(--color-brand-accent);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #C62828;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.2;
}

.btn-danger:hover {
  background: #B71C1C;
}

/* Question Grid Jumper Modal */
.questions-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.question-chip {
  background: var(--bg-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  height: 38px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.15s ease;
}

.question-chip:hover {
  background: rgba(242, 167, 181, 0.2);
  border-color: var(--color-brand-accent);
  color: var(--color-white);
}

.question-chip.current {
  background: var(--color-brand-accent);
  border-color: var(--color-brand-accent);
  color: var(--color-primary-dark);
}

.question-chip.answered-correct {
  border: 1.5px solid var(--correct-border);
  color: var(--correct-text);
}

.question-chip.answered-wrong {
  border: 1.5px solid var(--wrong-border);
  color: var(--wrong-text);
}

.question-chip.answered-skipped {
  border: 1.5px dashed var(--color-brand-accent);
  background-color: var(--color-brand-accent-tint);
  color: var(--color-brand-accent);
}

/* ========================================================
   FINAL RESULT & PADEL IQ SCORE SCREEN
   ======================================================== */
.results-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 36px 32px 30px 32px;
  max-width: 500px;
  width: 90%;
  box-sizing: border-box;
}

.iq-badge-circle {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A1124, #1B2950);
  border: 3.5px solid var(--color-brand-accent);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(242, 167, 181, 0.35);
  flex-shrink: 0;
}

.iq-score-num {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-white);
}

.iq-score-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-accent);
  font-weight: 800;
  white-space: nowrap;
}

.iq-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 167, 181, 0.12);
  border: 1px solid rgba(242, 167, 181, 0.35);
  color: var(--color-brand-accent);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

.results-card .modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.01em;
  margin-top: -2px;
  line-height: 1.3;
}

.iq-feedback-body {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.iq-desc-main {
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--color-body);
  margin: 0;
}

.iq-desc-main strong {
  color: var(--color-white);
  font-weight: 700;
}

.iq-desc-sub {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
}

.iq-desc-sub strong {
  color: var(--color-brand-accent);
  font-weight: 700;
}

/* WhatsApp Community Button (Matches Quiz neu starten / Test fortsetzen Style) */
.btn-whatsapp-community {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background-color: var(--color-brand-accent);
  color: var(--color-primary-dark);
  border: none;
  border-radius: var(--radius-button);
  padding: 13px 24px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(242, 167, 181, 0.4);
  transition: all 0.18s ease;
  box-sizing: border-box;
  margin: 4px 0 2px 0;
  cursor: pointer;
}

.btn-whatsapp-community:hover {
  background-color: var(--color-brand-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(242, 167, 181, 0.55);
  color: var(--color-primary-dark);
}

.btn-whatsapp-community:active {
  transform: translateY(0);
}

.btn-whatsapp-community svg {
  flex-shrink: 0;
  fill: currentColor;
}

.results-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin: 6px 0;
  box-sizing: border-box;
}

.stat-box {
  background: var(--bg-court);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
}

.stat-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ========================================================
   RESULTS MODAL ACTIONS & CENTERING
   ======================================================== */
.results-card .modal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  margin-top: 12px;
  flex-wrap: wrap;
}

#btn-resume-quiz {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
  background-color: var(--color-navy-elevated);
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-button);
  padding: 13px 28px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1.2;
  margin: 0;
  transition: all 0.18s ease;
  min-height: 46px;
  box-sizing: border-box;
}

#btn-resume-quiz span {
  display: inline-block;
  text-align: center;
  line-height: 1.2;
}

#btn-resume-quiz:hover {
  background-color: var(--color-navy-elevated-hover);
  border-color: var(--color-brand-accent);
  color: var(--color-brand-accent);
  transform: translateY(-1px);
}

#btn-restart {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
  background-color: var(--color-brand-accent);
  color: var(--color-primary-dark);
  border: none;
  border-radius: var(--radius-button);
  padding: 13px 28px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1.2;
  margin: 0;
  transition: all 0.18s ease;
  min-height: 46px;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(242, 167, 181, 0.4);
}

#btn-restart span {
  display: inline-block;
  text-align: center;
  line-height: 1.2;
}

#btn-restart:hover {
  background-color: var(--color-brand-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(242, 167, 181, 0.55);
}

/* ========================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ======================================================== */
@media (max-width: 890px) {
  body {
    padding: 16px 12px;
  }

  .quiz-viewport {
    gap: 14px;
  }

  /* Header transforms to 2-row layout with hamburger on tablets & mobile */
  .quiz-top-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 10px;
    padding: 6px 2px;
  }

  /* Hide Desktop tools on mobile and show Mobile Hamburger + Progress */
  .header-right-tools {
    display: none !important;
  }

  /* Hamburger Toggle Button */
  .btn-hamburger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    z-index: 1200;
    flex-shrink: 0;
  }

  .btn-hamburger:hover,
  .btn-hamburger:active {
    background: rgba(242, 167, 181, 0.14);
    border-color: var(--color-brand-accent);
  }

  .hamburger-box {
    width: 20px;
    height: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .hamburger-line {
    display: block;
    width: 100%;
    height: 2.2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, background-color 0.2s ease;
    transform-origin: center;
  }

  .btn-hamburger.is-active {
    background: rgba(242, 167, 181, 0.22);
    border-color: var(--color-brand-accent);
    box-shadow: 0 0 14px rgba(242, 167, 181, 0.4);
  }

  .btn-hamburger.is-active .line-1 {
    transform: translateY(6.4px) rotate(45deg);
    background-color: var(--color-brand-accent);
  }

  .btn-hamburger.is-active .line-2 {
    opacity: 0;
    transform: scaleX(0);
  }

  .btn-hamburger.is-active .line-3 {
    transform: translateY(-6.4px) rotate(-45deg);
    background-color: var(--color-brand-accent);
  }

  /* Prominent Mobile Header Sizing! */
  .brand-logo {
    order: 1;
    flex: 1 1 auto;
    gap: 12px;
    min-width: 0;
  }

  .btn-hamburger {
    order: 2;
  }

  .brand-logo-img {
    width: 54px;
    height: 54px;
    filter: drop-shadow(0 4px 14px rgba(242, 167, 181, 0.35));
  }

  .brand-quiz-title {
    font-size: 1.18rem;
    line-height: 1.22;
    white-space: normal;
  }

  .brand-title-city {
    display: block;
    font-size: 0.94rem;
    color: var(--color-brand-accent);
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  /* Mobile Full-Width Progress Section */
  .progress-section-mobile {
    order: 3;
    display: flex !important;
    width: 100%;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 4px 0 2px 0;
  }

  .progress-section-mobile .progress-label {
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--color-white);
  }

  .progress-section-mobile .progress-track {
    flex: 1;
    width: auto;
    height: 7px;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    overflow: hidden;
  }

  .progress-section-mobile .progress-bar-fill {
    height: 100%;
    background: var(--color-brand-accent);
    border-radius: var(--radius-pill);
    box-shadow: 0 0 10px rgba(242, 167, 181, 0.6);
  }

  /* Mobile Menu Drawer */
  .mobile-menu-drawer {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 280px;
    max-width: calc(100vw - 24px);
    background: rgba(14, 22, 43, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(242, 167, 181, 0.28);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.75), 0 0 25px rgba(242, 167, 181, 0.14);
    border-radius: 18px;
    padding: 8px;
    z-index: 1250;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top right;
    transition: opacity 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.2s ease;
    pointer-events: none;
  }

  .mobile-menu-drawer.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    border: none;
    background: transparent;
    color: var(--color-white);
    border-radius: 12px;
    font-family: var(--font-sans);
    cursor: pointer;
    text-align: left;
    transition: all 0.16s ease;
  }

  .mobile-menu-item:hover,
  .mobile-menu-item:active {
    background: rgba(255, 255, 255, 0.08);
  }

  .menu-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(242, 167, 181, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-brand-accent);
    border: 1px solid rgba(242, 167, 181, 0.25);
  }

  .menu-item-content {
    flex: 1;
    min-width: 0;
  }

  .menu-item-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-white);
  }

  .menu-item-desc {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 1px;
  }

  .menu-item-chevron {
    font-size: 1.2rem;
    color: var(--text-muted);
    opacity: 0.6;
    padding-right: 2px;
  }

  .mobile-menu-item.is-danger .danger-icon {
    color: #F87171;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.12);
  }

  .mobile-menu-item.is-danger:hover,
  .mobile-menu-item.is-danger:active {
    background: rgba(239, 68, 68, 0.14);
  }

  .mobile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.09);
    margin: 5px 8px;
  }

  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 20, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .mobile-menu-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* Mobile Menü komplett ausblenden, wenn das Ergebnis-Modal geöffnet ist */
  body.results-open .btn-hamburger,
  body.results-open .mobile-menu-drawer,
  body.results-open .mobile-menu-backdrop,
  body.results-open .progress-section-mobile,
  body:has(#modal-results.open) .btn-hamburger,
  body:has(#modal-results.open) .mobile-menu-drawer,
  body:has(#modal-results.open) .mobile-menu-backdrop,
  body:has(#modal-results.open) .progress-section-mobile {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .quiz-main-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 20px;
    border-radius: 18px;
  }

  .question-text {
    font-size: 1.25rem;
  }

  .court-container-box {
    min-height: 360px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 12px 10px;
  }

  .brand-logo {
    gap: 10px;
  }

  .brand-logo-img {
    width: 48px;
    height: 48px;
  }

  .brand-quiz-title {
    font-size: 1.10rem;
    line-height: 1.2;
  }

  .brand-title-city {
    font-size: 0.88rem;
  }

  .btn-hamburger {
    width: 42px;
    height: 42px;
  }

  .quiz-main-card {
    padding: 16px 12px;
  }

  .option-btn {
    padding: 14px 16px;
    gap: 12px;
  }

  .questions-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .results-card {
    padding: 28px 20px 22px 20px;
  }

  .btn-whatsapp-community {
    font-size: 0.88rem;
    padding: 11px 16px;
    gap: 8px;
  }

  .results-stats-row {
    gap: 8px;
  }

  .stat-box {
    padding: 10px 4px;
    border-radius: 10px;
  }

  .stat-value {
    font-size: 1.05rem;
  }

  .stat-title {
    font-size: 0.65rem;
  }
}

@media (max-width: 360px) {
  body {
    padding: 10px 6px;
  }

  .brand-logo-img {
    width: 42px;
    height: 42px;
  }

  .brand-quiz-title {
    font-size: 1.0rem;
  }

  .brand-title-city {
    font-size: 0.82rem;
  }

  .btn-hamburger {
    width: 38px;
    height: 38px;
  }
}
