/* ==========================================================================
   rkDrei GmbH / MäMo-Online – Corporate Design Theme für reveal.js
   Detailgetreu abgeleitet aus den Stylesheets von maemo-online.de
   --------------------------------------------------------------------------
   EINGEBUNDEN WERDEN MÜSSEN (in dieser Reihenfolge in index.html):
     1. assets/reveal.css      <- Basis-Layout von reveal.js (Pflicht!)
     2. assets/theme-maemo.css <- dieses Theme (nur Optik: Farben/Formen/Typo)
   Farben (aus Elementor-Kit + Seiten-CSS):
     Blau dunkel #00598A | Marine #003B5C | Blau hell #BEE7FE
     Chip-Tint #E0F2FE | Text #111111 | BG #F0F9FF | Orange #FFBC7D
   Formen: Kartenradius 20px, Schatten 0 20px 40px -28px rgba(11,53,80,.35)
   Schrift: Cantarell (400/700/800) – selbst gehostet
   ========================================================================== */

@font-face {
  font-family: 'Cantarell';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('Cantarell-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Cantarell';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('Cantarell-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Cantarell';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('Cantarell-ExtraBold.ttf') format('truetype');
}

:root {
  --rkk-blue-dark:   #00598A;
  --rkk-navy:        #003B5C;
  --rkk-blue-light:  #BEE7FE;
  --rkk-chip:        #E0F2FE;
  --rkk-text:        #111111;
  --rkk-muted:       #4b6478;
  --rkk-bg:          #F0F9FF;
  --rkk-orange:      #FFBC7D;
  --rkk-white:       #FFFFFF;

  --rkk-font: 'Cantarell', 'Segoe UI', sans-serif;
  --rkk-radius-card: 20px;
  --rkk-shadow-card: 0 20px 40px -28px rgba(11, 53, 80, 0.35);
}

/* ---------- Grundlayout (nur Optik; Layout macht reveal.css) ---------- */

.reveal {
  font-family: var(--rkk-font);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--rkk-text);
  background-color: var(--rkk-bg);
}

.reveal .slides { text-align: left; }

/* ---------- Überschriften ---------- */

.reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
  font-family: var(--rkk-font);
  color: var(--rkk-blue-dark);
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
  text-shadow: none;
  margin-bottom: 0.5em;
}

.reveal h1 { font-size: 2.3em; font-weight: 800; letter-spacing: -0.01em; }
.reveal h2 { font-size: 1.6em; }
.reveal h3 { font-size: 1.15em; color: var(--rkk-text); }
.reveal h4 { font-size: 1em; color: var(--rkk-blue-dark); }

/* Kurzer Akzentbalken unter H1 */
.reveal h1::after {
  content: '';
  display: block;
  width: 64px;
  height: 6px;
  margin-top: 18px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--rkk-orange), var(--rkk-blue-light));
}

/* ---------- Text & Listen ---------- */

.reveal p { margin-bottom: 0.8em; line-height: 1.45; }
.reveal strong { font-weight: 700; }
.reveal small, .reveal .text-muted { font-size: 0.62em; color: var(--rkk-muted); }

.reveal ul, .reveal ol { display: block; margin: 0 0 0.8em 1em; }
.reveal li { margin-bottom: 0.4em; line-height: 1.4; }
.reveal ul li::marker { color: var(--rkk-blue-dark); }

/* Kicker / Themen-Badge */
.reveal .kicker {
  display: inline-block;
  font-size: 0.58em;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--rkk-blue-dark);
  background: var(--rkk-chip);
  border-radius: 999px;
  padding: 8px 20px;
  margin-bottom: 20px;
}

/* ---------- Karten (weiß, stark gerundet, weicher Schatten) ---------- */

.reveal .card {
  background: var(--rkk-white);
  border-radius: var(--rkk-radius-card);
  padding: 24px 26px;
  box-shadow: var(--rkk-shadow-card);
}
.reveal .card h3, .reveal .card h4 { margin: 0 0 0.3em; }
.reveal .card p { font-size: 0.68em; color: var(--rkk-muted); margin: 0; }

/* Icon-Chip */
.reveal .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rkk-chip);
  color: var(--rkk-blue-dark);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 14px;
}

/* Kartenraster */
.reveal .cols { display: grid; gap: 24px; align-items: stretch; }
.reveal .cols-2 { grid-template-columns: 1fr 1fr; }
.reveal .cols-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ---------- Highlight-Box ---------- */

.reveal .highlight-box {
  background: var(--rkk-white);
  border-radius: var(--rkk-radius-card);
  box-shadow: var(--rkk-shadow-card);
  padding: 22px 28px;
  font-size: 0.78em;
}
.reveal .highlight-box strong { color: var(--rkk-blue-dark); }

/* ---------- Links & Buttons (Website-Standard) ---------- */

.reveal a {
  color: var(--rkk-blue-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--rkk-blue-light);
}
.reveal a:hover { border-bottom-color: var(--rkk-orange); }

.reveal .btn {
  display: inline-block;
  background: var(--rkk-blue-dark);
  color: var(--rkk-white) !important;
  font-weight: 600;
  font-size: 0.68em;
  padding: 16px 26px;
  border-radius: 5px;
  border: none;
  margin: 0 14px 0.4em 0;
}
.reveal .btn:hover { background: var(--rkk-navy); border-bottom: none; }
.reveal .btn-secondary {
  background: transparent;
  color: var(--rkk-blue-dark) !important;
  border: 2px solid var(--rkk-blue-dark);
}
.reveal .btn-secondary:hover { background: var(--rkk-chip); }

/* ---------- Tabellen ---------- */

.reveal .table-wrap {
  background: var(--rkk-white);
  border-radius: var(--rkk-radius-card);
  box-shadow: var(--rkk-shadow-card);
  overflow: hidden;
  font-size: 0.68em;
}
.reveal .table-wrap table { width: 100%; border-collapse: collapse; margin: 0; font-size: 1em; }
.reveal .table-wrap th {
  background: var(--rkk-blue-dark);
  color: var(--rkk-white);
  font-weight: 700;
  padding: 14px 20px;
  text-align: left;
}
.reveal .table-wrap td { padding: 12px 20px; border-bottom: 1px solid var(--rkk-chip); }
.reveal .table-wrap tr:last-child td { border-bottom: none; }

/* ---------- Titelfolie (dunkelblau) ----------------------------------------
   Mit großzügigem Innenabstand (padding), damit Titel, Untertitel und
   alle weiteren Inhalte Abstand zum Rand des blauen Kastens halten.
   box-sizing: border-box hält die Folie dabei auf ihrer vollen Größe.
   --------------------------------------------------------------------------- */

.reveal section.title-slide {
  background: var(--rkk-blue-dark);
  color: var(--rkk-white);
  padding: 50px 50px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

.reveal section.title-slide .kicker {
  background: rgba(255, 255, 255, 0.14);
  color: var(--rkk-blue-light);
}
.reveal section.title-slide h1 { color: var(--rkk-white); }
.reveal section.title-slide h1::after {
  background: linear-gradient(90deg, var(--rkk-orange), var(--rkk-blue-light));
}
.reveal section.title-slide h2,
.reveal section.title-slide h3,
.reveal section.title-slide p { color: var(--rkk-blue-light); }
.reveal section.title-slide .text-muted { color: var(--rkk-blue-light); }
.reveal section.title-slide a { color: var(--rkk-blue-light); }

/* ---------- Schlussfolie (hellblau, gleiche Innenabstände) ---------- */

.reveal section.closing-slide {
  background: var(--rkk-blue-light);
  padding: 70px 90px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}
.reveal section.closing-slide h1::after,
.reveal section.closing-slide h2::after {
  background: linear-gradient(90deg, var(--rkk-orange), var(--rkk-white));
}

/* ---------- Globale Fußleiste (Firma links, Logo rechts) ----------------
   Die Leiste liegt als Kind von <body> AUSSERHALB von .reveal/.slides und
   ist damit außerhalb der transformierten Folienfläche verankert –
   so sitzt sie auf jeder Folie verlässlich am unteren Bildschirmrand.
   (Innerhalb der Folien wäre JEDE Verankerung – absolute wie fixed –
   an der transformierten Folie gefangen.)

   Die Abstände zum Rand werden als INLINE-STYLES direkt an den
   Elementen gesetzt (siehe index.html) und überschreiben die hier
   definierten Standardwerte:
     .slide-footer  -> left (Abstand links)    Standard: 40px
     .slide-logo    -> right (Abstand rechts)  Standard: 96px (frei vom
                                               Pfeil-Menü unten rechts)
     beide          -> bottom (Abstand unten)  Standard: 20px / 26px
   --------------------------------------------------------------------------- */

.slide-chrome {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  pointer-events: none;   /* klickt durch; Logo/Text sind rein dekorativ */
}

.slide-chrome .slide-logo {
  position: fixed;
  bottom: 20px;
  right: 96px;
  height: 46px;
  width: auto;
}

.slide-chrome .slide-footer {
  position: fixed;
  bottom: 26px;
  left: 40px;
  font-family: var(--rkk-font);
  font-size: 15px;
  color: var(--rkk-muted);
}

/* ---------- Navigation, Fortschritt, Foliennummer ---------- */

.reveal .controls { color: var(--rkk-blue-dark); }
.reveal .progress { color: var(--rkk-orange); height: 4px; }
.reveal .progress span {
  background: var(--rkk-orange);
  transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
}
/* Foliennummer: unten mittig in der Fußleiste –
   links "rkDrei GmbH", rechts das Logo */
.reveal .slide-number {
  font-family: 'Cantarell', 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--rkk-muted);
  background: transparent;
  padding: 0;
  top: auto;                    /* alte Top-Position abschalten */
  right: auto;
  left: 50%;                    /* horizontal zentriert */
  transform: translateX(-50%);
  bottom: 26px;                 /* gleiche Grundlinie wie "rkDrei GmbH" */
}

/* ---------- Fragmente ---------- */

.reveal .fragment.fade-up { transform: translate(0, 16px); }
.reveal .fragment.fade-up.visible { transform: translate(0, 0); }
.reveal .fragment.fade-up,
.reveal .fragment.fade-up.visible { transition: all 0.5s ease; }

/* ==========================================================================
   FALLBACK: Falls reveal.js nicht initialisiert (assets fehlen o. Ä.),
   zeigen die Folien trotzdem ein sauberes, zentriertes Karten-Layout.
   ========================================================================== */

.reveal:not(.js) .slides {
  max-width: 920px;
  margin: 40px auto;
  padding: 0 20px;
}
.reveal:not(.js) .slides section {
  background: var(--rkk-white);
  border-radius: var(--rkk-radius-card);
  box-shadow: var(--rkk-shadow-card);
  padding: 48px 56px 90px;
  margin-bottom: 40px;
  min-height: 0;
  height: auto;
  position: relative;
}
.reveal:not(.js) .slides section.title-slide,
.reveal:not(.js) .slides section.closing-slide { color: var(--rkk-white); }

/* ---------- PDF-Export ----------
   Die globale Fu&szlig;leiste ist ein Bildschirm-Element und wuerde im
   PDF-Export nicht auf jeder Seite wiederholt. Beim Drucken ausblenden:
   reveal.js erzeugt je PDF-Seite automatisch eine Foliennummer
   (.slide-number-pdf), die das Styling der .slide-number uebernimmt.  */

@media print {
  .slide-chrome {
    display: none !important;
  }
}
