/* Zoom ind i en celle (naturfag-celle3d.js) — samme udtryk som Anatomi i 3D */
.celle-sektion { margin: 0 0 30px; padding: 18px; border-radius: 22px; background: linear-gradient(160deg, #0b1a2e, #14345a 55%, #3a1f4f); color: #e8f4ff; box-shadow: 0 18px 44px rgba(13, 32, 56, .25); }
.celle-sektion__summary { display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.celle-sektion__summary::-webkit-details-marker { display: none; }
.celle-sektion__badge { flex: none; padding: 5px 11px; border-radius: 999px; background: #ff9a4d; color: #2a1200; font: 900 .66rem/1 -apple-system, "Segoe UI", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.celle-sektion__tekst { flex: 1; display: grid; gap: 2px; }
.celle-sektion__tekst h2 { margin: 0; font-size: 1.45rem; color: #fff; }
.celle-sektion__tekst small { font-size: .8rem; color: #cfe3f5; }
.celle-sektion__cta { flex: none; padding: 10px 16px; border-radius: 999px; background: #12c4a8; color: #06202a; font: 850 .78rem/1 -apple-system, "Segoe UI", sans-serif; }
details[open] > .celle-sektion__summary .celle-sektion__cta { background: rgba(255, 255, 255, .12); color: #e8f4ff; }
details[open] > .celle-sektion__summary { margin-bottom: 14px; }

.celle__fallback { font-size: .82rem; color: #cfe3f5; padding: 16px; border: 1px dashed rgba(123, 228, 238, .4); border-radius: 12px; background: rgba(9, 26, 48, .5); }
.celle__fallback ul { margin: 8px 0 0 18px; }
.celle__rum { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .9fr); gap: 16px; align-items: start; }
.celle__scene { position: relative; border-radius: 16px; overflow: hidden; background: #0b1a2e; height: min(70vh, 600px); min-height: 440px; }
.celle__host { position: absolute; inset: 0; }
.celle__host canvas { display: block; width: 100%; height: 100%; }
.celle__etiketter { position: absolute; inset: 0; pointer-events: none; }
.celle__etiketter[hidden] { display: none; }
.celle__etiket { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  font: 800 .7rem/1.2 -apple-system, "Segoe UI", sans-serif; color: #fff; background: rgba(9, 26, 48, .72); border: 1px solid var(--f, #7be4ee);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .8); transition: opacity .3s, background .2s; will-change: transform; }
.celle__etiket::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--f); margin-right: 6px; vertical-align: 1px; }
.celle__etiket:hover, .celle__etiket.er-valgt { background: var(--f); color: #10162a; }
.celle__zoom { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.celle__zoom button { min-width: 40px; height: 40px; border-radius: 11px; border: 1px solid rgba(123, 228, 238, .38); background: rgba(9, 26, 48, .78); color: #e8f4ff; font: 800 1rem/1 -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
.celle__zoom button:hover { border-color: #7be4ee; }
.celle__legende { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; max-width: 70%; pointer-events: none; }
.celle__legende[hidden] { display: none; }
.celle__legende span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: rgba(9, 26, 48, .78); font: 800 .68rem/1 -apple-system, "Segoe UI", sans-serif; color: #e8f4ff; }
.celle__legende span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--f); box-shadow: 0 0 8px var(--f); }
.celle__side-top, .celle__side-bund { position: absolute; left: 14px; font: 900 .64rem/1 -apple-system, "Segoe UI", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #9fc0d8; pointer-events: none; }
.celle__side-top { top: 54px; }
.celle__side-bund { bottom: 34px; }
.celle__side-top[hidden], .celle__side-bund[hidden] { display: none; }
.celle__tip { position: absolute; left: 12px; right: 12px; bottom: 8px; margin: 0; text-align: center; font: 700 .66rem/1.3 -apple-system, "Segoe UI", sans-serif; color: #9fc0d8; pointer-events: none; }

.celle__side { display: grid; gap: 10px; }
.celle__tilstande { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(9, 26, 48, .6); }
.celle__tilstand { min-height: 42px; border: 0; border-radius: 11px; background: transparent; color: #cfe3f5; font: 850 .8rem/1 -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
.celle__tilstand[aria-selected="true"] { background: linear-gradient(135deg, #12c4a8, #5fe1cf); color: #06202a; }
.celle__rundtur { min-height: 40px; border-radius: 12px; border: 1px dashed rgba(255, 154, 77, .6); background: rgba(255, 154, 77, .12); color: #ffd9bd; font: 850 .78rem/1 -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
.celle__rundtur.er-paa { background: #ff9a4d; color: #2a1200; border-style: solid; }
.celle__knapper { display: flex; flex-wrap: wrap; gap: 6px; }
.celle__knap { min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(123, 228, 238, .35); background: rgba(9, 26, 48, .55); color: #e8f4ff; font: 800 .74rem/1.2 -apple-system, "Segoe UI", sans-serif; cursor: pointer; text-align: left; }
.celle__knap[style*="--f"]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--f); margin-right: 6px; }
.celle__knap[aria-pressed="true"] { background: #e8f4ff; color: #0b1a2e; border-color: #e8f4ff; }
.celle__info { border-radius: 14px; padding: 14px 16px; background: #f8fbfe; color: #16263f; display: grid; gap: 8px; }
.celle__info h3 { margin: 0; font-size: 1.1rem; color: #0d2038; }
.celle__info p { margin: 0; font-size: .86rem; line-height: 1.55; }
.celle__label { font-size: .62rem !important; letter-spacing: .12em; text-transform: uppercase; font-weight: 900; color: #0e9d87; }
.celle__praksis { padding: 9px 11px; border-radius: 10px; background: #eaf7f4; border-left: 3px solid #12c4a8; color: #134e45; }
.celle__se { font-size: .8rem !important; color: #5a6b82; font-style: italic; }
.celle__osmose { padding: 8px 10px; border-radius: 10px; background: #fff7e0; color: #6b4e00; }
.celle__formel { font-weight: 850; text-align: center; padding: 10px; border-radius: 10px; background: #fff3e6; color: #7a3500; }
.celle__info .celle__knap { border-color: #c9d8e6; background: #fff; color: #16263f; }
.celle__info .celle__knap[aria-pressed="true"] { background: #0d2038; color: #fff; }
.celle__videre { justify-self: start; min-height: 40px; padding: 0 14px; border-radius: 11px; border: 0; background: #0d2038; color: #fff; font: 850 .78rem/1 -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
.celle__videre--zoom { background: linear-gradient(135deg, #ff9a4d, #ffb877); color: #2a1200; }
.celle--tabt .celle__scene::after { content: "3D-visningen genstarter …"; position: absolute; inset: 0; display: grid; place-items: center; color: #cfe3f5; font-size: .85rem; }

@media (max-width: 900px) {
  .celle__rum { grid-template-columns: 1fr; }
  .celle__scene { height: 62vh; min-height: 360px; }
  .celle-sektion__summary { flex-wrap: wrap; }
  .celle-sektion__cta { width: 100%; text-align: center; }
}
@media (prefers-color-scheme: dark) {
  .celle__info { background: #12233b; color: #e8f0fa; }
  .celle__info h3 { color: #fff; }
  .celle__praksis { background: #10352f; color: #bff5ea; }
  .celle__se { color: #9db2cc; }
  .celle__osmose { background: #3a2f16; color: #f1d9a6; }
  .celle__formel { background: #3a2412; color: #ffd2a8; }
  .celle__info .celle__knap { background: #16294a; color: #e8f0fa; border-color: #2a4468; }
}
