/* Modern Header */
.header-modern {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 0, 255, 0.05) 0%, 
        rgba(0, 255, 255, 0.05) 50%, 
        rgba(255, 0, 255, 0.05) 100%);
    opacity: 0.5;
    pointer-events: none;
}

.header-content-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.logo-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: opacity 0.2s;
}

.logo-modern:hover {
    opacity: 0.9;
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px rgba(255, 0, 255, 0.5));
}

.logo-text-modern {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text-main {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--neon-pink);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px var(--neon-pink), 0 0 40px var(--neon-pink);
}

.logo-text-sub {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 15px var(--neon-cyan);
}

.logo-glow-modern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.3), transparent 70%);
    filter: blur(30px);
    z-index: -1;
    opacity: 0.5;
}

.nav-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
}

.nav-link-modern {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-link-modern:hover,
.nav-link-modern.active {
    color: var(--neon-cyan);
    background: rgba(0, 255, 255, 0.1);
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    display: block;
    flex-shrink: 0;
}

.nav-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    flex-shrink: 0;
}

.nav-username {
    display: block;
    white-space: nowrap;
    line-height: 1.2;
}

.btn-nav-modern {
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--neon-cyan);
    background: transparent;
    color: var(--neon-cyan);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-nav-modern:hover {
    background: var(--neon-cyan);
    color: var(--bg-primary);
}

.btn-nav-primary {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    border: none;
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    transition: opacity 0.2s;
}

.btn-nav-primary:hover {
    opacity: 0.9;
}

.nav-dropdown-modern {
    position: relative;
    display: inline-block;
}

.dropdown-menu-modern {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.2);
    z-index: 1000;
    white-space: nowrap;
    pointer-events: none;
    margin-top: 0.25rem;
}

.nav-dropdown-modern:hover .dropdown-menu-modern,
.nav-dropdown-modern.dropdown-open .dropdown-menu-modern {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Sicherstellen, dass Dropdowns beim Verlassen geschlossen werden (nur wenn nicht per Klick geöffnet) */
.nav-dropdown-modern:not(:hover):not(.dropdown-open) .dropdown-menu-modern {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.dropdown-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.dropdown-arrow {
    font-size: 0.7rem;
    display: inline-block;
    margin-left: 0.25rem;
}

.dropdown-item-modern {
    display: block !important;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    font-size: 0.9rem;
    white-space: nowrap;
    line-height: 1.5;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.dropdown-item-modern:hover {
    background: rgba(0, 255, 255, 0.15);
    color: var(--neon-cyan);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--neon-cyan);
    transition: all 0.3s;
    box-shadow: 0 0 5px var(--neon-cyan);
}

/* Modern Hero Section */
.hero-section-modern {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 0;
    margin-top: -1.5rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, rgba(10, 10, 10, 1) 0%, rgba(26, 26, 26, 1) 100%);
    z-index: 0;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 0, 255, 0.2), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(0, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200% 200%;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-title-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hero-title-line {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero-title-main {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 8px;
    text-transform: uppercase;
}

.neon-text-glow {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(255, 0, 255, 0.8)) 
            drop-shadow(0 0 60px rgba(0, 255, 255, 0.6));
}

.hero-subtitle-modern {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions-modern {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    color: white;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 50px rgba(255, 0, 255, 0.8);
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent);
    transition: width 0.6s, height 0.6s;
}

.btn-hero-primary:hover .btn-glow {
    width: 300px;
    height: 300px;
}

.btn-hero-secondary {
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.btn-hero-secondary:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
}

/* Dashboard Section */
.dashboard-section {
    padding: 3rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

.dashboard-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.2);
}

.dashboard-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

.dashboard-card h3 {
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.dashboard-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Modern Features Section */
.features-section-modern {
    padding: 5rem 0;
    background: var(--bg-primary);
    position: relative;
}

.section-title-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    max-width: 200px;
}

.section-title-text {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.features-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card-modern {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

.feature-card-modern:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 5px 30px rgba(0, 255, 255, 0.2);
}

.feature-icon-modern {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.6));
}

.feature-card-modern h3 {
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.feature-card-modern p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Benachrichtigungen */
.notifications-dropdown {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0080;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.8);
}

.notifications-menu {
    min-width: 350px;
    max-width: 400px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.notifications-header h3 {
    margin: 0;
    color: var(--neon-cyan);
    font-size: 1.1rem;
}

.btn-mark-all-read {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mark-all-read:hover {
    background: var(--neon-cyan);
    color: var(--bg-primary);
}

.notifications-list {
    max-height: 350px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.notification-item:hover {
    background: rgba(0, 255, 255, 0.05);
}

.notification-item.unread {
    background: rgba(0, 255, 255, 0.08);
    border-left: 3px solid var(--neon-cyan);
}

.notification-item.read {
    opacity: 0.7;
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    color: var(--neon-cyan);
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.notification-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.7;
}

.notification-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.notification-empty,
.notification-loading {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s;
}

.radio-label:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 255, 255, 0.05);
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--neon-cyan);
}

.radio-label span {
    color: var(--text-primary);
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-modern {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-section-modern {
        min-height: 60vh;
        padding: 3rem 0;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .features-grid-modern {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

