/* side-proeve.css – den afsluttende prøve (/afsluttende-proeve/, 2026-10-31) */

/* SSA/SSH: elementer med data-kun vises kun for den valgte uddannelse */
body[data-udd="ssa"] [data-kun="ssh"], body[data-udd="ssh"] [data-kun="ssa"] { display: none !important; }

.ap-wrap { max-width: 1180px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 44px) 50px; }

/* ── Toppen ── */
.ap-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 3.5vw, 44px); align-items: center;
  max-width: 1180px; margin: 10px auto 0; padding: clamp(22px, 4vw, 48px); border-radius: 30px; color: #fff;
  background: radial-gradient(760px 420px at 100% 0%, rgba(124, 58, 237, .32), transparent 65%), radial-gradient(640px 420px at 0% 100%, rgba(46, 230, 200, .16), transparent 70%), linear-gradient(160deg, #10233f, #081527 70%); }
.ap-hero::before { content: ""; position: absolute; inset: -30%; z-index: -1; pointer-events: none;
  background: linear-gradient(118deg, transparent 38%, rgba(196, 181, 253, .10) 44%, transparent 50%), linear-gradient(128deg, transparent 58%, rgba(127, 214, 255, .08) 62%, transparent 67%);
  animation: ap-lys 22s ease-in-out infinite alternate; }
@keyframes ap-lys { from { transform: translate3d(-4%, -2%, 0) rotate(-1deg); } to { transform: translate3d(4%, 2%, 0) rotate(1deg); } }
.ap-hero--lille { grid-template-columns: minmax(0, 1fr); }
.ap-hero--lille .ap-hero-tekst { max-width: 820px; }
.ap-hero .sd-kicker { display: inline-block; padding: 5px 12px; border-radius: 999px; color: #ddd6fe; background: rgba(124, 58, 237, .25); border: 1px solid rgba(196, 181, 253, .4); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.ap-hero h1 { font-size: clamp(1.85rem, 4.1vw, 3rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 850; margin: 12px 0 14px; }
.ap-hero .lead { color: #d3e2f2; font-size: 1.02rem; line-height: 1.6; max-width: 60ch; }
.ap-hero-knapper { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ap-knap { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 800; font-size: .95rem; color: #04221e; background: linear-gradient(135deg, #34d8bf, #0e9d87); box-shadow: 0 12px 24px -14px rgba(18, 196, 168, .9); }
.ap-knap:hover { filter: brightness(1.06); }
.ap-knap:focus-visible { outline: 3px solid #b8fff2; outline-offset: 2px; }
.ap-knap-let { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .25); box-shadow: none; }
.ap-wrap .ap-knap-let { background: var(--sd-card); color: var(--sd-ink); border: 1.5px solid var(--sd-line); }
.ap-knap:disabled { cursor: progress; filter: saturate(.7); }

.ap-udd { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; padding: 4px; border-radius: 999px; background: rgba(8, 21, 39, .5); border: 1px solid rgba(255, 255, 255, .16); }
.ap-udd span { padding: 0 8px 0 10px; font-size: .8rem; font-weight: 700; color: #b9cde3; }
.ap-udd button { min-height: 38px; min-width: 64px; padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: #dbe7f4; font: inherit; font-weight: 850; cursor: pointer; }
.ap-udd button[aria-pressed="true"] { background: #fff; color: #0d2038; }
.ap-udd button:focus-visible { outline: 3px solid rgba(46, 230, 200, .7); }

/* Prøve-uret */
.ap-ur { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; border-radius: 24px; background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ap-ur-svg { display: block; width: 100%; height: auto; }
.ap-ur-seg { transform: rotate(-90deg); transform-origin: 110px 110px; transition: stroke-dasharray .9s cubic-bezier(.3, .8, .3, 1), stroke-dashoffset .9s cubic-bezier(.3, .8, .3, 1); stroke-linecap: butt; }
.ap-seg-oplaeg { stroke: #c4b5fd; } .ap-seg-dialog { stroke: #2ee6c8; } .ap-seg-votering { stroke: #fda4af; }
.ap-ur-viser { fill: #fff; transform-origin: 110px 110px; animation: ap-viser 12s linear infinite; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .8)); }
@keyframes ap-viser { to { transform: rotate(360deg); } }
.ap-ur-tal { font: 900 46px system-ui, sans-serif; fill: #fff; }
.ap-ur-enhed { font: 700 13px system-ui, sans-serif; fill: #b9cde3; }
.ap-elever { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(8, 21, 39, .55); }
.ap-elever button { flex: 1; min-height: 38px; padding: 6px 10px; border: 0; border-radius: 10px; background: transparent; color: #b9cde3; font: inherit; font-size: .84rem; font-weight: 800; cursor: pointer; }
.ap-elever button[aria-pressed="true"] { background: #fff; color: #0d2038; }
.ap-ur-dele { list-style: none; padding: 0; display: grid; gap: 6px; margin: 12px 0 8px; }
.ap-ur-dele li { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(8, 21, 39, .5); font-size: .9rem; }
.ap-ur-dele i { width: 12px; height: 12px; border-radius: 4px; }
.ap-p-oplaeg { background: #c4b5fd; } .ap-p-dialog { background: #2ee6c8; } .ap-p-votering { background: #fda4af; }
.ap-ur-dele span { font-weight: 850; color: #fff; }
.ap-ur-note { font-size: .78rem; line-height: 1.5; color: #b9cde3; }

/* Undernavigation */
.ap-undernav { background: transparent; box-shadow: none; border: 0; position: sticky; top: 64px; z-index: 20; display: flex; gap: 6px; overflow-x: auto; max-width: 1180px; margin: 14px auto 0; padding: 6px clamp(16px, 4vw, 44px); }
.ap-undernav a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 14px; border-radius: 999px; background: var(--sd-card); border: 1.5px solid var(--sd-line); color: var(--sd-ink); font-size: .88rem; font-weight: 800; text-decoration: none; box-shadow: 0 8px 18px -14px rgba(13, 32, 56, .5); }
.ap-undernav a[aria-current="page"] { background: #0d2038; color: #fff; border-color: #0d2038; }

/* Sektionernes hoved */
.ap-hoved { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.ap-hoved h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 850; letter-spacing: -.02em; color: var(--sd-ink); margin: 2px 0 4px; }
.ap-hoved p { color: var(--sd-soft); font-size: .93rem; line-height: 1.55; max-width: 75ch; }
.ap-nr { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #7c3aed; color: #fff; font-weight: 900; font-size: 1rem; }
.ap-nr-ikon { background: var(--t, #7c3aed); font-size: 1.2rem; }
.ap-citat { position: relative; margin: 8px 0; padding: 10px 14px 10px 16px; border-left: 3px solid var(--t, #7c3aed); border-radius: 0 12px 12px 0; background: color-mix(in srgb, var(--t, #7c3aed) 7%, transparent); font-size: .9rem; line-height: 1.55; color: var(--sd-ink); font-style: italic; }
.ap-noteboks { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #f1f5fa; font-size: .92rem; line-height: 1.55; color: var(--sd-ink); }
.ap-privat { margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; background: #fff6e6; color: #78350f; font-size: .88rem; }

.ap-to { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ap-regel { padding: 16px; border-radius: 18px; border: 1px solid var(--sd-line); background: var(--sd-card); --t: #7c3aed; }
.ap-regel[data-udd-kort="ssh"] { --t: #0e9d87; }
.ap-regel h3 { font-size: 1.05rem; font-weight: 850; color: var(--sd-ink); margin: 6px 0; }
.ap-regel-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--t); color: #fff; font-size: .74rem; font-weight: 900; }
.ap-regel-fod { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .86rem; color: var(--sd-soft); }
body[data-udd="ssa"] .ap-regel[data-udd-kort="ssa"], body[data-udd="ssh"] .ap-regel[data-udd-kort="ssh"] { box-shadow: 0 0 0 2px var(--t); }

.ap-kriterier { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ap-krit { display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: 18px; border: 1px solid var(--sd-line); border-top: 4px solid var(--t); background: var(--sd-card); }
.ap-krit-top { display: flex; align-items: center; gap: 8px; }
.ap-krit-top h3 { font-size: 1rem; font-weight: 850; color: var(--sd-ink); }
.ap-krit-b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--t); color: #fff; font-weight: 900; text-transform: uppercase; flex: none; }
.ap-krit p, .ap-krit li { font-size: .87rem; line-height: 1.5; color: var(--sd-ink); }
.ap-krit ul { padding-left: 18px; display: grid; gap: 4px; }
.ap-faelde { padding: 8px 10px; border-radius: 10px; background: #fff6e6; color: #78350f !important; }

.ap-vej { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: vej; }
.ap-vej li { counter-increment: vej; position: relative; display: grid; gap: 6px; align-content: start; padding: 16px 16px 14px 56px; border-radius: 18px; border: 1px solid var(--sd-line); background: var(--sd-card); }
.ap-vej li::before { content: counter(vej); position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #a78bfa, #7c3aed); color: #fff; font-weight: 900; }
.ap-vej b { font-size: 1rem; color: var(--sd-ink); }
.ap-vej span { font-size: .87rem; line-height: 1.5; color: var(--sd-soft); }
.ap-vej a { font-size: .84rem; font-weight: 800; color: #6d28d9; }

.ap-temaer { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ap-tema { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: 18px; border: 1px solid var(--sd-line); border-top: 4px solid var(--t); background: var(--sd-card); color: var(--sd-ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.ap-tema:hover { transform: translateY(-2px); box-shadow: var(--sd-shadow); }
.ap-tema-ikon { font-size: 1.6rem; }
.ap-tema b { font-size: 1rem; }
.ap-tema small { font-size: .84rem; line-height: 1.45; color: var(--sd-soft); }
.ap-tema-km { font-size: .74rem; font-weight: 850; color: var(--t); }

.ap-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ap-case { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: 18px; background: var(--sd-card); border: 1px solid var(--sd-line); border-left: 5px solid var(--t); color: var(--sd-ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.ap-case:hover { transform: translateY(-2px); box-shadow: var(--sd-shadow); }
.ap-case-tag { font-size: .72rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; color: var(--t); }
.ap-case b { font-size: 1.02rem; }
.ap-case small { font-size: .85rem; line-height: 1.45; color: var(--sd-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.ap-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-link { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--sd-line); background: var(--sd-card); color: var(--sd-ink); font-size: .88rem; font-weight: 750; text-decoration: none; }
.ap-link:hover { border-color: #7c3aed; }
.ap-links-lille { font-size: .84rem; color: var(--sd-soft); margin-top: 8px; }

/* ── Temaer-siden ── */
.ap-hurtig { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ap-hurtig a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--sd-line); background: var(--sd-card); color: var(--sd-ink); font-size: .86rem; font-weight: 750; text-decoration: none; }
.ap-tema-sek { border-top: 4px solid var(--t); }
.ap-tema-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-bottom: 8px; }
.ap-km-kort { list-style: none; padding: 0; display: grid; gap: 8px; margin-bottom: 8px; }
.ap-km-kort li { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--sd-line); background: var(--sd-card); }
.ap-km-kort b { font-size: .78rem; font-weight: 900; color: var(--t, #7c3aed); }
.ap-km-kort span { font-size: .88rem; line-height: 1.5; color: var(--sd-ink); }
.ap-km-kort small { font-size: .8rem; line-height: 1.45; color: var(--sd-soft); font-style: italic; }
.ap-teorier { display: grid; gap: 8px; }
.ap-teori { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--sd-line); background: var(--sd-card); color: var(--sd-ink); text-decoration: none; }
.ap-teori:hover { border-color: #7c3aed; }
.ap-teori b { font-size: .92rem; }
.ap-teori small { font-size: .82rem; line-height: 1.45; color: var(--sd-soft); }
.ap-kmliste { list-style: none; padding: 0; display: grid; gap: 8px; margin-bottom: 10px; }
.ap-kmliste li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--sd-line); background: var(--sd-card); }
.ap-kmliste b { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #7c3aed; color: #fff; font-weight: 900; }
.ap-kmliste span { font-size: .9rem; line-height: 1.5; color: var(--sd-ink); }
.ap-kmliste small a { font-size: .76rem; font-weight: 800; color: #6d28d9; margin-right: 8px; }

/* ── Værkstedet ── */
.ap-vk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.ap-vk-form { display: grid; gap: 14px; }
.ap-trin { border: 1px solid var(--sd-line); border-radius: 18px; padding: 14px 16px 16px; background: var(--sd-card); }
.ap-trin legend { display: flex; align-items: center; gap: 8px; padding: 0 6px; font-weight: 850; color: var(--sd-ink); }
.ap-trin legend b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #7c3aed; color: #fff; font-size: .82rem; }
.ap-trin-hj { font-size: .84rem; color: var(--sd-soft); margin: 2px 0 8px; }
.ap-trin textarea, .ap-soeg, .ap-felt textarea, .ap-felt select, .ap-ai-tekst { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--sd-line); background: var(--sd-card); color: var(--sd-ink); font: inherit; font-size: .95rem; line-height: 1.5; resize: vertical; }
.ap-trin textarea:focus-visible, .ap-soeg:focus-visible, .ap-felt textarea:focus-visible, .ap-ai-tekst:focus-visible { outline: 3px solid rgba(124, 58, 237, .35); border-color: #7c3aed; }
.ap-felt { display: grid; gap: 4px; margin-top: 8px; font-size: .84rem; font-weight: 750; color: var(--sd-soft); }
.ap-vk-temaer { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-vk-temaer button, .ap-principper button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--sd-line); background: var(--sd-card); color: var(--sd-ink); font: inherit; font-size: .84rem; font-weight: 750; cursor: pointer; }
.ap-vk-temaer button[aria-pressed="true"], .ap-principper button[aria-pressed="true"] { background: #0d2038; color: #fff; border-color: #0d2038; }
.ap-principper { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ap-tjek { margin-top: 8px; display: grid; gap: 4px; }
.ap-tjek p { display: flex; gap: 8px; font-size: .84rem; line-height: 1.45; }
.ap-tjek .er-ok { color: #15803d; } .ap-tjek .er-obs { color: #b45309; }
.ap-km-valg { display: grid; gap: 6px; }
.ap-km-valg label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--sd-line); cursor: pointer; font-size: .86rem; line-height: 1.45; color: var(--sd-ink); }
.ap-km-valg label.er-forslag { border-color: #a78bfa; background: rgba(124, 58, 237, .05); }
.ap-km-valg label.er-forslag::after { content: "Forslag"; grid-column: 2; justify-self: start; font-size: .7rem; font-weight: 850; color: #6d28d9; }
.ap-km-valg input { width: 18px; height: 18px; margin-top: 2px; accent-color: #7c3aed; }
.ap-km-valg textarea, .ap-valgt-teori textarea { grid-column: 2; margin-top: 4px; }
.ap-teori-valg { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; max-height: 220px; overflow: auto; }
.ap-teori-valg button { min-height: 34px; padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--sd-line); background: var(--sd-card); color: var(--sd-ink); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.ap-teori-valg button.er-forslag { border-color: #a78bfa; }
.ap-teori-valg button[aria-pressed="true"] { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.ap-valgt-teori { display: grid; gap: 4px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid #ddd6fe; background: rgba(124, 58, 237, .04); }
.ap-valgt-teori b { font-size: .9rem; color: var(--sd-ink); }
.ap-valgt-teori a { font-size: .78rem; font-weight: 800; color: #6d28d9; }

.ap-vk-vis { position: sticky; top: 124px; display: grid; gap: 12px; max-height: calc(100vh - 140px); overflow: auto; padding-bottom: 6px; }
.ap-daekning { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ap-daekning div { display: grid; gap: 4px; padding: 8px; border-radius: 12px; background: var(--sd-card); border: 1px solid var(--sd-line); font-size: .74rem; font-weight: 800; color: var(--sd-soft); }
.ap-daekning b { display: flex; align-items: center; gap: 6px; color: var(--sd-ink); font-size: .82rem; }
.ap-daekning i { display: block; height: 6px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.ap-daekning i em { display: block; height: 100%; width: 0; background: var(--t); transition: width .5s ease; }
.ap-dispo { padding: 22px 24px; border-radius: 16px; background: #fff; color: #16263f; box-shadow: 0 20px 40px -26px rgba(13, 32, 56, .55); border: 1px solid #e2e9f3; font-size: .9rem; line-height: 1.55; }
.ap-dispo h3 { font-size: 1.15rem; font-weight: 850; margin-bottom: 4px; color: #0d2038; }
.ap-dispo .ap-d-meta { font-size: .78rem; color: #5a6b82; margin-bottom: 12px; }
.ap-dispo h4 { margin-top: 12px; font-size: .78rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #6d28d9; display: flex; justify-content: space-between; }
.ap-dispo h4 small { font-weight: 700; color: #5a6b82; letter-spacing: 0; text-transform: none; }
.ap-dispo ul { padding-left: 18px; }
.ap-dispo .ap-d-tom { color: #94a3b8; font-style: italic; }
.ap-vk-knapper { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-tidsplan, .ap-forvent { padding: 14px; border-radius: 16px; background: var(--sd-card); border: 1px solid var(--sd-line); }
.ap-tidsplan h4, .ap-forvent h4 { font-size: .9rem; font-weight: 850; color: var(--sd-ink); margin-bottom: 8px; }
.ap-tidslinje { display: flex; height: 26px; border-radius: 8px; overflow: hidden; margin-bottom: 6px; }
.ap-tidslinje span { display: grid; place-items: center; font-size: .68rem; font-weight: 900; color: #fff; background: var(--t); border-right: 2px solid #fff; min-width: 0; overflow: hidden; }
.ap-forvent ol { padding-left: 20px; display: grid; gap: 4px; font-size: .86rem; line-height: 1.45; color: var(--sd-ink); }
.ap-print { display: none; }

/* ── Øv ── */
.ap-simul { display: grid; gap: 12px; padding: 18px; border-radius: 20px; background: linear-gradient(160deg, #10233f, #081527); color: #fff; }
.ap-simul-ur { display: grid; gap: 6px; }
.ap-simul-fase { font-size: .8rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; color: #c4b5fd; }
.ap-simul-ur b { font-size: clamp(2.6rem, 8vw, 4.2rem); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ap-simul-bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ap-simul-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c4b5fd, #2ee6c8); transition: width 1s linear; }
.ap-simul-knapper { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-simul .ap-knap-let { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.ap-simul-case { color: #b9cde3; }
.ap-simul-case select { color: #0d2038; }
.ap-simul-sp { min-height: 90px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); font-size: 1.1rem; line-height: 1.5; }
.ap-simul-sp .ap-krit-b { margin-right: 8px; }
.ap-sp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ap-sp-kol { padding: 14px; border-radius: 16px; border: 1px solid var(--sd-line); border-top: 4px solid var(--t); background: var(--sd-card); }
.ap-sp-kol h3 { display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 850; color: var(--sd-ink); margin-bottom: 8px; }
.ap-sp-kol ul { padding-left: 18px; display: grid; gap: 6px; font-size: .87rem; line-height: 1.45; color: var(--sd-ink); }
.ap-ai { display: grid; gap: 10px; }
.ap-ai-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ap-ai-status { font-size: .82rem; font-weight: 700; color: var(--sd-soft); }
.ap-ai-taeller { font-size: .78rem; color: var(--sd-soft); text-align: right; }
.ap-ai-fejl { padding: 10px 12px; border-radius: 12px; background: #fff6e6; color: #78350f; font-size: .9rem; line-height: 1.5; }
.ap-ai-fejl[hidden], .ap-ai-svar[hidden] { display: none; }
.ap-ai-svar { display: grid; gap: 12px; }
.ap-ai-samlet { font-weight: 750; font-size: 1rem; color: var(--sd-ink); }
.ap-ai-krit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ap-ai-krit div { padding: 10px; border-radius: 12px; border: 1px solid var(--sd-line); border-top: 4px solid var(--t); background: var(--sd-card); font-size: .84rem; line-height: 1.45; }
.ap-ai-krit b { display: block; margin-bottom: 4px; }
.ap-ai-krit .er-ok { color: #15803d; } .ap-ai-krit .er-delvist { color: #b45309; } .ap-ai-krit .er-mangler { color: #b91c1c; }
.ap-ai-blok { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--sd-line); background: var(--sd-card); }
.ap-ai-blok h4 { font-size: .8rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--sd-soft); margin-bottom: 6px; }
.ap-ai-blok ol, .ap-ai-blok ul { padding-left: 20px; display: grid; gap: 4px; font-size: .9rem; line-height: 1.5; color: var(--sd-ink); }
.ap-spinner { width: 16px; height: 16px; margin-right: 8px; border-radius: 50%; border: 2.5px solid rgba(4, 34, 30, .3); border-top-color: #04221e; animation: ap-drej .8s linear infinite; }
@keyframes ap-drej { to { transform: rotate(360deg); } }

/* ── Casen ── */
.ap-opgave { border-top: 4px solid #7c3aed; }
.ap-opgave h2 { font-size: .8rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #6d28d9; margin-bottom: 6px; }
.ap-opgave-tekst { font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 800; line-height: 1.35; color: var(--sd-ink); }
.ap-c-sek { border-left: 5px solid var(--t); }
.ap-c-hoved { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ap-c-hoved h2 { font-size: 1.2rem; font-weight: 850; color: var(--sd-ink); }
.ap-punkter { padding-left: 20px; display: grid; gap: 6px; font-size: .93rem; line-height: 1.5; color: var(--sd-ink); }
.ap-dilemma { display: grid; gap: 6px; margin-top: 8px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, #2563eb 6%, transparent); }
.ap-dilemma p { font-weight: 700; color: var(--sd-ink); }
.ap-dilemma i { display: inline-block; margin: 0 6px 4px 0; padding: 2px 10px; border-radius: 999px; background: #2563eb; color: #fff; font-style: normal; font-size: .76rem; font-weight: 800; }
.ap-dispo-liste { padding-left: 22px; display: grid; gap: 6px; font-size: .95rem; font-weight: 700; color: var(--sd-ink); }

@media (max-width: 1000px) {
  .ap-kriterier, .ap-sp-grid, .ap-ai-krit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-vej { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ap-hero, .ap-vk, .ap-to, .ap-tema-grid { grid-template-columns: minmax(0, 1fr); }
  .ap-hero { margin: 10px 12px 0; }
  .ap-vk-vis { position: static; max-height: none; }
}
@media (max-width: 600px) {
  .ap-kriterier, .ap-sp-grid, .ap-vej, .ap-ai-krit { grid-template-columns: minmax(0, 1fr); }
  .ap-ur { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .ap-ur-svg { max-width: 200px; }
  .ap-ur-info { width: 100%; }
  .ap-daekning { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .ap-hero::before, .ap-ur-viser, .ap-spinner { animation: none; }
  .ap-ur-seg, .ap-tema, .ap-case { transition: none; }
}
@media (prefers-color-scheme: dark) {
  .ap-noteboks { background: #1b3352; }
  .ap-privat, .ap-faelde, .ap-ai-fejl { background: #3a2f16; color: #fde68a !important; }
  .ap-vej a, .ap-kmliste small a, .ap-valgt-teori a { color: #c4b5fd; }
  .ap-tema-km { filter: brightness(1.5); }
  .ap-km-valg label.er-forslag::after { color: #c4b5fd; }
  .ap-daekning i { background: #0b1626; }
}

/* ── Print: disposition på A4 eller plakat på A3 ── */
@media print {
  body > *:not(.ap-wrap) { display: none !important; }
  .ap-wrap > *:not(.ap-print) { display: none !important; }
  .ap-print { display: block !important; color: #000; }
  .ap-print .ap-dispo { box-shadow: none; border: 0; padding: 0; font-size: 11pt; }
  .ap-plakat { display: grid; grid-template-columns: 1fr 1fr; gap: 10mm; font-size: 13pt; }
  .ap-plakat h1 { grid-column: 1 / -1; font-size: 30pt; line-height: 1.1; }
  .ap-plakat .ap-pk { border: 2px solid #7c3aed; border-radius: 6mm; padding: 6mm; }
  .ap-plakat .ap-pk h2 { font-size: 15pt; color: #6d28d9; margin-bottom: 3mm; }
}

/* Undermenuen er et nav direkte under body og må ikke arve hovedmenuens mørke bjælke */
body > nav.ap-undernav { height: auto; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: none; position: sticky; top: 64px; z-index: 20; }

/* ── AI-vejlederen i værkstedet (2026-10-31) ── */
.ap-vl { border-radius: 20px; padding: 16px; color: #eef2ff; background: linear-gradient(160deg, #0d2038, #1e1b4b 60%, #3b1f7a); box-shadow: 0 18px 40px -24px rgba(30, 27, 75, .9); position: relative; overflow: hidden; scroll-margin-top: 130px; }
.ap-vl::before { content: ""; position: absolute; right: -60px; top: -70px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(52, 216, 191, .32), transparent 65%); pointer-events: none; }
.ap-vl-top { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; position: relative; }
.ap-vl-ikon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; color: #04221e; background: linear-gradient(135deg, #5eead4, #a78bfa); }
.ap-vl-top h2 { font-size: 1.08rem; font-weight: 850; color: #fff; margin: 0; }
.ap-vl-top p { font-size: .8rem; color: #c7d2fe; line-height: 1.4; }
.ap-vl-valg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; position: relative; }
.ap-vl-valg button { border: 1px solid rgba(199, 210, 254, .35); background: rgba(255, 255, 255, .08); color: #e0e7ff; border-radius: 999px; padding: 6px 11px; font: inherit; font-size: .8rem; font-weight: 750; cursor: pointer; min-height: 34px; }
.ap-vl-valg button[aria-pressed="true"] { background: #34d8bf; border-color: #34d8bf; color: #04221e; }
.ap-vl-felt { display: grid; gap: 4px; font-size: .8rem; font-weight: 800; color: #c7d2fe; margin-bottom: 10px; position: relative; }
.ap-vl-felt textarea { font: inherit; font-size: .9rem; font-weight: 500; color: #0f172a; background: #fff; border: 1px solid #a5b4fc; border-radius: 12px; padding: 9px 10px; resize: vertical; min-height: 58px; width: 100%; }
.ap-vl-send { width: 100%; border: 0; border-radius: 14px; padding: 12px; font: inherit; font-size: .98rem; font-weight: 850; cursor: pointer; color: #04221e; background: linear-gradient(135deg, #5eead4, #0e9d87); display: inline-flex; align-items: center; justify-content: center; position: relative; box-shadow: 0 12px 24px -14px rgba(18, 196, 168, .9); }
.ap-vl-send:disabled { opacity: .8; cursor: progress; }
.ap-vl-status { text-align: center; font-size: .74rem; color: #a5b4fc; margin-top: 8px; position: relative; }
.ap-vl-fejl { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fff7ed; color: #7c2d12; font-size: .84rem; line-height: 1.45; position: relative; }
.ap-vl-fejl a { color: #6d28d9; font-weight: 800; }
.ap-vl-svar { margin-top: 14px; padding: 14px; border-radius: 16px; background: #fff; color: #10233d; position: relative; display: grid; gap: 8px; }
.ap-vl-svar[hidden] { display: none; }
.ap-vl-svar h3 { font-size: .82rem; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; color: #6d28d9; margin-top: 6px; }
.ap-vl-tekst { font-size: .92rem; line-height: 1.55; }
.ap-vl-kort { border: 1px solid #e4e9f2; border-radius: 14px; padding: 10px 12px; background: #fafbff; display: grid; gap: 5px; }
.ap-vl-kort p { font-size: .88rem; line-height: 1.5; }
.ap-vl-kort small { font-size: .78rem; color: #5b6b82; }
.ap-vl-til { justify-self: start; font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; color: #0e7f6e; background: #e6fbf7; border-radius: 999px; padding: 2px 9px; }
.ap-vl-teori b a { color: #5b21b6; }
.ap-vl-fra { font-size: .74rem; color: #5b6b82; }
.ap-vl-fra a, .ap-vl-kilder a { color: #6d28d9; font-weight: 700; }
.ap-vl-knapper { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.ap-vl-knapper button { border: 1px solid #c4b5fd; background: #fff; color: #4c1d95; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; min-height: 34px; }
.ap-vl-knapper button:first-child { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.ap-vl-svar ul { padding-left: 1.1em; display: grid; gap: 4px; font-size: .86rem; line-height: 1.45; }
.ap-vl-kilder { font-size: .8rem !important; }
.ap-vl-note { font-size: .75rem; color: #5b6b82; border-top: 1px dashed #d7deea; padding-top: 8px; margin-top: 4px; }
.ap-vl-hj { margin-top: 10px; border: 1px dashed #a78bfa; background: #f5f3ff; color: #5b21b6; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; min-height: 36px; }
.ap-vl-hj:hover { background: #ede9fe; }
.ap-vl-blink { animation: ap-vl-blink 1.6s ease; }
@keyframes ap-vl-blink { 0%, 100% { box-shadow: none; } 25% { box-shadow: 0 0 0 4px rgba(52, 216, 191, .55); } }
@media (prefers-reduced-motion: reduce) { .ap-vl-blink { animation: none; } }
@media print { .ap-vl, .ap-vl-hj { display: none !important; } }
@media (prefers-color-scheme: dark) {
  .ap-vl-svar { background: #12233b; color: #e8f0fa; }
  .ap-vl-kort { background: #14294a; border-color: #24406a; }
  .ap-vl-kort small, .ap-vl-fra, .ap-vl-note { color: #a9bbd3; }
  .ap-vl-svar h3, .ap-vl-fra a, .ap-vl-kilder a, .ap-vl-teori b a { color: #c4b5fd; }
  .ap-vl-til { background: #0f2f2b; color: #99f6e4; }
  .ap-vl-knapper button { background: #1f1a4d; color: #ddd6fe; border-color: #3b2f7a; }
  .ap-vl-knapper button:first-child { background: #7c3aed; color: #fff; }
  .ap-vl-hj { background: #1f1a4d; color: #ddd6fe; border-color: #6d5bd0; }
}

/* ── Sygdomme og 3D-kroppen (2026-11-06) ── */
.ap-syger { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ap-syg { position: relative; display: grid; gap: 5px; align-content: start; padding: 0 0 14px; border-radius: 18px; overflow: hidden; border: 1px solid var(--sd-line); border-top: 4px solid var(--t); background: var(--sd-card); color: var(--sd-ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.ap-syg:hover { transform: translateY(-2px); box-shadow: var(--sd-shadow); }
.ap-syg:focus-visible { outline: 3px solid var(--t); outline-offset: 2px; }
.ap-syg img { display: block; width: 100%; height: 112px; object-fit: cover; background: #0b1b30; }
.ap-syg-ikon { position: absolute; top: 84px; left: 14px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 1.45rem; background: var(--sd-card); border: 2px solid var(--t); box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .5); }
.ap-syg b { margin: 22px 14px 0; font-size: 1.04rem; }
.ap-syg small { margin: 0 14px; font-size: .84rem; line-height: 1.45; color: var(--sd-soft); }
.ap-syg-fod { margin: 4px 14px 0; font-size: .72rem; font-weight: 850; letter-spacing: .03em; color: var(--t); }
.ap-mere { margin-top: 14px; }

.ap-krop { display: grid; gap: 12px; }
.ap-krop-emner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.ap-krop-emner > div { display: flex; flex-wrap: wrap; gap: 6px; align-content: start; }
.ap-krop-emner span { flex-basis: 100%; font-size: .74rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; color: var(--sd-soft); }
.ap-krop-emner button { min-height: 38px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--sd-line); background: var(--sd-card); color: var(--sd-ink); font: inherit; font-size: .85rem; font-weight: 750; cursor: pointer; }
.ap-krop-emner button[aria-pressed="true"] { background: var(--t); border-color: var(--t); color: #fff; }
.ap-krop-emner button:focus-visible { outline: 3px solid var(--t); outline-offset: 2px; }
.ap-krop-scene { position: relative; height: clamp(360px, 62vh, 620px); border-radius: 22px; overflow: hidden; isolation: isolate;
  background: radial-gradient(600px 400px at 50% 30%, color-mix(in srgb, var(--t) 30%, transparent), transparent 70%), linear-gradient(170deg, #12284a, #081527); }
.ap-krop-host { position: absolute; inset: 0; touch-action: none; cursor: grab; }
.ap-krop-host:active { cursor: grabbing; }
.ap-krop-host canvas { display: block; width: 100% !important; height: 100% !important; }
.ap-krop-plakat { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; color: #fff; }
.ap-krop-plakat b { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 850; letter-spacing: -.02em; }
.ap-krop-plakat p { max-width: 52ch; color: #cfe0f2; font-size: .95rem; line-height: 1.55; }
.ap-krop-plakat small { color: #9fb6cf; font-size: .78rem; }
.ap-krop.er-startet .ap-krop-plakat { display: none; }
.ap-krop-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 999px; background: rgba(8, 21, 39, .8); color: #fff; font-size: .88rem; font-weight: 750; }
.ap-krop-status.er-fejl { background: #7f1d1d; border-radius: 14px; max-width: 90%; text-align: center; }
.ap-krop-del { position: absolute; left: 12px; top: 12px; display: grid; gap: 2px; max-width: min(320px, 70%); padding: 10px 14px; border-radius: 14px; background: rgba(8, 21, 39, .78); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ap-krop-del small { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: #9fb6cf; }
.ap-krop-del span { font-size: .78rem; color: #b9cde3; }
.ap-krop-knapper { position: absolute; right: 12px; bottom: 12px; display: none; gap: 6px; }
.ap-krop.er-aktiv .ap-krop-knapper { display: flex; }
.ap-krop-knapper button { min-width: 42px; min-height: 42px; padding: 6px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(8, 21, 39, .7); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.ap-krop-knapper button:focus-visible { outline: 3px solid #2ee6c8; }
.ap-krop-info { padding: 12px 14px; border-radius: 16px; border: 1px solid var(--sd-line); border-left: 5px solid var(--t); background: var(--sd-card); color: var(--sd-ink); }
.ap-krop-info b { margin-right: 12px; }
.ap-krop-info p { margin-top: 6px; font-size: .9rem; line-height: 1.55; color: var(--sd-soft); }
.ap-krop-prik { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 50%; vertical-align: -1px; }
.ap-krop-link { display: inline-block; margin-top: 8px; font-weight: 800; color: var(--t); }
.ap-krop-tip { font-size: .78rem; line-height: 1.45; color: var(--sd-soft); }

.ap-syg-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.ap-syg-top > .section { margin-top: 0; }
.ap-syg-top .ap-krop-scene { height: clamp(340px, 52vh, 520px); }
.ap-tjekliste { list-style: none; display: grid; gap: 6px; padding: 0; }
.ap-tjekliste li { position: relative; padding: 8px 12px 8px 34px; border-radius: 12px; background: color-mix(in srgb, #0e9d87 7%, transparent); font-size: .9rem; line-height: 1.45; color: var(--sd-ink); }
.ap-tjekliste li::before { content: ""; position: absolute; left: 13px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: #0e9d87; }
.ap-modeller { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 8px; }
.ap-model { display: grid; border-radius: 16px; overflow: hidden; border: 1px solid var(--sd-line); background: var(--sd-card); color: var(--sd-ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.ap-model:hover { transform: translateY(-2px); box-shadow: var(--sd-shadow); }
.ap-model img { width: 100%; height: 110px; object-fit: cover; background: #0b1b30; }
.ap-model span { padding: 8px 12px 10px; font-size: .85rem; font-weight: 800; line-height: 1.35; }
.ap-opg-liste { list-style: none; counter-reset: opg; display: grid; gap: 10px; padding: 0; }
.ap-opg-liste li { counter-increment: opg; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; padding: 14px 16px 14px 54px; position: relative; border-radius: 16px; border: 1px solid var(--sd-line); background: var(--sd-card); }
.ap-opg-liste li::before { content: counter(opg); position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #be123c; color: #fff; font-weight: 850; font-size: .85rem; }
.ap-opg-liste p { font-size: .95rem; line-height: 1.5; font-weight: 650; color: var(--sd-ink); }
.ap-opg-liste .ap-knap { min-height: 40px; padding: 8px 14px; font-size: .86rem; white-space: nowrap; }
.ap-kom { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, #2563eb 6%, transparent); font-size: .93rem; line-height: 1.55; color: var(--sd-ink); }
@media (max-width: 900px) {
  .ap-syg-top { grid-template-columns: minmax(0, 1fr); }
  .ap-opg-liste li { grid-template-columns: minmax(0, 1fr); }
  .ap-opg-liste .ap-knap { justify-self: start; }
}
@media (max-width: 600px) {
  .ap-krop-scene, .ap-syg-top .ap-krop-scene { height: 380px; }
  .ap-syger { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-color-scheme: dark) {
  .ap-tjekliste li { background: rgba(46, 230, 200, .08); }
  .ap-kom { background: rgba(96, 165, 250, .1); }
}
@media print { .ap-krop, .ap-modeller, .ap-opg-liste .ap-knap { display: none !important; } }
.ap-undernav { scrollbar-width: none; }
.ap-undernav::-webkit-scrollbar { display: none; }
