/**
 * AlphaNodes 2026 theme for reveal.js: dark gradient background in the
 * website header colors, glass boxes with blur and bright borders, Lato.
 * Built on top of the stock black theme.
 */
@import url(./black.css);
@import url(./fonts/lato/lato.css);

:root {
  --an-primary: #4a90e2;
  --an-primary-light: #7fb6ff;
  --an-red: #ff5e5e;
  --an-purple: #7b68ee;
  --an-purple-light: #a89bff;
  --an-pink: #e94b9c;
  --an-pink-light: #ff7fc0;
  --an-orange: #f5a623;
  --an-text: #f2f5fa;
  --an-muted: #b4c2d6;
  --an-glass: rgba(255, 255, 255, 0.08);
  --an-glass-border: rgba(255, 255, 255, 0.18);
  --an-blur: blur(16px) saturate(140%);

  --r-background-color: #103a54;
  --r-main-font: Lato, "Segoe UI", Roboto, sans-serif;
  --r-main-font-size: 36px;
  --r-main-color: var(--an-text);
  --r-heading-font: Lato, "Segoe UI", Roboto, sans-serif;
  --r-heading-color: #fff;
  --r-heading-text-transform: none;
  --r-heading-font-weight: 700;
  --r-heading-text-shadow: none;
  --r-heading1-size: 2.2em;
  --r-heading2-size: 1.5em;
  --r-heading3-size: 1.15em;
  --r-link-color: var(--an-primary-light);
  --r-link-color-dark: var(--an-primary);
  --r-link-color-hover: var(--an-pink);
  --r-selection-background-color: var(--an-pink);
}

/* Background: header gradient of the website plus two soft glows, so the blur has something to blur */
.reveal-viewport {
  background-color: #103a54;
  background-image:
    url(../../images/alphanodes-logo.png),
    radial-gradient(ellipse 40% 55% at 85% 15%, rgba(233, 75, 156, 0.35), transparent 70%),
    radial-gradient(ellipse 45% 50% at 10% 90%, rgba(74, 144, 226, 0.45), transparent 70%),
    linear-gradient(140deg, #103a54 0%, #14608e 55%, #7a1098 100%);
  background-repeat: no-repeat;
  background-position: 24px calc(100% - 20px), 0 0, 0 0, 0 0;
  background-size: 40px auto, 100% 100%, 100% 100%, 100% 100%;
}

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

.reveal .slides section.center,
.reveal .slides section.titel,
.reveal .slides section.merke {
  text-align: center;
}

.reveal h1, .reveal h2, .reveal h3 {
  letter-spacing: -0.01em;
}

.reveal h2 {
  margin-bottom: 0.6em;
}

.reveal h3 {
  color: var(--an-primary-light);
}

.reveal p, .reveal li {
  line-height: 1.4;
}

.reveal ul, .reveal ol {
  margin-left: 1.2em;
}

.reveal li {
  margin-bottom: 0.35em;
}

.reveal li::marker {
  color: var(--an-primary-light);
}

.reveal small, .reveal .klein {
  color: var(--an-muted);
}

.reveal .progress {
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
}

.reveal .progress span {
  background: linear-gradient(90deg, var(--an-primary) 0%, var(--an-purple) 50%, var(--an-pink) 100%);
}

.reveal .slide-number {
  background: none;
  color: var(--an-muted);
  font-size: 18px;
  right: 80px;
  bottom: 18px;
}

.reveal .controls {
  color: var(--an-primary-light);
}

/* Glass box: shared look for every box on the slides */
.reveal .hinweis, .reveal .achtung,
.reveal section.merke p,
.reveal section.demo p.satz,
.reveal table,
.reveal img.schaubild {
  background: var(--an-glass);
  -webkit-backdrop-filter: var(--an-blur);
  backdrop-filter: var(--an-blur);
  border: 2px solid var(--an-glass-border);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Title slide: gradient headline like the website */
.reveal section.titel h1 {
  color: var(--an-purple-light);
  background: linear-gradient(135deg, var(--an-primary-light) 0%, var(--an-purple-light) 50%, #ff7fc0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 0.2em;
}

.reveal section.titel .untertitel {
  font-size: 1.2em;
  color: var(--an-text);
  margin-bottom: 1.5em;
}

/* Agenda section title: gradient pill with the number left of the heading */
.reveal .titel-nummer {
  display: inline-block;
  min-width: 1.4em;
  padding: 0 0.3em;
  margin-right: 0.4em;
  border-radius: 0.25em;
  background: linear-gradient(135deg, var(--an-primary) 0%, var(--an-purple) 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 0 18px rgba(123, 104, 238, 0.6);
}

/* Demo slide: violet glass card with the frame sentence */
.reveal section.demo h2 {
  color: #fff;
}

.reveal section.demo h2::before {
  content: "Jetzt im Redmine";
  display: block;
  font-size: 0.5em;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--an-purple-light);
  margin-bottom: 0.3em;
}

.reveal section.demo p.satz {
  border-color: var(--an-purple-light);
  box-shadow: 0 0 28px rgba(123, 104, 238, 0.45), 0 10px 40px rgba(0, 0, 0, 0.25);
  padding: 0.7em 1em;
  margin-top: 0.8em;
}

.reveal section.demo ol {
  counter-reset: schritt;
  list-style: none;
  margin-left: 0;
}

.reveal section.demo ol li {
  counter-increment: schritt;
  position: relative;
  padding-left: 1.8em;
  margin-bottom: 0.5em;
}

.reveal section.demo ol li::before {
  content: counter(schritt);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  background: var(--an-purple);
  color: #fff;
  font-size: 0.8em;
  font-weight: 700;
  line-height: 1.3em;
  text-align: center;
}

/* Take-away slide: one sentence in a pink glass card */
.reveal section.merke h2 {
  font-size: 0.7em;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--an-muted);
}

.reveal section.merke p {
  font-size: 1.4em;
  font-weight: 700;
  color: #fff;
  max-width: 20em;
  margin: 0 auto;
  padding: 0.8em 1em;
  border-color: var(--an-pink);
  box-shadow: 0 0 32px rgba(233, 75, 156, 0.5), 0 10px 40px rgba(0, 0, 0, 0.25);
}

/* Note boxes: blue for hints, orange for warnings */
.reveal .hinweis, .reveal .achtung {
  margin: 0.8em 0 0;
  padding: 0.5em 0.9em;
  font-size: 0.8em;
  border-color: var(--an-primary-light);
  box-shadow: 0 0 24px rgba(74, 144, 226, 0.45), 0 10px 40px rgba(0, 0, 0, 0.25);
}

.reveal .achtung {
  border-color: var(--an-orange);
  box-shadow: 0 0 24px rgba(245, 166, 35, 0.45), 0 10px 40px rgba(0, 0, 0, 0.25);
}

/* Diagrams follow docs/farbkonzept.md: transparent, drawn for the dark background */
.reveal img.schaubild {
  display: block;
  margin: 0 auto;
  width: 1080px;
  max-width: 100%;
  height: auto;
  max-height: none;
  box-sizing: border-box;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0;
  box-shadow: none;
}

/* Older diagrams drawn for a light background sit on a light glass card */
.reveal img.schaubild.hell {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--an-primary-light);
  border-radius: 14px;
  box-shadow: 0 0 28px rgba(74, 144, 226, 0.4), 0 10px 40px rgba(0, 0, 0, 0.3);
}

.reveal section h3 + img.schaubild {
  margin-top: -0.2em;
}

.reveal img.screenshot {
  display: block;
  margin: 0 auto;
  max-width: 1000px;
  max-height: 540px;
  border: 2px solid var(--an-primary-light);
  border-radius: 10px;
  box-shadow: 0 0 28px rgba(74, 144, 226, 0.4);
}

/* Two columns */
.reveal .zwei-spalten {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2em;
  align-items: start;
}

/* Tables: glass card with bright header line */
.reveal table {
  font-size: 0.8em;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-color: var(--an-primary-light);
  box-shadow: 0 0 24px rgba(74, 144, 226, 0.4), 0 10px 40px rgba(0, 0, 0, 0.25);
}

.reveal table th {
  color: #fff;
  background: rgba(74, 144, 226, 0.35);
  border-bottom: 2px solid var(--an-primary-light);
}

.reveal table td, .reveal table th {
  padding: 0.35em 0.9em;
  border-bottom: 1px solid var(--an-glass-border);
}

.reveal table tr:last-child td {
  border-bottom: 0;
}

.reveal p.satz {
  font-size: 0.9em;
  margin-bottom: 0.5em;
}

/* Decorative image without frame, e.g. on the closing slide */
.reveal img.deko {
  width: 300px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  background: transparent;
}
