/* Kursfenster fuer Microtrainings (ZMS-Site /myzms/MT) – mobile first.
   Handy: Kopfleiste, Seitenliste ausklappbar, Blaettern unten fest; ab 900px Seitenliste links.
   Quelle: ZMS6\knowledge21\mt_theme\ (dort aendern, dann mt_theme_einrichten.py). */
:root { --rot: #d0161b; --dunkel: #241f1a; --grau: #5f5749; --linie: #e6dfd2; --blau: #005c97;
  /* Farben nach CraftPartner (craftpartner.eu style.css: putty #efe9de, card #fbf8f2, line #d6cdbc, ink #241f1a,
     muted #5f5749), etwas milder; Kopf bleibt das Original-Banner, theme-color rot */
  --seite: #f4f0e8; --karte: #fdfbf7; --hover: #f0ebe1; --kreis: #ebe5da;
  --steuer: rgb(247, 245, 241); --steuer-linie: #e6dfd2; --steuer-h: 48px; --kopf: 56px;
  --unten: calc(var(--steuer-h) + 1px); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.mt { margin: 0; background: var(--seite); color: var(--dunkel); font: 17px/1.5 Arial, Helvetica, sans-serif;
  padding-bottom: calc(var(--unten) + env(safe-area-inset-bottom)); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: .4rem .8rem; }
.skip:focus { left: 8px; top: 8px; }
img, video { max-width: 100%; height: auto; }

/* Kopfleiste wie im Original: Kurslogo (720x49, RELOAD rechts) rechtsbuendig, links davon das Binaermuster
   (gespiegelte Kachel aus dem Logo, nahtlos), Knopf MT + Menue, Titel weiss, darunter Seitenkaestchen */
/* Handy: ohne RELOAD-Logo (mehr Platz fuer den Kurstitel), nur das Muster; rechts der Schliessen-Knopf */
.mt-kopf { --h: var(--kopf); position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 6px; height: var(--h);
  padding: 0 calc(4px + env(safe-area-inset-right)) 0 max(2px, env(safe-area-inset-left)); color: #fff;
  background: var(--muster) right center / auto 100% repeat-x, var(--kopf-farbe, #005a93); }
.mt-kopf__schliessen { position: absolute; right: calc(4px + env(safe-area-inset-right)); top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  color: #fff; background: rgba(0, 30, 70, .45); }
.mt-kopf__schliessen:hover { background: var(--rot); }
.mt-kopf__schliessen:focus-visible { outline: 3px solid #ffd54a; outline-offset: 1px; }
/* Handy mit genug Platz (mt.js setzt .mt-kopf--logo, wenn der Kurstitel daneben ungekuerzt passt):
   RELOAD-Logo links neben dem Schliessen-Knopf; Muster endet nahtlos am linken Logorand */
@media (max-width: 899px) {
  .mt-kopf.mt-kopf--logo { padding-right: calc(4px + var(--h) * var(--logo-frei, 2.3103) + env(safe-area-inset-right));
    background: var(--logo) right center / auto 100% no-repeat,
      var(--muster) right calc(var(--h) * var(--logo-r, 14.6939)) center / auto 100% repeat-x, var(--kopf-farbe, #005a93); }
}
/* Schliessen nur im Kopf, nicht in den Steuerzeilen (Handy und breit) */
.mt-steuer .mt-mitte .mt-schliessen { display: none; }
/* seit 2026-11-12: links im Kopf nur das Kurslogo (Wissenstyp MT/K ueberlappend oben links, kursbild.css);
   Menueknopf wie bei baumarktwissen (menue.png) ganz links in der oberen Steuerzeile */
.mt-kopf__links { position: relative; flex: none; width: 52px; height: 44px; }
.mt-blaettern .mt-menue { padding: 0 4px; }
.mt-menue img { display: block; width: 32px; height: 31px; }
.mt-menue:hover { background: var(--hover); }
.mt-menue-platz { display: block; width: 40px; }

/* Kurslogo: nur die Lage im Kopf (Original elo_CoursePic links 31px); Aussehen (Bild 36px, Status unten rechts,
   Empfehlung oben rechts) zentral in /myzms/kursdienst/datei?n=kursbild.css wie in Kurslisten und Lernstatus */
.mt-kursicon { position: absolute; left: 0; top: 4px; line-height: 0; }
.mt-kursicon .k21-kurs__start:hover .k21-kurs__bild { outline-color: #fff; }
.mt-kopf { column-gap: 12px; }

.mt-kopf__mitte { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
/* Seitenkaestchen + kleines Schliessen-X direkt dahinter (X bleibt sichtbar, Kaestchen werden notfalls abgeschnitten) */
.mt-kopfzeile2 { display: flex; align-items: center; gap: 5px; min-width: 0; }
.mt-kopfzeile2 .mt-kaestchen { flex: 0 1 auto; min-width: 0; }
.mt-kaestchen__schliessen { flex: none; position: relative; display: grid; place-items: center; width: 18px; height: 18px; margin: -5px 0;
  padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .35); cursor: pointer; }
.mt-kaestchen__schliessen svg { width: 11px; height: 11px; }
.mt-kaestchen__schliessen::before { content: ""; position: absolute; inset: -9px; }
.mt-kaestchen__schliessen:hover { background: var(--rot); }
.mt-kaestchen__schliessen:focus-visible { outline: 3px solid #ffd54a; outline-offset: 1px; }
/* Anmeldedaten rechts im Kopf wie bei baumarktwissen (bm_theme .k-kopf__konto) */
.mt-kopf__konto { flex: none; display: flex; align-items: center; color: #fff; font: bold 13px/18px Arial, Helvetica, sans-serif;
  white-space: nowrap; }
.mt-kopf__konto a { color: #fff; text-decoration: underline; }
.mt-login { display: inline-flex; gap: .25rem; align-items: center; padding: 4px 6px; background: rgba(0, 0, 0, .35); border-radius: 3px; }
.mt-kopf__konto .konto__block { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; padding: 2px 6px;
  background: rgba(0, 0, 0, .35); border-radius: 3px; }
.mt-kopf__konto .konto__name { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; line-height: 14px; }
.mt-kopf__konto .konto__rollen { font-size: 9px; line-height: 10px; font-weight: normal; }
.mt-kopf__konto .konto__rollen abbr { text-decoration: none; margin-left: 2px; }
.mt-kopf__konto .konto__aktionen { display: inline-flex; gap: .7rem; font-size: 11px; line-height: 13px; }
.mt-kopf__konto .konto__benutzer { max-width: 26vw; overflow: hidden; text-overflow: ellipsis; }
/* Handy: Rollenkuerzel und Symbol nur als Tooltip (wie bm_theme) */
.mt-kopf__konto .konto__rollen, .mt-kopf__konto .konto__name svg { display: none; }
/* Handy: Titel bis zwei Zeilen (sonst fehlt z. B. "5. Abkleben"), breit: eine Zeile */
.mt-kopf__titel { color: #fff; font: bold 16px/1.12 Arial, Helvetica, sans-serif; letter-spacing: .01em; text-decoration: none;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 20, 50, .9), 0 0 8px rgba(0, 30, 70, .7); }
.mt-kopf__titel:hover { text-decoration: underline; }
.mt-kaestchen { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; line-height: 0; overflow: hidden; }
.mt-kaestchen img { display: block; width: 11px; height: 8px; }
.mt-kaestchen a, .mt-kaestchen span { display: block; padding: 4px 1px; margin: -4px 0; }
.mt-kaestchen a:hover img { outline: 1px solid #fff; }
/* besuchte Seiten (mt.js, localStorage): gruener statt grauer Rahmen; gut sichtbares Gruen auf dem blauen Kopf */
.mt-kaestchen a.besucht img { outline: 2px solid #4cc26a; outline-offset: -2px; }
.mt-kaestchen a.besucht:hover img { outline-color: #fff; }
/* Verbindungslinie des Original-Baums weg: Kaestchen linksbuendig mit dem Kurstitel (Kaestchen-Link hat 1px Rand) */
.mt-kaestchen img.mt-kaestchen__linie { display: none; }
.mt-kaestchen > :nth-child(2) { margin-left: -1px; }
.mt-menue:focus-visible, .mt-kaestchen a:focus-visible, .mt-kopf__titel:focus-visible, .mt-blaettern a:focus-visible,
.mt-blaettern button:focus-visible, .mt-seiten a:focus-visible { outline: 3px solid #ffd54a; outline-offset: -3px; }

/* Seitenliste: Handy = Leiste ueber dem Inhalt */
.mt-rumpf { position: relative; max-width: 1180px; margin: 0 auto; }
/* Menuebaum: gleicher HG wie die Steuerzeile */
/* Handy: geoeffnet als Leiste links (nicht ueber die ganze Breite, seit 2026-11-12), rechts daneben bleibt der Inhalt
   sichtbar (abgedunkelt); Tippen daneben oder Escape schliesst (mt.js) */
.mt-seiten { display: none; position: fixed; z-index: 28; top: calc(var(--kopf) + var(--steuer-h) + 1px); left: 0;
  width: min(320px, 85vw); bottom: calc(var(--unten) + env(safe-area-inset-bottom));
  overflow: auto; background: var(--steuer); padding: 8px 0 16px; border-right: 1px solid var(--steuer-linie);
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .25), 4px 0 18px rgba(0, 0, 0, .2); }
.mt-seiten-auf .mt-seiten { display: block; }
.mt-seiten ol { list-style: none; margin: 0; padding: 0; }
.mt-seiten a { display: flex; align-items: center; gap: 10px; min-height: 28px; padding: 1px 16px; line-height: 1.2; color: var(--dunkel);
  text-decoration: none; border-left: 4px solid transparent; }
.mt-seiten a:hover { background: var(--hover); }
/* Nummern als Rechtecke wie die Seitenkaestchen im Kopf (frame0/frame1, Verhaeltnis 11:8), nur groesser:
   weiss mit grauem Rand, besucht gruener Rand, aktuelle Seite rot gefuellt */
.mt-seiten .nr { flex: none; display: inline-grid; place-items: center; width: 33px; height: 24px; border-radius: 2px;
  background: #fff; border: 2px solid rgb(128, 142, 151); color: var(--grau); font-size: 13px; font-weight: bold; }
.mt-seiten .besucht .nr { border-color: #4cc26a; }
.mt-seiten .t { min-width: 0; }
.mt-seiten .ebene2 a { padding-left: 34px; font-size: 15px; }
.mt-seiten .ebene3 a { padding-left: 52px; font-size: 15px; }
.mt-seiten .aktiv a { border-left-color: var(--rot); background: var(--karte); font-weight: bold; }
.mt-seiten .aktiv .nr { background: rgb(198, 110, 108); border-color: rgb(128, 142, 151); color: #fff; }
.mt-konto { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 10px 16px 0; padding-top: 10px;
  border-top: 1px solid var(--steuer-linie); font-size: 14px; color: var(--grau); }
.mt-konto span { display: inline-flex; gap: 4px; align-items: center; }
.mt-konto a { color: var(--blau); }

/* Inhalt */
.mt-inhalt { min-width: 0; background: var(--karte); padding: 14px 16px 28px; position: relative; z-index: 0; }
/* ZMS-2-Kaestchen bringen z-index 52 mit; in Flex-Containern (.mt-einstieg) wirkt der auch ohne position und
   lag dann ueber dem ausgeklappten Menuebaum. z-index 0 der Inhaltsspalte kapselt alles darunter. */
.mt-body .contentbox { z-index: auto !important; }
.mt-body { overflow-wrap: anywhere; }
/* absolute Positionen des Originals (contentbox left/top, posX/posY) fliessen untereinander */
.mt-body:not(.mt-original) .contentbox, .mt-body:not(.mt-original) [style*="position:absolute"],
.mt-body:not(.mt-original) [style*="position: absolute"] {
  position: static !important; left: auto !important; top: auto !important; width: auto !important; max-width: 100%; }
.mt-body .contentbox { margin: 0 0 1rem; }
/* uebereinander gelegte Elemente (mt.js lageAnordnen, z. B. B01 Beratungsgespraeche) */
.mt-body.mt-original { position: relative; }
.mt-body.mt-original .contentbox { position: absolute; margin: 0; }
.mt-body.mt-original p, .mt-gruppe--ueber p { margin: 0; }
/* Text ohne Absatz (z. B. Sprechblase Kunde) wie im Original kleiner, damit er in seinen Rahmen passt */
.mt-body.mt-original .contentbox, .mt-body .mt-gruppe--ueber > .contentbox.mt-ueber { font-size: 13px; line-height: 19px; }
.mt-body.mt-original .contentbox p#text:not(.caption), .mt-gruppe--ueber p#text:not(.caption) { font-size: 15px; line-height: 22px; }
.mt-body.mt-original p.caption, .mt-gruppe--ueber p.caption { font-size: 12px; line-height: 18px; }
.mt-body.mt-original img, .mt-gruppe--ueber img { max-width: none; }
.mt-lage-rest { padding: 0 16px; }
/* Beratungsgespraeche schmal: Originallage verkleinert (mt.js, data-lage="skaliert") */
.mt-body.mt-skaliert { height: auto !important; }
.mt-szene-huelle { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.mt-szene { position: relative; }
.mt-szene-huelle + .mt-szene-huelle { margin-top: 14px; }
.mt-szene-knopf { display: inline-block; margin: 0 0 8px; padding: 5px 12px 5px 30px; font: inherit; font-size: 14px;
  line-height: 20px; color: #4a4a4a; background: #fdfbf7 no-repeat 9px center; border: 1px solid #d8d0c2; border-radius: 4px;
  cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%23666' stroke-width='1.6'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath d='M9.4 9.4L13 13M4 6h4M6 4v4'/%3E%3C/svg%3E"); }
.mt-szene-huelle--gross { border: 1px dashed #d8d0c2; }
/* MT: Grafik mit Beschriftungen / Rahmen mit Text in Originallage (mt.js .mt-lagen), schmal maszstaeblich verkleinert */
.mt-body .mt-lagen { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 32px; margin: 0 0 1rem; }
.mt-body .mt-lage { position: relative; overflow: hidden; flex: none; max-width: 100%; }
.mt-body .mt-lage__innen { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.mt-body .mt-lage .contentbox.mt-lage__el { position: absolute !important; left: var(--l) !important; top: var(--t) !important;
  margin: 0; max-width: none; width: auto !important; }
.mt-body .mt-lage .contentbox.mt-lage__el .contentbox { margin: 0; }
.mt-body .mt-lage .contentbox.mt-lage__text { width: var(--w, auto) !important; font-size: 13px; line-height: 19px; }
.mt-body .mt-lage .contentbox.mt-lage__kurz { white-space: nowrap; line-height: 1.25; }
.mt-body .mt-lage p { margin: 0; }
.mt-body .mt-lage img { max-width: none; height: auto; }
.mt-body .mt-gruppe { position: relative; max-width: 100%; margin: 0 0 1rem; }
.mt-body .mt-gruppe .contentbox { margin: 0; }
.mt-body .mt-gruppe--ueber > .contentbox.mt-ueber { position: absolute !important; left: var(--l) !important;
  top: var(--t) !important; width: var(--w, auto) !important; max-width: none; line-height: 1.4; }
.mt-body .mt-gruppe__bild { position: relative; line-height: 0; }
.mt-body .mt-gruppe__bild img { max-width: 100%; height: auto; }
.mt-body .mt-gruppe__bild > .contentbox.mt-klein { position: absolute !important; left: var(--l) !important;
  top: var(--t) !important; width: var(--w) !important; }
.mt-body .mt-gruppe__bild > .contentbox.mt-klein img { width: 100%; }
.mt-body .mt-gruppe__text { margin-top: 6px; padding: 8px 12px; background: #e3e8ec; border: 1px solid #a9b2ba; border-radius: 10px; }
.mt-body .mt-gruppe__text .contentbox { margin: 0 0 .5rem; }
.mt-body .mt-gruppe__text .contentbox:last-child { margin-bottom: 0; }
.mt-body .mt-klickziel { position: relative; }
.mt-body a.mt-klick-ganz { position: absolute; inset: 0; z-index: 3; }
.mt-body .mt-gruppe--ueber > .contentbox.mt-ueber > a.mt-klick-ganz, .mt-body .mt-gruppe--ueber > .mt-ueber a[href] > img[src*="spacer"] { height: var(--h); }
.mt-body a.mt-klick-ganz img { display: none; }
.mt-body a.mt-klick-ganz:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }
.mt-body img { max-width: 100%; height: auto; }
.mt-body table { max-width: 100%; }
.mt-body p, .mt-body .ZMSTextarea p { font-size: 17px; line-height: 1.5; }
.mt-body p.leer { display: none; }
.mt-body h1, .mt-body h2, .mt-body h3, .mt-body h4 { font-family: Arial, Helvetica, sans-serif; color: var(--dunkel); line-height: 1.25; }
/* Seitenueberschriften der Inhalte doppeln den Titel des Fensters */
.mt-body > .headline_1:first-child, .mt-body > h1:first-child { display: none; }
.mt-body a { color: var(--blau); }
.mt-body .caption_noir, .mt-body figcaption { font-size: 14px; color: var(--grau); margin-top: 6px; }
/* Startseite: Kursbild links, Einfuehrung daneben; erst wenn der Text keine ~190px mehr hat, darunter (mt.js) */
.mt-body .mt-einstieg { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 16px; margin: 0 0 1rem; }
.mt-body .mt-einstieg .contentbox { margin: 0; }
.mt-body .mt-einstieg__bild { flex: 0 0 auto; width: clamp(110px, 35%, 174px) !important; }
.mt-body .mt-einstieg__bild img { display: block; width: 100%; height: auto; border-radius: 4px; }
.mt-body .mt-einstieg__text { flex: 1 1 190px; min-width: 0; }
.mt-body .mt-einstieg__text p { margin-top: 0; }
/* Kursstartseite (B01): Text links, Bild am rechten Rand (row-reverse: Bild bleibt beim Umbrechen oben) */
.mt-body .mt-einstieg--rechts { flex-direction: row-reverse; justify-content: space-between; }
.mt-body .mt-einstieg--rechts .mt-einstieg__bild { width: clamp(120px, 32%, 180px) !important; }
.mt-body .mt-einstieg--rechts .mt-einstieg__bild .graphic { width: auto !important; }
.mt-body .mt-einstieg--rechts .mt-einstieg__text { flex: 1 1 260px; width: auto !important; }
/* MT-Startseite (mt.js .mt-start, 2026-11-17): oben Text | Bild, unten Aktionen | Weitere Informationen;
   schmal: Bild ueber dem Text, Weitere Informationen hinter den Aktionen */
.mt-body .mt-start .contentbox { width: auto !important; max-width: 100%; margin: 0; }
.mt-body .mt-start .contentbox.k21-aktionen { width: 300px !important; }
.mt-body .mt-start__oben { display: flex; flex-direction: column; gap: 12px; margin: 0 0 1.4rem; }
.mt-body .mt-start__oben > .mt-start__bild { order: -1; }
.mt-body .mt-start__text { min-width: 0; }
.mt-body .mt-start__text p:first-child { margin-top: 0; }
.mt-body .mt-start__bild { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.mt-body .mt-start__bild .graphic, .mt-body .mt-start__bild span { width: auto !important; }
.mt-body .mt-start__bild img { display: block; max-width: 100%; height: auto; border-radius: 4px; }
.mt-body .mt-start--oben-an .mt-start__oben { flex-direction: row; align-items: flex-start; gap: 28px; }
.mt-body .mt-start--oben-an .mt-start__oben > .mt-start__bild { order: 0; flex: 0 0 auto; max-width: 40%; }
.mt-body .mt-start--oben-an .mt-start__text { flex: 1 1 0; }
.mt-body .mt-start__unten { display: flex; flex-direction: column; gap: 1.4rem; margin: 0 0 1rem; }
.mt-body .mt-start--unten-an .mt-start__unten { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 48px; align-items: start; }
.mt-body .mt-start__aktionen > .contentbox + .contentbox { margin-top: 10px; }
/* ENTWURF freundlichere Anmeldeseite (mt.js .mt-anm2, 2026-11-17, vorerst nur Deltaschleifer Produktmerkmale) */
.mt-anm2 { container-type: inline-size; }
.mt-anm2__gruss { display: flex; align-items: flex-end; gap: 14px; margin: 0 0 22px; }
.mt-anm2__roboter { flex: 0 0 auto; width: 110px; height: auto; }
.mt-anm2__blase { position: relative; flex: 1 1 auto; margin-bottom: 34px; padding: 14px 18px; background: #fff;
  border: 1px solid var(--linie); border-radius: 16px; box-shadow: 0 2px 8px rgba(36,31,26,.06); }
.mt-anm2__blase::before { content: ""; position: absolute; left: -9px; bottom: 18px; width: 16px; height: 16px; background: #fff;
  border-left: 1px solid var(--linie); border-bottom: 1px solid var(--linie); transform: rotate(45deg); }
.mt-anm2__blase p { margin: 0; line-height: 1.4; }
.mt-anm2__hallo { font-size: 24px; font-weight: bold; color: var(--rot); }
.mt-anm2__titel { font-size: 17px; font-weight: bold; color: var(--dunkel); margin-bottom: 4px !important; }
.mt-anm2__wege { display: grid; gap: 16px; }
@container (min-width: 620px) { .mt-anm2__wege { grid-template-columns: 1fr 1fr; } .mt-anm2__roboter { width: 140px; } }
.mt-anm2__weg { position: relative; padding: 16px 18px 18px; background: #fff; border: 1px solid var(--linie); border-radius: 12px; }
.mt-anm2__weg--frei { border-top: 4px solid #2f4a3c; }
.mt-anm2__weg--konto { border-top: 4px solid var(--blau); }
.mt-anm2__nr { position: absolute; top: 14px; right: 16px; margin: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--kreis); color: var(--grau); font-weight: bold; }
.mt-anm2__weg h2 { margin: 0; font-size: 20px; color: var(--dunkel); }
.mt-anm2__unter { margin: 0 0 12px; color: var(--grau); font-size: 15px; }
.mt-anm2__kern { margin: 0 0 6px; font-weight: bold; }
.mt-anm2 .mt-haftung { margin: 8px 0 0; border-width: 1px; border-color: var(--linie); background: var(--karte); }
.mt-anm2 .mt-haftung--ok { border-color: #2e9e4f; }
.mt-anm2 .mt-haftung__frage { font-weight: normal; font-size: 15px; }
.mt-anm2__lesen { margin: 0; }
.mt-anm2 .mt-anm2__los { margin-top: 14px; background: #2f4a3c; }
.mt-anm2__vorteile p { margin: 0 0 4px; }
.mt-anm2__vorteile ul { margin: 0 0 10px; padding: 0; list-style: none; }
.mt-anm2__vorteile li { position: relative; padding-left: 24px; margin: 3px 0; line-height: 1.35; }
.mt-anm2__vorteile li::before { content: "✓"; position: absolute; left: 2px; color: #2e9e4f; font-weight: bold; }
.mt-anm2__klein { margin: 0 0 10px; font-size: 14px; color: var(--grau); }
.mt-anm2 form.k21-anmeldung p { margin: 0 0 10px; }
.mt-anm2 form.k21-anmeldung label { display: block; font-size: 15px; color: var(--grau); }
.mt-anm2 form.k21-anmeldung input { box-sizing: border-box; width: 100%; max-width: 320px; height: 40px; margin-top: 3px;
  padding: 0 10px; border: 1px solid #cfc6b6; border-radius: 6px; font-size: 16px; background: #fff; }
.mt-anm2 form.k21-anmeldung input:focus { outline: 2px solid var(--blau); outline-offset: 1px; }
.mt-anm2 form.k21-anmeldung .mt-knopf { background: var(--blau); }
.mt-anm2__text { margin-top: 22px; border-top: 1px solid var(--linie); padding-top: 10px; }
.mt-anm2__text summary { cursor: pointer; font-size: 17px; color: var(--dunkel); padding: 6px 0; list-style: none;
  display: flex; align-items: center; gap: 6px; }
.mt-anm2__text summary::-webkit-details-marker { display: none; }
.mt-anm2__text summary .auf, .mt-anm2__text[open] summary .zu { display: none; }
.mt-anm2__text[open] summary .auf { display: inline; }
.mt-anm2__text + .mt-anm2__text { margin-top: 4px; }
.mt-anm2__text .mt-anm2__erledigt { margin: 4px 0 12px; }
.mt-anm2__vorschau { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; padding: 6px 10px;
  background: #fff6d6; border: 1px dashed #c9a227; border-radius: 8px; font-size: 14px; color: var(--grau); }
.mt-anm2__vorschau a { padding: 3px 12px; border-radius: 14px; color: var(--blau); text-decoration: none; border: 1px solid transparent; }
.mt-anm2__vorschau a[aria-current] { background: #fff; border-color: #c9a227; color: var(--dunkel); font-weight: bold; }
.mt-anm2__info {padding: 4px 0 8px 22px; color: var(--grau); line-height: 1.6; }
/* Entwurf S: Start + Anmeldung als eine Seite */
.mt-anm2--s .mt-anm2__willkommen { margin: 0 0 14px; font-size: 24px; line-height: 1.3; color: var(--dunkel); }
.mt-anm2--s .mt-anm2__willkommen span { color: var(--rot); }
.mt-anm2--s .mt-start__oben { margin-bottom: 18px; }
.mt-anm2--s .mt-anm2__frei .mt-anm2__los { margin-top: 0; }
.mt-anm2__text .mt-anhang { margin-top: 6px; border-top: 0; padding-top: 0; }
.mt-body .contentbox.mt-anm2-box { position: static !important; width: auto !important; }
/* B: Empfangsdame + Umschalter */
.mt-anm2--b .mt-anm2__tabs { display: inline-flex; padding: 4px; margin: 0 0 12px; background: var(--kreis); border-radius: 24px; }
.mt-anm2--b .mt-anm2__tabs button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 20px; background: transparent;
  font: bold 15px Arial, Helvetica, sans-serif; color: var(--grau); cursor: pointer; }
.mt-anm2--b .mt-anm2__tabs button[aria-selected="true"] { background: #fff; color: var(--rot); box-shadow: 0 1px 4px rgba(36,31,26,.15); }
.mt-anm2--b .mt-anm2__tafel { padding: 16px 18px 18px; background: #fff; border: 1px solid var(--linie); border-radius: 12px; max-width: 640px; }
/* C: Gespraech mit dem Lernbegleiter */
.mt-anm2__chat { display: flex; flex-direction: column; gap: 10px; max-width: 680px; }
.mt-anm2__msg { display: flex; align-items: flex-end; gap: 8px; }
.mt-anm2__msg--da { animation: mt-anm2-auf .3s ease-out; }
.mt-anm2__ava { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--linie);
  display: grid; place-items: center; overflow: hidden; }
.mt-anm2__kopf { width: 38px; height: auto; }
.mt-anm2__sb { padding: 10px 14px; background: #fff; border: 1px solid var(--linie); border-radius: 16px 16px 16px 4px; line-height: 1.45; min-width: 0; }
.mt-anm2__msg--ich { justify-content: flex-end; }
.mt-anm2__msg--ich .mt-anm2__sb { background: var(--blau); color: #fff; border-color: var(--blau); border-radius: 16px 16px 4px 16px; }
.mt-anm2__sb .mt-anm2__vorteile ul { margin-bottom: 0; }
.mt-anm2__wahl { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.mt-anm2__wahl button { min-height: 40px; padding: 0 16px; border: 2px solid var(--blau); border-radius: 20px; background: #fff;
  color: var(--blau); font: bold 15px Arial, Helvetica, sans-serif; cursor: pointer; }
.mt-anm2__wahl button:hover { background: var(--blau); color: #fff; }
@keyframes mt-anm2-auf { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .mt-anm2__arm2 { transform-origin: 126px 128px; animation: mt-anm2-winken 2.4s ease-in-out 0.4s 2; }
  .mt-anm2__arm { transform-origin: 114px 128px; animation: mt-anm2-winken 2.4s ease-in-out 0.4s 2; }
  .mt-anm2__lampe { animation: mt-anm2-blinken 3s ease-in-out infinite; }
}
@keyframes mt-anm2-winken { 0%, 100% { transform: rotate(0); } 20%, 60% { transform: rotate(-14deg); } 40%, 80% { transform: rotate(8deg); } }
@keyframes mt-anm2-blinken { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
/* Video (elo_flash mit MP4) */
.k21-video { margin: 0 0 1.2rem; }
.k21-video video { display: block; width: 100%; max-width: 720px; aspect-ratio: 4 / 3; background: #000; border-radius: 6px; }
/* Hauptmenue: Schrittzeile mit Original-Balken (Symbol links) als Hintergrund, siehe mt.js */
.mt-body .mt-schritt { background: #efe9de no-repeat 0 0; background-size: auto 40px; min-height: 40px;
  display: flex; align-items: center; padding: 6px 8px 6px 46px; border-radius: 4px; }
.mt-body .mt-schritt p { margin: 0; }
.mt-body .mt-schritt a { font-size: 18px; }
/* Text links, Bild rechts (mt.js .mt-zweispaltig), schmal untereinander; Legenden mit Farbmarken (.mt-legende) */
.mt-body .mt-zweispaltig__bild img { display: block; max-width: 100%; height: auto; }
.mt-body .mt-zweispaltig--an { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(var(--bild-b, 360px), 45%)); column-gap: 20px; align-items: start; }
.mt-body .mt-zweispaltig .contentbox { width: auto !important; }
.mt-body ul.mt-legende { list-style: none; margin: 0; padding: 0; }
.mt-body ul.mt-legende li { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; padding: 0; background: none; }
.mt-body ul.mt-legende li::before { content: none; }
.mt-body .mt-legende__marke { flex: none; width: 14px; line-height: 0; }
.mt-body .mt-legende__marke img { width: 14px; height: 14px; }
.mt-body .mt-zweispaltig__bild > .contentbox + .contentbox { margin-top: 14px; }
.mt-body .mt-zweispaltig__bild embed, .mt-body .mt-zweispaltig__bild object, .mt-body .mt-zweispaltig__bild ruffle-embed,
.mt-body .mt-zweispaltig__bild ruffle-object, .mt-body .mt-zweispaltig__bild video { max-width: 100%; }
/* feste Breiten aus dem Original (z. B. Bildunterschrift p.caption_noir style="width:354px") nicht breiter als die
   Spalte - sonst ragt der Text ueber die verkleinerte Animation hinaus (Stuhl "Ecken und Kanten", seit 2026-11-14) */
.mt-body .mt-zweispaltig__bild [style*="width"]:not(embed):not(object):not(ruffle-embed):not(ruffle-object):not(video),
.mt-body .mt-zweispaltig__text [style*="width"] { max-width: 100%; box-sizing: border-box; }
/* Impressum: Bezeichnung | Text (mt.js .mt-raster) */
.mt-body .mt-raster .contentbox { width: auto !important; }
.mt-body .mt-raster__l img, .mt-body .mt-raster__r img { max-width: 100%; height: auto; }
.mt-body .mt-raster__r { margin-bottom: 18px; }
.mt-body .mt-raster--an { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); column-gap: 24px; align-items: start; }
.mt-body .mt-raster--an .mt-raster__kopf { grid-column: 1 / -1; margin-bottom: 12px; }
.mt-body .mt-raster--an .mt-raster__l, .mt-body .mt-raster--an .mt-raster__r { padding: 10px 0; border-top: 1px solid var(--linie); margin: 0; }
.mt-body .mt-raster__l h1, .mt-body .mt-raster__l h2, .mt-body .mt-raster__l h3, .mt-body .mt-raster__l h4 { margin: 0 0 8px; font-size: 15px; line-height: 1.3; overflow-wrap: normal; word-break: normal; hyphens: auto; }
.mt-body .mt-raster__l > .contentbox + .contentbox { margin-top: 10px; }
.mt-body .mt-raster__l p, .mt-body .mt-raster__r p { margin-top: 0; }
/* dichter (Wunsch des Nutzers 2026-11-15) */
.mt-body .mt-raster__r { margin-bottom: 8px; }
.mt-body .mt-raster--an { column-gap: 20px; }
.mt-body .mt-raster--an .mt-raster__l, .mt-body .mt-raster--an .mt-raster__r { padding: 6px 0 4px; }
.mt-body .mt-raster__l h1, .mt-body .mt-raster__l h2, .mt-body .mt-raster__l h3, .mt-body .mt-raster__l h4 { margin: 0 0 4px; }
.mt-body .mt-raster__l > .contentbox + .contentbox { margin-top: 4px; }
.mt-body .mt-raster__r p, .mt-body .mt-raster__r p.caption_noir { line-height: 1.4; margin-bottom: 0; }
.mt-body .mt-raster__r br:last-child { display: none; }
.mt-body .mt-raster__l img { display: block; }
.mt-body .mt-raster__l .contentbox, .mt-body .mt-raster__r .contentbox { margin-bottom: 0 !important; padding-bottom: 0 !important; min-height: 0 !important; }
.mt-body .mt-raster:not(.mt-raster--an) .mt-raster__l { margin-top: 10px; }
.mt-body .mt-raster:not(.mt-raster--an) .mt-raster__r { margin: 4px 0 6px; }
/* Aktionsfeld + Box daneben (mt.js .mt-paar) */
.mt-body .mt-paar--an { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 40px; align-items: start; }
.mt-body .mt-paar--an > .contentbox { width: auto !important; }
.mt-body .mt-paar--an > .mt-paar__neben { padding-top: 34px; }
/* Stand im Schritt "Trainieren" (Erreichbar / Erreicht / Fortschritt, mt.js) - rechts in der Zeile, schmal darunter */
.mt-body .mt-schritt--stand { flex-wrap: wrap; column-gap: 12px; row-gap: 4px; }
.mt-body .mt-schritt--stand > p { flex: 1 1 auto; }
.mt-body .mt-stand { display: flex; gap: 4px; margin-left: auto; font: 12px/1.2 Arial, Helvetica, sans-serif; }
.mt-body .mt-stand__feld { display: flex; flex-direction: column; align-items: center; min-width: 62px; padding: 3px 6px;
  background: #fff; border: 1px solid var(--linie); border-radius: 3px; }
.mt-body .mt-stand__feld--fs { min-width: 92px; }
.mt-body .mt-stand__k { color: var(--grau); font-size: 11px; }
.mt-body .mt-stand__w { font-weight: bold; font-size: 14px; color: var(--dunkel); white-space: nowrap; }
.mt-body .mt-stand__feld--fs .mt-stand__w { font-size: 12px; }
.mt-body .mt-stand__w img { vertical-align: -1px; }
/* Dekoration der ZMS-2-Seitenvorlage (3D-Gitter, Zielscheibe) passt nicht ins schmale Fenster */
.mt-body img[src*="wt_3dmesh"], .mt-body img[src*="wt_target"] { display: none; }
.mt-body .contentbox:has(> img[src*="wt_3dmesh"]), .mt-body .contentbox:has(> img[src*="wt_target"]) { display: none; }
/* Kurs-Hauptmenue (mt.js aus elo_MenuStatus): Tabelle Bearbeitungsstand wie im Original (Farben #cbd0d4/#dce2e6/#e7ecf0) */
.mt-hm-huelle { margin: 6px 0 16px; overflow-x: auto; }
.mt-body table.mt-hm { width: 100%; border-collapse: separate; border-spacing: 0 2px; font-size: 15px; line-height: 1.25; }
.mt-hm th, .mt-hm td { padding: 6px 6px; text-align: center; vertical-align: middle; white-space: nowrap; }
.mt-hm thead th, .mt-hm tfoot td { background: #cbd0d4; font-weight: bold; }
.mt-hm tbody td { background: #e7ecf0; }
.mt-hm tbody td:nth-child(odd) { background: #dce2e6; }
.mt-hm .mt-hm__wg { text-align: left; white-space: normal; padding-left: 10px; }
.mt-hm tbody .mt-hm__wg a { font-weight: bold; color: #0000bd; text-decoration: none; }
.mt-hm tbody .mt-hm__wg a::before { content: "›"; color: var(--rot); margin-right: 6px; font-size: 1.2em; }
.mt-hm tbody .mt-hm__wg a:hover { text-decoration: underline; }
.mt-hm .mt-hm__gesperrt { color: #8a8f94; }
.mt-hm td a { display: inline-flex; align-items: center; gap: 4px; color: #0000bd; }
.mt-hm td a img { display: block; }
.mt-hm .mt-hm__zahl { text-align: right; font-variant-numeric: tabular-nums; padding-right: 10px; }
.mt-hm .mt-hm__fs { text-align: left; }
.mt-hm .mt-hm__fs img { vertical-align: -1px; }
.mt-hm tr.mt-hm__z50 .mt-hm__ztext { color: #2e7d3c; font-weight: bold; }
.mt-hm thead th:first-child, .mt-hm tbody td:first-child, .mt-hm tfoot td:first-child { border-radius: 6px 0 0 6px; }
.mt-hm thead th:last-child, .mt-hm tbody td:last-child, .mt-hm tfoot td:last-child { border-radius: 0 6px 6px 0; }
.mt-hm__hinweis { margin: 6px 0 0; font-size: 13px; color: var(--grau); }
/* Handy: "starten" und Zustandstext nur als Symbol, enger */
@media (max-width: 599px) {
  .mt-body table.mt-hm { font-size: 14px; }
  .mt-hm th, .mt-hm td { padding: 6px 3px; }
  .mt-hm .mt-hm__wg { padding-left: 6px; }
  .mt-hm .mt-hm__start, .mt-hm .mt-hm__ztext { position: absolute; left: -9999px; }
  .mt-hm .mt-hm__zahl { padding-right: 5px; }
  .mt-hm .mt-hm__fs { text-align: center; }
}
/* Kurs-Hauptmenue (frueher): Kapitelliste */
.mt-body ul.mt-kapitel { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; gap: 4px; }
.mt-body ul.mt-kapitel li { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 10px;
  background: #fff; border: 1px solid var(--linie); border-radius: 6px; }
.mt-body ul.mt-kapitel a { flex: 1 1 auto; font-weight: bold; text-decoration: none; color: var(--blau); }
.mt-body ul.mt-kapitel a::before { content: "›"; display: inline-block; width: 14px; color: var(--rot); font-size: 1.3em; line-height: 1; }
.mt-body .mt-kapitel__stand { flex: none; font-size: 13px; color: #2e9e4f; white-space: nowrap; }
@media (min-width: 600px) { .mt-body ul.mt-kapitel { grid-template-columns: 1fr 1fr; } }
/* Wissenstest-Uebersicht: wie im Original Gitterglobus (wt_3dmesh, links oben hinter den Fragefeldern) und rechts
   daneben wt_target (nur bei genug Breite); mt.js setzt Klasse + Bildadressen */
.mt-body.mt-wissenstest { background: var(--wt-mesh) left 0 top 0 / min(358px, 100%) auto no-repeat; min-height: 340px; }
@media (min-width: 640px) {
  .mt-body.mt-wissenstest { background: var(--wt-target) left 540px top 0 / 152px auto no-repeat,
    var(--wt-mesh) left 0 top 0 / 358px auto no-repeat; }
}
@media (min-width: 640px) and (max-width: 1080px) {
  .mt-body.mt-wissenstest { background-position: right 0 top 0, left 0 top 0; }
}
/* weisser Bildgrund -> Kartenfarbe (sonst sichtbare Rechtecke) */
.mt-body.mt-wissenstest { background-color: var(--karte); background-blend-mode: multiply; }
.mt-body.mt-wissenstest .wt_bg { background: none; }
.mt-body.mt-wissenstest p.helptext { max-width: 480px; }
.mt-body .contentbox::after { content: ""; display: table; clear: both; }
/* Trainieren: Fragefelder als Raster, Hinweis darunter */
/* wie im Original: Felder 96x72, 8px Abstand, Kasten 538px = 5 je Zeile (Anordnung ist Teil der Aufgabe: Bildfolge
   des Beratungsgespraechs) -> immer 5 Spalten, auf dem Handy entsprechend kleiner (2026-11-14) */
.mt-body .contentbox:has(.wt_bg) { display: grid !important; grid-template-columns: repeat(5, minmax(0, 96px));
  gap: 8px; width: auto !important; max-width: 100%; }
@media (max-width: 420px) { .mt-body .contentbox:has(.wt_bg) { gap: 5px; } }
.mt-body .wt_bg { float: none !important; display: block; min-width: 0; }
.mt-body .wt_bg a, .mt-body .wt_bg img { display: block; }
.mt-body .wt_bg img { width: 100%; height: auto; aspect-ratio: 4 / 3; margin: 0 !important; float: none !important; }
.mt-body p.helptext { color: var(--grau); font-size: 15px; }
/* Multiple Choice: ganze Antwortzeile als Flaeche zum Antippen */
.mt-body #task_box p { font-size: 18px; font-weight: bold; margin: 0 0 12px; }
/* kompakt, damit auf dem Handy mehr Antworten auf einen Blick passen (ganze Zeile bleibt antippbar) */
/* Kreis und Zeile etwa so hoch wie zwei Textzeilen (17px x 1.25 x 2 = 42px) */
.mt-body #answer_box p { display: flex; align-items: center; gap: 8px; margin: 0 0 3px; padding: 2px 8px 2px 4px;
  min-height: 48px; line-height: 1.25; border: 1px solid var(--linie); border-radius: 4px; background: #fff; cursor: pointer; }
.mt-body #answer_box p:hover { background: var(--hover); border-color: #d6cdbc; }
.mt-body #answer_box p a { flex: none; line-height: 0; }
.mt-body #answer_box p img { width: 42px; height: 42px; max-width: none; }
/* Single Choice: radio_*.gif haben einen blaugrauen Hintergrund (Rechteck um den Kreis) -> je Bild eine Maske,
   die nur den Hintergrund ausblendet (rotes F des falsch angeklickten Symbols bleibt ganz; mt_masken_erzeugen.py).
   Bilder in /myzms/common/shared bleiben unveraendert, Wechsel per M_over/M_out wirkt weiter */
.mt-body img[src*="/shared/radio_"] { -webkit-mask: center / 100% 100% no-repeat; mask: center / 100% 100% no-repeat; }
.mt-body img[src$="/radio_36px.gif"] { -webkit-mask-image: url("maske_radio_36px.png"); mask-image: url("maske_radio_36px.png"); }
.mt-body img[src$="/radio_36px_over.gif"] { -webkit-mask-image: url("maske_radio_36px_over.png"); mask-image: url("maske_radio_36px_over.png"); }
.mt-body img[src$="/radio_false_Clicked.gif"] { -webkit-mask-image: url("maske_radio_false_Clicked.png"); mask-image: url("maske_radio_false_Clicked.png"); }
.mt-body img[src$="/radio_false_notClicked.gif"] { -webkit-mask-image: url("maske_radio_false_notClicked.png"); mask-image: url("maske_radio_false_notClicked.png"); }
.mt-body img[src$="/radio_ok_Clicked.gif"] { -webkit-mask-image: url("maske_radio_ok_Clicked.png"); mask-image: url("maske_radio_ok_Clicked.png"); }
.mt-body #answer_box .textblock { min-width: 0; }
.mt-body #taskcheck { margin-top: 12px; font-size: 16px; line-height: 1.45; }
/* Eingabe-Knopf (btn_calcScore 122x26): erste Zeile des Hilfstexts mittig daneben statt auf der Grundlinie */
.mt-body #taskcheck img { vertical-align: middle; margin: -4px 4px 0 0; }
/* Aufgabenfeld rot umrandet, Fragestellung rot; nach richtiger Antwort gruen flackernd (mt.js setzt die Klassen) */
.mt-body .task.mt-aufgabe { border: 2px solid var(--rot); border-radius: 8px; padding: 6px 8px 8px; margin: 4px 0 10px; }
.mt-body .task.mt-aufgabe #task_box p { color: var(--rot); }
.mt-body .task.mt-aufgabe.mt-richtig #task_box p:not(.mt-mc-mehrere) { color: #2e9e4f; }
.mt-body .task.mt-aufgabe.mt-richtig { border-color: #2e9e4f; animation: mt-flackern 1.6s ease-out 1; }
@keyframes mt-flackern {
  0%, 25%, 50%, 75% { border-color: #2e9e4f; box-shadow: 0 0 0 4px rgba(46, 158, 79, .45); }
  12%, 37%, 62% { border-color: transparent; box-shadow: none; }
  100% { border-color: #2e9e4f; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .mt-body .task.mt-aufgabe.mt-richtig { animation: none; } }
/* Mehrfachauswahl: rote Linie (mt.js) von der Mitte des ersten Kaestchens bis zur Mitte des Eingabe-Knopfs, ueber
   den Zeilenflaechen, aber hinter Kaestchen und Knopf */
.mt-mc-linie { position: absolute; z-index: 1; width: 3px; border-radius: 2px; background: var(--rot); pointer-events: none; }
.mt-body #answer_box p a[href], .mt-body #taskcheck a[href] { position: relative; z-index: 2; }
/* Trefferflaeche des Eingabe-Knopfs groesser als das Bild (leicht zu treffen), Darstellung unveraendert */
/* Knopf links, Hinweistext als eigene Spalte rechts daneben; der Text beginnt auf Hoehe der Oberkante des Knopfs
   (negativer Rand gleicht den Zeilenabstand ueber der ersten Zeile aus) */
.mt-body #taskcheck { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 10px; }
.mt-body #task_box p.mt-mc-mehrere, .mt-body .task.mt-aufgabe #task_box p.mt-mc-mehrere { margin: -8px 0 10px; font-size: 15px; font-weight: normal; color: var(--grau); }
.mt-body .task #task_box p.mt-mc-mehrere.mt-mc-mehrere--blass { color: #d6d0c6; }
.mt-body #task_box p:has(+ p.mt-mc-mehrere) { margin-bottom: 10px; }
.mt-body #taskcheck .eld_imageHotspot-hint { flex: 1 1 0; min-width: 0; margin-top: -5px; }
.mt-body #taskcheck a[href] { position: relative; display: block; flex: none; line-height: 0; margin: 0; }
/* Eingabe-Knopf so hoch wie die Antwortrechtecke (48px) statt der 26px-Grafik btn_calcScore_ger.gif (hochskaliert
   pixelig): per CSS in den Originalfarben nachgebaut (Rand rot #fd0202, Fuellung 180/198/217, Schrift rot) */
.mt-body #taskcheck a[href^="JavaScript:evaluate"], .mt-body #taskcheck a[href^="javascript:evaluate"] {
  display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box; height: 48px; padding: 0 18px 0 14px;
  border: 2px solid #fd0202; border-radius: 24px; background: linear-gradient(#c6d6e6, rgb(180, 198, 217));
  box-shadow: 0 0 0 1px rgba(254, 102, 102, .45); color: #fd0202; font: bold 19px/1 Arial, Helvetica, sans-serif;
  text-decoration: none; white-space: nowrap; }
.mt-body #taskcheck a[href^="JavaScript:evaluate"]::before, .mt-body #taskcheck a[href^="javascript:evaluate"]::before {
  content: ""; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.mt-body #taskcheck a[href^="JavaScript:evaluate"] img, .mt-body #taskcheck a[href^="javascript:evaluate"] img { display: none; }
.mt-body #taskcheck a[href^="JavaScript:evaluate"]:hover, .mt-body #taskcheck a[href^="javascript:evaluate"]:hover {
  background: linear-gradient(#d4e1ee, #c2d3e3); }
.mt-body #taskcheck a[href] img { vertical-align: top; margin: 0; }
.mt-body #taskcheck a[href]::after { content: ""; position: absolute; left: -8px; right: -6px; top: -12px; bottom: -10px; }
.mt-body input[type="radio"], .mt-body input[type="checkbox"] { width: 22px; height: 22px; }

/* Steuerzeile (oben unter dem Kopf mitlaufend, unten fest): HG rgb(247,245,241) wie die Seitenliste,
   Pfeile aus baumarktwissen (zurueck_mt.png / weiter_mt.png, an den HG angepasst) */
.mt-steuer--oben { position: sticky; top: var(--kopf); z-index: 29; border-bottom: 1px solid var(--steuer-linie); }
.mt-steuer--unten { position: fixed; z-index: 31; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--steuer-linie);
  padding-bottom: env(safe-area-inset-bottom); background: var(--steuer); }
.mt-blaettern { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; height: var(--steuer-h);
  padding: 0 6px; background: var(--steuer); }
.mt-blaettern a, .mt-blaettern button, .mt-blaettern .aus { display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  min-height: 42px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--grau);
  font: bold 15px/1 Arial, Helvetica, sans-serif; text-decoration: none; cursor: pointer; }
.mt-blaettern img[src*="_mt.png"] { width: 26px; height: 27px; transition: filter .15s; }
.mt-blaettern a:hover { background: var(--hover); color: var(--dunkel); }
.mt-blaettern a:hover img[src*="_mt.png"] { filter: brightness(.72); }
.mt-zurueck { justify-self: start; }
.mt-weiter { justify-self: end; }
.mt-blaettern .aus { opacity: .35; cursor: default; }
.mt-mitte { display: inline-flex; align-items: center; gap: 4px; }
.mt-seitenzahl { font-size: 13px; color: var(--grau); white-space: nowrap; }
.mt-blaettern .mt-schliessen { min-height: 36px; padding: 0 6px; gap: 5px; color: var(--grau); font: 13px/1 Arial, Helvetica, sans-serif; }
.mt-blaettern .mt-schliessen:hover { background: var(--hover); color: var(--dunkel); }
.mt-blaettern .mt-schliessen img, .mt-ende img { width: 16px; height: 16px; }
.mt-blaettern .mt-ende { color: var(--rot); }
.mt-blaettern .mt-ende:hover { background: var(--hover); }
.mt-kurz { display: none; }
/* beide Zeilen gleich: Menue (nur oben, unten Platzhalter) | Seitenueberschrift (nur oben, wie Titelleiste
   baumarktwissen.eu) | Zurueck (nur Pfeil, rechts vor der Seitenanzeige) | 7/14 | Weiter mit Schriftzug */
.mt-steuer .mt-blaettern { grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 2px; padding-left: 2px; }
.mt-steuertitel { min-width: 0; margin: 0 4px 0 0; text-align: left; color: var(--grau); font: bold 17px/1.15 Arial, Helvetica, sans-serif;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.mt-steuer .mt-lang { display: none; }
.mt-steuer .mt-kurz { display: inline; }
.mt-steuer .mt-zurueck span, .mt-steuer .mt-schliessen span { position: absolute; left: -9999px; }
.mt-steuer .mt-blaettern a, .mt-steuer .mt-blaettern button, .mt-steuer .mt-blaettern .aus { padding: 0 4px; }
.mt-steuer .mt-zurueck { padding: 0 2px; }
@media (max-width: 359px) { .mt-steuer .mt-weiter span { position: absolute; left: -9999px; } }
/* schmal: Beschriftung "Schliessen" nur als Symbol, Seitenzahl kurz */
@media (max-width: 400px) {
  .mt-blaettern .mt-schliessen span { position: absolute; left: -9999px; }
  .mt-blaettern a, .mt-blaettern button, .mt-blaettern .aus { padding: 0 4px; font-size: 14px; }
}

/* Aktionenbox wie im Original (elo_AktionsLinks: roter Reiter "Aktionen", Klammerrahmen oben/unten) */
.mt-body #aktionstop { height: 42px; max-width: 284px; background-repeat: no-repeat; }
.mt-body #aktionslinks { margin: -8px 0 0 6px; max-width: 278px; font-size: 16px; line-height: 1.3; }
.mt-body #aktionslinks a { display: inline-block; min-height: 30px; padding-top: 5px; padding-bottom: 5px; color: var(--blau);
  background-size: 16px 16px !important; }
.mt-body #aktionslinks br { display: inline !important; }
/* Aktionen (kursdienst.aktionen): aehnliche Themen als eingerueckter Block, Buchen als Knopf im Linkstil */
.mt-body #aktionslinks .k21-aktion-themen { display: inline-block; padding-top: 5px; padding-bottom: 5px; background-position: left 7px !important; }
.mt-body #aktionslinks .k21-aktion-themen a { display: inline; min-height: 0; padding: 0; }
.mt-body #aktionslinks form.k21-aktion-form { display: inline; margin: 0; }
.mt-body #aktionslinks form.k21-aktion-form button { display: inline-block; min-height: 30px; padding-top: 5px; padding-bottom: 5px;
  padding-right: 0; border: 0; background-color: transparent; color: var(--blau); font: inherit; text-decoration: underline; cursor: pointer; text-align: left; }
.mt-body #aktionslinks form.k21-aktion-form button:hover { color: var(--rot); }
.mt-body #aktionsbottom { height: 24px; max-width: 284px; margin-top: -4px; background-repeat: no-repeat; }

/* Tablet/Desktop: Seitenliste links, Inhalt als Karte */
@media (min-width: 900px) {
  :root { --kopf: 58px; --steuer-h: 52px; }
  /* breit: Kurslogo-Banner mit RELOAD; Kachel endet genau am linken Logorand (gespiegelt -> nahtlos); Logo 720x49 */
  /* breit wie Handy mit Logo: RELOAD links neben dem Schliessen-Knopf, Schliessen nur im Kopf */
  .mt-kopf { padding-left: 10px; padding-right: calc(10px + var(--h) * var(--logo-frei, 2.3103)); gap: 10px;
    background: var(--logo) right center / auto 100% no-repeat,
      var(--muster) right calc(var(--h) * var(--logo-r, 14.6939)) center / auto 100% repeat-x, var(--kopf-farbe, #005a93); }
  .mt-kopf__konto .konto__rollen, .mt-kopf__konto .konto__name svg { display: inline; }
  .mt-kopf__konto .konto__benutzer { max-width: 220px; }
  .mt-kopf__titel { font-size: 22px; -webkit-line-clamp: 1; }
  .mt-rumpf { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; padding: 20px; align-items: start; }
  .mt-seiten, .mt-seiten-auf .mt-seiten { display: block; position: sticky; top: calc(var(--kopf) + var(--steuer-h) + 21px); bottom: auto;
    max-height: calc(100vh - var(--kopf) - 2 * var(--steuer-h) - 44px); border: 1px solid var(--steuer-linie); border-radius: 8px; box-shadow: none; }
  .mt-blaettern a, .mt-blaettern button, .mt-blaettern .aus { padding: 0 12px; font-size: 16px; }
  /* Knopf MT + Menue blendet die Seitenliste aus/ein (wie toggleTree im Original) */
  .mt-seiten-zu .mt-rumpf { grid-template-columns: minmax(0, 1fr); max-width: 940px; }
  .mt-seiten-zu .mt-seiten { display: none; }
  .mt-seiten a { min-height: 26px; padding-top: 1px; padding-bottom: 1px; }
  .mt-inhalt { padding: 24px 32px 40px; border-radius: 8px; box-shadow: none; border: 1px solid var(--linie); }
  .mt-steuertitel { font-size: 20px; -webkit-line-clamp: 1; margin: 0 10px 0 2px; }
  .mt-steuer .mt-blaettern a, .mt-steuer .mt-blaettern button, .mt-steuer .mt-blaettern .aus { padding: 0 10px; }
  .mt-steuer .mt-blaettern { padding-left: max(20px, calc(50vw - 570px)); padding-right: max(20px, calc(50vw - 570px)); }}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .mt-kopf, .mt-seiten, .mt-steuer { display: none !important; }
  body.mt { background: #fff; padding: 0; }
}

/* Haftungsausschluss (kurse.HAFTUNG, z. B. B01): Bestaetigungsfeld wie die Aufgabenfelder (rot, nach Bestaetigung
   gruen), Sperrhinweis auf den Kursseiten, gesperrte Seiten im Menuebaum blass mit Schloss */
.mt-haftung { margin: 18px 0 8px; padding: 12px 14px; border: 2px solid var(--rot); border-radius: 8px; background: #fff; }
.mt-haftung--ok { border-color: #2e9e4f; }
.mt-haftung__frage { margin: 0 0 10px; color: var(--rot); font-weight: bold; }
.mt-haftung__feld { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; cursor: pointer; font-size: 16px; line-height: 1.35; }
.mt-haftung__feld input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: #2e9e4f; cursor: pointer; }
.mt-haftung__fehler { margin: 0 0 10px; color: var(--rot); }
.mt-haftung__ok { margin: 0; color: #1f6b35; line-height: 1.45; }
.mt-haftung__haken { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%;
  background: #2e9e4f; color: #fff; font-weight: bold; font-size: 14px; vertical-align: -4px; }
.mt-knopf { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 0; border-radius: 20px;
  background: var(--rot); color: #fff !important; font: bold 15px/1 Arial, Helvetica, sans-serif; text-decoration: none; cursor: pointer; }
.mt-knopf:hover { filter: brightness(1.1); }
.mt-knopf:focus-visible { outline: 3px solid #ffd54a; outline-offset: 2px; }
.mt-haftung-sperre { font-weight: bold; }
.mt-seiten li.gesperrt a { opacity: .5; }
.mt-seiten li.gesperrt .t::after { content: " 🔒"; font-size: .8em; }.mt-seiten li.erledigt .t::after { content: " ✓"; color: #2e9e4f; font-weight: bold; }
.mt-seiten li.erledigt .nr { border-color: #4cc26a; }
/* Testfragen mit Bild (span.msc_img im #answer_box): bei ausreichend Platz Bild rechts, Antworten links daneben
   (Antwortzeilen sind Flex-Container = eigener Formatierungskontext -> werden neben dem Float schmaler); schmal wie bisher Bild ueber den Antworten */
.mt-body #answer_box { container-type: inline-size; }
/* feste Hoehe aus dem Original (style="height:180px") -> nach Inhalt; sonst ragten am Handy die Antworten unter dem
   Bild aus dem Aufgabenkasten heraus (B01-Pruefung Sicherheitskupplung, 2026-11-15) */
.mt-body #answer_box[style*="height"] { height: auto !important; }
.mt-body #answer_box .msc_img img { max-width: 100%; height: auto; }
@container (min-width: 620px) {
  .mt-body #answer_box > .msc_img { float: right; max-width: 48%; margin: 0 0 8px 14px; }
  .mt-body #answer_box > .msc_img .contentbox { width: auto !important; max-width: 100%; }
}
/* angehaengte Seite unterhalb (B01: Haftungsausschluss unter Anmeldung) */
.mt-anhang { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--linie, #e6dfd2); scroll-margin-top: 110px; }
.mt-anhang__titel { margin: 0 0 .6rem; font-size: 19px; }
/* Seite Anmeldung (B01): Hinweis fuer Gaeste rechts neben dem ersten Bild (enter.jpg), schmal darunter */
.mt-body .mt-anm-kopf { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 14px; }
.mt-body .mt-anm-kopf img { flex: none; }
.mt-body .mt-anm-hinweis { flex: 1 1 220px; margin: 0; }
.mt-body .mt-anm-hinweis p { margin: 0 0 .5em; }
.mt-body .mt-anm-hinweis p:last-child { margin-bottom: 0; }
.mt-body .mt-anm-links { flex: none; width: 190px; display: flex; flex-direction: column; gap: 8px; }
.mt-body .mt-anm-links .loginbox { margin: 0; }
.mt-body .mt-anm-links .loginbox input { width: 100%; box-sizing: border-box; }
.mt-body .mt-anm-links ~ .mt-anm-hinweis { flex: 1 1 260px; padding-left: 10px; }
/* Microtrainings: Bestaetigung des Haftungsausschlusses ohne Anmeldung */
.mt-haftung__gastform { display: grid; gap: 8px; justify-items: start; margin-top: 6px; }
.mt-haftung__haekchen { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.mt-haftung__haekchen input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.mt-haftung__hinweis, .mt-haftung__gast { margin: 0; font-size: 14px; color: var(--grau, #6b6459); }.mt-body .mt-lage .contentbox.mt-lage__klick { z-index: 2 !important; line-height: 0; }
.mt-body .mt-lage .mt-lage__klick a, .mt-body .mt-lage .mt-lage__klick img { display: block; }
.mt-body .mt-lagen--original { display: block; position: relative; }
.mt-body .mt-lagen--original > .mt-lage { position: absolute; }
/* schmal: Gruppe mit laengeren Texten fliesst (statt unleserlich verkleinert); Hintergrundbilder unter Text entfallen */
.mt-body .mt-lage--fluss { overflow: visible; flex: 1 1 100%; }
.mt-body .mt-lage--fluss .mt-lage__innen { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
.mt-body .mt-lage--fluss .contentbox.mt-lage__el { position: static !important; max-width: 100%; }
.mt-body .mt-lage--fluss .contentbox.mt-lage__text, .mt-body .mt-lage--fluss .contentbox.mt-lage__kurz { flex: 1 1 100%; width: auto !important; white-space: normal; font-size: inherit; line-height: inherit; }
.mt-body .mt-lage--fluss .contentbox.mt-lage__hg, .mt-body .mt-lage--fluss .contentbox.mt-lage__klick { display: none; }
.mt-body .mt-lage--fluss img { max-width: 100%; }

/* Blasse Hintergrundbilder unter Text (mt.js hintergrundBilder, 2026-11-15): Bild als Hintergrund der Textbox,
   skaliert mit der Breite; Mindesthoehe = Bildhoehe (::before mit padding-top in % der Breite) */
.mt-body:not(.mt-original) .contentbox.mt-hg { position: relative !important; width: var(--hg-w) !important; max-width: 100%;
  box-sizing: border-box; padding-top: var(--hg-oben, 0); background: var(--hg-bild) no-repeat 0 var(--hg-by, 0) / min(100%, var(--hg-bw, 100%)) auto;
  /* weisser Bildgrund -> Kartenfarbe der MT (multiply: Weiss x Kartenfarbe = Kartenfarbe, blasses Motiv bleibt) */
  background-color: var(--karte, #fdfbf7); background-blend-mode: multiply; }
.mt-body .contentbox.mt-hg::before { content: ""; float: left; width: 0; padding-top: var(--hg-v); }
.mt-body .contentbox.mt-hg::after { content: ""; display: block; clear: both; }
.mt-body .contentbox.mt-hg > .contentbox { margin: 0 0 .7rem; background: none; display: flow-root; }
/* clear:both der Kaestchen (::after) wuerde die Hoehen-Stuetze (float) des Hintergrunds ueberspringen */
.mt-body .contentbox.mt-hg > .contentbox::after { content: none; }
.mt-body .mt-hg-paar { margin: 0 0 1rem; }
.mt-body .mt-hg-paar > .contentbox.mt-hg { margin-bottom: 1rem; }
.mt-body .mt-hg-paar--an { display: grid; grid-template-columns: minmax(0, var(--hg-w)) minmax(0, 1fr); gap: 0 20px; align-items: start; }
.mt-body .mt-hg-paar--an > .contentbox.mt-hg { margin-bottom: 0; }
.mt-body .mt-hg-paar__rechts { padding-top: var(--hg-oben, 0); }

/* Impressum-Raster mit blassem Hintergrundbild (mt.js, 2026-11-15) */
.mt-body .mt-raster.mt-hg-raster { background: var(--hg-bild) no-repeat 0 0 / min(100%, var(--hg-bw)) auto;
  background-color: var(--karte, #fdfbf7); background-blend-mode: multiply; }
.mt-body .mt-raster.mt-hg-raster--rechts { background-position: right 0 top 0; }
/* Text rechts eine Zeile tiefer als die Bezeichnung (steht nicht neben "REDAKTION"), zwischen den Eintraegen eine
   Leerzeile (Wunsch des Nutzers 2026-11-18; Seite ist nach unten flexibel) */
.mt-body .mt-raster--an .mt-raster__r { padding-top: calc(6px + 1.3 * 15px + 4px); }
.mt-body .mt-raster--an .mt-raster__l, .mt-body .mt-raster--an .mt-raster__r { padding-bottom: 22px; }
.mt-body .mt-raster:not(.mt-raster--an) .mt-raster__r { margin-bottom: 22px; }
/* grosse Logos in der Bezeichnungsspalte (Hxx-Impressum: Guenzburger 413 px) nicht ueber die ganze Spalte */
.mt-body .mt-raster__l img { max-width: min(100%, 180px); }
/* nach dem Umrechnen auf die Kartenfarbe (mt.js aufKarte) kein multiply mehr, sonst doppelt getoent */
.mt-body .mt-hg--karte { background-blend-mode: normal !important; }

/* Restzeit der Zertifikatspruefung in der unteren Steuerzeile anstelle der Seitenueberschrift (2026-11-15) */
.mt-steuertitel.mt-pruefzeit { font-size: 15px; font-weight: normal; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-pruefzeit .counter { font-weight: bold; }
.mt-pruefzeit.mt-zeit-knapp, .mt-pruefzeit .mt-zeit-knapp, .counter.mt-zeit-knapp { color: #c00; font-weight: bold; }
@media (min-width: 600px) { .mt-pruefzeit .mt-lang { display: inline !important; } .mt-pruefzeit .mt-kurz { display: none !important; } }
/* Symbol + Text nebeneinander (mt.js symbolZeilen, 2026-11-15) */
.mt-body .mt-symbolzeile { display: flex; align-items: center; gap: 10px; margin: .6em 0; }
.mt-body .mt-symbolzeile > .contentbox { flex: none; width: auto !important; margin: 0 !important; }
.mt-body .mt-symbolzeile > .contentbox + .contentbox { flex: 1 1 auto; min-width: 0; }
.mt-body .mt-symbolzeile p { margin: 0; }
/* Symbol-Kasten nur so hoch wie das Bild (Zeilenumbrueche/Grundlinie machten ihn hoeher, Text stand tiefer als das Symbol) */
.mt-body .mt-symbolzeile > .contentbox:first-child { line-height: 0; }
.mt-body .mt-symbolzeile > .contentbox:first-child br, .mt-body .mt-symbolzeile > .contentbox:first-child p:empty { display: none; }
.mt-body .mt-symbolzeile > .contentbox:first-child img { display: block; }

/* ---- Kursseiten aus Feinkonzept-PowerPoints (ppt_umsetzen.py): Text | Buehne, Handy untereinander ---- */
.k21-folie { container-type: inline-size; }
.k21-folie__raster { display: grid; gap: 14px 28px; align-items: start; }
@container (min-width: 600px) {
  .k21-folie__raster.hat-medien { grid-template-columns: minmax(15rem, 1fr) auto; }
  .k21-folie__raster.hat-medien > .k21-folie__medien { width: min(var(--buehne, 360px), 56cqw); }
}
.k21-folie__text p { margin: 0 0 .7em; }
.k21-folie__liste { margin: 0 0 .7em; padding-left: 1.3em; }
.k21-folie__liste li { margin: .2em 0; }
.k21-folie__liste li[data-ebene="1"] { margin-left: 1.2em; }
.k21-folie__liste li.mit-bild { list-style: none; position: relative; }
.k21-folie__liste li.mit-bild::before { content: ""; position: absolute; left: -1.3em; top: .25em; width: 1em; height: 1em;
  background: var(--marke) center / contain no-repeat; }
.k21-folie__medien { display: grid; gap: 10px; justify-items: center; min-width: 0; }
.k21-buehne { position: relative; width: 100%; container-type: inline-size; }
.k21-buehne > * { position: absolute; box-sizing: border-box; }
.k21-buehne__bild { object-fit: contain; }
.k21-buehne__text { font-family: Arial, Helvetica, sans-serif; line-height: 1.15; overflow: visible; overflow-wrap: normal; hyphens: manual; }
.k21-buehne__text p { margin: 0; }
.k21-buehne__text * { font-size: inherit !important; font-family: inherit !important; line-height: inherit !important; }
.k21-buehne__text .k21-folie__liste { margin: 0; padding-left: 1.1em; }
.k21-marke { display: inline-flex; align-items: center; justify-content: center; background: var(--rot); color: #fff;
  font-weight: 700; border-radius: 3px; line-height: 1; z-index: 300; }
.k21-buehne__marke { font-size: 11px; }
.k21-folie__unter { width: 100%; font-size: 15px; line-height: 1.35; }
.k21-folie__unter p { margin: 0 0 .4em; }
.k21-folie__legende { list-style: none; margin: 0; padding: 0; }
.k21-folie__legende li { display: flex; gap: 8px; align-items: baseline; margin: 0 0 5px; }
.k21-folie__legende li > span:last-child { flex: 1; min-width: 0; }
.k21-folie__legende .k21-marke { flex: none; min-width: 18px; height: 18px; font-size: 12px; position: relative; top: 2px; }
.k21-folie__tabelle { border-collapse: collapse; margin: 0 0 .8em; font-size: 15px; line-height: 1.3; }
.k21-folie__tabelle td { border-top: 1px solid #e6dfd2; padding: 5px 8px 5px 0; vertical-align: top; }
.k21-folie__tabelle td p { margin: 0 0 .3em; }
/* Kasten "Methodisch-didaktischer Hinweis" der Kapitelstartseiten (html_folien.py hinweis, 2026-11-16):
   roter Faden fuer den Lerner, Rahmen wie Aktionen, aber dezent grau mit blassen Texten; schmal bricht der Text um */
.k21-mdh { margin: 18px 0 10px; max-width: 760px; color: #a3a3a3; }
.k21-mdh__reiter { display: inline-block; background: #dcdcdc; color: #8c8c8c; font: 15px/1.2 Arial, sans-serif;
  padding: 4px 10px; min-width: min(300px, 70%); }
.k21-mdh__rahmen { --l: #cfcfcf; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 12px 18px 14px 12px;
  background:
    linear-gradient(var(--l), var(--l)) left top / 2px 34px no-repeat, linear-gradient(var(--l), var(--l)) left top / 34px 2px no-repeat,
    linear-gradient(var(--l), var(--l)) right top / 2px 34px no-repeat, linear-gradient(var(--l), var(--l)) right top / 34px 2px no-repeat,
    linear-gradient(var(--l), var(--l)) left bottom / 2px 34px no-repeat, linear-gradient(var(--l), var(--l)) left bottom / 34px 2px no-repeat,
    linear-gradient(var(--l), var(--l)) right bottom / 2px 34px no-repeat, linear-gradient(var(--l), var(--l)) right bottom / 34px 2px no-repeat,
    rgba(0, 0, 0, .025); }
.k21-mdh__links { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.k21-mdh__baum { display: block; width: 120px; aspect-ratio: 180 / 250; background: url("mdh_baum.png") center / contain no-repeat;
  opacity: .8; }
.k21-mdh__motto { font: bold 30px/1.15 Arial, sans-serif; color: #e0e0e0; text-align: center; }
.k21-mdh__text { flex: 1 1 240px; font-size: 15px; line-height: 1.35; }
.mt-body .k21-mdh__text, .mt-body .k21-mdh__text p { color: #9a9a9a !important; }
.k21-mdh__text p { margin: 0 0 .8em; }
.k21-mdh__text p:last-child { margin-bottom: 0; }
@media (max-width: 420px) { .k21-mdh__baum { width: 90px; } .k21-mdh__motto { font-size: 24px; } }
/* Zeilen: Bild vor jedem Textblock, schmal wird nur der Text schmaler (html_folien.py "zeilen", H09 Kornarten) */
.k21-folie--zeilen { display: flex; flex-direction: column; gap: 4px; }
.k21-zeile { display: flex; align-items: flex-start; gap: 14px; }
.k21-zeile img { flex: 0 0 auto; width: var(--bild, 87px); max-width: 28%; height: auto; display: block; }
.k21-zeile__text { flex: 1 1 0; min-width: 0; }
.k21-zeile__text p { margin: 0 0 .6em; }
.k21-folie--einspaltig { max-width: 760px; }
.k21-folie--einspaltig ul { margin: 0 0 .9em; padding-left: 1.3em; }
.k21-folie--einspaltig > p { margin: 0 0 .3em; }
.k21-folie__fazit { font-size: 1.1em; margin: 1em 0 .8em !important; }
.k21-zeile > a { flex: 0 0 auto; }
.k21-zeile > a img { display: block; width: auto; max-width: none; }
@media (max-width: 480px) { .k21-zeile { gap: 10px; } .k21-zeile img { width: calc(var(--bild, 87px) * .75); } }
/* Seiten aus Folienbildern als HTML (html_folien.py, 2026-11-16): Bildausschnitte mit Unterschrift/Legende */
.k21-folie__bild { margin: 0; width: 100%; }
.k21-folie__bild img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.k21-folie__bild figcaption { font-size: 15px; line-height: 1.35; color: inherit; margin-top: 6px; }
.k21-folie__bild .k21-folie__legende { margin-top: 8px; font-size: 15px; line-height: 1.35; }
.k21-folie__hinweis { background: #c9e8ea; padding: 10px 12px; margin: 0 0 .9em; }
.k21-folie__hinweis p:last-child, .k21-folie__kasten p:last-child { margin-bottom: 0; }
.k21-folie__hinweis p:first-child, .k21-folie__kasten p:first-child { margin-top: 0; }
.k21-folie__kasten { border: 2px solid var(--rot, #d00); padding: 8px 12px; width: 100%; box-sizing: border-box; font-size: 15px; line-height: 1.4; }
.k21-folie__formel { color: #1f3a7a; font-size: 1.2em; }
/* Originallage der Folie (ppt_umsetzen.py lage_html, 2026-11-16): nur wenn genug Platz, sonst Fliessfassung.
   Schriften der Vorlagen (Open Sans, Carlito = metrisch wie Calibri; Dateien im Theme-Ordner) */
@font-face { font-family: 'K21 Open Sans'; src: url('font_opensans_400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'K21 Open Sans'; src: url('font_opensans_700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'K21 Open Sans'; src: url('font_opensans_400i.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'K21 Open Sans'; src: url('font_opensans_700i.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'K21 Carlito'; src: url('font_carlito_400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'K21 Carlito'; src: url('font_carlito_700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'K21 Carlito'; src: url('font_carlito_400i.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'K21 Carlito'; src: url('font_carlito_700i.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }

.k21-lage { display: none; position: relative; width: 100%; container-type: inline-size; margin: 0 0 12px;
  font-family: Arial, Helvetica, sans-serif; line-height: normal; color: #000; background: #fff; }
@container (min-width: 640px) {
  .k21-folie[data-lage]:not(.k21-folie--fluss) > .k21-lage { display: block; }
  .k21-folie[data-lage]:not(.k21-folie--fluss) > .k21-folie__raster { display: none; }
}
.k21-lage > * { position: absolute; box-sizing: border-box; margin: 0; }
/* Klickflaechen des Originals (elo_clickimage) auf der Originallage, klickflaechen_einsetzen.py */
.k21-lage > a.k21-klick { z-index: 90; display: block; border-radius: 3px; cursor: pointer; }
.k21-lage > a.k21-klick:hover, .k21-lage > a.k21-klick:focus-visible { background: rgba(198, 40, 40, .18); outline: 2px solid rgba(198, 40, 40, .75); }
.k21-lage > a.k21-klick.ist-aktuell { background: rgba(198, 40, 40, .12); }
.k21-klick .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.k21-klickliste { margin: 4px 0 12px; font-size: 15px; }
.k21-klickliste p { margin: 0 0 4px; font-weight: 700; }
.k21-klickliste ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.k21-klickliste a { display: inline-block; padding: 4px 10px; border: 1px solid #c62828; border-radius: 14px; color: #c62828; text-decoration: none; }
.k21-klickliste li.ist-aktuell a { background: #c62828; color: #fff; }
@container (min-width: 640px) {
  .k21-folie[data-lage]:not(.k21-folie--fluss) > .k21-klickliste { display: none; }
}
.k21-lage__bild { object-fit: fill; }
.k21-lage__text { display: flex; flex-direction: column; overflow: visible; overflow-wrap: normal; hyphens: manual; }
.k21-lage__text p, .mt-body .ZMSTextarea .k21-lage__text p { margin: 0; white-space: pre-wrap; line-height: inherit; }   /* nicht .mt-body p (1.5): Zeilenhoehe der Schrift wie in PowerPoint */
.k21-lage__text a { color: inherit; }
.k21-lage__bu { display: inline-block; text-indent: 0; }
.k21-lage__bu[data-bild]::before { content: ""; display: inline-block; width: .75em; height: .75em; background: var(--bu) center / contain no-repeat; }
.k21-lage__marke { display: inline-flex; }
.k21-lage__linie { overflow: visible; min-width: 1px; min-height: 1px; pointer-events: none; }
.k21-lage__tabelle table { width: 100%; height: 100%; border-collapse: collapse; table-layout: fixed; }
.k21-lage__tabelle td { vertical-align: top; }
.k21-lage__tabelle td p { margin: 0; white-space: pre-wrap; line-height: 1.2 !important; }
/* Zertifikatsbild der Pruefungs-Auswertung als Klickflaeche (2026-11-16) */
.mt-zertifikatsbild { display: inline-block; cursor: pointer; position: relative; }
.mt-zertifikatsbild--name { container-type: inline-size; max-width: 100%; }
.mt-zertifikatsbild--name img { width: 100%; height: auto; }
.mt-zertifikatsbild img { display: block; }
.mt-zertifikatsbild__name { position: absolute; left: 6%; right: 6%; transform: translateY(-50%); text-align: center;
  font: bold 4.4cqw/1.15 Arial, Helvetica, sans-serif; color: #222; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.mt-beifall { float: right; margin: 0 0 6px 10px; padding: 4px 10px; border: 1px solid #e6dfd2; border-radius: 14px;
  background: #fdfbf7; color: #5a5148; font: 13px/1.2 Arial, Helvetica, sans-serif; cursor: pointer; }
.mt-beifall:hover { background: #f4f0e8; }
.mt-zertifikatsbild img { transition: box-shadow .15s; }
.mt-zertifikatsbild:hover img, .mt-zertifikatsbild:focus-visible img { box-shadow: 0 2px 10px rgba(0,0,0,.25); }

/* Zertifikatsbild bei Platzmangel vor "Als Nachweis ..." (mt.js vorDenNachweis) */
.mt-zertifikat-vorn { display: block; }
.mt-zertifikat-vorn:empty { display: none; }
.mt-zertifikat-vorn > .mt-zertifikatsbild { display: block; margin: -8px 0 14px; }

/* Folie als Original-Bild (ppt_umsetzen.py ersetzen --als-bild, z. B. H07 Systemvergleich) */
.k21-folie--bild { display: block; }
.k21-folie--bild img { display: block; max-width: 100%; height: auto; margin: 0 auto; }

/* Zeitleiste (ppt_umsetzen.py: Bilder spaltenweise ueber einer Tabelle, H07 Normierungsversuche): je Spalte eine
   Karte aus Bild(ern) und Text, nebeneinander; bei Platzmangel untereinander */
.k21-zeitleiste { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: 16px 14px; margin: .4em 0 .8em; }
.k21-zeitleiste__karte { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.k21-zeitleiste__bilder { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.k21-zeitleiste__bilder img { display: block; height: auto; max-width: 100%; }
.k21-zeitleiste__karte p { margin: 0 0 .3em; }
.k21-zeitleiste__kopf { display: flex; align-items: center; gap: 8px; }
.k21-zeitleiste__kopf p { margin: 0; }
.k21-zeitleiste__bilder { min-height: 3.5rem; justify-content: flex-end; }

/* Kurs aus Microtrainings + ZP (Schleifprinzipien): MT-Kacheln im Hauptmenue (kursdienst.mt_kachel, 2026-11-16) */
.mt-body .k21-mtkachel { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding: 8px 10px;
  background: #fdfbf7; border: 1px solid #e6dfd2; border-radius: 6px; max-width: 34rem; }
.mt-body .k21-mtkachel__text { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.mt-body .k21-mtkachel__titel { font-weight: bold; font-size: 15px; }
.mt-body .k21-mtkachel small { color: #6b6357; font-size: 12px; }
.mt-body .k21-mtkachel__zert { color: #2e7d46 !important; }
.mt-body .k21-mtkachel + br, .mt-body .k21-mtkachel + br + br { display: none; }
.mt-body .k21-mtkachel__zert--fnb { color: #c62828 !important; }
.mt-body .k21-mtkachel__zert--kurs { color: #6b6b6b !important; }

/* Pruefungsblock vor dem Kurstitel im Kopf (2026-11-17) */
.mt-kopf__block { font-weight: normal; }
body[data-pruefung] .mt-zweispaltig__text > .contentbox:first-child { margin-top: 0 !important; }
/* Start + Anmeldung fuer alle MT und Kurse (2026-11-17): Kurs-Gaeste nur eine Karte, Lernkonto anfordern */
.mt-anm2__wege--eins { grid-template-columns: minmax(0, 32rem) !important; }
.mt-anm2__neu { margin: 12px 0 0; font-size: 14px; }
.mt-anm2__neu a { font-weight: 600; }
.mt-anm2__frei--allein { max-width: 36rem; }

/* Passwort vergessen (2026-11-17) */
.mt-anm2__vergessen { margin: .35rem 0 0; font-size: 15px; }


/* Text links neben Grafik mit Klickflaechen (mt.js .mt-zweispaltig--lage, 2026-11-17): Grafik nicht ueber max-width verkleinern - das macht skalieren() */
.mt-body .mt-zweispaltig--lage .mt-zweispaltig__bild .mt-lage img { max-width: none; }
.mt-body .mt-zweispaltig--lage .mt-zweispaltig__bild .mt-lagen { margin: 0; }
.mt-body .mt-zweispaltig--lage .mt-zweispaltig__bild .contentbox.mt-lage__el { width: auto !important; }

/* Foerderhinweis der EU im Impressum (Original 10 px inline) etwas groesser (2026-11-17) */
.mt-body .mt-eu-hinweis { font-size: 13px !important; line-height: 1.4 !important; }
.mt-body .mt-zweispaltig--lage .mt-zweispaltig__text video { max-width: 100%; height: auto; }
/* Bildunterschrift in der Originallage nicht breiter als das Bild (Werkstueckformen 1/2: Texte lagen uebereinander) */
.mt-body .mt-lage .contentbox.mt-lage__el > .elo_graphic-img { display: block; width: min-content; }
.mt-body .mt-lage .contentbox.mt-lage__el > .elo_graphic-img > img { max-width: none; }
/* Liste mit kleinen Symbolen (H05 Laserfunktionen, html_folien) */
.mt-body ul.k21-symbolliste { list-style: none; padding-left: 0; }
.mt-body ul.k21-symbolliste li { display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.mt-body ul.k21-symbolliste img { width: 50px; height: auto; flex: none; }

/* Gruppe links, Text rechts (mt.js .mt-zweispaltig--rechts, Holzarten; 2026-11-18); schmal Text unter der Gruppe */
.mt-body .mt-zweispaltig--rechts.mt-zweispaltig--an { grid-template-columns: minmax(0, var(--bild-b, 360px)) minmax(0, 1fr); }
.mt-body .mt-zweispaltig--rechts:not(.mt-zweispaltig--an) .mt-zweispaltig__text { margin-top: 14px; }
.mt-body .mt-zweispaltig--rechts .mt-zweispaltig__text > .contentbox + .contentbox { margin-top: 10px; }

/* Ueberschrift + Text im gemeinsamen Textfenster auf blassem Hintergrund (Holzarten; mt.js .mt-hg--titel, 2026-11-18) */
.mt-body .contentbox.mt-hg > .contentbox.mt-hg__titel { margin-bottom: 0; }
.mt-body .contentbox.mt-hg > .mt-hg__titel p { margin: 0 !important; }
.mt-body .contentbox.mt-hg > .mt-hg__titel + .contentbox p:first-child { margin-top: 0 !important; }

/* Spalten Ueberschrift + Bild (mt.js .mt-spalten, Schleifprinzipien; 2026-11-18) */
.mt-body .mt-spalten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), var(--sp-w, 174px))); gap: 6px; margin: 1rem 0; max-width: 100%; }
.mt-body .mt-spalte { display: flex; flex-direction: column; }
.mt-body .mt-spalte > .contentbox { position: static !important; width: auto !important; margin: 0 !important; }
.mt-body .mt-spalte > .contentbox:last-child { margin-top: auto !important; }
.mt-body .mt-spalte img { display: block; max-width: 100%; height: auto; }
/* ZMS-Tabellen (elo_Tabelle) wie im Original: Kopf hellblau, Zeilen abwechselnd grau (Deltaschleifer "Technische Daten") */
.mt-body .contentbox:has(> .table-responsive > table.ZMSTable) { width: auto !important; }
.mt-body table.ZMSTable { width: 100%; border-collapse: collapse; margin: .5rem 0; font-size: 15px; }
.mt-body table.ZMSTable th, .mt-body table.ZMSTable td { padding: 5px 8px; text-align: left; vertical-align: top; border: 0; }
.mt-body table.ZMSTable th { background: #b3c6dc; font-weight: bold; }
.mt-body table.ZMSTable tbody tr:nth-child(odd) td { background: #f1f1f1; }
.mt-body table.ZMSTable tbody tr:nth-child(even) td { background: #e0e0e0; }
.mt-body table.ZMSTable p { margin: 0 !important; }
.mt-body table.ZMSTable td:last-child { white-space: nowrap; }
/* Tabelle aus Einzelteilen (mt.js teileTabelle) */
.mt-body .mt-teile { position: relative; max-width: none; }
.mt-body .mt-teile > .contentbox.mt-teile__el { position: absolute !important; left: var(--l) !important; top: var(--t) !important; margin: 0 !important; }
.mt-body .mt-zweispaltig--teile:not(.mt-zweispaltig--an) .mt-zweispaltig__bild { margin-top: 14px; }

/* Markierungen auf Bildern (mt.js markenAufBild; 2026-11-18) */
.mt-body .mt-markenbild { position: relative; display: inline-block; width: 100%; line-height: 0; }
.mt-body .mt-markenbild > img:first-child { display: block; width: 100%; height: auto; }
.mt-body .mt-markenbild__marke { position: absolute; height: auto; min-width: 12px; }
.mt-body .mt-teile__el { white-space: nowrap; }
.mt-body .mt-teile__el p { margin: 14px 0 0 !important; line-height: 18px !important; }
/* Bilder mit Bildunterschrift in Spalten (mt.js spaltenRaster --bu; 2026-11-18) */
.mt-body .mt-spalten--bu { grid-template-columns: repeat(auto-fill, var(--sp-w)); gap: 12px; width: auto !important; }
.mt-body .mt-spalten--bu .mt-spalte > .contentbox p { margin-top: 6px !important; }
.mt-body .mt-spalten--bu.mt-spalten--einzeln { display: block; }
.mt-body .mt-spalten--bu.mt-spalten--einzeln .mt-spalte { margin-bottom: 14px; max-width: 360px; }
.mt-body .mt-spalten--bu:not(.mt-spalten--einzeln) .mt-spalte { min-width: 0; width: var(--sp-w); }
.mt-body .mt-spalten--bu .mt-spalte > .contentbox, .mt-body .mt-spalten--bu .mt-spalte p { width: auto !important; max-width: 100% !important; }
.mt-body .mt-spalten--bu .mt-spalte > .contentbox { margin-top: 0 !important; }
/* Merksatz im Kasten (H01 Hebelgesetz, html_folien h01_h03.json; 2026-11-18) */
.k21-folie__merksatz { display: inline-block; margin: 6px 0 12px !important; padding: 6px 16px; background: #ffffe0; border: 3px solid #333; font-size: 1.1em; }
/* Uebereinanderliegende Bilder exakt zueinander (mt.js bildGruppen, 2026-11-18) */
.mt-body .contentbox.mt-bildgruppe { position: relative !important; left: auto !important; top: auto !important; width: var(--bg-w) !important; max-width: 100% !important; height: auto; margin: 10px 0 !important; }
.mt-body .mt-bildgruppe > .mt-bildgruppe__teil { position: absolute !important; margin: 0 !important; padding: 0 !important; }
.mt-body .mt-bildgruppe > .mt-bildgruppe__teil img { display: block; width: 100% !important; height: auto !important; max-width: none !important; }
.mt-body .contentbox.mt-bildgruppe--schrift { container-type: inline-size; }
.mt-body .mt-bildgruppe__schild, .mt-body .mt-bildgruppe__schild * { line-height: 1.25 !important; margin: 0 !important; white-space: nowrap; }
.mt-body .mt-bildgruppe__schild * { font-size: inherit !important; }
.mt-body .mt-bildgruppe__schild { z-index: 2; }
/* Feld Aktionen auf ganzer Breite (Mehr Wissen / Kursende, mt.js aktionenBreit) */
.mt-body .contentbox.k21-aktionen--breit { position: relative !important; left: auto !important; top: auto !important; width: auto !important; max-width: none !important; margin: 16px 0 0 !important; clear: both; }
.mt-body .k21-aktionen--breit #aktionstop, .mt-body .k21-aktionen--breit #aktionsbottom { position: relative; max-width: none; background-image: none !important; }
.mt-body .k21-aktionen--breit #aktionslinks { max-width: none; margin-right: 12px; }
.mt-body .k21-aktionen--breit #aktionstop::before, .mt-body .k21-aktionen--breit #aktionstop::after,
.mt-body .k21-aktionen--breit #aktionsbottom::before, .mt-body .k21-aktionen--breit #aktionsbottom::after { content: ''; position: absolute; top: 0; height: 100%; background-repeat: no-repeat; }
.mt-body .k21-aktionen--breit #aktionstop::before { left: 0; width: 200px; background-image: var(--aktionstop); background-position: left top; }
.mt-body .k21-aktionen--breit #aktionstop::after { right: 0; width: 40px; background-image: var(--aktionstop); background-position: right top; }
.mt-body .k21-aktionen--breit #aktionsbottom::before { left: 0; width: 40px; background-image: var(--aktionsbottom); background-position: left top; }
.mt-body .k21-aktionen--breit #aktionsbottom::after { right: 0; width: 40px; background-image: var(--aktionsbottom); background-position: right top; }
.mt-body .contentbox.mt-hg.mt-hg--ohne-hoehe::before { padding-top: 0; }
/* Mehr Wissen: oberer Text breit, Kursbild der Startseite rechts (mt.js mwKursbild); schmal Bild darunter */
.mt-body .mt-mw-oben { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-start; }
.mt-body .mt-mw-oben > div:not(.mt-mw-bild) { position: relative !important; left: auto !important; top: auto !important; flex: 1 1 320px; width: auto !important; max-width: none !important; }
.mt-body .mt-mw-oben > div:not(.mt-mw-bild) .contentbox { width: auto !important; max-width: none !important; }
.mt-body .mt-mw-bild { flex: 0 1 260px; max-width: 100%; }
.mt-body .mt-mw-bild img { display: block; width: 100%; max-width: 100%; height: auto; }
.mt-body .mt-mw-bild img[src*="icons/"] { width: auto; max-width: 100%; }
.mt-body .mt-mw-bild--icon { flex: 0 0 auto; }

/* Hinweislinie einer PowerPoint-Legende (ppt_umsetzen.hinweislinie) */
.k21-lage__text > svg.k21-lage__hinweis { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

/* Lupen = PowerPoint-Legenden mit Detailbild (ppt_umsetzen, 2026-11-18, H06 Sprossentiefe/Stufentiefe):
   Originallage vergroessert bei Mausberuehrung/Antippen, Fliessfassung als Karten mit grossem Detailbild */
.k21-lage__lupe { cursor: zoom-in; transition: transform .18s ease, box-shadow .18s ease; outline: none; }
.k21-lage__lupe::after { content: ""; position: absolute; right: -0.9cqw; bottom: -0.9cqw; width: 1.9cqw; height: 1.9cqw;
  border-radius: 50%; background: #c62828 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10' cy='10' r='6' fill='none' stroke='%23fff' stroke-width='2.6'/%3E%3Cpath d='M14.5 14.5L20 20M10 7v6M7 10h6' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 75% no-repeat; }
.k21-lage__lupe:hover, .k21-lage__lupe:focus { transform: scale(2.3); z-index: 95 !important; background-color: #f4f4f4 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .28); cursor: zoom-out; }
.k21-lage__lupe:hover::after, .k21-lage__lupe:focus::after, .k21-lage__lupe:hover > svg.k21-lage__hinweis, .k21-lage__lupe:focus > svg.k21-lage__hinweis { display: none; }
.k21-lage__lupe > div, .k21-lage__lupe > img, .k21-lage__lupe > span.k21-marke { position: absolute; box-sizing: border-box; margin: 0; }
.k21-lupen { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 10px 0; }
.k21-lupe { margin: 0; padding: 8px 10px; border: 1px solid rgba(255, 0, 0, .8); background: #f2f2f2; display: flex; gap: 10px; align-items: center; }
.k21-lupe img { max-width: 45%; height: auto; flex: none; }
.k21-lupe figcaption, .k21-lupe figcaption p { margin: 0; font-size: 15px; line-height: 1.3; }

/* Paragrafenzeichen der PPT-Folien im Hintergrund (ppt_umsetzen, 2026-11-18, H06 Steigtechnik) */
.k21-lage > .k21-lage__deko { pointer-events: none; }
.k21-lage > .k21-lage__deko.ist-ueberdeckt { opacity: .28; }
.k21-folie--paragraf > .k21-folie__raster > .k21-folie__text { position: relative; isolation: isolate; }
.k21-folie--paragraf > .k21-folie__raster > .k21-folie__text::before { content: "\00a7"; position: absolute; z-index: -1;
  right: 4px; top: -6px; font: 700 110px/1 Arial, sans-serif; color: #a5a5a5; opacity: .18; pointer-events: none; }

/* Textfelder mit Hintergrundfarbe in der Fliessfassung als Kasten (ppt_umsetzen, 2026-11-18) */
.k21-folie__feld { position: relative; isolation: isolate; border: 1px solid #7f7f7f; padding: 8px 12px; margin: 10px 0; }
.k21-folie__feld > p:first-child { margin-top: 0; } .k21-folie__feld > p:last-child { margin-bottom: 0; }
.k21-folie__feld--paragraf { padding-left: 46px; }
.k21-folie__feld--paragraf::before { content: "\00a7"; position: absolute; z-index: -1; left: 8px; top: 2px;
  font: 700 46px/1 Arial, sans-serif; color: #5d7071; opacity: .35; pointer-events: none; }

/* Bilder nebeneinander mit eigenen Texten: je Bild ein Block, bei Platzmangel untereinander (ppt_umsetzen, 2026-11-18) */
.k21-bildblocks { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-start; }
.k21-bildblock { margin: 0; flex: 1 1 200px; }
.k21-bildblock > img { display: block; height: auto; }
.k21-bildblock > figcaption > p:first-child { margin-top: 6px; }
.k21-bildblock > figcaption { color: inherit; font-size: inherit; line-height: inherit; font-style: normal; }

/* Rechteckige Legende (Sprechblase) mit Spitze hinter dem Text (ppt_umsetzen, 2026-11-18) */
.k21-lage__text > .k21-lage__legende { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  z-index: -1; pointer-events: none; }

/* kurze gedrehte Schilder ("So nicht!") ohne Umbruch (2026-11-18) */
.k21-lage > .k21-lage__text[style*="nowrap"] p { white-space: pre; }

/* Formen (Pfeile, Kreise) in der Fliessfassung (ppt_umsetzen, 2026-11-18) */
.k21-buehne__form { position: absolute; box-sizing: border-box; }
.k21-buehne__form > .k21-lage__legende { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  z-index: -1; pointer-events: none; }

/* Textfenster mit Hintergrundbild links neben einem Flash-Player (Player wird nicht verschoben; 2026-11-18) */
.mt-hg.mt-hg--neben-an { float: left; width: min(var(--hg-w), 50%); margin-right: 16px; }
.mt-body .contentbox.mt-hg-player--an { display: flow-root; }


/* Download-Text einer Folie als Link (ppt_umsetzen, 2026-11-18) */
a.k21-folie__download { color: inherit; text-decoration: underline; text-decoration-color: #c00; }
a.k21-folie__download:hover { color: #c00; }

/* Ausschnitte aus dem Original-Folienbild in der Fliessfassung (ppt_umsetzen --zusatz, 2026-11-18) */
.k21-folie__zusatz { display: block; max-width: 100%; height: auto; margin: 0 0 8px; }

/* Tabellen der Fliessfassung mit Zellfarben der Originallage (ppt_umsetzen, 2026-11-18) */
.k21-folie__tabelle.mit-vorlage { width: 100%; }
.k21-folie__tabelle.mit-vorlage td { border: 2px solid #fff; padding: 4px 8px; }

/* Hoch-/Tiefstellung in Tabellenzellen ohne hoehere Zeile (2026-11-19) */
.k21-lage__tabelle td :is(sub, sup), .k21-folie__tabelle td :is(sub, sup) { line-height: 0; }

/* kleines Einzelbild oben rechts, auch schmal (mt.js kleineBilder, 2026-11-19) */
.k21-folie__raster--klein > .k21-folie__text { grid-column: 1; grid-row: 1; }
.k21-folie__raster--klein > .k21-folie__medien { grid-column: 2; grid-row: 1; }
@container (max-width: 599.98px) {
  .k21-folie__raster.k21-folie__raster--klein { display: block; }
  .k21-folie__raster--klein > .k21-folie__medien { float: right; width: min(42%, var(--buehne, 160px)); margin: 4px 0 8px 14px; }
  .k21-folie__raster--klein::after { content: ""; display: block; clear: both; }
}

/* Buehnentexte mit Leerabsaetzen/Tabulatoren wie in der Originallage (ppt_umsetzen genau_html, 2026-11-19) */
.k21-buehne__text.k21-buehne__text--genau p { font-size: var(--fs, 1em) !important; line-height: var(--lh, 1.2) !important;
  white-space: pre-wrap; }

/* Zeigeaufgabe (eld_imageHotspot, 2026-11-20): Frage | Bild, schmal Bild unter dem Fragetext; Markierungen in Prozent */
.mt-body #container:has(> .k21-zeige) { container-type: inline-size; }
.mt-body .k21-zeige { display: block; }
.mt-body .k21-zeige > .k21-zeige__frage { margin: 0 0 12px; }
.mt-body .k21-zeige__bildspalte { min-width: 0; }
.mt-body .k21-zeige__bild { position: relative; width: 100%; line-height: 0; margin: 0 auto; }
.mt-body .k21-zeige__img { display: block; width: 100%; height: auto; max-width: 100%; margin: 0; padding: 0; border: 0; }
.mt-body form.k21-zeige__form { margin: 0; }
.mt-body form.k21-zeige__form .k21-zeige__img { cursor: crosshair; }
@container (min-width: 560px) {
  .mt-body .k21-zeige { display: grid; grid-template-columns: minmax(200px, 1fr) auto; gap: 16px; align-items: start; }
  .mt-body .k21-zeige > .k21-zeige__frage { margin: 0; }
  .mt-body .k21-zeige__bildspalte { max-width: 60cqw; }
}
.mt-body .k21-zeige__loesung { position: absolute; box-sizing: border-box; border: 3px solid #2e9e4f; border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.8); }
.mt-body .k21-zeige__klick { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  border: 3px solid #c8161d; background: rgba(255,255,255,.55); box-sizing: border-box; pointer-events: none; }
.mt-body .k21-zeige__klick--richtig { border-color: #2e9e4f; }
.mt-body .k21-zeige__klick--falsch::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #c8161d; }
.mt-body .k21-zeige__rueckmeldung { margin-top: 12px; }
.mt-body .k21-zeige__rueckmeldung p { margin: 0 0 6px; }
.mt-body .k21-zeige__richtig { color: #2e9e4f; font-weight: bold; }
.mt-body .k21-zeige__hinweis { margin-top: 10px; }
