/* ===== Farben & Grundwerte ===== */
:root {
  --bg: #003e66;
  --fg: #fff;
  --muted: #8a8a8a;
  --line: #3a3a3a;
  --nav: #eb0005;          /* Farbe der Navigationsleiste */
  --on-nav: #fff;          /* Symbole & Text darauf (Kontrast 4,6:1) */
  --bar-height: 72px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  overflow: hidden;
}

/* ===== Bühne mit dem Magazin ===== */
.stage {
  position: absolute;
  inset: 0 0 var(--bar-height) 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#book {
  width: 100%;
  height: 100%;
}

/* ===== Bedienleiste ===== */
.controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bar-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  background: var(--nav);
  color: var(--on-nav);
}

.controls button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--on-nav);
  border-radius: 50%;
  background: transparent;
  color: var(--on-nav);
  font-family: var(--font);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.controls button:hover:not(:disabled) {
  background: var(--on-nav);
  color: var(--nav);
}

.controls button:disabled {
  border-color: rgba(255, 255, 255, .45);
  color: rgba(255, 255, 255, .45);
  cursor: default;
}

.controls button:focus-visible,
.pager input:focus-visible {
  outline: 2px solid var(--on-nav);
  outline-offset: 3px;
}

.pager {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 110px;
  justify-content: center;
  color: var(--on-nav);
  font-size: 15px;
}

.pager input {
  width: 56px;
  height: 36px;
  border: 1px solid var(--on-nav);
  border-radius: 18px;
  background: transparent;
  color: var(--on-nav);
  font-family: var(--font);
  font-size: 15px;
  text-align: center;
  -moz-appearance: textfield;
}

.pager input::-webkit-outer-spin-button,
.pager input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.divider {
  width: 1px;
  height: 28px;
  margin: 0 6px;
  background: rgba(255, 255, 255, .55);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===== Schmale Bildschirme ===== */
@media (max-width: 480px) {
  :root { --bar-height: 64px; }
  .stage { padding: 12px; }
  .controls { gap: 6px; }
  .controls button { width: 40px; height: 40px; }
  .divider { margin: 0 2px; }
}
