/* Produkt-Detailseite. Im Altsystem ein <style>-Block direkt in der View.
   Enthaelt u. a. die Gestaltung der bootbox-Dialoge (.bootbox-modern),
   die weiterhin gebraucht wird - der bootbox-Ersatz fuer BS5 uebernimmt
   dieselben Klassennamen. */
/* Headline Styling */
        .headline h2 {
            position: relative;
            padding-bottom: 15px;
            margin-bottom: 30px;
        }

            .headline h2:after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 60px;
                height: 3px;
                background: linear-gradient(135deg, #72c02c 0%, #5fa824 100%);
                border-radius: 2px;
            }

        /* Modern Bootbox Styling */
        .bootbox-modern .modal-dialog {
            max-width: 500px;
            margin-top: 100px;
        }

        .bootbox-modern .modal-content {
            border-radius: 12px;
            border: none;
            box-shadow: 0 8px 30px rgba(0,0,0,0.2);
            overflow: hidden;
        }

        .bootbox-modern .modal-body {
            padding: 0;
        }

        .bootbox-success-content {
            text-align: center;
            padding: 40px 30px 30px;
        }

        .bootbox-icon-wrapper {
            margin-bottom: 20px;
        }

            .bootbox-icon-wrapper i {
                font-size: 70px;
                color: #72c02c;
                animation: successPulse 1.5s ease-in-out;
            }

        @keyframes successPulse {
            0% {
                transform: scale(0);
                opacity: 0;
            }

            50% {
                transform: scale(1.1);
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        .bootbox-message-wrapper h4 {
            margin: 0 0 15px 0;
            font-size: 24px;
            font-weight: 700;
            color: #333;
        }

        .bootbox-message-wrapper p {
            margin: 0;
            font-size: 15px;
            color: #666;
            line-height: 1.6;
        }

        .bootbox-message-wrapper strong {
            color: #72c02c;
            font-weight: 600;
        }

        .bootbox-modern .modal-footer {
            border-top: 1px solid #e0e0e0;
            padding: 20px 30px;
            background: #f8f9fa;
            display: flex;
            gap: 15px;
            justify-content: center;
        }

            .bootbox-modern .modal-footer button {
                flex: 1;
                max-width: 200px;
                margin: 0 !important;
            }

        .btn-bootbox-cart {
            background: linear-gradient(135deg, #72c02c 0%, #5fa824 100%);
            border: none;
            transition: all 0.3s ease;
        }

            .btn-bootbox-cart:hover {
                background: linear-gradient(135deg, #5fa824 0%, #72c02c 100%);
                transform: translateY(-2px);
                box-shadow: 0 4px 12px rgba(114, 192, 44, 0.4);
            }

            .btn-bootbox-cart:disabled {
                opacity: 0.7;
                cursor: not-allowed;
            }

        .bootbox-loading {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: #72c02c;
            font-weight: 600;
            margin-left: 15px;
        }

            .bootbox-loading i {
                font-size: 18px;
            }

        .bootbox-modern .close {
            position: absolute;
            right: 15px;
            top: 15px;
            font-size: 30px;
            color: #999;
            opacity: 1;
            transition: all 0.3s ease;
            z-index: 10;
        }

            .bootbox-modern .close:hover {
                color: #e74c3c;
                transform: rotate(90deg);
            }

        /* Responsive */
        @media (max-width: 768px) {
            .bootbox-modern .modal-dialog {
                margin: 20px;
                max-width: calc(100% - 40px);
            }

            .bootbox-success-content {
                padding: 30px 20px 20px;
            }

            .bootbox-icon-wrapper i {
                font-size: 50px;
            }

            .bootbox-message-wrapper h4 {
                font-size: 20px;
            }

            .bootbox-message-wrapper p {
                font-size: 14px;
            }

            .bootbox-modern .modal-footer {
                flex-direction: column;
                padding: 15px 20px;
            }

                .bootbox-modern .modal-footer button {
                    max-width: 100%;
                }
        }

        .bootbox-modern.fade .modal-dialog {
            transform: scale(0.8);
            opacity: 0;
        }

                /* BS3 -> BS5: der sichtbare Zustand heisst .show, nicht .in. Mit .in griff
           diese Regel nie - der Dialog blieb auf opacity 0, waehrend der von
           Bootstrap verwaltete Backdrop die Seite abdunkelte: "Seite dunkelt ab,
           sonst passiert nichts". */
        .bootbox-modern.fade.show .modal-dialog {
            transform: scale(1);
            opacity: 1;
            transition: all 0.3s ease;
        }

/* ==== Produkt-Panel ====
   Im Altsystem steckten diese Regeln als inline style="..." im Markup, die
   Hover-Effekte zusätzlich als onmouseover/onmouseout-Attribute. Beides hier
   als normale CSS-Regeln - dadurch greift auch :focus (Tastaturbedienung),
   was die JS-Variante nicht abdeckte. */
.produkt-panel {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.produkt-panel__header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #72c02c;
    padding: 20px;
}

    .produkt-panel__header h3 {
        margin: 0;
        color: #333;
        font-size: 22px;
        font-weight: 600;
    }

    .produkt-panel__header h3 .fa-cube {
        color: #72c02c;
    }

.produkt-panel__neu {
    max-height: 50px;
    max-width: 50px;
    margin-left: 10px;
    vertical-align: middle;
}

.produkt-panel__body {
    padding: 30px;
}

/* ==== Bilder ==== */
.product-image-wrapper {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}

.produkt-hauptbild {
    max-height: 350px;
    margin: 0 auto;
    border-radius: 4px;
    transition: transform .3s ease;
}

    .produkt-hauptbild:hover {
        transform: scale(1.03);
    }

.produkt-thumb {
    border-color: #ddd;
    transition: border-color .2s, transform .2s;
}

    .produkt-thumb:hover,
    a:focus .produkt-thumb {
        border-color: #72c02c;
        transform: scale(1.05);
    }

/* ==== Infospalte ==== */
.produkt-infos {
    padding: 0 10px;
}

.produkt-details {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #72c02c;
}

.produkt-details h4,
.produkt-beschreibung h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

    .produkt-details h4 .fa,
    .produkt-beschreibung h4 .fa {
        color: #72c02c;
    }

.produkt-details ul {
    margin: 0;
}

.produkt-details li {
    padding: 6px 0;
    border-bottom: 1px solid #e8e8e8;
}

    .produkt-details li:last-child {
        border-bottom: none;
    }

    .produkt-details li > .fa {
        color: #72c02c;
        width: 20px;
    }

.produkt-merkmal {
    color: #72c02c;
}

.produkt-beschreibung {
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

    .produkt-beschreibung p {
        margin: 0;
        color: #555;
        line-height: 1.7;
    }

/* ==== Preis / Aktionen ==== */
.produkt-aktionen {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.produkt-preis {
    margin-bottom: 15px;
}

.produkt-preis__wert {
    font-size: 32px;
    font-weight: 700;
    color: #72c02c;
}

.produkt-preis small {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 4px;
}

.produkt-preis__anfrage {
    font-size: 22px;
    color: #666;
    font-weight: 600;
}

.produkt-btn {
    margin-right: 10px;
    margin-bottom: 10px;
}
