/* ── Slide Deck Shared Styles ──────────────────────────────────────────────────
 *
 * Shared CSS for all slide-deck pages (sales-deck.html, kundenpraesentation.html).
 * Each deck imports this via <link> and only adds page-specific rules inline.
 *
 * Depends on: common.css (variables, base, nav, toolbar, components, print)
 * ────────────────────────────────────────────────────────────────────────────── */

/* ── Variable aliases ── */
:root {
  --text: var(--fg);
  --muted: var(--fg-mid);
  --dim: var(--fg-dim);
  --heading: #ffffff;
  --strong: #ffffff;
  --yellow: var(--amber);
}

[data-theme="light"] {
  --heading: #111827;
  --strong: #111827;
}

/* ── Body override for fullscreen slide deck ── */
html, body {
  height: 100%;
}

body {
  overflow: hidden;
  padding: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ── Toolbar (slide-deck override) ── */
.toolbar {
  padding: 10px 48px;
  margin: 0 0 0 36px;
}

/* ── Slide container ── */
.deck {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 72px 96px 80px;
}

.slide.active {
  display: flex;
}

/* ── Progress bar ── */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.3s ease;
  z-index: 100;
}

/* ── Slide counter ── */
#counter {
  position: fixed;
  bottom: 24px;
  right: 32px;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.05em;
  z-index: 100;
}

/* ── Slide nav arrows ── */
.nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--dim);
  font-size: 28px;
  cursor: pointer;
  padding: 12px;
  z-index: 100;
  transition: color 0.15s;
  user-select: none;
}

.nav-btn:hover {
  color: var(--text);
}

#nav-prev {
  left: 16px;
  transition: left 0.3s ease, color 0.15s;
}

html[data-nav="open"] #nav-prev {
  left: 256px;
}

#nav-next {
  right: 16px;
}

/* ── Speaker notes ── */
.notes {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0d0d18;
  border-top: 2px solid var(--accent);
  padding: 16px 32px;
  font-size: 13px;
  color: var(--yellow);
  line-height: 1.6;
  max-height: 180px;
  overflow-y: auto;
  z-index: 200;
}

.notes.visible {
  display: block;
}

/* Hotkey hints: reuse shared #footer-hints from toolbar.css (no slide-specific override) */

/* ── Typography ── */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--heading);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--heading);
  margin-bottom: 24px;
}

.subtitle {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--muted);
  line-height: 1.5;
  max-width: 680px;
}

.lead {
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--text);
  line-height: 1.5;
  max-width: 800px;
  margin-bottom: 24px;
}

.lead strong {
  color: var(--strong);
}

/* ── Lists ── */
ul.bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}

ul.bullets li {
  font-size: clamp(15px, 1.8vw, 20px);
  line-height: 1.45;
  padding-left: 28px;
  position: relative;
  color: var(--text);
}

ul.bullets li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

ul.bullets li strong {
  color: var(--strong);
}

ul.bullets li.green::before {
  content: '\2713';
  color: var(--green);
}

ul.bullets li.red::before {
  content: '\2717';
  color: var(--red);
}

ul.bullets li.warn::before {
  content: '\25B3';
  color: var(--yellow);
}

/* ── Sub-bullets (nested, smaller) ── */
ul.sub-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
  padding-left: 4px;
}

ul.sub-bullets li {
  font-size: clamp(12px, 1.35vw, 15px);
  line-height: 1.4;
  padding-left: 18px;
  position: relative;
  color: var(--muted);
}

ul.sub-bullets li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--dim);
}

ul.sub-bullets li strong {
  color: var(--text);
}

ul.sub-bullets li.warn::before {
  content: '\25B3';
  color: var(--yellow);
}

ul.sub-bullets li.green::before {
  content: '\2713';
  color: var(--green);
}

/* ── Two-column ── */
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
  max-width: 960px;
}

.col-head {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.col-head.green {
  color: var(--green);
  border-color: var(--green);
}

.col-head.red {
  color: var(--red);
  border-color: var(--red);
}

/* ── Table ── */
.cmp-table {
  width: 100%;
  max-width: 900px;
  border-collapse: collapse;
  font-size: clamp(12px, 1.4vw, 15px);
}

.cmp-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.cmp-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}

.cmp-table tr:last-child td {
  border-bottom: none;
}

.cmp-table .us {
  color: var(--green);
  font-weight: 600;
}

.cmp-table .bad {
  color: var(--red);
}

.cmp-table .ok {
  color: var(--yellow);
}

.cmp-table .col-us {
  background: rgba(99, 102, 241, 0.07);
}

/* ── Highlight cards ── */
.cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 900px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  flex: 1;
  min-width: 220px;
}

.card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}

.card-value {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
}

.card-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Demo slide ── */
.demo-box {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 32px 40px;
  max-width: 640px;
}

.demo-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100%;
  max-width: 960px;
}

.demo-cols .demo-box {
  max-width: none;
  padding: 24px 28px;
  position: relative;
}

.demo-cols .demo-cmd {
  font-size: clamp(13px, 1.4vw, 16px);
}

.demo-cols .demo-box:first-child::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 8%;
  height: 84%;
  width: 1px;
  background: var(--border);
}

.demo-context {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.demo-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.demo-cmd {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: clamp(16px, 2vw, 22px);
  color: var(--yellow);
  background: var(--code-bg);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.demo-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.demo-steps li::before {
  content: attr(data-n) '. ';
  color: var(--accent);
  font-weight: 700;
}

/* ── Quote ── */
.quote {
  border-left: 4px solid var(--accent);
  padding-left: 24px;
  max-width: 720px;
  margin-bottom: 24px;
}

.quote p {
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.45;
  color: var(--heading);
  font-style: italic;
}

.quote-source {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* ── Accent line ── */
.accent-line {
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 28px;
}

/* ── Tag ── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
  margin-bottom: 8px;
}

.tag.green {
  background: rgba(166, 227, 161, 0.15);
  color: var(--green);
  border: 1px solid rgba(166, 227, 161, 0.3);
}

.tag.red {
  background: rgba(243, 139, 168, 0.15);
  color: var(--red);
  border: 1px solid rgba(243, 139, 168, 0.3);
}

.tag.blue {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.tag.dim {
  background: rgba(108, 112, 134, 0.12);
  color: var(--dim);
  border: 1px solid rgba(108, 112, 134, 0.25);
}

/* ── Module grid (receptors/effectors) ── */
.mod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100%;
  max-width: 860px;
}

.mod-col-head {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.mod-col-head.input {
  color: var(--green);
  border-color: var(--green);
}

.mod-col-head.output {
  color: var(--accent);
  border-color: var(--accent);
}

.mod-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.mod-card.live {
  border-left: 3px solid var(--green);
}

.mod-card.planned {
  border-left: 3px solid var(--dim);
  opacity: 0.7;
}

.mod-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.mod-detail {
  font-size: 11px;
  color: var(--muted);
}

.mod-status {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mod-status.live {
  color: var(--green);
}

.mod-status.planned {
  color: var(--dim);
}

/* Theme toggle: uses shared .toggle from toolbar.css (no slide-specific override) */

/* ── Slide ToC sidebar ── */
#toc-toggle {
  position: fixed;
  top: 14px;
  left: 12px;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 15px;
  color: var(--fg-dim);
  transition: border-color .2s, color .2s, opacity .2s;
}

#toc-toggle:hover {
  border-color: var(--accent);
  color: var(--fg);
}

html[data-nav="open"] #toc-toggle {
  opacity: 0;
  pointer-events: none;
}

#toc-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  overflow: hidden;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 150;
  transition: width .25s ease;
  display: flex;
  flex-direction: column;
}

html[data-nav="open"] #toc-sidebar {
  width: 240px;
}

html[data-nav="open"] body {
  margin-left: 240px;
}

#toc-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

#toc-sidebar-header > span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--fg-dim);
}

#toc-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg-dim);
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .15s;
  font-family: inherit;
}

#toc-close:hover {
  color: var(--fg);
}

#toc-overview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--fg-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  transition: background .15s, color .15s;
}

#toc-overview:hover {
  background: var(--accent-soft);
  color: var(--fg);
}

#toc-list {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  padding: 8px 0;
  margin: 0;
}

#toc-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  cursor: pointer;
  color: var(--fg-mid);
  transition: background .15s, color .15s;
  white-space: normal;
  line-height: 1.4;
}

#toc-list li:hover {
  background: var(--accent-soft);
  color: var(--fg);
}

#toc-list li.toc-active {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
}

.toc-num {
  font-size: 11px;
  color: var(--fg-dim);
  min-width: 18px;
  text-align: right;
  flex-shrink: 0;
  padding-top: 1px;
}

/* ── Print mode ── */
@media print {
  body {
    background: white;
    color: black;
    overflow: visible;
    margin-left: 0 !important;
  }

  .toolbar,
  .no-print,
  .notes,
  #toc-toggle,
  #toc-sidebar {
    display: none !important;
  }

  .slide {
    display: flex !important;
    position: relative;
    page-break-after: always;
    height: 100vh;
  }

  h1, h2 {
    color: #111;
  }

  .eyebrow, .col-head.green, .tag.green, .us {
    color: #2d6a4f;
  }

  .col-head.red, .tag.red, .bad {
    color: #c0392b;
  }

  .cmp-table td, .cmp-table th {
    border-color: #ddd;
  }

  .card {
    border-color: #ddd;
  }
}
