html, body {
    margin: 0px;
    padding: 0px;
    width: 100vw;
    background-color: gray;
    overflow-x: hidden;
}

.video {
    display: block;
    margin-bottom: 50px;
    width: 100%;
    height: 100vh;
    object-fit: cover;
}
/*------------------------------------------------Account------------------------------------------------*/

#account-item-wrapper {
    width: 8%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
}

#account-item-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#wishlist-item-wrapper {
    width: 8%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
}

#wishlist-item-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: #333333;
  display: flex;
}

ul li a {
  display: block;
  color: white;
  padding: 14px 16px;
  text-decoration: none;
  cursor: pointer;

}

ul li a:hover {
  background-color: #222;
}

ul li a.active {
    background-color: #111111;
}

/*------------------------------------------------NAVBAR------------------------------------------------*/

#navbar {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    box-sizing: border-box;
    height: 60px;
    padding: 15px 30px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.75) 20%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.25) 70%, rgba(0,0,0,0.05) 90%, rgba(0,0,0,0) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 350px;
    z-index: 900;
}

#navbar a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-family: 'Roboto', sans-serif;
    font-size: x-large;
    text-transform: uppercase;
    font-weight: 700;
    padding-top: 35px;
}

/*------------------------------------------------SEITENLEISTE------------------------------------------------*/

#sidebar-button {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 35px;
    background: transparent;
    border: none;
    padding: 0;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

#sidebar {
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 20%;
    height: 100vh;
    background-color: #222;
    padding: 80px 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
}

#sidebar.open {
    transform: translateX(0);
    z-index: 1000;
}

.menu-item {
    display: flex;
    align-items: center;
    height: 40px;
    gap: 15px;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 12px;
    border-radius: 10px;
    transition: 0.2s;
}

.menu-item:hover {
    background-color: #333;
}

#account-submenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100vh;
    box-sizing: border-box;
    background-color: #111;
    padding: 15px;
    padding-left: 22.7%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

#account-submenu.open {
    transform: translateX(0);
    z-index: 999;
}

/* Login START */

.button-link {
    text-decoration: none;
}

a,
a:visited,
a:hover,
a:active {
    text-decoration: none;
}

.login-info-wrapper{
    width: 100%;
    padding: 5px;
}

.login-label{
    width: 100%;
    color: white;
    font-size: 20px;
}

#login-button-wrapper-1{
    width: 100%;
    padding: 5px;
    padding-top: 15px;
    display: flex;
}

#login-button-wrapper-2{
    width: 100%;
    padding: 5px;
    display: flex;
}

#login-username{
    padding: 3px 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 60%;
}

#login-password {
    padding: 3px 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 60%;
}

#login-button {
    background-color: #333;
    color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 20%;
}

#forgot-password-button {
    background-color: #333;
    color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 35%;
    margin-left: 10px;
}

#logout-button {
    background-color: #333;
    color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 20%;
}

/* Login ENDE */

/* Register START */

.register-wrapper{
    width: 100%;
    padding: 5px;
}

.register-label{
    width: 100%;
    color: white;
    font-size: 20px;
}

#register-username{
    padding: 3px 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 60%;
}

#register-mail{
    padding: 3px 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 60%;
}

#register-button {
    background-color: #333;
    color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 20%;
}

#register-button-wrapper {
    width: 100%;
    padding: 5px;
    padding-top: 15px;
}

#register-password,
#register-password-confirm {
    padding: 3px 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 60%;
}

/* Register ENDE */


#logged-in {
    visibility: hidden;
    display: none;
    width: 100%;
    color: white;
}
#logged-in.open {
    visibility: visible;
    display: flex;
    align-items: center;    /* Zentriert die Elemente horizontal */
    flex-direction: column; /* Elemente untereinander */
}

#not-logged-in {
    visibility: visible;
    display: block;
    width: 100%;
    color: white;
}
#not-logged-in.open {
    visibility: hidden;
    display: none;
}

#wishlist-submenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100vh;
    box-sizing: border-box;
    background-color: #111;
    padding: 15px;
    padding-left: 22.7%;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

#wishlist-submenu.open {
    transform: translateX(0);
    z-index: 999;
}
/*------------------------------------------------WISHLIST-ITEM------------------------------------------------*/

#wishlist-header {
    margin-bottom: 10px;;
}

#wishlist-marke-header {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    width: 175px;
    border: 1px solid black;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    margin-left: 10px;
}

#wishlist-titel-header {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    width: 140px;
    border: 1px solid black;
}

#wishlist-zulassungsdatum-header {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    width: 75px;
    border: 1px solid black;
}

#wishlist-preis-header {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    width: 155px;
    border: 1px solid black;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.wishlist-item {
    box-sizing: border-box;
    background-color: darkgray;
    border: 0.25vw solid black;
    border-radius: 10px;
    height: 60px;
    margin-bottom: 0px;
    display: flex;
    align-items: center;
}

.wishlist-marke-logo {
    width: 6%;
    aspect-ratio: 1;
}

.wishlist-marke-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wishlist-marke-titel {
    font-size: 20px;
    font-weight: bold;
    width: 150px;
    text-align: center;
}

.wishlist-item-titel {
    font-size: 20px;
    font-weight: bold;
    width: 140px;
    text-align: center;
}

.wishlist-item-zulassungsdatum {
    font-size: 20px;
    font-weight: bold;
    width: 75px;
    text-align: center;
}

.wishlist-preis {
    font-size: 20px;
    font-weight: bold;
    width: 125px;
    text-align: center;
}

.wishlist-heart {
    width: 5%;
    aspect-ratio: 1;
}

.wishlist-heart img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

/*------------------------------------------------SUBMENU------------------------------------------------*/

#login,
#register {
    visibility: hidden;
    display: none;
    width: 100%;
    justify-content: center;
    align-items: center;
}

#login.open,
#register.open {
    visibility: visible;
    display: block;
    width: 80%;
    padding: 10px 50px; 
}

#loginreg-list {
    visibility: visible;
    display: block;
}
#loginreg-list.close {
    visibility: hidden;
    display: none;
}

/*------------------------------------------------DATABASE-WRAPPER------------------------------------------------*/

#database-wrapper {
    background-color: lightgray;
    border: 0.2vw solid darkgray;
    border-radius: 15px;
    width: 90%;
    height: auto;
    margin: 0 auto;
    margin-bottom: 50px;
    padding: 15px;
}

/*------------------------------------------------FILTER-BAR------------------------------------------------*/

.filter-bar form {
    width: 100%;
}

#attribute-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-group input,
.form-group select {
    width: 100%;
    box-sizing: border-box;
}

.price-filter-min-group, .price-filter-max-group {
    display: flex;
    flex-direction: column;
}

.filter-bar input[type="text"], .filter-bar select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.filter-bar input[type="submit"] {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: #333;
    color: white;
    cursor: pointer;
}

.filter-bar input[type="submit"]:hover {
    background: #555;
}

.brand-group {
    display: flex;
    flex-direction: column;
}

.order-group {
    width: 100px;
    display: flex;
}

/*---------------------------------------------FILTER-BUTTONS---------------------------------------------*/

#sort-button {
    height: 30px;
    padding: 0 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    color: black;
    font-size: 16px;
}

#create-button {
    visibility: hidden;
    display: none;
    height: 30px;
    padding: 0 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: green;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

#create-button.open {
    visibility: visible;
    display: block;
}

#refresh-button {
    visibility: hidden;
    display: none;
    background: white;
    padding: 0;
    cursor: pointer;
    aspect-ratio: 1;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
}

#refresh-button.open {
    visibility: visible;
    display: flex;
}

#refresh-button img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/*-------------------------------------------Suchleiste------------------------------------------*/

#suchleiste-wrapper {
    width: 100%;
    padding: 15px;
    justify-content: center;
    align-items: center;
    display: flex;
    
}

#suchleiste-wrapper form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 50%;
}
#suchleiste {
    width: 25%;
}

/*------------------------------------------------ITEMS------------------------------------------------*/

.item-img-wrapper {
    height: 40%;
    border: 0.25vw solid black;
    width: 100%;
    object-fit: cover;
}


.item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-bar {
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5%;
    justify-content: center;
}

.item {
    width: 23%;
    height: auto;
    margin: 0;
    margin-bottom: 1.5%;
    box-sizing: border-box;
    background-color: darkgray;
    border: 0.25vw solid black;
    border-radius: 10px;
    align-items: center;
    flex-direction: column;
    display: flex;
    font-family: Arial, Helvetica, sans-serif;
    font-style: normal;
}

.item-titel {
    color: black;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-weight: bold;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.main-1,
.main-2,
.main-3 {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.main-3-motorbike {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.main-4 {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.main-name {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.section-1,
.section-2,
.section-3,
.section-4,
.section-5,
.section-6,
.section-7 {
    width: 48%;
    box-sizing: border-box;
    background-color: lightgray;
    border: 3px solid black;
    border-radius: 10px;
    text-align: center;
    font-size: large;
}

.section-3,
.section-4,
.section-5,
.section-6 {
    font-size: x-large;
}

.section-7 {
    font-size: xx-large;
}

.section-8 {
    position: absolute;
    right: 10px;
}

.section-motorbike-getriebe {
    font-size: large;
    width: 48%;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: lightgray;
    border: 3px solid black;
    border-radius: 10px;
    text-align: center;
}

.heart-img {
    height: 40px;
    cursor: pointer;
}

.section-name {
    width: 100%;
    box-sizing: border-box;
    background-color: lightgray;
    border: 3px solid black;
    border-radius: 10px;
    text-align: center;
    font-size: large;
}

.marke-logo {
    width: 8%;
    aspect-ratio: 1;
    float: left;    
}

.marke-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.marke-titel {
    font-size: 20px;
    font-weight: bold;
}

.item-zulassungsdatum {
    float: right;
    margin-left: auto;
    margin-right: 2.5%;
    font-weight: bold;
    font-size: 20px;
}
