/* =========================================================
   SchulServ-Kurzeinführung, Teil 4: die Toolbox
   (kurzeinfuehrung-toolbox.html)

   Wird nach styles.css und kurzeinfuehrung.css geladen. Der
   Seitenrahmen ist der der Website; die Bildschirme tragen das
   Aussehen der beiden Programme (public/tools/documents/assets/
   doc.css, public/tools/presentations/assets/pres.css): dunkle
   Kopfleiste, graue Bühne, Akzent je Programm.

   tb-   Seitenrahmen dieser Seite (Merkmale, Ausblick, Ideen)
   tw-   Baukasten beider Programme (Kopfleiste, Bühne, Knöpfe,
         Dialog, Handy über dem Fenster); gilt in .m-schirm.tw
   tu-   Tools-Übersicht des Onlineplans (Auftakt)
   dk-   Szene „Documents“        pr-   Szene „Presentations“
   ml-   Entwurf „Messwerte“      hh-   Entwurf „Wo hängt die Klasse?“

   Die Bildschirme sind nachgezeichnet, keine Bildschirmfotos.
   Alles in ihnen ist in em gesetzt. Die beiden Entwürfe im
   Ausblick zeigen Programme, die es noch nicht gibt; sie tragen
   deshalb sichtbar „Entwurf“.
   ========================================================= */

.ke-toolbox {
  --tw-nacht: #162544;
  --tw-blau: #223e6d;
  --tw-grund: #edf1f6;
  --tw-buehne: #dce2ec;
  --tw-linie: #dce2eb;
  --tw-linie2: #eaeef4;
  --tw-text: #1b2536;
  --tw-text2: #3b465b;
  --tw-blass: #687389;
  --tw-gruen: #1f7a44;
  --tw-gruen2: #e8f5ec;
  --tw-rot: #c0271d;
  --tw-rot2: #fcecea;
  --tw-gelb2: #fff6dd;
  --dk-a: #0e7490;
  --dk-b: #22a06b;
  --dk-h: #e3f3f5;
  --pr-a: #3b6cf6;
  --pr-b: #8a5cf6;
  --pr-h: #e7eefb;
  --ab-a: #f59e0b;
  --ab-b: #e0529c;
  --ab-h: #fff7ed;
}
/* Kapitelfarben dieser Seite: Documents, Presentations, Ausblick */
.ke-toolbox .tb-k1 { --kap-a: #22a06b; --kap: #0e7490; --kap-h: #e3f3f5; --kap-r: #bfe3e8; }
.ke-toolbox .tb-k2 { --kap-a: #8a5cf6; --kap: #3b6cf6; --kap-h: #e7eefb; --kap-r: #c9d6fb; }
.ke-toolbox .tb-k3 { --kap-a: #e0529c; --kap: #c2410c; --kap-h: #fff7ed; --kap-r: #fed7aa; }
.ke-toolbox .ke-rail a[data-marke="documents"] { --kap: #0e7490; }
.ke-toolbox .ke-rail a[data-marke="presentations"] { --kap: #3b6cf6; }
.ke-toolbox .ke-rail a[data-marke="ausblick"] { --kap: #c2410c; }

.ke-toolbox .m-notiz { margin: 14px 4px 0; font-size: 0.88rem; line-height: 1.55; color: var(--tinte-3); text-wrap: pretty; }
.ke-toolbox .ke-buehne { align-items: start; }
.ke-toolbox .ke-buehne-bild { display: block; }
.ke-toolbox .ke-buehne-bild > .m { margin-inline: auto; }

/* ---------------------------------------------------------
   Merkmale unter einer Vorführung
   --------------------------------------------------------- */
.tb-merkmale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.tb-merkmale > li { display: grid; align-content: start; gap: 0.45rem; padding: 1.15rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.tb-merkmale .i { width: 2.2rem; height: 2.2rem; padding: 0.48rem; border-radius: 10px; background: var(--kap-h); color: var(--kap); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tb-merkmale h3 { font-size: 1rem; font-weight: 800; color: var(--ink); }
.tb-merkmale p { font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }

/* ---------------------------------------------------------
   Kapitel 3: Ausblick. Ein Blatt mit Raster wie auf dem
   Zeichentisch: Alles hier ist geplant, nichts ist fertig.
   --------------------------------------------------------- */
.ke-kapitel.tb-ausblick {
  margin: 1rem clamp(0px, 1.6vw, 28px);
  padding-block: 5rem;
  border-radius: 28px;
  background:
    linear-gradient(rgba(194, 65, 12, 0.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(194, 65, 12, 0.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, #fffaf3, #fff 60%);
  box-shadow: 0 0 0 1px #f5dcc4 inset;
}
.tb-ehrlich {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  max-width: 50rem;
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  border: 1px dashed #f0b27a;
  border-radius: 14px;
  background: #fff;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.tb-ehrlich .i { flex: none; width: 1.4rem; height: 1.4rem; margin-top: 0.1rem; color: #c2410c; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tb-ehrlich b { color: var(--ink); }

.tb-gruppe { margin-top: 3.4rem; }
.tb-gruppe > h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.3rem 0.8rem; font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.tb-gruppe > h3 small { font-size: 0.9rem; font-weight: 600; letter-spacing: 0; color: var(--tinte-3); }
.tb-gruppe > .ke-buehne { margin-top: 1.4rem; }

.tb-geplant {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.6rem;
  border: 1px dashed #e9a46a;
  border-radius: 999px;
  background: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b45309;
  white-space: nowrap;
}
.tb-geplant::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: linear-gradient(135deg, var(--ab-a), var(--ab-b)); }

.tb-ideen { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.tb-idee {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 1.2rem 1.25rem 1.25rem;
  border: 1.5px dashed #ecc9a8;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
}
.tb-idee-kopf { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.tb-idee-kopf .i {
  width: 2.3rem;
  height: 2.3rem;
  padding: 0.5rem;
  border-radius: 11px;
  background: linear-gradient(135deg, #fff1df, #fde2ef);
  color: #b4410f;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tb-idee h4 { font-size: 1.02rem; font-weight: 800; line-height: 1.3; color: var(--ink); }
.tb-idee p { font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }
.tb-idee .tb-heute { display: flex; gap: 0.4rem; align-items: baseline; margin-top: 0.1rem; padding-top: 0.55rem; border-top: 1px solid #f3e3d3; font-size: 0.8rem; line-height: 1.45; color: var(--tinte-3); }
.tb-idee .tb-heute b { flex: none; color: var(--accent-deeper); }
.tb-ideen.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tb-ideen.drei > .lang { grid-row: span 2; }
.tb-ideen.breit { grid-template-columns: minmax(0, 1fr); }
.tb-ideen.breit .tb-idee { grid-template-columns: 2.3rem minmax(0, 1fr) auto; column-gap: 1rem; align-items: start; }
.tb-ideen.breit .tb-idee-kopf { display: contents; }
.tb-ideen.breit .tb-idee-kopf .i { grid-row: span 2; }
.tb-ideen.breit .tb-idee-kopf .tb-geplant { grid-column: 3; grid-row: 1; }
.tb-ideen.breit .tb-idee h4 { grid-column: 2; grid-row: 1; }
.tb-ideen.breit .tb-idee p { grid-column: 2 / 4; }

/* Entwurf: Stempel an Bühne und Gerät */
.tb-entwurf { position: relative; }
.tb-entwurf .tw-top { padding-right: 7.5em; }
.tb-entwurf .m-geraet::after {
  content: "Entwurf";
  position: absolute;
  top: 1.1em;
  right: -0.4em;
  z-index: 40;
  padding: 0.25em 0.9em;
  border-radius: 0.4em 0 0 0.4em;
  background: linear-gradient(135deg, var(--ab-a), var(--ab-b));
  color: #fff;
  font-size: 0.8em;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0.4em 0.9em -0.4em rgba(180, 65, 15, 0.6);
}
.ke-toolbox .tb-ausblick .module-icon { background: linear-gradient(135deg, var(--ab-a), var(--ab-b)); color: #fff; }

.ke-toolbox .cta-band .cta-actions { flex-wrap: wrap; }

/* =========================================================
   Bildschirme: Baukasten beider Programme
   ========================================================= */
.m.fenster.tw { --em: 60; max-width: 820px; }
.m.fenster.tw .m-schirm { height: 31em; }
.m-schirm.tw {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--tw-grund);
  color: var(--tw-text);
  font-size: 1em;
  line-height: 1.35;
}
.m-schirm.tw .i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:where(.m-schirm.tw [data-an]) { opacity: 0; transform: translateY(0.4em); transition: opacity 0.4s ease, transform 0.45s ease; }
:where(.m-schirm.tw [data-an].da) { opacity: 1; transform: none; }
html:not(.js) :where(.m-schirm.tw [data-an]):not([data-aus], .tw-dialog, .tw-handy) { opacity: 1; transform: none; }

.tw-top {
  display: flex;
  align-items: center;
  gap: 0.65em;
  min-width: 0;
  padding: 0.5em 0.9em;
  background: var(--tw-nacht);
  color: #fff;
  font-size: 0.82em;
}
.tw-zurueck { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 0.5em; color: #b8c4d9; }
.tw-marke { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 0.55em; background: linear-gradient(135deg, var(--a, #0e7490), var(--b, #22a06b)); }
.tw-marke .i { width: 1.15em; height: 1.15em; color: #fff; }
.tw-name { font-weight: 700; white-space: nowrap; }
.tw-titel { min-width: 0; padding-left: 0.75em; border-left: 1px solid rgba(255, 255, 255, 0.16); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-titel small { display: block; font-size: 0.82em; color: #9fb0ca; }
.tw-leute { display: flex; margin-left: auto; }
.tw-leute span { display: grid; place-items: center; width: 1.8em; height: 1.8em; margin-left: -0.35em; border-radius: 50%; box-shadow: 0 0 0 0.16em var(--tw-nacht); font-size: 0.78em; font-weight: 700; }
.tw-knopf { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.4em 0.8em; border-radius: 0.5em; background: rgba(255, 255, 255, 0.1); font-weight: 600; white-space: nowrap; }
.tw-knopf.voll { background: linear-gradient(135deg, var(--a), var(--b)); }
.tw-schalter { display: inline-flex; padding: 0.15em; border-radius: 0.55em; background: rgba(255, 255, 255, 0.1); font-size: 0.92em; }
.tw-schalter span { padding: 0.3em 0.7em; border-radius: 0.45em; color: #b8c4d9; }
.tw-schalter span:first-child { background: #fff; color: var(--tw-nacht); font-weight: 600; }
.tw-buehne { position: relative; min-width: 0; min-height: 0; background: var(--tw-buehne); overflow: hidden; }

.tw-dialog {
  position: absolute;
  left: 50%;
  top: 4.2em;
  z-index: 25;
  width: 26em;
  max-width: calc(100% - 2em);
  padding: 1em 1.1em;
  border-radius: 0.8em;
  background: #fff;
  box-shadow: 0 1.6em 3em -1em rgba(16, 27, 44, 0.55), 0 0 0 1px rgba(16, 27, 44, 0.08);
  transform: translate(-50%, 0.6em) !important;
}
.tw-dialog.da { transform: translate(-50%, 0) !important; }
.tw-dialog > h5 { display: flex; align-items: center; gap: 0.5em; margin-bottom: 0.7em; font-size: 0.95em; font-weight: 700; }
.tw-dialog > h5 .i { color: var(--a); }
.tw-zeile { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 0.6em; align-items: center; padding: 0.42em 0; border-top: 1px solid var(--tw-linie2); font-size: 0.76em; }
.tw-zeile > span:first-child { color: var(--tw-blass); }
.tw-wahl { display: flex; align-items: center; justify-content: space-between; gap: 0.4em; padding: 0.35em 0.6em; border: 1px solid var(--tw-linie); border-radius: 0.45em; white-space: nowrap; overflow: hidden; }
.tw-wahl .i { color: var(--tw-blass); }
.tw-fuss { display: flex; justify-content: flex-end; gap: 0.45em; margin-top: 0.8em; }
.tw-btn { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.42em 0.85em; border: 1px solid var(--tw-linie); border-radius: 0.5em; background: #fff; font-size: 0.76em; font-weight: 600; white-space: nowrap; }
.tw-btn.haupt { border-color: transparent; background: linear-gradient(135deg, var(--a), var(--b)); color: #fff; }
.tw-kipp { display: inline-block; position: relative; width: 2.2em; height: 1.2em; border-radius: 1em; background: #c9d2df; vertical-align: middle; transition: background 0.3s; }
.tw-kipp::after { content: ""; position: absolute; left: 0.15em; top: 0.15em; width: 0.9em; height: 0.9em; border-radius: 50%; background: #fff; transition: transform 0.3s; }
.tw-kipp.an { background: var(--a); }
.tw-kipp.an::after { transform: translateX(1em); }

/* Handy, das sich über das Fenster schiebt */
.tw-handy {
  position: absolute;
  right: 1em;
  top: 3.4em;
  bottom: 1em;
  z-index: 26;
  width: 15em;
  padding: 0.85em 0.8em;
  border-radius: 1.5em;
  background: #f5f6f8;
  box-shadow: 0 1.4em 3.2em -0.9em rgba(16, 27, 44, 0.65), 0 0 0 0.4em #0d1830;
  font-size: 0.82em;
  color: var(--tw-text);
  transform: translateX(135%) !important;
  opacity: 1 !important;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) !important;
  overflow: hidden;
}
.tw-handy.da { transform: none !important; }
.tw-handy-wer { display: flex; align-items: center; gap: 0.4em; margin-bottom: 0.6em; font-size: 0.8em; font-weight: 600; color: var(--tw-blass); }

/* ---------------------------------------------------------
   Auftakt: die Tools-Übersicht des Onlineplans
   (public/tools/index.php, tools.css)
   --------------------------------------------------------- */
.tu .m-schirm { background: #f4f6fa; }
.tu-kopf { display: flex; align-items: center; gap: 0.7em; padding: 0.8em 1em; background: linear-gradient(to right, #223e6d, #111f37); color: #fff; }
.tu-kopf .tu-logo { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 0.55em; background: rgba(255, 255, 255, 0.14); font-weight: 800; font-size: 0.9em; }
.tu-kopf b { display: block; font-size: 1em; }
.tu-kopf small { display: block; font-size: 0.78em; opacity: 0.85; }
.tu-kopf .i { margin-left: auto; width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tu-inhalt { padding: 1.1em 1.1em 0.4em; }
.tu-inhalt > h5 { font-size: 1.45em; font-weight: 700; color: #14233f; }
.tu-inhalt > p { margin-top: 0.2em; font-size: 0.82em; color: #5d6a83; }
.tu-karten { display: grid; gap: 0.7em; margin-top: 0.9em; }
.tu-karte { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); gap: 0.9em; padding: 0.85em; border-radius: 0.9em; background: #fff; box-shadow: 0 0.15em 0.6em -0.2em rgba(17, 31, 55, 0.18), 0 0 0 1px #e3e8f0; }
.tu-bild { display: grid; place-items: center; width: 3.6em; height: 3.6em; border-radius: 0.85em; background: linear-gradient(135deg, var(--a), var(--b)); color: #fff; }
.tu-bild svg { width: 1.8em; height: 1.8em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tu-name { display: flex; align-items: center; gap: 0.5em; font-size: 1.02em; font-weight: 700; color: #14233f; }
.tu-name em { padding: 0.05em 0.5em; border-radius: 1em; background: #e3f3f5; color: #0e7490; font-size: 0.68em; font-style: normal; font-weight: 700; }
.tu-zeile { display: block; margin-top: 0.1em; font-size: 0.8em; font-weight: 600; color: var(--a); }
.tu-info { display: block; margin-top: 0.3em; font-size: 0.76em; line-height: 1.4; color: #3d4c68; }
.tu-punkte { display: flex; flex-wrap: wrap; gap: 0.3em; margin-top: 0.45em; }
.tu-punkte span { padding: 0.15em 0.55em; border-radius: 1em; background: #f1f4f8; font-size: 0.68em; color: #3d4c68; }
.tu-karte.folgt { grid-template-columns: 3.6em minmax(0, 1fr); background: transparent; box-shadow: none; border: 1.5px dashed #c7d1de; }
.tu-karte.folgt .tu-bild { background: #e8edf4; color: #8a97ad; }
.tu-karte.folgt { text-decoration: none; transition: border-color 0.2s, background 0.2s; }
a.tu-karte.folgt:hover { border-color: #e9a46a; background: #fff7ed; }

/* ---------------------------------------------------------
   Szene „Documents“
   --------------------------------------------------------- */
.dk { --a: var(--dk-a); --b: var(--dk-b); }
.dk-leiste { display: flex; align-items: center; gap: 0.25em; padding: 0.35em 0.8em; border-bottom: 1px solid var(--tw-linie); background: #fff; font-size: 0.78em; color: var(--tw-text2); }
.m-schirm.tw .dk-leiste > .i { margin: 0 0.4em; }
.dk-leiste .wahl { display: inline-flex; align-items: center; gap: 0.5em; margin-right: 0.3em; padding: 0.25em 0.6em; border: 1px solid var(--tw-linie); border-radius: 0.4em; }
.dk-leiste .wahl .i { width: 1em; height: 1em; padding: 0; }
.dk-leiste .strich { width: 1px; height: 1.3em; margin: 0 0.3em; background: var(--tw-linie); }
.dk-leiste .einf { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4em; padding: 0.3em 0.7em; border-radius: 0.45em; background: var(--dk-h); color: var(--dk-a); font-weight: 600; }
.dk-leiste .einf .i { width: 1em; height: 1em; padding: 0; }
.dk-arbeit { position: relative; display: grid; grid-template-columns: 10.5em minmax(0, 1fr) 10.5em; min-height: 0; }
.dk-haupt { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.dk-links, .dk-rechts { min-height: 0; padding: 0.7em 0.65em; border-right: 1px solid var(--tw-linie); background: #fff; font-size: 0.74em; overflow: hidden; }
.dk-rechts { border-right: 0; border-left: 1px solid var(--tw-linie); }
.dk-links h6, .dk-rechts h6 { margin-bottom: 0.5em; font-size: 0.82em; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tw-blass); }
.dk-palette { display: grid; gap: 0.25em; }
.dk-palette li { display: flex; align-items: center; gap: 0.5em; padding: 0.38em 0.45em; border-radius: 0.4em; color: var(--tw-text2); white-space: nowrap; }
.dk-palette li .i { color: var(--dk-a); }
.ab-1:not(.ab-2) .dk-palette li.m-tipp { background: var(--dk-h); color: var(--dk-a); font-weight: 600; }
.dk-rechts .tw-zeile { grid-template-columns: minmax(0, 1fr); gap: 0.25em; font-size: 1em; }
.dk-blatt {
  position: absolute;
  left: 50%;
  top: 1em;
  width: 24em;
  min-height: 34em;
  padding: 1.6em 1.8em;
  border-radius: 0.15em;
  background: #fff;
  box-shadow: 0 0.4em 1.2em -0.4em rgba(17, 31, 55, 0.35);
  transform: translateX(-50%);
  font-size: 0.78em;
  line-height: 1.5;
}
.dk-blatt h5 { font-size: 1.5em; font-weight: 700; color: var(--tw-nacht); }
.dk-nkd { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0.8em; margin: 0.6em 0 1em; font-size: 0.78em; color: var(--tw-blass); }
.dk-nkd span { padding-top: 0.9em; border-bottom: 1px solid #9aa6b8; }
.dk-aufgabe { position: relative; margin-top: 0.8em; padding: 0.5em 0.6em; border-radius: 0.35em; }
.dk-aufgabe.auswahl { box-shadow: 0 0 0 1.5px var(--dk-a); background: rgba(227, 243, 245, 0.35); }
.dk-akopf { display: flex; align-items: baseline; gap: 0.5em; margin-bottom: 0.3em; font-weight: 700; }
.dk-akopf b { display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--tw-nacht); color: #fff; font-size: 0.8em; }
.dk-akopf small { margin-left: auto; font-weight: 500; color: var(--tw-blass); }
.dk-lt mark { padding: 0 0.15em; border-radius: 0.2em; background: #d5ecef; color: #0b5563; }
.dk-hinweis { margin-top: 0.35em; font-size: 0.82em; color: var(--tw-blass); }
.dk-rf { display: grid; gap: 0.25em; }
.dk-rf li { display: grid; grid-template-columns: minmax(0, 1fr) 1.3em 1.3em; gap: 0.4em; align-items: center; }
.dk-rf li i { display: block; height: 1.1em; border: 1px solid #9aa6b8; border-radius: 0.2em; font-style: normal; font-size: 0.8em; text-align: center; line-height: 1.2em; color: var(--tw-blass); }
.dk-rf .kopfz i { border: 0; font-weight: 700; }
.dk-aufgabe.neu { transform-origin: top center; }
.ab-1 .dk-aufgabe.neu { animation: dk-rein 0.5s ease both; }
@keyframes dk-rein { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

/* Ausfüllen am Handy */
.dk-handy .kopf { margin: -0.85em -0.8em 0.7em; padding: 0.6em 0.8em; background: var(--tw-nacht); color: #fff; font-size: 0.86em; font-weight: 700; }
.dk-handy .kopf small { display: block; font-weight: 400; opacity: 0.8; }
.dk-handy p { font-size: 0.86em; line-height: 1.75; }
.dk-handy .lk { display: inline-block; min-width: 4.4em; padding: 0 0.3em; border-bottom: 1.5px solid var(--dk-a); background: #f0f8f9; color: var(--dk-a); font-weight: 600; text-align: center; line-height: 1.35; }
.dk-handy .bank { display: flex; flex-wrap: wrap; gap: 0.3em; margin: 0.6em 0; }
.dk-handy .bank span { padding: 0.15em 0.5em; border: 1px solid var(--tw-linie); border-radius: 0.35em; background: #fff; font-size: 0.78em; }
.dk-handy .abgeben { display: block; margin-top: 0.7em; padding: 0.55em; border-radius: 0.6em; background: linear-gradient(135deg, var(--dk-a), var(--dk-b)); color: #fff; font-size: 0.86em; font-weight: 700; text-align: center; }
.dk-handy .fertig { margin-top: 0.6em; padding: 0.55em 0.6em; border-radius: 0.6em; background: var(--tw-gruen2); color: var(--tw-gruen); font-size: 0.82em; font-weight: 600; }

/* Ergebnisse */
.tw-dialog.dk-erg { width: 40em; top: 3.4em; }
.dk-kz { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5em; margin-bottom: 0.7em; }
.dk-kz div { padding: 0.5em 0.6em; border-radius: 0.55em; background: var(--tw-grund); }
.dk-kz b { display: block; font-size: 1.25em; }
.dk-kz span { font-size: 0.72em; color: var(--tw-blass); }
.dk-tab { display: grid; font-size: 0.74em; }
.dk-tab > div { display: grid; grid-template-columns: 8em 3.4em minmax(0, 1fr) 3.6em 2.6em 3.2em 3.2em; gap: 0.5em; align-items: center; padding: 0.38em 0.3em; border-top: 1px solid var(--tw-linie2); }
.dk-tab > div > span:nth-child(n+4) { text-align: right; font-variant-numeric: tabular-nums; }
.dk-tab .kopf { border: 0; font-size: 0.9em; color: var(--tw-blass); }
.dk-tab .gut { color: var(--tw-gruen); font-weight: 700; }
.dk-tab .teil { color: #9a6a00; font-weight: 700; }
.dk-tab .null { color: var(--tw-rot); font-weight: 700; }
.dk-tab b { font-weight: 600; }

/* ---------------------------------------------------------
   Szene „Presentations“
   --------------------------------------------------------- */
.pr { --a: var(--pr-a); --b: var(--pr-b); }
.pr-arbeit { position: relative; display: grid; grid-template-columns: 7.4em minmax(0, 1fr) 10.5em; min-height: 0; }
.pr-film { min-height: 0; padding: 0.6em 0.6em; border-right: 1px solid var(--tw-linie); background: #fff; font-size: 0.74em; overflow: hidden; }
.pr-film h6 { margin-bottom: 0.5em; font-size: 0.82em; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tw-blass); }
.pr-film ol { display: grid; gap: 0.55em; counter-reset: folie; }
.pr-film li { counter-increment: folie; display: grid; grid-template-columns: 1em minmax(0, 1fr); gap: 0.35em; align-items: start; }
.pr-film li::before { content: counter(folie); font-size: 0.8em; color: var(--tw-blass); }
.pr-film li span { display: block; aspect-ratio: 16 / 9; border-radius: 0.3em; background: linear-gradient(135deg, #12392b, #1f6a45); box-shadow: 0 0 0 1px var(--tw-linie); }
.pr-film li span::after { content: ""; display: block; width: 60%; height: 0.35em; margin: 0.6em 0 0 0.5em; border-radius: 0.2em; background: rgba(255, 255, 255, 0.7); }
.pr-film li.wahl span { box-shadow: 0 0 0 2px var(--pr-a); }
.pr-insp { min-height: 0; padding: 0.7em 0.65em; border-left: 1px solid var(--tw-linie); background: #fff; font-size: 0.74em; overflow: hidden; }
.pr-insp h6 { display: flex; align-items: center; gap: 0.4em; margin-bottom: 0.4em; font-size: 0.86em; font-weight: 700; }
.pr-insp p { margin-bottom: 0.6em; font-size: 0.86em; line-height: 1.4; color: var(--tw-blass); }
.pr-ia { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3em; }
.pr-ia span { display: flex; align-items: center; gap: 0.35em; padding: 0.38em 0.4em; border: 1px solid var(--tw-linie); border-radius: 0.4em; font-size: 0.86em; white-space: nowrap; overflow: hidden; }
.pr-ia span .i { color: var(--pr-a); }
.pr-ia span.an { border-color: var(--pr-a); background: var(--pr-h); }
.pr-folie {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92%;
  aspect-ratio: 16 / 9;
  padding: 1.3em 1.5em;
  border-radius: 0.3em;
  background:
    radial-gradient(18em 12em at 90% 0%, rgba(110, 200, 120, 0.25), transparent 70%),
    linear-gradient(135deg, #12392b, #1f6a45);
  color: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0.6em 1.6em -0.6em rgba(17, 31, 55, 0.5);
}
.pr-folie h5 { font-size: 1.45em; font-weight: 700; line-height: 1.2; }
.pr-folie .unter { margin-top: 0.2em; font-size: 0.78em; opacity: 0.8; }
.pr-karte { margin-top: 0.8em; padding: 0.7em 0.8em; border-radius: 0.6em; background: rgba(255, 255, 255, 0.96); color: var(--tw-text); }
.pr-karte-kopf { display: flex; align-items: center; gap: 0.45em; margin-bottom: 0.45em; font-size: 0.72em; font-weight: 700; color: var(--pr-a); }
.pr-karte-kopf em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--tw-blass); }
.pr-balken { display: grid; gap: 0.35em; }
.pr-balken li { display: grid; grid-template-columns: 8.6em minmax(0, 1fr) 1.6em; gap: 0.5em; align-items: center; font-size: 0.74em; }
.pr-balken li i { display: block; height: 0.9em; border-radius: 0.45em; background: var(--tw-linie2); overflow: hidden; }
.pr-balken li i::after { content: ""; display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--pr-a), var(--pr-b)); transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1); }
.ab-3 .pr-balken li i::after { width: var(--w); }
html:not(.js) .pr-balken li i::after { width: var(--w); }
.pr-balken li b { text-align: right; font-variant-numeric: tabular-nums; }
.pr-karte-fuss { display: flex; align-items: center; gap: 0.4em; margin-top: 0.5em; font-size: 0.66em; color: var(--tw-blass); }
.pr-code { position: absolute; right: 1.2em; bottom: 1em; padding: 0.35em 0.7em; border-radius: 0.5em; background: rgba(255, 255, 255, 0.95); color: var(--tw-nacht); font-size: 0.72em; font-weight: 700; }
.pr-code small { display: block; font-weight: 500; color: var(--tw-blass); }
.pr-code b { letter-spacing: 0.08em; }
.tw-dialog.pr-live { width: 25em; text-align: center; }
.tw-dialog.pr-live > h5 { justify-content: center; }
.pr-live p { font-size: 0.74em; line-height: 1.45; color: var(--tw-text2); text-align: left; }
.pr-codegross { display: flex; align-items: center; justify-content: center; gap: 1em; margin: 0.8em 0 0.4em; }
.pr-codegross b { font-size: 1.9em; letter-spacing: 0.1em; color: var(--tw-nacht); }
.pr-qr { display: grid; grid-template-columns: repeat(7, 0.5em); gap: 0.08em; padding: 0.3em; border-radius: 0.3em; background: #fff; box-shadow: 0 0 0 1px var(--tw-linie); }
.pr-qr i { width: 0.5em; height: 0.5em; background: var(--tw-nacht); }
.pr-qr i.w { background: transparent; }
.pr-handy .mark { display: grid; place-items: center; width: 2.6em; height: 2.6em; margin: 0.3em auto 0.5em; border-radius: 50%; background: linear-gradient(135deg, var(--pr-a), var(--pr-b)); color: #fff; }
.pr-handy h6 { font-size: 1.1em; font-weight: 700; text-align: center; }
.pr-handy p { margin: 0.2em 0 0.6em; font-size: 0.8em; text-align: center; color: var(--tw-blass); }
.pr-handy .feld { padding: 0.5em; border: 1.5px solid var(--pr-a); border-radius: 0.55em; background: #fff; font-size: 1.05em; font-weight: 700; letter-spacing: 0.1em; text-align: center; min-height: 2.3em; }
.pr-handy .stapel { position: relative; }
.pr-handy .frage { font-size: 0.86em; font-weight: 700; margin-bottom: 0.4em; }
.pr-handy .opt { display: grid; gap: 0.3em; }
.pr-handy .opt span { padding: 0.45em 0.6em; border: 1px solid var(--tw-linie); border-radius: 0.5em; background: #fff; font-size: 0.82em; }
.pr-handy .opt span.an { border-color: var(--pr-a); background: var(--pr-h); color: var(--pr-a); font-weight: 700; }
.pr-handy .gesendet { margin-top: 0.6em; padding: 0.5em; border-radius: 0.5em; background: var(--tw-gruen2); color: var(--tw-gruen); font-size: 0.8em; font-weight: 600; text-align: center; }
.pr-handy .stapel > div { position: absolute; inset: 0 0 auto; }

/* ---------------------------------------------------------
   Entwurf „Messwerte“ (Tablet, quer)
   --------------------------------------------------------- */
.m.breit.ml-tablet { --em: 48; max-width: 820px; }
.m.breit.ml-tablet .m-schirm { height: 31em; }
.ml { --a: var(--ab-a); --b: var(--ab-b); }
.ml-arbeit { display: grid; grid-template-columns: 17em minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 0.8em; min-height: 0; padding: 0.9em; }
.ml-vorlage { display: flex; align-items: center; gap: 0.5em; margin-bottom: 0.5em; font-size: 0.76em; color: var(--tw-blass); }
.ml-vorlage b { color: var(--tw-text); }
.ml-tabelle { display: grid; border-radius: 0.6em; background: #fff; box-shadow: 0 0 0 1px var(--tw-linie); overflow: hidden; font-size: 0.82em; }
.ml-tabelle > div { display: grid; grid-template-columns: 3em 1fr 1fr 1fr; border-top: 1px solid var(--tw-linie2); }
.ml-tabelle > div > span { padding: 0.42em 0.55em; font-variant-numeric: tabular-nums; text-align: right; }
.ml-tabelle > div > span:first-child { color: var(--tw-blass); text-align: center; }
.ml-tabelle .kopf { border: 0; background: var(--tw-grund); font-weight: 700; }
.ml-tabelle .kopf span { text-align: right; }
.ml-tabelle .kopf small { display: block; font-weight: 500; font-size: 0.8em; color: var(--tw-blass); }
.ml-tabelle .neu { color: #b45309; }
.ml-tabelle .kopf .neu { background: var(--ab-h); }
.ml-diagramm { position: relative; padding: 0.6em 0.8em 0.4em; border-radius: 0.6em; background: #fff; box-shadow: 0 0 0 1px var(--tw-linie); }
.ml-diagramm h6 { display: flex; align-items: center; gap: 0.5em; font-size: 0.78em; font-weight: 700; }
.ml-diagramm h6 .tw-wahl { margin-left: auto; font-weight: 500; font-size: 0.95em; }
.ml-diagramm svg { display: block; width: 100%; height: auto; aspect-ratio: 100 / 62; margin-top: 0.3em; overflow: visible; }
.ml-diagramm svg .achse { stroke: #9aa6b8; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ml-diagramm svg .netz { stroke: var(--tw-linie2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ml-diagramm svg text { font-size: 3.2px; fill: var(--tw-blass); }
.ml-diagramm svg circle { fill: var(--ab-b); opacity: 0; transition: opacity 0.3s; }
.ab-1 .ml-diagramm svg circle { opacity: 1; }
.ml-diagramm svg circle:nth-of-type(2) { transition-delay: 0.25s; } .ml-diagramm svg circle:nth-of-type(3) { transition-delay: 0.5s; }
.ml-diagramm svg circle:nth-of-type(4) { transition-delay: 0.75s; } .ml-diagramm svg circle:nth-of-type(5) { transition-delay: 1s; }
.ml-diagramm svg path.trend { fill: none; stroke: var(--ab-a); stroke-width: 0.8; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 100; }
.ab-2 .ml-diagramm svg path.trend { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s ease; }
html:not(.js) .ml-diagramm svg path.trend { stroke-dashoffset: 0; }
html:not(.js) .ml-diagramm svg circle { opacity: 1; }
.ml-gleichung { position: absolute; right: 1em; top: 2.6em; padding: 0.3em 0.6em; border-radius: 0.45em; background: var(--ab-h); color: #9a3412; font-size: 0.78em; font-weight: 700; }
.ml-unten { grid-column: 1 / -1; position: relative; min-height: 4.6em; }
.ml-unten > div { position: absolute; inset: 0; }
.ml-aussage { display: flex; gap: 0.7em; align-items: flex-start; padding: 0.65em 0.8em; border-radius: 0.6em; background: #fff; box-shadow: 0 0 0 1px #f3d2b3; font-size: 0.82em; line-height: 1.45; }
.ml-aussage .i { margin-top: 0.15em; color: #c2410c; }
.ml-aussage b { color: var(--tw-text); }
.ml-bau { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4em; padding: 0.6em 0.8em; border-radius: 0.6em; background: #fff; box-shadow: 0 0 0 1px var(--tw-linie); font-size: 0.82em; }
.ml-bau > span:first-child { margin-right: 0.3em; font-weight: 700; }
.ml-stein { display: inline-flex; align-items: center; padding: 0.3em 0.6em; border-radius: 0.45em; background: var(--tw-grund); font-weight: 700; }
.ml-stein.wert { background: var(--ab-h); color: #9a3412; }
.ml-stein.op { background: #eef2f7; color: var(--tw-text2); }
.ml-bau .tw-btn { margin-left: auto; }

/* ---------------------------------------------------------
   Entwurf „Wo hängt die Klasse?“
   --------------------------------------------------------- */
.hh { --a: var(--dk-a); --b: var(--dk-b); }
.hh-arbeit { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0.8em; min-height: 0; padding: 0.9em; align-items: start; }
.hh-karte { padding: 0.75em 0.85em; border-radius: 0.6em; background: #fff; box-shadow: 0 0 0 1px var(--tw-linie); font-size: 0.82em; }
.hh-karte > h6 { display: flex; align-items: center; gap: 0.45em; margin-bottom: 0.6em; font-size: 0.92em; font-weight: 700; }
.hh-karte > h6 .i { color: var(--dk-a); }
.hh-karte > h6 small { margin-left: auto; font-weight: 500; color: var(--tw-blass); }
.hh-aufg { display: grid; gap: 0.45em; }
.hh-aufg li { display: grid; grid-template-columns: minmax(0, 1fr) 2em; gap: 0.2em 0.6em; align-items: center; }
.hh-aufg li > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hh-aufg li > b { text-align: right; font-variant-numeric: tabular-nums; }
.hh-aufg li > i { grid-column: 1 / -1; height: 0.55em; border-radius: 0.3em; background: var(--tw-linie2); overflow: hidden; }
.hh-aufg li > i::after { content: ""; display: block; height: 100%; width: 0; border-radius: inherit; background: var(--f, #9fb7c9); transition: width 1.2s ease; }
.ab-1 .hh-aufg li > i::after { width: var(--w); }
html:not(.js) .hh-aufg li > i::after { width: var(--w); }
.hh-aufg li.heiss { --f: linear-gradient(90deg, #f59e0b, #e0529c); }
.hh-aufg li.heiss > span { font-weight: 700; }
.hh-rechts { position: relative; display: grid; align-content: start; gap: 0.6em; }
.hh-muster { border-left: 0.25em solid #f59e0b; }
.hh-muster p { line-height: 1.45; }
.hh-muster .zitat { display: inline-block; margin: 0.35em 0 0.1em; padding: 0.2em 0.6em; border-radius: 0.4em; background: var(--tw-rot2); color: var(--tw-rot); font-weight: 700; }
.hh-wer { display: flex; flex-wrap: wrap; gap: 0.3em; margin-top: 0.5em; }
.hh-wer span { padding: 0.12em 0.5em; border-radius: 1em; background: var(--tw-grund); font-size: 0.86em; }
.hh-hilfe { box-shadow: 0 0 0 1.5px var(--dk-a); }
.hh-hilfe p { padding: 0.45em 0.55em; border-radius: 0.45em; background: var(--dk-h); line-height: 1.45; min-height: 3.2em; }
.hh-hilfe .tw-fuss { justify-content: flex-start; flex-wrap: wrap; }
.hh-handy .kopf { margin: -0.85em -0.8em 0.6em; padding: 0.6em 0.8em; background: var(--tw-nacht); color: #fff; font-size: 0.86em; font-weight: 700; }
.hh-handy .kopf small { display: block; font-weight: 400; opacity: 0.8; }
.hh-handy .aufg { font-size: 0.84em; font-weight: 700; margin-bottom: 0.4em; }
.hh-zuord { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35em; font-size: 0.78em; }
.hh-zuord > div { padding: 0.4em; border-radius: 0.5em; background: #fff; box-shadow: 0 0 0 1px var(--tw-linie); }
.hh-zuord > div > b { display: block; margin-bottom: 0.3em; font-size: 0.9em; color: var(--tw-blass); }
.hh-zuord span { display: block; margin-top: 0.25em; padding: 0.2em 0.4em; border-radius: 0.35em; background: var(--tw-grund); }
.hh-frage { display: flex; align-items: center; gap: 0.45em; margin-top: 0.7em; padding: 0.5em 0.6em; border-radius: 0.6em; background: #fff7ed; box-shadow: 0 0 0 1.5px #f59e0b; color: #9a3412; font-size: 0.82em; font-weight: 700; }
.hh-notiz { margin-top: 0.5em; padding: 0.5em 0.6em; border-radius: 0.5em; background: #fff; box-shadow: 0 0 0 1px var(--tw-linie); font-size: 0.8em; min-height: 3.6em; line-height: 1.4; }

/* ---------------------------------------------------------
   Schmal: Tablet und Handy des Besuchers
   --------------------------------------------------------- */
@container (max-width: 560px) {
  .m.fenster.tw .m-geraet { font-size: calc(100cqw / 40); }
  .m.fenster.tw .m-schirm { height: 41em; }
  .m-schirm.tw .nb { display: none !important; }
  .dk-arbeit { grid-template-columns: minmax(0, 1fr); }
  .dk-blatt { width: 92%; }
  .pr-arbeit { grid-template-columns: minmax(0, 1fr); }
  .pr-folie { top: 1em; transform: translateX(-50%); }
  .tw-dialog.dk-erg { width: auto; left: 0.8em; right: 0.8em; transform: translateY(0.6em) !important; }
  .tw-dialog.dk-erg.da { transform: none !important; }
  .dk-tab > div { grid-template-columns: 7.5em minmax(0, 1fr) 3.6em 2.6em; }
  .dk-tab > div > span:nth-child(2), .dk-tab > div > span:nth-child(n+6) { display: none; }
  .dk-kz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tw-handy { top: auto; height: 23em; left: 50%; right: auto; width: 16em; transform: translate(-50%, 130%) !important; }
  .tw-handy.da { transform: translate(-50%, 0) !important; }
  .hh-arbeit { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 520px) {
  .m.breit.ml-tablet .m-geraet { font-size: calc(100cqw / 30); }
  .m.breit.ml-tablet .m-schirm { height: 46em; }
  .ml-arbeit { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .ml-unten { min-height: 6.2em; }
  .m-schirm.tw .nb { display: none !important; }
}
@media (max-width: 1100px) {
  .tb-merkmale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-ideen.drei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .ke-kapitel.tb-ausblick { border-radius: 0; margin-inline: 0; }
}
@media (max-width: 680px) {
  .tb-merkmale, .tb-ideen.drei { grid-template-columns: minmax(0, 1fr); }
  .tb-ideen.drei > .lang { grid-row: auto; }
  .tb-ideen.breit .tb-idee { grid-template-columns: 2.3rem minmax(0, 1fr); }
  .tb-ideen.breit .tb-idee-kopf .tb-geplant { grid-column: 2; grid-row: auto; justify-self: start; }
  .tb-ideen.breit .tb-idee p { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .pr-balken li i::after, .hh-aufg li > i::after, .ml-diagramm svg path.trend, .tw-handy { transition: none !important; }
  .ab-1 .dk-aufgabe.neu { animation: none; }
}
