/* Preis-Hinweis (§ 6 PAngV) und Bestellseite mit hervorgehobenen
   Pflichtangaben direkt über den Bestellknöpfen (oscar/checkout/preview.html).
   Eingebunden in oscar/layout.html. */

/* --- Hinweis unter jedem Preis --- */
.preis-hinweis {
    margin: .125rem 0 .25rem;
    font-size: .8125rem;
    line-height: 1.3;
    color: #5d625f;
}

.preis-hinweis a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .15em;
}

.summe-mwst {
    display: block;
    font-size: .8125rem;
    color: #5d625f;
}

/* --- Bestellseite --- */
.bestellseite__korrektur {
    margin: .25rem 0 1.25rem;
}

.bestellseite__angaben {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bestellseite__angaben .card {
    margin: 0;
}

.bestellseite__kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.bestellseite__kopf h3 {
    margin: 0;
}

.bestellseite__agb {
    margin: 0 0 1.25rem;
    padding: 1rem;
    border: 1px solid #e6e4df;
    border-radius: 4px;
}

.bestellseite__agb .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: .1rem;
}

.bestellseite__agb .form-check-label {
    padding-left: .5rem;
}

.bestellseite__widerruf {
    margin: .5rem 0 0;
}

.bestellseite a:focus-visible,
.bestellseite button:focus-visible,
.bestellseite input:focus-visible {
    outline: 3px solid var(--d-brand, #1f3d31);
    outline-offset: 2px;
}

/* Hervorhebung: dicker Rahmen in der Markenfarbe und Fläche, sonst nirgends auf der Seite */
.bestellkasten {
    border: 3px solid var(--d-brand, #1f3d31);
    border-radius: 6px;
    background: #f7f6f2;
    padding: 1rem 1.25rem;
    margin: 0;
}

.bestellkasten__kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .75rem;
}

.bestellkasten__kopf h3 {
    margin: 0;
}

.bestellkasten__artikel {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bestellkasten__pos {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: .75rem 1rem;
    align-items: start;
    padding: .75rem 0;
    border-bottom: 1px solid #e6e4df;
}

.bestellkasten__bild {
    width: 80px;
    height: auto;
    border-radius: 4px;
    background: #fff;
}

.bestellkasten__titel {
    margin: 0 0 .25rem;
    font-weight: 600;
}

.bestellkasten__marke {
    display: block;
    font-size: .8125rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.bestellkasten__merkmale {
    margin: 0;
    font-size: .875rem;
}

.bestellkasten__merkmale div {
    display: flex;
    gap: .375rem;
}

.bestellkasten__merkmale dt {
    font-weight: 400;
    color: #5d625f;
}

.bestellkasten__merkmale dt::after {
    content: ":";
}

.bestellkasten__merkmale dd {
    margin: 0;
}

.bestellkasten__preis {
    margin: 0;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.bestellkasten__einzel {
    display: block;
    font-size: .8125rem;
    font-weight: 400;
    color: #5d625f;
}

.bestellkasten__summen {
    margin-top: .75rem;
    max-width: 420px;
    margin-left: auto;
}

.bestellkasten__summen .table {
    margin-bottom: .5rem;
    background: transparent;
}

/* Gesamtpreis (§ 312j Abs. 2 BGB) groß und fett */
.bestellkasten__summen .table tr:last-child th,
.bestellkasten__summen .table tr:last-child td,
.bestellkasten__summen .table tr:last-child :where(h6, .h6) {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1b1d1c;
}

.bestellkasten__summen .summe-mwst {
    font-size: .8125rem;
    font-weight: 400;
}

.bestellkasten__lieferzeit {
    margin: 0;
    text-align: right;
}

/* Knöpfe direkt unter dem Kasten */
.bestellknoepfe {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem 1.5rem;
    margin-top: 1rem;
}

.bestellknoepfe__weg h3 {
    margin: 0 0 .5rem;
}

.bestellknoepfe__hinweis {
    margin: .5rem 0 0;
    font-size: .875rem;
    color: #5d625f;
}

.paypal-checkout__vorher {
    margin: 0 0 .5rem;
}

.paypal-checkout__status {
    margin: 0 0 .5rem;
    font-weight: 600;
}

.paypal-checkout__status:focus {
    outline: none;
}

@media (max-width: 575.98px) {
    /* Platz statt drei verschachtelter Innenränder */
    .bestellseite {
        padding-left: 0;
        padding-right: 0;
    }

    .bestellseite > .card > .card-body {
        padding: 12px;
    }

    .bestellkasten {
        padding: .75rem;
    }

    .bestellkasten__summen .table th,
    .bestellkasten__summen .table td {
        padding: .5rem .625rem;
    }

    .bestellkasten__lieferzeit {
        text-align: left;
    }

    .bestellkasten__pos {
        grid-template-columns: 64px 1fr;
    }

    .bestellkasten__bild {
        width: 64px;
    }

    .bestellkasten__preis {
        grid-column: 2;
        text-align: left;
    }

    .bestellkasten__summen {
        max-width: none;
    }
}
