body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

header {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    background-color: #333;
}

nav a {
    color: #fff;
    text-decoration: none;
}

nav img {
    width: 28px;
    height: 28px;
    cursor: pointer;
    filter: invert(1);
}

.filter-bar {
  display: flex;
  position: absolute;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.filter-bar input,
.filter-bar select {
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
}


.warenkorb-overlay {
    position: absolute;
    top: 205px;
    right: 5px;
    width: 300px;
    background: #fff;
    border: 1px solid #ccc;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    z-index: 1000;
}

.warenkorb-overlay.active {
    opacity: 1;
    visibility: visible;
}

.warenkorb-overlay.active {
    display: block;
}

.warenkorb-overlay h3 {
    margin-top: 0;
}

.warenkorb-overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warenkorb-overlay ul li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.user-overlay {
    position: absolute;
    top: 205px;
    left: 5px;
    width: 300px;
    background: #fff;
    border: 1px solid #ccc;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    z-index: 1000;
}

.user-overlay.active {
    opacity: 1;
    visibility: visible;
    display: block;
}

.item-image {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 10px;
}

.item-name {
    flex: 1;
}

.item-price {
    font-weight: bold;
}

.container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    margin-top: 10px;
    gap: 20px;
}

.container h1,
.container p {
    width: 100%;
    text-align: center;
    margin-bottom: 2px;
}

.container .arrow-left,
.container .arrow-right {
    position: relative;
    top: 200px;
    width: 40px;
    height: 40px;
    z-index: 2;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    vertical-align: top;
    display: inline-block;
    transition: all 0.2s ease;
}
.arrow-left:hover,
.arrow-right:hover {
    opacity: 1;
    scale: 1.05;
    transition: all 0.2s ease;
}

.news {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    opacity: 1;
    margin: 10px;
    padding: 15px;
    width: 300px;
    height: 400px;
    z-index: 1;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s;
    transition: all 0.2s ease;
}

.news img {
    width: 100%;
    height: 50%;
    object-fit: cover;
    border-radius: 5px;
}

.news-right {
    background-color: #fff;
    border: 1px solid #ddd;
    opacity: 0.5;
    border-radius: 5px;
    margin: 10px;
    padding: 15px;
    margin-left: 15rem;
    margin-top: 7.2rem;
    position: absolute;
    width: 250px;
    height: 350px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.news-left {
    background-color: #fff;
    border: 1px solid #ddd;
    opacity: 0.5;
    border-radius: 5px;
    margin: 10px;
    padding: 15px;
    margin-right: 9rem;
    margin-top: 7.2rem;
    position: absolute;
    width: 350px;
    height: 350px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s;
    transition: all 0.2s ease;
}

.product {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 10px;
    margin-top: 50px;
    padding: 15px;
    width: 200px;
    height: 300px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#products-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.product img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
}

.product button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 12px 16px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

.product button img {
    width: 20px;
    height: 20px;
}

html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

footer {
    background-color: #333;
    color: #fff;
    width: 100%;
    position: fixed;
    left: 0;
    bottom: 0;
    text-align: center;
    padding: 10px;
    overflow: visible;
}