:root {
  --bg: #07090d; --panel: #10151d; --panel2: #151c26; --line: rgba(255,255,255,.08); --text: #e6ebf2; --muted: #8b96a8;
  --accent: #4cc9f0; --accent2: #ffd166; --ok: #7ad6a0; --warn: #ffd166; --bad: #ff7b7b;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { font-size: 15.5px; -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
svg:not(.fig) { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 13.5px; }

/* Kopfzeile */
#top { position: fixed; inset: 0 0 auto 0; height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: rgba(7,9,13,.94); border-bottom: 1px solid var(--line); z-index: 20; backdrop-filter: blur(10px); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; padding: 6px 10px 6px 6px; border-radius: 8px; border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.back:hover { color: var(--text); background: rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.brand svg { color: var(--accent); }
.search { margin-left: auto; position: relative; display: flex; align-items: center; width: min(420px, 46vw); }
.search svg { position: absolute; left: 10px; color: var(--muted); }
.search input { width: 100%; padding: 9px 12px 9px 34px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); font: inherit; outline: none; }
.search input:focus { border-color: var(--accent); background: rgba(76,201,240,.06); }

#mtabs { display: none; }

/* Layout */
#layout { position: fixed; inset: 56px 0 0 0; display: grid; grid-template-columns: 320px 300px 1fr; }
#nav { border-right: 1px solid var(--line); overflow-y: auto; padding: 12px 10px 20px; background: var(--panel); }
#model { position: relative; border-right: 1px solid var(--line); background: radial-gradient(ellipse at 50% 40%, #182231 0%, #0a0e14 70%); }
#spine3d { position: absolute; inset: 0 0 40px 0; }
#spine3d canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.lvinfo { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); background: rgba(7,9,13,.6); }
.lvinfo b { color: var(--accent2); margin-right: 4px; }
#detail { overflow-y: auto; padding: 22px 28px 60px; scroll-behavior: smooth; }

/* Regionen + Liste */
.regions { display: grid; gap: 5px; }
.reg { display: grid; grid-template-columns: 1fr auto; text-align: left; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.reg b { font-size: 15px; } .reg span { grid-column: 1; font-size: 13.5px; color: var(--muted); } .reg i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-size: 13px; color: var(--muted); background: rgba(255,255,255,.06); border-radius: 99px; padding: 1px 8px; }
.reg:hover { border-color: rgba(76,201,240,.4); }
.reg.on { background: rgba(76,201,240,.14); border-color: var(--accent); }
.reg.on i { background: var(--accent); color: #031018; }
.ltitle { margin: 16px 4px 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700; }
.clist { display: grid; gap: 4px; }
.citem { text-align: left; padding: 9px 11px; border-radius: 8px; border: 1px solid transparent; background: transparent; display: flex; flex-direction: column; gap: 2px; }
.citem b { font-size: 14.5px; font-weight: 600; line-height: 1.3; } .citem span { font-size: 13px; color: var(--muted); }
.citem:hover { background: rgba(255,255,255,.05); }
.citem.on { background: rgba(255,209,102,.12); border-color: rgba(255,209,102,.5); }
.empty { padding: 12px; color: var(--muted); }

/* Detail */
.welcome h1 { font-size: 26px; margin: 4px 0 10px; } .welcome p { max-width: 720px; line-height: 1.55; color: #c9d2de; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.quick button { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); font-weight: 600; }
.quick button:hover { border-color: var(--accent); }
.dh { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dreg { font-size: 13.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--accent); font-weight: 700; }
.dh h1 { margin: 4px 0 8px; font-size: 23px; line-height: 1.25; }
.srcbtn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.04); font-size: 14px; font-weight: 600; color: #c9d8e6; white-space: nowrap; flex: none; }
.srcbtn svg { width: 15px; height: 15px; } .srcbtn i { font-style: normal; background: rgba(76,201,240,.2); color: #bdefff; border-radius: 99px; padding: 0 7px; font-size: 13px; }
.srcbtn[aria-expanded=true] { border-color: var(--accent); }
.srcpop { display: grid; gap: 4px; margin: 4px 0 12px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); }
.ref { display: flex; gap: 8px; align-items: baseline; text-decoration: none; color: #a9dcff; font-size: 14.5px; padding: 5px 6px; border-radius: 6px; }
.ref:hover { background: rgba(76,201,240,.1); color: #e2f5ff; }
.ref span { flex: none; font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: rgba(125,211,168,.18); color: #9ff0c6; }
.ref.pm span, .ref.ft span { background: rgba(255,209,102,.16); color: #ffe39a; } .ref.abs { color: #8d9aa8; font-size: 13.5px; } .ref.abs span { background: rgba(255,255,255,.06); color: #9aa6b4; } .ref.web span { background: rgba(255,255,255,.08); color: #cfd8e3; }
.sum { font-size: 16.5px; line-height: 1.55; color: #d6dee8; max-width: 900px; margin: 4px 0 6px; }
.how { color: #b9c4d2; line-height: 1.5; max-width: 900px; margin: 0 0 14px; } .how b { color: var(--text); }
.sub { margin: 22px 0 8px; font-size: 15.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }

.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 12px; }
.tgrid.small { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.tcard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: zoom-in; transition: border-color .15s, transform .15s; display: flex; flex-direction: column; }
.tcard:hover, .tcard:focus { border-color: rgba(76,201,240,.55); transform: translateY(-1px); outline: none; }
.tfig { background: #0d131c; aspect-ratio: 4 / 3; display: flex; }
.tfig svg.fig { width: 100%; height: 100%; }
.tb { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.th { display: flex; align-items: center; gap: 6px; }
.code { font-weight: 800; font-size: 14.5px; background: rgba(255,209,102,.16); color: var(--accent2); padding: 1px 8px; border-radius: 6px; }
.stab { font-size: 13px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.stab.ok { background: rgba(122,214,160,.16); color: var(--ok); } .stab.warn { background: rgba(255,209,102,.16); color: var(--warn); } .stab.bad { background: rgba(255,123,123,.16); color: var(--bad); }
.tb b { font-size: 15.5px; } .tb p { margin: 0; font-size: 14.5px; line-height: 1.45; color: #c3cdd9; }
.ther { font-size: 14px; color: #9fe0ff; } .freq { font-size: 13.5px; color: var(--muted); }
.pearls { margin-top: 20px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255,209,102,.3); background: rgba(255,209,102,.06); max-width: 980px; }
.pearls h3 { margin: 0 0 6px; font-size: 14.5px; color: var(--accent2); text-transform: uppercase; letter-spacing: .6px; }
.pearls ul { margin: 0; padding-left: 18px; line-height: 1.55; color: #e3e8ef; }

/* Rechner */
.calc { margin: 14px 0 6px; padding: 14px 16px; border: 1px solid rgba(76,201,240,.35); border-radius: 12px; background: linear-gradient(160deg, rgba(76,201,240,.08), rgba(16,21,29,.8)); max-width: 980px; }
.calc h3 { margin: 0 0 10px; font-size: 14.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--accent); }
.cf { display: grid; gap: 10px; }
.cl { font-size: 13.5px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.seg { display: flex; flex-wrap: wrap; gap: 5px; }
.seg button { padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.04); font-size: 14px; }
.seg button:hover { border-color: rgba(76,201,240,.5); }
.seg button.on { background: var(--accent); color: #031018; border-color: transparent; font-weight: 700; }
.cnum { display: grid; grid-template-columns: 1fr 110px; align-items: center; gap: 10px; font-size: 14.5px; max-width: 460px; }
.cnum input { padding: 7px 9px; border-radius: 7px; border: 1px solid var(--line); background: rgba(0,0,0,.35); color: var(--text); font: inherit; text-align: right; }
.ccheck { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.ccheck input { width: 18px; height: 18px; accent-color: var(--accent); }
.cres { margin-top: 12px; display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.04); }
.cres .sc { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; } .cres .sc small { font-size: 15.5px; color: var(--muted); }
.cres .ct { font-size: 15.5px; font-weight: 600; } .cres .code { font-family: ui-monospace, Menlo, monospace; font-size: 16.5px; color: var(--accent2); margin-bottom: 2px; }
.cres.ok { border-left: 4px solid var(--ok); } .cres.warn { border-left: 4px solid var(--warn); } .cres.bad { border-left: 4px solid var(--bad); }
.mres { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; width: 100%; }
.mres li { display: grid; grid-template-columns: 110px 70px 1fr; gap: 8px; font-size: 14.5px; padding: 4px 6px; border-radius: 6px; }
.mres li span { color: var(--muted); } .mres li.bad { background: rgba(255,123,123,.1); } .mres li.bad b { color: var(--bad); }

/* Zoom */
.zoom { position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 18px; }
.zbox { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; max-width: min(1100px, 100%); max-height: 100%; overflow: auto; padding: 18px; display: grid; }
.zclose { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.06); z-index: 2; }
#zoomBody { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); gap: 18px; align-items: start; }
.zfigs { display: grid; gap: 10px; }
.zfigs svg.fig { width: 100%; height: auto; border-radius: 10px; background: #0d131c; }
.zt h2 { margin: 8px 0 6px; } .zt p { line-height: 1.55; color: #d0d8e2; }

/* ---- Abbildungsstile ---- */
.fig text { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
.fig .bgfig { fill: #0d131c; } .fig .bgmri { fill: #05070a; }
.fig .bone { fill: url(#sp-bone); stroke: #f4ead2; stroke-width: 1.4; filter: url(#sp-tex); }
.fig .ped { fill: rgba(232,220,195,.18); stroke: none; }
.fig .disc { fill: url(#sp-disc); stroke: #c3d3e0; stroke-width: .8; opacity: .95; }
.fig .discTorn { fill: url(#sp-disc); stroke: #ff6b6b; stroke-width: 1.4; stroke-dasharray: 3 2; opacity: .95; }
.fig .discA { fill: #8fa7bb; stroke: #c8d6e2; stroke-width: 1; }
.fig .nucleus { fill: url(#sp-nuc); opacity: .55; }
.fig .fx { stroke: #ff4d4d; stroke-width: 2.3; fill: none; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 2px rgba(255,77,77,.7)); }
.fig .lig { stroke: #f2c14e; stroke-width: 2; fill: none; stroke-linecap: round; opacity: .9; }
.fig .lig.torn { stroke: #ff6b6b; stroke-dasharray: 3 3; }
.fig .tearmark { fill: none; stroke: #ff6b6b; stroke-width: 2; }
.fig .csf { stroke: rgba(70,160,220,.45); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fig .cord { stroke: #e9d4b8; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: .95; }
.fig .cauda { stroke: rgba(233,212,184,.55); fill: none; stroke-dasharray: 2 3; stroke-linecap: round; }
.fig .compress { fill: rgba(255,90,90,.18); stroke: #ff6b6b; stroke-width: 1.4; stroke-dasharray: 3 2; }
.fig .edema { fill: rgba(120,200,255,.45); stroke: none; mix-blend-mode: screen; }
.fig .tumor { fill: rgba(200,90,255,.42); stroke: #d48cff; stroke-width: 1.2; }
.fig .csfA { fill: rgba(70,160,220,.55); stroke: #6bb8e6; stroke-width: 1; }
.fig .sacdry { fill: #3b4656; stroke: #6c7a8c; stroke-width: 1; }
.fig .cordA { fill: #e8d3b6; stroke: #f5e6cf; stroke-width: .8; }
.fig .root { fill: #f0dfc6; stroke: #ffffff; stroke-width: .4; }
.fig .rootmass { fill: #cdbca3; }
.fig .fat { fill: rgba(255,240,200,.18); }
.fig .facetA { fill: rgba(150,120,80,.35); }
.fig .jointline { stroke: #7ab8e0; stroke-width: 1.5; }
.fig .meas { stroke: #4cc9f0; stroke-width: 1.6; } .fig .meas.dashed { stroke-dasharray: 4 3; opacity: .8; }
.fig .arr { stroke: #4cc9f0; stroke-width: 2; }
.fig .lbl, .fig .tlbl { fill: #9fb0c3; font-size: 12px; } .fig .mlbl { fill: #8fe0ff; font-size: 12.5px; font-weight: 700; }
.fig .vlbl { fill: #e6edf5; font-size: 13px; font-weight: 700; }
.fig .markpt { fill: #ffd166; }
.fig .colA { fill: rgba(76,201,240,.12); } .fig .colM { fill: rgba(255,209,102,.16); } .fig .colP { fill: rgba(255,138,91,.1); }
/* MRT-Stile */
.fig .boneM { fill: #3c3c3c; stroke: #5a5a5a; }
.fig .fatM { fill: #e8e2d4; } .fig .fatLow { fill: #8d8778; }
.fig .encroach { stroke: #5a5a5a; fill: none; stroke-linecap: round; }
.fig .nerve { fill: #6d6d6d; stroke: #9a9a9a; stroke-width: 1; } .fig .nerve.squashed { fill: #5a5a5a; }
.fig .vbMR { fill: #7d7d7d; stroke: #9b9b9b; stroke-width: .6; }
.fig .annulus { fill: #2a2a2a; } .fig .annulusT1 { fill: #585858; }
.fig .nucBright { fill: #f3f3f3; } .fig .nucInhom { fill: #d8d8d8; } .fig .nucGrey { fill: #8a8a8a; } .fig .nucDark { fill: #4a4a4a; } .fig .nucBlack { fill: #1a1a1a; }
.fig .band { stroke: #8a8a8a; stroke-width: 2; }
.fig .mdDark { fill: #2d2d2d; } .fig .mdBright { fill: #e5e5e5; } .fig .mdIso { fill: #9a9a9a; }
.fig .csfMR { stroke: #f0f0f0; fill: none; } .fig .cordMR { stroke: #6e6e6e; fill: none; }
.fig .encroachMR { fill: #303030; } .fig .cordDent { stroke: #303030; stroke-width: 6; fill: none; }
.fig .myelo { fill: #ffffff; opacity: .9; } .fig .csfGone { fill: #6e6e6e; opacity: .7; }

/* Handy */
@media (max-width: 900px) {
  #top { height: 52px; gap: 8px; padding: 0 10px; }
  .brand { font-size: 16.5px; } .back span { display: none; } .back { padding: 6px; }
  .search { width: auto; flex: 1; }
  #mtabs { display: flex; position: fixed; top: 52px; left: 0; right: 0; height: 44px; z-index: 19; background: rgba(7,9,13,.94); border-bottom: 1px solid var(--line); padding: 4px 8px; gap: 4px; }
  #mtabs button { flex: 1; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 700; font-size: 14.5px; }
  #mtabs button.on { background: rgba(76,201,240,.16); color: var(--accent); }
  #layout { inset: 96px 0 0 0; display: block; }
  #nav, #model, #detail { position: absolute; inset: 0; border: 0; }
  body[data-view=list] #model, body[data-view=list] #detail { display: none; }
  body[data-view="3d"] #nav, body[data-view="3d"] #detail { display: none; }
  body[data-view=detail] #nav, body[data-view=detail] #model { display: none; }
  #detail { padding: 16px 14px 60px; }
  .dh h1 { font-size: 19px; }
  .tgrid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tb p { font-size: 13.5px; }
  #zoomBody { grid-template-columns: 1fr; }
  .mres li { grid-template-columns: 90px 60px 1fr; font-size: 13.5px; }
}
@media (max-width: 480px) { .tgrid { grid-template-columns: 1fr; } .brand { display: none; } }
/* Schädel & Gesicht */
.fig .cav { fill: #0a0d12; stroke: rgba(240,228,205,.35); stroke-width: 1; }
.fig .cavRim { stroke: rgba(255,248,232,.45); stroke-width: 1.4; fill: none; stroke-linecap: round; }
.fig .suture { stroke: rgba(120,100,70,.55); stroke-width: 1.1; fill: none; stroke-linecap: round; }
.fig .suture.soft { opacity: .6; }
.fig .septum { stroke: rgba(230,215,190,.6); stroke-width: 2; }
.fig .foramen { fill: #0a0d12; }
.fig .tooth { fill: #f7f1e3; stroke: #b9ab8c; stroke-width: .7; }
.fig .frag { fill: rgba(255,77,77,.13); stroke: none; }
.fig .plate { stroke: #e6d9bd; stroke-width: 3; fill: none; stroke-linecap: round; }
.fig .fatOrb { fill: #e8d98a; opacity: .35; }
.fig .globe { fill: #dfe7ee; stroke: #9fb3c4; stroke-width: 1.2; }
.fig .nerveOrb { fill: #f2c14e; opacity: .55; }
.fig .muscle { fill: #b05a4a; stroke: #e08b78; stroke-width: .8; }
.fig .blood { fill: #8b1e24; opacity: .75; }
.fig .duct { stroke: #4cc9f0; stroke-width: 3; fill: none; stroke-linecap: round; stroke-dasharray: 1 5; }
.fig .dura { fill: #2a3646; opacity: .7; } .fig .dura2 { stroke: #8fa7bb; stroke-width: 2; fill: none; }
.fig .regionHi { fill: rgba(255,209,102,.28); stroke: #ffd166; stroke-width: 1.4; }
.fig .scalp { fill: #5b4a44; opacity: .7; }
.fig .diploe { stroke: rgba(150,120,80,.45); stroke-width: 9; fill: none; stroke-dasharray: 2 3; }
.fig .cortex { fill: #39424f; } .fig .csf { fill: #7cc4f0; opacity: .7; }
.fig .ossicle { fill: #f2e8d5; }
.fig .capsule { stroke: #fff6e6; stroke-width: 2.6; fill: none; stroke-linecap: round; } .fig .capsuleF { fill: #0a0d12; stroke: #fff6e6; stroke-width: 2; }
.fig .nerveVII { stroke: #f2c14e; stroke-width: 2.4; fill: none; stroke-linecap: round; }
.fig .shade { fill: rgba(60,40,20,.22); } .fig .hilite { fill: rgba(255,250,235,.16); }
.fig .orbitFat { fill: #3b3523; stroke: none; }
.fig .plate.thin { stroke-width: 2.2; }
.fig .globeIn { fill: none; stroke: #9fb3c4; stroke-width: 1; opacity: .7; }
.fig .muscle.trapped { stroke: #ff6b6b; stroke-width: 1.6; }
.fig .lid { stroke: #e7a98f; stroke-width: 2.4; fill: none; stroke-linecap: round; }
.fig .brain { fill: #3a4452; }
.fig .csfLeak { stroke: #7cc4f0; stroke-width: 2.4; fill: none; stroke-dasharray: 2 3; }

.fig .tlbl, .fig .mlbl, .fig .lbl { paint-order: stroke; stroke: rgba(8,11,16,.85); stroke-width: 3px; stroke-linejoin: round; }
/* Steckbrief des angetippten Wirbels */
.lvpanel { display: flex; flex-direction: column; gap: 2px; }
.lvh { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 4px 4px 2px 11px; }
.lvk { font-size: 12.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.lvt { font-size: 20px; font-weight: 700; margin-top: 2px; color: var(--accent, #4cc9f0); }
.lvx { flex: none; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; padding: 5px 10px; border-radius: 8px; cursor: pointer; }
.lvx:hover { color: inherit; }
.lvs { margin: 4px 11px 8px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.lvg { margin: 10px 11px 2px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.citem .typ { font-style: normal; color: #ffd166; font-weight: 600; }
.lvdetail h1 { margin: 4px 0 6px; font-size: 30px; }
.lvlead { color: var(--muted); font-size: 16px; margin: 0 0 18px; max-width: 760px; line-height: 1.5; }
.lvgh { font-size: 14px; text-transform: uppercase; letter-spacing: .9px; color: var(--muted); margin: 22px 0 10px; font-weight: 700; }
.lvgh span { color: var(--accent); margin-left: 4px; }
.lvcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.lvcard { text-align: left; font: inherit; color: inherit; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, background .15s; }
.lvcard:hover { border-color: var(--accent); background: rgba(76,201,240,.06); }
.lvct { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.lvct b { font-size: 16px; line-height: 1.3; }
.lvct .typ { flex: none; font-style: normal; font-size: 12.5px; font-weight: 700; color: #1a1405; background: #ffd166; border-radius: 6px; padding: 2px 7px; }
.lvcard p { margin: 0; color: #b9c4d3; font-size: 14.5px; line-height: 1.45; }
.lvcm { font-size: 13px; color: var(--muted); }
.lvback { font: inherit; font-size: 14px; color: var(--accent); background: none; border: 1px solid rgba(76,201,240,.4); border-radius: 8px; padding: 6px 12px; cursor: pointer; margin-bottom: 12px; }
.lvback:hover { background: rgba(76,201,240,.08); }
/* Umschalter Wirbelsäule | Schädel und anatomischer 3D-Schädel */
.mswitch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; padding: 3px; gap: 3px; border-radius: 10px; background: rgba(7,9,13,.78); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.mswitch button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14.5px; font-weight: 700; padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.mswitch button.on { background: var(--accent); color: #031018; }
#skull3d { position: absolute; inset: 0 0 40px 0; }
#skull3d canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.skload { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 15px; }
.hidden { display: none !important; }
.skbar { position: absolute; left: 8px; right: 8px; bottom: 48px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; padding: 7px 8px 5px; border-radius: 10px; background: rgba(7,9,13,.72); border: 1px solid var(--line); backdrop-filter: blur(6px); font-size: 13.5px; }
.skviews, .sktog { display: flex; gap: 3px; }
.skbar button { border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600; padding: 5px 9px; border-radius: 7px; cursor: pointer; }
.skbar button:hover { border-color: var(--accent); }
.skbar button[aria-pressed=true] { background: rgba(76,201,240,.2); border-color: var(--accent); color: var(--accent); }
.skex { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.skex input { width: 90px; accent-color: var(--accent); }
.skcred { flex-basis: 100%; text-align: center; font-size: 11.5px; color: #6f7a8c; }
.skcred a { color: inherit; }
/* Steckbrief des angetippten Knochens */
.bnregion { display: inline-block; margin: 2px 0 10px; padding: 4px 10px; border-radius: 8px; background: rgba(255,209,102,.14); color: var(--accent2); font-weight: 700; font-size: 15px; }
.bninfo { color: #b9c4d3; font-size: 15.5px; line-height: 1.5; max-width: 780px; margin: 0 0 6px; }
.lvcard .bnnote { color: #e6d8b4; font-size: 14px; }
.bnchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.bnchips button { border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font: inherit; font-size: 13.5px; padding: 5px 10px; border-radius: 99px; cursor: pointer; }
.bnchips button:hover, .bnchips button.on { border-color: var(--accent2); color: var(--accent2); }
.tcard.hl { border-color: var(--accent2); box-shadow: 0 0 0 2px rgba(255,209,102,.45); }
@media (max-width: 900px) { .skbar { bottom: 46px; font-size: 13px; } .skex input { width: 70px; } }
@media (min-width: 901px) {
  body[data-mode=skull] #layout { grid-template-columns: 300px minmax(380px, 34vw) 1fr; }
}
.skbar { gap: 5px 8px; padding: 6px 6px 4px; }
.mcred { position: absolute; left: 0; right: 0; bottom: 44px; text-align: center; font-size: 11px; color: #5f6a7b; pointer-events: none; z-index: 2; }
.mcred a { color: inherit; pointer-events: auto; }
body[data-mode=skull] .mcred { display: none; }
#spine3d .skload { text-align: center; padding: 0 20px; }
/* Ladeanimation */
.ld { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; pointer-events: none; transition: opacity .6s ease, transform .6s ease; }
.ld.out { opacity: 0; transform: scale(1.04); }
.ldbox { display: flex; flex-direction: column; align-items: center; gap: 10px; }
svg.ldsvg { width: 120px; height: 260px; max-height: 50vh; stroke: none; overflow: visible; filter: drop-shadow(0 0 10px rgba(76,201,240,.25)); }
.ldv rect { fill: rgba(76,201,240,.06); stroke: rgba(76,201,240,.35); stroke-width: 1.2; transition: fill .35s, stroke .35s; }
.ldv path { stroke: rgba(76,201,240,.3); stroke-width: 3; stroke-linecap: round; fill: none; transition: stroke .35s; }
.ldv.on rect { fill: #e9dcc2; stroke: #fff4dc; animation: ldpop .5s ease-out; }
.ldv.on path { stroke: #d9cbb0; }
@keyframes ldpop { 0% { fill: #9fe6ff; } 100% { fill: #e9dcc2; } }
.ldtrace { fill: none; stroke: #e9dcc2; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 3px rgba(255,240,210,.5)); }
.ldbeam { stroke: none; fill: #4cc9f0; opacity: .85; filter: drop-shadow(0 0 6px #4cc9f0) drop-shadow(0 0 14px rgba(76,201,240,.6)); animation: ldscan 1.6s ease-in-out infinite alternate; }
@keyframes ldscan { from { transform: translateY(2%); } to { transform: translateY(96%); } }
.ldsvg .ldbeam { transform-box: view-box; }
.ldpct { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 22px; color: var(--text); letter-spacing: .5px; }
.ldpct span { color: var(--accent); }
.ldbar { width: 120px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.ldbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4cc9f0, #ffd166); }
.ld.err .ldbeam { animation: none; opacity: 0; }
.ldmsg { max-width: 260px; text-align: center; color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.ld.err { pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .ldbeam { animation: none; } }
svg.ldsvg.sk { width: 150px; height: 200px; }
/* Realistische Schädelabbildungen (gerenderte Ansichten + Frakturlinien) */
.fig3d .bg3 { fill: #0b0f15; }
.fig3d .fx3 { stroke: #ff3b3b; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 1.6px rgba(0,0,0,.9)) drop-shadow(0 0 3px rgba(255,59,59,.65)); }
.fig3d .fx3.thin { stroke-width: 1.5; }
.fig3d .frag3 { fill: rgba(255,70,70,.24); stroke: rgba(255,130,130,.55); stroke-width: .7; }
.fig3d .frag3.soft { fill: rgba(255,70,70,.12); }
.fig3d .frag3.deep { fill: rgba(60,10,10,.42); stroke: rgba(255,90,90,.7); }
.fig3d .reg3 { fill: rgba(255,209,102,.32); stroke: #ffd166; stroke-width: .9; }
.fig3d .mct3 { stroke: #f0a58c; stroke-width: 2.6; fill: none; stroke-linecap: round; }
.fig3d .mct3.torn { stroke-dasharray: 5 4; }
.fig3d .dia3 { stroke: #ff3b3b; stroke-width: 4.2; fill: none; stroke-linecap: round; stroke-dasharray: 1 0; filter: drop-shadow(0 0 3px rgba(255,59,59,.8)); }
.fig3d .csf3 { fill: rgba(124,196,240,.6); stroke: #9fdcff; stroke-width: .8; }
.fig3d .ridge3 { stroke: #ffd166; stroke-width: 1.6; fill: none; stroke-dasharray: 4 3; opacity: .9; }
.fig3d .oc3 { fill: rgba(159,220,255,.35); stroke: #9fdcff; stroke-width: 1.4; }
.fig3d .oc3.hit { fill: rgba(255,59,59,.45); stroke: #ff8a8a; }
.fig3d .lbl3 { fill: #f2f5f9; font-size: 10.5px; font-weight: 600; paint-order: stroke; stroke: rgba(6,9,13,.9); stroke-width: 3px; stroke-linejoin: round; }
.fig3d .lbl3.big { font-size: 12px; fill: #ffd166; }
.fig3d .cap3 { fill: #9fb0c3; font-size: 10.5px; }
/* Realistische Wirbelsäulen-Kacheln */
.fig4 .lbl4 { fill: #f4f7fb; font-size: 15px; font-weight: 650; paint-order: stroke; stroke: rgba(6,9,13,.92); stroke-width: 4px; stroke-linejoin: round; }
.fig4 .ld4 { stroke: rgba(255,214,102,.85); stroke-width: 1.4; }
.fig4 .dot4 { fill: #ffd166; stroke: rgba(6,9,13,.8); stroke-width: 1; }
.fig4 .cap4 { fill: #9fb0c3; font-size: 14px; }
/* Anatomie-Schild am Mauszeiger */
.tip3 { position: absolute; z-index: 6; pointer-events: none; max-width: 300px; padding: 8px 11px 9px; border-radius: 10px; background: rgba(8,12,18,.93); border: 1px solid rgba(76,201,240,.55); box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.tip3 .t3h { font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); font-weight: 700; }
.tip3 .t3m { font-size: 16px; font-weight: 750; color: #9fe6ff; line-height: 1.25; margin-top: 2px; }
.tip3 .t3s { font-size: 13px; font-style: italic; color: #c9d4e1; margin-top: 2px; }
.tip3 .t3c { font-size: 12.5px; color: #ffd166; margin-top: 5px; line-height: 1.35; }
.bnregion .la { font-weight: 500; font-style: italic; color: #e8dcc0; }
