/* Corporate identity stylesheet for reveal.js output.
   Keep color values aligned with corporate-beamer.tex for PDF parity. */

@import url("custom.css");

:root {
  --ci-primary: #1d295c;
  --ci-secondary: #2f3b70;
  --ci-accent: #4a5fa8;
  --ci-ink: #172148;
  --ci-soft: #e9edf8;

  /* This can be overridden by build_revealjs.sh via --include-in-header. */
  --ci-logo-url: url("images/mittwald_Icon_negativ_navy_rgb.svg");
  --ci-logo-width: 42px;
  --ci-logo-height: 42px;
}

.reveal {
  background:
    radial-gradient(circle at 10% 10%, #ffffff 0, #f4f6fc 38%, #e9edf8 100%);
  color: var(--ci-ink);
}

.reveal .slides section {
  position: relative;
}

aside.controls::after {
  content: "";
  position: absolute;
  right: 4.5rem;
  bottom: 1.65rem;
  width: var(--ci-logo-width);
  height: var(--ci-logo-height);
  background-image: var(--ci-logo-url);
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  opacity: 0.95;
  pointer-events: none;
  z-index: 4;
}


.reveal h1,
.reveal h2,
.reveal h3 {
  color: var(--ci-primary);
  letter-spacing: 0.01em;
}

.reveal a,
.reveal a:hover {
  color: var(--ci-secondary);
}

.reveal strong {
  color: var(--ci-accent);
}

.reveal ul li::marker,
.reveal ol li::marker {
  color: var(--ci-primary);
}

.reveal pre {
  border-left: 6px solid var(--ci-secondary);
  background: #0d1b2a;
  border-radius: 12px;
}

.reveal blockquote {
  background: var(--ci-soft);
  border-left: 6px solid var(--ci-primary);
  color: var(--ci-ink);
}

.reveal .progress {
  color: var(--ci-accent);
}

/* Browser print/PDF mode: keep CI colors and slide branding close to screen view. */
/*
*/
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .reveal .slides section:not(.stack),
  .reveal .pdf-page section:last-of-type {
    background-image: var(--ci-logo-url),
    radial-gradient(circle at 10% 10%, #ffffff 0, #f4f6fc 38%, #e9edf8 100%) !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: right 0.5rem bottom 0.65rem, center !important;
    background-size: var(--ci-logo-width) var(--ci-logo-height), cover !important;
  }

}
