/* opg-detail.css - Spezifisches CSS für OPG-Detailseite */

/* Body Styling mit Beige-Gradient */
.opg-detail-page {
    background: linear-gradient(135deg, #F9EAD3 0%, #FFFBF5 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #3A3A2E;
}

/* Container Anpassungen */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HERO SECTION - GRÜN MIT TRANSPARENTEM HINTERGRUND */
.opg-detail-hero {
    background: linear-gradient(135deg, #2E8B57 0%, #3CB371 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 15px;
    margin: 30px 0 40px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.2);
}

.opg-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: blur(3px);
    z-index: 0;
}

.opg-detail-hero-content {
    position: relative;
    z-index: 1;
}

.opg-detail-hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: white;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

.opg-detail-location {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* PRODUKT TAGS - KONSISTENT MIT LISTE */
.opg-products-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.opg-product-tag {
    padding: 8px 15px;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.opg-product-tag-light {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

/* FEATURED BADGE */
.opg-featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #E7A800;
    color: #3A3A2E;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* INHALTSABSCHNITTE - KONSISTENT MIT LISTE */
.opg-detail-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(58, 58, 46, 0.08);
    border: 1px solid #E7E7E0;
}

.opg-detail-section h2 {
    color: #2E8B57;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #E8F5E9;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
}

.opg-section-description {
    line-height: 1.8;
    font-size: 16px;
    color: #5D5A4C;
}

/* PRODUKTE GRID */
.opg-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.opg-product-card {
    background: #F8FFF9;
    border: 2px solid #D4EDDA;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.opg-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2E8B57 0%, #81C784 100%);
}

.opg-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(46, 139, 87, 0.15);
    border-color: #2E8B57;
}

.opg-product-icon {
    font-size: 48px;
    color: #2E8B57;
    margin-bottom: 15px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opg-product-title {
    color: #3A3A2E;
    margin-bottom: 10px;
    font-size: 18px;
}

.opg-product-description {
    color: #7A7565;
    font-size: 14px;
    line-height: 1.6;
}

/* KONTAKT GRID */
.opg-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.opg-contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #F8F9FA;
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid #E7E7E0;
}

.opg-contact-item:hover {
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    border-color: #2E8B57;
}

.contact-icon {
    color: #2E8B57;
    font-size: 28px;
    width: 50px;
    height: 50px;
    background: #E8F5E9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h4 {
    margin: 0 0 5px 0;
    color: #3A3A2E;
}

.contact-details p {
    margin: 0;
    color: #7A7565;
}

.contact-link {
    color: #2E8B57;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #257348;
    text-decoration: underline;
}

/* SOCIAL MEDIA SECTION */
.social-section h4 {
    margin-bottom: 15px;
    color: #3A3A2E;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-facebook {
    background: #1877F2;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-facebook:hover {
    background: #166FE5;
}

.btn-instagram {
    background: linear-gradient(45deg, #405DE6, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.btn-instagram:hover {
    opacity: 0.9;
}

/* BILDER GALERIE */
.opg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.opg-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    height: 180px;
    cursor: pointer;
    position: relative;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.opg-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.opg-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.opg-gallery-item:hover img {
    transform: scale(1.1);
}

/* ÖFFNUNGSZEITEN STYLING */
.opening-hours-container {
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #E7E7E0;
}

.opening-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #E7E7E0;
}

.opening-day:last-child {
    border-bottom: none;
}

.day-name {
    font-weight: 500;
    color: #3A3A2E;
    display: flex;
    align-items: center;
    gap: 10px;
}

.day-hours {
    color: #2E8B57;
    font-weight: 500;
}

/* ZURÜCK BUTTON - GRÜN */
.back-to-opgs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #2E8B57;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 20px;
    transition: all 0.3s;
    border: 2px solid #2E8B57;
}

.back-to-opgs:hover {
    background: #257348;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3);
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-lightbox:hover {
    background: rgba(255,255,255,0.2);
}

/* PRODUKTE TAGS CONTAINER */
.products-tags-container {
    background: #F8F9FA;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

/* MAIN CONTENT - Abstand für Footer Navigation */
main.container {
    padding-bottom: 90px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .opg-detail-hero {
        padding: 40px 15px;
        border-radius: 12px;
        margin: 20px 0 30px 0;
    }
    
    .opg-detail-hero h1 {
        font-size: 28px;
    }
    
    .opg-detail-location {
        font-size: 18px;
        flex-direction: column;
        gap: 5px;
    }
    
    .opg-featured-badge {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .opg-detail-section {
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 20px;
    }
    
    .opg-detail-section h2 {
        font-size: 20px;
    }
    
    .opg-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .opg-contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .opg-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .opg-gallery-item {
        height: 150px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .back-to-opgs {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .opg-detail-hero h1 {
        font-size: 24px;
    }
    
    .opg-detail-location {
        font-size: 16px;
    }
    
    .opg-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .opening-day {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .day-hours {
        margin-left: 28px;
    }
}

/* Animationen */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.opg-detail-section {
    animation: fadeIn 0.5s ease-out;
}

/* Druckoptimierungen */
@media print {
    .main-header,
    .footer-nav,
    .back-to-opgs,
    .social-buttons,
    .opg-gallery-grid,
    button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .opg-detail-section {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .opg-detail-hero {
        background: #2E8B57 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}