/* ════════════════════════════════════════════════════════════
   laering-assets.css  –  Kursus → Modul → Lektion
════════════════════════════════════════════════════════════ */

#laering-oversigt {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    font-family: inherit;
}

/* Hero */
.lo-hero { margin-bottom: 2.5rem; }
.lo-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    margin-bottom: .5rem;
    line-height: 1.2;
}

/* Ingen adgang */
.lo-tom { color: #888; font-style: italic; }

/* ── Kursus-kort ─────────────────────────────────────────── */
.lo-kurser { display: flex; flex-direction: column; gap: 1.5rem; }

.lo-kursus {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e4e4e4;
    overflow: hidden;
    transition: box-shadow .2s;
}
.lo-kursus:hover { box-shadow: 0 4px 18px rgba(0,0,0,.07); }

.lo-kursus-billede {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.lo-kursus-header {
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}
.lo-kursus-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 .4rem;
}
.lo-beskrivelse {
    color: #555;
    font-size: .9rem;
    margin: 0 0 1rem;
    line-height: 1.5;
}

/* Progress */
.lo-progress-wrap {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.lo-progress-bar {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 99px;
    overflow: hidden;
}
.lo-progress-fill {
    height: 100%;
    width: 0%;
    background: #2ecc71;
    border-radius: 99px;
    transition: width .4s ease;
}
.lo-progress-text { font-size: .8rem; color: #666; white-space: nowrap; }

/* ── Moduler ─────────────────────────────────────────────── */
.lo-moduler { padding: .5rem 0; }

.lo-modul {
    border-bottom: 1px solid #f3f3f3;
}
.lo-modul:last-child { border-bottom: none; }

.lo-modul.lo-laast { opacity: .55; }

.lo-modul-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.5rem;
}

.lo-modul-titel-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}

.lo-modul-nr {
    background: #eef4ff;
    color: #2271b1;
    font-size: .72rem;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lo-modul-titel-wrap h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.lo-laas-badge {
    font-size: .8rem;
    color: #aaa;
}

.lo-lektion-count {
    font-size: .75rem;
    color: #999;
    background: #f5f5f5;
    padding: .15rem .5rem;
    border-radius: 99px;
}

/* Toggle-knap */
.lo-toggle-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: .35rem .75rem;
    font-size: .8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .3rem;
    color: #444;
    flex-shrink: 0;
    transition: background .15s;
}
.lo-toggle-btn:hover { background: #f5f5f5; }
.lo-toggle-ikon { transition: transform .2s; display: inline-block; }
.lo-toggle-btn[aria-expanded="true"] .lo-toggle-ikon { transform: rotate(180deg); }

/* ── Lektioner ───────────────────────────────────────────── */
.lo-lektioner {
    list-style: none;
    margin: 0;
    padding: 0 0 .5rem;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}
.lo-lektioner[hidden] { display: none; }

.lo-lektion {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1.5rem .65rem 3rem;
    border-bottom: 1px solid #f3f3f3;
    transition: background .15s;
}
.lo-lektion:last-child { border-bottom: none; }
.lo-lektion:hover { background: #f2f7ff; }

.lo-lektion.lo-fuldfoedt .lo-lektion-link {
    text-decoration: line-through;
    color: #bbb;
}
.lo-lektion.lo-fuldfoedt .lo-check-ikon { color: #2ecc71; }

.lo-check-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    width: 26px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
}
.lo-check-ikon { color: #ccc; transition: color .2s, transform .2s; display: inline-block; }
.lo-check-btn:hover .lo-check-ikon { color: #2ecc71; transform: scale(1.2); }

.lo-lektion-link {
    text-decoration: none;
    color: #222;
    font-size: .88rem;
    line-height: 1.4;
}
.lo-lektion-link:hover { color: #0066cc; }
.lo-lektion-nr { color: #bbb; font-size: .78rem; margin-right: .2rem; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .lo-lektion { padding-left: 1rem; }
    .lo-modul-header { padding-left: 1rem; padding-right: 1rem; }
    .lo-kursus-header { padding-left: 1rem; padding-right: 1rem; }
}


/* ════════════════════════════════════════════════════════════
   single-kursus.php + single-modul.php
   Stil matcher lektions-siden: beige baggrund, metro-numre,
   skarpe kanter, Manrope, ingen kort/skygger.
════════════════════════════════════════════════════════════ */

#laering-single-kursus,
#laering-single-modul {
    padding-bottom: 5rem;
}

/* ── Type-label (KURSUS / MODUL) ─────────────────────────── */
.lsk-type-label {
    font-family: 'Manrope', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--medium-gray);
    margin: 0 0 .4rem;
}

/* ── Hero med billede ────────────────────────────────────── */
.lsk-hero-billede {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}
.lsk-hero-overlay {
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 100%);
    padding: 2rem 0;
}
.lsk-hero-indhold {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}
.lsk-hero-overlay h1,
.lsk-hero-overlay .lsk-type-label,
.lsk-hero-overlay .lsk-excerpt { color: #fff; }
.lsk-hero-overlay .lsk-type-label { opacity: .85; }

/* ── Hero uden billede ───────────────────────────────────── */
.lsk-hero-tekst {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 20px .5rem;
}

.lsk-hero h1 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700 !important;
    margin: 0 0 .5rem;
    line-height: 1.2;
}
.lsk-excerpt {
    color: var(--dark-gray);
    font-size: 1rem;
    font-weight: 300;
    margin: .4rem 0 0;
    line-height: 1.55;
}

/* ── Indholdsområde ──────────────────────────────────────── */
.lsk-indhold {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 20px 0;
}

.lsk-beskrivelse {
    margin-bottom: 2rem;
    line-height: 1.8;
    font-weight: 300;
}
.lsk-beskrivelse p { font-weight: 300; line-height: 1.8; }

/* ── Progress-bar ────────────────────────────────────────── */
.lsk-progress-wrap {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1rem 0 2rem;
}
.lsk-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--secondary-background);
    overflow: hidden;
}
.lsk-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    transition: width .4s ease;
}
.lsk-progress-text {
    font-size: .8rem;
    color: var(--medium-gray);
    white-space: nowrap;
    font-weight: 600;
}

@media (min-width: 768px) {
    .lsk-hero-indhold,
    .lsk-hero-tekst,
    .lsk-indhold { padding-left: 40px; padding-right: 40px; }
}

/* ════════════════════════════════════════════════════════════
   KURSUS-SIDE: modulliste med metro-numre
════════════════════════════════════════════════════════════ */

.lsk-moduler h2,
.lsm-lektioner-wrap h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
}

.lsk-modul {
    position: relative;
    margin-bottom: 0;
}

.lsk-modul-header {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: start;
    gap: 0;
    padding: 1.25rem 0;
}

/* Metro-nummer – sort firkant */
.lsk-modul-nr {
    background-color: var(--primary-text);
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}

/* Lodret streg mellem moduler */
.lsk-modul + .lsk-modul::before {
    content: '';
    position: absolute;
    top: -.5rem;
    left: 19px;
    width: 2px;
    height: .5rem;
    background: var(--primary-text);
}

.lsk-modul-meta {
    display: contents;
}

.lsk-modul-meta > div {
    grid-column: 2;
    padding-top: .15rem;
}

.lsk-modul-meta h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 .25rem;
    line-height: 1.3;
}
.lsk-modul-meta h3 a {
    text-decoration: none;
    color: var(--primary-text);
}
.lsk-modul-meta h3 a:hover { color: var(--accent-color); }

.lsk-modul-excerpt {
    font-size: .9rem;
    color: var(--dark-gray);
    margin: 0;
    line-height: 1.5;
    font-weight: 300;
}

.lsk-modul-info {
    grid-column: 3;
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-shrink: 0;
    padding-top: .35rem;
}

.lsk-lektion-count {
    font-size: .75rem;
    color: var(--medium-gray);
    white-space: nowrap;
    font-weight: 600;
}

/* Lektionsliste inde i modul (foldet ud) */
.lsk-lektion-liste {
    list-style: none;
    margin: 0 0 0 56px;
    padding: 0 0 1rem;
    border-left: 2px solid var(--secondary-background);
}
.lsk-lektion-liste[hidden] { display: none; }

/* ── Toggle-knap (genbrugt fra oversigt) ─────────────────── */
.lsk-modul .lo-toggle-btn,
.lsm-indhold .lo-toggle-btn {
    background: none;
    border: 1px solid var(--primary-text);
    padding: .35rem .75rem;
    font-family: 'Manrope', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .3rem;
    color: var(--primary-text);
    border-radius: 0;
    transition: background .15s, color .15s;
}
.lsk-modul .lo-toggle-btn:hover {
    background: var(--primary-text);
    color: #fff;
}
.lo-toggle-ikon { transition: transform .2s; display: inline-block; }
.lo-toggle-btn[aria-expanded="true"] .lo-toggle-ikon { transform: rotate(180deg); }

/* ════════════════════════════════════════════════════════════
   MODUL-SIDE
════════════════════════════════════════════════════════════ */

.lsm-top {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 20px .5rem;
}

.lsm-breadcrumb {
    margin-bottom: 1rem;
}
.lsm-breadcrumb a {
    font-family: 'Manrope', sans-serif;
    font-size: .8rem;
    color: var(--medium-gray);
    text-decoration: none;
    font-weight: 600;
}
.lsm-breadcrumb a:hover { color: var(--accent-color); }

.lsm-hero { margin-bottom: 1rem; }
.lsm-hero h1 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    font-weight: 700 !important;
    margin: 0 0 .4rem;
    line-height: 1.2;
}

.lsm-indhold {
    max-width: 800px;
    margin: 0 auto;
    padding: .5rem 20px 0;
}

/* Lektionsliste med metro-numre */
.lsm-lektioner {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lsm-lektion-item {
    display: grid !important;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 0;
    padding: 0 !important;
    position: relative;
    background: none !important;
    border: none !important;
    min-height: 56px;
}

/* Lodret streg mellem lektioner */
.lsm-lektion-item + .lsm-lektion-item::before {
    content: '';
    position: absolute;
    top: -.5rem;
    left: 19px;
    width: 2px;
    height: .5rem;
    background: var(--secondary-background);
}

/* Check-knap bliver til metro-firkant */
.lsm-lektion-item .lo-check-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    grid-column: 1;
}

.lsm-lektion-item .lo-check-ikon {
    background-color: var(--primary-text);
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    transition: background .2s;
}
.lsm-lektion-item.lo-fuldfoedt .lo-check-ikon {
    background-color: #2ecc71;
}
.lsm-lektion-item .lo-check-btn:hover .lo-check-ikon {
    background-color: var(--accent-color);
    color: var(--primary-text);
}

.lsm-lektion-item .lo-lektion-link {
    grid-column: 2;
    text-decoration: none;
    color: var(--primary-text);
    font-family: 'Manrope', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.4;
    padding-left: 1rem;
}
.lsm-lektion-item .lo-lektion-link:hover { color: var(--accent-color); }
.lsm-lektion-item.lo-fuldfoedt .lo-lektion-link {
    color: var(--medium-gray);
}
.lsm-lektion-item .lo-lektion-nr { display: none; }

@media (min-width: 768px) {
    .lsm-top,
    .lsm-indhold { padding-left: 40px; padding-right: 40px; }
}



/* ════════════════════════════════════════════════════════════
   single-lektion.php  –  lektionsblokke
════════════════════════════════════════════════════════════ */

#laering-single-lektion {
    padding-bottom: 5rem;
}

/* ── Brødkrumme ──────────────────────────────────────────── */
.ll-breadcrumb {
    max-width: 800px;
    margin: 0 auto;
    padding: .85rem 20px;
    font-size: .8rem;
    color: var(--medium-gray);
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}
.ll-breadcrumb a {
    color: var(--medium-gray);
    text-decoration: none;
}
.ll-breadcrumb a:hover { color: var(--accent-color); }
.ll-bc-sep { color: var(--medium-gray); opacity: .5; }

@media (min-width: 768px) {
    .ll-breadcrumb { padding-left: 40px; padding-right: 40px; }
}

/* ── Lektion-header ──────────────────────────────────────── */
.ll-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 20px .5rem;
}
.ll-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700 !important;
    margin: 0;
    padding-bottom: .75rem;
}

@media (min-width: 768px) {
    .ll-header { padding-left: 40px; padding-right: 40px; }
}

/* ── Blokke ──────────────────────────────────────────────── */
.ll-blokke {
    display: flex;
    flex-direction: column;
}

.ll-blok {
    position: relative;
}

/* Blok-nummer – skjult */
.ll-blok-nr {
    display: none;
}

/* Indholdskolonne */
.ll-blok-indhold {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 20px;
    min-width: 0;
}

@media (min-width: 768px) {
    .ll-blok-indhold { padding-left: 40px; padding-right: 40px; }
}

.ll-blok-titel {
    font-size: 1.25rem;
    font-weight: 700 !important;
    margin: 0 0 1rem;
    padding-bottom: 0;
}

/* Tekst */
.ll-tekst { line-height: 1.8; }
.ll-tekst p { font-weight: 300; margin-bottom: 1rem; }
.ll-tekst h2 { font-size: 1.2rem; margin-top: 1.5rem; }
.ll-tekst h3 { font-size: 1.05rem; margin-top: 1.25rem; }
.ll-tekst img { max-width: 100%; height: auto; display: block; margin: 1rem 0; }
.ll-tekst a { color: var(--accent-color); }

/* ── Video ───────────────────────────────────────────────── */
.ll-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: var(--primary-text);
}
.ll-video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Kopi-boks ───────────────────────────────────────────── */
.ll-kopi-beskrivelse {
    font-size: .9rem;
    color: var(--dark-gray);
    margin: 0 0 .75rem;
    font-weight: 300;
}

.ll-kopi-boks {
    position: relative;
    background: var(--secondary-background);
    border-left: 3px solid var(--accent-color);
}

.ll-kopi-tekst {
    margin: 0;
    padding: 1.25rem 3.5rem 1.25rem 1.25rem;
    font-family: 'Manrope', monospace;
    font-size: .88rem;
    font-weight: 300;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--primary-text);
}

.ll-kopi-knap {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: var(--primary-text);
    color: #f9f9f9;
    border: none;
    padding: 5px 12px;
    font-size: .75rem;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: background .2s;
    margin: 0;
}
.ll-kopi-knap:hover,
.ll-kopi-knap.kopieret {
    background: var(--accent-color);
    color: var(--primary-text);
}

/* ── Quiz ────────────────────────────────────────────────── */
.ll-quiz-spgm {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.ll-quiz-svar-liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.ll-quiz-svar {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    text-align: left;
    background: var(--secondary-background);
    border: 2px solid transparent;
    color: var(--primary-text);
    padding: .75rem 1rem;
    font-family: 'Manrope', sans-serif;
    font-size: .95rem;
    font-weight: 300;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    margin: 0;
    border-radius: 0;
}
.ll-quiz-svar:hover:not(:disabled) {
    border-color: var(--primary-text);
    background: var(--primary-background);
}
.ll-quiz-svar:disabled { cursor: default; }

.ll-quiz-svar.korrekt {
    border-color: #2ecc71;
    background: #edfaf3;
}
.ll-quiz-svar.forkert {
    border-color: #e74c3c;
    background: #fdf0ee;
}

.ll-quiz-svar-nr {
    font-weight: 700;
    font-size: .85rem;
    background: var(--primary-text);
    color: #f9f9f9;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s;
}
.ll-quiz-svar.korrekt .ll-quiz-svar-nr { background: #2ecc71; color: #fff; }
.ll-quiz-svar.forkert .ll-quiz-svar-nr { background: #e74c3c; color: #fff; }

.ll-quiz-feedback {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: var(--secondary-background);
    border-left: 3px solid var(--primary-text);
}
.ll-quiz-feedback[hidden] { display: none; }
.ll-quiz-feedback-tekst {
    font-weight: 700;
    display: block;
    margin-bottom: .35rem;
}
.ll-quiz-feedback.korrekt { border-color: #2ecc71; }
.ll-quiz-feedback.forkert { border-color: #e74c3c; }
.ll-quiz-forklaring {
    font-size: .9rem;
    font-weight: 300;
    color: var(--dark-gray);
    margin: 0;
    line-height: 1.6;
}

/* ── Navigation forrige/næste ────────────────────────────── */
.ll-nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1rem;
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 1.5rem 20px 0;
    border-top: 1px solid rgba(0,0,0,.1);
}

@media (min-width: 768px) {
    .ll-nav { padding-left: 40px; padding-right: 40px; }
}

.ll-nav-forrige,
.ll-nav-naeste { flex: 1; }
.ll-nav-naeste { text-align: right; }

.ll-nav-link {
    display: inline-flex;
    flex-direction: column;
    gap: .2rem;
    text-decoration: none;
    color: var(--primary-text);
    padding: .75rem 0;
}
.ll-nav-link:hover { color: var(--accent-color); }
.ll-nav-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--medium-gray);
    display: flex;
    align-items: center;
    gap: .3rem;
}
.ll-nav-naeste .ll-nav-label { justify-content: flex-end; }
.ll-nav-titel {
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.4;
}
