:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #666;
  --accent: #2a5fd0;
  --border: #e2e2e2;
  --placeholder-bg: #f3f3f3;
  --placeholder-fg: #999;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--fg);
  background: #222;
  overflow: hidden;
}

#deck {
  width: 100vw;
  height: 100vh;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  padding: 4rem 5rem;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
}

.slide.active {
  display: flex;
}

/* Typography */
.slide h1 {
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.slide h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.5rem;
}
.slide p { font-size: 1.4rem; line-height: 1.5; }
.slide ul { list-style: none; }

/* Title slide */
.title-slide {
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 5rem;
}
.title-slide h1 {
  max-width: 85%;
  font-size: 3.3rem;
  margin-bottom: 3rem;
}
.title-slide .hook {
  font-style: italic;
  font-size: 1.5rem;
  color: var(--muted);
  max-width: 70%;
  margin-bottom: 4rem;
}
.title-slide .meta {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Two-column layout */
.two-col .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  flex: 1;
  align-items: center;
}
.big-bullets li {
  font-size: 1.5rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  position: relative;
}
.big-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--accent);
  border-radius: 50%;
}
.big-bullets strong { color: var(--accent); }

.sub-bullets {
  margin-top: 0.5rem;
  margin-left: 0.5rem;
  list-style: none;
}
.sub-bullets li {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 0.3rem;
  padding-left: 1.2rem;
  position: relative;
}
.sub-bullets li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.col-figure {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footnote {
  margin-top: 2rem;
  font-size: 1.1rem;
  color: var(--muted);
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* Placeholders */
.placeholder {
  background: var(--placeholder-bg);
  border: 2px dashed #ccc;
  color: var(--placeholder-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.1rem;
  border-radius: 0.5rem;
  padding: 2rem;
  width: 100%;
}
.figure-tall { aspect-ratio: 1 / 1; max-height: 55vh; }

.figure-img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.placeholder-text {
  background: var(--placeholder-bg);
  border: 2px dashed #ccc;
  color: var(--placeholder-fg);
  padding: 2rem;
  border-radius: 0.5rem;
  font-style: italic;
}

/* Bit-vector comparison table */
.bitvector-table {
  border-collapse: separate;
  border-spacing: 0;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.4rem;
}
.bitvector-table thead th {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0 0.3rem 0.6rem 0.3rem;
  text-align: center;
  border: none;
}
.bitvector-table tbody td {
  border: 1px solid var(--border);
  padding: 0.75rem 0;
  text-align: center;
  min-width: 2.6rem;
  background: #fafafa;
}
.bitvector-table tbody td.diff {
  background: #ffd8a8;
  color: #b34a00;
  font-weight: 700;
  border-color: #e59a4a;
}
.bitvector-table .row-label {
  border: none;
  padding-right: 1rem;
  text-align: right;
  font-weight: 600;
  color: var(--accent);
  background: none;
}
.bitvector-table .ellipsis-row td {
  border: none;
  background: none;
  color: var(--muted);
  padding: 0.3rem 0;
}

.bitvector-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.bitvector-caption {
  font-size: 1.1rem;
  color: var(--muted);
  font-style: italic;
}

/* Numbered process steps */
.process-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 70%;
  margin: 0 auto;
}
.process-steps li {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
.process-steps .step-num {
  flex-shrink: 0;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-steps .step-body strong {
  font-size: 1.5rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}
.process-steps .step-body p {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--fg);
}
.process-steps.compact {
  gap: 1.1rem;
}
.process-steps.compact .step-num {
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
}
.process-steps.compact .step-body strong {
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
}
.process-steps.compact .step-body p {
  font-size: 1.15rem;
  line-height: 1.45;
}

/* Aggregation flow visual */
.flow-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: auto;
  margin-bottom: auto;
  padding: 2rem 0;
}
.flow-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.flow-matrix,
.flow-row-cells {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  padding: 2px;
  border-radius: 3px;
}
.flow-matrix-stacked {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.flow-row-with-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.flow-badge {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 1.8rem;
  text-align: right;
  font-family: "SF Mono", Menlo, monospace;
}
.flow-cell {
  width: 38px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-family: "SF Mono", Menlo, monospace;
  background: #fff;
}
.flow-cell.binary-1 {
  background: var(--accent);
  color: #fff;
}
.flow-cell.binary-0 {
  color: #bbb;
}
.flow-cell.heat-0 { background: #fff; }
.flow-cell.heat-1 { background: #dce7f7; }
.flow-cell.heat-2 { background: #a9c2ec; }
.flow-cell.heat-3 { background: #6a92d8; }
.flow-cell.heat-4 { background: #2a5fd0; }
.flow-arrow-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.flow-arrow-label {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 700;
}
.flow-arrow {
  font-size: 2rem;
  color: var(--muted);
  line-height: 1;
}
.flow-label {
  font-size: 1rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

/* Visualisation grid */
.viz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.5rem 2rem;
  flex: 1;
  margin: 0 auto;
  max-width: 95%;
}
.viz-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  min-height: 0;
}
.viz-card img {
  max-width: 100%;
  max-height: 22vh;
  object-fit: contain;
  border-radius: 0.3rem;
}
.viz-card figcaption {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.viz-card figcaption strong {
  font-size: 1.15rem;
  color: var(--accent);
}
.viz-card figcaption span {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Gap -> Goal grid */
.gap-goal {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-auto-rows: auto;
  column-gap: 2.5rem;
  row-gap: 2rem;
  align-items: center;
  max-width: 95%;
  margin: auto;
}
.gap-goal-header {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
}
.gap-goal-header.left {
  color: #444;
}
.gap-goal-header.right {
  color: var(--accent);
}
.gap-goal-header-spacer {
  border: none;
}
.gap-item {
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--fg);
  background: #f2f2f2;
  padding: 1.3rem 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid #b5b5b5;
}
.goal-item {
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--fg);
  background: #eef3fc;
  padding: 1.3rem 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--accent);
  font-weight: 500;
}
.gap-goal-arrow {
  font-size: 2.8rem;
  color: var(--accent);
  font-weight: 700;
  text-align: center;
  line-height: 1;
}

/* Concept cards (3 wireframes) */
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  flex: 1;
  align-items: stretch;
  margin: 0 auto;
  max-width: 100%;
}
.concept-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
}
.concept-card img {
  width: 100%;
  max-height: 38vh;
  object-fit: contain;
  border-radius: 0.3rem;
  border: 1px solid var(--border);
}
.concept-card figcaption {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: auto;
}
.concept-card figcaption strong {
  font-size: 1.15rem;
  color: var(--accent);
}
.concept-card figcaption span {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Interactive wireframe iframe */
.wireframe-slide {
  padding: 2rem 2.5rem;
}
.wireframe-frame {
  flex: 1;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: #1a1a1a;
}

/* Konzept selection: 3-column compare with center highlighted */
.selection-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 1.5rem;
  flex: 1;
  align-items: stretch;
  margin: 1rem auto;
  max-width: 100%;
}
.selection-col {
  padding: 1.6rem 1.6rem 1.8rem 1.6rem;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}
.selection-col.contra {
  background: #f2f2f2;
  border: 1px solid var(--border);
  border-left: 4px solid #b5b5b5;
}
.selection-col.pro {
  background: #eef3fc;
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  box-shadow: 0 6px 20px rgba(42, 95, 208, 0.18);
}
.selected-badge {
  position: absolute;
  top: -0.8rem;
  right: 1.2rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(42, 95, 208, 0.25);
}
.selection-col h3 {
  font-size: 1.6rem;
  color: var(--fg);
  font-weight: 700;
}
.selection-col.pro h3 {
  color: var(--accent);
}
.selection-col .col-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 0.8rem;
}
.contra-list,
.pro-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.3rem;
}
.contra-list li,
.pro-list li {
  font-size: 1.25rem;
  line-height: 1.45;
  padding-left: 1.5rem;
  position: relative;
}
.contra-list li {
  color: var(--fg);
}
.contra-list li::before {
  content: "−";
  position: absolute;
  left: 0;
  top: -0.05em;
  color: #888;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}
.pro-list li {
  color: var(--fg);
}
.pro-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: -0.05em;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
}

/* Architecture schema */
.architecture {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  flex: 1;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.arch-schema {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  width: 95%;
  max-width: 1000px;
}
.arch-box {
  flex: 1;
  padding: 1.5rem 1.8rem;
  border-radius: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border: 2px solid;
}
.arch-box.client {
  background: #eef3fc;
  border-color: var(--accent);
}
.arch-box.server {
  background: #f3f7ec;
  border-color: #5aa02c;
}
.arch-box-header {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.arch-box-tech {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.arch-box.server .arch-box-tech {
  color: #4d8a24;
}
.arch-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.arch-box li {
  font-size: 1.05rem;
  color: var(--fg);
  padding-left: 1.1rem;
  position: relative;
}
.arch-box li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--muted);
  font-weight: 700;
}
.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 6rem;
}
.conn-label {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}
.conn-arrow {
  font-size: 3rem;
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
}
.arch-notes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 1000px;
  width: 95%;
}
.arch-notes li {
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--fg);
  padding-left: 1.4rem;
  position: relative;
}
.arch-notes li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.arch-notes strong {
  color: var(--accent);
}

/* Architecture v2 — orchestration layer as centrepiece */
.arch2 {
  display: grid;
  grid-template-columns: 1fr auto 2.6fr auto 1fr;
  align-items: stretch;
  gap: 0.8rem;
  flex: 1;
  margin: auto;
  width: 100%;
}
.arch2-side {
  padding: 1rem 1rem;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border: 2px solid;
  align-self: center;
}
.arch2-side.client {
  background: #eef3fc;
  border-color: var(--accent);
}
.arch2-side.lib {
  background: #f5f5f5;
  border-color: var(--border);
}
.arch2-side-label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.arch2-side-tech {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.2rem;
}
.arch2-side ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: "SF Mono", Menlo, monospace;
}
.arch2-side li {
  font-size: 0.9rem;
  color: var(--fg);
  padding-left: 0.8rem;
  position: relative;
}
.arch2-side li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--muted);
  font-weight: 700;
}

.arch2-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 4.5rem;
}
.conn2-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}
.conn2-arrow {
  font-size: 2.2rem;
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
}

.arch2-center {
  padding: 1.4rem 1.6rem;
  border-radius: 0.7rem;
  border: 3px solid var(--accent);
  background: #eef3fc;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 6px 20px rgba(42, 95, 208, 0.18);
}
.arch2-center-header {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-bottom: 1px solid rgba(42, 95, 208, 0.25);
  padding-bottom: 0.6rem;
}
.center-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent);
}
.center-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  font-family: "SF Mono", Menlo, monospace;
}
.session-block {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.session-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
}
.ligand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.ligand-box {
  background: #fff;
  border: 1px solid rgba(42, 95, 208, 0.3);
  border-radius: 0.4rem;
  padding: 0.7rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.ligand-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
}
.ligand-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: "SF Mono", Menlo, monospace;
}
.ligand-box li {
  font-size: 0.9rem;
  color: var(--fg);
  padding-left: 0.8rem;
  position: relative;
}
.ligand-box li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--muted);
  font-weight: 700;
}
.param-box {
  background: #fff;
  border: 1px dashed rgba(42, 95, 208, 0.4);
  border-radius: 0.4rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
  color: var(--fg);
  font-family: "SF Mono", Menlo, monospace;
}
.call-hint {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  text-align: right;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(42, 95, 208, 0.2);
}

/* Frame Mapping slide */
.fmap-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  flex: 1;
  align-items: center;
  min-height: 0;
}
.fmap-left {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  justify-content: center;
  min-width: 0;
  height: 100%;
}
.fmap-causes {
  max-width: 100%;
  margin: 0;
}
.fmap-right {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
}
.fmap-viewer-img {
  max-height: 100%;
  max-width: 100%;
  height: auto;
  width: auto;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  object-fit: contain;
}

/* Limitations slide */
.limits-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  flex: 1;
  align-items: stretch;
  min-height: 0;
}
.limits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  height: 100%;
}
.limits-list li {
  background: #eef3fc;
  border: 1px solid rgba(42, 95, 208, 0.3);
  border-left: 4px solid var(--accent);
  border-radius: 0.5rem;
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  flex: 1;
}
.limit-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}
.limit-desc {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--fg);
}
.limits-images {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  height: 100%;
  min-height: 0;
  justify-content: center;
  align-items: center;
}
.limits-img {
  max-height: 100%;
  max-width: 100%;
  height: auto;
  width: auto;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  object-fit: contain;
}

.fmap-table-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: stretch;
  width: 100%;
}
.fmap-table {
  border-collapse: collapse;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 1.05rem;
  width: 100%;
}
.fmap-table thead th {
  font-weight: 600;
  color: var(--fg);
  background: #f3f3f3;
  padding: 0.75rem 1.1rem;
  border-bottom: 2px solid var(--accent);
  text-align: center;
  font-size: 0.95rem;
}
.fmap-table tbody td {
  padding: 0.85rem 1.1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.fmap-table tbody td:first-child {
  color: var(--accent);
  font-weight: 700;
}

/* Detail visualisation slides — each shows one viz large, zooms in from its
   corresponding quadrant on the Visualisierungen overview slide. */
.detail-slide .detail-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  flex: 1;
  align-items: stretch;
  min-height: 0;
}
.detail-slide[data-origin$="-right"] .detail-layout {
  grid-template-columns: 1fr 1.6fr;
}
.detail-slide[data-origin$="-right"] .detail-image-wrap { order: 2; }
.detail-slide[data-origin$="-right"] .detail-bullets { order: 1; }

.detail-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.detail-img {
  width: 100%;
  height: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.detail-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.3rem;
}
.detail-bullets li {
  font-size: 1.35rem;
  line-height: 1.45;
  padding-left: 1.6rem;
  position: relative;
  color: var(--fg);
}
.detail-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  border-radius: 50%;
}
.detail-bullets strong { color: var(--accent); }
.detail-bullets em { font-style: italic; color: var(--fg); }

/* Zoom-in animation: image grows from the overview quadrant corner.
   `.zoom-run` class is toggled by script.js so the animation restarts every
   time a detail slide is (re-)activated. */
.detail-slide[data-origin="top-left"] .detail-img { transform-origin: top left; }
.detail-slide[data-origin="top-right"] .detail-img { transform-origin: top right; }
.detail-slide[data-origin="bottom-left"] .detail-img { transform-origin: bottom left; }
.detail-slide[data-origin="bottom-right"] .detail-img { transform-origin: bottom right; }

.detail-slide .detail-img,
.detail-slide .detail-bullets li {
  opacity: 0;
}
.detail-slide.zoom-run .detail-img {
  animation: detailZoomIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes detailZoomIn {
  0%   { transform: scale(0.22); opacity: 0; }
  100% { transform: scale(1);    opacity: 1; }
}

.detail-slide.zoom-run .detail-bullets li {
  animation: detailBulletIn 0.4s ease-out forwards;
}
.detail-slide.zoom-run .detail-bullets li:nth-child(1) { animation-delay: 0.45s; }
.detail-slide.zoom-run .detail-bullets li:nth-child(2) { animation-delay: 0.55s; }
.detail-slide.zoom-run .detail-bullets li:nth-child(3) { animation-delay: 0.65s; }
.detail-slide.zoom-run .detail-bullets li:nth-child(4) { animation-delay: 0.75s; }

@keyframes detailBulletIn {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Zusammenfassung */
.summary-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  flex: 1;
  align-items: stretch;
  min-height: 0;
}
.summary-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-height: 0;
}
.summary-header {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}
.summary-header.achieved { color: var(--accent); }
.summary-header.outlook { color: #444; }
.summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}
.summary-list li {
  font-size: 1.15rem;
  line-height: 1.45;
  padding: 1rem 1.3rem;
  border-radius: 0.5rem;
  flex: 1;
  display: flex;
  align-items: center;
}
.summary-list.achieved li {
  background: #eef3fc;
  border: 1px solid rgba(42, 95, 208, 0.3);
  border-left: 4px solid var(--accent);
}
.summary-list.outlook li {
  background: #f2f2f2;
  border: 1px solid var(--border);
  border-left: 4px solid #b5b5b5;
}
.summary-list strong { color: var(--accent); }

/* Quellen */
.refs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  max-width: 95%;
  margin: 1rem auto 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}
.refs-list li {
  display: flex;
  gap: 1.2rem;
  background: #fafafa;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0.5rem;
  padding: 1.2rem 1.5rem;
}
.ref-num {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 2.6rem;
}
.ref-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--fg);
}
.ref-authors {
  font-weight: 600;
}
.ref-title {
  color: var(--fg);
}
.ref-venue {
  color: var(--muted);
  font-size: 1.05rem;
}
.ref-venue em {
  color: var(--fg);
  font-style: italic;
}
.ref-doi {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* Architektur-Diagramm Bonus-Folie */
.arch-diagram-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
}
.arch-diagram-img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* HUD */
.hud {
  position: fixed;
  bottom: 1rem;
  right: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-size: 0.9rem;
  color: var(--muted);
}
.hud button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--fg);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.hud button:hover { background: #eee; }
#counter { min-width: 4rem; text-align: center; }

/* ============ Folie: Von MD zu IFP (ProLIF) ============ */
.md2ifp-flow {
  align-items: stretch;
  gap: 1rem;
  margin-top: 1.5rem;
}
.md2ifp-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}
.md2ifp-card {
  background: #f7f9fc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem;
  min-height: 180px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.md2ifp-frame-img {
  max-height: 180px;
  max-width: 100%;
  object-fit: contain;
}
.md2ifp-rules {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  justify-content: center;
  font-size: 0.95rem;
}
.md2ifp-rules .rule-line {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  width: 100%;
}
.md2ifp-rules .rule-tag {
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  min-width: 3.8rem;
  text-align: center;
}
.md2ifp-rules code {
  font-size: 0.85rem;
  background: #fff;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  border: 1px solid #e2e8f0;
}
.md2ifp-rules .rule-caption {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: italic;
  width: 100%;
  text-align: right;
}
.md2ifp-bitvec {
  padding: 1rem 0.5rem;
}
.md2ifp-bv {
  font-size: 0.85rem;
}
.md2ifp-footer {
  list-style: none;
  padding: 0;
  margin: 2rem auto 0;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.md2ifp-footer li {
  background: #f7f9fc;
  border-left: 3px solid var(--accent);
  padding: 0.6rem 0.9rem;
  border-radius: 4px;
  font-size: 0.95rem;
}
.md2ifp-footer strong { color: var(--accent); }

/* ============ Folie 3: MD-Filmstrip ============ */
.md-filmstrip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: nowrap;
}
.md-frame {
  position: relative;
  flex: 0 0 auto;
  width: 190px;
  height: 190px;
  background: #f7f9fc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.md-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.md-frame-label {
  position: absolute;
  bottom: 4px;
  right: 6px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.75rem;
  font-family: var(--mono, monospace);
  color: var(--fg);
}
.md-frame-ellipsis {
  background: transparent;
  border: none;
}
.md-frame-dots {
  font-size: 2.6rem;
  color: var(--muted);
  letter-spacing: 0.2em;
}
.md-frame-arrow {
  color: var(--muted);
  font-size: 1.7rem;
}
.md-frame-label {
  font-size: 0.9rem !important;
  padding: 2px 7px !important;
}
.md-timeline {
  margin-top: 0.8rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  border-top: 2px solid #e2e8f0;
  padding-top: 0.4rem;
}

/* ============ Lead-Absatz (Problem-Framing) ============ */
.slide-lead {
  max-width: 900px;
  margin: 0 auto 1.2rem;
  padding: 0.75rem 1rem;
  background: #fff6e5;
  border-left: 3px solid #f0a500;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #4a3a10;
}
.slide-lead strong { color: #8a5a00; }

/* ============ Folie 5: Pipeline MD -> IFP ============ */
.title-tag {
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.4rem;
}
.interaction-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem 0.9rem;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.ie-label {
  font-style: italic;
}
.ie-chip {
  color: var(--fg);
}
.ie-chip + .ie-chip::before {
  content: "·";
  margin-right: 0.9rem;
  color: var(--muted);
}
.pipeline-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-height: 0;
}
.pipeline-flow {
  align-items: stretch;
  gap: 0.4rem;
  margin: 0;
}
.pipeline-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.pipeline-card {
  background: #f7f9fc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.6rem;
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.pipeline-frame-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.pipeline-split {
  flex-direction: column;
  gap: 0.35rem;
}
.split-chip {
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}
.split-ligand { background: #2a7f3f; }
.split-residue { background: var(--accent); }
.split-plus {
  font-weight: 700;
  color: var(--muted);
}
.pipeline-test {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0.6rem 0.8rem;
}
.test-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}
.test-icon {
  font-size: 1rem;
  color: var(--accent);
  min-width: 1.6rem;
  text-align: center;
  font-weight: 700;
}
.pipeline-bit {
  gap: 0.4rem;
  font-family: var(--mono, monospace);
}
.bit-big {
  font-size: 2.2rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 6px;
}
.bit-one { background: var(--accent); color: #fff; }
.bit-zero { background: #e2e8f0; color: #4a5568; }
.bit-slash {
  font-size: 1.6rem;
  color: var(--muted);
}
.pipeline-fp {
  padding: 0.4rem;
}
.pipeline-fp .bitvector-table {
  font-size: 0.72rem;
}
.pipeline-steps {
  list-style: none;
  padding: 0;
  margin: 2rem auto 0;
  max-width: 1100px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.pipeline-steps li {
  flex: 1 1 0;
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f7f9fc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
  color: var(--fg);
}
.pipeline-steps .step-num {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* =====================================================================
   ERGÄNZUNGEN FÜR DIE VERTEIDIGUNG DER BACHELORARBEIT
   Alles oberhalb stammt unverändert aus BA_Projekt/Slides/styles.css.
   ===================================================================== */

:root {
  --ligand-a: #3b82f6;   /* Ligand 1, Blau  (prototype/frontend/src/comparison/theme.js BLUE1) */
  --ligand-b: #f59e0b;   /* Ligand 2, Amber (theme.js BLUE2) */
  --limit: #b34a00;      /* Limitierung, Orange wie td.diff */
  --limit-bg: #fff3e8;
  --struct: #8f5a1e;     /* strukturbasiert, wie dgakzentb in der Arbeit */
  --struct-bg: #f5ecde;
  --time: #2b4e7c;       /* zeitbasiert, wie dgakzent in der Arbeit */
  --time-bg: #e1e7f0;
}

/* Allgemeine Hilfsklassen */
.slide-note {
  margin-top: 1.4rem;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
}
.slide-note strong { color: var(--fg); }
.bitvector-note {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--limit);
  font-family: "SF Mono", Menlo, monospace;
  text-align: center;
}
.figure-img.framed {
  border: 1px solid var(--border);
}
.two-col .cols.cols-wide-right {
  grid-template-columns: 0.85fr 1.15fr;
}
.ligand-a { color: var(--ligand-a); font-weight: 700; }
.ligand-b { color: var(--ligand-b); font-weight: 700; }

/* Folie 4: Datenmenge unter der ProLIF-Pipeline */
.data-volume {
  margin: 1.6rem auto 0;
  max-width: 1100px;
  background: #eef3fc;
  border-left: 4px solid var(--accent);
  border-radius: 0.5rem;
  padding: 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.data-volume-num {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}
.data-volume-text {
  font-size: 1.05rem;
  color: var(--fg);
}

/* Folie 6: zwei Aggregationsformen */
.agg-layout {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  flex: 1;
  min-height: 0;
}
.agg-figure {
  display: flex;
  justify-content: center;
}
.agg-img {
  max-width: 100%;
  max-height: 34vh;
  object-fit: contain;
}
.agg-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.agg-card {
  border-radius: 0.5rem;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.agg-card p { font-size: 1.1rem; line-height: 1.45; }
.agg-card.time { background: var(--time-bg); border-left: 4px solid var(--time); }
.agg-card.struct { background: var(--struct-bg); border-left: 4px solid var(--struct); }
.agg-card-title {
  font-size: 1.3rem;
  font-weight: 700;
}
.agg-card.time .agg-card-title { color: var(--time); }
.agg-card.struct .agg-card-title { color: var(--struct); }
.agg-card-q {
  color: var(--muted);
  font-style: italic;
}
.agg-both {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.2rem;
  color: var(--fg);
  padding: 0.6rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 0.5rem;
}
.agg-both strong { color: var(--accent); }

/* Folie 10 und Backup: Aufgaben und Anforderungen */
.task-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.task-group {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.task-group.compare { background: #eef3fc; border-color: rgba(42, 95, 208, 0.3); }
.task-group-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.4rem;
}
.task-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
  justify-content: space-evenly;
}
.task-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  font-size: 1.15rem;
  line-height: 1.45;
}
.task-id {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-top: 0.15rem;
}

/* Folie 12: Architektur mit Notizen */
.arch-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  flex: 1;
  min-height: 0;
  align-items: center;
}
.arch-figure {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  height: 100%;
}
.arch-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}
.arch-notes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.arch-note {
  background: #f7f9fc;
  border-left: 4px solid var(--accent);
  border-radius: 0.5rem;
  padding: 0.9rem 1.2rem;
}
.arch-note-title {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.arch-note p { font-size: 1rem; line-height: 1.45; }

/* Raster-Folien: Screenshot links, Fakten rechts (Kapitel-7-Raster) */
.viz-slide {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 2rem;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.viz-slide-wide {
  grid-template-columns: 1.6fr 1fr;
}
.viz-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.viz-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.viz-facts {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 0;
  justify-content: center;
}
.fact {
  border-radius: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-left: 4px solid #b5b5b5;
  background: #f2f2f2;
}
.fact p { font-size: 1rem; line-height: 1.45; }
.fact p strong { color: inherit; }
.fact-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  color: #555;
}
.fact.answers { background: #eef3fc; border-left-color: var(--accent); }
.fact.answers .fact-label { color: var(--accent); }
.fact.encoding { background: #fafafa; border-left-color: #8a8a8a; }
.fact.encoding .fact-label { color: #555; }
.fact.limit { background: var(--limit-bg); border-left-color: var(--limit); }
.fact.limit .fact-label { color: var(--limit); }
.fact.rejected { background: #f2f2f2; border-left-color: #b5b5b5; }
.fact.rejected .fact-label { color: #777; }

/* Zwei Ansichten nebeneinander (Folien 14 und 15) */
.dual-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  flex: 1;
  min-height: 0;
}
.dual-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 0;
}
.dual-img {
  max-width: 100%;
  max-height: 44vh;
  object-fit: contain;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  align-self: center;
}
.dual-facts {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.dual-facts p { font-size: 1rem; line-height: 1.45; }
.dual-facts strong { color: var(--accent); }
.inline-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  margin-right: 0.4rem;
  vertical-align: 0.1em;
  background: #e5e5e5;
  color: #555;
}
.inline-label.answers { background: var(--accent); color: #fff; }
.inline-label.limit { background: var(--limit); color: #fff; }
.inline-label.encoding { background: #8a8a8a; color: #fff; }
.inline-label.rejected { background: #d5d5d5; color: #444; }

/* Folie 17: sechs Kacheln mit Ebenen-Badge */
.viz-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 1.2rem 1.6rem;
  flex: 1;
  min-height: 0;
}
.viz-grid-3 .viz-card {
  position: relative;
  padding-top: 1.6rem;
  justify-content: center;
}
.viz-grid-3 .viz-card img {
  max-height: 24vh;
}
.viz-grid-3 .viz-card figcaption strong { font-size: 1.1rem; }
.level-badge {
  position: absolute;
  top: -0.7rem;
  left: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  color: #fff;
}
.level-fp { background: #555; }
.level-sifp { background: var(--struct); }
.level-int { background: var(--accent); }

/* Folie 26 und Backups: Karten im 2x2-Raster */
.limits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 1.4rem;
  flex: 1;
  min-height: 0;
}
.limit-card {
  background: var(--limit-bg);
  border: 1px solid rgba(179, 74, 0, 0.25);
  border-left: 4px solid var(--limit);
  border-radius: 0.5rem;
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}
.limit-card .limit-title { color: var(--limit); }
.limit-card.muted {
  background: #f2f2f2;
  border-color: var(--border);
  border-left-color: #b5b5b5;
}
.limit-card.muted .limit-title { color: #555; }
.fmap-right .limit-card {
  background: #eef3fc;
  border-color: rgba(42, 95, 208, 0.3);
  border-left-color: var(--accent);
}
.fmap-right .limit-card .limit-title { color: var(--accent); }

/* Backup: Tool-Tabelle */
.table-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.tools-table {
  border-collapse: collapse;
  font-size: 1.05rem;
  width: 100%;
  max-width: 1200px;
}
.tools-table thead th {
  font-weight: 600;
  background: #f3f3f3;
  padding: 0.8rem 0.8rem;
  border-bottom: 2px solid var(--accent);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.3;
}
.tools-table thead th:first-child { text-align: left; }
.tools-table tbody td {
  padding: 0.6rem 0.8rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-family: "SF Mono", Menlo, monospace;
}
.tools-table tbody td:first-child {
  text-align: left;
  font-family: inherit;
  font-weight: 600;
}
.tools-table .row-highlight td {
  background: #eef3fc;
  color: var(--accent);
  font-weight: 700;
}

/* Quellen kompakt in zwei Spalten */
.refs-list.refs-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1.4rem;
  max-width: 100%;
  margin-top: 0.5rem;
  align-content: center;
}
.refs-list.refs-compact li {
  padding: 0.7rem 1rem;
  gap: 0.8rem;
}
.refs-list.refs-compact .ref-num { font-size: 1.05rem; min-width: 2.2rem; }
.refs-list.refs-compact .ref-body { font-size: 0.88rem; line-height: 1.35; gap: 0.1rem; }
.refs-list.refs-compact .ref-venue { font-size: 0.85rem; }

/* Nachbesserungen nach der ersten Sichtung */
.two-col .col-figure {
  flex-direction: column;
  gap: 0.8rem;
}
.md-filmstrip .md-frame {
  width: 150px;
  height: 150px;
}
.md-filmstrip .md-frame img { width: 100%; height: 100%; }
.viz-grid-3 .viz-card img { max-height: 30vh; }
.dual-img { max-height: 52vh; }
.limits-grid {
  grid-auto-rows: auto;
  align-content: center;
  gap: 1.8rem;
}
.limit-card { padding: 1.8rem 2rem; }
.limit-card .limit-title { font-size: 1.5rem; }
.limit-card .limit-desc { font-size: 1.2rem; line-height: 1.5; }
