/* ===================================
   MÜNZLOCHNER KATALOG - FIXED & IMPROVED
   Produktseite mit Galerie + CF7
   =================================== */

/* ===================================
   LAYOUT VERBESSERUNGEN
   =================================== */

.mk-single-produkt {
    max-width: 1400px !important; /* Breiter für Desktop */
    margin: 0 auto;
    padding: 40px 20px;
}

.mk-produkt-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Mehr Platz für Bilder */
    gap: 60px;
    margin-top: 30px;
}

/* ===================================
   BILD-GALERIE - FIXED
   =================================== */

.mk-produkt-bilder {
    position: relative;
}

/* Hauptbild Container - WICHTIG: Muss sichtbar sein! */
.mk-galerie-main {
    position: relative;
    width: 100%;
    height: 600px; /* Größer für Desktop */
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Einzelne Slides - FIX: Kein Blinken mehr */
.mk-galerie-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 0;
}

/* WICHTIG: Nur aktives Slide anzeigen */
.mk-galerie-slide.active {
    display: block !important;
    z-index: 1 !important;
}

/* Hauptbild - FIX: Muss angezeigt werden */
.mk-main-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mk-main-image:hover {
    transform: scale(1.03);
}

/* Navigation Pfeile - Kleiner */
.mk-galerie-prev,
.mk-galerie-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(27, 43, 74, 0.8);
    color: white;
    border: none;
    font-size: 32px;
    width: 45px;
    height: 45px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mk-galerie-prev:hover,
.mk-galerie-next:hover {
    background: #C9A961; /* Gold */
    transform: translateY(-50%) scale(1.1);
}

.mk-galerie-prev {
    left: 15px;
}

.mk-galerie-next {
    right: 15px;
}

/* Thumbnail Navigation */
.mk-galerie-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.mk-thumb {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mk-thumb:hover {
    border-color: #C9A961;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(201, 169, 97, 0.3);
}

.mk-thumb.active {
    border-color: #C9A961;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.4);
}

.mk-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===================================
   LIGHTBOX
   =================================== */

.mk-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mk-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.mk-lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    z-index: 100000;
}

.mk-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.8);
}

.mk-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 50px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.mk-lightbox-close:hover {
    transform: scale(1.3) rotate(90deg);
}

body.mk-lightbox-open {
    overflow: hidden;
}

/* ===================================
   PRODUKTINFO BOXEN
   =================================== */

.mk-produkt-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mk-info-box {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mk-info-box p {
    margin: 15px 0;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.mk-info-box strong {
    color: #1B2B4A;
    font-weight: 600;
}

.mk-preis-highlight {
    font-size: 36px !important;
    color: #C9A961 !important;
    font-weight: bold !important;
    margin-top: 20px !important;
    text-shadow: 0 2px 4px rgba(201, 169, 97, 0.2);
}

.mk-beschreibung,
.mk-technische-details {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mk-beschreibung h3,
.mk-technische-details h3 {
    font-size: 22px;
    color: #1B2B4A;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #C9A961;
}

.mk-beschreibung-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.mk-technische-details p {
    margin: 12px 0;
    font-size: 15px;
    line-height: 1.7;
}

/* ===================================
   CF7 ANFRAGE-FORMULAR
   =================================== */

.mk-anfrage-section {
    margin-top: 80px;
    padding: 50px;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #e5e5e5;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.mk-anfrage-section h2 {
    font-size: 32px;
    color: #1B2B4A;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.mk-anfrage-intro {
    font-size: 17px;
    color: #666;
    margin-bottom: 35px;
    line-height: 1.7;
}

/* CF7 Formular Felder */
.mk-anfrage-section .wpcf7 {
    max-width: 100%;
}

.mk-anfrage-section .wpcf7 label {
    display: block;
    margin-bottom: 25px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.mk-anfrage-section .wpcf7 input[type="text"],
.mk-anfrage-section .wpcf7 input[type="email"],
.mk-anfrage-section .wpcf7 input[type="tel"],
.mk-anfrage-section .wpcf7 textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    margin-top: 8px;
    background: #fff;
}

.mk-anfrage-section .wpcf7 input:focus,
.mk-anfrage-section .wpcf7 textarea:focus {
    outline: none;
    border-color: #C9A961;
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.15);
}

.mk-anfrage-section .wpcf7 textarea {
    min-height: 180px;
    resize: vertical;
}

.mk-anfrage-section .wpcf7 input[type="submit"] {
    background: linear-gradient(135deg, #C9A961 0%, #b89551 100%);
    color: white;
    padding: 18px 50px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.mk-anfrage-section .wpcf7 input[type="submit"]:hover {
    background: linear-gradient(135deg, #1B2B4A 0%, #152238 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 43, 74, 0.4);
}

.mk-anfrage-section .wpcf7 input[type="submit"]:active {
    transform: translateY(0);
}

/* CF7 Validierung */
.mk-anfrage-section .wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 8px;
    display: block;
}

.mk-anfrage-section .wpcf7-not-valid {
    border-color: #e74c3c !important;
}

/* CF7 Meldungen */
.mk-anfrage-section .wpcf7-response-output {
    margin: 25px 0 0 0;
    padding: 18px;
    border-radius: 8px;
    font-size: 15px;
}

.mk-anfrage-section .wpcf7-mail-sent-ok {
    background: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
}

.mk-anfrage-section .wpcf7-validation-errors,
.mk-anfrage-section .wpcf7-mail-sent-ng {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
}

/* ===================================
   RESPONSIVE
   =================================== */

/* Tablet */
@media (max-width: 1200px) {
    .mk-produkt-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .mk-galerie-main {
        height: 500px;
    }
}

@media (max-width: 1024px) {
    .mk-galerie-main {
        height: 450px;
    }
    
    .mk-galerie-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .mk-thumb {
        height: 100px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mk-produkt-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .mk-galerie-main {
        height: 350px;
    }
    
    .mk-galerie-prev,
    .mk-galerie-next {
        width: 50px;
        height: 50px;
        font-size: 32px;
    }
    
    .mk-galerie-prev {
        left: 15px;
    }
    
    .mk-galerie-next {
        right: 15px;
    }
    
    .mk-galerie-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }
    
    .mk-thumb {
        height: 80px;
    }
    
    .mk-anfrage-section {
        padding: 35px 25px;
        margin-top: 50px;
    }
    
    .mk-anfrage-section h2 {
        font-size: 26px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .mk-galerie-main {
        height: 280px;
    }
    
    .mk-galerie-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }
    
    .mk-thumb {
        height: 70px;
        border-width: 2px;
    }
    
    .mk-anfrage-section {
        padding: 25px 20px;
    }
    
    .mk-anfrage-section h2 {
        font-size: 24px;
    }
    
    .mk-anfrage-section .wpcf7 input[type="submit"] {
        width: 100%;
        padding: 16px;
    }
    
    .mk-info-box,
    .mk-beschreibung,
    .mk-technische-details {
        padding: 25px 20px;
    }
    
    .mk-preis-highlight {
        font-size: 28px !important;
    }
}
