@import url("../site_libs/bootstrap/bootstrap-icons.css");

/* Small additions to the existing Reveal theme; no custom scroll engine. */
.reveal .slide-source {
  margin-top: 0.5em;
  font-size: 0.65em;
  line-height: 1.35;
  text-align: left;
}

/* Leave room for the model's source line without changing the figure itself. */
.reveal #aufgabe-und-ziele svg {
  max-height: 560px;
}

.reveal #literatur #refs {
  font-size: 0.65em;
  line-height: 1.25;
  text-align: left;
  overflow-wrap: anywhere;
}

.reveal #literatur .csl-entry {
  margin-bottom: 0.45em;
}

.reveal .reading-link {
  display: inline-block;
  margin-top: 0.75em;
  font-size: 0.65em;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.reveal a.reading-link[href*="/nachlesen/"]::before {
  content: "\f194";
  display: inline-block;
  margin-right: 0.4em;
  font-family: "bootstrap-icons";
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  text-decoration: none;
  vertical-align: -0.05em;
}

.reveal .model-slide .interactive-model {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 18px;
  line-height: 1.35;
  text-align: left;
}

.reveal .model-slide h2 {
  margin-bottom: 0.4em;
}

.reveal .interactive-model p {
  margin: 0.5em 0;
}

.reveal .interactive-model .evidence-status {
  margin-bottom: 0;
}

.reveal .interactive-model form {
  max-width: 100%;
  margin: 0.25rem 0;
  font-size: 17px;
}

.reveal .interactive-model form > label {
  width: 310px;
  flex-shrink: 0;
}

.reveal .interactive-model form {
  width: 100%;
}

.reveal .interactive-model svg {
  margin: 0.5rem 0;
}

.reveal .model-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto;
  align-items: baseline;
  gap: 0.5rem;
  max-width: none;
  margin: 0.5rem 0;
  padding-top: 0.5rem;
}

.reveal .model-summary dt,
.reveal .model-summary dd {
  font-size: 16px;
  margin: 0;
}

.reveal .interactive-model .figure-note {
  max-width: none;
  font-size: 14px;
}

.reveal section img {
  max-height: 480px;
}

.reveal .opening-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
  margin: 0.6rem 0 0.8rem;
}

.reveal .opening-image-grid p {
  margin: 0;
}

.reveal .opening-image-grid img {
  width: 100%;
  max-height: 330px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #d8d2ca;
}

.reveal .opening-reference-grid {
  width: min(62%, 620px);
  margin: 0 auto 0.35rem;
}

.reveal .opening-reference-grid p {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.reveal .opening-reference-grid img {
  width: 100%;
  height: 105px;
  max-height: none;
  object-fit: contain;
}

.reveal img.opening-robot {
  display: block;
  width: min(58%, 540px);
  max-height: 500px;
  margin: 0.5rem auto 0;
  object-fit: contain;
}

.reveal .participant-action {
  position: relative;
  margin: 0.8rem 0 0;
  padding: 0.75rem 0.9rem 0.7rem;
  border: 2px solid #a63d2f;
  border-radius: 0.35rem;
  background: transparent;
  text-align: left;
}

.reveal .participant-action::before {
  display: block;
  margin-bottom: 0.35rem;
  color: #8d3026;
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reveal .participant-action.note-action::before {
  content: "✎  Eigene Notiz";
}

.reveal .participant-action.workbook-action::before {
  content: "✎  Arbeitsdokument";
}

.reveal .participant-action.exchange-action::before {
  content: "↔  Austausch";
}

.reveal .participant-action.discussion-action::before,
.reveal .participant-action.individual-action::before,
.reveal .participant-action.pair-action::before,
.reveal .participant-action.group-action::before {
  font-family: "bootstrap-icons", var(--r-main-font);
  font-style: normal;
}

.reveal .participant-action.discussion-action::before {
  content: "\f24a  Gemeinsame Diskussion";
}

.reveal .participant-action.individual-action::before {
  content: "\f4e1  Einzelarbeit";
}

.reveal .participant-action.pair-action::before {
  content: "\f4d0  Zu zweit";
}

.reveal .participant-action.group-action::before {
  content: "\f4cf  Gruppenarbeit";
}

.reveal .participant-workbook-ref {
  display: inline-block;
  margin: 0 0.7rem 0.3rem 0;
  color: #1e3a5f;
  font-size: 0.58em;
  font-weight: 700;
  line-height: 1.25;
}

.reveal .participant-action p,
.reveal .participant-action ul,
.reveal .participant-action ol {
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
}

.reveal .compact-action-slide .participant-action {
  margin-top: 0.35rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.8em;
}

.reveal .compact-action-slide .participant-action::before {
  display: inline;
  margin-right: 0.4rem;
}

.reveal .participant-action li {
  margin-bottom: 0.2rem;
}

.reveal .meme-slide img {
  display: block;
  max-height: 470px;
  margin: 0 auto 0.35rem;
}

/* The shared exercise card must remain readable when projected, including its code. */
.reveal #aufgabenkarte .callout {
  font-size: 1em;
}

.reveal #aufgabenkarte pre.sourceCode {
  font-size: 0.9em;
  line-height: 1.3;
}

.reveal .closing-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.5rem 0 0.8rem;
}

.reveal .closing-image-grid p {
  margin: 0;
}

.reveal .closing-image-grid img {
  width: 100%;
  max-height: 225px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #d8d2ca;
}

/* Prominent, projection-safe links for workshop tools and activity materials. */
.reveal .activity-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.45rem;
  margin: 0.6rem 0;
}

.reveal .activity-links p {
  margin: 0;
}

.reveal .activity-links a {
  display: flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0.45rem 0.65rem;
  color: #f5f0e8;
  background: #1e3a5f;
  border: 2px solid #1e3a5f;
  font-size: 0.72em;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

.reveal .activity-links a.activity-reference {
  color: #1e3a5f;
  background: #ede7da;
}

.reveal .activity-links a:hover,
.reveal .activity-links a:focus-visible {
  color: #f5f0e8;
  background: #8a3226;
  border-color: #8a3226;
}

.reveal .activity-tools {
  padding: 0.65rem;
  background: #ede7da;
  border: 1px solid #c8c2b8;
}

.reveal .activity-tools > p:first-child {
  margin: 0 0 0.4rem;
  color: #1e3a5f;
  font-size: 0.8em;
  font-weight: 700;
}

.reveal .activity-tools .activity-links {
  grid-template-columns: 1fr;
  margin: 0;
}

.reveal .compact-steps ol {
  font-size: 0.9em;
  line-height: 1.28;
}

.reveal .compact-steps li {
  margin-bottom: 0.18em;
}

.reveal .compact-steps p {
  font-size: 0.92em;
}

/* Five-step TutorForge workflow used on the activity overview slide. */
.reveal .prompt-workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.65rem 0 0.5rem;
}

.reveal .prompt-workflow-step {
  position: relative;
  min-height: 8.6rem;
  padding: 0.55rem;
  background: #ede7da;
  border-top: 4px solid #1e3a5f;
}

.reveal .prompt-workflow-step:nth-child(2),
.reveal .prompt-workflow-step:nth-child(3) {
  border-top-color: #a63d2f;
}

.reveal .prompt-workflow-step::after {
  content: "→";
  position: absolute;
  top: 43%;
  right: -0.52rem;
  z-index: 2;
  color: #6e6560;
  font-size: 1.05em;
  font-weight: 700;
}

.reveal .prompt-workflow-step:last-child::after {
  content: none;
}

.reveal .prompt-workflow-step p {
  margin: 0 0 0.35rem;
  font-size: 0.55em;
  line-height: 1.3;
}

.reveal .prompt-workflow-step p:last-child {
  margin-bottom: 0;
}

.reveal .prompt-workflow-number {
  display: block;
  margin-bottom: 0.25rem;
  color: #1e3a5f;
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1;
}

.reveal .prompt-workflow-phases {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0.55rem;
}

.reveal .prompt-workflow-phase {
  padding: 0.4rem 0.55rem;
  color: #1e3a5f;
  background: transparent;
  border: 1px solid #c8c2b8;
}

.reveal .prompt-workflow-phase p {
  margin: 0;
  font-size: 0.58em;
  line-height: 1.25;
}
