#blinkText {
  animation: blinker 1s linear infinite;
}

        .notification-icons {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-left: auto;
            padding-right: 20px;
        }
        
        .notification-icon {
            position: relative;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
        }
        
        .notification-badge {
            position: absolute;
            top: -5px;
            right: -10px;
            background-color: red;
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: bold;
        }
        
        .poll-icon.active {
            color: #4CAF50;
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.7; }
            100% { opacity: 1; }
        }
        
        .logo-notification {
            display: block;
            text-align: center;
            padding: 5px;
            background-color: #ff6b6b;
            color: white;
            border-radius: 4px;
            margin-top: 5px;
            animation: blink 1s linear infinite;
            font-size: 0.9rem;
        }
        
        @keyframes blink {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }
        
        .logo-notification a {
            color: white;
            text-decoration: none;
        }
        
        .logo-notification a:hover {
            text-decoration: underline;
        }

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

/* Mega Menu Styles */
.mega-menu-wrapper {
    position: relative;
    margin-right: auto;
    z-index: 1000;
}

.mega-menu {
    position: static;
}

.mega-menu > a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: white;
    border-radius: var(--rounded-lg);
    text-decoration: none;
    transition: var(--transition);
    margin-right: 2rem;
}

.mega-menu > a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-color);
}

.mega-menu-content {
    display: none;
    position: absolute;
    left: 0;
    width: 930px; /* Feste Breite */
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 1rem;
    border: none;
    border-top: 3px solid var(--primary-color);
    animation: fadeIn 0.3s ease-out;
    border-radius: 0 0 var(--rounded-lg) var(--rounded-lg);
}

.mega-menu:hover .mega-menu-content {
    display: block;
}

.mega-menu-grid {
    display: block; /* Änderung von flex zu block */
    background: #ffffff;
}

.mega-menu-column {
    width: 100%;
    padding: 0;
    background: #ffffff;
    margin: 0 0 1rem 0;
}

.mega-menu-column h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    background: #ffffff;
    padding: 0 0.75rem;
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #ffffff;
}

.mega-menu-column ul li {
    margin-bottom: 0.75rem;
    background: #ffffff;
    padding: 0 0.75rem;
}

.mega-menu-column ul li a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--rounded-sm);
    transition: var(--transition);
    background: rgba(200, 230, 201, 0.2);
    width: 100%;
}

.mega-menu-column ul li a:hover {
    background-color: var(--primary-light);
    color: white;
    transform: translateX(5px);
}

.mega-menu-column ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.mega-menu-column ul li a:hover i {
    color: white;
}

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

/* Chat Notification Popup Styles */
.chat-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: var(--rounded-sm);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    max-width: 300px;
    animation: slideIn 0.5s ease-out;
}

.chat-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.chat-notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-notification-content {
    display: flex;
    align-items: center;
}

.chat-notification-avatar {
    margin-right: 10px;
    font-size: 1.5rem;
}

/* PN Notification Popup Styles */
.pm-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0288D1;
    color: white;
    padding: 15px;
    border-radius: var(--rounded-sm);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    max-width: 300px;
    animation: slideIn 0.5s ease-out;
}

.pm-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pm-notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.pm-notification-content {
    display: flex;
    align-items: center;
}

.pm-notification-avatar {
    margin-right: 10px;
    font-size: 1.5rem;
}

.pm-notification-preview {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Header Layout */
header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--light-text);
    padding: 1rem 0;
    box-shadow: 0 4px 12px var(--shadow-color);
    position: relative;
}

.header-container {
    display: flex;
    align-items: center;
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo {
    margin-left: 2rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin: 0;
    white-space: nowrap;
}

.custom-header-content {
    text-align: center;
    padding: 0rem 0;
    margin-top: 1rem;
}

/* Admin Return Button */
.admin-return-btn {
    margin-left: 50%;
    margin-right: 1rem;
}

.admin-return-btn a {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: red;
    color: black;
    border-radius: var(--rounded-sm);
    text-decoration: none;
    transition: var(--transition);
}

.admin-return-btn a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.admin-return-btn i {
    margin-right: 8px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mega-menu-wrapper {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .mega-menu > a {
        width: 100%;
        margin-right: 0;
        justify-content: center;
    }
    
    .logo {
        margin-left: 0;
        margin-bottom: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .mega-menu-content {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 1rem;
        border-radius: 0;
        border: none;
        border-top: 3px solid var(--primary-color);
    }
    
    .mega-menu-grid {
        margin: -1rem;
        padding: 1rem;
    }
    
    .mega-menu-column {
        min-width: 100%;
    }
    
    .admin-return-btn {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }
}