/* ── Kopf-fit Leseprobe – gemeinsames Flipbook-CSS ──────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── SKIP LINK (WCAG 2.4.1) ──────────────────── */
.skip-link {
  position: absolute; top: 0; left: 0;
  background: #1A5DAE; color: #fff;
  padding: .75rem 1rem; z-index: 9999;
  text-decoration: none; font-weight: 700;
  transform: translateY(-150%);
  transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

/* ── FOCUS VISIBLE (WCAG 2.4.7) ──────────────── */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

body {
  background: #1a1a2e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #fff;
  padding: 20px 16px 24px;
}
body.theme-navy { background: #0A2D6E; }

/* ── Header ─────────────────────────────────────────────────── */
.header,
.fb-header { text-align: center; margin-bottom: 14px; }

.header .label,
.fb-header .label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}
.header h1,
.fb-header h1 {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #fff;
}
.fb-header h1 { font-size: clamp(20px, 3.5vw, 30px); letter-spacing: 0; }
.header h1 span,
.fb-header h1 span { color: #cc1122; }
.header .subtitle,
.fb-header .sub {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
}

/* ── Flipbook ──────────────────────────────────────────────── */
#flipbook-wrap,
#fb-wrap { display: flex; flex-direction: column; align-items: center; }

#flipbook .page,
#fb-book .fb-page { background: #fff; overflow: hidden; }

#flipbook .page img,
#fb-book .fb-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* ── Navigation ────────────────────────────────────────────── */
.nav-bar,
.fb-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-btn,
.fb-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  padding: 8px 22px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.18s;
  user-select: none;
  white-space: nowrap;
  font-family: inherit;
}
.nav-btn:hover,
.fb-btn:hover { background: rgba(255,255,255,0.22); }
.nav-btn:disabled,
.fb-btn:disabled { opacity: 0.3; cursor: default; }

#page-label,
#fb-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  min-width: 90px;
  text-align: center;
}
#fb-label { min-width: 160px; }

/* ── CTAs ──────────────────────────────────────────────────── */
.cta-bar,
.fb-cta {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-btn,
.fb-cta-btn {
  background: #cc1122;
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.18s, transform 0.1s;
  font-family: inherit;
}
.cta-btn:hover,
.fb-cta-btn:hover { background: #aa0e1a; transform: translateY(-1px); }
.cta-btn.sec,
.fb-cta-btn.sec {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.82);
}
.cta-btn.sec:hover,
.fb-cta-btn.sec:hover { background: rgba(255,255,255,0.1); }
