/* Anatomi i 3D (naturfag-anatomi3d.js) */
.anat-sektion { margin: 0 0 30px; padding: 18px; border-radius: 22px; background: linear-gradient(160deg, #0d2038, #14345a 60%, #0f4a52); color: #e8f4ff; box-shadow: 0 18px 44px rgba(13, 32, 56, .25); }
.anat-sektion__hoved { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: end; margin-bottom: 14px; }
.anat-sektion__hoved h2 { margin: 4px 0 6px; font-size: 1.7rem; color: #fff; }
.anat-sektion__hoved p { margin: 0; font-size: .82rem; line-height: 1.55; color: #cfe3f5; }
.anat-sektion .eyebrow { color: #7be4ee; }
.anat__rundture { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; justify-content: flex-end; }
.anat__rundture span { width: 100%; text-align: right; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 900; color: #7be4ee; }
.anat__rundture button { border: 1px solid rgba(123, 228, 238, .45); background: rgba(9, 26, 48, .6); color: #e8f4ff; border-radius: 999px; padding: 8px 14px; font: 800 .74rem/1 -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
.anat__rundture button:hover, .anat__rundture button:focus-visible, .anat__rundture button.er-paa { background: #12c4a8; border-color: #12c4a8; color: #06202a; }
.hero-anatomi { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(123, 228, 238, .55); background: rgba(18, 196, 168, .18); color: #eafffb; font: 800 .78rem/1 -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
.hero-anatomi:hover, .hero-anatomi:focus-visible { background: #12c4a8; color: #06202a; }
@media (max-width: 900px) { .anat-sektion__hoved { grid-template-columns: 1fr; } .anat__rundture { justify-content: flex-start; } .anat__rundture span { text-align: left; } }
.anat { margin-top: 6px; }
.anat__fallback { font-size: .8rem; color: #cfe3f5; padding: 16px; border: 1px dashed rgba(123, 228, 238, .4); border-radius: 12px; background: rgba(9, 26, 48, .5); }
.anat--aktiv .anat__fallback { display: none; }
.anat__rum { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .9fr); gap: 16px; align-items: start; }
.anat__scene { position: relative; border-radius: 16px; overflow: hidden; background: #0d2038; min-height: 560px; height: min(72vh, 680px); }
.anat__host.sense3d { position: absolute; inset: 0; aspect-ratio: auto; background: transparent; }
.anat__host canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.anat__status { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); padding: 9px 16px; border-radius: 999px; background: rgba(9, 26, 48, .82); border: 1px solid rgba(123, 228, 238, .38); color: #dff3ff; font: 750 .78rem/1.2 -apple-system, "Segoe UI", sans-serif; pointer-events: none; white-space: nowrap; }
.anat__status.er-fejl { border-color: rgba(255, 138, 122, .6); color: #ffd0c8; white-space: normal; max-width: 80%; text-align: center; }
.anat__status[hidden] { display: none; }
.anat__knapper { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.anat__knapper button { pointer-events: auto; border: 1px solid rgba(123, 228, 238, .38); background: rgba(9, 26, 48, .78); color: #e8f4ff; border-radius: 9px; padding: 6px 11px; font: 800 .7rem/1 -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
.anat__knapper button:hover, .anat__knapper button:focus-visible { border-color: #7be4ee; background: rgba(20, 60, 90, .9); }
.anat__knapper [data-zoom] { min-width: 34px; font-size: .95rem; }
.anat__knapper [data-zoom="1"] { margin-left: auto; }
.anat__tip { position: absolute; left: 12px; right: 12px; bottom: 8px; margin: 0; text-align: center; font: 700 .64rem/1.3 -apple-system, "Segoe UI", sans-serif; color: #9fc0d8; pointer-events: none; }
.anat__side { display: grid; gap: 12px; }
.anat__lag { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.anat__chip { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line, #c9d8e6); background: #fff; border-radius: 12px; color: var(--navy, #1f3864); cursor: pointer; }
.anat__chip b { font-size: .8rem; }
.anat__chip small { font-size: .62rem; color: #6b7a90; font-weight: 700; }
.anat__chip[aria-pressed="true"] { background: var(--navy, #1f3864); border-color: var(--navy, #1f3864); color: #fff; }
.anat__chip[aria-pressed="true"] small { color: #b8d4ea; }
.anat__chip:disabled { opacity: .6; cursor: progress; }
.anat__spoegelse { display: flex; gap: 8px; align-items: flex-start; font-size: .72rem; color: #4a5a70; }
.anat__info { border: 1px solid var(--line, #c9d8e6); border-radius: 14px; padding: 14px 16px; background: #f8fbfe; }
.anat__label { margin: 0; font-size: .58rem; letter-spacing: .12em; font-weight: 900; color: var(--teal, #12a08a); }
.anat__navn { margin: 4px 0 6px; font-size: 1.05rem; color: var(--navy, #1f3864); overflow-wrap: anywhere; }
.anat__system { margin: 0; font-size: .74rem; line-height: 1.5; color: #55657c; }
.anat__nulstil { margin-top: 10px; border: 0; background: transparent; color: var(--muted, #5a6b82); font-size: .7rem; text-decoration: underline; cursor: pointer; padding: 0; }
.anat-sektion .anat__kilde { margin-top: 14px; }
.anat__kilde { margin-top: 16px; border: 1px solid #f2d7a4; background: #fff8eb; border-radius: 12px; padding: 12px 15px; font-size: .68rem; line-height: 1.55; color: #6b5330; }
.anat__kilde strong { display: block; margin-bottom: 3px; font-size: .74rem; color: #6b4a1a; }
.anat__kilde p { margin: 0; }
.anat__kilde a { color: #8a5a10; }
@media (max-width: 900px) {
  .anat__rum { grid-template-columns: 1fr; }
  .anat__scene { min-height: 0; height: 66vh; max-height: 560px; }
}
@media (max-width: 480px) { .anat__tip { font-size: .58rem; } }
.anat__advarsel { margin: 0; font-size: .66rem; line-height: 1.45; color: #7a6a4a; }

.anat-sektion .anat__chip[aria-pressed="false"] { background: rgba(255, 255, 255, .95); }
.anat-sektion .anat__chip[aria-pressed="true"] { background: #12c4a8; border-color: #12c4a8; color: #06202a; }
.anat-sektion .anat__chip[aria-pressed="true"] small { color: #0b4a44; }
.anat-sektion .anat__spoegelse { color: #cfe3f5; }
.anat-sektion .anat__advarsel { color: #b8c9d9; }
.anat-sektion .anat__nulstil { color: #9fc0d8; }
.anat__start { display: grid; place-items: center; height: 100%; }
.anat__start button { border: 0; background: #12c4a8; color: #06202a; padding: 14px 22px; border-radius: 14px; font: 850 .9rem/1.2 -apple-system, "Segoe UI", sans-serif; cursor: pointer; }

/* Fuldskærm */
.anat__knapper [data-fuld] { white-space: nowrap; }
.anat-laast, .anat-laast body { overflow: hidden; }
.anat__rum.anat--fuld { position: fixed; inset: 0; z-index: 10000; width: 100vw; height: 100dvh; margin: 0; padding: 0; gap: 0; grid-template-columns: minmax(0, 1fr) 330px; align-items: stretch; background: #0d2038; }
.anat--fuld .anat__scene { height: 100%; max-height: none; min-height: 0; border-radius: 0; }
.anat--fuld .anat__side { padding: 14px; overflow-y: auto; height: 100%; background: linear-gradient(180deg, #14345a, #0d2038); color: #e8f4ff; align-content: start; }
.anat--fuld .anat__advarsel, .anat--fuld .anat__spoegelse { color: #cfe3f5; }
.anat--fuld .anat__nulstil { color: #9fc0d8; }
.anat--fuld .anat__tip { bottom: 12px; }
@media (max-width: 900px) {
  .anat__rum.anat--fuld { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .anat--fuld .anat__side { height: auto; max-height: 40dvh; }
  .anat--fuld .anat__lag { grid-template-columns: repeat(3, 1fr); }
  .anat--fuld .anat__advarsel { display: none; }
}
.anat__engelsk { margin: -2px 0 6px; font-size: .68rem; font-weight: 700; color: #8793a5; }
