/*
 * Workshop Microservices — reveal.js theme
 *
 * Farbpalette (slides-spezifisch — Single Source of Truth):
 *   --slide-bg          #ffffff           Slide-Hintergrund (weiß)
 *   --slide-text        rgb( 10,  3, 73)  Standard-Textfarbe auf Slides (dunkles Blau-Violett)
 *   --wave              rgb(238,231,251)  Welle am unteren Slide-Rand
 *   --box-bg            rgb( 10,  3, 73)  Box-Hintergrund (dunkles Blau-Violett)
 *   --box-border        rgb(115, 72,225)  Box-Rahmen (dünn)
 *   --box-text          #ffffff           Text in Boxen (weiß)
 *   --highlight         rgb(211,248,113)  Highlight / Akzent (limegrün)
 *
 * Verwendung:
 *   <div class="box">…</div>            normale Box (dunkler Hintergrund, weißer Text)
 *   <span class="hl">…</span>           Highlight-Markierung
 *   <!-- .slide: data-background-color="#ffffff" -->   weiße Slide (Default)
 */

/* Poppins (SIL OFL 1.1), Subset latin, siehe assets/fonts/README.md.
   font-display: block statt swap: Chrome positioniert SVG-Text (Timeline) falsch,
   wenn die Schrift nach dem ersten Layout nachgeladen wird. Die Dateien liegen
   lokal, die Wartezeit ist praktisch null. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: block; src: url("./assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 400; font-display: block; src: url("./assets/fonts/poppins-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: block; src: url("./assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: block; src: url("./assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: block; src: url("./assets/fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: block; src: url("./assets/fonts/poppins-800.woff2") format("woff2"); }
/* Sacramento (SIL OFL 1.1): verbundene Schreibschrift, nur für den „roten Faden" auf der Feedback-Folie */
@font-face { font-family: "Sacramento"; font-style: normal; font-weight: 400; font-display: block; src: url("./assets/fonts/sacramento-400.woff2") format("woff2"); }

:root {
    --slide-bg: #ffffff;
    --slide-text: rgb(10, 3, 73);   /* dunkles Lila statt schwarz */
    --wave: rgb(238, 231, 251);
    --box-bg: rgb(10, 3, 73);
    --box-border: rgb(115, 72, 225);
    --box-text: #ffffff;
    --highlight: rgb(211, 248, 113);

    /* Poppins, selbst gehostet (assets/fonts/, OFL). Eine Familie für Text und
       Titel; die Titel laufen im Schnitt ExtraBold (800). */
    --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-title: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --r-background-color: var(--slide-bg);
    --r-main-font: var(--font-body);
    --r-main-font-size: 36px;
    --r-main-color: var(--slide-text);
    --r-block-margin: 20px;

    --r-heading-margin: 0 0 20px 0;
    --r-heading-font: var(--font-title);
    --r-heading-color: var(--slide-text);
    --r-heading-line-height: 1.1;
    --r-heading-letter-spacing: normal;
    --r-heading-text-transform: none;
    --r-heading-text-shadow: none;
    --r-heading-font-weight: 800;
    --r-heading1-text-shadow: none;
    --r-heading1-size: 58px;
    --r-heading2-size: 58px;
    --r-heading3-size: 1.25em;
    --r-heading4-size: 1em;

    --r-code-font: "SFMono-Regular", Menlo, Consolas, monospace;
    --r-link-color: var(--box-border);
    --r-link-color-dark: #4d27a8;
    --r-link-color-hover: #4d27a8;

    --r-selection-background-color: var(--box-border);
    --r-selection-color: #fff;
}

.reveal-viewport {
    background: var(--slide-bg);
}

.reveal {
    color: var(--r-main-color);
}

/* Poppins überall erzwingen, Reveal-Defaults überschreiben.
   Ausnahme: Code-Blöcke bleiben monospace (weiter unten gesetzt). */
.reveal,
.reveal * {
    font-family: var(--font-body);
}

/* Reveal-Standard-Layout: center: true zentriert die gesamte Section vertikal.
   Innerhalb der Section stacken Titel, Subtitle und Content natürlich
   untereinander; der Block sitzt als Ganzes mittig auf der Slide. */
.reveal .slides {
    text-align: center;
}

.reveal .slides > section,
.reveal .slides > section > section {
    padding: 1.5rem 0;
}

.reveal h1, .reveal h2 {
    font-family: var(--font-title);
    color: var(--slide-text);
    font-weight: 800;
    font-size: 58px;         /* Poppins ExtraBold läuft breit: kleiner als die 56pt der Futura Condensed */
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1.1;
    margin: 0;
}

.reveal h3, .reveal h4 {
    color: var(--slide-text);
    font-weight: 600;
}

/* Optionaler Subtitle direkt unter dem Slide-Titel */
.reveal .subtitle,
.reveal p.subtitle {
    color: var(--box-border);   /* helleres Lila */
    font-weight: 500;
    font-size: 23pt;
    text-align: center;
    margin: 0 0 1.5rem 0;
}

/* Spruch / Quote — Eyecatcher unter dem Slide-Titel */
.reveal .quote,
.reveal p.quote {
    font-style: italic;
    color: var(--slide-text);
    font-size: 1.1em;
    margin: 0.5rem auto 1.5rem;
    max-width: 75%;
    text-align: center;
    line-height: 1.4;
}

.reveal a {
    color: var(--r-link-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(115, 72, 225, 0.4);
    transition: color 0.15s, border-color 0.15s;
}

.reveal a:hover {
    color: var(--r-link-color-hover);
    border-bottom-color: var(--r-link-color-hover);
}

.reveal ul, .reveal ol {
    display: inline-block;       /* schrumpft auf Inhaltsbreite, zentriert via parent text-align */
    text-align: left;            /* Bullets bündig links innerhalb der Liste */
    margin: 0.8em 0 0 0;         /* Luft zum vorigen Element — Reveal-Default ist 0 */
    padding-left: 1.2em;
}

.reveal li + li {
    margin-top: 0.35em;
}

.reveal li::marker {
    color: var(--box-border);
}

/* reveal.js reset.css setzt font-weight: inherit; Fettdruck explizit zurückholen */
.reveal strong,
.reveal b {
    font-weight: 700;
}

/* Highlight / Akzentuierung */
.reveal .hl,
.reveal mark {
    background: var(--highlight);
    color: var(--slide-text);
    padding: 0 0.2em;
    border-radius: 3px;
}

/* Boxen: dunkler Hintergrund, dünner Rahmen, abgerundet, weißer Text */
.reveal .box {
    background: var(--box-bg);
    border: 1px solid var(--box-border);
    border-radius: 12px;
    color: var(--box-text);
    padding: 1rem 1.4rem;
    margin: var(--r-block-margin) auto;
    width: fit-content;
    max-width: 80%;
    text-align: left;
    box-shadow: 0 4px 16px rgba(10, 3, 73, 0.18);
}

.reveal .box h1,
.reveal .box h2,
.reveal .box h3,
.reveal .box h4,
.reveal .box p,
.reveal .box li,
.reveal .box strong {
    color: var(--box-text);
}

.reveal .box a {
    color: var(--highlight);
    border-bottom-color: rgba(211, 248, 113, 0.5);
}

/* Zwei-Spalten-Layout (z.B. für die Agenda mit Tag 1 / Tag 2) */
.reveal .cols {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
}

.reveal .cols > div {
    flex: 1;
    min-width: 0;
}

.reveal .cols h3 {
    color: var(--box-border);
    margin: 0 0 0.6em 0;
    font-size: 1.5em;
}

.reveal .cols ul {
    font-size: 0.8em;
}

/* Kicker: kleine violette Zeile mit Lime-Strich über dem Folientitel
   (Musterdeck-Inhaltsfolien). */
.reveal .kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--box-border);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
    text-align: left;
}

.reveal .kicker::before {
    content: "";
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: var(--highlight);
}

/* ---------------------------------------------------------------------- */
/* Musterdeck-Inhaltsfolie (.page): Block in voller Folienhöhe, damit der  */
/* Header trotz center: true immer an derselben Oberkante sitzt (Trick wie */
/* .fb). Kicker bei ~54 px, Inhaltszone endet bei ~610 px, darunter bleibt */
/* die Welle frei. Der Inhalt (.page-body) zentriert sich in der Restfläche */
/* zwischen Titel und Wellenzone.                                          */
/* ---------------------------------------------------------------------- */

.reveal .page {
    width: 92%;
    height: 672px;           /* 720 minus 2 × 24 px Section-Padding */
    padding: 10px 0 86px;
    box-sizing: border-box;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    color: var(--slide-text);
}

.reveal .page h2 {
    text-align: left;
    margin: 0 0 40px;
}

/* Violette Unterzeile direkt unter dem Titel (Musterdeck) */
.reveal .page .subtitle {
    text-align: left;
    font-size: 24px;
    font-weight: 400;
    margin: -30px 0 32px;
}

/* Violette Leitzeile direkt über dem Inhalt (statt unter dem Titel) */
.reveal .page-body .lead {
    text-align: left;
    font-size: 24px;
    font-weight: 400;
    color: var(--box-border);
    margin: 0 0 18px;
}

/* Markiertes Wort in der Unterzeile als Pinselstrich */
.reveal .page .subtitle .hl {
    display: inline-block;
    line-height: 1.1;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150' preserveAspectRatio='none'><path fill='%23D3F871' d='M6 26 C 60 4, 140 12, 240 9 S 620 2, 960 11 S 1150 4, 1194 24 C 1204 58, 1198 102, 1188 132 S 1000 146, 780 139 S 320 152, 24 140 C 6 118, 0 62, 6 26 Z'/></svg>") center / 100% 100% no-repeat;
    padding: 0.02em 0.3em 0.05em;
    border-radius: 0;
    transform: rotate(-0.7deg);
}

/* Zeit-Badge rechts neben dem Titel (Story-Folien): Lavendel-Pille */
.reveal .page-head .badge {
    flex: none;
    background: var(--wave);
    color: var(--box-border);
    font-size: 18px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 999px;
    margin-top: 10px;
}

/* Story ohne Code (Design-Session, Übung): gestrichelt, wie der Stepper-Knoten
   im Dashboard. Padding um die Randbreite kleiner, damit die Pille gleich hoch
   bleibt und die Titelzeile zwischen den Stories nicht springt. */
.reveal .page-head .badge.design {
    background: #fff;
    border: 2px dashed var(--box-border);
    padding: 6px 16px;
}

/* Anteil der Übung im Slot („davon 20 Spiel"): leiser als die Gesamtzeit. */
.reveal .page-head .badge small {
    font-size: 0.85em;
    font-weight: 500;
}

/* Titelzeile mit Merksatz rechts (z. B. „Diese fünf baut ihr gleich in Story 1.") */
.reveal .page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin: 0 0 40px;
}

.reveal .page-head h2 {
    margin: 0;
}

.reveal .page-head .callout {
    font-size: 22px;
    padding: 14px 24px;
    margin-top: 4px;
}

/* Auto-Margins in der Flex-Spalte: der Inhalt sitzt mittig im Rest. */
.reveal .page .page-body {
    margin: auto 0;
}

/* ---------------------------------------------------------------------- */
/* Agenda (03): zwei Tagesspalten mit Lime-Unterstrich, je Vormittag,      */
/* Mittagspause (Lavendel-Pille) und Nachmittag                            */
/* ---------------------------------------------------------------------- */

.reveal .agenda-days {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0;
}

.reveal .agenda-day {
    padding: 0 48px 0 0;
}

.reveal .agenda-day + .agenda-day {
    padding: 0 0 0 48px;
    border-left: 1px solid #E4E0F5;
}

.reveal .agenda-day h3 {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-align: left;
    color: var(--slide-text);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--highlight);
}

.reveal .agenda-slot {
    text-align: left;
}

.reveal .agenda-slot p.agenda-label {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    color: var(--box-border);
    margin: 0 0 8px;
}

.reveal .agenda-slot h4 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    color: var(--slide-text);
    margin: 0 0 6px;
}

.reveal .agenda-slot p {
    font-size: 16px;
    line-height: 1.4;
    color: #5B4E93;
    margin: 0 0 6px;
}

.reveal .agenda-slot code,
.reveal .agenda-lunch code {
    background: none;
    padding: 0;
    color: #8880AE;
    font-size: 13px;
}

.reveal .agenda-lunch {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--wave);
    border-radius: 10px;
    padding: 8px 16px;
    margin: 14px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--slide-text);
}

.reveal .agenda-lunch::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--highlight);
    flex: none;
}

.reveal .agenda-lunch code {
    margin-left: auto;
    color: #6F6A8A;
}

/* ---------------------------------------------------------------------- */
/* Story-Folie (.story): User-Story-Karte links, zwei Spalten mit Lime-     */
/* Bullets und Code-Chips, Fußnote mit Trennlinie. Erster Einsatz: 09.      */
/* ---------------------------------------------------------------------- */

.reveal .story-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr 1fr;
    gap: 44px;
    align-items: start;
}

.reveal dl.story-user {
    background: var(--wave);
    border-radius: 16px;
    padding: 22px 28px;
    margin: 0;
    text-align: left;
}

.reveal .story-user dt {
    color: var(--box-border);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
}

.reveal .story-user dd {
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 14px;
    color: var(--slide-text);
}

.reveal .story-user dd:last-child {
    margin-bottom: 0;
}

.reveal .story-list {
    text-align: left;
}

.reveal .story-list h4 {
    color: var(--box-border);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    text-align: left;
}

.reveal .story-list h4 + ul + h4 {
    margin-top: 22px;
}

.reveal .story-list ul {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
}

.reveal .story-list li {
    position: relative;
    padding-left: 22px;
    font-size: 17px;
    line-height: 1.4;
    margin: 0 0 8px;
    color: var(--slide-text);
}

.reveal .story-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--highlight);
}

.reveal .story-list code,
.reveal .story-foot code {
    background: var(--wave);
    color: var(--box-bg);
    font-size: 0.85em;
    padding: 0.1em 0.45em;
    border-radius: 5px;
}

/* Zeitstrahl Hausaufgabe -> Start (0) -> Story 1 (08c, 09): erledigte     */
/* Stationen mit Haken, die aktuelle auf Lime, kommende mit Nummer        */
.reveal .story-path {
    position: relative;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin: 18px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid #E4E0F5;
    text-align: left;
}

/* Verbindungslinie hinter den Stationen; der weiße Rand jeder Station hält */
/* sie auf Abstand                                                         */
.reveal .story-path::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% + 7px);
    height: 2px;
    background: #D9D1F4;
}

.reveal .story-path li {
    position: relative;
    z-index: 1;
    flex: 0 1 auto;
    background: #fff;
    box-shadow: 0 0 0 14px #fff;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 10px 16px 10px 46px;
    font-size: 15px;
    line-height: 1.35;
    color: #5B4E93;
}

.reveal .story-path li::before {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
    line-height: 24px;
    text-align: center;
}

.reveal .story-path li.done::before {
    content: "\2713";
    background: var(--wave);
    color: var(--box-border);
}

.reveal .story-path li.now {
    background: var(--highlight);
    border-radius: 10px;
    color: var(--box-bg);
}

.reveal .story-path li.now::before,
.reveal .story-path li.next::before {
    content: attr(data-n);
    background: var(--box-bg);
    color: var(--highlight);
}

.reveal .story-path li.next::before {
    background: var(--wave);
    color: var(--box-border);
}

.reveal .story-path .sp-step {
    font-weight: 700;
    color: var(--box-border);
}

.reveal .story-path li.now .sp-step { color: var(--box-bg); }

.reveal .story-path code {
    background: var(--wave);
    color: var(--box-bg);
    font-size: 0.85em;
    padding: 0.05em 0.4em;
    border-radius: 5px;
}

.reveal .story-path li.now code { background: rgba(255, 255, 255, 0.55); }

/* Stempel „Rohbau“ (Story 1): was bewusst fehlt, sichtbar statt nur gesagt.
   Sitzt unter den beiden Listen, die Story-Karte links reicht über beide
   Zeilen. Violett statt Rot: Absicht, kein Fehler. */
.reveal .story-grid .stamp {
    grid-column: 2 / -1;
    grid-row: 2;
    justify-self: center;
    margin: 6px 0 0;
    transform: rotate(-6deg);
    border: 4px solid var(--box-border);
    border-radius: 10px;
    box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--box-border);
    padding: 6px 22px 8px;
    color: var(--box-border);
    text-align: center;
    line-height: 1.15;
}

.reveal .story-grid:has(> .stamp) > .story-user { grid-row: 1 / span 2; }

.reveal .stamp strong {
    display: block;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 9px;
    padding-left: 9px;
    text-transform: uppercase;
}

.reveal .stamp span {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.reveal .story-list a {
    color: var(--box-border);
    border-bottom: 1px solid var(--box-border);
}

.reveal .story-foot {
    border-top: 1px solid #E4E0F5;
    margin-top: 18px;
    padding-top: 12px;
    text-align: left;
    font-size: 16px;
    line-height: 1.5;
    color: #5B4E93;
}

.reveal .story-foot strong {
    display: block;
    color: var(--box-border);
    font-weight: 700;
    margin-bottom: 2px;
}

/* ---------------------------------------------------------------------- */
/* Quiz-Folien (.quiz): dunkle Code-Zeile, Auflösung per Fragment mit      */
/* Lime-Urteil (.callout), Begründung und Mono-Merksatz                     */
/* ---------------------------------------------------------------------- */

.reveal .page .page-body.quiz {
    margin: 20px 0 auto;      /* oben verankert statt mittig */
}

.reveal .quiz-code {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    background: var(--box-bg);
    color: #EDE9FB;
    font-family: var(--r-code-font);
    font-size: 24px;
    line-height: 1.45;
    padding: 22px 34px;
    border-radius: 16px;
    text-align: left;
}

/* Kinder ebenfalls monospace, sonst greift die globale Poppins-Regel (.reveal *) */
.reveal .quiz-code * {
    font-family: var(--r-code-font);
}

.reveal .quiz-code .m {
    color: var(--highlight);
}

.reveal .quiz-code .dim {
    color: #9A93C4;
}

/* Musterlösung Story 2 (10e): Aufrufe als dunkle Code-Zeile wie im Quiz, */
/* daneben die Antworten als Chips und die Idempotenz als Marke           */
.reveal .sol-body {
    text-align: left;
}

.reveal .sol-grid {
    display: grid;
    grid-template-columns: max-content 1fr auto;
    align-items: center;
    column-gap: 18px;
    row-gap: 10px;
}

.reveal .sol-grid h4,
.reveal .sol-grid .sol-reason {
    grid-column: 1 / -1;
}

.reveal .sol-grid h4 {
    margin: 14px 0 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--box-border);
}

.reveal .sol-grid h4:first-child { margin-top: 0; }

.reveal .sol-grid .sol-reason {
    margin: 0 0 4px;
    font-size: 17px;
    line-height: 1.45;
    color: #5B4E93;
    padding-left: 14px;
    border-left: 4px solid var(--highlight);
}

.reveal .sol-call {
    background: var(--box-bg);
    color: #EDE9FB;
    font-family: var(--r-code-font);
    font-size: 18px;
    padding: 10px 16px;
    border-radius: 10px;
    white-space: nowrap;
}

.reveal .sol-call * { font-family: var(--r-code-font); }
.reveal .sol-call .m { color: var(--highlight); font-weight: 700; }
.reveal .sol-call .dim { color: #9A93C4; }

.reveal .sol-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.reveal .sol-codes .sc {
    font-size: 14px;
    line-height: 1.2;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--wave);
    color: var(--box-bg);
    white-space: nowrap;
}

.reveal .sol-codes .sc.ok { background: var(--highlight); font-weight: 600; }
.reveal .sol-codes .sc.err { background: var(--box-bg); color: #fff; }

.reveal .sol-idem {
    justify-self: end;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--box-border);
    border: 2px solid var(--box-border);
    border-radius: 6px;
    padding: 3px 8px;
    white-space: nowrap;
}

.reveal .sol-idem.no { color: #5B4E93; border-color: #D9D1F4; }

.reveal .quiz-answer {
    margin-top: 34px;
    text-align: left;
}

.reveal .quiz-answer .callout {
    display: inline-block;
    font-size: 22px;
    padding: 12px 26px;
    margin-bottom: 18px;
}

.reveal .quiz-answer p {
    font-size: 20px;
    line-height: 1.5;
    margin: 0 0 14px;
    max-width: 36em;
    color: var(--slide-text);
}

.reveal .quiz-answer p code {
    background: var(--wave);
    color: var(--box-bg);
    font-size: 0.85em;
    padding: 0.1em 0.45em;
    border-radius: 5px;
}

.reveal .quiz-answer code.quiz-take {
    display: block;
    background: none;
    padding: 0;
    color: #5B4E93;
    font-size: 20px;
}

/* ---------------------------------------------------------------------- */
/* Dunkle Aussage-Folie (.page.dark): Kicker in Lime, große weiße Aussage   */
/* mit Lime-Akzentwort. Erster Einsatz: 10a REST vs. RESTful               */
/* ---------------------------------------------------------------------- */

.reveal .page.dark {
    color: #fff;
}

.reveal .page.dark .kicker {
    color: var(--highlight);
}

.reveal .page.dark .kicker::before {
    background: var(--highlight);
}

.reveal .statement {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 56px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    text-align: left;
    max-width: 19em;
    margin: 0;
}

.reveal .statement .accent {
    color: var(--highlight);
}

/* Graue Randnotiz rechts in der Titelzeile (z. B. „Hypermedia lassen wir bewusst weg.") */
.reveal .page-head .hint {
    flex: none;
    font-size: 16px;
    color: #8880AE;
    margin-top: 22px;
}

/* ---------------------------------------------------------------------- */
/* Pattern-Trenner (.page.dark.split): links Aussage, Unterzeile und Zitat, */
/* rechts Illustration auf leicht abgesetzter Fläche. Erster Einsatz: 11    */
/* ---------------------------------------------------------------------- */

.reveal .page.dark .page-body.split {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
    align-items: stretch;
    margin: 0;
    flex: 1;
    min-height: 0;
}

.reveal .split-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    min-height: 0;
}

/* Aussage und Unterzeile mittig im Rest, das Zitat unten */
.reveal .split-text .statement {
    font-size: 50px;
    margin-top: auto;
}

.reveal .split-text .sub {
    color: #E4E0F5;
    font-size: 24px;
    line-height: 1.4;
    margin: 28px 0 auto;
    max-width: 28em;
}

.reveal .split-text .source {
    margin: 0;
    padding-top: 40px;
    font-size: 16px;
    line-height: 1.4;
    color: #9A93C4;
}

.reveal .split-text .source code {
    background: none;
    padding: 0;
    color: #E4E0F5;
    font-size: 15px;
}

/* Quelle unter einer Aussage ohne Grafik, wie Musterdeck S. 12 (Conway) */
.reveal .page.dark .page-body > p.source {
    text-align: left;
    font-size: 20px;
    color: #E4E0F5;
    margin: 36px 0 0;
}

.reveal .split-figure {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 0 40px;
    border-left: 1px solid rgba(228, 224, 245, 0.12);
}

.reveal .split-figure img {
    width: 100%;
    max-height: 100%;
    height: auto;
}

/* ---------------------------------------------------------------------- */
/* Pattern-Konzeptfolie: Wasserzeichen-Grafik in der Titelzeile, Karten in */
/* Violett, „Am Markt"-Pillen. Erster Einsatz: 11 Service Discovery         */
/* ---------------------------------------------------------------------- */

.reveal .page-head img.head-figure {
    flex: none;
    width: 190px;
    height: auto;
    opacity: 0.35;
    margin-top: -6px;
}

/* Karten mit violettem Titel auch im Dreier-Raster (Default für Pattern) */
.reveal .cards-3.violet .card h3 {
    color: var(--box-border);
}

/* Kompaktere Dreier-Karten, wenn zwei Reihen plus Marktzeile passen müssen */
.reveal .cards-3.compact {
    gap: 22px;
}

.reveal .cards-3.compact .card {
    padding: 18px 24px 20px;
    gap: 7px;
}

.reveal .cards-3.compact .card h3 {
    font-size: 22px;
}

.reveal .cards-3.compact .card p {
    font-size: 17px;
    line-height: 1.4;
}

.reveal .cards-3 .card p code {
    display: inline;
    font-size: 0.82em;
    padding: 0.1em 0.4em;
    white-space: normal;
}
.reveal .cards-3 .card p code.nowrap { white-space: nowrap; }

.reveal .card p.muted {
    color: #5B4E93;
    font-size: 15px;
    margin-top: 2px;
}

.reveal .market {
    margin-top: 18px;
    text-align: left;
}

.reveal .market h4 {
    color: var(--box-border);
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px;
    text-align: left;
}

.reveal .pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.reveal .pill {
    background: var(--wave);
    color: var(--slide-text);
    font-size: 17px;
    font-weight: 500;
    padding: 9px 20px;
    border-radius: 999px;
    white-space: nowrap;
}

.reveal .pill.brand {
    background: var(--box-bg);
    color: #fff;
}

/* Karte, die bewusst nicht zum Pattern gehört (z. B. Fallback neben dem Circuit Breaker) */
.reveal .card.own-pattern {
    position: relative;
    background: #fff;
    border: 3px dashed var(--box-border);
}
.reveal .card.own-pattern .tag {
    position: absolute;
    top: -15px;
    right: 18px;
    background: var(--highlight);
    color: var(--box-bg);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
}

/* Marktübersicht als letzte Karte im Raster (dunkel, kleinere Pills) */
.reveal .card.market-card {
    background: var(--box-bg);
}
.reveal .cards-3.violet .card.market-card h3 {
    color: var(--highlight);
}
.reveal .card.market-card .pills {
    gap: 8px;
    margin-top: 4px;
}
.reveal .card.market-card .pill {
    font-size: 15px;
    padding: 5px 14px;
}
.reveal .card.market-card .pill.brand {
    background: var(--highlight);
    color: var(--box-bg);
}

/* ---------------------------------------------------------------------- */
/* Code-Folie (.codeblock): dunkle Fläche, Lime-Labels, gedämpfte Ausgabe,  */
/* markierte Werte. Erster Einsatz: 11a Consul                              */
/* ---------------------------------------------------------------------- */

.reveal .page .page-body.codebody {
    margin: 0 0 auto;
}

.reveal .codeblock {
    background: var(--box-bg);
    color: #EDE9FB;
    border-radius: 16px;
    padding: 24px 34px;
    text-align: left;
    font-size: 16.5px;
    line-height: 1.55;
    overflow: hidden;
}

/* Jede Zeile ist ein eigenes <div>; nur dort Leerzeichen erhalten, damit die
   Zeilenumbrüche des Markdown-Quelltexts keine Leerzeilen erzeugen. */
.reveal .codeblock > div {
    white-space: pre;
    display: block;
}

.reveal .codeblock,
.reveal .codeblock * {
    font-family: var(--r-code-font);
}

.reveal .codeblock .k {
    color: var(--highlight);
}

.reveal .codeblock .gap {
    margin-top: 1.1em;
}

.reveal .codeblock .dim {
    color: #9A93C4;
}

.reveal .codeblock .hi {
    color: var(--highlight);
}

.reveal .codenote {
    text-align: left;
    font-size: 18px;
    line-height: 1.45;
    color: #5B4E93;
    margin: 20px 0 0;
    max-width: 34em;
}

/* Code-Block nur so breit wie der Inhalt (kurze Snippets) */
.reveal .codeblock.fit {
    display: inline-block;
    width: auto;
    max-width: 100%;
    padding-right: 44px;
}

/* ---------------------------------------------------------------------- */
/* Übungsfolie (.steps): zwei nummerierte Spalten (Aufbau, Ablauf)         */
/* ---------------------------------------------------------------------- */

.reveal .steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    text-align: left;
}

.reveal .steps h4 {
    color: var(--box-border);
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px;
    text-align: left;
}

.reveal .steps ol {
    display: block;
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
}

.reveal .steps li {
    counter-increment: step;
    position: relative;
    padding-left: 34px;
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 12px;
    color: var(--slide-text);
}

.reveal .steps li code {
    background: var(--wave);
    color: #4d27a8;
    font-size: 0.85em;
    padding: 0.1em 0.4em;
    border-radius: 5px;
}

.reveal .steps li::before {
    content: counter(step) ".";
    position: absolute;
    left: 0;
    color: var(--box-border);
    font-weight: 700;
}

/* Eine Regel über der Liste, die für jeden Schritt gilt */
.reveal .steps .step-rule {
    background: var(--wave);
    border-radius: 10px;
    padding: 10px 14px;
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.4;
    text-align: left;
}

.reveal .steps .step-rule.big {
    font-size: 22px;
    padding: 18px 22px;
}

.reveal .steps .step-note {
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

/* ---------------------------------------------------------------------- */
/* Spielfolie (Story 5): Ablauf-Grafik in voller Breite, darunter Rollen   */
/* als eine Zeile und die zwei Regeln als Lavendel-Kacheln                 */
/* ---------------------------------------------------------------------- */

.reveal .game-flow svg {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.reveal .page .game-roles {
    font-size: 20px;
    line-height: 1.4;
    margin: 14px 0 16px;
    text-align: left;
}

.reveal .game-rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.reveal .game-rules p {
    background: var(--wave);
    border-radius: 10px;
    padding: 14px 22px;
    margin: 0;
    font-size: 22px;
    line-height: 1.35;
    text-align: left;
}

.reveal .game-rules strong {
    color: var(--slide-text);
}

/* ---------------------------------------------------------------------- */
/* Little's Law (.littles): Formel-Chip, Erklärung, Vierspalten-Tabelle    */
/* mit Fragezeichen, die per Klick den Ergebnissen weichen                 */
/* ---------------------------------------------------------------------- */

.reveal .page .page-body.littles {
    margin: 0 0 auto;
}

.reveal .formula {
    display: inline-block;
    background: var(--wave);
    color: var(--slide-text);
    font-family: var(--r-code-font);
    font-size: 28px;
    padding: 14px 26px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.reveal .formula .v {
    color: var(--box-border);
}

.reveal .formula-text {
    text-align: left;
    font-size: 17px;
    line-height: 1.45;
    color: #5B4E93;
    margin: 0 0 22px;
    max-width: 52em;
}

.reveal .ltable {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 40px;
    text-align: left;
}

.reveal .ltable > div {
    padding: 12px 0;
    border-bottom: 1px solid #E4E0F5;
    font-size: 20px;
    color: var(--slide-text);
}

.reveal .ltable .ltable-head {
    color: var(--box-border);
    font-size: 15px;
    font-weight: 700;
    padding: 0 0 8px;
}

.reveal .ltable code {
    background: none;
    padding: 0;
    color: var(--slide-text);
    font-size: 19px;
}

.reveal .ltable code.q {
    color: #B9B1DC;
}

/* Auswertungstabelle (18b): breite Text-Spalten, kompaktere Zeilen */
.reveal .ltable.result {
    grid-template-columns: 1.5fr 0.7fr 0.7fr 2fr;
    column-gap: 28px;
}

.reveal .ltable.result > div {
    padding: 7px 0;
    font-size: 18px;
}

/* Überlagerung zweier Zustände: das Fragment blendet den einen aus, den anderen ein */
.reveal .swap {
    display: grid;
}

.reveal .swap > * {
    grid-area: 1 / 1;
}

.reveal .swap-foot {
    margin-top: 28px;
}

.reveal .swap-foot .ask {
    text-align: left;
    font-size: 22px;
    line-height: 1.4;
    color: var(--box-border);
    margin: 0;
    max-width: 34em;
}

.reveal .swap-foot .ask strong {
    color: var(--box-border);
    font-weight: 700;
}

.reveal .swap-foot .callout {
    justify-self: start;
    align-self: start;
}

/* Fragment mit Erklärung plus Merksatz: beides linksbündig untereinander */
.reveal .swap-foot > .fragment .ask {
    color: var(--slide-text);
    font-size: 19px;
    margin-bottom: 18px;
}

.reveal .swap-foot > .fragment .callout {
    display: inline-block;
}

/* Recap mit fünf Fragen: noch etwas enger */
.reveal .numlist.recap.compact.dense .numlist-row {
    padding: 10px 0;
}

/* Bonus-Folie: Platzhalter-Karten mit Fragezeichen, dann die echten */
.reveal .cards.ghost .card {
    background: none;
    border: 2px dashed #D9D1F4;
    color: #D9D1F4;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 40px;
    align-items: center;
    justify-content: center;
    min-height: 130px;
}

.reveal .page .page-body.bonus {
    margin: 0 0 auto;
}

.reveal .bonus-text {
    text-align: left;
    font-size: 18px;
    line-height: 1.45;
    color: #5B4E93;
    margin: 22px 0 0;
    max-width: 48em;
}

.reveal .bonus .foot {
    margin-top: 18px;
    justify-content: flex-start;
}

/* ---------------------------------------------------------------------- */
/* Sechs Regeln (.rules): Beispielzeile in voller Breite, darunter drei    */
/* Gruppen (Methode, Pfad, Antwort) als Fragmente mit nummerierten Regeln   */
/* ---------------------------------------------------------------------- */

.reveal .page .page-body.rules-body {
    margin: 0 0 auto;
}

.reveal .quiz-code.wide {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 21px;
    padding: 16px 30px;
}

.reveal .rules {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 40px;
    margin-top: 26px;
    text-align: left;
}

.reveal .rules-group h4 {
    color: var(--box-border);
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px;
    text-align: left;
}

/* Die Beispielzeile markiert den Teil, dessen Gruppe gerade aufgedeckt wurde
   (Reveal setzt .current-fragment auf das zuletzt gezeigte Fragment). Der
   Hypermedia-Hinweis erscheint mit der dritten Gruppe. */
.reveal .quiz-code .ex {
    color: #EDE9FB;
    transition: color 0.3s;
}

.reveal .rules-body:has(.rules-group:nth-child(1).current-fragment) .ex-m,
.reveal .rules-body:has(.rules-group:nth-child(2).current-fragment) .ex-p,
.reveal .rules-body:has(.rules-group:nth-child(3).current-fragment) .ex-a {
    color: var(--highlight);
}

.reveal .page-head .hint.hint-late {
    opacity: 0;
    transition: opacity 0.3s;
}

.reveal .page:has(.rules-group:nth-child(3).visible) .hint.hint-late {
    opacity: 1;
}

.reveal .rule + .rule {
    margin-top: 12px;
}

.reveal .rule h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--slide-text);
    margin: 0 0 4px;
    text-align: left;
}

.reveal .rule .num {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: var(--box-bg);
    color: var(--highlight);
    font-family: var(--r-code-font);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.reveal .rule p {
    font-size: 15px;
    line-height: 1.35;
    color: #5B4E93;
    margin: 0 0 6px;
}

.reveal .rule code {
    display: inline-block;
    background: var(--wave);
    color: #4d27a8;
    font-size: 12.5px;
    padding: 3px 9px;
    border-radius: 5px;
}

/* ---------------------------------------------------------------------- */
/* Karten (.cards/.card): Lavendel-Flächen im Raster, Titel mit optionaler  */
/* Nummer, Beschreibung, Beispielzeile. .dim blendet aus, .pick hebt hervor. */
/* Erster Einsatz: 06 (drei Schmerzen), 06a/06b (zwölf Faktoren)             */
/* ---------------------------------------------------------------------- */

.reveal .cards {
    display: grid;
    gap: 16px;
}

.reveal .cards-4 { grid-template-columns: repeat(4, 1fr); }
.reveal .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Standard-Look wie Musterdeck S. 5 (Circuit Breaker): Lavendel-Fläche,
   violetter Titel, Navy-Text, Code als Inline-Chip. */
.reveal .card {
    background: var(--wave);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 14px 18px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    color: var(--slide-text);
}

.reveal .card h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-align: left;
    color: var(--box-border);
}

/* Römische Nummer: schlank, violett, tritt hinter den Titel zurück */
.reveal .card .num {
    font-family: var(--r-code-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--box-border);
    opacity: 0.75;
    flex: none;
}

.reveal .card p {
    font-size: 15px;
    line-height: 1.3;
    margin: 0;
    flex: 1;
    align-self: stretch;
}

.reveal .card code {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    background: #E1DAF7;
    color: var(--box-bg);
    font-size: 12.5px;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reveal .cards-3 .card {
    padding: 28px 24px;
    justify-content: flex-start;   /* Titel aller Karten auf einer Höhe */
    gap: 10px;
}

/* Intro-Karten (06): Titel navy wie auf S. 1 von folien-6-7.pdf */
.reveal .cards-3 .card h3 { font-size: 24px; color: var(--slide-text); }

/* Karten mit Display-Titel (08 „Netzwerkprobleme"): Titel in der Titelschrift,
   Text darunter gedämpft. */
.reveal .cards-display .card {
    padding: 26px 24px 28px;
    gap: 6px;
}

.reveal .cards-display .card h3 {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 34px;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.reveal .cards-display .card p {
    color: #5B4E93;
}

/* Titel mit Lime-Markierung als Pinselstrich (gleiche Form wie .callout).
   inline-block mit line-height 1, damit die Form nur die Buchstaben umschließt
   und nicht in die Kicker-Zeile ragt. */
.reveal .page h2 .hl {
    display: inline-block;
    line-height: 1;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150' preserveAspectRatio='none'><path fill='%23D3F871' d='M6 26 C 60 4, 140 12, 240 9 S 620 2, 960 11 S 1150 4, 1194 24 C 1204 58, 1198 102, 1188 132 S 1000 146, 780 139 S 320 152, 24 140 C 6 118, 0 62, 6 26 Z'/></svg>") center / 100% 100% no-repeat;
    padding: 0.04em 0.16em 0.06em;
    margin: 0 -0.04em;
    border-radius: 0;
    transform: rotate(-0.6deg);
}

/* ---------------------------------------------------------------------- */
/* Nummerierte Liste (.numlist): helle Ziffer links, Frage + Erläuterung   */
/* rechts, Trennlinie zwischen den Zeilen. Erster Einsatz: 08b Zwei Fragen */
/* ---------------------------------------------------------------------- */

.reveal .numlist {
    display: flex;
    flex-direction: column;
}

.reveal .numlist-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: start;
    padding: 26px 0;
}

.reveal .numlist-row + .numlist-row {
    border-top: 1px solid #E4E0F5;
}

.reveal .numlist-num {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 40px;
    line-height: 1;
    color: #D9D1F4;
    margin-top: 2px;
}

.reveal .numlist h3 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 8px;
    text-align: left;
    color: var(--slide-text);
}

/* Markiertes Wort in der Frage als Pinselstrich, wie die Lime-Kästen */
.reveal .numlist h3 .hl {
    display: inline-block;
    line-height: 1.1;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150' preserveAspectRatio='none'><path fill='%23D3F871' d='M6 26 C 60 4, 140 12, 240 9 S 620 2, 960 11 S 1150 4, 1194 24 C 1204 58, 1198 102, 1188 132 S 1000 146, 780 139 S 320 152, 24 140 C 6 118, 0 62, 6 26 Z'/></svg>") center / 100% 100% no-repeat;
    padding: 0.02em 0.28em 0.06em;
    border-radius: 0;
    transform: rotate(-0.8deg);
}

.reveal .numlist p {
    font-size: 19px;
    line-height: 1.45;
    margin: 0;
    color: #5B4E93;
    max-width: 30em;
}

/* Recap-Variante (Story-Recaps): violettes Label über der Frage, Frage in
   Regular mit Code-Chip und Pinsel-Markierung, rechts ein Lime-Merksatz als
   Mono-Pille, der per Klick erscheint. */
.reveal .numlist.recap .numlist-row {
    grid-template-columns: 110px 1fr auto;
    align-items: center;
    column-gap: 32px;
    padding: 22px 0;
}

.reveal .numlist.recap p.numlist-label {
    color: var(--box-border);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 10px;
    max-width: none;
}

.reveal .numlist.recap h3 {
    font-weight: 400;
    font-size: 27px;
    line-height: 1.35;
    margin: 0;
    max-width: 24em;
}

.reveal .numlist.recap h3 code {
    background: var(--wave);
    color: var(--box-bg);
    font-size: 0.8em;
    padding: 0.1em 0.4em;
    border-radius: 6px;
}

.reveal .numlist.recap h3 .hl {
    display: inline-block;
    line-height: 1.1;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150' preserveAspectRatio='none'><path fill='%23D3F871' d='M6 26 C 60 4, 140 12, 240 9 S 620 2, 960 11 S 1150 4, 1194 24 C 1204 58, 1198 102, 1188 132 S 1000 146, 780 139 S 320 152, 24 140 C 6 118, 0 62, 6 26 Z'/></svg>") center / 100% 100% no-repeat;
    padding: 0.02em 0.3em 0.05em;
    border-radius: 0;
    transform: rotate(-0.8deg);
}

/* Kompakte Recap-Variante für vier Fragen auf einer Folie */
.reveal .numlist.recap.compact .numlist-row {
    padding: 14px 0;
}

.reveal .numlist.recap.compact p.numlist-label {
    font-size: 15px;
    margin-bottom: 6px;
}

.reveal .numlist.recap.compact h3 {
    font-size: 22px;
    line-height: 1.3;
    max-width: none;
}

.reveal .numlist.recap.compact code.numlist-pill {
    font-size: 14px;
    padding: 8px 14px;
}

.reveal .numlist.recap code.numlist-pill {
    background: var(--highlight);
    color: var(--slide-text);
    font-family: var(--r-code-font);
    font-size: 16px;
    padding: 10px 18px;
    border-radius: 999px;
    white-space: nowrap;
    align-self: center;
}
.reveal .cards-3 .card p  { font-size: 18px; line-height: 1.4; flex: none; }

/* Karten als "custom fragment": von Anfang an sichtbar, per Klick wechselt der
   Zustand. .dim blendet ab, .pick hebt hervor (06a, zwölf Faktoren). */
.reveal .slides section .card.fragment.custom {
    opacity: 1;
    visibility: inherit;
    transition: opacity 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.reveal .slides section .card.fragment.dim.visible {
    opacity: 0.45;
}

.reveal .slides section .card.fragment.pick.visible {
    background: #fff;
    border-color: var(--highlight);
    box-shadow: 0 6px 18px rgba(10, 3, 73, 0.08);
}

.reveal .slides section .card.fragment.pick.visible code {
    background: #F4F2FD;
    color: #4d27a8;
}

/* ---------------------------------------------------------------------- */
/* Vergleichstabelle (.compare): Zeilenlabel + „Damals" gedämpft + „Heute"  */
/* mit Lime-Akzenten. Erster Einsatz: 04 „Brauchen wir Microservices?"     */
/* ---------------------------------------------------------------------- */

.reveal .compare {
    display: grid;
    grid-template-columns: 150px 1fr 1fr;
    column-gap: 40px;
    align-items: baseline;
}

.reveal .compare > div {
    padding: 14px 0;
    border-bottom: 1px solid #E4E0F5;
    min-width: 0;
}

.reveal .compare-head {
    color: var(--box-border);
    font-size: 16px;
    font-weight: 700;
    padding-top: 0 !important;
}

/* Label-Spalte ohne Trennlinien, die Linien gehören nur zu den Inhaltsspalten. */
.reveal .compare > div.compare-label,
.reveal .compare > div.compare-head:first-child {
    color: #8880AE;
    font-size: 17px;
    border-bottom: none;
}

.reveal .compare-old {
    color: #6F6A8A;
    font-size: 22px;
}

.reveal .compare-new {
    color: var(--slide-text);
    font-size: 22px;
    font-weight: 500;
}

.reveal .compare-new .hl {
    font-weight: 700;
    padding: 0.05em 0.3em;
    border-radius: 6px;
}

/* Spezifischer als `.reveal .compare > div`, sonst bleibt die Linie stehen. */
.reveal .compare > div.compare-note {
    color: #5B4E93;
    font-size: 16px;
    border-bottom: none;
}

/* Fußzeile unter dem Inhalt: Fazit links, Merksatz (.callout) rechts */
.reveal .foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    margin-top: 40px;
}

.reveal .foot p {
    font-size: 20px;
    line-height: 1.4;
    margin: 0;
    color: var(--slide-text);
}

/* Zitat in der Fußzeile (04): großes Anführungszeichen, kursiv, Quelle darunter */
.reveal .foot .foot-quote {
    position: relative;
    margin: 0;
    padding-left: 52px;
    max-width: 640px;
}

.reveal .foot .foot-quote::before {
    content: "\201C";
    position: absolute;
    left: 0;
    top: -18px;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 84px;
    line-height: 1;
    color: var(--box-border);
}

.reveal .foot .foot-quote blockquote {
    width: auto;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    font-style: italic;
    font-size: 21px;
    line-height: 1.4;
    color: var(--slide-text);
}

.reveal .foot .foot-quote figcaption {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.4;
    color: #5B4E93;
}

.reveal .foot .foot-quote figcaption::before {
    content: "\2014\00a0";
}

/* Dasselbe Zitat auf dunklen Split-Folien (14): unten links, helle Schrift */
.reveal .split-text .foot-quote {
    position: relative;
    margin: 0;
    padding: 40px 0 0 52px;
    max-width: 640px;
}

.reveal .split-text .foot-quote::before {
    content: "\201C";
    position: absolute;
    left: 0;
    top: 22px;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 84px;
    line-height: 1;
    color: var(--highlight);
}

.reveal .split-text .foot-quote blockquote {
    width: auto;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    font-style: italic;
    font-size: 21px;
    line-height: 1.4;
    color: #E4E0F5;
}

.reveal .split-text .foot-quote figcaption {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.4;
    color: #9A93C4;
}

.reveal .split-text .foot-quote figcaption::before {
    content: "\2014\00a0";
}

/* Themen-Wolke (08b): vertieft Frage 01, erscheint per Klick daneben.     */
/* Eisberg: über Wasser „Microservices“, darunter drei Schichten          */
/* (Schnitt, Kommunikation, Betrieb) mit Tiefenmesser und roter Boje.     */
.reveal .page-body:has(> .topic-cloud) {
    position: relative;
}

.reveal .topic-cloud {
    position: absolute;
    right: 0;
    top: 0;
    width: 420px;
}

.reveal .topic-svg {
    display: block;
    width: 100%;
    height: auto;
}


/* ---------------------------------------------------------------------- */
/* Timeline „Der Weg zu Microservices" (05): Straße mit Jahres-Punkten,     */
/* Architekturen oben (Violett), Technologien unten (Navy). Inline-SVG,    */
/* x-Achse maßstäblich 1990–2022.                                          */
/* ---------------------------------------------------------------------- */

.reveal .timeline {
    width: 100%;
}

.reveal .timeline svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.reveal .timeline .tl-road {
    fill: none;
    stroke: var(--box-bg);
    stroke-width: 84;        /* breit genug für die Haltepunkte; die Gebäude stehen daneben */
    stroke-linecap: butt;    /* flache Enden, die Straße läuft aus der Folie */
}

.reveal .timeline .tl-dash {
    fill: none;
    stroke: var(--highlight);
    stroke-width: 9;
    stroke-dasharray: 34 26;
    stroke-linecap: butt;
}

.reveal .timeline .tl-tick {
    stroke: #D9D1F4;
    stroke-width: 2;
}

/* Fahne mit Jahreszahl am Mast */
.reveal .timeline .tl-flag {
    fill: var(--box-bg);
}

/* Steinbruch (05a): Beschriftung auf den Felsbrocken */
.reveal .timeline .tl-stones text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    fill: #fff;
    stroke: none;
}

.reveal .timeline .tl-year {
    font-family: var(--r-code-font);
    font-size: 15px;
    fill: #fff;
    text-anchor: middle;
    dominant-baseline: central;
}

/* text-anchor bewusst nicht per CSS: die Regel würde die text-anchor-Attribute
   im SVG überschreiben, die für Randbeschriftungen start/end brauchen. */
.reveal .timeline .tl-arch {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    fill: var(--box-border);
}

.reveal .timeline .tl-tech {
    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 400;
    fill: var(--slide-text);
}

/* Merksatz / Punchline auf Lime, Navy-Text, als Pinselstrich (SVG-Form, dehnt
   sich mit dem Text; Farbe im SVG = --highlight #D3F871). Gleiche Form wie der
   Feedback-Zettel, damit alle Lime-Kästen im Deck eine Handschrift haben. */
.reveal .callout {
    flex: none;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150' preserveAspectRatio='none'><path fill='%23D3F871' d='M6 26 C 60 4, 140 12, 240 9 S 620 2, 960 11 S 1150 4, 1194 24 C 1204 58, 1198 102, 1188 132 S 1000 146, 780 139 S 320 152, 24 140 C 6 118, 0 62, 6 26 Z'/></svg>") center / 100% 100% no-repeat;
    color: var(--slide-text);
    border-radius: 0;
    transform: rotate(-0.4deg);
    padding: 18px 32px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

/* Code */
.reveal pre {
    box-shadow: 0 2px 8px rgba(10, 3, 73, 0.15);
    border-radius: 8px;
    font-size: 0.65em;
    width: 100%;
    margin: var(--r-block-margin) auto;
}

.reveal pre code {
    border-radius: 8px;
    padding: 1rem 1.2rem;
    max-height: 540px;
    background: var(--box-bg);
    color: #e0e6f0;
}

/* Pseudo-Code-Spickzettel: dunkle Box ohne Syntax-Highlighting, eigene Klasse
   damit Inline-<span> nicht vom Highlight-Plugin geschluckt werden. */
.reveal pre.cheatsheet {
    background: var(--box-bg);
    color: #e0e6f0;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    text-align: left;
    font-family: var(--r-code-font);
    font-size: 0.65em;
    line-height: 1.35;
    width: fit-content;
    max-width: 80%;
    margin: var(--r-block-margin) auto;
    white-space: pre;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(10, 3, 73, 0.15);
}

/* In zwei-spaltigem Layout f&uuml;llt die Box die Spalte aus */
.reveal .cols pre.cheatsheet {
    width: 100%;
    max-width: none;
}

.reveal pre.cheatsheet .cmd {
    color: var(--highlight);
    font-weight: 700;
}

.reveal code,
.reveal pre,
.reveal pre code,
.reveal pre code * {
    font-family: var(--r-code-font);
}

.reveal code {
    background: rgba(115, 72, 225, 0.1);
    color: #4d27a8;
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

/* Inline-Code auf dunklem Grund (Box, Kapitel-Trenner): helle Schrift statt des
   dunklen Lila, das auf dunklem Hintergrund unlesbar ist. */
.reveal .box code,
.reveal .page.dark code {
    background: rgba(255, 255, 255, 0.14);
    color: #e0e6f0;
}

/* Blockquote */
.reveal blockquote {
    background: #fff;
    border-left: 4px solid var(--box-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 1rem 1.2rem;
    border-radius: 6px;
    width: 80%;
    color: #333;
    font-style: normal;
}

/* Tables */
.reveal table {
    background: rgba(255, 255, 255, 0.65);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    margin: var(--r-block-margin) auto;
}

.reveal table th {
    background: var(--box-bg);
    color: #fff;
    text-align: left;
    padding: 0.5em 0.75em;
}

.reveal table td {
    padding: 0.4em 0.75em;
    border-bottom: 1px solid #eee;
}

/* Progress-Balken: dünn, ganz unten am Viewport-Rand */
.reveal .progress {
    bottom: 0;
    height: 3px;
    color: var(--highlight);   /* Füllung – Reveal nutzt color statt background */
    background: rgba(10, 3, 73, 0.15);
    z-index: 25;               /* über Welle (20), unter Controls (40) */
}

.reveal .controls {
    color: var(--box-border);
}

.reveal .slide-number {
    position: fixed;
    right: 1rem;
    bottom: 0.7rem;
    background: rgba(10, 3, 73, 0.7);
    color: #fff;
    font-family: var(--r-code-font);
    border-radius: 4px;
    padding: 0.15em 0.5em;
    z-index: 21;
}

/* ---------------------------------------------------------------------- */
/* Welle am unteren Slide-Rand mit Logo                                   */
/*                                                                        */
/* Voll-breite Welle. Der Peak (höchster Punkt) wandert mit dem Slide-    */
/* Fortschritt von links nach rechts. Der SVG-Path wird in index.html     */
/* dynamisch berechnet und beim slidechanged-Event aktualisiert.          */
/* ---------------------------------------------------------------------- */

.slide-wave {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 110px;
    pointer-events: none;
    z-index: 20;
    overflow: hidden;
}

.slide-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

.slide-wave .wave-path {
    transition: d 0.5s ease;
}

.slide-wave .wave-logo {
    position: absolute;
    left: 1rem;
    bottom: 0.7rem;
    height: 16px;
    width: auto;
    z-index: 21;
}

/* Reveal-Controls (Pfeile) über die Welle heben */
.reveal .controls {
    z-index: 40;
}

/* ---------------------------------------------------------------------- */
/* Intro-Slide: dunkler Einstieg mit Titel, Claim, Sprecher und Trace     */
/*                                                                        */
/* Hintergrund per data-background-color="#0A0349". Unten stehen Sprecher */
/* und eine helle Trace-Karte nebeneinander, gleich hoch: Der Trace nimmt */
/* die Pointe des Workshops vorweg (car lehnt ab, flight wird kompensiert). */
/* ---------------------------------------------------------------------- */

.reveal .intro {
    width: 92%;
    height: 540px;           /* so hoch, dass der untere Block über der Welle endet */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    text-align: left;
    color: #ffffff;
}

.reveal .intro .intro-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    color: var(--highlight);
    font-size: 20px;
    font-weight: 600;
}

.reveal .intro .intro-kicker::before {
    content: "";
    width: 28px;
    height: 4px;
    background: var(--highlight);
}

.reveal .intro h1.intro-title {
    color: #ffffff;
    text-align: left;
    font-size: 104px;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 0;
}

.reveal .intro .intro-claim {
    color: #D9D1F4;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.25;
    margin: 14px 0 0;
}

/* Derselbe Marker-Strich wie in Untertiteln und Fragen (.page .subtitle .hl) */
.reveal .intro .intro-claim .intro-hl {
    display: inline-block;
    line-height: 1.1;
    color: var(--box-bg);
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150' preserveAspectRatio='none'><path fill='%23D3F871' d='M6 26 C 60 4, 140 12, 240 9 S 620 2, 960 11 S 1150 4, 1194 24 C 1204 58, 1198 102, 1188 132 S 1000 146, 780 139 S 320 152, 24 140 C 6 118, 0 62, 6 26 Z'/></svg>") center / 100% 100% no-repeat;
    padding: 0.02em 0.3em 0.05em;
    transform: rotate(-0.7deg);
}

.reveal .intro .intro-bottom {
    margin-top: auto;
    height: 228px;
    display: flex;
    gap: 56px;
    align-items: stretch;
}

.reveal .intro .speaker {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-left: 20px;
    border-left: 4px solid var(--highlight);
}

.reveal .intro .speaker-name {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 30px;
    line-height: 1.2;
}

.reveal .intro .speaker-role {
    color: #B9A6F2;
    font-size: 20px;
}

.reveal .intro ul.speaker-links {
    list-style: none;
    display: block;          /* eine Zeile pro Link */
    margin: 0;
    padding: 0;
    text-align: left;
}

.reveal .intro ul.speaker-links li {
    margin: 0;
    font-size: 17px;
    line-height: 1.45;
}

.reveal .intro ul.speaker-links a {
    color: #ffffff;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
}

.reveal .intro ul.speaker-links a:hover {
    color: var(--highlight);
    border-bottom-color: var(--highlight);
}

/* Trace-Karte: hell auf dem dunklen Grund, Balken wie ein Tracing-Wasserfall */
.reveal .intro .intro-trace {
    width: 560px;
    flex: none;
    box-sizing: border-box;
    padding: 18px 22px;
    background: #F6F2FE;
    color: var(--box-bg);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reveal .intro .intro-trace,
.reveal .intro .intro-trace * {
    font-family: var(--r-code-font);
    font-size: 14px;
}

.reveal .intro .trace-meta {
    color: #5B4E93;
}

.reveal .intro .trace-rows {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 7px 14px;
    align-items: center;
}

.reveal .intro .trace-bar {
    height: 20px;
    border-radius: 3px;
}

.reveal .intro .trace-bar.booking { background: var(--box-bg); width: 100%; }
.reveal .intro .trace-bar.flight  { background: var(--box-border); width: 26%; margin-left: 4%; }
.reveal .intro .trace-bar.hotel   { background: var(--highlight); box-shadow: inset 0 0 0 2px #9ec23a; width: 22%; margin-left: 32%; }
.reveal .intro .trace-bar.compensate {
    width: 12%;
    margin-left: 72%;
    border: 2px dashed var(--box-border);
    box-sizing: border-box;
}

/* Rückwärts kompensiert: erst hotel, danach flight */
.reveal .intro .trace-bar.compensate.later { margin-left: 86%; }

.reveal .intro .trace-fail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 56%;
}

.reveal .intro .trace-fail .trace-bar {
    width: 84px;
    flex: none;
    background: repeating-linear-gradient(45deg, #FF7A59 0 8px, #ffb8a6 8px 16px);
}

.reveal .intro .trace-fail span {
    color: #c2410c;
}

/* Kompakter Visual-Anker auf Pattern-Hauptfolien (zwischen Subtitle und factor-row). */
.reveal img.pattern-image {
    display: block;
    margin: 0.3rem auto 0.6rem;
    max-width: 38%;
    max-height: 22vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(10, 3, 73, 0.18);
}

.reveal .factor {
    background: #fff;
    border: 1px solid var(--box-border);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 6px rgba(10, 3, 73, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.reveal .factor h3 {
    color: var(--box-border);
    margin: 0;
    font-size: 0.8em;
    font-weight: 700;
    font-family: var(--font-title);
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.reveal .factor h3 .numeral {
    display: inline-block;
    background: var(--box-bg);
    color: var(--highlight);
    font-weight: 800;
    font-size: 0.85em;
    line-height: 1;
    padding: 0.3em 0.55em;
    border-radius: 999em;
    min-width: 1.6em;
    text-align: center;
    box-shadow: 0 1px 3px rgba(10, 3, 73, 0.25);
}

.reveal .factor p {
    margin: 0;
    color: var(--slide-text);
    font-size: 0.62em;
    line-height: 1.3;
}

.reveal .factor code {
    background: rgba(115, 72, 225, 0.1);
    color: #4d27a8;
    font-size: 0.56em;
    padding: 0.45em 0.7em;
    border-radius: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sanfter Einblende-&Uuml;bergang f&uuml;r Factor-Cards (keine Dim-Logik mehr). */
.reveal .factor.fragment.visible {
    transition: opacity 0.3s ease;
}

/* `.show-all` ist ein Legacy-Marker (fr&uuml;her f&uuml;r das Wiederaufhellen der gedimmten Karten).
   Bleibt visuell unsichtbar, damit alte Slides nicht brechen. */
.reveal .show-all {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

/* Karten-Reihe (z. B. Service Discovery): 3 Karten oben, 2 zentriert darunter. */
.reveal .factor-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.8rem;
    width: 95%;
    margin: 0.5rem auto 0;
    text-align: left;
}

.reveal .factor-row > .factor {
    grid-column: span 2;
}

.reveal .factor-row > .factor:nth-child(4) {
    grid-column: 2 / span 2;
}

.reveal .factor-row > .factor:nth-child(5) {
    grid-column: 4 / span 2;
}

/* "Am Markt"-Block: immer sichtbar, damit die Framework-Übersicht auch im
   statisch veröffentlichten Web-Foliensatz erscheint. Früher wurde sie erst
   nach dem letzten Fragment (.show-all) eingeblendet und im Web kaum gefunden. */
.reveal .market-row {
    opacity: 1;
    margin-top: 1.2rem;
}

/* ---------------------------------------------------------------------- */
/* Chip-Reihen („Am Markt" auf Pattern-Folien) + Zeit-Badge (Story-Folien) */
/* ---------------------------------------------------------------------- */

.reveal .chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 0.6rem auto;
}

.reveal .chip {
    background: #eef2f7;
    color: var(--box-bg);
    padding: 0.35em 0.9em;
    border-radius: 999px;
    font-size: 0.62em;
    font-weight: 600;
    border: 1px solid rgba(115, 72, 225, 0.18);
    line-height: 1.4;
}

.reveal .chip.brand {
    background: var(--box-bg);
    color: #fff;
    border-color: var(--box-border);
}

.reveal .time-badge {
    display: inline-block;
    background: var(--highlight);
    color: var(--slide-text);
    padding: 0.2em 0.8em;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.65em;
    margin-left: 0.4em;
    box-shadow: 0 1px 3px rgba(10, 3, 73, 0.18);
}

/* ---------------------------------------------------------------------- */
/* Story-Card (Wiedererkennungseffekt zum Dashboard-Story-Panel)           */
/* ---------------------------------------------------------------------- */

.reveal .story-card {
    background: #f5f6f8;
    border: 1px solid #e1e5ec;
    border-radius: 8px;
    padding: 1.1rem 1.4rem;
    text-align: left;
    font-size: 0.9em;
    line-height: 1.45;
    color: #333;
}

.reveal .story-card h4 {
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-weight: 700;
    margin: 0.85rem 0 0.3rem;
    line-height: 1.2;
}

.reveal .story-card h4:first-child { margin-top: 0; }

.reveal .story-card p,
.reveal .story-card ul { margin: 0 0 0.5rem; }
/* Listen nicht ein zweites Mal durch `.cols ul` verkleinern: relativ zur Card halten. */
.reveal .story-card ul { padding-left: 1.25rem; font-size: 0.95em; }
.reveal .story-card li + li { margin-top: 0.15rem; }

.reveal .story-card em {
    color: var(--box-border);
    font-style: normal;
    font-weight: 600;
}

.reveal .story-card code {
    background: rgba(115, 72, 225, 0.12);
    color: #4d27a8;
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-size: 0.95em;
}

/* ---------------------------------------------------------------------- */
/* Recap-Grid (2 x 2, gleiche Card-Optik wie .factor-grid)                 */
/* ---------------------------------------------------------------------- */

.reveal .recap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    width: 80%;
    margin: 0.5rem auto 0;
    text-align: left;
}

/* Recap hat nur 2 Karten pro Folie, also reichlich Platz: Frage-Text deutlich
   größer als in den dichten Pattern-/12-Faktoren-Karten. */
.reveal .recap-grid .factor h3 {
    font-size: 0.95em;
}

.reveal .recap-grid .factor p {
    font-size: 0.82em;
}

.reveal .recap-grid .factor code {
    font-size: 0.68em;
}


/* ---------------------------------------------------------------------- */
/* Kapitel-Trenner (.page.dark.chapter): Kicker in Lime, Display-Titel in  */
/* Weiß, Unterzeile; Block mittig in der Restfläche (Musterdeck S. 3)      */
/* ---------------------------------------------------------------------- */

.reveal .page.chapter .page-body {
    margin: auto 0;
    text-align: left;
}

.reveal .page.chapter h1.chapter-title {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 132px;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #fff;
    text-align: left;
    margin: 0;
}

.reveal .page.chapter .chapter-sub {
    font-size: 32px;
    line-height: 1.3;
    color: #E4E0F5;
    text-align: left;
    margin: 36px 0 0;
    max-width: 24em;
}

/* Pointe unter der Unterzeile (08a): Lime-Strich, kursiv, gedämpft */
.reveal .page.chapter .chapter-quote {
    font-size: 26px;
    font-style: italic;
    line-height: 1.35;
    color: #B9A6F2;
    text-align: left;
    margin: 56px 0 0;
    padding-left: 22px;
    border-left: 4px solid var(--highlight);
    max-width: 30em;
}

/* ---------------------------------------------------------------------- */
/* Feedback-Folie (02): Gerüst über .page (Kicker, Titel, Inhalt mittig),  */
/* Leitfrage als Lime-Zettel, weitere Fragen als Pillen, QR-Code als       */
/* dunkle Karte rechts                                                    */
/* ---------------------------------------------------------------------- */

.reveal .fb-body {
    display: flex;
    align-items: flex-start;
    gap: 44px;
}

.reveal .fb-questions {
    flex: 1;
    min-width: 0;
}

/* Der Lime-Zettel: leicht gedreht, als Pinselstrich mit unregelmäßigen Kanten
   (SVG-Form, dehnt sich mit dem Text). Bewusst nur hier; die .callout-Kästen
   bleiben geometrisch. Farbe im SVG = --highlight #D3F871. */
.reveal .fb-sticky {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150' preserveAspectRatio='none'><path fill='%23D3F871' d='M6 26 C 60 4, 140 12, 240 9 S 620 2, 960 11 S 1150 4, 1194 24 C 1204 58, 1198 102, 1188 132 S 1000 146, 780 139 S 320 152, 24 140 C 6 118, 0 62, 6 26 Z'/></svg>") center / 100% 100% no-repeat;
    color: #1B2A03;
    border-radius: 0;
    padding: 24px 30px 26px;
    transform: rotate(-0.7deg);
    font-size: 38px;
    font-weight: 500;
    line-height: 1.2;
}

/* „rote Faden" als roter, verbundener Schriftzug: das Wortspiel sichtbar machen.
   Einziger Einsatz der Schreibschrift im Deck. */
.reveal .fb-sticky .thread {
    font-family: "Sacramento", cursive;
    font-weight: 400;
    font-size: 1.55em;
    line-height: 0.8;
    color: #B3261E;
    padding: 0 0.08em;
}

.reveal .fb-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

/* Pillen als Lavendel-Pinselstriche, abwechselnd gespiegelt */
.reveal .fb-pills span {
    font-size: 22px;
    font-weight: 500;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150' preserveAspectRatio='none'><path fill='%23EEE7FB' d='M6 26 C 60 4, 140 12, 240 9 S 620 2, 960 11 S 1150 4, 1194 24 C 1204 58, 1198 102, 1188 132 S 1000 146, 780 139 S 320 152, 24 140 C 6 118, 0 62, 6 26 Z'/></svg>") center / 100% 100% no-repeat;
    border: none;
    border-radius: 0;
    padding: 12px 26px;
    white-space: nowrap;
    transform: rotate(-0.5deg);
}

.reveal .fb-pills span:nth-child(even) {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150' preserveAspectRatio='none'><path fill='%23EEE7FB' d='M 1194 26 C 1140 4 1060 12 960 9 S 580 2 240 11 S 50 4 6 24 C -4 58 2 102 12 132 S 200 146 420 139 S 880 152 1176 140 C 1194 118 1200 62 1194 26 Z'/></svg>") center / 100% 100% no-repeat;
    transform: rotate(0.6deg);
}

.reveal .fb-scan {
    flex: none;
    width: 264px;
    text-align: center;
}

/* QR-Karte bleibt geometrisch (dunkle, abgerundete Karte), damit der Code ruhig steht */
.reveal a.fb-qr {
    display: block;
    background: var(--box-bg);
    border-radius: 20px;
    padding: 22px;
    border-bottom: none;
}

.reveal .fb-qr img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: #fff;
}

.reveal .fb-url {
    font-size: 20px;
    line-height: 1.35;
    color: #5B4E93;
    margin: 16px 0 0;
}

/* Leise Zeile unter dem QR-Block: Hinweis auf das offene Repo und den Stern.
   Bewusst gedämpft und klein, damit die Feedback-Fragen das Thema bleiben. */
.reveal p.fb-star {
    font-size: 14px;
    line-height: 1.4;
    color: #8880AE;
    margin: 14px 0 0;
}

.reveal .fb-star-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    fill: var(--highlight);
    stroke: var(--box-border);
    stroke-width: 1.5;
    vertical-align: -2px;
    margin-right: 6px;
}

/* ---------------------------------------------------------------------- */
/* Reiseplattform (08d): Kunde, Booking, darunter Flight, Hotel, Car.      */
/* ---------------------------------------------------------------------- */

.reveal .platform {
    width: 100%;
    margin-top: 18px;
}

.reveal .platform svg {
    display: block;
    width: 86%;
    height: auto;
    margin: 0 auto;
}

.reveal .platform text {
    font-family: inherit;
    text-anchor: middle;
    dominant-baseline: middle;
}

.reveal .platform .pf-line {
    fill: none;
    stroke: var(--box-border);
    stroke-width: 3;
}

.reveal .platform .pf-pill {
    fill: #EEE7FB;
}

.reveal .platform .pf-pill-text {
    fill: #0A0349;
    font-size: 20px;
    font-weight: 600;
}

.reveal .platform .pf-call {
    fill: #5B4E93;
    font-size: 16px;
    text-anchor: start;
}

.reveal .platform .pf-main {
    fill: #0A0349;
}

.reveal .platform .pf-main-name {
    fill: #ffffff;
    font-size: 30px;
    font-weight: 800;
}

.reveal .platform .pf-main-sub {
    fill: #D3F871;
    font-size: 18px;
    font-weight: 600;
}

.reveal .platform .pf-box {
    fill: #ffffff;
    stroke: var(--box-border);
    stroke-width: 3;
}

.reveal .platform .pf-name {
    fill: #0A0349;
    font-size: 26px;
    font-weight: 800;
}

.reveal .platform .pf-sub {
    fill: #5B4E93;
    font-size: 18px;
}

/* Tabelle „Gespielt, jetzt konfiguriert“ (19c): Spiel, Stellschraube, Library. */
.reveal table.knobs {
    width: 100%;
    font-size: 19px;
    margin: 14px 0 12px;
}

.reveal table.knobs code {
    white-space: nowrap;
}

/* Zwischenzeile je Pattern (Breaker, Bulkhead) */
.reveal table.knobs tr.knob-group td {
    background: var(--wave);
    color: var(--box-border);
    font-size: 15px;
    font-weight: 700;
    padding: 0.25em 0.75em;
}
