* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: #f6f1ea;
    color: #2f2a26;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 32px;
}

.container {
    width: 100%;
    max-width: 820px;
    background: #ffffff;
    border: 1px solid #e2dad2;
    border-radius: 18px;
    padding: 22px 22px 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.header {
    margin-bottom: 14px;
}

.header h1 {
    font-size: 18px;
    font-weight: 700;
    color: #2f2a26;
    margin-bottom: 8px;
}

.search-box {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    align-items: stretch;
}

.search-box input {
    flex: 1;
    height: 56px;
    min-height: 56px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid #d8d0c8;
    background: #ffffff;
    color: #2f2a26;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    line-height: 56px;
}

.search-box input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-box button,
.action-row button {
    height: 56px;
    min-height: 56px;
    padding: 0 24px;
    border: none;
    border-radius: 14px;
    background: #0f7b84;
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

#loeschenBtn {
    background: #ff4040;
}

#warenkorbBtn {
    background: #0f7b84;
}

#inWarenkorbBtn {
    background: #ff4040;
}

.search-box button:hover,
.action-row button:hover {
    filter: brightness(0.97);
}

.search-box button:active,
.action-row button:active {
    transform: translateY(1px);
}

.action-row {
    display: flex;
    gap: 15px;
    margin-top: 18px;
    margin-bottom: 18px;
    align-items: stretch;
}

.result {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.card {
    background: #fbf8f4;
    border: 1px solid #ddd4cc;
    border-radius: 12px;
    padding: 8px 14px 9px;
}

.card span {
    display: block;
    color: #7b736c;
    font-size: 13px;
    line-height: 1.1;
    margin-bottom: 4px;
}

.card strong {
    display: block;
    color: #2f2a26;
    font-size: 18px;
    line-height: 1.15;
    word-break: break-word;
}

.error {
    background: #f4d8d4;
    color: #7a2f23;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e3b9b1;
    margin-top: 14px;
    font-size: 14px;
}

.hidden {
    display: none;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.remove-btn {
    margin-top: 10px;
    height: 44px;
    padding: 0 16px;
    border: none;
    border-radius: 12px;
    background: #8d867f;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    .container {
        padding: 18px;
    }

    .search-box,
    .action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box button,
    .action-row button {
        width: 100%;
    }
}
@media print {
    body {
        background: #ffffff;
        padding: 0;
        align-items: flex-start;
        color: #000000;
    }

    .container {
        box-shadow: none;
        border: none;
        max-width: 100%;
        padding: 0;
        background: #ffffff;
    }

    .search-box,
    .action-row,
    .error .hidden {
        display: none !important;
    }

    .remove-btn {
        display: none !important;
    }

    .card {
        background: #ffffff;
        border: 1px solid #cccccc;
        break-inside: avoid;
    }

    .header h1 {
        color: #000000;
    }

    .card span,
    .card strong {
        color: #000000;
    }
}
@media print {
    body {
        background: #ffffff;
        padding: 0;
        align-items: flex-start;
        color: #000000;
    }

    .container {
        box-shadow: none;
        border: none;
        max-width: 100%;
        padding: 0;
        background: #ffffff;
    }

    .search-box,
    .action-row,
    .remove-btn,
    #cartInfo {
        display: none !important;
    }

    .card {
        background: #ffffff;
        border: 1px solid #cccccc;
        break-inside: avoid;
    }

    .header h1,
    .card span,
    .card strong,
    #cartSummary {
        color: #000000;
    }

    #cartSummary.hidden {
        display: none !important;
    }
}
.cart-controls {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.cart-controls .remove-btn {
    flex: 1;
}
@media print {
    body {
        background: #ffffff;
        padding: 0;
        align-items: flex-start;
        color: #000000;
    }

    .container {
        box-shadow: none;
        border: none;
        max-width: 100%;
        padding: 0;
        background: #ffffff;
    }

    .search-box,
    .action-row,
    .remove-btn,
    #cartInfo,
    #cartSummary {
        display: none !important;
    }

    .card {
        background: #ffffff;
        border: 1px solid #cccccc;
        break-inside: avoid;
    }

    .header h1,
    .card span,
    .card strong {
        color: #000000;
    }
}