body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f3f3f3;
    color: #222;
}

/* Login */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}
.login-box {
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 300px;
}
.login-box h1 {
    margin-top: 0;
    margin-bottom: 15px;
}
.login-box label {
    display: block;
    margin-top: 10px;
}
.login-box input {
    width: 100%;
    padding: 7px;
    margin-top: 5px;
}
.login-box button {
    margin-top: 15px;
    width: 100%;
    padding: 8px;
}

/* Admin Layout */
.admin-header {
    background: #b40000;
    color: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-header h1 {
    margin: 0;
    font-size: 20px;
}
.admin-header nav a {
    color: #fff;
    margin-left: 15px;
    text-decoration: none;
}
.admin-header nav a:hover {
    text-decoration: underline;
}

.admin-main {
    padding: 15px;
}

.cards {
    display: flex;
    gap: 15px;
}
.card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Tabellen */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
}
.table th, .table td {
    padding: 8px 10px;
    border: 1px solid #ddd;
}
.table th {
    background: #eee;
}

/* Formulare */
.product-form {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.product-form label {
    display: block;
    margin-top: 10px;
}
.product-form input[type="text"],
.product-form input[type="file"] {
    width: 100%;
    padding: 7px;
    margin-top: 5px;
}
.product-form button {
    margin-top: 15px;
    padding: 8px 15px;
}

.error {
    background: #ffdddd;
    border: 1px solid #cc0000;
    padding: 8px;
    margin-bottom: 10px;
}
.success {
    background: #ddffdd;
    border: 1px solid #009900;
    padding: 8px;
    margin-bottom: 10px;
}

/* POS Layout */
.pos-body {
    height: 100vh;
}
#pos-container {
    display: flex;
    height: 100vh;
}
#pos-products {
    flex: 3;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    overflow-y: auto;
    background: #f9f9f9;
}
#pos-cart {
    flex: 1;
    padding: 10px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    border-left: 2px solid #ddd;
}
#pos-cart h2 {
    margin-top: 0;
}
#cartList {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    flex: 1;
    overflow-y: auto;
}
#cartList li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}
#cartList button {
    margin-left: 3px;
}
#total {
    font-size: 20px;
    margin-bottom: 10px;
}

#btn-checkout,
#btn-clear {
    padding: 10px;
    margin-bottom: 5px;
    width: 100%;
}
#btn-checkout {
    background: #28a745;
    color: #fff;
    border: none;
}
#btn-clear {
    background: #ccc;
    border: none;
}
.msg-success {
    color: #28a745;
}
.msg-error {
    color: #b40000;
}

/* Produkte */
.product {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.product img {
    max-width: 100%;
    max-height: 100px;
    display: block;
    margin: 0 auto 5px;
}
.product-name {
    font-weight: 600;
    margin-bottom: 3px;
}
.product-price {
    font-size: 14px;
}

#cartList li {
    align-items: center;
    gap: 6px;
}

#cartList button {
    min-width: 26px;
    height: 26px;
    padding: 0;
}
