/* GPT-5.6 Launch Deck – Kuble Design System
   Kopie von notebooklm-trainer/styles.css + GPT-5.6-Erweiterungen */

@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&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: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Fortschritt */

.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;
}

/* Navigation */

.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: 64px 48px 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.kicker {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 16px;
  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(33px, 4.7vw, 52px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 21em;
}

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

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

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

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

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

blockquote {
  margin-top: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.9vw, 31px);
  color: var(--blue-soft);
  max-width: 30em;
}

/* Foliensuche */

.search-overlay[hidden] { display: none; }

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(5, 7, 12, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 12vh;
}

.search-box {
  width: min(600px, 92vw);
  background: var(--card);
  border: 1px solid var(--blue);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}

#searchInput {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--card-edge);
  padding: 18px 22px;
  color: var(--text);
  font-family: var(--display);
  font-size: 17px;
  outline: none;
}

#searchInput::placeholder { color: var(--text-subtle); }

.search-results { max-height: 50vh; overflow-y: auto; }

.search-result {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--card-edge);
  padding: 14px 22px;
  cursor: pointer;
  color: var(--text);
  font: inherit;
}

.search-result:last-child { border-bottom: none; }
.search-result:hover, .search-result:focus-visible { background: rgba(46, 92, 255, 0.14); outline: none; }

.search-result strong { display: block; font-size: 15px; margin-bottom: 3px; }
.search-result strong .result-num { color: var(--text-subtle); font-family: var(--mono); font-size: 12px; margin-right: 8px; }
.search-result small { color: var(--text-soft); font-size: 13px; }
.search-result small mark { background: rgba(247, 144, 31, 0.3); color: var(--amber-soft); border-radius: 3px; padding: 0 2px; }

.search-empty { padding: 16px 22px; color: var(--text-subtle); font-size: 14px; }

/* Agenda-Folie */

.agenda-slide {
  max-width: 1060px;
  flex-direction: column;
  justify-content: center;
}

/* Video-Folien */

.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.92) 0%, rgba(5, 7, 12, 0.65) 50%, rgba(5, 7, 12, 0.25) 100%),
    linear-gradient(0deg, rgba(5, 7, 12, 0.95) 0%, rgba(5, 7, 12, 0.1) 40%, rgba(5, 7, 12, 0.4) 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(19px, 2.2vw, 25px);
  color: var(--text-soft);
  max-width: 30em;
  margin-bottom: 28px;
}

/* Klick-Aufbau */

[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 */

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

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

.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: 21px; margin-bottom: 8px; }
.stage p { font-size: 16.5px; color: var(--text-soft); }

/* Zwei Spalten */

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

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

.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: 17.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); }

/* Regel-Listen */

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

.rule {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-left: 3px solid var(--blue);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 18px;
  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: 14px;
}

.block-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 14px;
  padding: 20px 22px;
  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: 16.5px; color: var(--text-soft); }

/* 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: 17px; }

.prompt-card pre {
  font-family: var(--mono);
  font-size: 14px;
  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.copied {
  background: rgba(61, 214, 140, 0.18);
  border-color: #3dd68c;
  color: #7fe4b3;
}

/* Takeaways */

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

.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: 18px;
  color: var(--text-soft);
}

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

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

.rtk-line {
  margin-top: 30px;
  font-size: 18px;
  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; }

  .slide.visible.frag-armed [data-frag]:not(.frag-on) {
    opacity: 0;
    transform: translateY(16px);
    transition-delay: 0s;
  }
}

/* Niedrige Screens (Beamer 720p/768p): kompakter */

@media screen and (max-height: 880px) and (min-width: 901px) {
  body { font-size: 17px; line-height: 1.5; }
  .slide { padding: 40px 48px 72px; }
  .slide-video { padding: 0; }
  .video-content { padding: 64px 48px 88px; }
  .kicker { margin-bottom: 10px; }
  h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
  h3 { font-size: 18px; }
  .hint { margin-top: 40px; }
  .lead { font-size: 19px; margin-bottom: 14px; }
  .note { font-size: 14.5px; margin-top: 12px; }
  blockquote { font-size: clamp(20px, 2.5vw, 25px); margin-top: 18px; }
  .video-sub { font-size: clamp(17px, 2vw, 22px); }
  .rule { font-size: 16px; padding: 10px 16px; }
  .rules { gap: 8px; }
  .stage strong { font-size: 19px; margin-bottom: 5px; }
  .stage p, .block-card p { font-size: 14px; }
  .stage-num { margin-bottom: 6px; }
  .block-num { width: 30px; height: 30px; margin-bottom: 10px; }
  .block-card h3 { margin-bottom: 6px; }
  .col-card h3 { margin-bottom: 8px; }
  .col-card li { font-size: 15.5px; padding: 4px 0 4px 22px; }
  .col-card li::before { top: 12px; }
  .stage, .block-card, .col-card, .takeaways { padding: 14px 16px; }
  .blocks, .stage-row, .two-col, .prompt-grid { gap: 10px; }
  .prompt-card pre { font-size: 13px; }
  .prompt-card h3 { font-size: 16px; }
  .takeaways li, .rtk-line { font-size: 15.5px; }
  .takeaways { margin-top: 16px; }
  .takeaways h3 { margin-bottom: 8px; }
}

/* Druck */

@media print {
  :root {
    --ink: #ffffff;
    --ink-soft: #f2f3f6;
    --card: #ffffff;
    --card-edge: #c9ced8;
    --text: #10141f;
    --text-soft: #3c465c;
    --blue-soft: #1736b8;
    --amber: #b96a12;
    --amber-soft: #b96a12;
  }
  body { background: #fff; font-size: 11pt; }
  .progress, .deck-nav, .search-overlay { 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; }
}

/* Responsive */

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