/* =============================================================================
   PFDK-side – moderne stil i tråd med måloversikten og ressurser
   ========================================================================== */

.pfdk-layout {
    padding: 2rem 0 4rem 0;
    background-color: transparent;
}

.pfdk-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =============================================================================
   Page header
   ========================================================================== */

.pfdk-page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pfdk-page-title {
    color: var(--secondary-color);
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 700;
    margin: 0.5rem 0 1rem 0;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0a5ad6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.pfdk-intro-text {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 auto;
    text-align: center;
    max-width: 900px;
}

/* =============================================================================
   Sidebar layout
   ========================================================================== */

.pfdk-sidebar-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.pfdk-sidebar {
    position: sticky;
    top: 110px;
    height: fit-content;
}

.pfdk-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 38, 84, 0.06);
    position: relative;
}

.pfdk-sidebar-nav .sidebar-tab-btn {
    position: relative;
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem 0.85rem 2.85rem;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: inherit;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-height: auto;
}

.pfdk-sidebar-nav .sidebar-tab-btn::before {
    content: '';
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--white);
    border: 2.5px solid rgba(15, 38, 84, 0.18);
    transition: var(--transition);
    z-index: 1;
}

.pfdk-sidebar-nav .sidebar-tab-btn[data-teori="pfdk"]::before { border-color: var(--primary-color); }
.pfdk-sidebar-nav .sidebar-tab-btn[data-teori="tpack"]::before { border-color: #4d94ff; }
.pfdk-sidebar-nav .sidebar-tab-btn[data-teori="samr"]::before { border-color: var(--accent-green); }
.pfdk-sidebar-nav .sidebar-tab-btn[data-teori="bloom"]::before { border-color: #ffc107; }
.pfdk-sidebar-nav .sidebar-tab-btn[data-teori="digcompedu"]::before { border-color: var(--accent-purple); }

.pfdk-sidebar-nav .sidebar-tab-btn:hover {
    background: rgba(26, 117, 255, 0.04);
    color: var(--primary-color);
    border-color: rgba(26, 117, 255, 0.18);
    transform: none;
}

.pfdk-sidebar-nav .sidebar-tab-btn:hover::before {
    transform: translateY(-50%) scale(1.15);
}

.pfdk-sidebar-nav .sidebar-tab-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.pfdk-sidebar-nav .sidebar-tab-btn.active {
    background: rgba(26, 117, 255, 0.06);
    color: var(--primary-color);
    border-color: rgba(26, 117, 255, 0.25);
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

.pfdk-sidebar-nav .sidebar-tab-btn[data-teori="pfdk"].active {
    background: rgba(26, 117, 255, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.pfdk-sidebar-nav .sidebar-tab-btn[data-teori="pfdk"].active::before {
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 117, 255, 0.18);
}

.pfdk-sidebar-nav .sidebar-tab-btn[data-teori="tpack"].active {
    background: rgba(77, 148, 255, 0.08);
    border-color: #4d94ff;
    color: #2762b8;
}
.pfdk-sidebar-nav .sidebar-tab-btn[data-teori="tpack"].active::before {
    background: #4d94ff;
    box-shadow: 0 0 0 4px rgba(77, 148, 255, 0.2);
}

.pfdk-sidebar-nav .sidebar-tab-btn[data-teori="samr"].active {
    background: rgba(76, 175, 80, 0.08);
    border-color: var(--accent-green);
    color: #2e7d32;
}
.pfdk-sidebar-nav .sidebar-tab-btn[data-teori="samr"].active::before {
    background: var(--accent-green);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.2);
}

.pfdk-sidebar-nav .sidebar-tab-btn[data-teori="bloom"].active {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #b8860b;
}
.pfdk-sidebar-nav .sidebar-tab-btn[data-teori="bloom"].active::before {
    background: #ffc107;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.25);
}

.pfdk-sidebar-nav .sidebar-tab-btn[data-teori="digcompedu"].active {
    background: rgba(156, 39, 176, 0.08);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}
.pfdk-sidebar-nav .sidebar-tab-btn[data-teori="digcompedu"].active::before {
    background: var(--accent-purple);
    box-shadow: 0 0 0 4px rgba(156, 39, 176, 0.2);
}

.sidebar-tab-name {
    font-size: 0.95rem;
    font-weight: inherit;
    color: inherit;
    line-height: 1.3;
}

.sidebar-tab-fullt {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.3;
}

.pfdk-sidebar-nav .sidebar-tab-btn.active .sidebar-tab-fullt {
    color: inherit;
    opacity: 0.75;
}

/* =============================================================================
   Main content
   ========================================================================== */

.pfdk-main-content {
    min-width: 0;
}

.tab-pane[hidden] {
    display: none !important;
}

.pfdk-main-content .tab-pane {
    display: block;
    animation: pfdkPaneFade 0.35s ease-out;
}

@keyframes pfdkPaneFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================================================
   Teori-blokk (felles innhold-stil for alle teorier)
   ========================================================================== */

.teori-innhold {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 38, 84, 0.06);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.teori-innhold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
}

.tab-pane[data-teori="pfdk"] .teori-innhold::before,
.tab-pane[data-teori="pfdk"] .pfdk-intro-container::before { background: var(--primary-color); }
.tab-pane[data-teori="tpack"] .teori-innhold::before { background: #4d94ff; }
.tab-pane[data-teori="samr"] .teori-innhold::before { background: var(--accent-green); }
.tab-pane[data-teori="bloom"] .teori-innhold::before { background: #ffc107; }
.tab-pane[data-teori="digcompedu"] .teori-innhold::before { background: var(--accent-purple); }

/* Teori-header */

.teori-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(15, 38, 84, 0.06);
}

.teori-header .teori-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(26, 117, 255, 0.08);
    color: var(--primary-color);
    margin-bottom: 0.85rem;
}

.tab-pane[data-teori="tpack"] .teori-header .teori-eyebrow { background: rgba(77, 148, 255, 0.1); color: #2762b8; }
.tab-pane[data-teori="samr"] .teori-header .teori-eyebrow { background: rgba(76, 175, 80, 0.1); color: #2e7d32; }
.tab-pane[data-teori="bloom"] .teori-header .teori-eyebrow { background: rgba(255, 193, 7, 0.18); color: #8a6500; }
.tab-pane[data-teori="digcompedu"] .teori-header .teori-eyebrow { background: rgba(156, 39, 176, 0.1); color: var(--accent-purple); }

.teori-header h2 {
    color: var(--secondary-color);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin: 0 0 0.4rem 0;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.teori-header .fullt-navn {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 400;
    margin: 0;
    font-style: italic;
}

/* Betydning-boks */

.betydning-boks {
    background: linear-gradient(135deg, rgba(26, 117, 255, 0.04) 0%, rgba(26, 117, 255, 0.01) 100%);
    border: 1px solid rgba(26, 117, 255, 0.12);
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.tab-pane[data-teori="tpack"] .betydning-boks { border-left-color: #4d94ff; background: linear-gradient(135deg, rgba(77, 148, 255, 0.05) 0%, rgba(77, 148, 255, 0.01) 100%); border-color: rgba(77, 148, 255, 0.15); }
.tab-pane[data-teori="samr"] .betydning-boks { border-left-color: var(--accent-green); background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(76, 175, 80, 0.01) 100%); border-color: rgba(76, 175, 80, 0.15); }
.tab-pane[data-teori="bloom"] .betydning-boks { border-left-color: #ffc107; background: linear-gradient(135deg, rgba(255, 193, 7, 0.06) 0%, rgba(255, 193, 7, 0.01) 100%); border-color: rgba(255, 193, 7, 0.2); }
.tab-pane[data-teori="digcompedu"] .betydning-boks { border-left-color: var(--accent-purple); background: linear-gradient(135deg, rgba(156, 39, 176, 0.05) 0%, rgba(156, 39, 176, 0.01) 100%); border-color: rgba(156, 39, 176, 0.15); }

.betydning-boks h4 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.betydning-boks h4::before {
    content: '✦';
    font-size: 0.85rem;
}

.tab-pane[data-teori="tpack"] .betydning-boks h4 { color: #2762b8; }
.tab-pane[data-teori="samr"] .betydning-boks h4 { color: #2e7d32; }
.tab-pane[data-teori="bloom"] .betydning-boks h4 { color: #8a6500; }
.tab-pane[data-teori="digcompedu"] .betydning-boks h4 { color: var(--accent-purple); }

.betydning-boks p {
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
}

/* Teori-seksjon */

.teori-seksjon {
    margin-bottom: 2.5rem;
}

.teori-seksjon:last-child {
    margin-bottom: 0;
}

.teori-seksjon h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
    letter-spacing: -0.005em;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0;
    border: none;
}

.teori-seksjon h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.1em;
    background: var(--primary-color);
    border-radius: 2px;
    flex-shrink: 0;
}

.tab-pane[data-teori="tpack"] .teori-seksjon h3::before { background: #4d94ff; }
.tab-pane[data-teori="samr"] .teori-seksjon h3::before { background: var(--accent-green); }
.tab-pane[data-teori="bloom"] .teori-seksjon h3::before { background: #ffc107; }
.tab-pane[data-teori="digcompedu"] .teori-seksjon h3::before { background: var(--accent-purple); }

.teori-seksjon p {
    color: var(--text-color);
    line-height: 1.75;
    margin: 0 0 1rem 0;
}

.teori-seksjon ul {
    margin: 0 0 1.25rem 0;
    padding: 0 0 0 1.25rem;
}

.teori-seksjon li {
    color: var(--text-color);
    line-height: 1.75;
    margin-bottom: 0.85rem;
}

.teori-seksjon li:last-child {
    margin-bottom: 0;
}

/* Teori-bilde */

.teori-bilde {
    text-align: center;
    margin: 2rem 0;
}

.teori-bilde img {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lift);
    border: 1px solid rgba(15, 38, 84, 0.06);
}

.bilde-tekst {
    margin-top: 0.85rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Eksempel-boks */

.eksempel-boks-wrapper {
    display: flex;
    align-items: flex-start;
    margin: 1rem 0 1.25rem 0;
    gap: 0.85rem;
}

.eksempel-ikon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    margin-top: 0.25rem;
    filter: drop-shadow(0 4px 8px rgba(255, 193, 7, 0.35));
}

.eksempel-boks {
    background: linear-gradient(135deg, rgba(26, 117, 255, 0.04) 0%, rgba(26, 117, 255, 0.01) 100%);
    border: 1px solid rgba(26, 117, 255, 0.12);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-color);
    flex: 1;
    margin: 0;
}

.eksempel-boks::before {
    content: 'Eksempel';
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.eksempel-boks p {
    margin: 0 0 0.65rem 0;
}

.eksempel-boks p:last-child {
    margin-bottom: 0;
}

.tab-pane[data-teori="tpack"] .eksempel-boks { border-left-color: #4d94ff; background: linear-gradient(135deg, rgba(77, 148, 255, 0.04) 0%, rgba(77, 148, 255, 0.01) 100%); border-color: rgba(77, 148, 255, 0.15); }
.tab-pane[data-teori="tpack"] .eksempel-boks::before { color: #2762b8; }
.tab-pane[data-teori="samr"] .eksempel-boks { border-left-color: var(--accent-green); background: linear-gradient(135deg, rgba(76, 175, 80, 0.04) 0%, rgba(76, 175, 80, 0.01) 100%); border-color: rgba(76, 175, 80, 0.15); }
.tab-pane[data-teori="samr"] .eksempel-boks::before { color: #2e7d32; }
.tab-pane[data-teori="bloom"] .eksempel-boks { border-left-color: #ffc107; background: linear-gradient(135deg, rgba(255, 193, 7, 0.06) 0%, rgba(255, 193, 7, 0.01) 100%); border-color: rgba(255, 193, 7, 0.2); }
.tab-pane[data-teori="bloom"] .eksempel-boks::before { color: #8a6500; }
.tab-pane[data-teori="digcompedu"] .eksempel-boks { border-left-color: var(--accent-purple); background: linear-gradient(135deg, rgba(156, 39, 176, 0.04) 0%, rgba(156, 39, 176, 0.01) 100%); border-color: rgba(156, 39, 176, 0.15); }
.tab-pane[data-teori="digcompedu"] .eksempel-boks::before { color: var(--accent-purple); }

/* DigCompEdu-grid */

.digcompedu-omrader {
    list-style: none !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.digcompedu-omrader li {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.04) 0%, rgba(156, 39, 176, 0.01) 100%);
    border: 1px solid rgba(156, 39, 176, 0.18);
    border-left: 4px solid var(--accent-purple);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin: 0;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.digcompedu-omrader li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
    border-color: var(--accent-purple);
}

.digcompedu-omrader li b {
    color: var(--accent-purple);
    font-size: 1rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.digcompedu-omrader li p {
    margin: 0 0 0.6rem 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

.digcompedu-omrader li p:last-child {
    margin-bottom: 0;
}

/* Vær bevisst-boks */

.vaer-bevisst-boks {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.06) 0%, rgba(255, 193, 7, 0.01) 100%);
    border: 1px solid rgba(255, 193, 7, 0.25);
    border-left: 4px solid #ffc107;
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
}

.vaer-bevisst-boks h4 {
    color: #8a6500;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vaer-bevisst-boks h4::before {
    content: '⚠';
    font-size: 1rem;
}

.vaer-bevisst-boks h5 {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.6rem 0;
}

.vaer-bevisst-innhold {
    color: var(--text-color);
    line-height: 1.7;
}

.vaer-bevisst-innhold p {
    margin: 0 0 0.85rem 0;
}

.vaer-bevisst-innhold p:last-child {
    margin: 0;
}

/* Refleksjonsoppgaver */

.refleksjonsoppgaver-placeholder {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.04) 0%, rgba(255, 193, 7, 0.01) 100%);
    border: 1px dashed rgba(255, 193, 7, 0.4);
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
}

.refleksjonsoppgaver-placeholder p {
    margin: 0;
    color: var(--text-muted);
    font-style: italic;
}

/* Kilder */

.kilder-seksjon {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(15, 38, 84, 0.08);
}

.kilder-seksjon h4 {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.85rem 0;
}

.kilder-liste {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kilder-liste li {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-style: italic;
    padding-left: 1.25rem;
    position: relative;
}

.kilder-liste li::before {
    content: '•';
    position: absolute;
    left: 0.25rem;
    color: var(--primary-color);
    font-style: normal;
}

.kilder-liste a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    word-break: break-word;
}

.kilder-liste a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Ressurser-seksjon */

.ressurser-seksjon {
    background: var(--page-bg);
    border: 1px solid rgba(15, 38, 84, 0.06);
    border-radius: var(--border-radius);
    padding: 1.5rem 1.75rem;
    margin-top: 2rem;
}

.ressurser-seksjon h4 {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.85rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ressurser-seksjon ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.ressurser-seksjon li {
    margin: 0;
}

.ressurser-seksjon a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.ressurser-seksjon a::before {
    content: '↗';
    font-size: 0.9rem;
    color: var(--primary-color);
    opacity: 0.6;
}

.ressurser-seksjon a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Video */

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lift);
    background: #000;
    margin: 1.5rem 0 2rem 0;
}

.video-container iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* =============================================================================
   PFDK-intro (egen layout for "Introduksjon"-fanen)
   ========================================================================== */

.pfdk-intro-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 38, 84, 0.06);
    position: relative;
    overflow: hidden;
}

.pfdk-intro-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
}

.pfdk-intro-content {
    color: var(--text-color);
    line-height: 1.75;
    font-size: 1rem;
}

.pfdk-intro-content > p {
    margin: 0 0 1rem 0;
}

.pfdk-intro-content > p:last-child {
    margin: 0;
}

.pfdk-intro-content p.kort-sagt {
    margin: 1.5rem 0 0 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(26, 117, 255, 0.05) 0%, rgba(26, 117, 255, 0.01) 100%);
    border: 1px solid rgba(26, 117, 255, 0.18);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    color: var(--secondary-color);
    font-style: italic;
    font-size: 1.02rem;
}

.pfdk-intro-bilde {
    text-align: center;
    margin: 2rem 0;
}

.pfdk-intro-bilde img {
    max-width: 700px;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lift);
    border: 1px solid rgba(15, 38, 84, 0.06);
}

/* =============================================================================
   Responsivt
   ========================================================================== */

@media (max-width: 1024px) {
    .pfdk-sidebar-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .pfdk-sidebar {
        position: static;
    }

    .pfdk-sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .pfdk-sidebar-nav .sidebar-tab-btn {
        flex: 1 1 auto;
        min-width: 140px;
        padding: 0.75rem 0.85rem 0.75rem 2.4rem;
        text-align: left;
    }

    .pfdk-sidebar-nav .sidebar-tab-btn::before {
        left: 0.7rem;
    }

    .sidebar-tab-fullt {
        display: none;
    }
}

@media (max-width: 768px) {
    .pfdk-container {
        padding: 0 1rem;
    }

    .teori-innhold,
    .pfdk-intro-container {
        padding: 1.5rem 1.25rem;
    }

    .teori-header h2 {
        font-size: 1.4rem;
    }

    .teori-header .fullt-navn {
        font-size: 0.95rem;
    }

    .teori-seksjon h3 {
        font-size: 1.15rem;
    }

    .digcompedu-omrader {
        grid-template-columns: 1fr;
    }

    .eksempel-boks-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }

    .eksempel-ikon {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .pfdk-page-title {
        font-size: 1.4rem;
    }

    .pfdk-intro-text {
        font-size: 0.92rem;
    }

    .pfdk-sidebar-nav .sidebar-tab-btn {
        flex: 1 1 100%;
    }

    .teori-innhold,
    .pfdk-intro-container {
        padding: 1.25rem 1rem;
    }
}

/* =============================================================================
   Sidebar: skillelinje og «I praksis»-knapp
   ========================================================================== */

.sidebar-divider {
    height: 1px;
    background: var(--border-color, #e2e8f0);
    margin: 0.75rem 0.5rem;
    opacity: 0.7;
}

.sidebar-tab-btn--praksis {
    background: linear-gradient(135deg, #f0f4ff 0%, #eef9f4 100%);
    border-left: 3px solid var(--primary-color, #2563eb) !important;
}

.sidebar-tab-btn--praksis.active,
.sidebar-tab-btn--praksis:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #d1fae5 100%);
}

/* =============================================================================
   I praksis – innholdsstiler
   ========================================================================== */

.i-praksis-spørsmål-liste {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.i-praksis-spørsmål {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--primary-color, #2563eb);
}

.i-praksis-modell-etikett {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--primary-color, #2563eb);
    background: #eff6ff;
    padding: 0.2em 0.7em;
    border-radius: 99px;
    margin-bottom: 0.5rem;
}

.i-praksis-spørsmål-tekst {
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin: 0.25rem 0 0.4rem;
    font-size: 1rem;
}

.i-praksis-forklaring {
    font-size: 0.92rem;
    color: var(--text-secondary, #64748b);
    margin: 0;
}

.i-praksis-steg-liste {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.i-praksis-steg {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.i-praksis-steg-nummer {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color, #2563eb);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
    margin-top: 0.1rem;
}

.i-praksis-steg div strong {
    display: block;
    color: var(--text-primary, #1e293b);
    font-size: 0.97rem;
    margin-bottom: 0.3rem;
}

.i-praksis-steg div p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-secondary, #475569);
}

.i-praksis-eksempel-meta {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.93rem;
    color: var(--text-secondary, #475569);
}

.i-praksis-aktivitet-liste {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.i-praksis-aktivitet {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
}

.i-praksis-aktivitet-etikett {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-color, #059669);
    background: #ecfdf5;
    padding: 0.2em 0.7em;
    border-radius: 99px;
    margin-bottom: 0.5rem;
}

.i-praksis-aktivitet p {
    margin: 0;
    font-size: 0.93rem;
    color: var(--text-secondary, #475569);
}

.i-praksis-tpack-kobling {
    background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    font-size: 0.93rem;
    color: var(--text-primary, #1e293b);
}

/* =============================================================================
   Tilgjengelighet: redusert bevegelse
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .pfdk-main-content .tab-pane,
    .digcompedu-omrader li,
    .pfdk-sidebar-nav .sidebar-tab-btn {
        animation: none !important;
        transition: none !important;
    }
}

/* =============================================================================
   Skjul gamle main.css-stiler som kolliderer
   ========================================================================== */

.pfdk-layout .tabs-section,
.pfdk-layout .tabs {
    display: none;
}
