/* KI im Projektmanagement — Workshop-Präsentation
   Kuble Design System: Night Ink, Kuble Blue, Amber.
   Montserrat (variable, selbst gehostet), JetBrains Mono + Instrument Serif via Google. */

@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap");

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-VariableFont_wght.ttf") format("truetype-variations"),
       url("assets/fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Italic-VariableFont_wght.ttf") format("truetype-variations"),
       url("assets/fonts/Montserrat-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #05070c;
  --ink-soft: #0a0e17;
  --card: #10141f;
  --card-edge: #1e2535;
  --text: #f2f4f8;
  --text-soft: #8892a6;
  --text-subtle: #5a6479;
  --blue: #2e5cff;
  --blue-soft: #7fa2ff;
  --amber: #f7901f;
  --amber-soft: #ffa94d;
  --display: "Montserrat", "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Fortschritt, Logo, Navigation */

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 10;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--amber));
  transition: width 0.2s ease;
}

.deck-logo {
  position: fixed;
  top: 26px;
  right: 28px;
  height: 26px;
  opacity: 0.5;
  z-index: 10;
  pointer-events: none;
}

.deck-nav {
  position: fixed;
  bottom: 22px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  background: rgba(10, 14, 23, 0.85);
  border: 1px solid var(--card-edge);
  border-radius: 9999px;
  padding: 6px 12px;
  backdrop-filter: blur(8px);
}

.deck-nav button {
  background: none;
  border: none;
  color: var(--text);
  font-size: 17px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 9999px;
}

.deck-nav button:hover { background: rgba(255, 255, 255, 0.08); }
.deck-nav button:focus-visible { outline: 2px solid var(--blue-soft); }

#slideCounter {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-soft);
  min-width: 44px;
  text-align: center;
}

/* Folien */

.slide {
  min-height: 100vh;
  max-width: 1060px;
  margin: 0 auto;
  padding: 96px 48px 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  animation: kicker-pulse 2.4s var(--ease-out) infinite;
}

@keyframes kicker-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 92, 255, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(46, 92, 255, 0); }
}

h1 {
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 em, h2 em, .video-title em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  color: var(--blue-soft);
}

h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 34px;
  max-width: 21em;
}

h3 { font-size: 18px; font-weight: 600; }

.subtitle {
  margin-top: 26px;
  font-size: clamp(18px, 2.2vw, 23px);
  color: var(--text-soft);
  max-width: 30em;
}

.title-meta {
  margin-top: 44px;
  font-size: 15px;
  color: var(--text-soft);
}

.title-meta a { color: var(--amber); text-decoration: none; }
.title-meta a:hover { text-decoration: underline; }
.dot-sep { margin: 0 10px; }

.hint {
  margin-top: 70px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: rgba(136, 146, 166, 0.65);
}

.lead {
  font-size: 19px;
  color: var(--text-soft);
  max-width: 42em;
  margin-bottom: 32px;
}

.note {
  margin-top: 30px;
  font-size: 15px;
  color: var(--text-soft);
  border-left: 2px solid var(--amber);
  padding-left: 16px;
  max-width: 44em;
}

blockquote {
  margin-top: 38px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(21px, 2.6vw, 27px);
  color: var(--blue-soft);
  max-width: 30em;
}

/* Video-Folien (Titel + Zwischentitel) */

.slide-video {
  max-width: none;
  padding: 0;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.86) 0%, rgba(5, 7, 12, 0.55) 44%, rgba(5, 7, 12, 0.12) 75%),
    linear-gradient(0deg, rgba(5, 7, 12, 0.92) 0%, rgba(5, 7, 12, 0.15) 38%, rgba(5, 7, 12, 0.35) 100%);
}

.video-content {
  position: relative;
  z-index: 1;
  height: 100vh;
  max-width: 1156px;
  margin: 0 auto;
  padding: 96px 48px 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.slide-title .video-content { justify-content: center; }

.video-title {
  font-size: clamp(48px, 7.5vw, 104px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  max-width: none;
}

.video-sub {
  font-size: clamp(17px, 2vw, 22px);
  color: var(--text-soft);
  max-width: 30em;
  margin-bottom: 28px;
}

/* Klick-Aufbau (Fragmente) */

[data-frag] {
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.frag-armed [data-frag]:not(.frag-on) {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

/* Stage-Reihe (Mindset) */

.stage-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.stage {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 14px;
  padding: 24px;
}

.stage.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(78, 123, 255, 0.4), 0 12px 40px -12px rgba(46, 92, 255, 0.6);
}

.stage-num {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-soft);
  margin-bottom: 10px;
}

.stage strong { display: block; font-size: 19px; margin-bottom: 8px; }
.stage p { font-size: 14.5px; color: var(--text-soft); }

/* Zwei Spalten */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.col-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 14px;
  padding: 26px;
}

.col-card.ki { border-top: 3px solid var(--blue); }
.col-card.mensch { border-top: 3px solid var(--amber); }

.col-card h3 { margin-bottom: 14px; }

.col-card ul { list-style: none; }

.col-card li {
  padding: 7px 0 7px 22px;
  position: relative;
  font-size: 15.5px;
  color: var(--text-soft);
}

.col-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.col-card.mensch li::before { background: var(--amber); }

.code-sample {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: #b4bccc;
  background: var(--ink-soft);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
}

/* Regel-Listen */

.rules { display: grid; gap: 12px; max-width: 52em; }

.rule {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-left: 3px solid var(--blue);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 16px;
  color: var(--text-soft);
}

.rule strong { color: var(--text); }
.rule em { font-style: italic; color: var(--amber-soft); }

/* Bausteine */

.blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.block-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 14px;
  padding: 26px;
  position: relative;
}

.block-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}

.block-card h3 { margin-bottom: 10px; }
.block-card p { font-size: 14.5px; color: var(--text-soft); }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgba(46, 92, 255, 0.16);
  border-radius: 5px;
  padding: 2px 7px;
  color: #acc3ff;
}

/* Demo-Schritte */

.demo-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
  max-width: 52em;
}

.demo-steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 12px;
  padding: 16px 20px 16px 62px;
  position: relative;
  font-size: 15.5px;
  color: var(--text-soft);
}

.demo-steps li strong { color: var(--text); }

.demo-steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(46, 92, 255, 0.2);
  border: 1px solid var(--blue);
  color: var(--blue-soft);
  font-family: var(--mono);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Prompt-Karten */

.slide-prompts { max-width: 1160px; }

.prompt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.prompt-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 14px;
  overflow: hidden;
}

.prompt-card.highlight { border-color: var(--amber); }

.prompt-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--card-edge);
}

.prompt-card h3 { font-size: 15.5px; }

.prompt-card pre {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #b4bccc;
  padding: 16px 18px;
  white-space: pre-wrap;
  max-height: 340px;
  overflow-y: auto;
}

.copy-btn {
  flex-shrink: 0;
  background: rgba(46, 92, 255, 0.15);
  border: 1px solid var(--blue);
  color: var(--blue-soft);
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.copy-btn:hover { background: var(--blue); color: white; }
.copy-btn:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 2px; }

.copy-btn.copied {
  background: rgba(61, 214, 140, 0.18);
  border-color: #3dd68c;
  color: #7fe4b3;
}

/* Downloads */

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.download-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 14px;
  padding: 26px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s var(--ease-out), border-color 0.15s ease;
}

.download-card:hover { transform: translateY(-3px); border-color: var(--amber); }

.dl-icon {
  display: block;
  font-size: 26px;
  color: var(--amber);
  margin-bottom: 14px;
}

.download-card h3 { margin-bottom: 8px; }
.download-card p { font-size: 14px; color: var(--text-soft); }

.dl-cta {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--blue-soft);
}

.takeaways {
  margin-top: 44px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 14px;
  padding: 26px;
}

.takeaways h3 { margin-bottom: 14px; color: var(--amber-soft); }

.takeaways ul { list-style: none; }

.takeaways li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 16px;
  color: var(--text-soft);
}

.takeaways li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--blue-soft);
}

.takeaways em { font-style: italic; color: var(--amber-soft); }

.rtk-line {
  margin-top: 30px;
  font-size: 16px;
  color: var(--text-soft);
}

.rtk-line strong { color: var(--amber); }

/* Einblenden beim Erscheinen */

@media (prefers-reduced-motion: no-preference) {
  .slide > *:not(.bg-video):not(.video-scrim),
  .video-content > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  }

  .slide.visible > *:not(.bg-video):not(.video-scrim),
  .slide.visible .video-content > * { opacity: 1; transform: none; }

  .slide.visible > *:nth-child(2),
  .slide.visible .video-content > *:nth-child(2) { transition-delay: 0.08s; }
  .slide.visible > *:nth-child(3),
  .slide.visible .video-content > *:nth-child(3) { transition-delay: 0.16s; }
  .slide.visible > *:nth-child(4),
  .slide.visible .video-content > *:nth-child(4) { transition-delay: 0.24s; }
  .slide.visible > *:nth-child(5),
  .slide.visible .video-content > *:nth-child(5) { transition-delay: 0.32s; }

  /* Fragmente: Aufbau-Zustand gewinnt gegen die Einblend-Regel */
  .slide.visible.frag-armed [data-frag]:not(.frag-on) {
    opacity: 0;
    transform: translateY(16px);
    transition-delay: 0s;
  }
}

/* PDF-Banner (Downloads-Folie) */

.pdf-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 18px 24px;
  background: rgba(46, 92, 255, 0.1);
  border: 1px solid var(--blue);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s ease;
}

.pdf-banner:hover { background: rgba(46, 92, 255, 0.2); }

.pdf-banner .pdf-icon { font-size: 22px; color: var(--blue-soft); }
.pdf-banner small { font-weight: 400; color: var(--text-soft); margin-left: auto; font-family: var(--mono); font-size: 12px; }

/* Druck: einfaches helles Print-Design */

@media print {
  :root {
    --ink: #ffffff;
    --ink-soft: #f2f3f6;
    --card: #ffffff;
    --card-edge: #c9ced8;
    --text: #10141f;
    --text-soft: #3c465c;
    --text-subtle: #5a6479;
    --blue-soft: #1736b8;
    --amber: #b96a12;
    --amber-soft: #b96a12;
  }

  body { background: #fff; font-size: 11pt; }

  .progress, .deck-nav, .deck-logo, .copy-btn, .bg-video, .video-scrim, .hint { display: none !important; }

  .slide {
    min-height: auto;
    padding: 0 0 28pt;
    page-break-after: always;
    break-after: page;
  }

  .slide:last-child { page-break-after: auto; }

  .slide > *, .video-content > *, [data-frag] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .frag-armed [data-frag]:not(.frag-on) { opacity: 1 !important; transform: none !important; }

  .slide-video { max-width: 1060px; margin: 0 auto; }
  .video-content { height: auto; padding: 48pt 48px 0; justify-content: flex-start; }
  .slide-title .video-content { justify-content: flex-start; }

  .kicker-dot { animation: none; box-shadow: none; }

  code { background: #eef1f7; color: #1736b8; }
  .code-sample, .prompt-card pre { color: #2a3246; background: #f2f3f6; max-height: none; overflow: visible; }
  .prompt-card, .stage, .col-card, .rule, .block-card, .demo-steps li, .download-card, .takeaways { box-shadow: none; }
  .stage.active { box-shadow: none; border-color: #1736b8; }
  .demo-steps li::before { background: #eef1f7; }
  .title-meta a, .rtk-line strong, .dl-cta { color: #1736b8; }
  .pdf-banner { display: none !important; }
}

/* Responsive */

@media (max-width: 900px) {
  .stage-row, .blocks, .download-grid { grid-template-columns: 1fr; }
  .two-col, .prompt-grid { grid-template-columns: 1fr; }
  .slide { padding: 72px 24px 100px; }
  .video-content { padding: 72px 24px 100px; }
  .deck-logo { top: 18px; right: 18px; height: 20px; }
}
