:root {
    --bg: #fbfbfb;
    --card: #fff;
    --muted: #666;
    --accent: #111;
}

* {
    box-sizing: border-box;
}
/*
body {
    margin: 0;
    font-family: Inter, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    background: var(--bg);
    color: var(--accent);
}

header {
    padding: 24px 32px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}
*/

main {
    max-width: 1200px;
    display: flex;
    gap: 10px;
}

.section {
    margin-bottom: 32px;
}

.section h2 {
    margin: 0 0 16px;
/*    font-size: 18px; */
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

.grid {
}

.card {
    background: var(--card);
    border-radius: 12px;
    padding: 10px;
/*    box-shadow: 0 1px 2px rgba(16,24,40,0.04); */
/*    border: 1px solid red; */
    width: 100%;
    
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;
}

.cardPic {
/*    border: 1px solid red; */
    width: 200px;
}
.cardDesc {
/*    border: 1px solid red; */
    flex: 1 1;

}
.cardBut {
/*    border: 1px solid red; */
    width: 200px;
    align-self: flex-end;
}
.cardButPrice{
    text-align: right;
    font-weight: 600;
    margin-bottom: 10px;
}

.cardPic img {
    width:  200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #666; 
}

.card h3 {
    margin: 10px 0 6px;
    font-size: 16px;

}

.card .desc {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12px;
}

button.add {
    background: #111;
    color: #fff;
    border: 0;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    width: 200px;
}

button.add:active {
    transform: translateY(1px);
}

aside.cart {
    width: 300px;
    /* margin-top: 45px; */
}

.cart .card {
    padding: 0 16px;
    position: sticky;
    top: 28px;

    display: block;
}

.cart h2 {
    margin: 0 0 12px;
/*    font-size: 16px;*/
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

.cart-items {
    max-height: 54vh;
    overflow: auto;
    margin-bottom: 12px;
}

.cart-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    gap: 5px;
    width: 100%;
}


.cart-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #CCC;
}


.qty {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 80px;
}
.qty span {
    min-width: 20px;     /* optional: für gleichmässige Breite */
    text-align: center;
}


.qty button {
    border: 1px solid #ddd;
    background: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    width: 30px;
}

.total {
    font-weight: 700;
    margin-top: 8px;
    text-align: center;
}

.checkout {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 0;
    background: #111;
    color: #fff;
    cursor: pointer;
}

.msg {
    padding: 8px 12px;
    background: #eef6ea;
    border: 1px solid #d4ead1;
    border-radius: 8px;
    color: #1f581f;
    margin-bottom: 12px;
}

footer {
    padding: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width:900px) {
    main {
        flex-direction: column;
        padding: 16px;
    }
    aside.cart {
        width: 100%;
    }
}
/* Admin */

.main_wsa {
    max-width: 1500px;
}

.wsa_alleartikel {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;

}
.wsa_artikel {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 12px;
    gap: 10px;
    margin-bottom: 40px;
}
.wsa_img {
    width: 100px;
}
.wsa_pic {
    width: 100px;
    height: 100px;
    border: 1px solid #CCC;
    border-radius: 10px;
}
.wsa_cat {
    width: 100px;
}
.wsa_tit {
    width: 200px;
    font-weight: bold;
}
.wsa_desc {
    flex: 1;
}
.wsa_prc {
    width: 100px;
    text-align: right;
}
.wsa_adm {
    width: 100px;
    text-align: right;
}

.wsa_edit {

}
.wsa_edit label {
    font-size: 12px;
    padding-bottom: 1px;
    margin-top: 5px;
}
.wsa_edit input, .wsa_edit textarea {
    width: 100%;
    margin-bottom: 5px;
}


.picollection {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;

}
.picolDiv{
/*    border: 1px solid #CCC; */
}
.picolImg {
    border: 1px solid #CCC;
    border-radius: 5px;
}
.status_offline{
    opacity: 0.5;
}
.picolTit {
    text-align: center;
    padding: 5px;
}
.picolUpload {
    width: 200px;
}
        .upload-tile {
            width: 200px;
            height: 200px;
            border: 2px dashed #aaa;
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            font-family: sans-serif;
            cursor: pointer;
            background: #f9f9f9;
        }
        .upload-tile input[type="file"] {
            display: none; /* Versteckt das Standard-File-Feld */
        }
        .upload-tile label {
            cursor: pointer;
            color: #333;
            font-size: 14px;
            padding: 10px;
            border-radius: 5px;
            /*background: #e0e0e0;*/
            transition: 0.2s;
        }
        .upload-tile label:hover {
            background: #ccc;
        }
        .upload-tile button {
            margin-top: 10px;
            padding: 5px 10px;
            border: none;
            border-radius: 5px;
            background: #4caf50;
            color: white;
            cursor: pointer;
            transition: 0.2s;
        }
        .upload-tile button:hover {
            background: #45a049;
        }



.resizer {
  width: 5px;
  cursor: ew-resize;
  background: #aaa;
}
