body {
    font-family: Arial, sans-serif;
    background: #dde5f1;
    color: #172033;
    margin: 0;
    padding: 0;
}

.content-wrapper {
    max-width: 1820px;
    margin: 20px auto;
    padding: 0 14px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 14px;
}

.content-box {
    background: #fff;
    border: 1px solid #d6deea;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

h1, h2, h3 {
    margin-top: 0;
}

h1 {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.btn {
    border: 0;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary { background: #ff6b2c; color: #fff; }
.btn-secondary { background: #6b7280; color: #fff; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-link {
    text-decoration: none;
    display: inline-block;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    border-bottom: 1px solid #e6ebf3;
    padding: 8px;
    text-align: left;
}

th {
    font-weight: 700;
}

.badge {
    display: inline-block;
    background: #eef4ff;
    color: #1e3a8a;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
}

.standalone-kasse-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flash {
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 6px;
}

.flash.error { background: #fde8e7; color: #8f241b; }
.flash.ok { background: #e7f8ef; color: #1d6a3d; }

.login-wrap {
    max-width: 420px;
    margin: 60px auto;
    background: #fff;
    border: 1px solid #d9e0ea;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

label { display: block; margin-bottom: 10px; }
input[type="text"], input[type="password"], input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px;
}

/* Two-column layout: cart (left) | articles (right) */
.kasse-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 1rem;
    align-items: start;
}

/* Cart section - subtle gray background like V1 */
.kasse-cart {
    background: #f0f2f5;
    border: 1px solid #d4dae4;
    border-radius: 8px;
    padding: 16px;
    min-height: 260px;
}

.kasse-cart h2 {
    margin-top: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.kasse-cart-panel {
    min-height: 360px;
}

/* Article panel */
.kasse-artikel {
    border: 1px solid #e0e6ef;
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.kasse-artikel h2 {
    margin-top: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Article category group */
.kasse-artikel-group {
    margin-bottom: 14px;
}

.kasse-artikel-group:last-child {
    margin-bottom: 0;
}

.kasse-artikel-group h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin: 0 0 6px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
}

.kasse-artikel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 54px;
    gap: 6px;
}

.kasse-artikel-grid form {
    height: 100%;
}

.btn-kasse {
    background: linear-gradient(to bottom, #f5a623, #d4840a);
    color: #fff;
    border: 1px solid #b87212;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 6px 6px;
    width: 100%;
    height: 100%;
    cursor: pointer;
    text-align: center;
    line-height: 1.15;
    min-height: 0;
    white-space: normal;
    word-break: break-word;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.12s;
}

.btn-kasse:hover,
.btn-kasse:focus-visible {
    filter: brightness(1.1);
    outline: none;
}

.btn-kasse:active {
    filter: brightness(0.9);
    transform: scale(0.98);
}

.qty-input {
    width: 80px;
}

.standalone-inline-form {
    display: flex;
    gap: .4rem;
}

.kasse-summary {
    margin-top: 1rem;
    border-top: 1px solid #cdd3de;
    padding-top: .75rem;
}

.kasse-cart-footer .kasse-summary,
.kasse-cart-footer h3 {
    margin: .25rem 0;
    font-size: clamp(0.95rem, 1.25vw, 1.45rem);
    line-height: 1.2;
    font-weight: 700;
}

.standalone-checkout-form {
    margin-top: .8rem;
}

.kasse-cart-footer .btn.btn-primary {
    margin-top: .9rem;
    min-height: 48px;
    min-width: 220px;
    padding: 10px 18px;
    font-size: 0.98rem;
    font-weight: 700;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .kasse-layout {
        grid-template-columns: 1fr;
    }

    .kasse-cart-panel {
        min-height: 320px;
    }

    .kasse-artikel-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .standalone-kasse-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .kasse-cart-footer .kasse-summary,
    .kasse-cart-footer h3 {
        font-size: 1.05rem;
    }

    .kasse-cart-footer .btn.btn-primary {
        width: 100%;
        min-width: 0;
        font-size: 0.95rem;
        min-height: 42px;
    }
}

@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .kasse-layout {
        grid-template-columns: 500px minmax(0, 1fr);
        gap: 1.1rem;
    }

    .kasse-artikel-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 50px;
        gap: 7px;
    }

    .btn-kasse {
        font-size: 0.74rem;
        padding: 5px 5px;
    }

    .kasse-artikel-group {
        margin-bottom: 10px;
    }
}
