/* Seite „VisuDesk“ (visucode.de/visudesk/). Baut auf css/visucode.css und css/moodle.css auf:
   gleiche Farbe Koralle → Rot wie die Moodle-Plugins (--g-desk, --c-desk). */

.visudesk { --accent: var(--c-desk); }
.visudesk .hx-grad { background-image: var(--g-desk); }
.vd-icon { width: 4.5rem; height: 4.5rem; margin: 0 0 1rem; filter: drop-shadow(0 0.75rem 1.5rem rgba(0, 0, 0, 0.45)); }

/* Bildschirmfoto der App, hell oder dunkel passend zum System */
.vd-shot { margin: -2.5rem auto 0; max-width: 72rem; padding: 0 1rem; position: relative; }
.vd-shot picture, .vd-shot img { display: block; width: 100%; height: auto; }
.vd-shot img { border-radius: 0.9rem; border: 0.0625rem solid var(--line); box-shadow: 0 1.5rem 3.5rem rgba(28, 23, 23, 0.28); }
.vd-shot figcaption { margin: 0.7rem 0 0; color: var(--text-muted); font-size: 0.9rem; text-align: center; }
/* zwei Bildschirmfotos (Kursansicht, Meine Woche): wischen oder über die Punkte wechseln */
.vd-shots { margin: -2.5rem auto 0; max-width: 72rem; position: relative; }
.vd-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 1.5rem; }
.vd-track::-webkit-scrollbar { display: none; }
.vd-track > .vd-shot { flex: 0 0 100%; margin: 0; scroll-snap-align: center; box-sizing: border-box; }
.vd-dots { display: flex; justify-content: center; gap: 0.25rem; margin-top: -0.6rem; }
.vd-dots button { width: 1.5rem; height: 1.5rem; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; display: grid; place-items: center; }
.vd-dots button::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--line); transition: background 0.2s, transform 0.2s; }
.vd-dots button[aria-current="true"]::before { background: var(--c-desk); transform: scale(1.25); }
.vd-dots button:focus-visible { outline: 0.125rem solid var(--c-desk); outline-offset: 0.125rem; }
.visudesk .hx-inner { grid-template-columns: 1fr; max-width: 52rem; text-align: center; padding-bottom: 5rem; }
.visudesk .hx-lead { margin-left: auto; margin-right: auto; }
.visudesk .hx-cta, .visudesk .hx-badges { justify-content: center; }
.btn-off { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.86); border: 0.0625rem dashed rgba(255, 255, 255, 0.35); cursor: default; }
.dl-box { padding: 1.4rem 1.5rem; border-radius: 1rem; border: 0.0625rem dashed var(--line); background: var(--surface); }
.dl-box h3 { margin: 0 0 0.4rem; }
.dl-box p { margin: 0; color: var(--text-muted); }
.visudesk .hx-text { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* Anleitung für Admins (visudesk/admin/) */
.guide { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; max-width: 72rem; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
.guide-toc { position: sticky; top: 5rem; align-self: start; font-size: 0.92rem; }
.guide-toc p { margin: 0 0 0.6rem; font-weight: 700; }
.guide-toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.guide-toc a { color: var(--text-muted); text-decoration: none; }
.guide-toc a:hover { color: var(--c-desk); text-decoration: underline; }
.guide-body { max-width: 46rem; line-height: 1.65; }
.guide-body section { margin: 0 0 3rem; scroll-margin-top: 5rem; }
.guide-body h2 { margin: 0 0 0.8rem; font-size: 1.6rem; display: flex; align-items: center; gap: 0.7rem; }
.guide-body h3 { margin: 1.6rem 0 0.5rem; font-size: 1.1rem; }
.guide-body p, .guide-body li { color: var(--text); }
.guide-body ol.steps { padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.step-n { flex: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--g-desk); color: #fff; font-size: 1rem; font-weight: 800; }
.path { display: inline; padding: 0.1rem 0.45rem; border-radius: 0.35rem; background: color-mix(in srgb, var(--c-desk) 8%, var(--surface)); border: 0.0625rem solid color-mix(in srgb, var(--c-desk) 20%, var(--line)); font-size: 0.92em; white-space: normal; }
.guide-body code { font-size: 0.88em; padding: 0.05rem 0.3rem; border-radius: 0.3rem; background: color-mix(in srgb, var(--text) 6%, transparent); overflow-wrap: anywhere; }
.fn-table { width: 100%; border-collapse: collapse; margin: 0.8rem 0 0.4rem; font-size: 0.93rem; }
.fn-table th, .fn-table td { text-align: left; vertical-align: top; padding: 0.5rem 0.6rem; border-bottom: 0.0625rem solid var(--line); }
.fn-table th { font-size: 0.82rem; color: var(--text-muted); font-weight: 700; }
.fn-table td:first-child { width: 48%; }
.fn-table tr.grp td { padding-top: 1rem; font-weight: 700; border-bottom: 0; color: var(--c-desk); }
.note { margin: 1rem 0; padding: 0.9rem 1.1rem; border-radius: 0.8rem; border-left: 0.25rem solid var(--c-desk); background: var(--surface); border-top: 0.0625rem solid var(--line); border-right: 0.0625rem solid var(--line); border-bottom: 0.0625rem solid var(--line); }
.note strong { display: block; margin-bottom: 0.2rem; }
.note.ok { border-left-color: #15803d; }
@media (max-width: 860px) { .guide { grid-template-columns: 1fr; } .guide-toc { position: static; } .fn-table td:first-child { width: auto; } }

/* Admin-Abschnitt: zwei Bildkarten statt Textkästen */
.adm-cards { display: grid; gap: 1rem; }
.adm-card { margin: 0; border-radius: 1rem; overflow: hidden; background: rgba(255, 255, 255, 0.06); border: 0.0625rem solid rgba(255, 255, 255, 0.14); }
.adm-card img { display: block; width: 100%; height: auto; border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.1); }
.adm-card figcaption { padding: 0.85rem 1.1rem 1rem; }
.adm-card strong { display: block; margin-bottom: 0.2rem; color: #fff; }
.adm-card span { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }
.adm-guide { margin: 1.5rem 0 0; }

/* Bilder zu den drei Installationsschritten */
.how3 .how-img { display: block; width: 100%; height: auto; border-radius: 0.9rem; margin: 0 0 1rem; border: 1px solid var(--line); }
.visudesk .plugin-links + .how3 { margin-top: 2rem; }

/* „Was VisuDesk für dich erledigt“: drei Gruppen zu je vier Kacheln, kurze Texte, Details unter „Mehr …“ (ab 0.3.4) */
#funktionen .fns-gruppe { margin: 1.7rem 0 0.7rem; font-size: 1rem; font-weight: 650; color: var(--text-muted); }
#funktionen .fns-gruppe:first-of-type { margin-top: 1rem; }
#funktionen .fns.fns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#funktionen .fns.fns-4 > li { display: flex; flex-direction: column; }
#funktionen .fns h4 { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.35rem; font-size: 1.05rem; line-height: 1.25; }
#funktionen .fns details { margin-top: auto; padding-top: 0.5rem; font-size: 0.9rem; }
#funktionen .fns summary { cursor: pointer; color: var(--c-moodle); font-weight: 600; width: fit-content; }
#funktionen .fns details p { margin-top: 0.35rem; }
#funktionen .fns-hilfe { margin: 1.4rem 0 0; color: var(--text-muted); }
@media (max-width: 68rem) { #funktionen .fns.fns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 38rem) { #funktionen .fns.fns-4 { grid-template-columns: 1fr; } }

/* Überblick „Was VisuDesk besonders macht“ (ab 0.3.5) */
.vd-ub-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; max-width: 52rem; }
.vd-ub-liste li { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.85rem 1.1rem; border-radius: 0.9rem; background: var(--surface); border: 0.0625rem solid var(--line); }
.vd-ub-liste p { margin: 0; }
.vd-ub-fi { font-size: 1.35rem; line-height: 1.4; }
.vd-ub-schluss { max-width: 52rem; margin: 1.3rem 0 0.4rem; font-size: 1.08rem; }
.vd-ub-daten { max-width: 52rem; margin: 0; color: var(--text-muted); }
