/* Allgemeines Layout */
body {
    overflow-x: hidden;
    max-width: 100%;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c3e50;
    color: white;
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    margin-right: 10px;
}

.logo h1 {
    font-size: 24px;
    margin: 0;
}

.shortcuts a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    padding: 10px 15px;
    transition: background-color 0.3s, color 0.3s;
}

.shortcuts a:hover {
    color: #3498db;
}

.profile-dropdown {
    position: relative;
    display: inline-block;
}

.show {
    display: block;
}

/* Layout für Hauptinhalt */
.main-content {
    display: flex;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Verbesserte Filtersektion */
.filters {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    margin-right: 20px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 50px; /* Gleicher Abstand wie Produktkacheln */
    margin-bottom: 20px;
}

.filters h3 {
    padding-top: 10px;
    margin-bottom: 20px;
    font-size: 1.4em;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.filters h4 {
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.filters .filter-section {
    margin-bottom: 25px;
}

.filters input[type="range"] {
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    margin-top: 10px;
    margin-bottom: 15px;
}

.filters input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    transition: background .15s ease-in-out;
}

.filters input[type="range"]::-webkit-slider-thumb:hover {
    background: #2980b9;
}

.filters input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    transition: background .15s ease-in-out;
}

.filters input[type="range"]::-moz-range-thumb:hover {
    background: #2980b9;
}

.cr-wrapper {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px; /* Einheitlicher Abstand für alle Checkboxen */
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    transition: all 0.2s ease;
}

.cr-wrapper:hover {
    color: #3498db;
}

.cr-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.cr-input {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cr-wrapper:hover input ~ .cr-input {
    background-color: #ccc;
}

.cr-wrapper input:checked ~ .cr-input {
    background-color: #3498db;
}

.cr-input:after {
    content: "";
    position: absolute;
    display: none;
}

.cr-wrapper input:checked ~ .cr-input:after {
    display: block;
}

.cr-wrapper .cr-input:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Verschönerter Radio Button */
.cr-wrapper input[type="radio"] ~ .cr-input {
    border-radius: 50%;
}

.cr-wrapper input[type="radio"] ~ .cr-input:after {
    left: 9px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    transform: none;
}

#product-container {
    flex: 3;
    flex-wrap: wrap;
    justify-content: space-around;
    flex-grow: 1;
    display: flex;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    margin-top: 50px;
}

.product-info {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-image {
    margin-bottom: 15px;
    text-align: center;
}

.product-image img {
    max-width: 30%;
    height: auto;
    border-radius: 4px;
}

.product-description h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.product-description p {
    margin-bottom: 15px;
}

.product-description ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 15px;
}

.product-description ul li {
    margin-bottom: 5px;
}

.price {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
}

.cart-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.cart-btn:hover {
    background-color: #45a049;
}

/* "in den Warenkorb" Buttongestaltung*/
.Btn {
    width: 150px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(15, 15, 15);
    border: none;
    color: white;
    font-weight: 600;
    gap: 8px;
    cursor: pointer;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.103);
    position: relative;
    overflow: hidden;
    transition-duration: .3s;
}

.Btn::before {
    width: 150px;
    height: 150px;
    position: absolute;
    content: "";
    background-color: white;
    border-radius: 50%;
    left: -100%;
    top: 0;
    transition-duration: .3s;
    mix-blend-mode: difference;
}

.Btn:hover::before {
    transition-duration: .3s;
    transform: translate(100%,-50%);
    border-radius: 0;
}

.Btn:active {
    transform: translate(5px,5px);
    transition-duration: .3s;
}