/* === Allgemein / Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(135deg, #1c1c1c, #2b2b2b);
    color: #fff;
    min-height: 100vh;
}

/* === Hero Banner === */
.hero {
    position: relative;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3em;
    font-weight: 900;
    text-shadow: 0 0 15px rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.hero button {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}

.hero button:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-2px);
}

/* === Controls === */
#controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

#searchInput {
    width: 90%;
    max-width: 500px;
    padding: 10px 15px;
    border-radius: 12px;
    border: none;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

#searchInput::placeholder {
    color: #ccc;
}

#categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.categoryBtn {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    margin: 2px;
    padding: 6px 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.categoryBtn.active,
.categoryBtn:hover {
    background: rgba(255,255,255,0.35);
}

/* === Shop Grid === */
#shop {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 0 20px;
    margin-bottom: 40px;
}

.item {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s;
}

.item:hover {
    transform: translateY(-5px);
}

.item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 10px;
}

.item h3 {
    margin-bottom: 5px;
}

.item p {
    margin-bottom: 10px;
    font-weight: bold;
}

.item button {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}

.item button:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-2px);
}

/* === Warenkorb === */
#cart {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    width: 300px;
    max-height: 70vh;
    overflow-y: auto;
}

#cart h2 {
    margin-bottom: 10px;
}

#cartList {
    list-style: none;
    margin-bottom: 10px;
}

#cartList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

#cartList li button {
    background: red;
    color: #fff;
    border: none;
    padding: 2px 6px;
    border-radius: 6px;
    cursor: pointer;
}

#cart p {
    font-weight: bold;
}

#buyBtn {
    width: 100%;
    margin-top: 10px;
    background: rgba(0,255,100,0.2);
    border: 1px solid rgba(0,255,100,0.3);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
}

/* === Upload Modal === */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modalContent {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    margin: 50px auto;
    padding: 20px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.modalContent input,
.modalContent select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.modalContent input::placeholder {
    color: #ccc;
}

.modalContent button {
    margin-top: 10px;
    width: 100%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}

.modalContent button:hover {
    background: rgba(255,255,255,0.35);
}

/* === Responsive === */
@media (max-width:768px){
    #shop {grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));}
    .item img{height:150px;}
    #cart{width:220px;}
}

@media (max-width:480px){
    #shop{grid-template-columns:1fr;}
    .hero h1{font-size:2.2em;}
}