/* dhbw.css – DHBW Corporate Identity fuer reveal.js
   Farben: DHBW-Rot #E2001A, DHBW-Grau #5C6971 (Quelle: dhbw.de TYPO3-Stylesheet) */

:root {
  --dhbw-red: #e2001a;
  --dhbw-red-deep: #b80016;
  --dhbw-gray: #5c6971;
  --dhbw-ink: #1f2b33;        /* Anthrazit fuer Ueberschriften */
  --dhbw-light: #e5e5e5;
  --dhbw-hairline: #e3e6e8;
  --r-main-font: 'Inter Variable', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --r-heading-font: 'Plus Jakarta Sans Variable', 'Inter Variable', 'Segoe UI', Helvetica, Arial, sans-serif;
  --r-main-color: #2a3238;
  --r-heading-color: var(--dhbw-ink);
  --r-link-color: var(--dhbw-red);
}

.reveal {
  font-family: var(--r-main-font);
  font-feature-settings: 'cv11', 'ss01';
}

.reveal h1, .reveal h2, .reveal h3 {
  font-family: var(--r-heading-font);
  font-weight: 700;
  color: var(--dhbw-ink);
  text-transform: none;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}

/* Folienueberschrift: Anthrazit, feine Haarlinie + kurzer roter Akzent */
.reveal h2 {
  position: relative;
  color: var(--dhbw-ink);
  font-weight: 680;
  font-size: 1.5em;
  line-height: 1.15;
  border-bottom: 1px solid var(--dhbw-hairline);
  padding-bottom: 0.38em;
  margin-bottom: 0.85em;
  text-align: left;
}
.reveal h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 2.6em;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--dhbw-red), var(--dhbw-red-deep));
}

.reveal section { text-align: left; }
.reveal section ul, .reveal section ol { margin-left: 0.2em; }
.reveal section li { margin-bottom: 0.45em; line-height: 1.35; }

.reveal .progress { color: var(--dhbw-red); height: 5px; }
.reveal .controls { color: var(--dhbw-red); }

/* Opening / Closing */
.reveal section[data-state="opening"],
.reveal section[data-state="closing"] { text-align: center; }

.opening-box { display: flex; flex-direction: column; align-items: center; gap: 0.4em; }
.opening-logo { height: 90px; margin-bottom: 0.6em; }
.reveal .opening-title {
  color: var(--dhbw-ink);
  font-size: 2.3em;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.025em;
  border: none;
  text-align: center;
  margin: 0;
}
.closing-title { font-size: 2.4em; }
.opening-sub {
  color: var(--dhbw-gray);
  font-family: var(--r-heading-font);
  font-weight: 500;
  font-size: 1.0em;
  letter-spacing: 0.01em;
  margin: 0.3em 0 0.6em;
}
.opening-rule {
  width: 140px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--dhbw-red), var(--dhbw-red-deep));
  margin: 0.5em auto;
}
.opening-meta { color: var(--dhbw-gray); font-size: 0.72em; line-height: 1.6; }
.opening-meta code { font-size: 0.9em; color: var(--dhbw-gray); }

/* Layout-Helfer */
.split { display: flex; gap: 1.6em; align-items: flex-start; }
.split-img { flex: 0 0 46%; }
.split-img img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--dhbw-light);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.split-text { flex: 1; font-size: 0.7em; }
.split-text li { margin-bottom: 0.5em; }

.quelle {
  font-size: 0.42em !important;
  color: var(--dhbw-gray);
  margin-top: 0.5em;
  line-height: 1.35;
  text-align: left;
}

/* Tabellen */
.reveal table { font-size: 0.62em; border-collapse: collapse; width: 100%; }
.reveal table th {
  background: var(--dhbw-red);
  color: #fff;
  padding: 0.4em 0.6em;
  text-align: left;
  font-weight: 600;
}
.reveal table td { padding: 0.35em 0.6em; border-bottom: 1px solid var(--dhbw-light); }
.reveal table tr:nth-child(even) td { background: #f7f7f8; }
.reveal table td.hl { color: var(--dhbw-red); font-weight: 700; }
.reveal table.dichte { width: 70%; margin: 0 auto; }
.reveal table.startups { font-size: 0.5em; }

/* Einstieg: Bildreise "Der Traum von der denkenden Maschine" */
.reveal ol.bildreise {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.reveal ol.bildreise li {
  flex: var(--ar, 0.75) 1 0;    /* Breite proportional zum Seitenverhaeltnis -> gleich hohe Bilder */
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.reveal ol.bildreise img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  max-height: none;
  aspect-ratio: var(--ar, 0.75);
  object-fit: cover;
  margin: 0;
  border: 1px solid var(--dhbw-light);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  background: #f6f3ec;
}
.reveal ol.bildreise .br-quelle {
  margin-top: 0.4em;
  font-size: 0.3em;
  color: var(--dhbw-gray);
}
/* Zeitachse: Punkt + durchgehende Linie ueber alle Karten */
.reveal ol.bildreise .br-year {
  position: relative;
  margin-top: 0.45em;
  padding-top: 0.8em;
  font-family: var(--r-heading-font);
  font-weight: 700;
  font-size: 0.6em;
  color: var(--dhbw-ink);
}
.reveal ol.bildreise .br-year::after {
  content: '';
  position: absolute;
  left: 0;
  right: -18px;
  top: 5px;
  height: 2px;
  background: var(--dhbw-hairline);
}
.reveal ol.bildreise li:last-child .br-year::after { right: 0; }
.reveal ol.bildreise .br-year::before {
  content: '';
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--dhbw-gray);
}
.reveal ol.bildreise .br-title {
  font-family: var(--r-heading-font);
  font-weight: 650;
  font-size: 0.52em;
  color: var(--dhbw-ink);
}
.reveal ol.bildreise .br-ex {
  margin-top: 0.15em;
  font-size: 0.44em;
  color: #4a555c;
}
.reveal ol.bildreise li.br-now img { border: 3px solid var(--dhbw-red); }
.reveal ol.bildreise li.br-now .br-year { color: var(--dhbw-red); }
.reveal ol.bildreise li.br-now .br-year::before {
  background: var(--dhbw-red);
  border-color: var(--dhbw-red);
  box-shadow: 0 0 0 4px rgba(226, 0, 26, 0.15);
}
.reveal ol.bildreise li.br-now .br-ex { color: var(--dhbw-ink); }

.reveal .pointe {
  margin: 1em 0 0;
  padding-left: 0.8em;
  border-left: 4px solid var(--dhbw-red);
  font-family: var(--r-heading-font);
  font-weight: 650;
  font-size: 0.7em;
  line-height: 1.35;
  color: var(--dhbw-ink);
}

/* Marktlage: Vergleich Neuinstallationen China vs. Deutschland */
.reveal .vergleich {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 0.7em;
  row-gap: 0.35em;
  margin: 0.4em 0 0;
  padding: 0.55em 0.85em 0.5em;
  font-size: 0.82em;
  background: #f7f8f9;
  border: 1px solid var(--dhbw-hairline);
  border-radius: 6px;
}
.reveal .vergleich figcaption,
.reveal .vergleich .vg-fazit { grid-column: 1 / -1; }
.reveal .vergleich figcaption {
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dhbw-gray);
}
.reveal .vg-row { display: contents; }
.reveal .vg-land { font-weight: 600; color: var(--dhbw-ink); }
.reveal .vg-bar { display: block; height: 0.8em; }
.reveal .vg-bar > span {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: 3px;
  background: var(--dhbw-gray);
}
.reveal .vg-de .vg-bar > span { background: var(--dhbw-red); }
.reveal .vg-wert {
  display: flex;
  flex-direction: column;
  font-family: var(--r-heading-font);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dhbw-ink);
}
.reveal .vg-wert small {
  font-family: var(--r-main-font);
  font-weight: 500;
  font-size: 0.66em;
  color: var(--dhbw-gray);
}
.reveal .vg-de .vg-land,
.reveal .vg-de .vg-wert { color: var(--dhbw-red); }
.reveal .vg-fazit {
  margin: 0.2em 0 0;
  padding-top: 0.45em;
  border-top: 1px solid var(--dhbw-hairline);
  line-height: 1.35;
  color: var(--dhbw-ink);
}
.reveal .vg-fazit strong { color: var(--dhbw-red); }

/* Agenda / Big Facts */
.fusz {
  margin-top: 0.9em;
  font-size: 0.42em;
  color: var(--dhbw-gray);
  text-align: left;
}
.reveal ol.agenda { font-size: 0.8em; }
.reveal ol.agenda li { margin-bottom: 0.7em; }
.reveal ul.bigfacts { font-size: 0.68em; }
.reveal ul.bigfacts li { margin-bottom: 0.5em; }
.these {
  margin-top: 1.2em;
  padding: 0.6em 0.9em;
  border-left: 6px solid var(--dhbw-red);
  background: #fdecee;
  color: #333;
  font-size: 0.8em;
  font-style: italic;
}

/* Karten (Herausforderungen) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8em; }
.card {
  background: #fff;
  border: 1px solid var(--dhbw-light);
  border-top: 4px solid var(--dhbw-red);
  border-radius: 6px;
  padding: 0.6em 0.7em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.reveal .card h3 { color: var(--dhbw-ink); font-size: 0.62em; font-weight: 650; margin: 0 0 0.3em; border: none; }
.card p { font-size: 0.52em; margin: 0; line-height: 1.4; color: #333; }

/* Sync-Banner */
.sync-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 4px 12px;
  font-size: 12px;
  font-family: var(--r-main-font);
  text-align: center;
  color: #fff;
}
.sync-banner.ok { background: var(--dhbw-gray); }
.sync-banner.warn { background: #b06000; }
