/* naturfag-kost.css — Kost og energi i 3D (2026-10-05). Bygger på .celle-sektion fra naturfag-celle3d.css. */
.kost-sektion { background: linear-gradient(160deg, #0b1a2e, #10304f 55%, #1d3b2a); }
.kost-sektion .celle-sektion__badge { background: #ffd166; color: #2a1d00; }
.kost { color: #e8f4ff; }
.kost__faner { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.kost__fane { min-height: 40px; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(160, 220, 255, .28); background: rgba(255, 255, 255, .05); color: #dbeaff; font: 750 .82rem/1.1 -apple-system, "Segoe UI", sans-serif; cursor: pointer; transition: background .2s, border-color .2s; }
.kost__fane:hover { background: rgba(255, 255, 255, .1); }
.kost__fane[aria-selected="true"] { background: linear-gradient(135deg, #ffd166, #2ee6c8); color: #04202a; border-color: transparent; }
.kost__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.kost__scene { position: relative; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #15365e, #0a1930 72%); border: 1px solid rgba(160, 220, 255, .18); min-height: 360px; }
.kost__3d { position: relative; height: clamp(360px, 46vw, 540px); }
.kost__3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; touch-action: pan-y; cursor: grab; }
.kost__etiketter { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.kost__etiket { position: absolute; left: 0; top: 0; padding: 4px 10px; border-radius: 999px; font: 800 .72rem/1.2 -apple-system, "Segoe UI", sans-serif; color: #eafcff; white-space: nowrap; background: rgba(8, 21, 39, .72); border: 1px solid rgba(160, 220, 255, .35); will-change: transform; transition: opacity .3s; }
.kost__etiket--stor { font-size: .92rem; padding: 6px 13px; border-color: rgba(255, 209, 102, .7); color: #fff7dd; }
.kost__etiket--plus { border-color: rgba(34, 227, 160, .8); color: #c9ffe9; }
.kost__etiket--minus { border-color: rgba(255, 255, 255, .25); color: #b9cde6; }
.kost__fallback { display: none; position: absolute; inset: 0; place-items: center; text-align: center; padding: 20px; color: #9fb7d3; font-size: .9rem; }
.kost__scene.uden-3d .kost__fallback { display: grid; }
.kost__panel { display: grid; gap: 12px; align-content: start; font-size: .95rem; line-height: 1.55; }
.kost__panel h3 { margin: 0; font-size: 1.2rem; color: #fff; }
.kost__panel p { margin: 0; color: #cfe0f3; }
.kost__boks { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(160, 220, 255, .16); display: grid; gap: 8px; }
.kost__boks h4 { margin: 0; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #9fc4e8; }
.kost__boks ul, .kost__boks ol { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: #d7e7f8; }
.kost__formel { font: 800 1.05rem/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #ffe8a6; background: rgba(0, 0, 0, .25); border-radius: 12px; padding: 10px 12px; overflow-x: auto; }
.kost__formel small { display: block; font: 600 .78rem/1.4 -apple-system, "Segoe UI", sans-serif; color: #b9cde6; }
.kost__resultat { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.kost__resultat b { font-size: 1.9rem; color: #fff; letter-spacing: -.02em; }
.kost__resultat span { font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--k, #2ee6c8); color: #04202a; }
.kost__glider { display: grid; gap: 4px; font-size: .82rem; font-weight: 750; color: #a9c1dc; }
.kost__glider span { display: flex; justify-content: space-between; }
.kost__glider b { color: #fff; }
.kost__glider input[type=range] { width: 100%; accent-color: #2ee6c8; min-height: 30px; }
.kost select, .kost input[type=number] { min-height: 42px; border-radius: 12px; border: 1px solid rgba(160, 220, 255, .3); background: #0a1a31; color: #fff; font: 650 .9rem/1.2 inherit; padding: 0 10px; width: 100%; }
.kost__tjek { display: flex; gap: 10px; align-items: center; min-height: 38px; cursor: pointer; color: #dbeaff; font-size: .9rem; }
.kost__tjek input { width: 20px; height: 20px; accent-color: #2ee6c8; flex: none; }
.kost__knapper { display: flex; flex-wrap: wrap; gap: 6px; }
.kost__knap { min-height: 42px; padding: 8px 14px; border-radius: 12px; border: 1px solid rgba(160, 220, 255, .3); background: rgba(255, 255, 255, .05); color: #e8f4ff; font: 750 .85rem/1.2 -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
.kost__knap:hover { background: rgba(255, 255, 255, .11); }
.kost__knap.er-valgt, .kost__knap--primaer { background: linear-gradient(135deg, #2ee6c8, #22b8d9); color: #04202a; border-color: transparent; }
.kost__knap:disabled { opacity: .5; cursor: default; }
.kost__retter { display: grid; gap: 6px; }
.kost__ret { display: grid; grid-template-columns: 1fr auto auto auto; gap: 6px; align-items: center; font-size: .86rem; color: #d7e7f8; }
.kost__ret button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(160, 220, 255, .3); background: rgba(255, 255, 255, .06); color: #fff; font-weight: 900; cursor: pointer; }
.kost__ret b { min-width: 22px; text-align: center; }
.kost__ret small { color: #9fb7d3; min-width: 64px; text-align: right; }
.kost__bar { height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.kost__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2ee6c8, #ffd166); transition: width .3s; }
.kost__energi { display: grid; gap: 6px; }
.kost__energi div { display: grid; grid-template-columns: 92px 1fr 64px; gap: 8px; align-items: center; font-size: .84rem; }
.kost__energi i { height: 14px; border-radius: 6px; background: var(--k); display: block; }
.kost__tabel { width: 100%; border-collapse: collapse; font-size: .8rem; }
.kost__tabel th, .kost__tabel td { padding: 6px 5px; border-bottom: 1px solid rgba(160, 220, 255, .14); text-align: center; }
.kost__tabel th:first-child, .kost__tabel td:first-child { text-align: left; }
.kost__tabel th { color: #9fc4e8; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }
.kost__tabel .plus { color: #22e3a0; font-weight: 900; }
.kost__tabel .minus { color: #8fa6c2; }
.kost__tabel .svag { color: #ffd166; font-weight: 800; }
.kost__kilder { font-size: .76rem; color: #9fb7d3; }
.kost__kilder a { color: #8fe9ff; }
.kost__opgaver { counter-reset: opg; list-style: none; padding: 0 !important; }
.kost__opgaver li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.kost__opgaver li::before { counter-increment: opg; content: counter(opg); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #ffd166; color: #2a1d00; font-weight: 900; font-size: .8rem; }
.kost__link { all: unset; cursor: pointer; color: #8fe9ff; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.kost__spm { display: grid; gap: 8px; }
.kost__spm p { color: #fff; font-weight: 750; }
.kost__svar { text-align: left; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(160, 220, 255, .25); background: rgba(255, 255, 255, .04); color: #e8f4ff; font: 650 .9rem/1.35 inherit; cursor: pointer; }
.kost__svar.er-rigtig { background: rgba(34, 227, 160, .18); border-color: #22e3a0; }
.kost__svar.er-forkert { background: rgba(255, 84, 112, .16); border-color: #ff5470; }
.kost__svar:disabled { cursor: default; }
@media (max-width: 900px) {
  .kost__grid { grid-template-columns: 1fr; }
  .kost__3d { height: min(105vw, 460px); }
}
@media (max-width: 600px) {
  .kost__etiket { font-size: .62rem; padding: 3px 7px; }
  .kost__etiket--stor { font-size: .78rem; }
  .kost__fane { font-size: .76rem; padding: 6px 10px; }
}
