﻿/**
 * ===============================================================
 * PF_LMS.css - Learning Management System Styles
 * Version: 2.0.0
 * Beschreibung: Gruen-blaues Gradient-Design mit modernen Animationen
 * PFWS 1.4.1.3.25 konform - Eigenstaendiges LMS-Modul
 * ===============================================================
 */

/* ===============================================================
   CSS VARIABLES & THEME
   =============================================================== */
:root {
    --pf-lms-accent: #C47F3C;
    --pf-lms-support: #A7C7D9;
    --pf-lms-ink: #1E1E1E;
    --pf-lms-surface: #D9D6CF;
    --pf-lms-gradient: linear-gradient(135deg, var(--pf-lms-accent) 0%, var(--pf-lms-support) 100%);
    --pf-lms-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --pf-lms-shadow-hover: 0 8px 12px rgba(0, 0, 0, 0.15);
    --pf-lms-text-primary: #1f2937;
    --pf-lms-text-secondary: #374151;
    --pf-lms-text-muted: #4b5563;
}

/* ===============================================================
   LMS CORE LAYOUT STRUCTURE
   =============================================================== */

/* Layout Wrapper - umschliesst alles */
.pf-lms-layout-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Topnav Spacer - NUR im Standalone-Modus sichtbar */
.pf-lms-topnav-spacer {
    height: var(--pf-dashboard-topnav-height, 60px);
    margin-top: 0;
    width: 100%;
    pointer-events: none;
    flex-shrink: 0;
}

/* Container Box - absorbiert Flexbox-Effekte vom Overlay */
.pf-lms-box {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Overlay Mode - volle Hoehe */
.pf-lms-box.overlay-mode {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    --pf-overlay-shell-box-radius: 14px;
    border-radius: var(--pf-overlay-shell-box-radius, 16px);
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.pf-lms-box > .pf-lms-module {
    border-radius: inherit;
    min-height: 0;
    overflow: hidden;
}

/* Modul-Container - STICKY Header & Footer Layout */
.pf-lms-module {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
    
    /* KEINE Border hier - Content bekommt die Border! */
}

/* ===============================================================
   HEADER STYLES - Wave Animation Standard PFuisi 2024
   =============================================================== */

.pf-lms-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #C47F3C 0%, #A7C7D9 100%);
    background-size: 400% 400%;
    color: white;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none;
    position: relative;
    overflow: visible;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pf-lms-header-compact-logo {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.14) 100%);
    box-shadow: 0 6px 14px rgba(8, 17, 31, 0.25);
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
}

.pf-lms-header-compact-logo-image {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    object-fit: contain;
}

.pf-lms-tooltip-anchor {
    position: relative;
}

.pf-lms-tooltip-anchor::after {
    content: attr(data-pf-tooltip);
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%) translateY(-4px);
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.94);
    color: #f8fafc;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: normal;
    min-width: 84px;
    max-width: min(220px, calc(100vw - 24px));
    text-align: center;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 40;
}

.pf-lms-tooltip-anchor::before {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(100% + 3px);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(15, 23, 42, 0.94);
    transform: translateX(-50%) translateY(-4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 40;
}

.pf-lms-tooltip-left::after {
    left: 0;
    right: auto;
    transform: translateY(-4px);
}

.pf-lms-tooltip-left::before {
    left: 14px;
    transform: translateY(-4px);
}

.pf-lms-tooltip-right::after {
    left: auto;
    right: 0;
    transform: translateY(-4px);
}

.pf-lms-tooltip-right::before {
    left: auto;
    right: 14px;
    transform: translateY(-4px);
}

.pf-lms-tooltip-anchor:hover::after,
.pf-lms-tooltip-anchor:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.pf-lms-tooltip-anchor:hover::before,
.pf-lms-tooltip-anchor:focus-visible::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.pf-lms-tooltip-left:hover::after,
.pf-lms-tooltip-left:focus-visible::after,
.pf-lms-tooltip-right:hover::after,
.pf-lms-tooltip-right:focus-visible::after {
    transform: translateY(0);
}

.pf-lms-tooltip-left:hover::before,
.pf-lms-tooltip-left:focus-visible::before,
.pf-lms-tooltip-right:hover::before,
.pf-lms-tooltip-right:focus-visible::before {
    transform: translateY(0);
}

/* Wave Animation - Hintergrund bewegt sich */
.pf-lms-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, #C47F3C 0%, #1E1E1E 20%, #A7C7D9 40%, #1E1E1E 60%, #C47F3C 80%, #A7C7D9 100%);
    background-size: 300% 300%;
    background-position: 0% 50%;
    pointer-events: none;
    animation: pf-lms-gradient-wave 9s ease-in-out infinite;
    z-index: -1;
}

/* Shimmer Overlay - Glaseffekt-Licht */
.pf-lms-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 120% at 20% 30%, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.18) 50%, transparent 72%);
    animation: pf-lms-header-shimmer 7s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pf-lms-gradient-wave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pf-lms-header-shimmer {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

.pf-lms-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Drag-Handle (Dashboard Box Move) */
.pf-drag-handle {
    font-size: 28px;
    cursor: grab;
    transition: transform 0.3s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.pf-drag-handle:active {
    cursor: grabbing;
    transform: scale(0.95);
}

/* Info-Toggle Wrapper - MUSS ueber Drag-Handle sein! */
.pf-lms-icon-wrapper {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
    z-index: 10;
    pointer-events: auto;
}

.pf-lms-icon-wrapper:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0.16) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(125, 41, 24, 0.18);
}

.pf-lms-icon-wrapper:active {
    transform: translateY(0);
}

.pf-lms-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    cursor: pointer;
    transition: none;
    pointer-events: none;
    user-select: none;
}

.pf-lms-title-section {
    display: flex;
    flex-direction: column;
}

.pf-lms-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.05rem, 1.3vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    padding-bottom: 0.06em;
}

.pf-lms-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.86);
    opacity: 1;
    margin-top: 2px;
}

.pf-lms-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.pf-lms-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 1px 4px rgba(8, 17, 31, 0.12);
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
}

.pf-lms-user-pill {
    cursor: pointer;
    transition: background 0.22s ease, border-color 0.22s ease;
}

.pf-lms-user-pill:hover,
.pf-lms-user-pill:focus-visible {
    background: rgba(8, 17, 31, 0.42);
    border-color: rgba(255, 255, 255, 0.34);
}

.pf-lms-user-avatar {
    position: relative;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9), 0 1px 4px rgba(8, 17, 31, 0.16);
    flex-shrink: 0;
}

.pf-lms-user-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.pf-lms-user-avatar-fallback {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #08111f;
}

.pf-lms-user-name {
    font-size: 0.75rem;
    line-height: 1.1;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.pf-lms-user-license-mobile {
    display: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.18);
}

.pf-lms-btn-small {
    min-height: 34px;
    padding: 6px 10px;
    gap: 8px;
    font-size: 13px;
}

.pf-lms-btn-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 8px;
    color: rgba(255, 255, 255, 0.93);
    background: rgba(8, 17, 31, 0.28);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px) saturate(130%);
    -webkit-backdrop-filter: blur(8px) saturate(130%);
    text-decoration: none;
    line-height: 1;
    font-weight: 700;
    transition: background 0.22s ease, border-color 0.22s ease;
}

.pf-lms-btn-dashboard:hover {
    background: rgba(8, 17, 31, 0.42);
    border-color: rgba(255, 255, 255, 0.34);
}

.pf-lms-dashboard-menu.is-open .pf-lms-btn-dashboard {
    background: rgba(8, 17, 31, 0.42);
    border-color: rgba(196, 127, 60, 0.48);
    box-shadow: 0 0 0 2px rgba(196, 127, 60, 0.32), 0 4px 14px rgba(8, 17, 31, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.pf-lms-dash-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    flex-shrink: 0;
}

.pf-lms-dash-logo {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
    transform-origin: center;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.28));
    transition: transform 0.22s ease, filter 0.22s ease;
}

.pf-lms-btn-dashboard:hover .pf-lms-dash-logo {
    transform: rotate(8deg) scale(1.08);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.42));
}

.pf-lms-dash-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    line-height: 1.1;
    font-weight: 700;
}

.pf-lms-dashboard-menu {
    position: relative;
    z-index: 40;
}

.pf-lms-dashboard-submenu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 30px rgba(8, 17, 31, 0.24);
    z-index: 30;
}

.pf-lms-dashboard-submenu::before,
.pf-lms-dashboard-submenu::after {
    content: '';
    position: absolute;
    right: 18px;
    width: 0;
    height: 0;
    pointer-events: none;
}

.pf-lms-dashboard-submenu::before {
    top: -9px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 9px solid rgba(148, 163, 184, 0.34);
}

.pf-lms-dashboard-submenu::after {
    top: -8px;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 8px solid rgba(255, 255, 255, 0.98);
}

.pf-lms-dashboard-submenu[hidden] {
    display: none;
}

.pf-lms-dashboard-submenu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    color: #0f172a;
    background: transparent;
    border: 0;
    border-radius: 10px;
    padding: 9px 10px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}

.pf-lms-dashboard-submenu-item:hover,
.pf-lms-dashboard-submenu-item:focus-visible {
    background: linear-gradient(135deg, rgba(196, 127, 60, 0.16) 0%, rgba(167, 199, 217, 0.24) 100%);
    color: #6b4423;
    outline: none;
}

.pf-lms-dashboard-submenu-switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(248, 250, 252, 0.72);
    cursor: pointer;
}

.pf-lms-dashboard-submenu-switch-label {
    opacity: 1;
    color: #0f172a;
    font-weight: 700;
}

.pf-lms-dashboard-submenu-switch-ui {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pf-lms-dashboard-submenu-switch-track {
    width: 34px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.2);
    background: rgba(148, 163, 184, 0.28);
    padding: 2px;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.pf-lms-dashboard-submenu-switch-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
    transform: translateX(0);
    transition: transform 0.22s ease;
}

.pf-lms-dashboard-submenu-switch[aria-checked="true"] .pf-lms-dashboard-submenu-switch-track {
    background: rgba(16, 185, 129, 0.28);
    border-color: rgba(5, 150, 105, 0.5);
}

.pf-lms-dashboard-submenu-switch[aria-checked="true"] .pf-lms-dashboard-submenu-switch-dot {
    transform: translateX(16px);
}

.pf-lms-dashboard-submenu-switch-state {
    min-width: 30px;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    border-radius: 999px;
    padding: 2px 7px;
    color: #065f46;
    background: rgba(16, 185, 129, 0.2);
}

.pf-lms-dashboard-submenu-switch[aria-checked="false"] .pf-lms-dashboard-submenu-switch-track {
    background: rgba(244, 63, 94, 0.16);
    border-color: rgba(190, 24, 93, 0.48);
}

.pf-lms-dashboard-submenu-switch[aria-checked="false"] .pf-lms-dashboard-submenu-switch-dot {
    transform: translateX(0);
}

.pf-lms-header.no-shimmer .pf-lms-dashboard-submenu-switch-state,
.pf-lms-footer.no-shimmer .pf-lms-dashboard-submenu-switch-state {
    color: #9f1239;
    background: rgba(244, 63, 94, 0.18);
}

@keyframes pf-lms-dash-logo-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-1px) scale(1.03);
    }
}

@keyframes pf-lms-dash-logo-spin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    70% {
        transform: rotate(360deg) scale(1.16);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* ===============================================================
   BODY & FOOTER
   =============================================================== */

.pf-lms-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    background: #f5f2ed;
    min-height: 0;
    position: relative;
    scrollbar-color: #C47F3C rgba(196, 127, 60, 0.12);
    scrollbar-width: thin;
    border-left: 0;
    border-right: 0;
}

.pf-lms-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.pf-lms-body::-webkit-scrollbar {
    width: 10px;
}

.pf-lms-body::-webkit-scrollbar-track {
    background: rgba(196, 127, 60, 0.08);
    border-radius: 8px;
}

.pf-lms-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #C47F3C 0%, #A7552E 100%);
    border-radius: 6px;
    border: 2px solid rgba(196, 127, 60, 0.12);
}

.pf-lms-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #D49046 0%, #B8673A 100%);
}

.pf-lms-footer {
    background: linear-gradient(135deg, #C47F3C 0%, #A7C7D9 100%);
    background-size: 400% 400%;
    color: white;
    padding: 8px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    box-shadow: none;
    position: sticky;
    bottom: 0;
    z-index: 100;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

/* Wave Animation auch im Footer */
.pf-lms-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, #C47F3C 0%, #A7552E 45%, #A7C7D9 100%);
    background-size: 300% 300%;
    background-position: 0% 50%;
    pointer-events: none;
    z-index: -1;
    animation: pf-lms-gradient-wave 9s ease-in-out infinite;
}

/* Shimmer Overlay im Footer - opposite direction */
.pf-lms-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 140% at 78% 60%, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.10) 48%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: pf-lms-header-shimmer 7s ease-in-out infinite reverse;
}

@keyframes pf-lms-footer-shimmer {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-10px, 10px) rotate(-180deg); }
}

/* Shimmer deaktivieren */
.pf-lms-header.no-shimmer::after,
.pf-lms-footer.no-shimmer::after {
    display: none;
}

/* Shimmer Toggle Button */
.pf-lms-shimmer-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.pf-lms-shimmer-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.2) 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.pf-lms-shimmer-btn:active {
    transform: translateY(0) scale(0.95);
}

/* To-Top Button */
.pf-lms-to-top-wrap {
    display: contents;
}

.pf-lms-to-top-btn {
    position: absolute;
    right: 24px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 122, 61, 0.95) 0%, rgba(255, 179, 0, 0.95) 100%);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.38);
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    z-index: 220;
    font-size: 1.2rem;
    line-height: 1;
    color: #ffffff;
    flex-shrink: 0;
}

.pf-lms-to-top-btn.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.pf-lms-to-top-btn:hover,
.pf-lms-to-top-btn:focus-visible {
    transform: translateY(-2px);
}

.pf-lms-to-top-btn:active {
    transform: translateY(0);
}

.pf-lms-footer-left,
.pf-lms-footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

/* ===============================================================
   INFO SECTION (Toggleable) - LMS Style
   =============================================================== */

.pf-lms-info-section {
    background: linear-gradient(135deg, #D9D6CF 0%, #A7C7D9 100%);
    padding: 20px;
    border-bottom: 2px solid var(--pf-lms-accent);
    margin: 0;
    animation: none;
}

@keyframes pf-lms-info-slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pf-lms-info-details {
    max-width: 1200px;
    margin: 0 auto;
}

/* 2-Spalten Layout: Beschreibung links (2/3), Meta rechts (1/3) */
.pf-lms-info-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
}

/* LINKS: Beschreibung mit Scrollbar - GROESSERER BEREICH */
.pf-lms-info-description {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-height: 400px;
    overflow-y: auto;
    scrollbar-color: #8a8f95 #e4e1da;
    scrollbar-width: thin;
}

.pf-lms-info-description::-webkit-scrollbar {
    width: 6px;
}

.pf-lms-info-description::-webkit-scrollbar-track {
    background: #e4e1da;
    border-radius: 3px;
}

.pf-lms-info-description::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #a56f3d 0%, #7f878f 100%);
    border-radius: 3px;
    border: 1px solid #d9d6cf;
}

.pf-lms-info-description::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8d5c31 0%, #696f76 100%);
}

.pf-lms-info-description .pf-lms-info-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--pf-lms-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.pf-lms-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

/* RECHTS: Meta-Informationen gestapelt (LMSStyle Blocks) */
.pf-lms-info-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pf-lms-info-block {
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.pf-lms-info-block:hover {
    box-shadow: 0 4px 16px rgba(46, 204, 113, 0.15);
    transform: translateY(-2px);
}

.pf-lms-info-block .pf-lms-info-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--pf-lms-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.pf-lms-info-block .pf-lms-value {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

/* ===============================================================
   DASHBOARD BUTTON
   =============================================================== */

.pf-lms-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pf-lms-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pf-lms-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ===============================================================
   ANIMATIONS
   =============================================================== */

@keyframes pf-lms-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pf-lms-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
/* ===============================================================
   TAB NAVIGATION - Registerkarten-Stil
   =============================================================== */

.pf-lms-tabs {
    display: flex;
    gap: 4px;
    padding: 0 4px;
    margin-bottom: 0;
    align-items: flex-end;
    flex-wrap: wrap;
    position: relative;
}

.pf-lms-tab {
    background: linear-gradient(135deg, var(--pf-lms-accent) 0%, var(--pf-lms-support) 100%);
    background-size: 160% 160%;
    background-position: 0% 0%;
    border: 2px solid var(--pf-lms-accent);
    border-bottom: 2px solid var(--pf-lms-accent);
    border-radius: 10px 10px 0 0;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.22s ease,
                color 0.18s ease,
                filter 0.18s ease,
                background-position 0.35s ease;
    position: relative;
    transform-origin: center bottom;
    overflow: hidden;
    margin-bottom: -2px;
    box-shadow: var(--pf-lms-shadow);
}

/* Shimmer sweep on hover */
.pf-lms-tab::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    transition: left 0.48s ease;
    pointer-events: none;
}

.pf-lms-tab-label {
    display: inline;
}
.pf-lms-tab:hover:not(.active) {
    color: white;
    transform: translateY(-2px) scale(1.02, 1.08);
    margin-bottom: -5px;
    border-color: var(--pf-lms-accent);
    background-position: 100% 100%;
    filter: brightness(1.1) saturate(1.06);
    box-shadow: var(--pf-lms-shadow-hover);
}

.pf-lms-tab:hover:not(.active)::after {
    left: 150%;
}

.pf-lms-tab.active {
    background: white;
    color: var(--pf-lms-text-primary);
    font-weight: 700;
    text-shadow: none;
    border: 2px solid var(--pf-lms-accent);
    border-bottom: 2px solid white;
    margin-bottom: -2px;
    z-index: 3;
    box-shadow: var(--pf-lms-shadow-hover);
    transform: none;
}

.pf-lms-tab.active::after {
    display: none;
}

/* ===============================================================
   TAB CONTENT - Registerkarten-Container
   =============================================================== */
.pf-lms-tab-content {
    padding: 16px;
    background: white;
    border: 2px solid var(--pf-lms-accent);
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

.pf-lms-tab-pane {
    display: none;
    animation: none;
}

.pf-lms-tab-pane.active {
    display: block;
}

/* ===============================================================
   KURSUEBERSICHT - WELCOME
   =============================================================== */
.pf-lms-welcome {
    background: var(--pf-lms-gradient);
    background-size: 200% 200%;
    animation: none;
    color: white;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    box-shadow: var(--pf-lms-shadow);
}

.pf-lms-welcome h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    line-height: 1.25;
}

.pf-lms-welcome p {
    margin: 0;
    font-size: 15px;
    opacity: 0.95;
}

/* ===============================================================
   INFO BANNER
   =============================================================== */
.pf-lms-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    background: #fff9e6;
    border-left: 4px solid #f39c12;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.pf-lms-info-banner[hidden] {
    display: none !important;
}

.pf-lms-info-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.pf-lms-info-text {
    flex: 1;
    color: #2e3f50;
    line-height: 1.45;
}

.pf-lms-info-text strong {
    color: #d68910;
}

.pf-lms-link {
    color: var(--pf-lms-support);
    text-decoration: none;
    font-weight: 600;
}

.pf-lms-link:hover {
    text-decoration: underline;
}

.pf-lms-info-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: #9a6b12;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
}

.pf-lms-info-close:hover,
.pf-lms-info-close:focus-visible {
    color: #7a5207;
}

.pf-lms-guest-inventory {
    margin: 0 0 24px;
    padding: 16px;
    border: 1px solid #d9e4ef;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef6fd 100%);
}

.pf-lms-guest-inventory-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.pf-lms-guest-inventory-head h3 {
    margin: 0;
    font-size: 18px;
    color: #1f3850;
}

.pf-lms-guest-source {
    font-size: 12px;
    font-weight: 700;
    color: #4c6a86;
    background: #e5eff8;
    border-radius: 999px;
    padding: 4px 10px;
}

.pf-lms-guest-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.pf-lms-guest-stat-card {
    background: #fff;
    border: 1px solid #dce8f3;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 2px 6px rgba(40, 64, 86, 0.08);
}

.pf-lms-guest-stat-label {
    display: block;
    font-size: 12px;
    color: #4f6c87;
}

.pf-lms-guest-stat-value {
    font-size: 22px;
    color: #1a354c;
}

.pf-lms-guest-type-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.pf-lms-guest-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e9f1f8;
    color: #35516b;
    font-size: 12px;
    font-weight: 600;
}

.pf-lms-guest-list-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #dce8f3;
    background: #fff;
}

.pf-lms-guest-list {
    width: 100%;
    border-collapse: collapse;
}

.pf-lms-guest-list th,
.pf-lms-guest-list td {
    font-size: 13px;
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #ecf2f8;
    color: #213447;
}

.pf-lms-guest-list tbody tr {
    background: #ffffff;
}

.pf-lms-guest-list tbody tr:nth-child(even) {
    background: #f7fbff;
}

.pf-lms-guest-list th {
    background: #f4f8fc;
    color: #2d4d67;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.pf-lms-guest-list tbody tr:last-child td {
    border-bottom: 0;
}

.pf-lms-course-filterbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px 0;
    padding: 10px;
    background: #f6fbff;
    border: 1px solid #dbeaf5;
    border-radius: 10px;
}

.pf-lms-filter-label {
    font-size: 13px;
    font-weight: 700;
    color: #2c3e50;
    margin-right: 4px;
}

.pf-lms-filter-btn {
    border: 1px solid #c9d8e6;
    background: #fff;
    color: #35516b;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pf-lms-filter-btn:hover {
    border-color: #87b5d8;
    transform: translateY(-1px);
}

.pf-lms-filter-btn.active {
    background: var(--pf-lms-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.24);
}

.pf-lms-filter-status {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid #dce8f3;
    border-radius: 10px;
    background: #f7fbff;
    color: #29445c;
    font-size: 13px;
    font-weight: 600;
}

.pf-lms-filter-status-label {
    color: #47627c;
}

.pf-lms-course-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 12px;
}

.pf-lms-search-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 280px;
}

.pf-lms-search-label {
    font-size: 13px;
    font-weight: 700;
    color: #2c3e50;
}

.pf-lms-search-input {
    width: 100%;
    max-width: 420px;
    border: 1px solid #c8d8e8;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    color: #243a4f;
    background: #fff;
}

.pf-lms-search-input:focus {
    outline: none;
    border-color: #7eb4dd;
    box-shadow: 0 0 0 3px rgba(53, 120, 180, 0.14);
}

.pf-lms-view-toggle {
    border: 1px solid #c9d8e6;
    background: #fff;
    color: #35516b;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pf-lms-view-toggle:hover {
    border-color: #87b5d8;
    transform: translateY(-1px);
}

.pf-lms-view-toggle[aria-pressed="true"] {
    background: var(--pf-lms-gradient);
    color: #fff;
    border-color: transparent;
}

.pf-lms-empty-state {
    margin-top: 14px;
    padding: 16px;
    border-radius: 12px;
    border: 1px dashed #b5cadf;
    background: linear-gradient(180deg, #f8fbff 0%, #edf5fc 100%);
    text-align: center;
}

.pf-lms-empty-state h4 {
    margin: 0 0 6px;
    font-size: 17px;
    color: #224059;
}

.pf-lms-empty-state p {
    margin: 0 0 12px;
    color: #425f78;
    font-size: 13px;
}

/* ===============================================================
   COURSE CARDS GRID
   =============================================================== */
.pf-lms-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 16px;
}

.pf-lms-course-card {
    background: #fcfbf8;
    border-radius: 12px;
    box-shadow: var(--pf-lms-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #cfcac1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pf-lms-course-card:hover {
    box-shadow: 0 10px 18px rgba(30, 30, 30, 0.16), 0 2px 8px rgba(196, 127, 60, 0.22);
    transform: translateY(-5px);
}

.pf-lms-course-header {
    background: linear-gradient(120deg, #c47f3c 0%, #b97a40 45%, #8e9dad 100%);
    background-size: 200% 200%;
    animation: none;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    border-bottom: 1px solid rgba(30, 30, 30, 0.18);
}

.pf-lms-course-status-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.pf-lms-course-type {
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 6px 12px;
    border-radius: 20px;
}

.pf-lms-course-status {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.92);
    color: #2c3238;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.pf-lms-startable-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 4px 8px;
}

.pf-lms-startable-badge.is-instant {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.32);
}

.pf-lms-startable-badge.is-required {
    background: linear-gradient(135deg, #6c7a89 0%, #4f5b66 100%);
    box-shadow: 0 4px 10px rgba(79, 91, 102, 0.28);
}

.pf-lms-startable-badge.is-enrolled {
    background: linear-gradient(135deg, #1E1E1E 0%, #C47F3C 100%);
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

.pf-lms-startable-badge .pf-lms-svg-icon {
    width: 12px;
    height: 12px;
}

.pf-lms-badge-tooltip {
    position: relative;
    cursor: help;
}

.pf-lms-badge-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    max-width: 280px;
    white-space: normal;
    line-height: 1.35;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(24, 28, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    z-index: 8;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.pf-lms-badge-tooltip:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.pf-lms-course-card-hidden {
    display: none;
}

.pf-lms-courses-grid.is-compact .pf-lms-course-body {
    padding: 12px;
    display: block;
}

.pf-lms-courses-grid.is-compact .pf-lms-course-card {
    display: block;
    height: auto;
}

.pf-lms-courses-grid.is-compact .pf-lms-course-main {
    min-height: 0;
}

.pf-lms-courses-grid.is-compact .pf-lms-course-meta,
.pf-lms-courses-grid.is-compact .pf-lms-course-entry-note,
.pf-lms-courses-grid.is-compact .pf-lms-course-topics,
.pf-lms-courses-grid.is-compact .pf-lms-course-resources,
.pf-lms-courses-grid.is-compact .pf-lms-progress-bar {
    display: none;
}

.pf-lms-courses-grid.is-compact .pf-lms-course-title {
    margin-bottom: 6px;
    font-size: 17px;
    min-height: 0;
}

.pf-lms-courses-grid.is-compact .pf-lms-course-description {
    margin-bottom: 0;
    min-height: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pf-lms-courses-grid.is-compact .pf-lms-course-footer {
    padding-top: 8px;
    margin-top: 10px;
}

.pf-lms-course-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pf-lms-course-title {
    margin: 0 0 10px 0;
    font-size: 19px;
    color: var(--pf-lms-text-primary);
    line-height: 1.3;
    min-height: 50px;
}

.pf-lms-course-main {
    min-height: 270px;
}

.pf-lms-course-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d7d2c9;
}

.pf-lms-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--pf-lms-text-secondary);
}

.pf-lms-meta-icon {
    font-size: 16px;
}

.pf-lms-course-description {
    font-size: 13px;
    line-height: 1.5;
    color: var(--pf-lms-text-secondary);
    margin-bottom: 10px;
    min-height: 58px;
}

.pf-lms-course-entry-note {
    margin: 0 0 12px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #cfcac1;
    background: linear-gradient(180deg, #f3f0ea 0%, #e8eef2 100%);
    color: #3b4650;
    font-size: 12px;
    line-height: 1.35;
}

.pf-lms-course-entry-note strong {
    color: #1e1e1e;
}

.pf-lms-course-topics {
    margin-bottom: 10px;
    min-height: 96px;
}

.pf-lms-course-topics strong {
    display: block;
    margin-bottom: 8px;
    color: var(--pf-lms-ink);
    font-size: 14px;
}

.pf-lms-topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pf-lms-topic-tag {
    background: var(--pf-lms-surface);
    color: #4e3b28;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #cfcac1;
}

.pf-lms-course-resources {
    background: #efebe5;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #d1cbc2;
    min-height: 138px;
}

.pf-lms-course-resources strong {
    color: var(--pf-lms-ink);
    font-size: 14px;
}

.pf-lms-course-resources ul {
    margin: 8px 0;
    padding-left: 20px;
}

.pf-lms-course-resources li {
    font-size: 12px;
    color: var(--pf-lms-text-muted);
    margin-bottom: 3px;
}

.pf-lms-course-resources p {
    margin: 8px 0 0 0;
    font-size: 13px;
}

.pf-lms-progress-bar {
    background: #ddd8cf;
    border-radius: 20px;
    height: 30px;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.pf-lms-progress-fill {
    background: var(--pf-lms-gradient);
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s ease;
}

.pf-lms-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1e1e1e;
    font-weight: 600;
    font-size: 12px;
}

.pf-lms-course-footer {
    padding: 0 16px 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

@media (max-width: 900px) {
    .pf-lms-course-title,
    .pf-lms-course-main,
    .pf-lms-course-description,
    .pf-lms-course-topics,
    .pf-lms-course-resources {
        min-height: 0;
    }
}

/* ===============================================================
   BUTTONS
   =============================================================== */
.pf-lms-btn {
    padding: 9px 14px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    min-height: 40px;
    line-height: 1.15;
    box-sizing: border-box;
    white-space: nowrap;
}

/* Dashboard pill: override base .pf-lms-btn min-height/padding so pill stays compact on desktop */
.pf-lms-btn.pf-lms-btn-dashboard {
    min-height: 34px;
    padding: 6px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-width: 1px;
}

.pf-lms-btn-primary {
    background: var(--pf-lms-gradient);
    color: white;
}

.pf-lms-btn-primary:hover {
    background: linear-gradient(135deg, var(--pf-lms-ink), var(--pf-lms-ink));
    transform: translateY(-2px);
    box-shadow: var(--pf-lms-shadow);
}

.pf-lms-btn-secondary {
    background: white;
    color: #1f4f76;
    border: 2px solid var(--pf-lms-support);
}

.pf-lms-btn-secondary:hover {
    background: var(--pf-lms-support);
    transform: translateY(-2px);
}

.pf-lms-btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

.pf-lms-btn .pf-lms-svg-icon {
    width: 18px;
    height: 18px;
    display: block;
    margin: 0;
    flex-shrink: 0;
}

/* ===============================================================
   HOW-TO FAHRPLAN
   =============================================================== */
.pf-lms-howto-header {
    text-align: center;
    margin-bottom: 40px;
}

.pf-lms-howto-header h2 {
    font-size: 24px;
    color: var(--pf-lms-text-primary);
    margin-bottom: 10px;
}

.pf-lms-howto-subtitle {
    font-size: 14px;
    color: var(--pf-lms-text-muted);
}

.pf-lms-howto-intro {
    margin-bottom: 40px;
}

.pf-lms-howto-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--pf-lms-shadow);
}

.pf-lms-howto-card h3 {
    color: var(--pf-lms-ink);
    margin-top: 0;
}

.pf-lms-integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pf-lms-integration-item {
    text-align: center;
    padding: 20px;
    background: var(--pf-lms-surface);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pf-lms-integration-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--pf-lms-shadow);
}

.pf-lms-integration-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
}

.pf-lms-integration-item strong {
    display: block;
    color: var(--pf-lms-ink);
    font-size: 16px;
    margin-bottom: 5px;
}

.pf-lms-integration-item p {
    margin: 0;
    font-size: 12px;
    color: #555;
}

.pf-lms-howto-steps {
    margin-bottom: 40px;
}

.pf-lms-step {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--pf-lms-shadow);
}

.pf-lms-step-number {
    width: 50px;
    height: 50px;
    background: var(--pf-lms-gradient);
    color: white;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.pf-lms-step-content {
    flex: 1;
}

.pf-lms-step-content h3 {
    margin-top: 0;
    color: var(--pf-lms-ink);
}

.pf-lms-step-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.pf-lms-step-content li {
    margin-bottom: 6px;
    line-height: 1.6;
    color: var(--pf-lms-text-secondary);
}

.pf-lms-howto-example {
    background: var(--pf-lms-support);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.pf-lms-howto-example h3 {
    color: var(--pf-lms-ink);
    margin-top: 0;
}

.pf-lms-example-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.pf-lms-flow-step {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    flex: 1 1 200px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pf-lms-flow-step strong {
    color: var(--pf-lms-ink);
}

.pf-lms-flow-arrow {
    font-size: 24px;
    color: var(--pf-lms-support);
    font-weight: bold;
}

.pf-lms-howto-scenario {
    margin-bottom: 30px;
}

.pf-lms-howto-scenario-title {
    color: var(--pf-lms-ink);
    margin: 0 0 15px;
}

.pf-lms-howto-scenario-title-tight {
    margin-top: 0;
}

.pf-lms-howto-scenario-scorm {
    padding: 15px;
    background: rgba(167, 199, 217, 0.12);
    border-left: 4px solid var(--pf-lms-support);
    border-radius: 4px;
    margin-top: 20px;
}

.pf-lms-howto-scenario-note {
    font-size: 12px;
    color: #7f8c8d;
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid rgba(52, 152, 219, 0.2);
}

.pf-lms-howto-footer {
    margin-top: 40px;
}

.pf-lms-cta-box {
    background: var(--pf-lms-gradient);
    background-size: 200% 200%;
    animation: none;
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--pf-lms-shadow-hover);
}

.pf-lms-cta-box h3 {
    margin-top: 0;
    font-size: 28px;
}

.pf-lms-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* ===============================================================
   KURS ERSTELLEN FORM
   =============================================================== */
.pf-lms-create-header {
    text-align: center;
    margin-bottom: 30px;
}

.pf-lms-create-header h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.pf-lms-upgrade-banner {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.pf-lms-upgrade-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pf-lms-upgrade-icon {
    font-size: 48px;
}

.pf-lms-upgrade-content h3 {
    margin: 0 0 10px 0;
    color: #856404;
}

.pf-lms-upgrade-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.pf-lms-create-form {
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: var(--pf-lms-shadow);
}

.pf-lms-create-progress {
    margin-bottom: 14px;
    padding: 10px;
    border: 1px solid #dbe6f0;
    border-radius: 10px;
    background: #f7fbff;
}

.pf-lms-create-progress-track {
    height: 8px;
    background: #e5eef6;
    border-radius: 999px;
    overflow: hidden;
}

.pf-lms-create-progress-fill {
    height: 100%;
    width: 0;
    background: var(--pf-lms-gradient);
    transition: width 0.25s ease;
}

.pf-lms-create-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: #34516b;
    font-weight: 600;
}

.pf-lms-form-section {
    margin-bottom: 18px;
}

.pf-lms-form-section h3 {
    color: var(--pf-lms-ink);
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pf-lms-surface);
}

.pf-lms-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.pf-lms-form-group {
    display: flex;
    flex-direction: column;
}

.pf-lms-form-group label {
    font-weight: 600;
    color: var(--pf-lms-text-secondary);
    margin-bottom: 6px;
    font-size: 13px;
}

.pf-lms-form-group input,
.pf-lms-form-group select,
.pf-lms-form-group textarea {
    padding: 9px 10px;
    border: 1px solid #b8c6d4;
    border-radius: 6px;
    font-size: 13px;
    color: var(--pf-lms-text-primary);
    background: #fff;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.pf-lms-form-group input:focus,
.pf-lms-form-group select:focus,
.pf-lms-form-group textarea:focus {
    outline: none;
    border-color: var(--pf-lms-support);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.pf-lms-integration-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pf-lms-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pf-lms-checkbox:hover {
    background: var(--pf-lms-surface);
}

.pf-lms-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* SCORM Package Selector Styles */
.pf-lms-scorm-package-selector {
    animation: slideDown 0.3s ease-out;
    display: none;
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    background-color: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.pf-lms-scorm-package-selector:not([hidden]) {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pf-lms-scorm-package-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
}

.pf-lms-scorm-package-selector select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    color: #2c3e50;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pf-lms-scorm-package-selector select:hover {
    border-color: #1E1E1E;
}

.pf-lms-scorm-package-selector select:focus {
    outline: none;
    border-color: var(--pf-lms-accent);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.pf-lms-scorm-package-selector select option {
    padding: 8px;
    color: #2c3e50;
}

.pf-lms-scorm-package-selector select option[value=""] {
    color: #7f8c8d;
    font-style: italic;
}

.pf-lms-scorm-package-selector > div:last-child {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(46, 204, 113, 0.2);
}

.pf-lms-scorm-package-hint {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 6px;
}

.pf-lms-scorm-gate {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pf-lms-scorm-gate[hidden] {
    display: none !important;
}

.pf-lms-scorm-gate-dialog {
    background: var(--pf-surface, #fff);
    border-radius: 16px;
    padding: 2rem 2.4rem;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.pf-lms-scorm-gate-icon {
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
}

.pf-lms-scorm-gate-title {
    margin: 0 0 0.6rem;
    font-size: 1.25rem;
}

.pf-lms-scorm-gate-msg {
    margin: 0 0 1.4rem;
    color: var(--pf-muted, #666);
    font-size: 0.95rem;
}

.pf-lms-scorm-gate-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pf-lms-form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 18px;
}

.pf-lms-create-preview {
    margin: 16px 0 8px;
    padding: 14px;
    border: 1px solid #dce8f3;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #eff6fc 100%);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.pf-lms-create-preview.is-highlighted {
    border-color: #7ab3d9;
    box-shadow: 0 0 0 3px rgba(122, 179, 217, 0.2);
}

.pf-lms-create-preview h3 {
    margin: 0 0 10px;
    color: #1f3e56;
    font-size: 16px;
}

.pf-lms-create-preview-card {
    border: 1px solid #d8e5f1;
    border-radius: 10px;
    background: #fff;
    padding: 12px;
}

.pf-lms-create-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.pf-lms-create-preview-type,
.pf-lms-create-preview-lang {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.pf-lms-create-preview-type {
    background: rgba(46, 204, 113, 0.15);
    color: #1e6843;
}

.pf-lms-create-preview-lang {
    background: rgba(52, 152, 219, 0.16);
    color: #1e5278;
}

.pf-lms-create-preview-title {
    margin: 10px 0 8px;
    font-size: 18px;
    color: #1f2f40;
}

.pf-lms-create-preview-desc {
    margin: 0 0 10px;
    color: #385066;
    font-size: 13px;
    line-height: 1.45;
}

.pf-lms-create-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.pf-lms-create-preview-meta span,
.pf-lms-create-preview-integrations {
    font-size: 12px;
    color: #304a62;
    background: #f3f8fc;
    border: 1px solid #deebf5;
    border-radius: 8px;
    padding: 4px 8px;
}

.pf-lms-create-mobile-actions {
    display: none;
}

/* ===============================================================
   STATISTIKEN
   =============================================================== */
.pf-lms-stats-header {
    text-align: center;
    margin-bottom: 30px;
}

.pf-lms-stats-header h2 {
    font-size: 24px;
    color: var(--pf-lms-text-primary);
    margin-bottom: 10px;
}

.pf-lms-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.pf-lms-stat-card {
    background: white;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--pf-lms-shadow);
    transition: all 0.3s ease;
}

.pf-lms-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--pf-lms-shadow-hover);
}

.pf-lms-stat-icon {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

.pf-lms-stat-value {
    font-size: 30px;
    font-weight: bold;
    background: var(--pf-lms-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.pf-lms-stat-label {
    font-size: 13px;
    color: var(--pf-lms-text-muted);
    font-weight: 500;
}

/* ===============================================================
   DETAIL MODAL
   =============================================================== */
.pf-lms-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.pf-lms-modal.active {
    display: block;
}

.pf-lms-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.pf-lms-modal-dialog {
    position: relative;
    max-width: 920px;
    margin: 3vh auto;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    padding: 18px;
}

.pf-lms-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.pf-lms-modal-content h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: var(--pf-lms-text-primary);
}

.pf-lms-modal-subtitle {
    margin: 0 0 18px 0;
    color: var(--pf-lms-text-secondary);
}

.pf-lms-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.pf-lms-modal-panel {
    background: #f8f9fb;
    border: 1px solid #e7edf3;
    border-radius: 10px;
    padding: 14px;
}

.pf-lms-modal-panel h4,
.pf-lms-modal-section h4 {
    margin: 0 0 10px 0;
    color: #2f5d7a;
}

.pf-lms-modal-panel ul,
.pf-lms-modal-section ul {
    margin: 0;
    padding-left: 18px;
}

.pf-lms-modal-panel li,
.pf-lms-modal-section li {
    margin: 0 0 6px 0;
}

.pf-lms-modal-section {
    margin-top: 14px;
}

.pf-lms-modal-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.pf-lms-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pf-lms-modal-tags span {
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.35);
    color: #1f6a46;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
}

.pf-lms-stat-icon .pf-lms-svg-icon {
    width: 48px;
    height: 48px;
}

.pf-lms-btn-loading {
    opacity: 0.8;
    cursor: wait;
}

.pf-lms-toast-stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 10020;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(92vw, 380px);
}

.pf-lms-toast {
    padding: 11px 14px;
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    transform: translateY(0);
    opacity: 1;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.pf-lms-toast.is-leaving {
    opacity: 0;
    transform: translateY(8px);
}

.pf-lms-toast-info {
    background: linear-gradient(135deg, #2f80ed 0%, #56ccf2 100%);
}

.pf-lms-toast-success {
    background: linear-gradient(135deg, #1E1E1E 0%, #C47F3C 100%);
}

.pf-lms-toast-warning {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    color: #1d1d1d;
}

.pf-lms-toast-error {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

/* ===============================================================
   RESPONSIVE DESIGN
   =============================================================== */
@media (max-width: 768px) {
    .pf-lms-topnav-spacer {
        height: 0;
        margin-top: 0;
    }

    .pf-lms-box.overlay-mode {
        width: 100%;
        height: 100%;
        max-height: 100%;
        --pf-overlay-shell-box-radius: clamp(10px, 3vw, 14px);
        border-radius: var(--pf-overlay-shell-box-radius, clamp(10px, 3vw, 14px));
        margin: 0;
    }

    .pf-lms-body {
        padding: 6px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        scroll-padding-bottom: calc(86px + env(safe-area-inset-bottom));
        border-left-width: 0;
        border-right-width: 0;
    }

    .pf-lms-header,
    .pf-lms-footer {
        padding: clamp(6px, 2.2vw, 8px) clamp(7px, 2.6vw, 10px);
    }

    .pf-lms-footer {
        padding-bottom: calc(clamp(6px, 2.2vw, 8px) + env(safe-area-inset-bottom));
        font-size: clamp(9.5px, 2.7vw, 11px);
        gap: 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .pf-lms-header {
        align-items: center;
        gap: clamp(6px, 2vw, 8px);
        flex-direction: row;
        min-height: clamp(50px, 11vw, 56px);
        transition: transform 0.24s ease, opacity 0.24s ease, padding 0.24s ease;
    }

    .pf-lms-header-left {
        gap: clamp(6px, 2vw, 8px);
        min-width: 0;
    }

    .pf-drag-handle {
        font-size: clamp(18px, 5vw, 20px);
    }

    .pf-lms-icon-wrapper {
        width: clamp(34px, 8.5vw, 40px);
        height: clamp(34px, 8.5vw, 40px);
        border-radius: clamp(9px, 2.2vw, 10px);
    }

    .pf-lms-title-section {
        min-width: 0;
    }

    .pf-lms-title {
        font-size: clamp(14px, 5vw, 20px);
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pf-lms-meta {
        display: none;
    }

    .pf-lms-header-right {
        width: auto;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
    }

    .pf-lms-user {
        gap: 0;
        padding: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.16);
        border: 1px solid rgba(255, 255, 255, 0.22);
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .pf-lms-user-name,
    .pf-lms-user-license-mobile {
        display: none;
    }

    .pf-lms-user-avatar {
        width: 32px;
        height: 32px;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9), 0 1px 4px rgba(8, 17, 31, 0.16);
    }

    .pf-lms-btn {
        width: 100%;
    }

    .pf-lms-btn.pf-lms-btn-dashboard {
        min-width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        border-radius: 999px;
    }

    .pf-lms-dashboard-menu {
        position: relative;
    }

    .pf-lms-dashboard-submenu {
        right: 0;
        top: calc(100% + 8px);
        min-width: min(240px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        padding: 7px;
        border-radius: 11px;
    }

    .pf-lms-dashboard-submenu-item {
        font-size: 12px;
        padding: 8px 9px;
    }

    .pf-lms-btn.pf-lms-btn-dashboard .pf-lms-dash-label {
        display: none;
    }

    .pf-lms-btn.pf-lms-btn-dashboard .pf-lms-dash-icon {
        width: 26px;
        height: 26px;
    }

    .pf-lms-btn.pf-lms-btn-dashboard .pf-lms-dash-logo {
        width: 26px;
        height: 26px;
    }

    .pf-lms-box.is-mobile-shell-collapsed .pf-lms-header {
        min-height: 0;
        height: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
        overflow: visible;
    }

    .pf-lms-box.is-mobile-shell-collapsed .pf-lms-header::before,
    .pf-lms-box.is-mobile-shell-collapsed .pf-lms-header::after {
        display: none;
    }

    .pf-lms-box.is-mobile-shell-collapsed .pf-lms-header-left,
    .pf-lms-box.is-mobile-shell-collapsed .pf-lms-header-right {
        display: none;
    }

    .pf-lms-box.is-mobile-shell-collapsed .pf-lms-header-compact-logo {
        display: inline-flex;
        position: fixed;
        top: 10px;
        right: 10px;
        left: auto;
        transform: none;
        z-index: 240;
        border-radius: 999px;
        overflow: hidden;
    }

    .pf-lms-box.is-mobile-shell-collapsed .pf-lms-footer {
        display: none;
    }

    .pf-lms-box.is-mobile-shell-collapsed .pf-lms-dashboard-submenu {
        display: none;
    }

    .pf-lms-footer-left,
    .pf-lms-footer-right {
        min-width: 0;
        gap: 6px;
    }

    .pf-lms-footer-left {
        flex: 1 1 auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pf-lms-footer-right {
        flex: 0 1 auto;
        justify-content: flex-end;
        white-space: nowrap;
        max-width: 52vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pf-lms-footer-right span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pf-lms-shimmer-btn {
        width: clamp(30px, 7.5vw, 34px);
        height: clamp(30px, 7.5vw, 34px);
        padding: 0;
        border-radius: clamp(8px, 2vw, 9px);
        font-size: clamp(12px, 3.2vw, 14px);
    }

    .pf-lms-to-top-btn {
        width: 42px;
        height: 42px;
        right: 24px;
        bottom: calc(56px + env(safe-area-inset-bottom, 0px));
        font-size: clamp(14px, 3.5vw, 18px);
    }

    .pf-lms-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 4px;
        padding: 4px 4px 2px;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 4px;
        position: relative;
        top: auto;
        z-index: 1;
        border-top: none;
        border-bottom: none;
        box-shadow: none;
    }

    .pf-lms-tabs::-webkit-scrollbar {
        display: none;
    }

    .pf-lms-tabs::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        border-radius: 0;
        background: none;
        background-color: var(--pf-lms-accent);
        display: block;
        pointer-events: none;
        z-index: 0;
    }

    .pf-lms-courses-grid {
        grid-template-columns: 1fr;
    }

    .pf-lms-tab {
        flex: 0 0 auto;
        min-width: clamp(46px, 12vw, 54px);
        width: clamp(46px, 12vw, 54px);
        height: clamp(40px, 10vw, 46px);
        padding: 0;
        font-size: 13px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        border-radius: 12px 12px 0 0;
        scroll-snap-align: start;
        margin-top: 0;
        margin-bottom: 0;
        border-bottom: 2px solid var(--pf-lms-accent);
        box-shadow: none;
        position: relative;
        z-index: 1;
    }

    .pf-lms-tab-label {
        display: none;
    }

    .pf-lms-tab .pf-lms-svg-icon {
        width: 20px;
        height: 20px;
    }

    .pf-lms-tab::after {
        display: none;
    }

    .pf-lms-tab:hover:not(.active) {
        transform: none;
        margin-bottom: 0;
        filter: brightness(1.04);
    }

    .pf-lms-tab.active {
        transform: none;
        z-index: 3;
        margin-bottom: -2px;
        border-bottom: 2px solid #ffffff;
        box-shadow: 0 6px 14px rgba(25, 50, 74, 0.12);
    }

    .pf-lms-welcome {
        padding: 10px;
    }

    .pf-lms-welcome h2 {
        font-size: 19px;
    }

    .pf-lms-course-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .pf-lms-course-status-wrap {
        width: 100%;
        align-items: flex-start;
    }

    .pf-lms-course-footer {
        flex-direction: column;
    }

    .pf-lms-course-footer .pf-lms-btn {
        width: 100%;
        flex: 1 1 100%;
    }

    .pf-lms-guest-inventory {
        padding: 10px;
    }

    .pf-lms-filter-status {
        padding: 9px 10px;
        font-size: 12px;
    }

    .pf-lms-course-filterbar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
        align-items: center;
    }

    .pf-lms-filter-label {
        grid-column: 1 / -1;
        margin-right: 0;
    }

    .pf-lms-filter-btn[data-filter="all"] { order: 1; }
    .pf-lms-filter-btn[data-filter="startable"] { order: 2; }
    .pf-lms-filter-btn[data-filter="webinar"] { order: 3; }
    .pf-lms-filter-btn[data-filter="selfpaced"] { order: 4; }
    .pf-lms-filter-btn[data-filter="workshop"] { order: 5; }
    .pf-lms-filter-btn[data-filter="enrolled"] { order: 6; }

    .pf-lms-course-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .pf-lms-search-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .pf-lms-search-input {
        max-width: none;
    }

    .pf-lms-view-toggle {
        align-self: flex-start;
    }

    .pf-lms-guest-inventory-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .pf-lms-guest-list th,
    .pf-lms-guest-list td {
        white-space: nowrap;
        font-size: clamp(11px, 2.8vw, 12px);
        padding: 7px 8px;
    }

    .pf-lms-form-actions {
        flex-direction: column;
    }

    .pf-lms-create-progress-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .pf-lms-example-flow {
        flex-direction: column;
    }

    .pf-lms-flow-arrow {
        transform: rotate(90deg);
    }

    .pf-lms-cta-buttons {
        flex-direction: column;
    }

    .pf-lms-btn-large {
        width: 100%;
    }

    .pf-lms-tab-content {
        border-top: 0;
        border-radius: 0 0 12px 12px;
        padding: clamp(6px, 2.2vw, 10px);
    }

    .pf-lms-info-banner {
        gap: 10px;
        padding: 10px;
    }

    .pf-lms-course-body {
        padding: 10px;
    }

    .pf-lms-course-footer {
        padding: 0 10px 10px;
    }

    .pf-lms-empty-state {
        padding: 10px;
    }

    .pf-lms-create-preview {
        padding: 8px;
    }

    .pf-lms-create-preview-title {
        font-size: 16px;
    }

    .pf-lms-modal-dialog {
        margin: 0;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 10px;
    }

    .pf-lms-modal-grid {
        grid-template-columns: 1fr;
    }

    .pf-lms-create-mobile-actions {
        position: sticky;
        bottom: calc(8px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 8px;
        margin-top: 12px;
        padding: 8px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid #d5e3f0;
        box-shadow: 0 8px 24px rgba(32, 56, 84, 0.16);
        backdrop-filter: blur(8px);
    }

    .pf-lms-create-mobile-actions .pf-lms-btn {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .pf-lms-footer-right span {
        display: none;
    }

    .pf-lms-filter-btn {
        width: 100%;
        text-align: center;
        min-height: 36px;
        padding: 7px 8px;
        font-size: 12px;
    }

    .pf-lms-search-input {
        height: 38px;
        font-size: 12px;
    }

    .pf-lms-toast-stack {
        right: 10px;
        left: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        max-width: none;
    }
}

/* Profile Sub-Overlay */
.pf-lms-profile-suboverlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
}

.pf-lms-profile-suboverlay[hidden] {
    display: none !important;
}

.pf-lms-profile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 30, 0.42);
    backdrop-filter: blur(14px) saturate(0.75);
    -webkit-backdrop-filter: blur(14px) saturate(0.75);
    cursor: pointer;
}

.pf-lms-profile-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pf-lms-profile-iframe {
    width: 100%;
    flex: 1;
    border: none;
    display: block;
    background: transparent;
}
/* ===============================================================
   SVG ICONS
   =============================================================== */
.pf-lms-svg-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Kleine Einrueckung nach SVG-Icon innerhalb von Text */
.pf-lms-svg-icon + span,
.pf-lms-svg-icon + strong,
.pf-lms-svg-icon + a {
    margin-left: 4px;
}

/* ===============================================================
   KURSVERWALTUNG - Admin-Tab
   =============================================================== */

/* â”€â”€â”€ CSS Custom Properties (Admin-Tokens) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
    --pf-adm-bg:          #F2F0EB;
    --pf-adm-surface:     #ffffff;
    --pf-adm-surface-2:   #f8fffe;
    --pf-adm-border:      rgba(46, 204, 113, 0.18);
    --pf-adm-border-hi:   rgba(46, 204, 113, 0.35);
    --pf-adm-text:        #0f2a1e;
    --pf-adm-muted:       #4a7c6a;
    --pf-adm-muted-dim:   #8fb8a8;
    --pf-adm-accent:      #C47F3C;      /* LMS-Grün  */
    --pf-adm-accent-blue: #A7C7D9;      /* LMS-Blau  */
    --pf-adm-accent-alt:  #1E1E1E;      /* Grün-Dark */
    --pf-adm-green:       #1a9e55;
    --pf-adm-amber:       #d97706;
    --pf-adm-red:         #dc2626;
    --pf-adm-radius:      0.5rem;
    --pf-adm-radius-sm:   0.35rem;
    --pf-adm-shadow:      0 4px 24px rgba(46, 204, 113, 0.12), 0 1px 4px rgba(0,0,0,0.06);
    --pf-adm-grad:        linear-gradient(135deg, #ECEAE4 0%, #DCE8EF 100%);
    --pf-adm-grad-head:   linear-gradient(135deg, #D9D6CF 0%, #A7C7D9 100%);
}

/* â”€â”€â”€ Tab-Button â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pf-lms-tab.pf-lms-tab-admin {
    color: var(--pf-adm-accent);
    border-bottom-color: transparent;
}
.pf-lms-tab.pf-lms-tab-admin.active {
    color: var(--pf-adm-accent);
    border-bottom-color: var(--pf-adm-accent);
    background: rgba(46, 204, 113, 0.08);
}
.pf-lms-tab.pf-lms-tab-admin:hover:not(.active) {
    color: var(--pf-adm-accent);
    background: rgba(46, 204, 113, 0.05);
}

/* â”€â”€â”€ Tab-Pane Wrapper â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#tab-admin {
    padding: 0;
}

/* â”€â”€â”€ Admin-Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pf-lms-admin-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem 1.25rem;
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid var(--pf-adm-border);
    background: var(--pf-adm-grad-head);
    border-radius: var(--pf-adm-radius) var(--pf-adm-radius) 0 0;
    animation: pf-adm-fade-in 0.4s ease both;
}
.pf-lms-admin-header h2 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f2a1e;
}
.pf-lms-admin-subtitle {
    flex: 1 1 auto;
    margin: 0;
    font-size: 0.9rem;
    color: #2e7d5a;
}
.pf-lms-admin-header .pf-lms-btn {
    flex-shrink: 0;
    margin-left: auto;
    background: linear-gradient(135deg, #C47F3C 0%, #A7C7D9 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.45rem 1rem;
    border-radius: 2rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: filter 0.15s, transform 0.1s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pf-lms-admin-header .pf-lms-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* â”€â”€â”€ Loading / Empty â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pf-lms-admin-loading,
.pf-lms-admin-empty {
    padding: 3rem 2rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--pf-adm-muted);
    background: #F2F0EB;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    animation: pf-adm-fade-in 0.5s ease both;
}

/* â”€â”€â”€ Kurs-Tabelle â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pf-lms-admin-table-wrap {
    overflow-x: auto;
    border-radius: 0 0 var(--pf-adm-radius) var(--pf-adm-radius);
    background: var(--pf-adm-grad);
    border: 1px solid var(--pf-adm-border);
    border-top: none;
    margin-bottom: 0;
}

.pf-lms-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    color: var(--pf-adm-text);
}
.pf-lms-admin-table thead tr {
    background: linear-gradient(135deg, #D9D6CF 0%, #A7C7D9 100%);
    border-bottom: 2px solid rgba(46, 204, 113, 0.35);
}
.pf-lms-admin-table th {
    padding: 0.7rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #1a6e4a;
    white-space: nowrap;
}
.pf-lms-admin-table td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(46, 204, 113, 0.12);
    transition: background 0.18s ease;
}
.pf-lms-admin-table tbody tr:nth-child(odd) td {
    background: #ffffff;
}
.pf-lms-admin-table tbody tr:nth-child(even) td {
    background: #F2F0EB;
}
.pf-lms-admin-table tbody tr:last-child td {
    border-bottom: none;
}
.pf-lms-admin-table tbody tr {
    animation: pf-adm-row-in 0.35s ease both;
}
.pf-lms-admin-table tbody tr:nth-child(2) { animation-delay: 0.04s; }
.pf-lms-admin-table tbody tr:nth-child(3) { animation-delay: 0.08s; }
.pf-lms-admin-table tbody tr:nth-child(4) { animation-delay: 0.12s; }
.pf-lms-admin-table tbody tr:nth-child(5) { animation-delay: 0.16s; }
.pf-lms-admin-table tbody tr:nth-child(6) { animation-delay: 0.20s; }
.pf-lms-admin-table tbody tr:nth-child(7) { animation-delay: 0.24s; }
.pf-lms-admin-table tbody tr:hover td {
    background: #e6fbf2 !important;
    transform: none;
}

.pf-lms-admin-td-title strong {
    display: block;
    font-weight: 700;
    font-size: 0.97rem;
    color: #0f2a1e;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}
.pf-lms-admin-slug {
    color: var(--pf-adm-muted-dim);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

/* â”€â”€â”€ Status-Badges â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pf-lms-admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28em 0.72em;
    border-radius: 2em;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.pf-lms-admin-badge-active {
    background: linear-gradient(135deg, #D9D6CF 0%, #A7C7D9 100%);
    color: #1a7a4a;
    border: 1px solid rgba(46, 204, 113, 0.4);
}
.pf-lms-admin-badge-draft {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid rgba(217, 119, 6, 0.3);
}
.pf-lms-admin-badge-archived {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}
.pf-lms-admin-badge:hover {
    filter: brightness(0.95) saturate(1.2);
    transform: scale(1.05);
    transition: filter 0.15s, transform 0.15s;
}

/* â”€â”€â”€ Aktions-Buttons in Tabelle â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pf-lms-admin-actions {
    white-space: nowrap;
    display: flex;
    gap: 0.4rem;
    align-items: center;
}
.pf-lms-admin-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #ffffff;
    border: 1.5px solid rgba(46, 204, 113, 0.35);
    border-radius: var(--pf-adm-radius-sm);
    cursor: pointer;
    color: #2e7d5a;
    transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.15s, box-shadow 0.18s;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(46, 204, 113, 0.12);
}
.pf-lms-admin-actions button:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.pf-lms-admin-btn-edit:hover {
    color: #1E1E1E;
    border-color: #A7C7D9;
    background: #ebf5fb;
}
.pf-lms-admin-btn-archive:hover {
    color: #d97706;
    border-color: #f59e0b;
    background: #fef3c7;
}
.pf-lms-admin-btn-activate:hover {
    color: #16a34a;
    border-color: #22c55e;
    background: #dcfce7;
}

/* â”€â”€â”€ Edit-Drawer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pf-lms-admin-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 42, 30, 0.35);
    z-index: 900;
    cursor: pointer;
    backdrop-filter: blur(4px);
    animation: pf-adm-fade-in 0.2s ease both;
}
.pf-lms-admin-drawer[hidden],
.pf-lms-admin-drawer-backdrop[hidden] {
    display: none !important;
}
.pf-lms-admin-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(540px, 96vw);
    z-index: 901;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #F2F0EB 0%, #eff8ff 100%);
    border-left: 1px solid rgba(46, 204, 113, 0.3);
    box-shadow: -8px 0 40px rgba(46, 204, 113, 0.12), -2px 0 8px rgba(0,0,0,0.08);
    animation: pf-adm-slide-in-right 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.pf-lms-admin-drawer-inner {
    overflow-y: auto;
    flex: 1;
    padding: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(46, 204, 113, 0.35) transparent;
}
.pf-lms-admin-drawer-inner::-webkit-scrollbar { width: 5px; }
.pf-lms-admin-drawer-inner::-webkit-scrollbar-thumb { background: rgba(46, 204, 113, 0.35); border-radius: 3px; }

.pf-lms-admin-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(46, 204, 113, 0.2);
}
.pf-lms-admin-drawer-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f2a1e;
    letter-spacing: -0.01em;
}
.pf-lms-admin-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(46, 204, 113, 0.25);
    font-size: 1.1rem;
    cursor: pointer;
    color: #4a7c6a;
    border-radius: var(--pf-adm-radius-sm);
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    line-height: 1;
}
.pf-lms-admin-drawer-close:hover {
    color: #dc2626;
    background: #fee2e2;
    border-color: #fca5a5;
}

/* â”€â”€â”€ Formular â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pf-lms-admin-form-row {
    margin-bottom: 1.1rem;
}
.pf-lms-admin-form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (max-width: 440px) {
    .pf-lms-admin-form-row-2col { grid-template-columns: 1fr; }
}

/* Fieldset Reset + Termin-Block */
.pf-lms-admin-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1.1rem;
    min-width: 0;
}
.pf-lms-admin-fieldset > legend {
    float: left;
    width: 100%;
    margin-bottom: 0.35rem;
}
.pf-lms-admin-fieldset > legend + * {
    clear: both;
}

.pf-lms-admin-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #3d7a60;
    margin-bottom: 0.4rem;
}
.pf-lms-admin-label span[aria-hidden] {
    color: #dc2626;
    margin-left: 2px;
}

.pf-lms-admin-input,
.pf-lms-admin-select,
.pf-lms-admin-textarea {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: var(--pf-adm-radius-sm);
    padding: 0.5rem 0.7rem;
    font-size: 0.865rem;
    color: #0f2a1e;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
}
.pf-lms-admin-input::placeholder,
.pf-lms-admin-textarea::placeholder {
    color: #8fb8a8;
    font-style: italic;
}
.pf-lms-admin-input:focus,
.pf-lms-admin-select:focus,
.pf-lms-admin-textarea:focus {
    outline: none;
    border-color: #C47F3C;
    background: #F2F0EB;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
}
.pf-lms-admin-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    padding-right: 2.1rem;
    cursor: pointer;
}
.pf-lms-admin-textarea {
    resize: vertical;
    min-height: 78px;
    line-height: 1.5;
}

/*  On-Demand Toggle */
.pf-lms-admin-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    font-size: 0.865rem;
    color: #0f2a1e;
    margin-bottom: 0.85rem;
    user-select: none;
}
.pf-lms-admin-toggle-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: #fff;
    border: 1.5px solid rgba(46, 204, 113, 0.4);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: background 0.15s, border-color 0.15s;
}
.pf-lms-admin-toggle-label input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #C47F3C 0%, #A7C7D9 100%);
    border-color: #C47F3C;
}
.pf-lms-admin-toggle-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

.pf-lms-admin-schedule-wrap {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: var(--pf-adm-radius-sm);
    padding: 0.85rem;
}
.pf-lms-admin-schedule-fields {
    display: grid;
    gap: 0.7rem;
}

/*  Formular-Aktionsleiste  */
.pf-lms-admin-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(46, 204, 113, 0.2);
}
.pf-lms-admin-form-actions .pf-lms-btn-secondary {
    background: #fff;
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #4a7c6a;
    font-size: 0.82rem;
    padding: 0.45rem 1.1rem;
    border-radius: var(--pf-adm-radius-sm);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pf-lms-admin-form-actions .pf-lms-btn-secondary:hover {
    background: #F2F0EB;
    color: #0f2a1e;
    border-color: #C47F3C;
}
.pf-lms-admin-form-actions .pf-lms-btn-primary {
    background: linear-gradient(135deg, #C47F3C 0%, #A7C7D9 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.45rem 1.3rem;
    border-radius: var(--pf-adm-radius-sm);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: filter 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}
.pf-lms-admin-form-actions .pf-lms-btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(46, 204, 113, 0.4);
}
.pf-lms-admin-form-actions .pf-lms-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    filter: none;
    box-shadow: none;
}

/* ─── Animationen & Keyframes ──────────────────────────────────────────────── */

/* Fade-In */
@keyframes pf-adm-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Slide-up + Fade (Tab-Pane, Header) */
@keyframes pf-adm-slide-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Tabellenzeilen von links einblenden */
@keyframes pf-adm-row-in {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Drawer von rechts einfahren */
@keyframes pf-adm-slide-in-right {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Shimmer-Effekt für Loading */
@keyframes pf-adm-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

/* Sanftes Pulsieren */
@keyframes pf-adm-pulse-soft {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

/* Spin für Ladeicon */
@keyframes pf-adm-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Tab-Pane Eintritt */
#tab-admin.active,
#tab-admin:not([hidden]) {
    animation: pf-adm-slide-up 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Header-Inhalt einblenden */
.pf-lms-admin-header h2,
.pf-lms-admin-subtitle {
    animation: pf-adm-slide-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.pf-lms-admin-subtitle { animation-delay: 0.05s; }
.pf-lms-admin-header .pf-lms-btn { animation: pf-adm-slide-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }

/* Loading-Spinner animieren */
.pf-lms-admin-loading svg,
.pf-lms-admin-loading .pf-lms-svg-icon {
    animation: pf-adm-spin 1.4s linear infinite;
}
.pf-lms-admin-loading {
    animation: pf-adm-shimmer 1.6s ease-in-out infinite;
    background: linear-gradient(
        90deg,
        #ECEAE4 0%, #D9D6CF 25%, #ECEAE4 50%, #A7C7D9 75%, #ECEAE4 100%
    );
    background-size: 800px 100%;
}

/* Shimmer-Skeleton (optional, für leere Zeilen) */
.pf-lms-admin-skeleton-row td {
    background: linear-gradient(
        90deg,
        #F2F0EB 0%, #D9D6CF 30%, #F2F0EB 60%, #DCE8EF 80%, #F2F0EB 100%
    ) !important;
    background-size: 600px 100% !important;
    animation: pf-adm-shimmer 1.4s ease-in-out infinite;
    color: transparent !important;
    border-radius: 4px;
}

/* Neuer-Kurs-Button: Shimmer on hover */
.pf-lms-admin-header .pf-lms-btn {
    position: relative;
    overflow: hidden;
}
.pf-lms-admin-header .pf-lms-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: left 0.4s ease;
}
.pf-lms-admin-header .pf-lms-btn:hover::after {
    left: 160%;
}

/* Primary-Button: Shimmer on hover */
.pf-lms-admin-form-actions .pf-lms-btn-primary {
    position: relative;
    overflow: hidden;
}
.pf-lms-admin-form-actions .pf-lms-btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    transition: left 0.45s ease;
}
.pf-lms-admin-form-actions .pf-lms-btn-primary:hover::after {
    left: 160%;
}

/* Drawer-Head h3: Gradient-Text */
.pf-lms-admin-drawer-head h3 {
    background: linear-gradient(135deg, #C47F3C 0%, #A7C7D9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge: Einblenden mit Scale */
.pf-lms-admin-badge {
    transition: filter 0.15s, transform 0.15s;
    cursor: default;
    animation: pf-adm-fade-in 0.3s ease both;
}

/* Input: Grüner Glow beim Fokus */
.pf-lms-admin-input:focus,
.pf-lms-admin-select:focus,
.pf-lms-admin-textarea:focus {
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.18), 0 1px 4px rgba(46, 204, 113, 0.12);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

/* Formular-Zeilen: Staggered Slide-up */
.pf-lms-admin-form-row,
.pf-lms-admin-fieldset {
    animation: pf-adm-slide-up 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.pf-lms-admin-form-row:nth-child(2),
.pf-lms-admin-fieldset:nth-child(2)  { animation-delay: 0.04s; }
.pf-lms-admin-form-row:nth-child(3),
.pf-lms-admin-fieldset:nth-child(3)  { animation-delay: 0.08s; }
.pf-lms-admin-form-row:nth-child(4),
.pf-lms-admin-fieldset:nth-child(4)  { animation-delay: 0.12s; }
.pf-lms-admin-form-row:nth-child(5),
.pf-lms-admin-fieldset:nth-child(5)  { animation-delay: 0.16s; }
.pf-lms-admin-form-row:nth-child(6),
.pf-lms-admin-fieldset:nth-child(6)  { animation-delay: 0.20s; }
.pf-lms-admin-form-row:nth-child(7)  { animation-delay: 0.24s; }

/* Aktions-Buttons: Active-State Druck */
.pf-lms-admin-actions button:active {
    transform: translateY(0) scale(0.95);
    box-shadow: none;
}

/* Drawer-Innen: Scrollbar Gradient */
.pf-lms-admin-drawer-inner::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(46,204,113,0.5), rgba(52,152,219,0.4));
    border-radius: 3px;
}

/* Fieldset-Termin-Wrap: Sanfter Shine-Rahmen */
.pf-lms-admin-schedule-wrap {
    transition: border-color 0.25s, box-shadow 0.25s;
}
.pf-lms-admin-schedule-wrap:focus-within {
    border-color: rgba(46, 204, 113, 0.45);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

/* ─── Reduced Motion ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .pf-lms-admin-header,
    .pf-lms-admin-header h2,
    .pf-lms-admin-subtitle,
    .pf-lms-admin-header .pf-lms-btn,
    .pf-lms-admin-table tbody tr,
    .pf-lms-admin-badge,
    .pf-lms-admin-form-row,
    .pf-lms-admin-fieldset,
    #tab-admin.active,
    .pf-lms-admin-loading,
    .pf-lms-admin-empty,
    .pf-lms-admin-drawer,
    .pf-lms-admin-drawer-backdrop {
        animation: none !important;
        transition: none !important;
    }
    .pf-lms-admin-loading {
        background: var(--pf-adm-grad);
    }
}

