.main-wrapper-order-form {
    background-color: #DCE8F5;
}

.order-progress-wrapper {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.card {
    padding: 20px;
    border-radius: 8px;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.row-cart {
    display: flex;
    justify-content: space-between;
}

.muted {
    color: #666;
    font-size: 0.95em;
}

.err {
    color: #b00020;
    margin: 8px 0;
}

/* Produktkarten gleich ausrichten */
.product-card {
    background-color: #fff;
    border: none !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

/* Bild fixieren */
.product-card img {
    height: 60px;
    object-fit: contain;
    margin: 0 auto 8px;
}

/* -------------------------------------------------------------------- PRESET/BOX CARD STYLING */
.box-card {
    min-height: 420px; /* fixed pixel height for uniform boxes */
}

.box-card .card-body {
    padding: 16px;
}

.box-image img {
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.box-product-list {
    padding-left: 18px;
    margin: 0 0 12px 0;
}

.box-size-select {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #DCE8F5;
    background-color: #fff;
}

.box-actions .btn {
    /* ensure consistent button height and alignment */
    padding: 10px 12px;
}

/* ensure the card body uses flex layout so button can be bottom-aligned */
.box-card .card-body.d-flex {
    display: flex;
    flex-direction: column;
}

/* smaller screens: reduce fixed height to avoid overflow */
@media screen and (max-width: 575.99px) {
    .box-card { height: auto; }
}

/* -------------------------------------------------------------------- ALIGN SELECTS & BUTTONS ACROSS CARDS */
.box-card .card-body {
    display: flex;
    flex-direction: column;
}

.box-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.box-product-list {
    flex: 1 1 auto;
    margin-bottom: 12px;
    overflow: hidden;
}

.box-size-container {
    flex: 0 0 60px; /* fixed space for the selector so all selectors align */
}

.box-size-container .box-size-select,
.box-size-select {
    height: 40px;
    padding: 6px 10px;
}

.box-actions {
    flex: 0 0 56px; /* fixed footer area so buttons align */
    display: flex;
    align-items: center;
}

.box-actions .btn {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 575.99px) {
    .box-size-container { flex: 0 0 auto; }
    .box-actions { flex: 0 0 auto; }
}

/* Buttons immer nach unten drücken */
.product-actions {
    margin-top: auto;
}

/* Text umbrechen auf Mobile */
.product-card p,
.product-card strong,
.product-card {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.mobile-cart {
    border: 1px solid #001f3f;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
}

/* -------------------------------------------------------------------- WARENKORB MENGE BUTTONS: */

.qty-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 130px;
    height: 40px;
    border: 1px solid #001f3f;
    border-radius: 8px;
    background: #f8fafc;
    overflow: hidden;
}

#warenkorb {
    z-index: 999 !important;
}

.qty-btn {
    width: 60px;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 20px;
    color: #001f3f;
    transition: all .2s ease;
}

.qty-btn:hover {
    background: #001f3f;
    color: #fff;
}

.qty-input {
    width: 60px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
}

/* Browser Pfeile entfernen */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* -------------------------------------------------------------------- PG51: */

.pg51-selector {
    display: flex;
    gap: 14px;
}

.pg51-option {
    position: relative;
    cursor: pointer;
}

.pg51-option input {
    position: absolute;
    opacity: 0;
}

.pg51-circle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #001f3f;
    font-weight: 600;
    font-size: 14px;
    transition: all .2s ease;
}

.pg51-option:hover .pg51-circle {
    background: #001f3f;
    color: #fff;
}

.pg51-option input:checked + .pg51-circle {
    background: #001f3f;
    border-color: #001f3f;
    color: #fff;
}

/* -------------------------------------------------------------------- STEP-PROGRESS-BAR: */

.progresses{
    width: 100%;
    display: flex;
    align-items: center;
}

.line{
    width: 100%;
    height: 4px;
    background: #ff8c00;
}

.step-current-done{
    display: flex;
    background-color: #ff8c00;
    color: white;
    font-size: 20px;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #ff8c00;
}

.steps{
    display: flex;
    background-color: white;
    color: #ff8c00;
    font-size: 20px;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #ff8c00;
}

/* -------------------------------------------------------------------- USERDATA-FORM: */

.userdata-form-wrapper {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ff8c00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.form-divider {
    margin: 25px 0;
    border: none;
    border-top: 2px solid #DCE8F5;
    opacity: 1;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.userdata-input {
    width: 100%;
    padding: 10px 10px;
    border-radius: 8px;
    border: 1.5px solid #DCE8F5;
    background-color: #fff;
    transition: all .2s ease;
}

.userdata-input:focus {
    outline: none;
    border-color: #001f3f;
}

/* -------------------------------------------------------------------- FINISH-STEP-ORDER-FORM: */

.finish-form-wrapper {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.signature-wrapper {
    width: 100%;
    max-width: 500px;
}

#signature-pad {
    width: 100%;
    height: clamp(140px, 25vw, 200px);
    border:1px solid #ff8c00;
    border-radius:6px;
    background:#fff;
    touch-action:none;
}

/* -------------------------------------------------------------------- THANK-YOU-PAGE: */

.hero-danke {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #DCE8F5 100%);
}

.hero-trust i {
    color: #ff8c00;
}

.order-overview hr {
    opacity: 1;
    border: 1px solid #DCE8F5;
}

.next-steps-wrapper {
    border: 1px solid #DCE8F5;
    padding: 30px;
    background: linear-gradient(180deg, #ffffff 0%, #DCE8F5 100%);
}

.thankyou-container-wrapper {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.icon-wrapper {
    background-color: #ff8c00;
    width: 50px;
    height: 50px;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-wrapper i {
    color: #fff;
}

/* -------------------------------------------------------------------- MEDIAQUERIES: */

@media screen and (max-width: 991px) {
    #warenkorb {
        margin-bottom: 110px;
    }
}

@media screen and (min-width: 992px) {
    .hero-danke, .order-overview {
        padding: 100px 0;
    }
}

@media screen and (max-width: 991px) {
    .hero-danke, .order-overview {
        padding: 50px 0;
    }

    .hero-image-danke {
        display: none;
    }
}

@media screen and (max-width: 575.99px) {
    .hero-danke {
        padding: 0 0 50px;
    }

    .hero-img-danke {
        box-shadow: none;
        border-radius: 0px;
    }

    .hero-img-container-danke {
        padding: 0;
    }
}