/* Video-Anleitungen zum mCMS (/cms/tutorials): Leiste links (Handy: Auswahl oben unter dem Menü), Video, Kapitel, Text,
   interaktive Beispiele (.td-*). Farben aus site.css (--gelb, --flaeche, --rand …). */

.tut-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }

/* ---------- Leiste ---------- */
.tut-leiste { position: sticky; top: calc(var(--kopf-hoehe) + 28px); max-height: calc(100vh - var(--kopf-hoehe) - 56px); overflow-y: auto; padding: 18px; border-radius: 20px; background: var(--flaeche); box-shadow: inset 0 0 0 1px var(--rand); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); scrollbar-width: thin; }
.tut-leiste h2 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin: 0 0 .8rem; }
.tut-liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.tut-liste a { display: flex; gap: .75rem; align-items: flex-start; padding: .65rem .7rem; border-radius: 14px; color: var(--text-2); text-decoration: none; transition: background .25s, color .25s, transform .35s var(--feder); }
.tut-liste a:hover { background: var(--flaeche-2); color: #fff; transform: translateX(3px); }
.tut-nr { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--flaeche-2); color: var(--text-3); font: 800 .85rem/1 'Exo 2', sans-serif; font-variant-numeric: tabular-nums; transition: background .25s, color .25s; }
.tut-eintrag { display: grid; gap: .15rem; min-width: 0; }
.tut-eintrag strong { color: inherit; font-size: .95rem; line-height: 1.3; }
.tut-eintrag small { color: var(--text-3); font-size: .78rem; line-height: 1.35; }
.tut-liste a.aktiv { background: rgba(255, 198, 26, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 198, 26, .35); }
.tut-liste a.aktiv .tut-nr { background: var(--gelb); color: #111; }
.tut-leiste-fuss { margin: 1rem .3rem 0; color: var(--text-3); font-size: .8rem; display: flex; gap: .5rem; align-items: center; }

/* Auswahl am Handy (nur mit JavaScript, siehe tutorials.js) */
.tut-auswahl { display: flex; width: 100%; align-items: center; gap: .8rem; padding: .7rem .9rem; border: 0; border-radius: 16px; background: transparent; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.tut-auswahl[hidden] { display: none; }
@media (min-width: 981px) { .tut-auswahl { display: none; } }
.tut-auswahl-nr { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--gelb); color: #111; font: 800 .9rem/1 'Exo 2', sans-serif; }
.tut-auswahl-text { flex: 1; min-width: 0; display: grid; }
.tut-auswahl-text small { color: var(--text-3); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.tut-auswahl-text strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tut-auswahl i { transition: transform .3s var(--kurve); }
.tut-auswahl[aria-expanded="true"] i { transform: rotate(180deg); }

/* ---------- Video ---------- */
.tut-video { scroll-margin-top: calc(var(--kopf-hoehe) + 24px); }
.tut-video + .tut-video { margin-top: 4.5rem; padding-top: 4.5rem; border-top: 1px solid var(--rand); }
.js [data-tutorials].ist-bereit .tut-video { display: none; }
.js [data-tutorials].ist-bereit .tut-video.aktiv { display: block; margin-top: 0; padding-top: 0; border-top: 0; animation: tut-rein .5s var(--kurve); }
@keyframes tut-rein { from { opacity: 0; transform: translateY(14px); } }
.tut-kicker { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0 0 .5rem; color: var(--gelb); font: 800 .78rem/1.2 'Exo 2', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.tut-kicker span + span { color: var(--text-3); letter-spacing: .06em; }
.tut-video h2 { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.2rem; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.tut-video h2 i { color: var(--gelb); font-size: .8em; }
.tut-player { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--schatten), 0 0 0 1px var(--rand); aspect-ratio: 16 / 9; }
.tut-player video { display: block; width: 100%; height: 100%; background: #000; }
.tut-player video::cue { background: rgba(10, 12, 20, .82); color: #fff; font-family: 'Exo 2', sans-serif; }

.tut-kapitel { display: flex; gap: .5rem; margin: 1rem 0 0; padding: .2rem 0 .5rem; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; }
.tut-kapitel button { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .85rem; border: 0; border-radius: 999px; background: var(--flaeche); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--rand); font: 600 .85rem/1 'Exo 2', sans-serif; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.tut-kapitel button span { color: var(--text-3); font-variant-numeric: tabular-nums; }
.tut-kapitel button:hover { background: var(--flaeche-2); color: #fff; }
.tut-kapitel button.jetzt { background: rgba(255, 198, 26, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 198, 26, .5); }
.tut-kapitel button.jetzt span { color: var(--gelb); }

.tut-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 2rem; margin-top: 1.8rem; }
.tut-text p { color: var(--text-2); font-size: 1.05rem; line-height: 1.7; margin: 0 0 1rem; }
.tut-lernen { padding: 1.2rem 1.3rem; border-radius: 18px; background: var(--flaeche); box-shadow: inset 0 0 0 1px var(--rand); align-self: start; }
.tut-lernen h3 { margin: 0 0 .8rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.tut-lernen ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.tut-lernen li { display: flex; gap: .6rem; color: var(--text); font-size: .95rem; line-height: 1.4; }
.tut-lernen li i { color: var(--gruen); margin-top: .2rem; }

/* ---------- Beispiel ---------- */
.tut-demo { margin-top: 2.4rem; padding: clamp(18px, 3vw, 30px); border-radius: var(--radius); background: radial-gradient(120% 140% at 0% 0%, rgba(255, 198, 26, .08), transparent 55%), var(--flaeche); box-shadow: inset 0 0 0 1px var(--rand); }
.tut-demo-kopf { margin-bottom: 1.3rem; }
.tut-demo-marke { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .75rem; border-radius: 999px; background: var(--gelb); color: #111; font: 800 .75rem/1 'Exo 2', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.tut-demo-kopf h3 { margin: .8rem 0 .3rem; font-size: 1.35rem; }
.tut-demo-kopf p { margin: 0; color: var(--text-2); max-width: 62ch; }
.tut-demo-ohne { color: var(--text-3); }
.tut-weiter { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.4rem; }
.tut-hilfe { margin-top: 3rem; }

/* Bausteine der Beispiele: ein helles „Fenster“ wie eine Website */
.td { --td-akzent: #d48806; color: #1d2433; font: 15px/1.5 system-ui, -apple-system, 'Segoe UI', sans-serif; }
.td button { font: inherit; }
.td-fenster { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7); }
.td-leiste { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; background: #eef1f6; border-bottom: 1px solid #dfe4ec; color: #5b6475; font-size: .8rem; }
.td-leiste i.p { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.td-leiste i.p:nth-child(2) { background: #fbbf24; } .td-leiste i.p:nth-child(3) { background: #34d399; }
.td-leiste .adr { flex: 1; margin-left: .4rem; padding: .25rem .7rem; border-radius: 999px; background: #fff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.td-seite { padding: 1.2rem 1.3rem 1.4rem; min-height: 180px; }
.td-seite h4 { margin: 0 0 .4rem; font-size: 1.45rem; line-height: 1.2; color: #3a2500; font-family: 'Exo 2', sans-serif; }
.td-seite p { margin: 0 0 .7rem; color: #3b4252; }
.td-knopf { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border: 0; border-radius: 999px; background: var(--td-akzent); color: #fff; font-weight: 700; cursor: pointer; }
.td-knopf.zweit { background: #eef1f6; color: #1d2433; }
.td-knopf:disabled { opacity: .45; cursor: default; }
.td-schalter { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--rand); margin-bottom: 1rem; }
.td-schalter button { border: 0; border-radius: 999px; padding: .5rem 1rem; background: transparent; color: var(--text-2); font: 700 .9rem/1 'Exo 2', sans-serif; cursor: pointer; display: inline-flex; gap: .45rem; align-items: center; }
.td-schalter button[aria-pressed="true"] { background: var(--gelb); color: #111; }
.td-bild { display: grid; place-items: center; height: 120px; border-radius: 12px; background: linear-gradient(160deg, #8fd0f5, #e8f6ff 55%, #5d9b4f 56%, #4f8a43); color: #fff; font-size: 2rem; margin: .3rem 0 .8rem; }
.td-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
@media (max-width: 760px) { .td-raster { grid-template-columns: minmax(0, 1fr); } }
.td-karte { border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--rand); padding: 1rem; color: var(--text); font-family: 'Exo 2', sans-serif; }
.td-karte h5 { margin: 0 0 .7rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.td-feld { display: grid; gap: .3rem; margin-bottom: .8rem; color: var(--text-2); font-size: .85rem; font-weight: 600; }
.td-feld input, .td-feld select { width: 100%; padding: .6rem .75rem; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .07); color: #fff; box-shadow: inset 0 0 0 1px var(--rand-2); font: 500 .95rem/1.3 'Exo 2', sans-serif; color-scheme: dark; }
.td-feld input:focus, .td-feld select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gelb); }
/* Eine Spalte, die nie breiter als der Kasten wird (lange Texte werden in .name mit „…“ gekürzt). */
.td-zeilen { display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; }
.td-raster > *, .td-karte { min-width: 0; }
.td-ruhig { color: var(--text-3); font-size: .85rem; }
.td-ikon { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .07); color: var(--text-2); cursor: pointer; transition: background .2s, color .2s; }
.td-ikon:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.td-ikon:disabled { opacity: .35; cursor: default; }
.td-ikon.an { background: rgba(255, 198, 26, .18); color: var(--gelb); }

/* Überblick: Website ↔ Bearbeiten */
.td-bearbeiten [data-edit] { outline: 2px dashed rgba(212, 136, 6, .55); outline-offset: 4px; border-radius: 6px; cursor: text; }
.td-bearbeiten [data-edit]:focus { outline: 2px solid var(--td-akzent); background: #fff8e6; }

/* Seite bauen / Editor */
.td-palette { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.td-palette button { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #fff; font: 600 .85rem/1 'Exo 2', sans-serif; cursor: pointer; box-shadow: inset 0 0 0 1px var(--rand-2); }
.td-palette button:hover { background: rgba(255, 198, 26, .16); box-shadow: inset 0 0 0 1px rgba(255, 198, 26, .5); }
.td-block { display: flex; align-items: center; gap: .55rem; padding: .5rem .6rem; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--rand); animation: td-rein .35s var(--feder); }
.td-block.aus { opacity: .45; box-shadow: inset 0 0 0 1px dashed var(--rand-2); }
.td-block .name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .9rem; }
.td-block .name i { color: var(--gelb); margin-right: .35rem; }
.td-block.aus .name { text-decoration: line-through; }
@keyframes td-rein { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.td-zaehler { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--text-2); font-size: .82rem; }
.td-zaehler.geaendert { background: rgba(251, 113, 133, .16); color: #fecdd3; }
.td-werkzeuge { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .8rem; }

/* Fokuspunkt */
.td-fokus-bild { position: relative; border-radius: 14px; overflow: hidden; cursor: crosshair; line-height: 0; }
.td-fokus-bild img { width: 100%; height: auto; display: block; }
.td-fokus-punkt { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--gelb), 0 6px 16px rgba(0, 0, 0, .5); transition: left .35s var(--feder), top .35s var(--feder); pointer-events: none; }
.td-zuschnitte { display: grid; grid-template-columns: 1fr 1.6fr .7fr; gap: .7rem; align-items: end; }
.td-zuschnitt { display: grid; gap: .35rem; color: var(--text-3); font-size: .78rem; text-align: center; }
.td-zuschnitt img { width: 100%; object-fit: cover; border-radius: 10px; transition: object-position .45s var(--kurve); }
.td-hinweis { display: flex; gap: .5rem; align-items: flex-start; color: #fcd34d; font-size: .82rem; margin-top: -.3rem; }
.td-vorleser { margin-top: .6rem; padding: .7rem .9rem; border-radius: 12px; background: rgba(52, 211, 153, .1); color: #a7f3d0; font-size: .88rem; }

/* Menü */
.td-navi { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.1rem; padding: .7rem 1.1rem; background: #fffaf0; border-bottom: 1px solid #f1e6cf; font-weight: 600; }
.td-navi strong { margin-right: auto; color: #3a2500; font-family: 'Exo 2', sans-serif; }
.td-navi .eintrag { position: relative; color: #5a3d00; cursor: default; }
.td-navi .eintrag.gruppe { cursor: pointer; }
.td-navi .eintrag.gruppe::after { content: '▾'; margin-left: .25rem; font-size: .8em; }
/* Das Fenster des Menü-Beispiels schneidet nicht ab, damit das Aufklappmenü über den Rand hinausragen darf. */
.td-fenster.td-offen { overflow: visible; }
.td-fenster.td-offen .td-leiste { border-radius: 16px 16px 0 0; }
.td-fenster.td-offen > :last-child { border-radius: 0 0 16px 16px; }
.td-navi { position: relative; z-index: 5; }
.td-navi .unter { position: absolute; right: -.4rem; top: 100%; z-index: 6; display: none; min-width: 170px; margin-top: .5rem; padding: .35rem; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #eadfca, 0 18px 36px -12px rgba(0, 0, 0, .45); }
.td-navi .eintrag.offen .unter { display: grid; gap: 2px; }
.td-navi .unter span { padding: .5rem .75rem; border-radius: 8px; white-space: nowrap; color: #3a2500; font: 600 .92rem/1.3 system-ui, -apple-system, 'Segoe UI', sans-serif; }
.td-navi .unter span:hover { background: #fff3d6; }
.td-menue-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: center; padding: .5rem .6rem; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--rand); }
.td-menue-zeile.unterpunkt { margin-left: 1.6rem; position: relative; }
.td-menue-zeile.unterpunkt::before { content: ''; position: absolute; left: -1rem; top: -.4rem; width: .8rem; height: 1.6rem; border-left: 2px solid var(--rand-2); border-bottom: 2px solid var(--rand-2); border-bottom-left-radius: 8px; }
.td-menue-zeile input { width: 100%; min-width: 0; padding: .3rem .5rem; border: 0; border-radius: 8px; background: transparent; color: #fff; font: 700 .95rem/1.3 'Exo 2', sans-serif; }
.td-menue-zeile input:focus { outline: none; background: rgba(255, 255, 255, .08); }
.td-menue-zeile code { display: block; margin: 0; padding: 0 .5rem; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--text-3); font-size: .78rem; }
.td-menue-zeile.versteckt input { color: var(--text-3); text-decoration: line-through; }

/* Stift */
.td-stift-seite { position: relative; }
.td-stift-seite [data-baustein] { position: relative; border-radius: 10px; transition: box-shadow .15s; }
.td-stift-an [data-baustein] { cursor: pointer; }
.td-stift-an [data-baustein]:hover { box-shadow: 0 0 0 3px #3d5afe; }
.td-stift-an [data-baustein]:hover::after { content: attr(data-baustein); position: absolute; left: 6px; top: -12px; padding: .1rem .5rem; border-radius: 6px; background: #3d5afe; color: #fff; font: 700 .72rem/1.5 system-ui, sans-serif; }
.td-stift-kugel { position: absolute; left: 14px; bottom: 14px; z-index: 3; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #3d5afe; color: #fff; box-shadow: 0 10px 24px -6px rgba(61, 90, 254, .8); cursor: pointer; transition: transform .3s var(--feder); }
.td-stift-kugel:hover { transform: scale(1.08) rotate(-8deg); }
.td-stift-an .td-stift-kugel { background: #fff; color: #3d5afe; box-shadow: 0 0 0 3px #3d5afe; }
.td-toast { margin-top: .9rem; padding: .75rem 1rem; border-radius: 14px; background: rgba(61, 90, 254, .16); color: #dbe3ff; font-size: .9rem; min-height: 2.9rem; display: flex; align-items: center; gap: .6rem; }

/* Termine */
.td-termine-liste { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.td-termine-liste li { display: flex; gap: .7rem; align-items: center; padding: .45rem .6rem; border-radius: 12px; background: rgba(255, 255, 255, .05); animation: td-rein .35s var(--feder) both; }
.td-termine-liste b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--gelb); color: #111; font: 800 1rem/1 'Exo 2', sans-serif; flex: none; }
.td-termine-liste b small { display: block; font-size: .62rem; font-weight: 700; text-transform: uppercase; }
.td-monat { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-top: .8rem; font-size: .78rem; text-align: center; }
.td-monat span { padding: .4rem 0; border-radius: 8px; color: var(--text-2); }
.td-monat .kopf { color: var(--text-3); font-weight: 700; }
.td-monat .leer { visibility: hidden; }
.td-monat .termin { background: var(--gelb); color: #111; font-weight: 800; }
.td-monat-titel { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; font-weight: 700; }

/* Anmeldung */
.td-plaetze { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: .4rem 0 .3rem; }
.td-plaetze i { display: block; height: 100%; background: var(--verlauf); transition: width .6s var(--kurve); }
.td-ticketwahl { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .7rem; border-radius: 12px; background: rgba(255, 255, 255, .05); margin-bottom: .4rem; }
.td-stepper { display: inline-flex; align-items: center; gap: .4rem; }
.td-stepper b { min-width: 1.4rem; text-align: center; font-variant-numeric: tabular-nums; }
.td-tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin-top: .8rem; }
.td-ticket { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: .6rem; align-items: center; padding: .6rem; border-radius: 12px; background: #fff; color: #1d2433; animation: td-rein .45s var(--feder) both; }
.td-ticket svg { width: 54px; height: 54px; }
.td-ticket strong { display: block; font-size: .85rem; line-height: 1.2; }
.td-ticket small { color: #5b6475; font-size: .74rem; }

/* ---------- Handy und Tablet ---------- */
@media (max-width: 980px) {
    .tut-layout { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .tut-leiste { top: calc(var(--kopf-hoehe) + 6px); z-index: 20; max-height: none; overflow: visible; padding: 6px; border-radius: 20px; background: rgba(12, 18, 51, .94); box-shadow: inset 0 0 0 1px var(--rand-2), 0 18px 40px -18px rgba(0, 0, 0, .8); }
    .tut-leiste.offen { background: var(--grund-2); box-shadow: inset 0 0 0 1px var(--rand-2), 0 24px 60px -10px rgba(0, 0, 0, .9); }
    .js .tut-leiste h2, .js .tut-leiste-fuss { display: none; }
    .js .tut-leiste .tut-liste { display: none; max-height: min(62vh, 520px); overflow-y: auto; padding: 6px 4px 4px; border-top: 1px solid var(--rand); margin-top: 6px; }
    .js .tut-leiste.offen .tut-liste { display: grid; animation: tut-rein .3s var(--kurve); }
    .tut-text { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
    .tut-video + .tut-video { margin-top: 3rem; padding-top: 3rem; }
}
@media (max-width: 560px) {
    .tut-weiter .knopf { width: 100%; }
    .td-zuschnitte { grid-template-columns: 1fr 1fr; }
    .td-zuschnitte .td-zuschnitt:nth-child(2) { grid-column: 1 / -1; order: -1; }
}
@media (prefers-reduced-motion: reduce) {
    .js [data-tutorials].ist-bereit .tut-video.aktiv, .td-block, .td-termine-liste li, .td-ticket, .tut-leiste.offen .tut-liste { animation: none; }
}

/* ---------- Bedienungsanleitung (PDF) über den Videos und in der Leiste ---------- */
.tut-handbuch-bereich { scroll-margin-top: calc(var(--kopf-hoehe) + 24px); margin-bottom: clamp(28px, 4vw, 48px); }
.tut-handbuch { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(22px, 4vw, 44px); border-radius: 26px; overflow: hidden;
    background: radial-gradient(120% 140% at 0% 0%, rgba(255, 198, 26, .12), transparent 55%), var(--flaeche); box-shadow: inset 0 0 0 1px var(--rand), var(--schatten); }
.tut-handbuch-cover { display: block; perspective: 1400px; }
.tut-handbuch-cover img { display: block; width: 100%; height: auto; border-radius: 6px 14px 14px 6px; transform: rotateY(14deg) rotateX(4deg); transform-origin: left center;
    box-shadow: -2px 0 0 rgba(0, 0, 0, .25) inset, 18px 26px 50px -18px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .6s var(--kurve), box-shadow .6s var(--kurve); }
.tut-handbuch-cover:hover img, .tut-handbuch-cover:focus-visible img { transform: rotateY(4deg) rotateX(1deg) translateY(-4px); box-shadow: 10px 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 198, 26, .35); }
.tut-handbuch-text h2 { margin: 0 0 .9rem; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.15; }
.tut-handbuch-text > p { color: var(--text-2); font-size: 1.05rem; line-height: 1.7; margin: 0 0 1.2rem; max-width: 62ch; }
.tut-handbuch-kapitel { margin: 0 0 1.5rem; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; counter-reset: none; }
.tut-handbuch-kapitel li { display: flex; align-items: center; gap: .7rem; padding: .45rem .2rem; border-bottom: 1px dashed var(--rand); font-size: .95rem; }
.tut-handbuch-nr { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--flaeche-2); color: var(--gelb); font: 800 .8rem/1 'Exo 2', sans-serif; }
.tut-handbuch-name { flex: 1; min-width: 0; color: var(--text); }
.tut-handbuch-seite { flex: none; color: var(--text-3); font-size: .8rem; font-variant-numeric: tabular-nums; }
.tut-handbuch-knoepfe { display: flex; flex-wrap: wrap; gap: .7rem; }
.tut-handbuch-stand { margin: 1rem 0 0; color: var(--text-3); font-size: .82rem; }
@media (max-width: 860px) {
    .tut-handbuch { grid-template-columns: minmax(0, 1fr); }
    .tut-handbuch-cover { max-width: 230px; margin: 0 auto; }
    .tut-handbuch-kapitel { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .tut-handbuch-cover img { transform: none; transition: none; } }

.tut-leiste-handbuch { display: flex; align-items: center; gap: .75rem; margin: 1rem 0 0; padding: .75rem .8rem; border-radius: 14px; background: rgba(255, 198, 26, .08); box-shadow: inset 0 0 0 1px rgba(255, 198, 26, .25); color: var(--text); text-decoration: none; transition: background .25s, transform .25s var(--kurve); }
.tut-leiste-handbuch:hover { background: rgba(255, 198, 26, .14); transform: translateX(3px); }
.tut-leiste-handbuch > i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--gelb); color: #111; }
.tut-leiste-handbuch span { display: grid; gap: .1rem; min-width: 0; }
.tut-leiste-handbuch strong { font-size: .92rem; }
.tut-leiste-handbuch small { color: var(--text-3); font-size: .76rem; }
