﻿

/* Hamburger Icon (sichtbar oben links) */
#nav-icon1 {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;

    z-index: 1100; /* Damit es sichtbar bleibt */
}

    /* Die drei Linien des Hamburger-Icons */
    #nav-icon1 span {
        display: block;
        width: 100%;
        height: 6px;
        background: var(--ov-icon-bg, black);
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
    }

    /* Transformation für das geöffnete Menü */
    #nav-icon1.open span:nth-child(1) {
        transform: translateY(12px) rotate(45deg);
    }

    #nav-icon1.open span:nth-child(2) {
        opacity: 0;
    }

    #nav-icon1.open span:nth-child(3) {
        transform: translateY(-12px) rotate(-45deg);
    }

/* Standardmäßiges (ausgeblendetes) Menü */
/* Container für das Menü und das Icon */
.nav-container {
    position: fixed; /* Setzt den Bezugspunkt für absolute Positionen */
    width: 100%;
    height: 60px; /* Stellt sicher, dass der Header sichtbar bleibt */
    background-color: transparent; /* Hintergrundfarbe für den Header */
    display: flex;
    align-items: center;
    z-index: 10;
}
    .nav-container.active {
        width: 100%;
        height: 100%;
    }

.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--ov-nav-bg);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

    /* Menü wird aktiv */
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

/* Navigationselemente */
.nav-item {
    display: block;
    padding: 1rem 2rem;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.3s;
}

    .nav-item:hover {
        color: #ffcc00;
    }


/* Ab 600px: Normales vertikales Menü */
@media (min-width: 600px) {
    .nav-container {
        /*position: relative;
        top: 0;
        left: 0;
        width: 80px;*/ /* Sidebar width */
        /*height: 100%;
        background-color: transparent;*/ /*rgba(0, 0, 0, 0.8);*/
        /*display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 10px;
        z-index: 1000;  
        box-sizing: border-box;    
        float: left;*/
        position: fixed;
        top: 0;
        left: 0;
        width: 60px; /* Default collapsed width */
        height: 100%;
        background-color: var(--ov-nav-bg);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 10px;
        z-index: 1000;
        box-sizing: border-box;
        transition: width 0.3s ease-in-out;
        z-index: 10;
    }
    .nav-container.active {
        width: 200px;     
    }
    
/* Desktop Menu (always visible, starts below the icon) */
.nav-menu {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /*opacity: 1;*/
    visibility: hidden;
    padding: 10px;
    float: left;
    background-color: transparent;
}
        .nav-menu.active {
        /*opacity: 1;*/
        visibility: visible;
    }


    .nav-item {
        /*color: #fff;*/
        font-size: 1rem;
        padding: 10px;
        width: 100%;
    }

        .nav-item:hover {
            color: #007bff;
        }

}


@media (min-width: 600px) {
    #nav-icon1 {
        position: sticky;
        margin-bottom: 20px;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row; /* Ensures items stay in a horizontal line */
    gap: 10px;
    padding: 10px;
}

    .pagination button {
        background: #007bff;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        border-radius: 4px;
        transition: 0.3s;
        width: auto;
    }

        .pagination button:hover {
            background: #0056b3;
        }

        .pagination button:disabled {
            background: #ccc;
            cursor: not-allowed;
        }

.page-number {
    font-weight: bold;
    padding: 5px 10px;
}

/* Notification Badge - WhatsApp style using data attributes */
.menu-item-with-notification-badge .event-icon {
    position: relative !important;
}

.menu-item-with-notification-badge .event-icon::after {
    content: attr(data-count);
    position: absolute;
    top: -3px;  /* Moved 5px down from -8px */
    right: -3px; /* Moved 5px left from -8px */
    background-color: #dc2626; /* Red background */
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1001;
    border: 2px solid white; /* White border for better visibility */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.menu-item-with-notification-badge .event-icon[data-count="0"]::after,
.menu-item-with-notification-badge .event-icon:not([data-count])::after {
    display: none;
}

