/* vorstellung_funktionen.css – Präsentationsseite vorstellung/funktionen.php (Gestaltung A + B, 31.10.2026).
   Nur Portal-Variablen aus app.css, keine Verläufe. Der Geräterahmen (.vs-geraet) ist bewusst dunkel: er stellt ein Tablet dar. */
#vs { --vs-rahmen:#1b1f27; max-width:1120px; margin:0 auto; color:var(--text); }
#vs h1, #vs h2, #vs h3, #vs h4 { color:var(--dark); }
#vs [id] { scroll-margin-top:calc(var(--header-h, 60px) + 1rem); }
#vs .vs-kicker { font-size:.78rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--red); }
#vs .vs-lead { font-size:1.12rem; line-height:1.65; color:var(--muted); }

/* Knöpfe */
#vs .vs-knoepfe { display:flex; flex-wrap:wrap; gap:.7rem; margin-top:1.6rem; }
#vs .vs-mitte { justify-content:center; margin-top:2.4rem; }
#vs .vs-btn { display:inline-flex; align-items:center; gap:.4rem; padding:.75rem 1.3rem; border-radius:999px; font-weight:600; font-size:.95rem; text-decoration:none; border:1.5px solid var(--border); background:var(--white); color:var(--dark); }
#vs .vs-btn:hover { border-color:var(--dark); }
#vs .vs-btn-rot { background:var(--red); border-color:var(--red); color:#fff; }
#vs .vs-btn-rot:hover { background:var(--red-dark); border-color:var(--red-dark); }

/* Gerät */
#vs .vs-geraet { background:var(--vs-rahmen); border-radius:22px; padding:12px; box-shadow:0 30px 60px -24px rgba(15,25,35,.5), 0 0 0 1px var(--border); }
#vs .vs-geraet img { display:block; width:100%; height:auto; border-radius:10px; }
#vs .vs-geraet.vs-klein { border-radius:14px; padding:7px; box-shadow:0 14px 30px -18px rgba(15,25,35,.5); }
#vs .vs-geraet.vs-klein img { border-radius:6px; }
#vs .vs-geraet.vs-mittel { max-width:820px; margin:2.4rem auto 0; }
#vs .vs-leer > div { aspect-ratio:16/10; border-radius:10px; background:var(--bg); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.3rem; color:var(--muted); font-weight:600; font-size:.95rem; text-align:center; padding:1rem; }
#vs .vs-leer span { font-size:2rem; }
#vs .vs-leer small { font-weight:500; font-size:.78rem; }
#vs .vs-papier { border-radius:12px; overflow:hidden; box-shadow:0 24px 50px -24px rgba(15,25,35,.45); border:1px solid var(--border); transform:rotate(-1.2deg); }
#vs .vs-papier img { display:block; width:100%; height:auto; }

/* Einstieg */
#vs .vs-held { display:grid; grid-template-columns:1fr 1.15fr; gap:48px; align-items:center; padding:48px 0 0; }
#vs .vs-held h1 { font-size:3rem; line-height:1.08; font-weight:800; letter-spacing:-.025em; margin:.5rem 0 1rem; }
#vs .vs-zahlen { grid-column:1 / -1; display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:28px; }
#vs .vs-zahlen div { background:var(--white); border:1px solid var(--border); border-left:4px solid var(--red); border-radius:14px; padding:16px 18px; }
#vs .vs-zahlen b { display:block; font-size:1.7rem; font-weight:800; color:var(--dark); line-height:1.1; }
#vs .vs-zahlen span { font-size:.85rem; color:var(--muted); }

/* Sprungleiste */
/* Sprungleiste bricht um statt die Seite zu verbreitern (ohne Sidebar war sie breiter als das Fenster). */
#vs { min-width:0; max-width:100%; overflow-x:clip; }
#vs .vs-sprung { position:sticky; top:var(--header-h, 60px); z-index:5; display:flex; flex-wrap:wrap; justify-content:center; gap:.4rem; min-width:0; max-width:100%; padding:.7rem 0; margin:36px 0 8px; background:var(--bg); border-bottom:1px solid var(--border); }
@media (max-width:700px) { #vs .vs-sprung { flex-wrap:nowrap; justify-content:flex-start; overflow-x:auto; scrollbar-width:none; } }
#vs .vs-sprung::-webkit-scrollbar { display:none; }
#vs .vs-sprung a { flex:0 0 auto; padding:.4rem .85rem; border-radius:999px; background:var(--white); border:1px solid var(--border); color:var(--text); font-size:.85rem; font-weight:500; text-decoration:none; }
#vs .vs-sprung a:hover { border-color:var(--red); color:var(--red); }

/* B: Bild und Text im Wechsel */
#vs .vs-reihe { display:grid; grid-template-columns:1fr 1.2fr; gap:56px; align-items:center; padding:64px 0; border-bottom:1px solid var(--border); }
#vs .vs-reihe.vs-links { grid-template-columns:1.2fr 1fr; }
#vs .vs-reihe.vs-links .vs-bild { order:-1; }
#vs .vs-text h2 { font-size:1.8rem; line-height:1.2; letter-spacing:-.01em; margin:.5rem 0 .9rem; }
#vs .vs-text p { line-height:1.7; margin-bottom:1rem; }
#vs .vs-haken { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:.6rem; }
#vs .vs-haken li { display:flex; gap:.65rem; align-items:flex-start; font-size:.95rem; line-height:1.5; }
#vs .vs-haken li::before { content:"✓"; flex:0 0 22px; height:22px; border-radius:50%; background:var(--green-bg); color:var(--green); font-weight:800; font-size:.75rem; display:flex; align-items:center; justify-content:center; margin-top:1px; }
#vs .vs-mini { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:.4rem; }
#vs .vs-mini div { background:var(--white); border:1px solid var(--border); border-top:3px solid var(--blue); border-radius:12px; padding:12px 14px; }
#vs .vs-mini div:nth-child(2) { border-top-color:var(--green); }
#vs .vs-mini div:nth-child(3) { border-top-color:var(--orange); }
#vs .vs-mini div:nth-child(4) { border-top-color:var(--red); }
#vs .vs-mini b { display:block; font-size:.95rem; color:var(--dark); margin-bottom:.15rem; }
#vs .vs-mini span { font-size:.84rem; color:var(--muted); line-height:1.45; }

/* A: Bühne */
#vs .vs-buehne { background:var(--white); border:1px solid var(--border); border-radius:24px; padding:56px; margin:64px 0; }
#vs .vs-kopf { text-align:center; max-width:780px; margin:0 auto 40px; }
#vs .vs-kopf h2 { font-size:2.3rem; line-height:1.15; font-weight:800; letter-spacing:-.02em; margin:.5rem 0 .9rem; }
#vs .vs-markiert { position:relative; max-width:920px; margin:0 auto; }
#vs .vs-punkt { position:absolute; width:34px; height:34px; border-radius:50%; background:var(--red); color:#fff; font-weight:800; font-size:.95rem; display:flex; align-items:center; justify-content:center; box-shadow:0 0 0 6px rgba(200,16,46,.25); }
#vs .vs-legende { display:grid; grid-template-columns:repeat(4,1fr); gap:22px; max-width:920px; margin:44px auto 0; }
#vs .vs-legende > div { display:flex; gap:12px; }
#vs .vs-legende b { flex:0 0 28px; height:28px; border-radius:50%; background:var(--red-bg); color:var(--red); display:flex; align-items:center; justify-content:center; font-size:.85rem; }
#vs .vs-legende h4 { font-size:.98rem; margin-bottom:.2rem; }
#vs .vs-legende p { font-size:.86rem; color:var(--muted); line-height:1.5; margin:0; }
#vs .vs-karten { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:56px; }
#vs .vs-karte { background:var(--bg); border:1px solid var(--border); border-radius:16px; padding:14px 14px 18px; }
#vs .vs-karte em { display:inline-block; margin:14px 4px 0; font-style:normal; font-size:.72rem; font-weight:700; padding:.15rem .6rem; border-radius:999px; }
#vs .vs-karte h4 { margin:.5rem 4px .25rem; }
#vs .vs-karte p { margin:0 4px; font-size:.88rem; color:var(--muted); line-height:1.5; }
#vs .vs-rot { background:var(--red-bg); color:var(--red); }
#vs .vs-gruen { background:var(--green-bg); color:var(--green); }
#vs .vs-blau { background:var(--blue-bg); color:var(--blue); }
#vs .vs-trenner { display:flex; align-items:center; gap:1rem; margin:72px 0 0; color:var(--muted); font-size:.8rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
#vs .vs-trenner::before, #vs .vs-trenner::after { content:""; flex:1; height:1px; background:var(--border); }

/* Fragentypen */
#vs .vs-typen { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:14px; }
#vs .vs-typ { --c:var(--blue); --cb:var(--blue-bg); position:relative; text-align:left; font:inherit; color:var(--text); cursor:pointer; background:var(--bg); border:1.5px solid var(--border); border-radius:16px; padding:18px 18px 16px; display:flex; flex-direction:column; gap:.35rem; transition:transform .15s, border-color .15s, box-shadow .15s; }
#vs .vs-typ.vs-gruen { --c:var(--green); --cb:var(--green-bg); background:var(--bg); color:var(--text); }
#vs .vs-typ.vs-orange { --c:var(--orange); --cb:var(--orange-bg); }
#vs .vs-typ:hover:not(:disabled) { transform:translateY(-3px); border-color:var(--c); box-shadow:0 14px 28px -18px rgba(15,25,35,.45); }
#vs .vs-typ:disabled { opacity:.5; cursor:default; }
#vs .vs-typ-ic { width:42px; height:42px; border-radius:12px; background:var(--cb); display:flex; align-items:center; justify-content:center; font-size:1.25rem; margin-bottom:.3rem; }
#vs .vs-typ em { font-style:normal; font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--c); }
#vs .vs-typ b { font-size:1.02rem; color:var(--dark); }
#vs .vs-typ-txt { font-size:.85rem; color:var(--muted); line-height:1.45; flex:1; }
#vs .vs-typ-los { margin-top:.5rem; font-size:.85rem; font-weight:700; color:var(--c); }

/* EKG-Module */
#vs .vs-module { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
#vs .vs-module div { background:var(--bg); border:1px solid var(--border); border-radius:16px; padding:18px 14px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:.3rem; }
#vs .vs-module span { width:46px; height:46px; border-radius:50%; background:var(--red-bg); display:flex; align-items:center; justify-content:center; font-size:1.3rem; margin-bottom:.3rem; }
#vs .vs-module b { color:var(--dark); }
#vs .vs-module small { font-size:.8rem; color:var(--muted); line-height:1.4; }

/* Weitere Funktionen */
#vs .vs-raster { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
#vs .vs-raster div { background:var(--bg); border:1px solid var(--border); border-radius:14px; padding:16px; display:flex; flex-direction:column; gap:.25rem; }
#vs .vs-raster span { font-size:1.4rem; margin-bottom:.2rem; }
#vs .vs-raster b { color:var(--dark); font-size:.95rem; }
#vs .vs-raster small { font-size:.82rem; color:var(--muted); line-height:1.45; }

/* Tablet und Handy */
@media (max-width:960px) {
  #vs .vs-held, #vs .vs-reihe, #vs .vs-reihe.vs-links { grid-template-columns:1fr; gap:28px; }
  #vs .vs-reihe.vs-links .vs-bild { order:0; }
  #vs .vs-reihe { padding:44px 0; }
  #vs .vs-legende, #vs .vs-raster { grid-template-columns:1fr 1fr; }
  #vs .vs-karten { grid-template-columns:1fr; }
  #vs .vs-module { grid-template-columns:repeat(3,1fr); }
  #vs .vs-buehne { padding:32px 22px; }
}
@media (max-width:600px) {
  #vs .vs-held { padding-top:20px; }
  #vs .vs-held h1 { font-size:2.1rem; }
  #vs .vs-kopf h2 { font-size:1.65rem; }
  #vs .vs-kopf h2 br { display:none; }
  #vs .vs-text h2 { font-size:1.45rem; }
  #vs .vs-zahlen, #vs .vs-mini, #vs .vs-legende, #vs .vs-raster { grid-template-columns:1fr 1fr; }
  #vs .vs-module { grid-template-columns:1fr 1fr; }
  #vs .vs-geraet { padding:7px; border-radius:14px; }
  #vs .vs-geraet img { border-radius:6px; }
  #vs .vs-punkt { width:24px; height:24px; font-size:.75rem; box-shadow:0 0 0 4px rgba(200,16,46,.25); }
  #vs .vs-buehne { padding:26px 16px; border-radius:18px; margin:40px 0; }
}
@media (max-width:420px) { #vs .vs-legende, #vs .vs-raster, #vs .vs-mini { grid-template-columns:1fr; } }

/* Fenster: Fragen ausprobieren */
.fk-fenster { --c:var(--blue); --cb:var(--blue-bg); align-items:flex-start; padding-top:6vh; }
.fk-fenster[data-gruppe="gruen"] { --c:var(--green); --cb:var(--green-bg); }
.fk-fenster[data-gruppe="orange"] { --c:var(--orange); --cb:var(--orange-bg); }
.fk-fenster .fk-modal { max-width:680px; width:100%; max-height:88vh; display:flex; flex-direction:column; border-radius:18px; overflow:hidden; padding:0; }
.fk-fenster .lp-modal-body { overflow-y:auto; padding:1.3rem 1.5rem 1rem; min-height:260px; }
.fk-fenster .fk-f-kopf { position:relative; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.9rem; padding:1.1rem 1.5rem .9rem; background:var(--cb); border-bottom:1px solid var(--border); }
.fk-fenster .fk-f-ic { width:44px; height:44px; border-radius:12px; background:var(--white); display:flex; align-items:center; justify-content:center; font-size:1.3rem; box-shadow:0 2px 6px rgba(15,25,35,.08); }
.fk-fenster .fk-f-kopftext { display:flex; flex-direction:column; min-width:0; }
.fk-fenster .fk-f-kopftext em { font-style:normal; font-size:.7rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--c); }
.fk-fenster #fk-f-titel { font-size:1.12rem; font-weight:700; color:var(--dark); line-height:1.25; }
.fk-fenster .fk-f-x { width:36px; height:36px; border-radius:50%; border:0; background:var(--white); color:var(--text); font-size:1rem; cursor:pointer; box-shadow:0 2px 6px rgba(15,25,35,.08); }
.fk-fenster .fk-f-x:hover { color:var(--red); }
.fk-fenster .fk-f-zahl { grid-column:1 / -1; display:flex; align-items:center; gap:.7rem; font-size:.78rem; font-weight:600; color:var(--muted); }
.fk-fenster .fk-f-fuss { display:flex; justify-content:space-between; align-items:center; gap:.6rem; padding:.9rem 1.5rem; border-top:1px solid var(--border); background:var(--bg); }
.fk-fenster .fk-f-rechts { display:flex; gap:.6rem; }
.fk-fenster .fk-f-fuss .lp-btn:disabled { opacity:.4; cursor:default; }
/* Echte Fragekarte (vorstellung/frage_demo.php) im iframe; die Höhe meldet die Karte selbst. */
.fk-fenster .fk-modal { max-width:780px; }
.fk-fenster #fk-f-inhalt { padding:1rem 1.1rem; background:var(--bg); }
.fk-fenster #fk-f-frame { display:block; width:100%; height:320px; border:0; background:transparent; }
@media (max-width:480px) { .fk-fenster { padding-top:0; } .fk-fenster .fk-f-kopf, .fk-fenster .lp-modal-body, .fk-fenster .fk-f-fuss { padding-left:1rem; padding-right:1rem; } .fk-fenster .fk-f-fuss .lp-btn { padding-left:.8rem; padding-right:.8rem; } }
#fk-fenster[hidden] { display:none; }

/* Papierbilder ohne Drehung (Bogen, Prüfung) */
#vs .vs-papier.vs-flach { transform:none; border-radius:14px; }

/* Fenster: echter Patientenmonitor (vorstellung/monitor_demo.php im iframe). Rahmen bewusst dunkel wie ein Gerät. */
.mo-fenster { align-items:center; padding:2vh 16px; }
.mo-fenster .mo-modal { width:min(1240px, 100%, calc((100vh - 200px) * 1.6 + 24px)); background:#1b1f27; border-radius:22px; padding:12px 12px 14px; box-shadow:0 30px 70px -20px rgba(0,0,0,.6); color:#e8edf3; }
.mo-fenster .mo-kopf { display:flex; justify-content:space-between; align-items:center; padding:2px 6px 10px; font-weight:600; font-size:.92rem; color:#c9d2dc; }
.mo-fenster .mo-x { width:34px; height:34px; border-radius:50%; border:0; background:#2c323d; color:#e8edf3; font-size:.95rem; cursor:pointer; }
.mo-fenster .mo-x:hover { background:var(--red); }
.mo-fenster .mo-geraet { aspect-ratio:16 / 10; border-radius:10px; overflow:hidden; background:#000; }
.mo-fenster .mo-geraet iframe { display:block; width:100%; height:100%; border:0; }
.mo-fenster .mo-rhythmen { display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:12px 4px 2px; font-size:.8rem; color:#8b98a8; }
.mo-fenster .mo-rhythmen span { font-weight:600; margin-right:2px; }
.mo-fenster .mo-rhythmen button { border:1px solid #39424f; background:#262c36; color:#e8edf3; border-radius:999px; padding:.38rem .8rem; font:inherit; font-size:.8rem; cursor:pointer; }
.mo-fenster .mo-rhythmen button:hover { border-color:#5b6676; }
.mo-fenster .mo-rhythmen button.an { background:var(--red); border-color:var(--red); color:#fff; }
.mo-fenster .mo-hinweis { margin:.6rem 6px 0; font-size:.76rem; color:#8b98a8; line-height:1.5; }
@media (max-width:600px) {
  .mo-fenster { padding:0; }
  .mo-fenster .mo-modal { border-radius:0; min-height:100vh; padding:10px; width:100%; }
  .mo-fenster .mo-rhythmen button { padding:.32rem .65rem; }
}
#mo-fenster[hidden] { display:none; }

/* Animierte Beispielkarte im Abschnitt Fragentypen */
#vs .vs-demo { max-width:660px; margin:0 auto 8px; }
#vs .vs-zwischen { text-align:center; color:var(--muted); font-weight:600; font-size:.92rem; margin:40px 0 18px; }
.fk-demo { padding:0; display:block; }
.fk-demo .fk-demo-karte { position:relative; background:var(--white); border:1px solid var(--border); border-radius:18px; overflow:hidden; box-shadow:0 30px 60px -28px rgba(15,25,35,.45); text-align:left; }
.fk-demo #fk-d-titel { font-size:1.08rem; font-weight:700; color:var(--dark); line-height:1.25; }
.fk-demo .fk-f-kopf { grid-template-columns:auto 1fr auto; }
.fk-demo .fk-d-live { font-size:.72rem; font-weight:700; color:var(--red); background:var(--white); border-radius:999px; padding:.25rem .65rem; white-space:nowrap; }
.fk-demo .fk-d-inhalt { padding:.9rem 1rem .6rem; background:var(--bg); transition:opacity .3s; }
.fk-demo .fk-d-inhalt.weg { opacity:0; }
.fk-demo #fk-d-frame { display:block; width:100%; height:420px; border:0; background:transparent; pointer-events:none; transition:height .35s ease; }
.fk-demo .fk-d-hinweis { font-size:.8rem; color:var(--muted); }
.fk-demo .fk-d-zahl { font-size:.78rem; font-weight:600; color:var(--muted); white-space:nowrap; }
@media (max-width:600px) { .fk-demo .fk-d-inhalt { padding:.6rem; } .fk-demo .fk-d-live { display:none; } .fk-fenster #fk-f-inhalt { padding:.6rem; } }

/* Fenster: Medikamentenplan-Generator ausprobieren */
.mp-fenster { align-items:flex-start; padding-top:5vh; }
.mp-fenster .mp-modal { width:100%; max-width:980px; max-height:90vh; display:flex; flex-direction:column; background:var(--white); border-radius:18px; overflow:hidden; box-shadow:0 30px 70px -20px rgba(0,0,0,.45); }
.mp-fenster .mp-kopf { display:flex; justify-content:space-between; align-items:center; padding:1rem 1.5rem; background:var(--red-bg); border-bottom:1px solid var(--border); }
.mp-fenster .mp-kopf em { display:block; font-style:normal; font-size:.7rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--red); }
.mp-fenster .mp-kopf span { font-size:1.12rem; font-weight:700; color:var(--dark); }
.mp-fenster .fk-f-x { width:36px; height:36px; border-radius:50%; border:0; background:var(--white); color:var(--text); font-size:1rem; cursor:pointer; }
.mp-fenster .mp-inhalt { overflow-y:auto; padding:1.2rem 1.5rem 1.4rem; }
.mp-fenster .mp-hinweis { font-size:.85rem; background:var(--orange-bg); border:1px solid var(--orange); color:var(--text); border-radius:10px; padding:.6rem .8rem; margin-bottom:1rem; }
.mp-fenster .mp-form { display:grid; grid-template-columns:repeat(4,1fr); gap:.8rem 1rem; align-items:end; background:var(--bg); border:1px solid var(--border); border-radius:12px; padding:1rem; }
.mp-fenster .mp-form label { display:flex; flex-direction:column; gap:.3rem; font-size:.78rem; font-weight:600; color:var(--muted); }
.mp-fenster .mp-form input[type=number], .mp-fenster .mp-form select { font:inherit; font-size:.95rem; padding:.5rem .6rem; border:1.5px solid var(--border); border-radius:8px; background:var(--white); color:var(--text); }
.mp-fenster .mp-form .mp-check { flex-direction:row; align-items:center; gap:.5rem; grid-column:span 3; font-size:.88rem; color:var(--text); }
.mp-fenster .mp-plan { margin-top:1.2rem; border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.mp-fenster .mp-plan-kopf { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:.8rem 1rem; border-bottom:1px solid var(--border); }
.mp-fenster .mp-plan-kopf b { display:block; color:var(--dark); }
.mp-fenster .mp-plan-kopf span { font-size:.85rem; color:var(--muted); }
.mp-fenster .mp-knopf { font-size:.82rem; font-weight:600; padding:.45rem .8rem; border-radius:8px; background:var(--bg); border:1px solid var(--border); color:var(--muted); cursor:not-allowed; white-space:nowrap; }
.mp-fenster .mp-diag { padding:.7rem 1rem; font-size:.9rem; background:var(--bg); }
.mp-fenster .mp-diag b { color:var(--red); }
.mp-fenster .mp-tabelle { overflow-x:auto; }
.mp-fenster table { width:100%; border-collapse:collapse; font-size:.86rem; }
.mp-fenster th { text-align:left; font-size:.7rem; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); padding:.6rem .7rem; border-bottom:1px solid var(--border); white-space:nowrap; }
.mp-fenster td { padding:.6rem .7rem; border-bottom:1px solid var(--border); color:var(--text); vertical-align:top; }
.mp-fenster td:nth-child(n+4):nth-child(-n+7), .mp-fenster th:nth-child(n+4):nth-child(-n+7) { text-align:center; }
.mp-fenster .mp-fuss { font-size:.78rem; color:var(--muted); padding:.7rem 1rem; margin:0; }
@media (max-width:700px) {
  .mp-fenster { padding-top:0; }
  .mp-fenster .mp-modal { max-height:100vh; border-radius:0; }
  .mp-fenster .mp-form { grid-template-columns:1fr 1fr; }
  .mp-fenster .mp-form .mp-check { grid-column:span 2; }
  .mp-fenster .mp-inhalt { padding:1rem; }
}
#mp-fenster[hidden] { display:none; }

/* Ein Fall, drei Wege: Editor → Papier → Monitor */
#vs .vs-fluss { margin:2rem auto 3.5rem; max-width:1100px; background:var(--bg); border:1px solid var(--border); border-radius:20px; padding:1.6rem 1.6rem 1.8rem; }
#vs .vs-fluss-kopf { text-align:center; margin-bottom:1.2rem; }
#vs .vs-fluss-kopf h3 { margin:.3rem 0 0; font-size:1.25rem; color:var(--dark); }
/* Flussdiagramm: Editor → Papier / Monitor → Patientendaten + Moderationsskript */
#vs .vs-fluss-bild { display:grid; grid-template-columns:minmax(0,1.1fr) 48px minmax(0,1fr) 48px minmax(0,1fr); grid-template-rows:auto auto; gap:14px 0; align-items:center; }
#vs .vs-k { background:var(--white); border:1px solid var(--border); border-radius:14px; padding:14px 16px; display:flex; flex-direction:column; gap:.25rem; text-align:left; font:inherit; color:var(--text); text-decoration:none; }
#vs .vs-k span { font-size:1.4rem; }
#vs .vs-k b { color:var(--dark); font-size:1rem; }
#vs .vs-k small { font-size:.82rem; color:var(--muted); line-height:1.45; }
#vs .vs-k-editor { grid-column:1; grid-row:1 / 3; border-color:var(--red); }
#vs .vs-k-papier { grid-column:3; grid-row:1; }
#vs .vs-k-monitor { grid-column:3; grid-row:2; cursor:pointer; }
#vs .vs-k-monitor small { color:var(--red); font-weight:600; }
#vs a.vs-k-papier:hover, #vs .vs-k-monitor:hover { border-color:var(--red); }
#vs .vs-k-stapel { grid-column:5; grid-row:2; display:flex; flex-direction:column; gap:10px; }
#vs .vs-k-klein { padding:10px 14px; }
#vs .vs-k-klein span { font-size:1.15rem; }
/* Verbinder: waagerechte Linie mit Spitze, die Gabel am Editor als senkrechte Halblinien */
#vs .vs-p { position:relative; align-self:stretch; background:linear-gradient(var(--border),var(--border)) center / calc(100% - 6px) 2px no-repeat; background-position:left center; }
#vs .vs-p::after { content:''; position:absolute; right:0; top:50%; margin-top:-6px; border:6px solid transparent; border-left:9px solid var(--border); border-right:0; }
#vs .vs-p-hoch { grid-column:2; grid-row:1; }
#vs .vs-p-runter { grid-column:2; grid-row:2; }
#vs .vs-p-rechts { grid-column:4; grid-row:2; }
#vs .vs-p-hoch::before, #vs .vs-p-runter::before { content:''; position:absolute; left:0; width:2px; background:var(--border); }
#vs .vs-p-hoch::before { top:50%; bottom:-7px; }
#vs .vs-p-runter::before { top:-7px; bottom:50%; }#vs #weitere .vs-raster { grid-template-columns:repeat(3,1fr); }
@media (max-width:760px) {
  #vs .vs-fluss { padding:1.1rem; }
  #vs .vs-fluss-bild { grid-template-columns:1fr; grid-template-rows:none; gap:0; }
  #vs .vs-k-editor, #vs .vs-k-papier, #vs .vs-k-monitor, #vs .vs-k-stapel { grid-column:1; grid-row:auto; }
  #vs .vs-p { grid-column:1 !important; grid-row:auto !important; height:26px; background:linear-gradient(var(--border),var(--border)) center / 2px 100% no-repeat; }
  #vs .vs-p::before { display:none; }
  #vs .vs-p::after { right:auto; left:50%; top:auto; bottom:0; margin:0 0 0 -6px; border:6px solid transparent; border-top:9px solid var(--border); border-bottom:0; }
  #vs .vs-p-hoch { order:1; } #vs .vs-k-papier { order:2; } #vs .vs-p-runter { order:3; } #vs .vs-k-monitor { order:4; } #vs .vs-p-rechts { order:5; } #vs .vs-k-stapel { order:6; }
  #vs #weitere .vs-raster { grid-template-columns:1fr 1fr; }
}
/* Zahnrad für Admins: Einstellungen der Vorstellungsseite */
.vs-zahnrad { position:fixed; right:18px; top:calc(var(--header-h, 60px) + 14px); z-index:60; }
.vs-zahnrad summary { list-style:none; width:44px; height:44px; border-radius:50%; background:var(--white); border:1px solid var(--border); box-shadow:0 6px 18px -6px rgba(15,25,35,.35); display:flex; align-items:center; justify-content:center; font-size:1.3rem; cursor:pointer; }
.vs-zahnrad summary::-webkit-details-marker { display:none; }
.vs-zahnrad[open] summary { border-color:var(--red); }
.vs-zahnrad-feld { position:absolute; right:0; top:52px; width:290px; background:var(--white); border:1px solid var(--border); border-radius:14px; padding:14px 16px; box-shadow:0 20px 40px -16px rgba(15,25,35,.4); display:flex; flex-direction:column; gap:.55rem; font-size:.9rem; color:var(--text); }
.vs-zahnrad-feld b { color:var(--dark); }
.vs-zahnrad-feld label { display:flex; gap:.5rem; align-items:center; cursor:pointer; }
.vs-zahnrad-feld small { color:var(--muted); line-height:1.4; }
.vs-zahnrad-feld .vs-btn { align-self:flex-start; }
/* Ausklappbare Fragenarten */
#vs .vs-typen-klapp { margin-top:30px; }
#vs .vs-typen-klapp > summary { list-style:none; cursor:pointer; display:block; width:max-content; max-width:100%; margin:0 auto 18px; padding:.65rem 1.3rem; border:1px solid var(--border); border-radius:999px; background:var(--white); color:var(--text); }
#vs .vs-typen-klapp > summary::-webkit-details-marker { display:none; }
#vs .vs-typen-klapp > summary::after { content:' ▾'; color:var(--red); }
#vs .vs-typen-klapp[open] > summary::after { content:' ▴'; }
#vs .vs-typen-klapp > summary:hover { border-color:var(--red); color:var(--red); }
/* Durchgehendes Beispiel zur Medikamentendatenbank: ruhige Schrittfolge */
#vs .vs-kette { max-width:1100px; margin:2rem auto 3.5rem; background:var(--white); border:1px solid var(--border); border-radius:20px; padding:1.6rem 1.8rem 1.8rem; }
#vs .vs-kette-kopf { margin-bottom:1.3rem; }
#vs .vs-kette-kopf h3 { margin:.3rem 0 0; font-size:1.2rem; color:var(--dark); }
#vs .vs-kette-schritte { list-style:none; counter-reset:k; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,1fr); gap:22px; position:relative; }
#vs .vs-kette-schritte::before { content:''; position:absolute; left:15px; right:15px; top:15px; height:2px; background:var(--border); }
#vs .vs-kette-schritte li { counter-increment:k; position:relative; display:flex; flex-direction:column; gap:.35rem; padding-top:44px; }
#vs .vs-kette-schritte li::before { content:counter(k); position:absolute; left:0; top:0; width:32px; height:32px; border-radius:50%; background:var(--white); border:2px solid var(--red); color:var(--red); font-weight:700; font-size:.9rem; display:flex; align-items:center; justify-content:center; }
#vs .vs-kette-schritte b { color:var(--dark); font-size:.98rem; }
#vs .vs-kette-schritte span { color:var(--muted); font-size:.86rem; line-height:1.5; }
@media (max-width:760px) {
  #vs .vs-kette { padding:1.2rem; }
  #vs .vs-kette-schritte { grid-template-columns:1fr; gap:16px; }
  #vs .vs-kette-schritte::before { left:15px; right:auto; top:16px; bottom:16px; width:2px; height:auto; }
  #vs .vs-kette-schritte li { padding:4px 0 0 46px; }
}
/* Seite ohne Kopfzeile und Seitenleiste (auch angemeldet) */
.vs-seite { --header-h:0px; display:block; max-width:1280px; margin:0 auto; padding:28px 24px 0; box-sizing:border-box; }
.vs-zahnrad { top:14px; right:70px; }
@media (max-width:600px) { .vs-seite { padding:16px 16px 0; } }

/* Umschalter Hell/Dunkel (oben rechts, neben dem Zahnrad der Admins) */
.vs-modus { position:fixed; right:18px; top:14px; z-index:60; width:44px; height:44px; border-radius:50%; background:var(--white); border:1px solid var(--border); box-shadow:0 6px 18px -6px rgba(15,25,35,.35); display:flex; align-items:center; justify-content:center; font-size:1.2rem; cursor:pointer; padding:0; }
.vs-modus:hover { border-color:var(--red); }
.vs-modus .vs-modus-hell { display:none; }
html.dark .vs-modus .vs-modus-hell { display:inline; }
html.dark .vs-modus .vs-modus-dunkel { display:none; }
/* Handy: Knöpfe nach unten rechts, oben liegt die Sprungleiste */
@media (max-width:700px) {
  .vs-modus, .vs-zahnrad { top:auto; bottom:16px; }
  .vs-zahnrad-feld { top:auto; bottom:52px; }
}
html.dark .vs-seite { color:var(--text); --muted:#94A3B8; }   /* Fließtexte im Dunkeln besser lesbar als mit dem Portal-Grau */
html.dark #vs .vs-geraet { --vs-rahmen:#0b0f15; }

/* Interaktives Quiz: Schritte, Beamer und Handy */
#vs .vs-gq { max-width:980px; margin:0 auto; }
#vs .vs-gq-schritte { display:flex; flex-wrap:wrap; justify-content:center; gap:.45rem; margin-bottom:26px; }
#vs .vs-gq-schritte button { display:inline-flex; align-items:center; gap:.5rem; padding:.45rem 1rem .45rem .45rem; border-radius:999px; border:1.5px solid var(--border); background:var(--bg); color:var(--text); font:inherit; font-size:.9rem; font-weight:600; cursor:pointer; }
#vs .vs-gq-schritte button b { width:26px; height:26px; border-radius:50%; background:var(--white); border:1.5px solid var(--border); color:var(--muted); display:flex; align-items:center; justify-content:center; font-size:.8rem; }
#vs .vs-gq-schritte button:hover { border-color:var(--red); }
#vs .vs-gq-schritte button.an { border-color:var(--red); color:var(--dark); }
#vs .vs-gq-schritte button.an b { background:var(--red); border-color:var(--red); color:#fff; }
#vs .vs-gq-flaeche { position:relative; padding-right:19%; }
#vs .vs-gq-beamer img { aspect-ratio:1440 / 839; object-fit:cover; object-position:top; background:var(--bg); }
#vs .vs-gq-handy { position:absolute; right:0; bottom:-28px; width:23%; background:var(--vs-rahmen, #1b1f27); border-radius:26px; padding:7px; box-shadow:0 26px 50px -18px rgba(15,25,35,.6), 0 0 0 1px var(--border); transition:opacity .3s, transform .3s; }
#vs .vs-gq-handy img { display:block; width:100%; aspect-ratio:520 / 933; object-fit:cover; object-position:top; border-radius:20px; background:var(--bg); }
#vs .vs-gq.ohne-handy .vs-gq-handy { opacity:0; transform:translateY(12px); pointer-events:none; }
#vs .vs-gq-punkte { display:flex; justify-content:center; gap:10px; margin-top:52px; }
#vs .vs-gq-punkte button { width:10px; height:10px; padding:0; border:0; border-radius:999px; background:var(--border); cursor:pointer; transition:width .3s, background .3s; }
#vs .vs-gq-punkte button:hover { background:var(--muted); }
#vs .vs-gq-punkte button.an { width:28px; background:var(--red); }
#vs .vs-gq-text { text-align:center; max-width:640px; margin:18px auto 0; color:var(--muted); line-height:1.6; min-height:3.2em; }
@media (max-width:700px) {
  #vs .vs-gq-schritte { flex-wrap:nowrap; justify-content:flex-start; overflow-x:auto; scrollbar-width:none; padding-bottom:2px; }
  #vs .vs-gq-schritte::-webkit-scrollbar { display:none; }
  #vs .vs-gq-schritte button { flex:0 0 auto; }
  #vs .vs-gq-flaeche { padding-right:10%; }
  #vs .vs-gq-handy { width:30%; border-radius:16px; padding:4px; bottom:-18px; }
  #vs .vs-gq-handy img { border-radius:12px; }
  #vs .vs-gq-punkte { margin-top:34px; }
}

/* Kopfzeile (Toni 31.10./01.11.2026): Sprungleiste als Header mit Hell/Dunkel und Zahnrad.
   Standardmäßig ausgeblendet. Am PC erscheint sie, wenn die Maus an den oberen Fensterrand kommt,
   auf Touchgeräten beim Hochscrollen (vorstellung_hell_dunkel.js setzt .auf). */
#vs .vs-kopfzeile { position:fixed; top:0; left:0; right:0; z-index:40; display:flex; align-items:center; gap:14px; margin:0; padding:10px max(16px, calc((100% - 1120px) / 2)); background:var(--bg); border-bottom:1px solid var(--border); transform:translateY(-110%); transition:transform .3s ease, box-shadow .3s; }
#vs .vs-kopfzeile.auf { transform:none; box-shadow:0 10px 24px -18px rgba(15,25,35,.45); }
#vs .vs-kopfzeile .vs-sprung { position:static; flex:1; min-width:0; margin:0; padding:0; border:0; background:none; }
#vs .vs-sprung a.an { background:var(--red); border-color:var(--red); color:#fff; }
#vs .vs-kopf-aktionen { flex:0 0 auto; display:flex; gap:8px; align-items:center; }
#vs .vs-kopf-aktionen .vs-modus, #vs .vs-kopf-aktionen .vs-zahnrad { position:relative; top:auto; right:auto; bottom:auto; z-index:auto; }
#vs .vs-kopf-aktionen .vs-modus, #vs .vs-kopf-aktionen .vs-zahnrad summary { width:38px; height:38px; font-size:1.05rem; box-shadow:none; }
#vs .vs-kopf-aktionen .vs-zahnrad-feld { top:48px; bottom:auto; z-index:41; }
@media (max-width:700px) {
  #vs .vs-kopfzeile { gap:8px; }
}

/* Planbarkeit des Praxistrainings: Maßnahmen → Materialliste (Toni 04.11.2026) */
#vs .vs-mat-tafel { display:grid; grid-template-columns:minmax(0,1fr) 44px minmax(0,1.3fr); gap:0 6px; align-items:stretch; margin-top:2.2rem; background:var(--white); border:1px solid var(--border); border-radius:20px; padding:22px; }
#vs .vs-mat-fall { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:.3rem .7rem; align-items:baseline; padding-bottom:14px; margin-bottom:16px; border-bottom:1px solid var(--border); }
#vs .vs-mat-fall b { color:var(--dark); font-size:1.02rem; }
#vs .vs-mat-fall span { color:var(--muted); font-size:.88rem; }
#vs .vs-mat-titel { font-size:.74rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:10px; display:flex; justify-content:space-between; gap:8px; }
#vs .vs-mat-zeile { display:flex; gap:10px; align-items:flex-start; padding:7px 0; }
#vs .vs-mat-zeile + .vs-mat-zeile { border-top:1px dashed var(--border); }
#vs .vs-mat-bu { flex:0 0 26px; height:26px; border-radius:7px; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:.85rem; }
#vs .vs-mat-chips { display:flex; flex-wrap:wrap; gap:5px; min-width:0; }
#vs .vs-mat-chips span { padding:.18rem .55rem; border-radius:999px; background:var(--bg); border:1px solid var(--border); font-size:.8rem; line-height:1.35; color:var(--text); }
#vs .vs-mat-pfeil { display:flex; align-items:center; justify-content:center; color:var(--red); font-size:1.6rem; font-weight:800; }
#vs .vs-mat-liste { background:var(--bg); border:1px solid var(--border); border-radius:14px; padding:14px 16px; }
#vs .vs-mat-liste ul { list-style:none; margin:0; padding:0; columns:2; column-gap:20px; }
#vs .vs-mat-liste li { break-inside:avoid; display:flex; gap:8px; align-items:flex-start; padding:3.5px 0; font-size:.86rem; line-height:1.35; color:var(--text); }
#vs .vs-mat-liste li::before { content:""; flex:0 0 14px; height:14px; margin-top:2px; border:1.5px solid var(--muted); border-radius:4px; }
#vs .vs-mat-liste li b { color:var(--dark); font-weight:700; }
#vs .vs-mat-zahl { color:var(--red); letter-spacing:0; text-transform:none; font-size:.8rem; }
#vs .vs-mat-punkte { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:18px; }
#vs .vs-mat-punkte div { border-left:3px solid var(--red); padding:.15rem 0 .15rem .85rem; }
#vs .vs-mat-punkte b { display:block; color:var(--dark); margin-bottom:.2rem; }
#vs .vs-mat-punkte small { display:block; color:var(--muted); font-size:.88rem; line-height:1.5; }
@media (max-width:760px) {
  #vs .vs-mat-tafel { grid-template-columns:minmax(0,1fr); padding:16px; }
  #vs .vs-mat-pfeil { transform:rotate(90deg); padding:8px 0; }
  #vs .vs-mat-liste ul { columns:1; }
  #vs .vs-mat-punkte { grid-template-columns:minmax(0,1fr); }
}

/* Großer Start-Knopf „Testen Sie es selbst" bei Fragen und Patientenmonitor (Toni 05.11.2026).
   Bewusst nicht rot, weil auf der Seite fast alles rot ist. Feste Farben, damit er im Dunkelmodus gleich bleibt. */
#vs .vs-start { --vs-start:#15803D; --vs-start-hover:#166534; --vs-start-schatten:rgba(21,128,61,.6); display:flex; align-items:center; gap:16px; width:100%; max-width:620px; margin:1.8rem auto 0; padding:14px 24px 14px 14px; border:0; border-radius:18px; background:var(--vs-start); color:#fff; font:inherit; text-align:left; cursor:pointer; box-shadow:0 14px 30px -12px var(--vs-start-schatten); transition:transform .15s, box-shadow .15s, background .15s; }
#vs .vs-start:hover { background:var(--vs-start-hover); transform:translateY(-2px); box-shadow:0 18px 34px -12px var(--vs-start-schatten); }
#vs .vs-start:focus-visible { outline:3px solid var(--dark); outline-offset:3px; }
#vs .vs-start-ic { position:relative; flex:0 0 52px; height:52px; border-radius:50%; background:#fff; color:var(--vs-start); display:flex; align-items:center; justify-content:center; }
#vs .vs-start-ic::after { content:""; position:absolute; inset:0; border-radius:50%; border:2px solid #fff; animation:vs-start-puls 2.2s ease-out infinite; }
@keyframes vs-start-puls { from { transform:scale(1); opacity:.8; } to { transform:scale(1.45); opacity:0; } }
#vs .vs-start-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
#vs .vs-start-text b { font-size:1.25rem; font-weight:800; line-height:1.2; color:#fff; }
#vs .vs-start-text small { font-size:.88rem; line-height:1.35; color:#fff; opacity:.92; }
#vs .vs-start-pfeil { flex:0 0 auto; font-size:1.5rem; font-weight:800; transition:transform .15s; }
#vs .vs-start:hover .vs-start-pfeil { transform:translateX(4px); }
@media (prefers-reduced-motion:reduce) {
  #vs .vs-start, #vs .vs-start-pfeil { transition:none; }
  #vs .vs-start:hover { transform:none; }
  #vs .vs-start-ic::after { animation:none; opacity:0; }
}
@media (max-width:700px) {
  #vs .vs-start { gap:12px; padding:12px 14px 12px 12px; }
  #vs .vs-start-ic { flex-basis:44px; height:44px; }
  #vs .vs-start-text b { font-size:1.08rem; }
  #vs .vs-start-text small { font-size:.8rem; }
  #vs .vs-start-pfeil { display:none; }
}