.seiten-menu {
  z-index: 1;
  position: fixed;
  top: 70px;
  left: 65px;
  width: 265px;
  height: calc(100% - 9%);
  transition: 0.5s;
  transition-property: left;
  background-color: #2f323a;
  padding: 10px;
}

.seiten-menu-right {
  /*z-index: 1;*/
  position: fixed;
  top: 70px;
  right: 0;
  min-width: calc(18.5% - 3%);
  height: calc(100% - 9%);
  transition: 0.5s;
  transition-property: left;
  background-color: #2f323a;
}

.seiten-menu a,
.seiten-menu-right a {
  color: #fff;
  display: block;
  width: 100%;
  line-height: 60px;
  text-decoration: none;
  padding: 0.75rem 0.625rem;
  box-sizing: border-box;
  transition: 0.5s;
  transition-property: background;
  padding: 12px;
}

.seiten-menu a:hover,
.seiten-menu-right a:hover {
  background: #19b3d3;
}

.seiten-menu i,
.seiten-menu-right i {
  padding-right: 10px;
}

@media screen and (min-width: 781px) {
  .content {
    margin-left: 350px;
    position: static;
  }
  footer {
    margin-left: 315px;
  }
}



@media screen and (max-width: 781px) {
  .seiten-menu {
    display: none;
  }
}
.seiten-menu-right {
  display: none;
}
@media screen and (min-width: 1200px) {
  .seiten-menu-right {
    display: block;
  }
}

/* Link Styles */
.sidebar a, 
.seiten-menu a,
.mobile_nav_items a {
    color: rgba(255,255,255,0.8);
    display: flex; /* Flexbox für bessere Icon Ausrichtung */
    align-items: center;
    width: 100%;
    line-height: 50px;
    text-decoration: none;
    padding: 0 25px;
    box-sizing: border-box;
    transition: 0.3s;
    /*font-size: 16px;*/
    border-left: 4px solid transparent;
}

.sidebar a i,
.seiten-menu a i,
.mobile_nav_items a i {
    width: 30px; /* Feste Breite für Icons damit Text fluchtet */
    font-size: 1.2em;
    text-align: center;
    margin-right: 10px;
}

/* Hover & Active States */
.sidebar a:hover, 
.seiten-menu a:hover,
.mobile_nav_items a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-left-color: var(--primary);
    padding-left: 30px; /* Kleiner Slide-Effekt */
}

/* Sub-Menu Styles (Dropdowns) */
.sub-menu {
    background: rgba(0,0,0,0.2);
    display: none; /* JS toggles this */
}
.sub-menu a {
    padding-left: 50px;
    font-size: 14px;
    line-height: 40px;
}

/* Icon Rotation Klasse */
.rotate { transform: rotate(90deg); transition: 0.3s; }

/* Container Styles */
    .sidebar-modern {
        padding: 20px 15px;
        color: #ddd;
        font-family: 'Segoe UI', sans-serif;
    }

    /* Profil Box */
    .profile-box {
        /* Standardmäßig Flex, wird aber unten durch deine Regeln überschrieben */
        display: flex;
        align-items: center;
        gap: 15px;
        padding-bottom: 15px;
        margin-bottom: 5px;
    }
    .profile-avatar {
        width: 50px; height: 50px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255,255,255,0.1);
    }
    .profile-name {
        font-weight: bold;
        color: white;
        font-size: 1.05em;
        margin-bottom: 2px;
    }
    .profile-action {
        font-size: 0.8em;
        color: #888;
        cursor: pointer;
        display: flex; align-items: center; gap: 5px;
        transition: 0.2s;
    }
    .profile-action:hover { color: #4285F4; }
    .profile-action i { transition: 0.3s; }

    /* Submenu (Dropdown) */
    .user-submenu {
        background: rgba(0,0,0,0.2);
        border-radius: 10px;
        margin-bottom: 15px;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.05);
    }
    .sub-link {
        display: flex; align-items: center; gap: 10px;
        padding: 10px 15px;
        color: #aaa;
        text-decoration: none;
        font-size: 0.9em;
        transition: 0.2s;
    }
    .sub-link:hover { background: rgba(255,255,255,0.05); color: white; }
    .sub-link.logout:hover { color: #e74c3c; background: rgba(231, 76, 60, 0.1); }
    .sub-link.login:hover { color: #2ecc71; background: rgba(46, 204, 113, 0.1); }

    .menu-divider {
        height: 1px;
        background: rgba(255,255,255,0.05);
        margin: 10px 0 20px 0;
    }

    /* Navigation Items */
    .nav-item {
        display: flex; align-items: center; gap: 15px;
        padding: 12px 15px;
        border-radius: 12px;
        text-decoration: none;
        color: #ccc;
        transition: all 0.2s ease;
        margin-bottom: 5px;
    }
    
    .icon-box {
        width: 24px; text-align: center; font-size: 1.2em;
    }

    /* Hover State */
    .nav-item:hover {
        background: rgba(255,255,255,0.08);
        color: white;
        transform: translateX(3px);
    }
    .nav-item:hover .icon-box { color: #4285F4; }

    /* Active State */
    .nav-item.active {
        background: linear-gradient(90deg, rgba(66, 133, 244, 0.15) 0%, rgba(66, 133, 244, 0) 100%);
        color: #4285F4;
        border-left: 3px solid #4285F4;
        font-weight: 600;
    }

    /* ------------------------------------------------ */
    /* DEINE SIDEBAR TOGGLE LOGIK                       */
    /* ------------------------------------------------ */
    
    /* Standardmäßig ausblenden (wenn Sidebar zu ist) */
    .sidebar .profile-box {
        display: none;
    }
    .sidebar .menu-divider {
        display: none;
    }

    /* Einblenden, wenn Checkbox aktiv ist (Sidebar offen) */
    #check:checked ~ .sidebar .profile-box {
        display: flex;
    }
    #check:checked ~ .sidebar .menu-divider {
        display: flex;
    }