/* ═══════════════════════════════════════════════════════════════
   Safe Frames · Stakeholderanalyse — Speaker Notes (Step-Deck)
   Private Vortragsansicht für TÜV-Projektpräsentation (Claus)
   Step-/Karten-Navigation: immer genau ein Step im Fokus, kein Scrollen
   Dunkles, ruhiges Theme · hoher Kontrast · große Schrift
   Vanilla CSS, keine externen Fonts/Libraries
═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
  --bg:            #0c1622;   /* sehr dunkles Navy (Bühne) */
  --bg-soft:       #142539;   /* Step-Karte */
  --bg-soft-2:     #16283c;   /* Hover / Nav */
  --border:        #25405c;
  --text:          #eef4fb;   /* fast weiß, hoher Kontrast */
  --text-dim:      #c4d4e6;   /* ruhiger Fließtext */
  --accent:        #38c9da;   /* Türkis (Ilumera) */
  --accent-soft:   #9EDFE6;   /* helles Aqua */
  --highlight-bg:  #13313a;   /* Highlight-Karten */

  --maxw: 62rem;
  --radius: 16px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

/* ── Reset / Basis ───────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 1.25rem;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow: hidden;            /* keine Seiten-Scrollleiste im Präsentationsmodus */
}

/* ── Sticky-Schnellnavigation (Hauptbereiche) ────────────────── */
.sp-nav {
  flex: 0 0 auto;
  background: rgba(12, 22, 34, 0.96);
  border-bottom: 1px solid var(--border);
}
.sp-nav-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.sp-nav-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-right: 0.4rem;
}
.sp-nav a {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sp-nav a:hover,
.sp-nav a:focus-visible {
  background: var(--bg-soft-2);
  border-color: var(--accent);
  outline: none;
}
.sp-nav a.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #06222a;
}

/* ── Meta-Zeile: Marke + Step-Anzeige ────────────────────────── */
.sp-meta {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.sp-meta-left {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
}
.sp-brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.sp-time-mini {
  font-size: 0.95rem;
  color: var(--text-dim);
}
.sp-stepind {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-soft);
  white-space: nowrap;
}

/* ── Bühne (Deck) ────────────────────────────────────────────── */
.sp-deck {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.75rem 2rem;
  overflow-y: auto;            /* Fallback, falls eine Karte doch zu hoch ist */
}

/* ── Step-Karten ─────────────────────────────────────────────── */
.sp-step {
  display: none;
  width: 100%;
  max-width: var(--maxw);
  margin: auto;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.9rem 2.4rem;
}
.sp-step.is-current { display: block; }

.sp-step-kicker {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.sp-step-title {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
  hyphens: auto;
}
.sp-step-body p {
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  line-height: 1.5;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
  max-width: 60ch;
}
.sp-step-body p:last-child { margin-bottom: 0; }
.sp-step-body strong { color: var(--text); }

/* Highlight-Steps: stärkere Hervorhebung, ruhig */
.sp-step-highlight {
  background: var(--highlight-bg);
  border-top-color: var(--accent);
  border-left: 5px solid var(--accent);
}
.sp-step-highlight .sp-step-body p {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

/* ── Dezente Bedienhilfe (unten rechts, fest) ────────────────── */
.sp-hint {
  position: fixed;
  right: 1.1rem;
  bottom: 0.9rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  background: rgba(12, 22, 34, 0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  pointer-events: none;
}
.sp-hint kbd {
  font-family: inherit;
  font-weight: 700;
  color: var(--text);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 820px) {
  body { font-size: 1.1rem; overflow: auto; }   /* mobil normales Scrollen erlauben */
  .sp-deck { padding: 1.5rem 1rem 3rem; }
  .sp-step { padding: 1.8rem 1.4rem; }
  .sp-hint { display: none; }
  .sp-nav a { font-size: 0.95rem; padding: 0.4rem 0.8rem; }
}
