/* Lars Ritter Design Styleguide - LMS Implementation */

/* ==============================================
   VARIABLEN UND GRUNDLAGEN
   ============================================== */
:root {
    /* Grundfarben */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;

    /* Akzentfarben */
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    
    --red-300: #fca5a5;
    --red-400: #f87171;
    --red-500: #ef4444;
    
    --yellow-300: #fde047;
    --yellow-400: #facc15;
    --yellow-500: #eab308;
    
    --purple-300: #c4b5fd;
    --purple-400: #a78bfa;
    --purple-500: #8b5cf6;
}

/* Haupt-Hintergrund */
body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    /* Padding wird jetzt über header.php global gesetzt */
}

/* ==============================================
   NAVIGATION
   ============================================== */
#main-header.header-hidden {
    transform: translateY(-100%);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .logo-text {
        display: none;
    }
}

/* Admin Dropdown */
.admin-dropdown {
    position: relative;
    display: inline-block;
}

.admin-dropdown-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.admin-dropdown-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.admin-dropdown:hover .admin-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.admin-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--blue-400);
}

.admin-dropdown-item i {
    width: 1rem;
    text-align: center;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

#mobile-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 400px;
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    pointer-events: none;
}

#mobile-menu-button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#mobile-menu-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-size: 1rem;
    font-weight: 500;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--blue-400);
}

.mobile-nav-link.active {
    background: rgba(59, 130, 246, 0.2);
    border-left: 3px solid var(--blue-400);
    color: var(--blue-400);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--blue-400);
}

/* Mobile Admin Section */
.mobile-admin-section {
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-admin-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-admin-header.active {
    color: var(--blue-400);
    background: rgba(59, 130, 246, 0.1);
}

.mobile-admin-link {
    margin-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

/* Mobile User Section */
.mobile-user-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.mobile-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.mobile-user-details {
    flex: 1;
}

.mobile-username {
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ==============================================
   BUTTONS
   ============================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    justify-content: center;
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-400) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-300) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.6);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(51, 65, 85, 0.8);
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, var(--green-500) 0%, var(--green-400) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--green-400) 0%, var(--green-300) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--red-500) 0%, var(--red-400) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--red-400) 0%, var(--red-300) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Button States */
.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: white;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Button Styles */
.mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-btn-primary {
    background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-400) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.mobile-btn-primary:hover {
    background: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-300) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.mobile-btn-secondary {
    background: rgba(30, 41, 59, 0.6);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.mobile-btn-secondary:hover {
    background: rgba(51, 65, 85, 0.8);
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-btn-danger {
    background: linear-gradient(135deg, var(--red-500) 0%, var(--red-400) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.mobile-btn-danger:hover {
    background: linear-gradient(135deg, var(--red-400) 0%, var(--red-300) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* ==============================================
   FORMS
   ============================================== */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.input-dark {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.input-dark:focus {
    outline: none;
    border-color: var(--blue-400);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-dark::placeholder {
    color: var(--text-secondary);
}

select.input-dark {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* ==============================================
   GLASSMORPHISM EFFECTS
   ============================================== */
.glass {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    box-shadow: 0 6px 32px rgba(0,0,0,0.18);
}

/* ==============================================
   CARDS
   ============================================== */
.feature-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.course-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.course-details-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 6px 32px rgba(0,0,0,0.18);
}

/* ==============================================
   NAVIGATION LINKS
   ============================================== */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--blue-400);
}

.nav-link.active {
    background: rgba(59, 130, 246, 0.2);
    color: var(--blue-400);
}

/* ==============================================
   STATUS BADGES
   ============================================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-success {
    background: rgba(34, 197, 94, 0.2);
    color: var(--green-400);
}

.status-warning {
    background: rgba(234, 179, 8, 0.2);
    color: var(--yellow-400);
}

.status-active {
    background: rgba(34, 197, 94, 0.2);
    color: var(--green-400);
}

.status-inactive {
    background: rgba(239, 68, 68, 0.2);
    color: var(--red-400);
}

.status-admin {
    background: rgba(139, 92, 246, 0.2);
    color: var(--purple-400);
}

.status-user {
    background: rgba(59, 130, 246, 0.2);
    color: var(--blue-400);
}

/* ==============================================
   PROGRESS BAR
   ============================================== */
.progress-bar {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, var(--blue-500), var(--green-500));
    border-radius: 0.5rem;
    transition: width 0.3s ease;
}

/* ==============================================
   TABLES
   ============================================== */
.table-container {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.table-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ==============================================
   UTILITIES
   ============================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--blue-400), var(--purple-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

.focus-ring:focus-visible {
    outline: 2px solid var(--blue-400);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* ==============================================
   LAYOUT SECTIONS
   ============================================== */
.page-wrapper {
    min-height: 100vh;
    position: relative;
}

.page-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.page-wrapper > section {
    position: relative;
    z-index: 1;
}

.hero-section {
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero-content {
    max-width: 4xl;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.stats-section {
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.stat-item {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-500), var(--purple-500));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item.participants::before {
    background: linear-gradient(90deg, var(--blue-500), var(--blue-400));
}

.stat-item.availability::before {
    background: linear-gradient(90deg, var(--green-500), var(--green-400));
}

.stat-item.anonymity::before {
    background: linear-gradient(90deg, var(--purple-500), var(--purple-400));
}

.stat-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.stat-icon i {
    font-size: 2rem;
    color: white;
}

.stat-content {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-section {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.courses-section {
    padding: 4rem 0;
}

.cta-section {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(51, 65, 85, 0.5) 100%);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ==============================================
   USER INTERFACE
   ============================================== */
.user-badge {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    height: 2.5rem;
}

.user-badge:hover {
    background: rgba(51, 65, 85, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-badge-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-badge-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--blue-400);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-badge-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.8rem;
}

.user-badge-role {
    background: rgba(59, 130, 246, 0.2);
    color: var(--blue-400);
    padding: 0.125rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-badge-role.admin {
    background: rgba(139, 92, 246, 0.2);
    color: var(--purple-400);
}

/* ==============================================
   AUTH PAGES
   ============================================== */
.auth-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.auth-link-container {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.auth-link-container a {
    color: var(--blue-400);
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
}

.auth-link-container a:hover {
    color: var(--blue-300);
    text-decoration: underline;
}

/* ==============================================
   COURSES GRID
   ============================================== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */
@media (max-width: 768px) {
    /* Mobile Padding-Anpassung wird über header.php gesteuert */
    
    .glass {
        padding: 1rem;
        border-radius: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .user-badge-name {
        display: none;
    }
    
    .user-badge-role {
        display: none;
    }
    
    .user-badge {
        padding: 0.5rem;
        min-width: 2.5rem;
        justify-content: center;
        height: 2.5rem;
    }
    
    .user-badge-content {
        gap: 0;
    }
}

@media (max-width: 640px) {
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 4rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    #mobile-menu-button {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }
}

/* ==============================================
   SCROLLBAR
   ============================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.7);
}

/* ==============================================
   ANIMATIONS
   ============================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ==============================================
   MODAL
   ============================================== */
.modal-bg {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ==============================================
   SPECIAL COMPONENTS
   ============================================== */
.upload-button {
    cursor: pointer;
}

.file-input-hidden {
    display: none;
}

.phd-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.phd-notice:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

.phd-notice i {
    font-size: 1rem;
    background: linear-gradient(135deg, var(--purple-400), var(--blue-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.phd-notice span {
    color: var(--text-primary);
    font-weight: 600;
}

.footer-bottom {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.5);
}

/* ==============================================
   RESPONSIVE ADJUSTMENTS
   ============================================== */
@media (max-width: 1024px) {
    .course-details-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .phd-notice {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    .phd-notice i {
        font-size: 0.9rem;
    }
    
    .phd-notice span {
        font-size: 0.75rem;
    }
}

@media (max-width: 600px) {
    .course-details-card {
        padding: 1rem;
        border-radius: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .lg\:col-span-1 {
        grid-column: span 1 / span 1;
    }
}

/* ==============================================
   TABLE RESPONSIVE
   ============================================== */
@media (max-width: 640px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-responsive table {
        min-width: 600px;
    }
} 