/* Kundenseiten im Shop (Konto, Login, Passwort, Warenkorb, Checkout) im
   Markenpaket. Die Seiten bestehen aus Oscar-/Bootstrap-Vorlagen; statt jede
   umzuschreiben, gleicht diese Datei Formulare, Tabellen, Karten und Knöpfe
   innerhalb von .ks an die neuen Bausteine an. Kopf: .bl-seitenkopf aus
   bloecke.css. */

.bl-kontokopf {
    padding: 32px 0 28px;
}

.bl-kontokopf .bl-seitenkopf__titel {
    font-size: clamp(2rem, 4vw, 3rem);
}

.bl-kontokopf .page-header {
    margin: 0;
    padding: 0;
    border: 0;
}

.ks {
    --ks-linie: #e6e4df;
    --ks-flaeche: #f7f6f2;
    --ks-leise: #5d625f;
    padding-top: 40px;
    padding-bottom: 72px;
    color: #1b1d1c;
    font-size: 1rem;
    line-height: 1.6;
}

.ks h1,
.ks h2,
.ks h3,
.ks h4 {
    color: inherit;
    letter-spacing: 0;
    text-transform: none;
}

.ks h2 {
    font-size: 1.5rem;
    margin: 0 0 16px;
}

.ks h3 {
    font-size: 1.25rem;
    margin: 24px 0 12px;
}

.ks a:not(.btn) {
    color: var(--d-link, #222);
}

/* --- Konto: Inhalt links, Navigation rechts (auf dem Handy oben) ---------- */

.ks-konto {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.ks-konto__nav {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 96px;
}

.ks-konto__inhalt {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

/* Die Seitenüberschrift steht schon im Kopf */
.ks-konto__inhalt > .page-header,
.ks #content_inner > h1:first-child {
    display: none;
}

.ks-kontonav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}

.ks-kontonav .nav-link {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: #1b1d1c !important;
    font-weight: 500;
    text-decoration: none;
    box-shadow: none !important;
}

.ks-kontonav .nav-link:hover {
    background: var(--ks-flaeche);
}

.ks-kontonav .nav-link.active {
    background: color-mix(in srgb, var(--d-brand, #222) 10%, #fff);
    color: var(--d-brand, #222) !important;
    font-weight: 600;
}

.ks-kontonav__abmelden {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--ks-linie);
}

.ks-kontonav__abmelden .nav-link {
    color: var(--ks-leise) !important;
}

/* --- Karten, Tabellen, Listen -------------------------------------------- */

.ks .card {
    border: 1px solid var(--ks-linie);
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
    margin-bottom: 24px;
    overflow: hidden;
}

.ks .card-header {
    background: var(--ks-flaeche);
    border-bottom: 1px solid var(--ks-linie);
    padding: 14px 20px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
}

.ks .card-body {
    padding: 20px;
}

.ks .table {
    width: 100%;
    margin-bottom: 24px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--ks-linie);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    font-size: .9375rem;
}

.ks .table th,
.ks .table td {
    padding: 12px 16px;
    border: 0;
    border-top: 1px solid var(--ks-linie);
    vertical-align: middle;
}

.ks .table thead th,
.ks .table tr:first-child > th,
.ks .table tr:first-child > td {
    border-top: 0;
}

.ks .table thead th {
    background: var(--ks-flaeche);
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ks-leise);
    text-transform: none;
    letter-spacing: 0;
}

.ks .table tbody th {
    font-weight: 600;
    width: 35%;
    background: transparent;
}

.ks .table-striped tbody tr:nth-of-type(odd) {
    background: transparent;
}

.ks .table-hover tbody tr:hover {
    background: var(--ks-flaeche);
}

/* Breite Tabellen auf dem Handy seitlich scrollen statt die Seite */
.ks .table-responsive,
.ks .ks-tabelle {
    overflow-x: auto;
}

.ks .alert {
    border: 0;
    border-radius: 12px;
    padding: 14px 18px;
}

.ks .alert-info {
    background: color-mix(in srgb, var(--d-brand, #222) 8%, #fff);
    color: #1b1d1c;
}

.ks .alert-danger,
.ks .alert-error {
    background: #fbeaea;
    color: #8a1c1c;
}

.ks .alert-success {
    background: #e8f3ec;
    color: #1d5b33;
}

/* --- Formulare ----------------------------------------------------------- */

.ks label,
.ks .control-label,
.ks .col-form-label {
    display: block;
    margin: 0 0 6px;
    font-size: .875rem;
    font-weight: 600;
    color: #1b1d1c;
    text-transform: none;
    letter-spacing: 0;
}

.ks .form-group {
    margin-bottom: 18px;
}

.ks .form-control,
.ks input[type="text"],
.ks input[type="email"],
.ks input[type="password"],
.ks input[type="tel"],
.ks input[type="number"],
.ks select,
.ks textarea {
    width: 100%;
    min-height: 48px;
    height: auto;
    padding: 12px 14px;
    border: 1.5px solid #c9c6bf;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 1rem;
    color: #1b1d1c;
    box-shadow: none;
}

.ks input[type="number"] {
    width: auto;
    max-width: 96px;
}

.ks .form-control:focus,
.ks input:focus,
.ks select:focus,
.ks textarea:focus {
    border-color: var(--d-brand, #222);
    outline: 2px solid color-mix(in srgb, var(--d-brand, #222) 25%, transparent);
    outline-offset: 1px;
}

.ks input[type="checkbox"],
.ks input[type="radio"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    accent-color: var(--d-brand, #222);
}

.ks .help-block,
.ks .form-text,
.ks small.text-muted {
    font-size: .8125rem;
    color: var(--ks-leise) !important;
}

.ks .has-error .form-control,
.ks .is-invalid {
    border-color: #b42318;
}

.ks .error-block,
.ks .invalid-feedback,
.ks .has-error .help-block,
.ks .errorlist {
    color: #b42318 !important;
    font-size: .875rem;
    font-weight: 600;
}

/* --- Knöpfe: wie .bl-btn --------------------------------------------------- */

.ks .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 22px;
    border: 1.5px solid var(--d-brand, #222);
    border-radius: var(--d-btn-radius, 999px);
    background: transparent;
    color: var(--d-brand, #222);
    font-family: var(--d-font-text);
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none !important;
    box-shadow: none !important;
    white-space: normal;
}

.ks .btn-primary,
.ks .btn-brand,
.ks .btn-success,
.ks .btn-lg,
.ks button[type="submit"].btn:not(.btn-secondary):not(.btn-danger):not(.btn-outline-secondary):not(.btn-link) {
    background: var(--d-brand, #222);
    color: var(--d-on-brand, #fff);
}

.ks .btn-primary:hover,
.ks .btn-brand:hover,
.ks .btn-success:hover {
    background: var(--d-brand-hover, var(--d-brand, #222));
    border-color: var(--d-brand-hover, var(--d-brand, #222));
    color: var(--d-on-brand, #fff);
}

.ks .btn-danger,
.ks .btn-outline-danger {
    border-color: #b42318;
    background: transparent;
    color: #b42318;
}

.ks .btn-link {
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
    text-decoration: underline !important;
}

.ks .btn-sm {
    min-height: 36px;
    padding: 6px 14px;
    font-size: .875rem;
}

.ks .btn-block {
    width: 100%;
}

/* --- Login und Registrierung ---------------------------------------------- */

.ks .ks-zwei {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

/* --- Handy ----------------------------------------------------------------- */

@media (max-width: 900px) {
    .ks {
        padding-top: 24px;
        padding-bottom: 48px;
    }

    .ks-konto {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .ks-konto__nav,
    .ks-konto__inhalt {
        grid-column: 1;
        grid-row: auto;
        position: static;
    }

    /* Navigation über dem Inhalt */
    .ks-konto__nav {
        order: -1;
        min-width: 0;
    }

    /* Navigation als waagerecht wischbare Leiste */
    .ks-kontonav ul {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 0 -16px;
        padding: 0 16px 4px;
    }

    .ks-kontonav ul::-webkit-scrollbar {
        display: none;
    }

    .ks-kontonav .nav-link {
        white-space: nowrap;
        border: 1px solid var(--ks-linie);
        border-radius: 999px;
        padding: 8px 14px;
        font-size: .9375rem;
    }

    .ks-kontonav__abmelden {
        margin: 0;
        padding: 0;
        border: 0;
    }

    .ks .ks-zwei {
        grid-template-columns: 1fr;
    }

    .ks .table {
        font-size: .875rem;
    }

    .ks .table th,
    .ks .table td {
        padding: 10px 12px;
    }
}

/* Pfad ohne aktuellen Seitennamen: kein „›“ am Ende */
.bl-kontokopf .bl-pfad span:empty,
.bl-kontokopf .bl-pfad span[aria-hidden]:has(+ span:empty) {
    display: none;
}

/* --- Bestellübersicht (customer/order/order_list.html) ------------------- */

.ks-bestellliste {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    border-top: 1px solid var(--ks-linie, #e6e4df);
}

.ks-bestellliste li {
    border-bottom: 1px solid var(--ks-linie, #e6e4df);
}

.ks a.ks-bestellliste__eintrag {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 16px;
    align-items: center;
    padding: 16px 0;
    color: inherit;
    text-decoration: none;
}

.ks-bestellliste__nummer {
    font-weight: 600;
}

.ks-bestellliste__eintrag:hover .ks-bestellliste__nummer,
.ks-bestellliste__eintrag:focus-visible .ks-bestellliste__nummer {
    text-decoration: underline;
}

.ks-bestellliste__eintrag .ks-status {
    margin: 0;
    justify-self: end;
}

.ks-bestellliste__meta {
    color: var(--ks-leise, #5d625f);
    font-size: .9375rem;
}

.ks-bestellliste__summe {
    justify-self: end;
    font-weight: 600;
}

/* --- Bestellansicht (customer/order/partials/bestellung.html) ------------- */

.ks-bestellung__kopf {
    margin-bottom: 24px;
}

.ks-status {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 600;
    background: #f0efea;
}

.ks-status--offen {
    background: color-mix(in srgb, var(--d-brand, #222) 12%, #fff);
    color: var(--d-brand, #222);
}

.ks-status--erledigt {
    background: #e8f3ec;
    color: #1d5b33;
}

.ks-bestellung__meta,
.ks-bestellung__sendung {
    margin: 0;
    color: var(--ks-leise, #5d625f);
}

.ks-positionen {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    border-top: 1px solid var(--ks-linie, #e6e4df);
}

.ks-position {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 6px 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--ks-linie, #e6e4df);
}

.ks-position__bild img {
    display: block;
    width: 64px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: #f3f3f0;
    mix-blend-mode: multiply;
}

.ks-position__text a {
    font-weight: 600;
    text-decoration: none;
}

.ks-position__menge {
    display: block;
    font-size: .875rem;
    color: var(--ks-leise, #5d625f);
}

.ks-position__preis {
    font-weight: 600;
    white-space: nowrap;
}

.ks-position__aktion {
    grid-column: 2 / -1;
}

.ks-summen {
    max-width: 380px;
    margin: 16px 0 32px auto;
}

.ks-summen div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
}

.ks-summen dt {
    font-weight: 400;
}

.ks-summen dd {
    margin: 0;
    white-space: nowrap;
}

.ks-summen__gesamt {
    margin-top: 6px;
    padding-top: 10px !important;
    border-top: 1px solid var(--ks-linie, #e6e4df);
    font-size: 1.125rem;
    font-weight: 700;
}

.ks-summen__gesamt small {
    font-weight: 400;
    font-size: .8125rem;
    color: var(--ks-leise, #5d625f);
}

.ks-bestellung__adressen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ks-bestellung__adressen section {
    padding: 18px 20px;
    border: 1px solid var(--ks-linie, #e6e4df);
    border-radius: 14px;
}

.ks-bestellung__adressen h2 {
    font-size: 1rem;
    margin: 0 0 8px;
}

.ks-bestellung__adressen address {
    margin: 0;
    font-style: normal;
}

.ks-hinweis {
    font-size: .9375rem;
    color: var(--ks-leise, #5d625f);
}

.ks-aktionen {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

@media (max-width: 600px) {
    .ks-position {
        grid-template-columns: 56px minmax(0, 1fr) auto;
    }

    .ks-position__bild img {
        width: 56px;
        height: 70px;
    }

    .ks-summen {
        max-width: none;
    }
}

.ks .btn-link {
    justify-content: flex-start;
    min-height: 0;
}

/* --- Bootstrap-Container innerhalb der Kundenseiten neutralisieren -------- */

.ks .container,
.ks .container-fluid {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* Das alte Theme gibt dem ersten Abschnitt 194 px Abstand (.header + .wrapper .module:first-child) */
.ks .module,
.ks section.module,
.ks .module:first-child {
    padding: 0 !important;
}

.ks .row {
    margin-left: -12px;
    margin-right: -12px;
}

/* --- Kasse: Fortschritt der Bestellschritte -------------------------------- */

.bl-kassenkopf {
    padding: 24px 0;
}

.ks-schritte {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.ks-schritte__schritt {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 0;
    border-top: 3px solid #d9d6cf;
    font-size: .9375rem;
    font-weight: 500;
    color: #5d625f;
}

.ks-schritte__schritt span {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #c9c6bf;
    font-size: .8125rem;
    font-weight: 700;
}

.ks-schritte__schritt.is-erledigt,
.ks-schritte__schritt.is-aktuell {
    border-top-color: var(--d-brand, #222);
    color: #1b1d1c;
}

.ks-schritte__schritt.is-erledigt span {
    background: var(--d-brand, #222);
    border-color: var(--d-brand, #222);
    color: var(--d-on-brand, #fff);
}

.ks-schritte__schritt.is-aktuell {
    font-weight: 700;
}

.ks-schritte__schritt.is-aktuell span {
    border-color: var(--d-brand, #222);
    color: var(--d-brand, #222);
}

@media (max-width: 600px) {
    .ks-schritte__schritt {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        font-size: .75rem;
    }
}

/* --- Warenkorb: Zeilen am Handy als Karten -------------------------------- */

.ks .cart-thumbnail {
    max-width: 96px;
    height: auto;
    border-radius: 8px;
}

.ks .cart-table h5 {
    font-size: 1rem;
    margin: 0 0 4px;
}

.ks .cart-table p {
    margin: 0;
    font-size: .875rem;
}

@media (max-width: 700px) {
    .ks .table-responsive {
        overflow: visible;
    }

    .ks .cart-table:has(.col-thumbnail),
    .ks .cart-table:has(.col-thumbnail) tbody {
        display: block;
        border: 0;
        background: transparent;
    }

    .ks .cart-table:has(.col-thumbnail) thead {
        display: none;
    }

    .ks .cart-table:has(.col-thumbnail) tr {
        display: grid;
        grid-template-columns: 80px minmax(0, 1fr) auto;
        gap: 6px 12px;
        padding: 14px 0;
        border-bottom: 1px solid var(--ks-linie);
    }

    .ks .cart-table:has(.col-thumbnail) td {
        border: 0 !important;
        padding: 0 !important;
    }

    .ks .cart-table:has(.col-thumbnail) td:nth-child(1) {
        grid-row: span 3;
    }

    .ks .cart-table:has(.col-thumbnail) td:nth-child(2) {
        grid-column: 2 / -1;
    }

    .ks .cart-table:has(.col-thumbnail) td:nth-child(3) {
        grid-column: 2;
    }

    .ks .cart-table:has(.col-thumbnail) td:nth-child(4) {
        grid-column: 2 / -1;
    }

    .ks .cart-table:has(.col-thumbnail) td:nth-child(5) {
        grid-column: 3;
        grid-row: 2;
        font-weight: 600;
    }

    .ks .cart-table:has(.col-thumbnail) .col-sm-1 {
        max-width: none;
        padding: 0;
    }

    .ks .cart-thumbnail {
        max-width: 80px;
    }
}

/* Summen unter dem Warenkorb */
.ks .cart-table:not(:has(.col-thumbnail)) h6 {
    margin: 0;
    font-size: .875rem;
    font-weight: 600;
    color: var(--ks-leise);
    text-transform: none;
    letter-spacing: 0;
}

.ks .cart-table:not(:has(.col-thumbnail)) th.total {
    font-size: 1.0625rem;
}

.ks .cart-table:not(:has(.col-thumbnail)) tr:last-child th,
.ks .cart-table:not(:has(.col-thumbnail)) tr:last-child td {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1b1d1c;
    background: transparent;
}

/* Danke-Seite: Dank und Bestellnummer hervorgehoben */
.ks .ks-danke {
    margin-bottom: 32px;
    padding: 28px 32px;
    border-radius: 16px;
    background: #e8f3ec;
}

.ks .ks-danke h1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin: 0 0 8px;
}

.ks .ks-danke .lead {
    margin: 0;
    font-size: 1.0625rem;
}

/* --- Warenkorb (basket/partials/warenkorb.html) ---------------------------- */

.kb {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 48px;
    align-items: start;
}

.kb-liste {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--ks-linie);
}

.kb-pos {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto auto;
    grid-template-areas: "bild text menge preis";
    gap: 8px 24px;
    align-items: start;
    padding: 20px 0;
    border-bottom: 1px solid var(--ks-linie);
}

.kb-pos__bild {
    grid-area: bild;
    display: block;
    border-radius: 12px;
    background: #f3f3f0;
    box-shadow: none !important;
}

.kb-pos__bild img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.kb-pos__text {
    grid-area: text;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.kb-pos__marke {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--d-link, #555);
}

.ks .kb-pos__name {
    font-weight: 600;
    font-size: 1.0625rem;
    line-height: 1.35;
    color: #1b1d1c !important;
    text-decoration: none;
}

.kb-pos__merkmale,
.kb-pos__lager {
    font-size: .875rem;
    color: var(--ks-leise);
}

.kb-pos__lager--available,
.kb-pos__lager--instock {
    color: #1d5b33;
}

.kb-pos__menge {
    grid-area: menge;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.kb-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #c9c6bf;
    border-radius: 999px;
    overflow: hidden;
}

.kb-stepper__knopf {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    color: #1b1d1c;
    cursor: pointer;
}

.kb-stepper__knopf:hover {
    background: var(--ks-flaeche);
}

.ks .kb-stepper__zahl {
    width: 44px !important;
    max-width: none !important;
    min-height: 40px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    text-align: center;
    font-weight: 600;
    -moz-appearance: textfield;
}

.ks .kb-stepper__zahl::-webkit-outer-spin-button,
.ks .kb-stepper__zahl::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Ohne Skript sichtbar, mit Skript übernehmen − und + das Speichern */
.kb-pos__aktualisieren {
    border: 0;
    padding: 0;
    background: none;
    font-size: .8125rem;
    text-decoration: underline;
    color: var(--ks-leise);
    cursor: pointer;
}

.kb-pos__entfernen-feld {
    display: none;
}

.ks .kb-pos__entfernen {
    font-size: .875rem;
    color: var(--ks-leise) !important;
    text-decoration: underline;
}

.kb-pos__preis {
    grid-area: preis;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-weight: 700;
    white-space: nowrap;
}

.kb-pos__einzel {
    font-size: .8125rem;
    font-weight: 400;
    color: var(--ks-leise);
}

.kb-pos__fehler {
    grid-column: 2 / -1;
    margin: 0;
    color: #b42318;
    font-size: .875rem;
    font-weight: 600;
}

/* Zusammenfassung */
.kb-summe {
    position: sticky;
    top: 96px;
    padding: 24px;
    border: 1px solid var(--ks-linie);
    border-radius: 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ks .kb-summe h2 {
    font-size: 1.25rem;
    margin: 0;
}

.ks .kb-summe .table {
    margin: 0;
    border: 0;
    border-radius: 0;
}

.ks .kb-summe .table th,
.ks .kb-summe .table td {
    padding: 6px 0;
    border: 0;
    background: transparent;
    width: auto;
}

/* Zwischenüberschriften „Warenkorb“, „Versand“ weglassen, Bestellsumme groß */
.ks .kb-summe .table tr:has(> th[colspan="2"]) {
    display: none;
}

.ks .kb-summe .table h6 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    text-transform: none;
    letter-spacing: 0;
}

.ks .kb-summe .table tr:last-child {
    font-size: 1.25rem;
    font-weight: 700;
}

.kb-summe__mwst {
    margin: -8px 0 0;
    font-size: .8125rem;
    color: var(--ks-leise);
}

.kb-stepper__knopf:disabled {
    opacity: .35;
    cursor: default;
    background: transparent;
}

.kb-pos__hinweis {
    font-size: .8125rem;
    color: var(--ks-leise);
}

.ks .kb-summe .table tr:last-child th,
.ks .kb-summe .table tr:last-child td {
    padding-top: 12px;
    border-top: 1px solid var(--ks-linie);
}

.ks .kb-summe__kasse {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
}

.kb-vorteile {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
    font-size: .875rem;
    color: #2a2f2c;
}

.kb-vorteile li {
    position: relative;
    padding-left: 22px;
}

.kb-vorteile li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--d-brand, #222);
    font-weight: 700;
}

.kb-gutschein {
    border-top: 1px solid var(--ks-linie);
    padding-top: 14px;
}

.kb-gutschein summary {
    cursor: pointer;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--d-link, #222);
}

.kb-gutschein__zeile {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.kb-leiste {
    display: none;
}

.kb-leer {
    padding: 24px 0 48px;
}

.ks .kb-leer h2 {
    font-size: 1.75rem;
    margin: 0 0 8px;
}

@media (max-width: 900px) {
    .kb {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .kb-pos {
        grid-template-columns: 88px minmax(0, 1fr) auto;
        grid-template-areas:
            "bild text text"
            "bild menge preis";
        gap: 10px 14px;
    }

    .kb-pos__menge {
        align-self: end;
    }

    .kb-pos__preis {
        align-self: end;
    }

    .kb-summe {
        position: static;
    }

    /* Feste Leiste mit Summe und Kasse */
    .kb-leiste {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid var(--ks-linie);
        box-shadow: 0 -6px 18px rgba(0, 0, 0, .06);
    }

    .kb-leiste__summe {
        display: flex;
        flex-direction: column;
        font-weight: 700;
        font-size: 1.125rem;
        line-height: 1.2;
    }

    .kb-leiste__summe small {
        font-size: .75rem;
        font-weight: 500;
        color: var(--ks-leise);
    }

    .ks .kb-leiste .btn {
        flex: 1 1 auto;
        max-width: 220px;
    }

    /* Links Platz für das Trusted-Shops-Siegel, das unten links schwebt */
    .kb-leiste {
        padding-left: 100px;
    }

    body:has(.kb-leiste) .scroll-top {
        display: none;
    }

    /* Platz für die Leiste, damit der Footer nicht verdeckt wird */
    .ks:has(.kb-leiste) {
        padding-bottom: 96px;
    }
}

.kb-js .kb-pos__aktualisieren {
    display: none;
}
