/* Handout-Vorlage im Julia-Junge-Design (abgeleitet aus Claude Design „Handout A4“) */

/* Feste Schriftschnitte (keine variablen Fonts): nur so bettet Chrome sie sauber ins PDF ein */
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/baloo2-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/baloo2-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/opensans-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/opensans-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/opensans-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/opensans-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/opensans-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/opensans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --jj-black: #000000;
  --jj-white: #FFFFFF;
  --jj-green-dark: #006633;
  --jj-green-light: #94BF1F;
  --jj-orange: #E3780C;
  --jj-brown: #9C5207;
  --jj-offwhite: #EDEDDF;
  --jj-marker: #FDE580;
  --border-content: rgba(0, 0, 0, .15);
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Open Sans", Arial, sans-serif;
}

html, body { margin: 0; background: var(--jj-white); color: var(--jj-black); }
a { color: var(--jj-brown); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--jj-green-dark); }

.handout {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  box-sizing: border-box;
  text-wrap: pretty;
}

/* Kopfzeile */
.zurueck { font-size: .8em; margin-bottom: 14px; }
.zurueck a { color: var(--jj-green-dark); text-decoration: none; }
.zurueck a:hover { text-decoration: underline; color: var(--jj-orange); }
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; flex-wrap: wrap; }
.kopf .logo { height: 28px; width: auto; display: block; }
.aktionen { display: flex; gap: 8px; flex-wrap: wrap; }
.knopf {
  font-family: inherit; font-size: .85em; font-weight: 700; color: var(--jj-black);
  background: var(--jj-green-light); border: 0; border-radius: 999px; padding: 8px 18px;
  cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-block; line-height: 1.5;
}
.knopf:hover { background: var(--jj-orange); color: var(--jj-black); }
.knopf--leise { background: transparent; box-shadow: inset 0 0 0 2px var(--jj-green-light); }
.knopf--leise:hover { background: transparent; box-shadow: inset 0 0 0 2px var(--jj-orange); }

/* Titelbereich */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding-bottom: 40px; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.label {
  font-size: .75em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--jj-green-light); color: var(--jj-black); border-radius: 999px; padding: 4px 14px;
}
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: 3em; line-height: 1.05; color: var(--jj-green-dark); margin: 0; }
.strich { width: 72px; height: 3px; background: var(--jj-green-dark); }
.hero-bild { width: clamp(110px, 24vw, 200px); height: auto; display: block; }

/* Überschriften */
.inhalt h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.75em; line-height: 1.1; color: var(--jj-green-dark); margin: 0 0 16px; break-after: avoid; }
.inhalt h3 { font-size: 1em; font-weight: 700; margin: 0 0 4px; break-after: avoid; }
.inhalt > p, .inhalt > ul, .inhalt > ol { margin: 0 0 16px; }
.inhalt img { max-width: 100%; height: auto; }
mark { background: var(--jj-marker); color: var(--jj-black); padding: 0 3px; }

/* Karten */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 48px; }
.karte { background: var(--jj-offwhite); border-radius: 16px; padding: 18px 22px; break-inside: avoid; }
.karte--rahmen { background: transparent; border: 1px solid var(--border-content); }
.karte-label { font-size: .75em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.karte p { margin: 0 0 10px; }
.karte > :last-child, .karte blockquote > :last-child { margin-bottom: 0; }
.karte blockquote { margin: 0; padding: 0; font-size: .9em; }

/* Schritte */
.schritte ol { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 20px; counter-reset: schritt; }
.schritte li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 16px; align-items: start; counter-increment: schritt; break-inside: avoid; }
.schritte li::before {
  content: counter(schritt); grid-row: 1 / span 20;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4em; line-height: 1;
  width: 40px; height: 40px; border-radius: 999px; background: var(--jj-orange); color: var(--jj-black);
  display: flex; align-items: center; justify-content: center; padding-top: .08em; box-sizing: border-box;
}
.schritte li > * { grid-column: 2; }
.schritte li p { margin: 0 0 6px; }
.schritte li > :last-child { margin-bottom: 0; }

/* Tipp-Kasten */
.tipp { display: flex; gap: 14px; align-items: flex-start; border: 2px solid var(--jj-green-dark); border-radius: 16px; padding: 16px 20px; margin-bottom: 48px; break-inside: avoid; }
.tipp-icon { width: 24px; height: auto; flex: none; margin-top: 3px; }
.tipp p { margin: 0 0 8px; }
.tipp-text > :last-child { margin-bottom: 0; }

/* Anhang auf eigener Querformat-Seite */
.canvas { margin-bottom: 48px; }
.canvas img { width: 100%; height: auto; display: block; break-inside: avoid; }

/* Fuß */
.fuss { padding-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .8em; }
.fuss a { color: var(--jj-black); font-weight: 700; text-decoration: none; }
.fuss-impressum { margin-left: 16px; }
.fuss-rechts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fuss img { height: 20px; width: auto; display: block; }
/* Drachenlinie: Strich läuft in die Schwanzspitze des Logo-Drachen (Maße aus dem CD, H = Drachenhöhe) */
.drachenlinie { --h: 30px; position: relative; height: var(--h); flex: 0 0 100%; margin-bottom: 4px; }
.drachenlinie span { position: absolute; left: 0; right: calc(var(--h) * 5.781); top: calc(var(--h) * .859); height: calc(var(--h) * .1156); background: var(--jj-green-dark); }
.fuss .drachenlinie img { position: absolute; right: 0; top: 0; height: var(--h); width: auto; }
.fuss--druck { display: none; margin-top: 12px; }

@media (max-width: 560px) {
  .handout { font-size: 16px; padding-top: 24px; }
  .hero { grid-template-columns: 1fr; }
  .hero-bild { grid-row: 1; width: 120px; }
  .hero h1 { font-size: 2.3em; }
}

/* Newsletter-Anmeldung (Brevo), nur Webansicht – im Druck über .nur-web ausgeblendet */
.newsletter { background: var(--jj-offwhite); border-radius: 16px; padding: 28px 28px 24px; margin: 72px 0 32px; position: relative; }
/* dezente Trennlinie über dem Kasten, mittig im Abstand zum Inhalt */
.newsletter::before { content: ""; position: absolute; left: 0; right: 0; top: -36px; height: 1px; background: var(--border-content); }
.newsletter-kopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-bottom: 16px; }
.newsletter-kopf .label { display: inline-block; margin-bottom: 12px; }
.newsletter h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.75em; line-height: 1.1; color: var(--jj-green-dark); margin: 0 0 8px; }
.newsletter-kopf p { margin: 0; }
.newsletter-kopf img { width: 140px; height: auto; display: block; }
.newsletter-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 14px; }
.newsletter-feld--breit { grid-column: 1 / -1; }
.newsletter .entry__label { display: block; font-size: .85em; font-weight: 700; margin-bottom: 4px; }
.newsletter .entry__label[data-required]::after { content: " *"; }
.newsletter .freiwillig { font-weight: 400; }
.newsletter .input { font: inherit; width: 100%; box-sizing: border-box; padding: 9px 14px; border: 2px solid var(--jj-white); border-radius: 12px; background: var(--jj-white); color: var(--jj-black); }
.newsletter .input:focus { outline: none; border-color: var(--jj-green-dark); }
.newsletter .input::placeholder { color: #767676; }
.newsletter-optin { display: flex; gap: 10px; align-items: flex-start; font-size: .9em; cursor: pointer; margin-bottom: 16px; }
.newsletter-optin { position: relative; }
.newsletter-optin .input_replaced { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; left: 0; top: 2px; }
.newsletter-optin .checkbox { flex: none; width: 20px; height: 20px; box-sizing: border-box; margin-top: 2px; border: 2px solid var(--jj-green-dark); border-radius: 4px; background: var(--jj-white); position: relative; }
.newsletter-optin .input_replaced:checked + .checkbox { background: var(--jj-green-dark); }
.newsletter-optin .input_replaced:checked + .checkbox::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--jj-white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.newsletter-optin .input_replaced:focus-visible + .checkbox { outline: 2px solid var(--jj-orange); outline-offset: 2px; }
.newsletter .knopf { font-size: .95em; padding: 10px 22px; }
.newsletter-klein { font-size: .75em; color: #333; margin: 14px 0 0; }
.newsletter .entry__error { display: none; font-size: .8em; color: #CA2417; margin-top: 4px; }
.newsletter .entry__error:not(:empty) { display: block; }
.newsletter .input--hidden { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.newsletter .progress-indicator__icon { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; fill: currentColor; animation: newsletter-dreht 1s linear infinite; }
.newsletter .sib-hide-loader-icon { display: none; }
@keyframes newsletter-dreht { to { transform: rotate(360deg); } }
/* main.js von Brevo blendet Meldungen über die Klasse --active ein (sonst Aufgabe von sib-styles.css) */
.sib-form-message-panel { display: none; }
.sib-form-message-panel--active { display: block; }
.newsletter-meldung { border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; font-weight: 700; background: var(--jj-white); border: 2px solid var(--jj-green-dark); }
.newsletter-meldung--fehler { border-color: #CA2417; }
@media (max-width: 560px) {
  .newsletter { padding: 20px 18px; }
  .newsletter-kopf { grid-template-columns: 1fr; }
  .newsletter-kopf img { grid-row: 1; width: 90px; }
  .newsletter-felder { grid-template-columns: 1fr; }
}

/* ---------- Druck ---------- */
@page { size: A4; margin: 14mm 20mm 14mm; }
@page querformat { size: A4 landscape; margin: 10mm; }

@media print {
  .nur-web { display: none !important; }
  .handout { font-size: 10pt; line-height: 1.35; max-width: none; padding: 0; }
  a { color: var(--jj-black); }
  .inhalt a[href^="http"]:not(.url-sichtbar)::after { content: " (" attr(href) ")"; font-size: 8pt; word-break: break-all; }

  .hero { padding-bottom: 8px; margin-top: -4mm; }
  .hero-text { gap: 0; }
  .hero .label, .hero .strich { display: none; }
  .hero h1 { font-size: 26pt; }
  .hero-bild { width: 32mm; }

  .inhalt h2 { font-size: 15pt; margin-bottom: 6px; }
  .inhalt > p, .inhalt > ul, .inhalt > ol { margin-bottom: 8pt; }
  .karten { gap: 10px; margin-bottom: 20px; }
  .karte { padding: 12px 16px; }
  .karte p { margin-bottom: 5px; }
  .karte-label { font-size: 7.5pt; }
  .karte blockquote { font-size: 9pt; }

  .schritte ol { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-bottom: 18px; }
  .schritte li { grid-template-columns: 28px minmax(0, 1fr); gap: 0 10px; }
  .schritte li::before { width: 28px; height: 28px; font-size: 1.2em; }
  .schritte li p, .schritte li h3 { margin-bottom: 2px; }
  .schritte--untereinander ol { grid-template-columns: 1fr; gap: 10px; }

  .tipp { padding: 10px 16px; margin-bottom: 0; }

  .fuss--web { display: none; }
  .fuss--druck { display: flex; }
  .fuss--druck { padding-top: 0; font-size: 7.5pt; }
  .drachenlinie { --h: 6mm; margin-bottom: 0; }

  /* Seite 1 füllt die Seitenhöhe, die Fußzeile sitzt unten (A4 297 mm − 28 mm Rand) */
  .seite { min-height: 268mm; display: flex; flex-direction: column; }
  .seite > .fuss--druck { margin-top: auto; }

  .kopf { padding-bottom: 6px; }
  .kopf .logo { height: 16px; }

  .canvas { page: querformat; break-before: page; margin: 0; }
  .canvas h2 { margin-bottom: 4px; }
  .canvas img { max-height: 174mm; width: auto; max-width: 100%; margin: 0 auto; }
}

/* ---------- Leitfaden (mehrseitig, Phasen, Checklisten) ---------- */
.leitfaden > p, .leitfaden > ul { margin: 0 0 16px; }
.leitfaden .unterzeile { font-weight: 700; font-size: 1.15em; margin: -24px 0 24px; }
.leitfaden .kleinlabel { display: block; font-size: .75em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--jj-brown); }
.leitfaden .kleinlabel a { color: var(--jj-brown); }
.leitfaden .kernsatz { background: var(--jj-green-light); padding: 32px; margin: 0 0 24px; break-inside: avoid; }
.leitfaden .kernsatz p { font-family: var(--font-display); font-weight: 700; font-size: 1.9em; line-height: 1.1; margin: 0; color: var(--jj-black); }
.leitfaden .transparenz { font-size: .85em; max-width: 560px; margin-bottom: 56px; }
.leitfaden .transparenz p { margin: 6px 0 0; }
.leitfaden h3 { color: var(--jj-green-dark); font-size: 1.05em; margin: 24px 0 6px; }
.leitfaden > ul:not(.quellen), .leitfaden .checkliste ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.leitfaden > ul:not(.quellen) > li, .leitfaden .checkliste li li, .leitfaden .quellen li { position: relative; padding-left: 24px; }
.leitfaden > ul:not(.quellen) > li::before, .leitfaden .checkliste li li::before, .leitfaden .quellen li::before { content: ">"; position: absolute; left: 0; top: 0; color: var(--jj-green-dark); font-weight: 700; }

/* Inhaltsverzeichnis */
.leitfaden .toc { margin-bottom: 24px; }
.leitfaden .toc .label { display: inline-block; margin-bottom: 12px; }
.leitfaden .toc h2 { font-size: 2.1em; margin-bottom: 16px; }
.leitfaden .toc ol { list-style: none; padding: 0; margin: 0; }
.leitfaden .toc > ol > li { padding: 10px 0; border-bottom: 1px solid var(--border-content); }
.leitfaden .toc > ol > li > a { font-weight: 700; color: var(--jj-green-dark); text-decoration: none; display: block; position: relative; padding-left: 26px; }
.leitfaden .toc > ol > li > a::before { content: ">"; position: absolute; left: 0; top: 0; }
.leitfaden .toc > ol > li.toc-einzel > a { color: var(--jj-black); font-weight: 400; }
.leitfaden .toc li ol { padding: 6px 0 0 26px; display: flex; flex-direction: column; gap: 4px; }
.leitfaden .toc li li a { color: var(--jj-black); text-decoration: none; }
.leitfaden .toc a:hover { color: var(--jj-brown); }

/* Abschnitts- und Phasenköpfe */
.leitfaden .abschnitt-kopf, .leitfaden .phase { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin: 72px 0 24px; break-inside: avoid; break-after: avoid; }
.leitfaden .abschnitt-text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.leitfaden .abschnitt-text h2 { font-size: 2.1em; line-height: 1.05; margin: 0; }
.leitfaden .abschnitt-bild, .leitfaden .phase-bild { width: clamp(100px, 20vw, 160px); height: auto; display: block; }
.leitfaden .phase-band { background: var(--jj-green-light); padding: 32px; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 14px; }
.leitfaden .phase--bonus .phase-band { background: var(--jj-orange); }
.leitfaden .phase-band .label { background: var(--jj-white); }
.leitfaden .phase-band h2 { color: var(--jj-black); font-size: 2.5em; line-height: 1.05; margin: 0; }
.leitfaden .phase--bonus .phase-band h2 { font-size: 2em; }

.leitfaden .schritt-kopf { display: flex; align-items: center; gap: 20px; margin: 48px 0 16px; break-inside: avoid; break-after: avoid; }
.leitfaden .ziffer { flex: none; width: 88px; height: 88px; border-radius: 16px; background: var(--jj-offwhite); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 64px; line-height: 1; color: var(--jj-green-dark); padding-top: 8px; box-sizing: border-box; }
.leitfaden .schritt-kopf h2 { font-size: 1.9em; line-height: 1.05; margin: 4px 0 0; }

.leitfaden .phasen-uebersicht { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 24px 0; break-inside: avoid; }
.leitfaden .phasen-uebersicht a { background: var(--jj-offwhite); border-radius: 16px; padding: 14px 18px; color: var(--jj-black); text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.leitfaden .text-bild { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; align-items: center; margin: 0 0 16px; break-inside: avoid; }
.leitfaden .text-bild p { margin: 0; }
.leitfaden .text-bild img { width: 100%; max-width: 340px; height: auto; display: block; justify-self: center; border-radius: 16px; }
.leitfaden .gruss { font-family: var(--font-display); font-weight: 700; font-size: 1.75em; color: var(--jj-green-dark); margin: 0; }
.leitfaden .verweis { font-style: italic; }

/* Checklisten */
.leitfaden .checkliste { background: var(--jj-offwhite); border-radius: 16px; padding: 22px 24px; margin: 24px 0; }
.leitfaden .checkliste .kleinlabel { margin-bottom: 12px; }
.leitfaden .checkliste ul { margin: 0; gap: 10px; }
.leitfaden .checkliste > ul > li { position: relative; padding-left: 28px; break-inside: avoid; }
.leitfaden .checkliste > ul > li::before { content: ""; position: absolute; left: 0; top: .3em; width: 12px; height: 12px; border: 2px solid var(--jj-green-dark); border-radius: 4px; background: var(--jj-white); }
.leitfaden .checkliste li ul { margin-top: 6px; gap: 4px; }

.leitfaden .fussnote { font-size: .85em; margin: 14px 0 0; }

/* Zeitplan-Tabelle */
.leitfaden .zeitplan { width: 100%; border-collapse: collapse; font-size: .9em; margin-bottom: 24px; border-radius: 8px; overflow: hidden; }
.leitfaden .zeitplan th { background: var(--jj-green-dark); color: var(--jj-white); text-align: left; padding: 10px 14px; font-size: .8em; letter-spacing: .1em; text-transform: uppercase; }
.leitfaden .zeitplan td { padding: 12px 14px; vertical-align: top; background: var(--jj-offwhite); }
.leitfaden .zeitplan tr:nth-child(even) td { background: #F7F7F1; }
.leitfaden .zeitplan td:first-child { width: 42%; }
.leitfaden .zeitplan td strong { font-weight: 600; display: block; }
.leitfaden .zeitplan .zeit { display: block; color: var(--jj-brown); font-weight: 700; font-size: .9em; }
.leitfaden .zeitplan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.leitfaden .zeitplan li { position: relative; padding-left: 22px; }
.leitfaden .zeitplan li::before { content: ""; position: absolute; left: 0; top: .3em; width: 10px; height: 10px; border: 2px solid var(--jj-green-dark); border-radius: 3px; background: var(--jj-white); }
.leitfaden .zeitplan tr { break-inside: avoid; }

/* Quellen und Kontakt */
.leitfaden .quellen { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 14px; }
.leitfaden .quellen li { break-inside: avoid; }
.leitfaden .kontakt { margin: 64px 0 24px; border-top: 3px solid var(--jj-green-dark); padding-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; align-items: center; break-inside: avoid; }
.leitfaden .kontakt img { width: 100%; max-width: 260px; border-radius: 16px; display: block; }
.leitfaden .kontakt-text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.leitfaden .kontakt-text h2 { font-size: 2.1em; margin: 0; }
.leitfaden .kontakt-text p { margin: 0; }

@media (max-width: 560px) {
  .leitfaden .abschnitt-kopf, .leitfaden .phase { grid-template-columns: 1fr; }
  .leitfaden .abschnitt-bild, .leitfaden .phase-bild { grid-row: 1; width: 110px; }
  .leitfaden .phase-band h2 { font-size: 2em; }
  .leitfaden .ziffer { width: 64px; height: 64px; font-size: 44px; }
  .leitfaden .zeitplan td { display: block; width: auto !important; }
  .leitfaden .zeitplan thead { display: none; }
}

@media print {
  /* Titelseite: Label, Strich und großes Bild wie in der Webansicht */
  .handout:has(.leitfaden) .hero { padding-bottom: 20px; margin-top: 0; }
  .handout:has(.leitfaden) .hero-text { gap: 14px; }
  .handout:has(.leitfaden) .hero .label, .handout:has(.leitfaden) .hero .strich { display: block; }
  .handout:has(.leitfaden) .hero h1 { font-size: 28pt; }
  .handout:has(.leitfaden) .hero-bild { width: 55mm; }
  .handout:has(.leitfaden) .kopf .logo { height: 20px; }

  .leitfaden { font-size: 11pt; line-height: 1.45; }
  .leitfaden > p, .leitfaden > ul { margin: 0 0 10pt; }
  .leitfaden > ul:not(.quellen) { gap: 5pt; }
  .leitfaden .unterzeile { font-size: 13pt; margin: -10pt 0 16pt; }
  .leitfaden .kernsatz { padding: 22px 26px; margin-bottom: 18pt; }
  .leitfaden .kernsatz p { font-size: 20pt; }
  .leitfaden .transparenz { font-size: 9.5pt; margin-bottom: 0; }
  .leitfaden .kleinlabel { font-size: max(.75em, 7.5pt); }

  .leitfaden .toc, .leitfaden #einleitung, .leitfaden .phase, .leitfaden .zeitplan-kopf, .leitfaden .neue-seite, .leitfaden .kontakt { break-before: page; }
  .leitfaden .toc, .leitfaden .abschnitt-kopf, .leitfaden .phase { margin-top: 0; }
  .leitfaden .toc h2, .leitfaden .abschnitt-text h2, .leitfaden .kontakt-text h2 { font-size: 24pt; }
  .leitfaden .toc > ol > li { padding: 8pt 0; }
  .leitfaden .toc li ol { gap: 3pt; }

  .leitfaden .abschnitt-kopf, .leitfaden .phase { gap: 18px; margin-bottom: 16pt; }
  .leitfaden .phase-band { padding: 26px 28px; }
  .leitfaden .phase-band h2 { font-size: 28pt; }
  .leitfaden .phase--bonus .phase-band h2 { font-size: 21pt; }
  .leitfaden .abschnitt-bild, .leitfaden .phase-bild { width: 48mm; }

  .leitfaden .schritt-kopf { margin: 26pt 0 10pt; gap: 16px; }
  .leitfaden .schritt-kopf.neue-seite { margin-top: 0; }
  .leitfaden .ziffer { width: 20mm; height: 20mm; font-size: 40pt; border-radius: 12px; }
  .leitfaden .schritt-kopf h2 { font-size: 18pt; }
  .leitfaden h3 { font-size: 11.5pt; margin: 14pt 0 4pt; }

  .leitfaden .checkliste { padding: 16px 20px; margin: 14pt 0; }
  .leitfaden .checkliste .kleinlabel { margin-bottom: 10px; }
  .leitfaden .checkliste ul { gap: 7pt; }
  .leitfaden .zeitplan { font-size: 10pt; }
  .leitfaden .zeitplan td { padding: 9px 12px; }

  .leitfaden .text-bild { grid-template-columns: minmax(0, 1fr) 72mm; gap: 18px; }
  .leitfaden .text-bild img { max-width: 72mm; }
  .leitfaden .gruss { font-size: 18pt; }
  .leitfaden .quellen { gap: 9pt; }
  .leitfaden .kontakt { margin-top: 0; }
  .leitfaden .kontakt img { max-width: 70mm; }

  .leitfaden .toc a::after, .leitfaden .phasen-uebersicht a::after, .leitfaden .verweis a::after, .leitfaden .kleinlabel a::after { content: none !important; }
}

/* ---------- Querformat (format: quer im Kopfbereich) ---------- */
body.quer .handout { max-width: 1200px; }

@media print {
  body.quer .handout { page: querformat; }
  body.quer .seite { min-height: 190mm; }
  body.quer .kopf { display: none; }  /* Logo steckt schon in der Drachenlinie, spart Höhe */
  body.quer .hero-bild { width: 18mm; }  /* Matrix braucht die Höhe */
  body.quer .hero { margin-top: 0; }
}

/* ---------- Reifegradmodell (Matrix mit sechs Spalten) ---------- */
.reifegrad .unterzeile { font-weight: 700; margin: -24px 0 24px; max-width: 60em; }
.reifegrad h2 { margin: 0; }
.reifegrad-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 40px 0 12px; }
.reifegrad-kopf img { width: 90px; height: auto; display: block; }
.matrix-rahmen { overflow-x: auto; margin-bottom: 16px; }
.matrix { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: .82em; line-height: 1.3; hyphens: auto; }
.matrix thead th { background: var(--jj-green-dark); color: var(--jj-white); text-align: left; padding: 8px 10px; font-size: .78em; letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; }
.matrix thead th:first-child { border-top-left-radius: 8px; width: 13%; }
.matrix thead th:last-child { border-top-right-radius: 8px; }
.matrix thead th.stufe-5 { background: var(--jj-green-light); color: var(--jj-black); }
.matrix .ziffer { font-family: var(--font-display); font-weight: 700; font-size: 2.2em; line-height: 1; letter-spacing: 0; vertical-align: middle; margin-right: 4px; }
.matrix tbody th { text-align: left; color: var(--jj-green-dark); font-weight: 700; vertical-align: top; padding: 8px 10px; hyphens: manual; }
.matrix tbody td { vertical-align: top; padding: 8px 10px; }
.matrix tbody tr:nth-child(odd) > * { background: var(--jj-offwhite); }
.matrix tbody tr:nth-child(even) > * { background: #F7F7F1; }
.matrix tr { break-inside: avoid; }
.ankreuzen { display: inline-block; width: .95em; height: .95em; border: 1.5px solid var(--jj-green-dark); border-radius: 999px; background: var(--jj-white); box-sizing: border-box; vertical-align: -.15em; }
.matrix td .ankreuzen { float: left; margin: .15em 6px 0 0; }

@media print {
  .reifegrad .unterzeile { margin: 0 0 8px; font-size: 10pt; }
  .reifegrad-kopf { break-before: page; margin: 0 0 6px; }
  .reifegrad-kopf img { width: 11mm; }
  .reifegrad h2 { font-size: 21pt; }
  .matrix-rahmen { overflow: visible; margin-bottom: 8px; }
  .matrix { min-width: 0; font-size: 9.5pt; line-height: 1.25; }
  .matrix thead th { padding: 1.5mm 2.2mm; font-size: 8.5pt; }
  .matrix thead th:first-child { width: 34mm; }
  .matrix .ziffer { font-size: 21pt; }
  .matrix tbody th { font-size: 10pt; padding: 1.8mm 2.6mm; }
  .matrix tbody td { padding: 1.8mm 2.6mm; }
  /* Seite 1 hat keinen Fuß: Tabelle bis zum unteren Rand ziehen, die Zeilen bekommen den Platz */
  .unterzeile + .matrix-rahmen .matrix { height: 156mm; }
  .matrix thead th { padding: 2mm 2.6mm; }
}

/* ---------- Mehrseitige Handouts (mehrseitig: ja, Seitenwechsel mit <!--seitenumbruch-->): Fußzeile auf jeder Seite, luftigere Überschriften ---------- */
@media print {
  .seite--folge { break-before: page; }
  body.mehrseitig .inhalt h2 { margin-top: 16px; margin-bottom: 6px; }
  body.mehrseitig .inhalt > h2:first-child { margin-top: 0; }
  body.mehrseitig .hero-bild { width: 32mm; }
  body.mehrseitig .hero { padding-bottom: 2px; }
}

/* ---------- Auswahl (::: wahl): drei Varianten nebeneinander, ohne Ankreuzfelder (die Seite ist nicht interaktiv) ---------- */
body.leitlinien .inhalt ol li { margin-bottom: 8px; }
body.leitlinien .inhalt ol li::marker { color: var(--jj-green-dark); font-weight: 700; }
body.leitlinien .inhalt > .karte { margin-bottom: 32px; }
.wahl { border: 2px solid var(--jj-green-light); border-radius: 16px; margin: 24px 0 32px; padding: 18px 20px 20px; }
.wahl-kopf { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }
.wahl-label { font-size: .75em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--jj-green-light); border-radius: 999px; padding: 3px 14px; }
.wahl-titel { font-weight: 700; }
.wahl-inhalt { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.wahl-inhalt > p { grid-column: 1 / -1; margin: 0 0 4px; }
.variante { background: var(--jj-offwhite); border-radius: 12px; padding: 14px 18px; }
.variante .ankreuzen { display: none; }
.variante-label { font-weight: 700; margin-bottom: 6px; color: var(--jj-green-dark); }
.variante-text p { margin: 0 0 8px; font-size: .95em; }
.variante-text > :last-child { margin-bottom: 0; }

/* Ergänzung in einem Listeneintrag (::: ergaenzung): wie die Karte „Neu in Version 5“ */
.ergaenzung { background: var(--jj-offwhite); border-radius: 16px; padding: 16px 22px; margin: 10px 0 16px; }
.ergaenzung-label { font-size: .75em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.ergaenzung p { margin: 0 0 10px; }
.ergaenzung > :last-child { margin-bottom: 0; }

/* Zum Weiterlesen (::: weiterlesen): nur Webansicht, bewusst leiser als der Leitlinientext */
.weiterlesen { margin: 48px 0 0; padding-top: 20px; border-top: 1px solid var(--border-content); font-size: .85em; line-height: 1.45; color: #555; }
.weiterlesen h3 { font-size: .8em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #555; margin: 18px 0 4px; }
.weiterlesen h3:first-child { margin-top: 0; }
.weiterlesen ul { margin: 0; padding-left: 1.1em; }
.weiterlesen li { margin-bottom: 2px; }
.weiterlesen a { color: #555; text-decoration-thickness: 1px; }
.weiterlesen a:hover { color: var(--jj-green-dark); }

/* Nur im PDF (::: nurdruck) */
.nur-druck { display: none; }

@media print {
  .nur-druck { display: block; margin-top: 10pt; font-size: 9pt; }
  .nur-druck p { margin: 0; }
  body.leitlinien .inhalt ol li { margin-bottom: 5pt; }
  body.leitlinien .inhalt > .karte { margin-bottom: 0; }
  /* PDF: orange Kasten mit Ankreuzkreisen, Varianten untereinander (wie bisher) */
  .wahl { border: 2.5pt solid var(--jj-orange); overflow: hidden; margin: 4pt 0 10pt; padding: 0; break-inside: avoid; }
  .wahl-kopf { background: var(--jj-orange); padding: 6pt 12pt; margin: 0; }
  .wahl-label { background: var(--jj-white); font-size: 7.5pt; }
  .wahl-inhalt { display: flex; flex-direction: column; padding: 8pt 12pt 12pt; gap: 7pt; }
  .wahl-inhalt > p { margin: 0; }
  .variante { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; padding: 8pt 12pt; }
  .variante .ankreuzen { display: inline-block; width: 1.2em; height: 1.2em; border-color: var(--jj-brown); border-width: 2px; margin-top: .15em; }
  .variante-label { color: var(--jj-black); margin-bottom: 4px; }
  .variante-text p { margin-bottom: 4pt; font-size: inherit; }
  .ergaenzung { background: none; border-radius: 0; padding: 0; margin: 0 0 5pt; }
  .ergaenzung-label { font-size: 7.5pt; margin-bottom: 2pt; }
  .ergaenzung p { margin-bottom: 5pt; }
}

/* ---------- Anleitung mit Screenshots (stil: anleitung) ---------- */
.anleitung .schritte img { display: block; width: auto; max-width: 100%; max-height: 360px; margin-top: 10px; border: 1px solid var(--border-content); border-radius: 8px; }
.anleitung .schritte img.klein { max-height: 240px; }
@media print {
  .anleitung .schritte img { max-height: 46mm; margin-top: 2mm; }
  .anleitung .neue-seite { break-before: page; }
  .anleitung .schritte img.klein { max-height: 24mm; }
}
/* ---------- Bilder-Handout (stil: bilder): Tabellen, Bildvergleiche, Bildreihen, Achtung-Kasten ---------- */
body.bilder .unterzeile { font-weight: 700; margin: -24px 0 12px; }
body.bilder .inhalt ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
body.bilder .inhalt ul > li { position: relative; padding-left: 22px; }
body.bilder .inhalt ul > li::before { content: ">"; position: absolute; left: 0; top: 0; color: var(--jj-green-dark); font-weight: 700; }
body.bilder .inhalt > ul { margin-bottom: 32px; }
body.bilder .tabelle-rahmen { overflow-x: auto; margin-bottom: 16px; }
body.bilder .tabelle { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9em; line-height: 1.4; margin-bottom: 16px; }
body.bilder .tabelle-rahmen .tabelle { min-width: 520px; margin-bottom: 0; }
body.bilder .tabelle-stand { font-size: .75em; margin: 4px 0 0; text-align: right; }
body.bilder .tabelle th { background: var(--jj-green-dark); color: var(--jj-white); text-align: left; padding: 8px 12px; font-size: .8em; letter-spacing: .1em; text-transform: uppercase; }
body.bilder .tabelle th:first-child { border-top-left-radius: 8px; }
body.bilder .tabelle th:last-child { border-top-right-radius: 8px; }
body.bilder .tabelle td { padding: 10px 12px; vertical-align: top; }
body.bilder .tabelle td:first-child { font-weight: 700; width: 28%; }
body.bilder .tabelle tr:nth-child(odd) td { background: var(--jj-offwhite); }
body.bilder .tabelle tr:nth-child(even) td { background: #F7F7F1; }
body.bilder .tabelle tr { break-inside: avoid; }
body.bilder .stichworte { border-radius: 8px; overflow: hidden; }
body.bilder figure { margin: 0; break-inside: avoid; }
body.bilder figure img { width: 100%; height: auto; display: block; border-radius: 16px; }
body.bilder figcaption { font-size: .85em; margin-top: 8px; }
body.bilder .prompt-label { display: block; font-size: .8em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
body.bilder .bildvergleich { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; max-width: 600px; margin-bottom: 12px; }
body.bilder .fazit { font-weight: 700; margin: 0 0 40px; }
body.bilder .bildreihe { display: grid; grid-template-columns: repeat(3, minmax(0, 180px)); gap: 16px; align-items: end; margin-bottom: 32px; }
body.bilder .bildreihe figcaption { font-weight: 700; }
body.bilder .text-bild { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; align-items: center; margin-bottom: 32px; }
body.bilder .text-bild ul, body.bilder .text-bild p { margin: 0 0 10px; }
body.bilder .text-bild > div > :last-child { margin-bottom: 0; }
body.bilder .text-bild > img { width: 100%; max-width: 220px; height: auto; display: block; justify-self: center; border-radius: 16px; }
body.bilder .text-bild--breit > img { max-width: 100%; border-radius: 8px; }
body.bilder .text-bild--breit { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
body.bilder .inhalt .karte { margin-bottom: 24px; }
body.bilder .karte p { margin: 0 0 8px; }
body.bilder .karte > :last-child { margin-bottom: 0; }
body.bilder .karten { margin-bottom: 32px; }
body.bilder .karten .karte { margin-bottom: 0; }
body.bilder .karte--rahmen { border-color: var(--jj-black); }
body.bilder .schritte ol { margin-bottom: 16px; }
body.bilder .achtung { border: 2px solid #CA2417; border-radius: 16px; padding: 18px 22px; margin-bottom: 40px; break-inside: avoid; }
body.bilder .achtung-label { font-size: .75em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #CA2417; margin-bottom: 4px; }
body.bilder .achtung h2 { margin-bottom: 10px; }
body.bilder .achtung ul, body.bilder .achtung p { margin: 0 0 10px; }
body.bilder .achtung > :last-child { margin-bottom: 0; }
body.bilder .klein { font-size: .85em; }
body.bilder .tipp { margin-bottom: 40px; }
body.bilder .infografik-beispiel { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 150px)); gap: 16px; align-items: end; margin-bottom: 32px; }
@media (max-width: 560px) {
  body.bilder .infografik-beispiel { grid-template-columns: 1fr 1fr; }
  body.bilder .infografik-beispiel .karte { grid-column: 1 / -1; }
  body.bilder .bildreihe { gap: 10px; }
}
body.bilder .infografik-beispiel .karte { margin-bottom: 0; align-self: stretch; }
body.bilder .infografik-beispiel figcaption { font-weight: 700; }
body.bilder .kernsatz { background: var(--jj-green-light); padding: 24px 28px; margin: 32px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.6em; line-height: 1.15; break-inside: avoid; }
@media print {
  body.bilder .unterzeile { margin: 0 0 6pt; font-size: 11pt; }
  body.bilder .inhalt ul { gap: 3pt; }
  body.bilder .inhalt ul > li { padding-left: 14pt; }
  body.bilder .inhalt > ul { margin-bottom: 8pt; }
  body.bilder .tabelle-rahmen { overflow: visible; margin-bottom: 8pt; }
  body.bilder .tabelle-rahmen .tabelle { min-width: 0; }
  body.bilder .tabelle-stand { font-size: 7.5pt; margin-top: 2pt; }
  body.bilder .tabelle { font-size: 9.5pt; line-height: 1.3; margin-bottom: 8pt; }
  body.bilder .tabelle th { padding: 1.6mm 2.6mm; font-size: 7.5pt; }
  body.bilder .tabelle td { padding: 1.3mm 2.6mm; }
  body.bilder .stichworte { line-height: 1.22; }
  body.bilder .stichworte td { padding: 1.1mm 2.6mm; }
  body.bilder .tipp { margin-bottom: 10pt; }
  body.bilder figure img { border-radius: 10px; }
  body.bilder figcaption { font-size: 8.5pt; margin-top: 3pt; }
  body.bilder .prompt-label { font-size: 7.5pt; }
  body.bilder .bildvergleich { max-width: none; gap: 14px; margin-bottom: 4pt; }
  body.bilder .bildvergleich img { height: 23mm; object-fit: cover; }
  body.bilder .bildvergleich .prompt-label { display: inline; margin: 0; }
  body.bilder .bildvergleich figcaption { font-size: 8.5pt; line-height: 1.3; }
  body.bilder .infografik-beispiel { grid-template-columns: minmax(0, 1fr) 33mm 33mm; gap: 12px; margin-bottom: 8pt; }
  body.bilder .fazit { margin-bottom: 0; }
  body.bilder .bildreihe { grid-template-columns: repeat(2, 48mm); justify-content: center; gap: 12mm; margin-bottom: 8pt; }
  body.bilder .bildreihe--drei { grid-template-columns: repeat(3, 38mm); gap: 10mm; }
  body.bilder .text-bild { grid-template-columns: minmax(0, 1fr) 58mm; gap: 18px; margin-bottom: 10pt; }
  body.bilder .text-bild > img { max-width: 58mm; border-radius: 10px; }
  body.bilder .text-bild--breit { grid-template-columns: minmax(0, 1fr) 66mm; }
  body.bilder .text-bild--breit > img { max-width: 66mm; }
  body.bilder .text-bild ul, body.bilder .text-bild p { margin-bottom: 6pt; }
  body.bilder .inhalt .karte { margin-bottom: 10pt; }
  body.bilder .karte p { margin-bottom: 4pt; }
  body.bilder .karten { margin-bottom: 10pt; }
  body.bilder .schritte ol { grid-template-columns: repeat(3, 1fr); margin-bottom: 10pt; }
  body.bilder .achtung { padding: 10pt 14pt; margin-bottom: 10pt; }
  body.bilder .achtung-label { font-size: 7.5pt; }
  body.bilder .achtung h2 { margin-top: 0; margin-bottom: 4pt; }
  body.bilder .achtung ul, body.bilder .achtung p { margin-bottom: 5pt; }
  body.bilder .klein { font-size: 9pt; }
  body.bilder .vertiefen { font-size: 8.5pt; line-height: 1.3; }
  body.bilder .vertiefen h2 { font-size: 15pt; }
  body.bilder .vertiefen a[href^="http"]:not(.url-sichtbar)::after { font-size: 7.5pt; }
  body.bilder .kernsatz { padding: 12pt 16pt; margin-top: 12pt; font-size: 15pt; }
}
/* ---------- Vergleichstabelle (<table class="vergleich">): grüne Kopfzeile, Zeilen im Wechsel, erste Spalte fett ---------- */
.vergleich-rahmen { overflow-x: auto; margin-bottom: 32px; }
.vergleich { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: .9em; line-height: 1.4; hyphens: auto; }
.vergleich th, .vergleich td { padding: 10px 14px; text-align: left; vertical-align: top; }
.vergleich thead th { background: var(--jj-green-dark); color: var(--jj-white); font-size: .8em; letter-spacing: .1em; text-transform: uppercase; }
.vergleich thead th:first-child { border-top-left-radius: 8px; }
.vergleich thead th:last-child { border-top-right-radius: 8px; }
.vergleich tbody tr:nth-child(odd) > * { background: var(--jj-offwhite); }
.vergleich tbody tr:nth-child(even) > * { background: #F7F7F1; }
.vergleich tbody th { font-weight: 700; color: var(--jj-green-dark); }
.vergleich ul { margin: 0; padding-left: 1.1em; }
.vergleich li + li { margin-top: 2px; }
.vergleich .klein { display: block; font-weight: 400; color: var(--jj-black); font-size: .9em; margin-top: 2px; }
.vergleich tr { break-inside: avoid; }
@media print {
  .vergleich-rahmen { overflow: visible; margin-bottom: 14px; }
  .vergleich { min-width: 0; font-size: 9.5pt; line-height: 1.3; }
  .vergleich th, .vergleich td { padding: 4pt 8pt; }
  .vergleich thead th { font-size: 7.5pt; }
}
/* Werkzeugliste (stil: werkzeugliste): Abstand nach dem Hinweis-Kasten auch im Druck */
@media print {
  body.werkzeugliste .tipp { margin-bottom: 14px; }
  body.werkzeugliste .inhalt > .tipp:last-child { margin-bottom: 0; }
  body.werkzeugliste .karten { margin-bottom: 0; }
  body.werkzeugliste .vergleich li + li { margin-top: 0; }
}
.vergleich .vergleich-bild { display: block; width: 100%; height: auto; margin-top: 6px; border-radius: 6px; }
/* Liste mit grünem Chevron statt Punkten (<div class="pluspunkte"> um eine Markdown-Liste) */
.pluspunkte ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.pluspunkte li { position: relative; padding-left: 22px; break-inside: avoid; }
.pluspunkte li::before { content: ">"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--jj-green-dark); }
@media print {
  .vergleich .vergleich-bild { margin-top: 3pt; max-height: 26mm; width: auto; max-width: 100%; }
  .pluspunkte ul { grid-template-columns: 1fr 1fr; gap: 6pt 18px; margin-bottom: 0; }
  .pluspunkte li { padding-left: 14px; }
}
/* Titel ohne Bild daneben: nicht an die Kopfzeile heranrücken */
@media print { .hero:not(:has(.hero-bild)) { margin-top: 2mm; } }

/* ---------- KI-Training abschalten (stil: datenschutz): mehr Luft über dem Titel ---------- */
.datenschutz .hero { padding-top: 16px; }
@media print {
  .datenschutz .hero { margin-top: 0; padding-top: 10mm; }
}

/* ---------- Prompt zum Kopieren (Markdown-Codeblock mit ```, darüber Knopf „Prompt kopieren“ per Skript) ---------- */
.prompt-kasten { background: var(--jj-offwhite); border-left: 4px solid var(--jj-green-light); border-radius: 12px; padding: 14px 20px 16px; margin: 0 0 24px; }
.inhalt pre { background: var(--jj-offwhite); border-left: 4px solid var(--jj-green-light); border-radius: 12px; padding: 16px 20px; margin: 0 0 24px; max-width: 100%; box-sizing: border-box; overflow-x: hidden; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; font-family: var(--font-body); font-size: .9em; line-height: 1.55; tab-size: 2; }
.inhalt pre code { font: inherit; white-space: inherit; background: none; padding: 0; }
.prompt-kopieren { margin: 0 0 12px; border: none; cursor: pointer; }
@media (max-width: 560px) {
  .inhalt pre { padding: 12px 14px; font-size: .85em; border-radius: 10px; }
  .prompt-kasten { padding: 12px 14px; border-radius: 10px; }
}
/* Links unter dem Handout (<div class="nur-web mehr-links">): mit Chevron, normale Textgröße */
.mehr-links { margin-top: 40px; padding-top: 8px; border-top: 1px solid var(--border-content); }
.mehr-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mehr-links li { position: relative; padding-left: 22px; }
.mehr-links li::before { content: ">"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--jj-green-dark); }
@media print {
  .inhalt pre { font-size: 8pt; line-height: 1.35; padding: 3mm 4mm; margin-bottom: 10px; break-inside: avoid; }
  .prompt-kasten { padding: 3mm 4mm; margin-bottom: 10px; break-inside: avoid; }
}
/* Prompt im Kasten: Fläche und Rahmen trägt der Kasten (steht am Ende, damit es die pre-Regeln oben überschreibt) */
.inhalt .prompt-kasten pre { background: none; border: none; border-radius: 0; padding: 0; margin: 0; }

/* ---------- KI-Reseller-Vergleich (stil: reseller): breite Vergleichstabelle mit Emojis in der Hosting-Spalte ---------- */
.reseller .unterzeile { font-weight: 700; margin: -24px 0 8px; }
.reseller .hinweis { margin: 0 0 20px; max-width: 70em; }
.reseller .vergleich { min-width: 980px; }
.reseller .vergleich .sp-plattform { width: 11%; }
.reseller .vergleich .sp-modelle { width: 21%; }
.reseller .vergleich .sp-hosting { width: 35%; }
.reseller .vergleich .sp-preis { width: 12%; }
.reseller .vergleich .sp-besonders { width: 21%; }
.reseller .hosting .zeile { display: block; padding-left: 1.6em; text-indent: -1.6em; }
.reseller .hosting .zeile + .zeile { margin-top: 3px; }
.reseller .emoji { width: 1.15em; height: 1.15em; vertical-align: -.2em; margin-right: .45em; }
.reseller .kapsel { display: inline-block; border-radius: 999px; padding: 0 .55em; font-size: .85em; font-weight: 700; line-height: 1.5; text-indent: 0; }
.reseller .kapsel--ja { background: var(--jj-green-light); }
.reseller .kapsel--nein { background: var(--jj-orange); }
.reseller .kapsel--unklar { box-shadow: inset 0 0 0 1.5px var(--jj-green-dark); color: var(--jj-green-dark); }
.reseller .legende-titel { font-weight: 700; color: var(--jj-green-dark); margin: 0 0 6px; }
.reseller .legende ul { list-style: none; padding: 0; margin: 0 0 40px; }
.reseller .legende li { margin-bottom: 4px; padding-left: 1.6em; text-indent: -1.6em; }
.reseller .achtung { border: 2px solid #CA2417; border-radius: 16px; padding: 18px 22px; margin-bottom: 40px; break-inside: avoid; }
.reseller .achtung-label { font-size: .75em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #CA2417; margin: 0 0 4px; }
.reseller .achtung h2 { margin: 0 0 10px; }
.reseller .achtung p { margin: 0 0 10px; }
.reseller .achtung > :last-child { margin-bottom: 0; }
.reseller .karte ul { margin: 0; padding-left: 1.1em; }
.reseller .karte li + li { margin-top: 4px; }

@media print {
  body.reseller .hero-bild { width: 18mm; }
  .reseller .unterzeile { margin: 0 0 3pt; font-size: 10pt; }
  .reseller .hinweis { margin: 0 0 6pt; font-size: 9pt; max-width: none; }
  .reseller .vergleich { min-width: 0; font-size: 8.5pt; line-height: 1.28; }
  .reseller .vergleich th, .reseller .vergleich td { padding: 3pt 6pt; }
  .reseller .vergleich tbody th { font-size: 9.5pt; }
  .reseller .hosting .zeile + .zeile { margin-top: 1pt; }
  .reseller .kapsel { font-size: 7.5pt; }
  .reseller .vergleich-rahmen { margin-bottom: 6pt; }
  .reseller .legende { font-size: 8.5pt; }
  .reseller .legende-titel { margin-bottom: 2pt; }
  .reseller .legende ul { display: flex; flex-wrap: wrap; gap: 0 16pt; margin-bottom: 0; }
  .reseller .legende li { margin-bottom: 1pt; }
  .reseller .achtung { padding: 9pt 13pt; margin-bottom: 10pt; font-size: 9.5pt; }
  .reseller .achtung-label { font-size: 7.5pt; }
  .reseller .achtung h2 { margin-bottom: 4pt; }
  .reseller .achtung p { margin-bottom: 5pt; }
  .reseller--einordnung h2 { margin-top: 0; }
  .reseller .karten { grid-template-columns: repeat(3, 1fr); gap: 10pt; margin-bottom: 10pt; font-size: 9pt; }
  body.reseller .tipp { margin-bottom: 0; font-size: 9.5pt; }
}

/* ---------- KI-Arbeitsprofile (stil: arbeitsprofile, Querformat mit breiteren Rändern) ---------- */
@page arbeitsprofile { size: A4 landscape; margin: 10mm; }

/* Funktionen-Tabelle */
.funktionen { margin-bottom: 32px; }
.funktionen-rahmen { overflow-x: auto; }
.funktionen-tabelle { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .85em; line-height: 1.35; border-radius: 8px; overflow: hidden; }
.funktionen-tabelle thead th { background: var(--jj-green-dark); color: var(--jj-white); text-align: left; padding: 10px 12px; font-size: .8em; letter-spacing: .1em; text-transform: uppercase; }
.funktionen-tabelle td, .funktionen-tabelle tbody th { padding: 10px 12px; vertical-align: top; text-align: left; background: #EDEDDF; }
.funktionen-tabelle tr:nth-child(even) td, .funktionen-tabelle tr:nth-child(even) th { background: #F7F7F1; }
.funktionen-tabelle tbody th { width: 20%; }
.funktionen-tabelle td strong { font-weight: 600; }
.funktionen-tabelle .info { display: block; font-size: .9em; margin-top: 2px; }
.funktionen-tabelle tbody th .info { font-weight: 400; }
.funktionen-tabelle tbody th .kapsel { margin-top: 4px; }
.funktionen-tabelle .kopf-zusatz { text-transform: none; letter-spacing: 0; font-weight: 400; }
.funktionen .kapsel { display: inline-block; border-radius: 999px; padding: 0 .55em; font-size: .8em; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.funktionen .kapsel--gratis { background: var(--jj-green-light); }
.funktionen .kapsel--bezahlt { background: var(--jj-orange); }
.funktionen .kapsel--angekuendigt { box-shadow: inset 0 0 0 1.5px var(--jj-green-dark); color: var(--jj-green-dark); }
.funktionen-hinweis { font-size: .8em; margin: 8px 0 0; }

/* Seite 2: Schritte nebeneinander, darunter Tipps links und Drachen-Spirale rechts */
.schritte-quer .schritte ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.schritte-quer .schritte li { display: block; }
.schritte-quer .schritte li::before { margin-bottom: 10px; }
.anleitung-unten { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: center; margin-bottom: 32px; }
.tipps-box { background: var(--jj-offwhite); border-radius: 16px; padding: 18px 22px; }
.tipps-box h3 { margin: 0 0 8px; }
.tipps-box ul { list-style: none; padding: 0; margin: 0; }
.tipps-box li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.tipps-box li:last-child { margin-bottom: 0; }
.tipps-box li::before { content: "★"; position: absolute; left: 0; top: 0; color: var(--jj-green-dark); }
.anleitung-unten > img { width: 100%; max-width: 300px; height: auto; display: block; justify-self: center; }

/* Seite 3: Canvas */
.canvas-bild img { width: 100%; height: auto; display: block; }

/* Seite 4: Prompt-Baukasten, drei Starts + zwei Ziele */
.baukasten { display: grid; gap: 16px; }
.baukasten--start { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.baukasten--ziel { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 24px; }
.baustein { display: flex; flex-direction: column; }
.baustein h3 { margin: 0 0 6px; }
.baustein .prompt-kasten { flex: 1; margin-bottom: 0; }
.baustein .prompt-kasten pre { background: none; border-left: 0; border-radius: 0; padding: 0; margin: 0; }
.baukasten-plus { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; color: var(--jj-orange); text-align: center; margin: 8px 0 4px; }

@media (max-width: 760px) {
  .schritte-quer .schritte ol, .anleitung-unten, .baukasten--start, .baukasten--ziel { grid-template-columns: 1fr; }
}

@media print {
  body.arbeitsprofile .handout { page: arbeitsprofile; font-size: 10pt; line-height: 1.4; }
  body.arbeitsprofile .seite { min-height: 182mm; }
  body.arbeitsprofile .hero { padding-bottom: 2mm; }
  body.arbeitsprofile .hero-bild { width: 20mm; }
  body.arbeitsprofile .inhalt h2 { font-size: 14pt; margin: 0 0 6pt; }

  /* Seite 1 */
  body.arbeitsprofile .karten { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5mm; margin-bottom: 4mm; }
  body.arbeitsprofile .karten:has(> :only-child) { grid-template-columns: 1fr; margin-bottom: 7mm; }
  body.arbeitsprofile .karte { padding: 3.5mm 5mm; }
  body.arbeitsprofile .karte p { margin-bottom: 4pt; }
  .funktionen { margin-bottom: 0; break-inside: avoid; }
  .funktionen-tabelle { min-width: 0; table-layout: fixed; font-size: 9pt; line-height: 1.3; }
  .funktionen-tabelle thead th { padding: 4pt 7pt; font-size: 7.5pt; }
  .funktionen-tabelle thead th:first-child { width: 20%; }
  .funktionen-tabelle td, .funktionen-tabelle tbody th { padding: 4pt 7pt; }
  .funktionen-tabelle .info { margin-top: 0; }
  .funktionen .kapsel { font-size: 7.5pt; }
  .funktionen-hinweis { font-size: 7.5pt; margin-top: 3pt; }

  /* Seite 2 */
  body.arbeitsprofile .schritte-quer .schritte ol { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8mm; margin-bottom: 9mm; }
  body.arbeitsprofile .schritte-quer .schritte li { display: block; font-size: 10.5pt; line-height: 1.45; }
  body.arbeitsprofile .schritte-quer .schritte li::before { width: 34px; height: 34px; font-size: 1.4em; margin-bottom: 3mm; }
  body.arbeitsprofile .schritte-quer .schritte h3 { font-size: 12pt; margin-bottom: 3pt; }
  .anleitung-unten { gap: 12mm; margin-bottom: 0; }
  .tipps-box { padding: 5mm 6mm; font-size: 10.5pt; line-height: 1.45; break-inside: avoid; }
  .tipps-box h3 { font-size: 12pt; margin-bottom: 4pt; }
  .tipps-box li { margin-bottom: 5pt; padding-left: 15pt; }
  .anleitung-unten > img { max-width: none; max-height: 82mm; width: auto; }

  /* Seite 3 */
  .canvas-bild img { max-height: 148mm; width: auto; max-width: 100%; margin: 0 auto; }

  /* Seite 4 */
  .baukasten { gap: 5mm; }
  .baukasten--ziel { margin-bottom: 7mm; }
  .baustein { break-inside: avoid; }
  .baustein h3 { margin-bottom: 3pt; font-size: 11pt; }
  .baustein .prompt-kasten { padding: 3.5mm 4.5mm; }
  body.arbeitsprofile .inhalt .baustein pre { font-size: 9.5pt; line-height: 1.38; padding: 0; }
  .baukasten-plus { font-size: 44pt; margin: 2mm 0 0; }
}
@media print {
  body.arbeitsprofile .hero { margin-top: -2mm; }
  body.arbeitsprofile .hero h1 { font-size: 24pt; }
  body.arbeitsprofile .karte { padding: 3mm 4.5mm; line-height: 1.35; }
  .funktionen-tabelle { font-size: 8.5pt; line-height: 1.25; }
  .funktionen-tabelle td, .funktionen-tabelle tbody th { padding: 3pt 7pt; }
  /* Seite 4: schmalere Bausteine, mehr Weißraum zwischen den Spalten */
  .baukasten { column-gap: 12mm; }
  .baukasten--ziel { width: 82%; margin-left: auto; margin-right: auto; }
  .baukasten-plus { margin: 4mm 0 2mm; }
  .baukasten--ziel { margin-bottom: 9mm; }
  body.arbeitsprofile .inhalt .baustein pre { font-size: 9pt; }
}
@media print {
  body.arbeitsprofile .hero-bild { width: 16mm; }
}
@media print {
  .baukasten--ziel { width: 90%; }
}
@media print {
  /* Außenränder wie andere Querformat-Handouts, dafür Abstand zwischen Inhalt und Fußzeile */
  body.arbeitsprofile .seite { min-height: 189mm; }
  body.arbeitsprofile .seite > .inhalt { padding-bottom: 7mm; }
  body.arbeitsprofile .hero-bild { width: 18mm; }
  .canvas-bild img { max-height: 155mm; }
}
@media print {
  body.arbeitsprofile .hero { margin-top: 0; padding-top: 1mm; }
}
.baukasten-danach { text-align: center; max-width: 820px; margin: 0 auto 24px; }
@media print {
  .baukasten--ziel { margin-bottom: 5mm; }
  .baukasten-danach { font-size: 10pt; max-width: 210mm; margin-bottom: 5mm; }
}
@media print {
  .baukasten-plus { font-size: 38pt; margin: 1mm 0 0; }
  body.arbeitsprofile .nur-druck { margin-top: 4pt; }
}
.baukasten-danach { text-align: left; }
@media print {
  .baukasten-danach { width: 90%; max-width: none; }
}
