/* ════════════════════════════════════════════════════════════════
   NAVIGATIONSSPIEL – Seereise-Abenteuer „Polarstern"
   Modal-basiertes Minispiel (Präfix nav- für Spiel-Klassen)
   ════════════════════════════════════════════════════════════════ */

/* ── Modal-Overlay ── */
.nav-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: background 0.3s ease, opacity 0.3s ease;
  padding: 1rem;
}

.nav-modal-overlay.nav-modal-visible {
  background: rgba(0, 0, 0, 0.7);
  opacity: 1;
}

.nav-modal-overlay.nav-modal-hiding {
  background: rgba(0, 0, 0, 0);
  opacity: 0;
}

.nav-modal-content {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.25), 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #e2e8f0;
}

.nav-modal-overlay.nav-modal-visible .nav-modal-content {
  transform: scale(1) translateY(0);
}

.nav-modal-overlay.nav-modal-hiding .nav-modal-content {
  transform: scale(0.9) translateY(20px);
}

/* Scrollbar-Styling */
.nav-modal-content::-webkit-scrollbar { width: 8px; }
.nav-modal-content::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.5); border-radius: 4px; }
.nav-modal-content::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.4); border-radius: 4px; }
.nav-modal-content::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 246, 0.6); }

/* ── Hintergrund-Sterne ── */
.nav-modal-bg-stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: 1.5rem;
}

.nav-modal-bg-star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: nav-bg-star-twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes nav-bg-star-twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.4); }
}

/* ── Intro-Bildschirm ── */
.nav-intro {
  position: relative;
  z-index: 1;
  text-align: center;
}

.nav-intro-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.nav-intro-emoji {
  font-size: 3rem;
  line-height: 1;
}

.nav-intro-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.nav-intro-desc {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.nav-intro-stations {
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.nav-stations-title {
  font-weight: 700;
  color: #c4b5fd;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.nav-stations-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-station-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 0.75rem;
  padding: 0.625rem 0.875rem;
}

.nav-station-preview-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.nav-station-preview-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.nav-station-preview-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.nav-station-preview-title {
  font-weight: 700;
  color: #e2e8f0;
  font-size: 0.875rem;
}

.nav-station-preview-method {
  color: #94a3b8;
  font-size: 0.75rem;
}

.nav-intro-how {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.nav-how-title {
  font-weight: 700;
  color: #c4b5fd;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.nav-how-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-how-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: #cbd5e1;
}

.nav-how-emoji {
  font-size: 1.125rem;
  flex-shrink: 0;
}

.nav-intro-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.nav-btn:active { transform: scale(0.96); }

.nav-btn-start {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.nav-btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.55);
}

.nav-btn-cancel,
.nav-btn-finish {
  background: rgba(100, 116, 139, 0.2);
  color: #cbd5e1;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.nav-btn-cancel:hover,
.nav-btn-finish:hover {
  background: rgba(100, 116, 139, 0.3);
}

.nav-btn-restart {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.nav-btn-restart:hover {
  background: rgba(139, 92, 246, 0.3);
}

.nav-btn-next {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.nav-btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.55);
}

.nav-btn-close-sm {
  background: rgba(100, 116, 139, 0.2);
  color: #cbd5e1;
  border: 1px solid rgba(100, 116, 139, 0.3);
  padding: 0.375rem 0.625rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
}

.nav-btn-close-sm:hover {
  background: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.3);
}

/* ── Spiel-Header ── */
.nav-playing {
  position: relative;
  z-index: 1;
}

.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.nav-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-header-emoji {
  font-size: 1.5rem;
}

.nav-header-title {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

/* ── Statusleiste ── */
.nav-status {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 0.75rem;
  padding: 0.625rem;
  margin-bottom: 0.75rem;
}

.nav-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}

.nav-stat-label {
  font-size: 0.6875rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nav-stat-value {
  font-size: 1rem;
  font-weight: 800;
  color: #c4b5fd;
}

/* ── Fortschrittsbalken ── */
.nav-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.nav-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
  border-radius: 3px;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* ── Stations-Visual ── */
.nav-station-visual {
  width: 100%;
  height: 200px;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
  border: 1px solid rgba(139, 92, 246, 0.15);
}

/* Station 1: Sonne */
.nav-visual-sonne {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #1e3a8a 0%, #1e40af 60%, #0c4a6e 100%);
}

.nav-visual-sonne-disc {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, #fde047 0%, #facc15 50%, #f59e0b 100%);
  box-shadow: 0 0 30px rgba(250, 204, 21, 0.8), 0 0 60px rgba(250, 204, 21, 0.4);
  transform: translate(-50%, -50%);
  transition: none;
}

.nav-visual-horizont {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to bottom, #0c4a6e 0%, #075985 100%);
  border-top: 2px solid rgba(34, 211, 238, 0.3);
}

.nav-visual-ship {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.75rem;
  z-index: 2;
}

.nav-visual-sonne-strahl {
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, rgba(250, 204, 21, 0.6), rgba(250, 204, 21, 0));
  transform: translateX(-50%);
  pointer-events: none;
  transition: left 0.2s ease, top 0.2s ease, height 0.2s ease;
}

/* Station 2: Nacht / Polarstern */
.nav-visual-nacht {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #020617 0%, #0f172a 60%, #1e293b 100%);
}

.nav-visual-stern {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px #fff;
}

.nav-visual-stern1 { top: 15%; left: 20%; }
.nav-visual-stern2 { top: 25%; left: 70%; width: 3px; height: 3px; }
.nav-visual-stern3 { top: 40%; left: 35%; }
.nav-visual-stern4 { top: 30%; left: 85%; }
.nav-visual-stern5 { top: 50%; left: 15%; width: 3px; height: 3px; }

.nav-visual-polarstern {
  position: absolute;
  font-size: 1.75rem;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8));
  animation: nav-polarstern-pulse 2s ease-in-out infinite;
  /* left/top/transform werden per JS in Pixeln gesetzt */
}

@keyframes nav-polarstern-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8)); }
  50% { filter: drop-shadow(0 0 16px rgba(251, 191, 36, 1)); }
}

.nav-visual-horizont-nacht {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25%;
  background: linear-gradient(to bottom, #1e293b 0%, #0f172a 100%);
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.nav-visual-ship-nacht {
  bottom: 8px;
}

.nav-visual-polarstern-strahl {
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, rgba(251, 191, 36, 0.5), rgba(251, 191, 36, 0));
  transform: translateX(-50%);
  pointer-events: none;
}

/* Station 3: Uhr */
.nav-visual-uhr-area {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

.nav-visual-uhr-big {
  font-size: 3rem;
  animation: nav-uhr-tick 1s ease-in-out infinite;
}

@keyframes nav-uhr-tick {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

.nav-visual-compass {
  font-size: 2.5rem;
  animation: nav-compass-spin 8s linear infinite;
}

@keyframes nav-compass-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Stations-Info ── */
.nav-station-info {
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
}

.nav-station-info-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.nav-station-info-emoji {
  font-size: 1.25rem;
}

.nav-station-info-title {
  font-weight: 700;
  color: #fff;
  font-size: 0.9375rem;
  margin: 0;
}

.nav-station-szenario {
  color: #cbd5e1;
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.nav-station-anleitung {
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

/* ── Interaktionsbereich ── */
.nav-interaction {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Slider (Sextant) ── */
.nav-slider-area {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
}

.nav-slider-label {
  display: block;
  font-weight: 700;
  color: #c4b5fd;
  font-size: 0.8125rem;
  margin-bottom: 0.625rem;
}

.nav-slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-sextant-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #1e293b, #312e81);
  outline: none;
  cursor: pointer;
}

.nav-sextant-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #fde047, #f59e0b);
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.6);
  transition: transform 0.15s ease;
}

.nav-sextant-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.nav-sextant-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #fde047, #f59e0b);
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.6);
}

.nav-slider-value {
  min-width: 3.5rem;
  text-align: center;
  font-weight: 800;
  color: #fde047;
  font-size: 1.125rem;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem;
}

/* ── Jahreszeiten-Auswahl ── */
.nav-jahreszeiten-area {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
}

.nav-jahreszeiten-title {
  font-weight: 700;
  color: #c4b5fd;
  font-size: 0.8125rem;
  margin-bottom: 0.625rem;
}

.nav-jahreszeiten-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.nav-jahreszeit-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 0.625rem;
  padding: 0.5rem 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  color: #cbd5e1;
}

.nav-jahreszeit-btn:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.1);
}

.nav-jahreszeit-btn.nav-jahreszeit-selected {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.2);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.nav-jahreszeit-emoji {
  font-size: 1.5rem;
}

.nav-jahreszeit-name {
  font-weight: 700;
  font-size: 0.75rem;
}

.nav-jahreszeit-dekl {
  font-size: 0.6875rem;
  color: #94a3b8;
}

.nav-jahreszeit-btn.nav-jahreszeit-selected .nav-jahreszeit-dekl {
  color: #c4b5fd;
}

/* ── Uhren-Vergleich ── */
.nav-uhren-area {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
}

.nav-uhren-title {
  font-weight: 700;
  color: #c4b5fd;
  font-size: 0.8125rem;
  margin-bottom: 0.625rem;
}

.nav-uhren-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}

.nav-uhr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 0.75rem;
  padding: 0.75rem;
}

.nav-uhr-heimat {
  border-color: rgba(59, 130, 246, 0.3);
}

.nav-uhr-lokal {
  border-color: rgba(250, 204, 21, 0.3);
}

.nav-uhr-label {
  font-size: 0.6875rem;
  color: #94a3b8;
  font-weight: 600;
}

.nav-uhr-time {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.nav-uhr-heimat .nav-uhr-time { color: #93c5fd; }
.nav-uhr-lokal .nav-uhr-time { color: #fde047; }

.nav-uhren-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  font-style: italic;
  margin: 0;
}

/* ── Rechnungs-Anzeige ── */
.nav-rechnung-area {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
}

.nav-rechnung-title {
  font-weight: 700;
  color: #c4b5fd;
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
}

.nav-rechnung-display {
  font-size: 0.875rem;
  color: #e2e8f0;
  line-height: 1.6;
  font-family: 'Courier New', monospace;
  background: rgba(2, 6, 23, 0.5);
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
}

.nav-rechnung-display strong {
  color: #fde047;
  font-size: 1rem;
}

/* ── Antwort-Optionen ── */
.nav-antwort-area {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
}

.nav-antwort-title {
  font-weight: 700;
  color: #c4b5fd;
  font-size: 0.8125rem;
  margin-bottom: 0.625rem;
}

.nav-antwort-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.nav-antwort-btn {
  padding: 0.75rem 0.5rem;
  background: rgba(30, 27, 75, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 0.625rem;
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.nav-antwort-btn:hover:not(.nav-antwort-disabled) {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.15);
  transform: translateY(-1px);
}

.nav-antwort-btn.nav-antwort-disabled {
  cursor: default;
  opacity: 0.7;
}

.nav-antwort-btn.nav-antwort-correct {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #86efac;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

.nav-antwort-btn.nav-antwort-wrong,
.nav-antwort-btn.nav-antwort-selected.nav-antwort-wrong {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5;
}

.nav-antwort-btn.nav-antwort-selected {
  transform: scale(1.03);
}

/* ── Hinweis ── */
.nav-hint-area {
  text-align: center;
}

.nav-hint-btn {
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.3);
  color: #fde047;
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.nav-hint-btn:hover {
  background: rgba(250, 204, 21, 0.2);
}

.nav-hint-text {
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.2);
  border-radius: 0.625rem;
  padding: 0.75rem 1rem;
  margin-top: 0.625rem;
  color: #fde68a;
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: left;
}

/* ── Erklärungsbildschirm ── */
.nav-erklaerung {
  text-align: center;
  padding: 1rem 0;
}

.nav-erklaerung-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.nav-erklaerung-emoji {
  font-size: 2rem;
}

.nav-erklaerung-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.nav-erklaerung-body {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.nav-erklaerung-text {
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.nav-erklaerung-fakt {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.2);
  border-radius: 0.625rem;
  padding: 0.625rem 0.75rem;
}

.nav-erklaerung-fakt-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
}

.nav-erklaerung-fakt-text {
  color: #fde68a;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.nav-erklaerung-actions {
  display: flex;
  justify-content: center;
}

/* ── Ergebnis-Bildschirm ── */
.nav-result {
  position: relative;
  z-index: 1;
  text-align: center;
}

.nav-result-visual {
  position: relative;
  height: 80px;
  margin-bottom: 0.5rem;
  overflow: hidden;
  border-radius: 1rem;
}

.nav-result-stars-bg {
  position: absolute;
  inset: 0;
}

.nav-result-bg-star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: nav-bg-star-twinkle 2s ease-in-out infinite;
}

.nav-result-emoji {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  z-index: 2;
}

.nav-result-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.nav-result-emoji-big {
  font-size: 2.5rem;
}

.nav-result-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.nav-result-msg {
  color: #94a3b8;
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.nav-result-stars {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.nav-star {
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.nav-star-earned {
  color: #fbbf24;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
  animation: nav-star-pop 0.5s ease-out backwards;
}

.nav-star-earned:nth-child(1) { animation-delay: 0.2s; }
.nav-star-earned:nth-child(2) { animation-delay: 0.4s; }
.nav-star-earned:nth-child(3) { animation-delay: 0.6s; }

@keyframes nav-star-pop {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.nav-star-empty {
  color: #475569;
}

.nav-result-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.nav-result-score-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: #c4b5fd;
  line-height: 1;
}

.nav-result-score-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.nav-result-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.nav-result-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}

.nav-result-stat-label {
  font-size: 0.6875rem;
  color: #94a3b8;
  font-weight: 600;
}

.nav-result-stat-value {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #e2e8f0;
}

.nav-result-stat-bonus .nav-result-stat-value {
  color: #fbbf24;
}

/* Station-Übersicht */
.nav-result-stations {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.nav-result-stations-title {
  font-weight: 700;
  color: #c4b5fd;
  font-size: 0.8125rem;
  margin-bottom: 0.625rem;
}

.nav-result-station {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
}

.nav-result-station-correct {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.nav-result-station-wrong {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.nav-result-station-emoji {
  font-size: 1.125rem;
}

.nav-result-station-name {
  flex: 1;
  text-align: left;
  color: #e2e8f0;
  font-weight: 600;
}

.nav-result-station-status {
  font-size: 1rem;
}

/* XP-Belohnung */
.nav-result-xp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.nav-result-xp-icon {
  font-size: 1.5rem;
}

.nav-result-xp-text {
  font-weight: 800;
  color: #c4b5fd;
  font-size: 0.9375rem;
}

.nav-result-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Konfetti & Popup ── */
.nav-confetti {
  position: absolute;
  border-radius: 2px;
  pointer-events: none;
  animation: nav-confetti-fly 0.8s ease-out forwards;
  z-index: 10;
}

@keyframes nav-confetti-fly {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(360deg); opacity: 0; }
}

.nav-popup {
  position: absolute;
  font-weight: 800;
  font-size: 1.125rem;
  pointer-events: none;
  animation: nav-popup-rise 1s ease-out forwards;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-popup-positive { color: #4ade80; }
.nav-popup-negative { color: #f87171; }

@keyframes nav-popup-rise {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-40px); opacity: 0; }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav-modal-content {
    padding: 1rem;
    border-radius: 1rem;
  }

  .nav-status {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-jahreszeiten-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-uhren-grid {
    grid-template-columns: 1fr;
  }

  .nav-antwort-options {
    grid-template-columns: 1fr;
  }

  .nav-result-stats {
    grid-template-columns: 1fr;
  }

  .nav-intro-title,
  .nav-result-title {
    font-size: 1.25rem;
  }

  .nav-station-visual {
    height: 160px;
  }
}
/* ════════════════════════════════════════════════════════════════
   UX-ÜBERARBEITUNG: Mess-Strahl, Messen-Button, Aufgabe-Box, Feedback
   ════════════════════════════════════════════════════════════════ */

/* ── Mess-Strahl (vom Schiff zum eingestellten Winkel) ── */
.nav-visual-mess-strahl {
  position: absolute;
  height: 3px;
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.9), rgba(250, 204, 21, 0.3));
  border-radius: 2px;
  transform-origin: 0 50%;
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.6);
  transition: none;
}

.nav-visual-mess-strahl-nacht {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.9), rgba(251, 191, 36, 0.3));
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.7);
}

/* Wenn der Strahl auf das Ziel ausgerichtet ist */
.nav-visual-mess-strahl.nav-mess-strahl-aligned {
  background: linear-gradient(90deg, rgba(74, 222, 128, 1), rgba(74, 222, 128, 0.4));
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.8);
  animation: nav-mess-strahl-pulse 0.6s ease-in-out infinite;
}

@keyframes nav-mess-strahl-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(74, 222, 128, 0.8); }
  50% { box-shadow: 0 0 22px rgba(74, 222, 128, 1); }
}

/* ── Winkel-Label im Visual ── */
.nav-visual-winkel-label {
  position: absolute;
  transform: translate(-50%, -100%);
  background: rgba(250, 204, 21, 0.9);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  pointer-events: none;
  z-index: 4;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ── Aufgabe-Box (klar hervorgehoben) ── */
.nav-station-aufgabe {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 0.625rem;
  padding: 0.625rem 0.75rem;
  margin-top: 0.625rem;
}

.nav-station-aufgabe-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
}

.nav-station-aufgabe-text {
  color: #e2e8f0;
  font-size: 0.8125rem;
  line-height: 1.5;
  font-weight: 600;
}

/* ── Messen-Button ── */
.nav-btn-messen {
  width: 100%;
  margin-top: 0.625rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  padding: 0.625rem 1rem;
  border-radius: 0.625rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.nav-btn-messen:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.nav-btn-messen:active {
  transform: scale(0.97);
}

.nav-btn-messen.nav-btn-messen-ready {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.5);
  animation: nav-messen-ready-pulse 1s ease-in-out infinite;
}

@keyframes nav-messen-ready-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 24px rgba(34, 197, 94, 0.8); }
}

.nav-btn-messen.nav-btn-messen-done {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid #22c55e;
  color: #86efac;
  cursor: default;
}

.nav-btn-messen.nav-btn-messen-wrong {
  animation: nav-messen-shake 0.5s ease;
}

@keyframes nav-messen-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ── Slider-Hinweistext ── */
.nav-slider-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.5rem;
  margin-bottom: 0;
  text-align: center;
  line-height: 1.4;
  min-height: 1.2em;
  transition: color 0.2s ease;
}

/* ── Rechnung: „bereit"-Zustand ── */
.nav-rechnung-display-ready {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.3);
}

/* ── Antwort-Optionen: aktiviert nach Messen ── */
.nav-antwort-options-active .nav-antwort-btn {
  animation: nav-antwort-enable 0.4s ease;
}

@keyframes nav-antwort-enable {
  0% { opacity: 0.5; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── Antwort-Optionen: Shake wenn noch nicht gemessen ── */
.nav-antwort-options-shake {
  animation: nav-antwort-shake 0.5s ease;
}

@keyframes nav-antwort-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* ── Sonne/Polarstern: fix positioniert, hervorgehoben ── */
.nav-visual-sonne-disc {
  transition: none; /* fix, keine Animation */
}

.nav-visual-polarstern {
  transition: none;
}

/* Ziel-Objekt mit subtle Glow, damit man es anpeilen kann */
.nav-visual-sonne-disc::after,
.nav-visual-polarstern::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(250, 204, 21, 0.4);
  animation: nav-ziel-ring 2s ease-in-out infinite;
}

@keyframes nav-ziel-ring {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0.1; }
}
