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

h1 {
    font-size: 20px;
    margin-bottom: 10px;
}

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

li {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: white;
    padding: 10px;
    margin-bottom: 8px;

    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Linke Seite (Checkbox + Name) */
.item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Name */
.item-name {
    font-size: 16px;
}

/* Durchgestrichen wenn erledigt */
.item-checked {
    text-decoration: line-through;
    color: #888;
}

/* Inaktiv */
.item-inactive {
    opacity: 0.4;
}

/* Menge */
.item-quantity {
    width: 60px;
    padding: 5px;
    font-size: 14px;
}

.item-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-label {
    width: 20px;
    text-align: center;
}
.item-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-right button {
    width: 32px;
    height: 32px;
    font-size: 18px;
    border: none;
    border-radius: 6px;
    background: #eee;
}

.item-right button:active {
    background: #ddd;
}

.qty {
    min-width: 20px;
    text-align: center;
    font-size: 16px;
}

.edit-toggle {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;

    font-size: 16px;
    font-weight: bold;

    border: none;
    border-radius: 10px;

    background: #007bff;
    color: white;

    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* gedrückt */
.edit-toggle:active {
    background: #0062cc;
}

/* optional: anderer Stil im Edit Mode */
.edit-toggle.edit-active {
    background: #28a745;
}

.add-item {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.add-item input {
    flex: 1;
    padding: 10px;
    font-size: 16px;

    border: 1px solid #ccc;
    border-radius: 8px;
}

.add-item button {
    width: 44px;
    border: none;
    border-radius: 8px;

    background: #28a745;
    color: white;
    font-size: 20px;
}

.qty-badge {
    min-width: 28px;
    padding: 4px 8px;

    background: #007bff;
    color: white;

    border-radius: 12px;
    font-size: 14px;
    text-align: center;
}

.item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="checkbox"] {
    transform: scale(1.4);
}

.qty-badge {
    min-width: 28px;
    padding: 4px 8px;

    background: #007bff;
    color: white;

    border-radius: 12px;
    font-size: 14px;
    text-align: center;

    transition: opacity 0.2s ease;
}

/* dezenter bei quantity = 1 */
.qty-low {
    opacity: 0.6;
}

.item-right .delete-btn {
    background: #dc3545;
    color: white;
    width: 32px;
    height: 32px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-right .delete-btn:active {
    background: #b52a37;
}

.drag-handle {
    cursor: grab;
    margin-right: 10px;
}

.item-right button {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

.item-right button:disabled {
    opacity: 0.3;
}
.item-name-input {
    font-size: 16px;
    padding: 4px 6px;

    border: 1px solid #ccc;
    border-radius: 6px;

    width: 100%;
}
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;

    height: 100vh;
    background: #f5f5f5;
}

.login-box {
    background: white;
    padding: 20px;
    border-radius: 12px;

    width: 100%;
    max-width: 300px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.1);

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-box h2 {
    margin: 0;
    text-align: center;
    font-size: 18px;
}

.login-box input {
    padding: 10px;
    font-size: 16px;

    border: 1px solid #ccc;
    border-radius: 8px;
}

.login-box button {
    padding: 10px;
    font-size: 16px;

    border: none;
    border-radius: 8px;

    background: #007bff;
    color: white;
    font-weight: bold;
}

.login-box button:active {
    background: #0062cc;
}
.logout-btn {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;

    border: none;
    border-radius: 8px;

    background: #dc3545;
    color: white;
    font-size: 16px;
}

.logout-btn:active {
    background: #b52a37;
}
.reset-btn {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;

    border: none;
    border-radius: 8px;

    background: #ffc107;
    color: black;
    font-size: 16px;
    font-weight: bold;
}

.reset-btn:active {
    background: #e0a800;
}