/* assets/css/pages/product-detail.css */

/* --- Import der Montserrat-Schriftart --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--shop-dark-text);
}

.shop-content.product-detail-page {
    padding: 60px 20px; /* Mehr Padding oben/unten */
    background-color: var(--shop-secondary-color); /* Konsistenter Hintergrund */
}

.container {
    max-width: 1100px; /* Breiterer Container für mehr Raum */
    margin: 0 auto;
}

/* --- Zurück-Button --- */
.back-to-products-elegant {
    margin-bottom: 30px; /* Mehr Abstand zum Inhalt */
    text-align: left;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.button-back-elegant {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: transparent;
    border: 1px solid var(--shop-border-color);
    border-radius: 50px;
    color: var(--shop-medium-text);
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.button-back-elegant:hover {
    background-color: var(--shop-primary-color);
    color: var(--shop-light-text);
    border-color: var(--shop-primary-color);
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(var(--shop-primary-color-rgb), 0.15);
}

.button-back-elegant::before {
    content: '\00AB'; /* Doppelpfeil-Zeichen */
    font-size: 1.2em;
    line-height: 1;
    margin-right: 5px;
}


/* --- Haupt-Layout der Produktdetailseite --- */
.product-detail-layout-grid-elegant {
    display: grid;
    grid-template-columns: 1fr; /* Standard: eine Spalte */
    gap: 40px; /* Grosszügigerer Abstand */
    background-color: var(--shop-light-text);
    padding: 40px; /* Grosszügiges Padding */
    border-radius: var(--shop-border-radius-soft);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Subtiler Schatten */
}

@media (min-width: 992px) {
    .product-detail-layout-grid-elegant {
        /* Neu definiertes Grid für die Hauptbereiche: Bild, Details, und die beiden Infoboxen */
        grid-template-columns: 0.9fr 1.1fr; /* Bild schmaler, Details breiter */
        grid-template-areas:
            "gallery details"
            "info-main info-main"; /* Beide Infoboxen unterhalb der anderen Sektionen, aber nun nebeneinander */
        gap: 60px; /* Noch mehr Abstand auf Desktop */
        padding: 60px; /* Noch grosszügigeres Padding */
    }
    .product-image-gallery-wrapper-elegant { grid-area: gallery; }
    .product-selection-and-buy-area-elegant { grid-area: details; }
    .product-info-wrapper-elegant { grid-area: info-main; } /* NEU: Definiere Grid-Area für den Wrapper */
}


/* --- Bildergalerie --- */
.product-image-gallery-wrapper-elegant {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

.main-image-elegant {
    width: 100%;
    max-width: 400px; /* Max-Breite für das Hauptbild */
    border-radius: var(--shop-border-radius-soft);
    margin-bottom: 20px;
    background-color: var(--shop-light-text);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* Eleganter Schatten */
    overflow: hidden;
}

.main-image-elegant img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: var(--shop-border-radius-image);
    transition: transform 0.3s ease;
}

.main-image-elegant img:hover {
    transform: scale(1.02); /* Leichter Zoom beim Hover */
}

.thumbnail-images-elegant {
    display: flex;
    justify-content: center;
    gap: 10px; /* Mehr Abstand zwischen Thumbnails */
    flex-wrap: wrap;
    padding-top: 0;
}

.thumbnail-item-elegant {
    width: 60px; /* Grössere Thumbnails */
    height: 60px;
    object-fit: cover;
    border: 2px solid var(--shop-border-color); /* Dezenterer Rahmen */
    border-radius: var(--shop-border-radius-image);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.thumbnail-item-elegant:hover {
    border-color: var(--shop-primary-color);
    box-shadow: 0 0 8px rgba(var(--shop-primary-color-rgb), 0.3);
    transform: translateY(-3px);
}

.thumbnail-item-elegant.active {
    border-color: var(--shop-primary-color);
    box-shadow: 0 0 10px rgba(var(--shop-primary-color-rgb), 0.5);
    transform: scale(1.05);
}


/* --- Produktinformationen und Kaufbereich --- */
.product-selection-and-buy-area-elegant {
    text-align: left;
}

.product-title-detail {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em; /* Grosser, prominenter Titel */
    margin-bottom: 10px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--shop-dark-text);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.03);
}

.product-description-compact-detail {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em; /* Gut lesbare Beschreibung */
    font-weight: 300;
    color: var(--shop-medium-text);
    margin-bottom: 30px; /* Mehr Abstand zu den Optionen */
    line-height: 1.6;
}

/* --- Kaufoptionen (Abonnement vs. Einmaliger Kauf) --- */
.purchase-type-selection-elegant {
    display: grid;
    grid-template-columns: 1fr; /* Standard: eine Spalte */
    gap: 20px; /* Mehr Abstand zwischen Optionen */
    margin-bottom: 40px; /* Abstand zum Button */
}

@media (min-width: 600px) {
    .purchase-type-selection-elegant {
        grid-template-columns: 1fr 1fr; /* Zwei Spalten */
    }
}

.purchase-option-card-elegant {
    position: relative;
    padding: 25px; /* Grosszügiges Padding */
    border: 1px solid var(--shop-border-color); /* Dezenterer Rahmen */
    border-radius: var(--shop-border-radius-soft);
    background-color: var(--shop-light-text);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Subtiler Schatten */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.purchase-option-card-elegant:hover {
    border-color: var(--shop-primary-color-light); /* Leichte Akzentuierung */
    box-shadow: 0 10px 25px rgba(var(--shop-primary-color-rgb), 0.1); /* Deutlicherer Schatten */
    transform: translateY(-5px);
}

.purchase-option-card-elegant input[type="radio"] {
    position: absolute;
    top: 15px;
    right: 15px;
    transform: scale(1.5); /* Grössere Radio-Buttons */
    cursor: pointer;
}

.purchase-option-card-elegant.active-type {
    border-color: var(--shop-primary-color);
    box-shadow: 0 15px 40px rgba(var(--shop-primary-color-rgb), 0.2);
    background-color: rgba(var(--shop-primary-color-rgb), 0.03); /* Leichte Farbe für aktive Karte */
}

.purchase-option-card-elegant.recommended-option .badge-elegant {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--shop-primary-color);
    color: var(--shop-light-text);
    padding: 5px 12px;
    border-radius: 50px; /* Pillenform */
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.option-content-elegant h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3em; /* Titel der Option */
    margin-bottom: 10px;
    color: var(--shop-dark-text);
    font-weight: 700;
}

.price-value-elegant {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em; /* Preis prominent */
    font-weight: 700;
    color: var(--shop-primary-color);
    margin-bottom: 10px;
    display: block; /* Stellt sicher, dass der Preis eine eigene Zeile hat */
}

.price-unit {
    font-size: 0.6em;
    font-weight: 400;
    color: var(--shop-medium-text);
}

.description-small {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    line-height: 1.4;
    color: var(--shop-medium-text);
}


/* --- Add-to-Cart Button --- */
.form-bottom-actions-elegant {
    text-align: center; /* Button zentrieren */
}

.button-add-to-cart-elegant {
    background: linear-gradient(45deg, var(--shop-primary-color), var(--shop-secondary-color-dark));
    color: var(--shop-light-text);
    padding: 15px 35px; /* Grosszügiges Padding */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2em; /* Grössere Schrift */
    transition: all 0.3s ease-in-out;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(var(--shop-primary-color-rgb), 0.2);
    display: inline-block; /* Für Padding und Shadow */
    width: auto; /* Flexibel */
    min-width: 250px; /* Mindestbreite */
}

.button-add-to-cart-elegant:hover {
    transform: translateY(-5px) scale(1.02); /* Schwebender Effekt */
    box-shadow: 0 12px 30px rgba(var(--shop-primary-color-rgb), 0.3);
    background: linear-gradient(45deg, var(--shop-secondary-color-dark), var(--shop-primary-color));
}

/* --- Premium Features Box & Produktbeschreibung Container (nebeneinander) --- */
.product-info-wrapper-elegant {
    /* Standardmäßig untereinander auf kleinen Bildschirmen */
    display: block;
    margin-top: 40px; /* Abstand zur Kaufsektion */
    margin-bottom: 0; /* Kein zusätzlicher Margin am Ende */
}

@media (min-width: 768px) { /* Hier legen wir fest, dass sie nebeneinander stehen */
    .product-info-wrapper-elegant {
        display: grid; /* Aktiviert Grid-Layout für die inneren Boxen */
        grid-template-columns: 1fr 1fr; /* Zwei gleich breite Spalten */
        gap: 30px; /* Abstand zwischen den beiden Boxen */
        /* margin-top und margin-bottom werden von product-detail-layout-grid-elegant gesteuert */
    }
}
@media (min-width: 992px) { /* Auf noch größeren Bildschirmen */
    .product-info-wrapper-elegant {
        gap: 60px; /* Noch mehr Abstand zwischen den Boxen */
    }
}


/* --- Premium Features Box --- */
.premium-features-box-elegant {
    background-color: var(--shop-light-text);
    border-radius: var(--shop-border-radius-soft);
    padding: 30px; /* Grosszügiges Padding */
    margin-bottom: 40px; /* Behält Margin für Mobile, wird durch Grid-Gap auf Desktop ersetzt */
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    color: var(--shop-dark-text);
    position: relative;
    overflow: hidden;
}

/* Angepasster Stil für Premium Features H3 als farbiger Querbalken (Text vertikal zentriert) */
.premium-features-box-elegant h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6em;
    margin: -30px -30px 30px -30px; /* Negativer Margin, um über die gesamte Breite zu gehen und oben/unten zu padding */
    padding: 15px 30px; /* Innenabstand für den Text */
    background-color: var(--shop-primary-color); /* Hintergrundfarbe des Balkens */
    color: var(--shop-light-text); /* Textfarbe auf dem Balken */
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Subtiler Schatten unter dem Balken */
    
    display: flex; /* Macht den h3 zum Flex-Container */
    align-items: center; /* Zentriert Inhalte vertikal */
    justify-content: center; /* Zentriert Inhalte horizontal */
    height: 60px; /* Feste Höhe des Balkens, anpassen nach Bedarf */
    line-height: 1.2; /* Anpassung der Zeilenhöhe für besseres Aussehen */
}


.premium-features-box-elegant p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    margin-bottom: 15px;
    color: var(--shop-medium-text);
    line-height: 1.6;
}
.premium-features-box-elegant ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-features-box-elegant ul li {
    padding-left: 30px; /* Platz für Icon */
    margin-bottom: 8px;
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95em; /* Gut lesbar */
    line-height: 1.5;
    color: var(--shop-dark-text);
}

.premium-features-box-elegant ul li::before {
    content: '✔'; /* Modernes Checkmark-Symbol */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--shop-success-color); /* Grüne Farbe für Checkmark */
    font-size: 1.2em;
    font-weight: bold;
}

.premium-feature-detail-text-elegant {
    color: var(--shop-dark-text);
    font-weight: 600;
}


/* --- Vollständige Produktbeschreibung --- */
.product-full-description-elegant {
    /* margin-top: 40px; */ /* Wird durch Grid-Gap des Elternelements ersetzt */
    margin-bottom: 0; /* Letzte Box am Ende des Wrappers hat keinen Margin-Bottom */
    padding-top: 30px; /* Bleibt für das innere Padding, falls kein Header da ist */
}

/* Angepasster Stil für Produktbeschreibung H3 als farbiger Querbalken (Text vertikal zentriert) */
.product-full-description-elegant h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    margin: -30px -30px 30px -30px; /* Negativer Margin, um über die gesamte Breite zu gehen und oben/unten zu padding */
    padding: 15px 30px; /* Innenabstand für den Text */
    background-color: var(--shop-primary-color); /* Hintergrundfarbe des Balkens */
    color: var(--shop-light-text); /* Textfarbe auf dem Balken */
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Subtiler Schatten unter dem Balken */

    display: flex; /* Macht den h3 zum Flex-Container */
    align-items: center; /* Zentriert Inhalte vertikal */
    justify-content: center; /* Zentriert Inhalte horizontal */
    height: 60px; /* Feste Höhe des Balkens, anpassen nach Bedarf */
    line-height: 1.2; /* Anpassung der Zeilenhöhe für besseres Aussehen */
}

.product-full-description-elegant p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    line-height: 1.6;
    color: var(--shop-medium-text);
}

/* --- Keine Produkte gefunden Nachricht --- */
.no-product-message-detail {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    color: var(--shop-medium-text);
    margin-top: 50px;
    font-style: italic;
}

/* --- Responsive Anpassungen für Produktdetails --- */
@media (max-width: 992px) {
    .product-detail-layout-grid-elegant {
        padding: 30px;
        gap: 30px;
    }
    .product-title-detail {
        font-size: 2.5em;
    }
    .product-description-compact-detail {
        font-size: 1em;
    }
    .purchase-option-card-elegant {
        padding: 20px;
    }
    .option-content-elegant h4 {
        font-size: 1.2em;
    }
    .price-value-elegant {
        font-size: 1.8em;
    }
    .description-small {
        font-size: 0.85em;
    }
    .button-add-to-cart-elegant {
        padding: 12px 25px;
        font-size: 1.1em;
        min-width: 200px;
    }
    .premium-features-box-elegant {
        padding: 25px;
        margin-bottom: 30px; /* Behält Margin für Mobile */
    }
    .premium-features-box-elegant h3 {
        font-size: 1.4em;
        margin: -25px -25px 25px -25px; /* Angepasster negativer Margin für kleinere Paddings */
        padding: 12px 25px;
        height: 50px; /* Angepasste Höhe für kleinere Bildschirme */
    }
    .premium-features-box-elegant p, .premium-features-box-elegant ul li, .product-full-description-elegant p {
        font-size: 0.9em;
    }
    .product-full-description-elegant h3 {
        font-size: 1.6em;
        margin: -25px -25px 25px -25px; /* Angepasster negativer Margin für kleinere Paddings */
        padding: 12px 25px;
        height: 50px; /* Angepasste Höhe für kleinere Bildschirme */
    }
}

@media (max-width: 768px) {
    .shop-content.product-detail-page {
        padding: 30px 15px;
    }
    .back-to-products-elegant {
        margin-bottom: 20px;
    }
    .product-detail-layout-grid-elegant {
        padding: 20px;
        gap: 20px;
    }
    .product-title-detail {
        font-size: 2em;
    }
    .product-description-compact-detail {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    .main-image-elegant {
        max-width: 300px; /* Kleiner auf Mobil */
        margin-left: auto;
        margin-right: auto;
    }
    .thumbnail-item-elegant {
        width: 50px;
        height: 50px;
    }
    .purchase-type-selection-elegant {
        grid-template-columns: 1fr; /* Eine Spalte auf kleinen Mobilgeräten */
        gap: 15px;
        margin-bottom: 30px;
    }
    .purchase-option-card-elegant {
        padding: 15px;
    }
    .option-content-elegant h4 {
        font-size: 1.1em;
    }
    .price-value-elegant {
        font-size: 1.6em;
    }
    .description-small {
        font-size: 0.8em;
    }
    .button-add-to-cart-elegant {
        width: 100%;
        min-width: unset;
        padding: 10px 20px;
        font-size: 1em;
    }
    .premium-features-box-elegant {
        padding: 20px;
        margin-bottom: 25px; /* Behält Margin für Mobile */
    }
    .premium-features-box-elegant h3 {
        font-size: 1.2em;
        margin: -20px -20px 20px -20px; /* Angepasster negativer Margin für kleinere Paddings */
        padding: 10px 20px;
        height: 45px; /* Angepasste Höhe für kleinere Bildschirme */
    }
    .premium-features-box-elegant p, .premium-features-box-elegant ul li, .product-full-description-elegant p {
        font-size: 0.85em;
    }
    .product-full-description-elegant h3 {
        font-size: 1.4em;
        margin: -20px -20px 20px -20px; /* Angepasster negativer Margin für kleinere Paddings */
        padding: 10px 20px;
        height: 45px; /* Angepasste Höhe für kleinere Bildschirme */
    }

    /* Korrektur: Margin für product-info-wrapper-elegant auf Mobilgeräten */
    .product-info-wrapper-elegant {
        margin-top: 20px; /* Abstand zur Kaufsektion auf Mobilgeräten */
        gap: 0; /* Kein Gap auf Mobil */
    }
}

@media (max-width: 480px) {
    .product-title-detail {
        font-size: 1.6em;
    }
    .product-description-compact-detail {
        font-size: 0.8em;
    }
    .main-image-elegant {
        max-width: 250px;
    }
    .thumbnail-item-elegant {
        width: 40px;
        height: 40px;
    }
    .price-value-elegant {
        font-size: 1.4em;
    }
    .option-content-elegant h4 {
        font-size: 1em;
    }
    .premium-features-box-elegant h3 {
        font-size: 1.1em;
        margin: -20px -20px 20px -20px; /* Beibehaltung des negativen Margins, falls die Box kleiner wird */
        padding: 8px 15px;
        height: 40px; /* Angepasste Höhe für sehr kleine Bildschirme */
    }
    .premium-features-box-elegant p, .premium-features-box-elegant ul li, .product-full-description-elegant p {
        font-size: 0.8em;
    }
}