.user_creator {
  position: absolute;
  color: #f2f2f2;
  text-align: center;
  padding: 15px 5px;
  text-decoration: none;
  font-size: 17px;
}

.user_image {
  width: 50px;
  height: 50px;
  border-radius: 100px;
  margin-bottom: 10px;
}

footer {
  bottom: 0;
  display: block;
  text-decoration: none;
  font-size: 24px;
  display: block;
  background: #384859;
  width: (100% - 250px);
}

.datenschutz-desk a {
  text-decoration: none;
  font-size: 24px;
  color: #ffffff;
  background: #384859;
}

.datenschutz-mobil a {
  text-decoration: none;
  font-size: 24px;
  color: #ffffff;
  background: #384859;
}

.rotate {
  transform: rotate(90deg);
}

.ion-ios-log-out {
  color: red;
}
.ion-ios-log-in {
  color: green;
}
.right {
  float: right;
}
html {
  overflow-y: scroll;
  scrollbar-color: gray;
}

/**/
body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  background-color: #2f323a;
}

header {
  z-index: 1000;
  position: fixed;
  background: #22242a;
  padding: 20px;
  width: calc(100% - 0%);
  top: 0;
  /*height: 30px;*/
}

.left_area h3 {
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  font-size: 22px;
  font-weight: 900;
}

.left_area span {
  color: #19b3d3;
}

.logout_btn {
  padding: 5px;
  background: #19b3d3;
  text-decoration: none;
  float: right;
  /*margin-top: -30px;*/
  margin-right: 40px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  transition: 0.5s;
  transition-property: background;
}

.logout_btn:hover {
  background: #0b87a6;
}

.sidebar {
  z-index: 10010;
  top: 0;
  background: #27292f;
  margin-top: 70px;
  /*padding-top: 30px;*/
  position: fixed;
  left: -185px;
  width: 250px;
  height: calc(100% - 8%);
  transition: 0.5s;
  transition-property: left;
  overflow-y: auto;
  overflow-x: hidden;
}

.profile_info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sidebar .profile_info .profile_image {
  width: 100px;
  height: 100px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.sidebar .profile_info h4 {
  color: #ccc;
  margin-top: 0;
  margin-bottom: 20px;
}
.sidebar .profile_info a {
  padding-left: 0px;
  display: block;
}
.sidebar a {
  color: #fff;
  display: block;
  width: 100%;
  line-height: 60px;
  text-decoration: none;
  padding-left: 40px;
  box-sizing: border-box;
  transition: 0.5s;
  transition-property: background;
  margin-left: 165px;
}

.sidebar a:hover {
  background: #19b3d3;
}

.sidebar i {
  padding-right: 10px;
}

label #sidebar_btn {
  z-index: 1;
  color: #fff;
  position: fixed;
  cursor: pointer;
  /*left: 300px;*/
  font-size: 20px;
  margin: 5px 0;
  transition: 0.5s;
  transition-property: color;
}
span #sidebar_btn {
  z-index: 1;
  color: #fff;
  position: fixed;
  cursor: pointer;
  /*left: 300px;*/
  font-size: 20px;
  margin: 5px 0;
  transition: 0.5s;
  transition-property: color;
}

label #sidebar_btn:hover {
  color: #19b3d3;
}

#check:checked ~ .sidebar {
  left: 0;
  padding-top: 30px;
}

#check:checked ~ .topnav {
  min-width: 85%;
}

#check:checked ~ .sidebar a span {
  display: inline-block;
}
.sidebar a span {
  display: none;
}

#check:checked ~ .sidebar a {
  margin-left: 0;
}

.sidebar a {
  font-size: 20px;
  margin-left: 165px;
  width: 100%;
}

.content {
  /*width: calc(100% - 0px);*/
  margin-top: 70px;
  padding: 20px;
  margin-left: 65px;
  background-color: #525459;
  min-height: 100vh;
  transition: 0.5s;
  /*display: block;*/
  /*min-width: 100vh;*/
  /*position: sticky;*/
  /*position: fixed;*/
  /*overflow-y: hidden;*/
  /*overflow-x: hidden;*/
}

#check:checked ~ .content {
  /*margin-left: 230px;*/
  /*color: #009688;*/
}
#check:checked ~ body {
  background-color: rgba(0, 0, 0, 0.4);
}

#check:checked ~ .sidebar .profile_info {
  display: flex;
}

.sidebar .profile_info {
  display: none;
}

#check {
  display: none;
}

.mobile_nav {
  display: none;
}

/*.content .card p {
  background: #fff;
  padding: 15px;
  margin-bottom: 10px;
  font-size: 14px;
  opacity: 0.8;
}
.content .card a {
  background: wheat;
  padding: 15px;
  margin-bottom: 10px;
  font-size: 14px;
  opacity: 0.8;
}*/
/* Responsive CSS */
@media screen and (min-width: 780px) {
  .left_area h3 {
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 900;
    z-index: 1;

    position: fixed;
    cursor: pointer;
    left: 50px;
    font-size: 20px;
    margin: 5px 0;
    transition: 0.5s;
    transition-property: color;
  }

  .datenschutz-mobil {
    display: none;
  }

  footer {
    margin-left: 65px;
  }
}

@media screen and (max-width: 780px) {
  .right_area{
    display: none;
  }
  .datenschutz-desk {
    display: none;
  }
  .sidebar {
    display: none;
  }

  #sidebar_btn {
    display: none;
  }

  .content {
    margin-left: 0;
    margin-top: 17vh;
    padding: 10px 20px;
    transition: 0s;
  }
  .logout_btn {
    display: none;
    /*margin-top: -30px;*/
  }
  #check:checked ~ .content {
    margin-left: 0;
  }

  .mobile_nav {
    display: block;
    width: calc(100% - 0%);
    position: fixed;
    top: 8vh;
    z-index: 50;
  }

  .nav_bar {
    background: #222;
    width: (100% - 0px);
    /*margin-top: 70px;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
  }

  .nav_bar .mobile_profile_image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
  }

  .nav_bar .nav_btn {
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: 0.5s;
    transition-property: color;
  }

  .nav_bar .nav_btn:hover {
    color: #19b3d3;
  }

  .mobile_nav_items {
    background: #2f323a;
    display: none;
  }

  .mobile_nav_items a {
    color: #fff;
    display: block;
    text-align: center;
    letter-spacing: 1px;
    line-height: 60px;
    text-decoration: none;
    box-sizing: border-box;
    transition: 0.5s;
    transition-property: background;
  }

  .mobile_nav_items a:hover {
    background: #19b3d3;
  }

  .mobile_nav_items i {
    padding-right: 10px;
  }

  .active {
    display: block;
  }
}

/*Cookie Banner*/

#footer-cookie,
#footer-cookie * {
  box-sizing: border-box;
}

#footer-cookie {
  display: none;
  position: fixed;
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: 60px;
  padding-left: 30px;
  padding-right: 30px;
  line-height: 60px;
  background: #303030;
  color: #fff;
  z-index: 1001;
}

#footer-cookie a {
  color: #fff;
}

#footer-cookie #description {
  float: left;
}

#footer-cookie #settin {
  float: right;
  padding-right: 10px;
}

#footer-cookie #settin a {
  border: 1px solid #fff;
  padding: 5px 10px;
  text-decoration: none;
}

#footer-cookie #accept {
  float: right;
}

#footer-cookie #accept a {
  border: 1px solid #fff;
  padding: 5px 10px;
  text-decoration: none;
}

@media (max-width: 1200px) {
  #footer-cookie {
    padding-top: 30px;
    padding-bottom: 30px;
    line-height: inherit;
    height: auto;
  }

  #footer-cookie #description {
    width: 100%;
  }

  #footer-cookie #settin {
    width: 100%;
    margin-top: 15px;
  }

  #footer-cookie #settin a {
    width: 100%;
    display: block;
    text-align: center;
  }

  #footer-cookie #accept {
    width: 100%;
    margin-top: 15px;
  }

  #footer-cookie #accept a {
    width: 100%;
    display: block;
    text-align: center;
  }
}


/* Sidebar Neu */

/* 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;
    }
    
    .sidebar .user-menu{display: none;}

    #check:checked ~ .sidebar .user-menu {
        display: flex;
    }