/*
 * shared.css – Gemeinsame Schriftart und Navigation
 * Wird in jede Simulation eingebunden.
 */

@import url('/vendor/fonts.css');

/* Lato als Standardschrift für alle Simulationen */
body {
  font-family: 'Lato', sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Erlaube Textauswahl in Eingabefeldern */
input, textarea {
  -webkit-user-select: text;
  user-select: text;
}

/* ── Navigationsleiste ──────────────────────────────────────────────────────── */

.sim-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 1.2rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20, 38, 62, 0.12);
}

@media (prefers-color-scheme: light) {
  .sim-nav {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(20, 38, 62, 0.12);
  }
}

@media (prefers-color-scheme: dark) {
  .sim-nav {
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.sim-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #1f4f86;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.sim-nav__back:hover {
  opacity: 0.65;
}

@media (prefers-color-scheme: dark) {
  .sim-nav__back {
    color: #6ea8e0;
  }
}

.sim-nav__back svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.sim-nav__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #132b47;
  letter-spacing: -0.01em;
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 0 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
  .sim-nav__title {
    color: #e4e2de;
  }
}

/* ── Sprachumschalter ───────────────────────────────────────────────────────── */

.sim-nav__lang {
  position: relative;
  flex-shrink: 0;
}

/* Native select provides keyboard and screen-reader interaction. */
.sim-nav__lang-select {
  background: transparent;
  border: 1px solid rgba(20, 38, 62, 0.18);
  border-radius: 4px;
  padding: 3px 8px;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1f4f86;
  cursor: pointer;
}
.sim-nav__lang-select:hover { background: rgba(31, 79, 134, 0.08); }
.sim-nav__lang-select:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.sim-nav__lang-select option { background: white; color: #132b47; }
@media (prefers-color-scheme: dark) {
  .sim-nav__lang-select { color: #6ea8e0; border-color: rgba(255, 255, 255, 0.18); }
  .sim-nav__lang-select option { background: #111; color: #e4e2de; }
}
