/*
Theme Name: Themify Ultra Child
Description: A child theme of Themify Ultra
Template: themify-ultra
Author: hephataadmin (a.pohl@creo-media.de)
*/

/* Footer Color Harmonization */
#footerwrap {
    background: #2c3e50 !important;
}

#footer a {
    color: #f4f1eb !important;
}

#footer a:hover {
    color: #FFFFFF !important;
}

.footer-nav a {
    color: #f4f1eb !important;
}

.footer-nav a:hover {
    color: #FFFFFF !important;
}

.footer-widgets .widgettitle {
    color: #f4f1eb !important;
}

.footer-widgets .widget {
    color: #f4f1eb !important;
}

.footer-widgets .widget a {
    color: #f4f1eb !important;
}

.footer-widgets .widget a:hover {
    color: #FFFFFF !important;
}

/* End Footer Color Harmonization */

/* ========================================
   INTERVIEW TEMPLATE STYLES
   ======================================== */

/* Interview Container */
.interview-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    animation: fadeIn 0.5s ease-in-out;
    width: 95%;
}

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

/* Chapter Navigation Styles */
.interview-chapter-nav {
    background: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 20px;
    border-radius: 10px;
    position: sticky;
    z-index: 150;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.interview-chapter-progress {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.interview-progress-bar {
    height: 100%;
    background: #8B4513;
    width: 0%;
    transition: width 0.3s ease;
}

.interview-chapter-markers {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    width: 90%;
    margin: 0 auto;
    padding: 0 2rem;
    flex-wrap: wrap;
}

.interview-chapter-marker {
    background: none;
    border: none;
    color: #8B4513;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.interview-chapter-marker:hover {
    background: #f4f1eb;
    color: #8B4513;
}

.interview-chapter-marker.active {
    background: #8B4513;
    color: #FFFFFF;
}

/* Chapter Sections */
.interview-chapter-section {
    margin: 1rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid #e9ecef;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.interview-chapter-section:first-child {
    border-top: none;
}

.interview-chapter-section.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Inline Chapter Markers */
.interview-chapter-marker-inline {
    text-align: center;
    margin: 1rem 0 1.5rem 0;
    padding: 0.5rem 0;
}

.interview-chapter-marker-inline h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #8B4513;
    background: #f4f1eb;
    padding: 1rem 2rem;
    border: 2px solid #f4f1eb;
    border-radius: 10px;
    display: inline-block;
    margin: 0;
    position: relative;
    transition: all 0.3s ease;
}

.interview-chapter-marker-inline h3:hover {
    background: #f4f1eb;
    border-color: #8B4513;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
}

.interview-chapter-marker-inline h3::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: #2c3e50;
    border-radius: 2px;
}

.interview-chapter-marker-inline h3::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: #2c3e50;
    border-radius: 2px;
}

/* Interview Gallery Styles */
.interview-image-gallery {
    margin: 1rem 0;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.gallery-header h4 {
    color: #333;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

.gallery-counter {
    background: #f8f9fa;
    color: #666;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 400;
    border: 1px solid #e9ecef;
}

.gallery-container {
    position: relative;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gallery-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #f8f9fa;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.gallery-container:hover .gallery-overlay {
    opacity: 1;
}

.zoom-icon {
    color: white;
    font-size: 24px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.5);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gallery-container:hover .zoom-icon {
    background: rgba(0,0,0,0.7);
    transform: scale(1.1);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 300;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.gallery-container:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.05);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.thumbnail.active {
    border-color: #333;
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-captions {
    text-align: center;
}

.image-caption {
    display: none;
    font-size: 0.9rem;
    color: #666;
    font-style: normal;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    margin: 0 auto;
    max-width: 80%;
    border: 1px solid #e9ecef;
    line-height: 1.4;
}

.image-caption.active {
    display: block;
}

.interview-gallery-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-style: italic;
    background: white;
    border-radius: 10px;
    border: 2px dashed #ddd;
}

.interview-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.interview-gallery-header h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 0;
}

.interview-gallery-image-container {
    text-align: center;
}

.interview-gallery-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.interview-image-caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Textumfluss-Layout mit Float - Verbesserte Version */
.interview-text-flow-container {
    position: relative;
    margin: 20px 0;
    /* Kein overflow: hidden hier, damit Text umfließen kann */
}

.interview-text-flow-container::after {
    content: "";
    display: table;
    clear: both;
}

.interview-text-flow-gallery {
    float: left;
    width: 350px;
    max-width: 350px;
    margin: 0 30px 20px 0; /* Rechts und unten Abstand */
    clear: left; /* Stelle sicher, dass Galerie links bleibt */
}

.interview-text-flow-content {
    margin: 0;
    text-align: justify;
    padding-left: 0;
    margin-left: 0;
    /* Kein overflow: hidden, damit Text umfließen kann */
    min-height: 200px; /* Mindesthöhe für bessere Darstellung */
}

/* Verbesserter Textumfluss für Speaker-Elemente */
.interview-text-flow-content .interview-speaker {
    margin-bottom: 20px;
    border-right-width: 8px;
    padding-right: 25px;
    /* Entferne alle width/max-width Einschränkungen für echtes Text-Wrapping */
    width: auto;
    max-width: none;
    /* Überschreibe die allgemeine interview-speaker Regel für Text-Flow */
    display: block !important; /* Nicht flex für Text-Wrapping */
    flex-direction: unset !important;
    gap: unset !important;
}

.interview-text-flow-content .interview-speech p {
    margin-bottom: 10px;
    text-align: justify;
}

/* Responsive Textumfluss */
@media (max-width: 768px) {
    /* Text Flow Container - Mobile Fix */
    .interview-text-flow-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px 0 !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    
    .interview-text-flow-gallery {
        float: none !important; /* Kein Float auf Mobile */
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 20px 0 !important; /* Nur unten Abstand */
        clear: none !important; /* Clear auf Mobile entfernen */
        order: 1 !important;
        box-sizing: border-box !important;
    }
    
    .interview-text-flow-gallery .interview-image-gallery {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .interview-text-flow-content {
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important; /* Keine Mindesthöhe auf Mobile */
        margin: 0 !important;
        padding: 20px 20px !important; /* Gleichmäßiges Padding auf allen Seiten */
        box-sizing: border-box !important;
        overflow: visible !important;
        order: 2 !important;
        text-align: left !important;
        background: white !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    }
    
    .interview-text-flow-content .interview-speaker {
        width: 100% !important; /* Volle Breite auf Mobile */
        max-width: 100% !important;
        margin: 0 0 20px 0 !important; /* Keine seitlichen Margins */
        padding: 0 !important; /* Kein Padding, nutzt Container-Padding */
        border-right: none !important;
        box-sizing: border-box !important;
    }
    
    .interview-text-flow-content .interview-speaker-label {
        padding: 20px 20px 0 20px !important; /* Padding oben, links und rechts */
        box-sizing: border-box !important;
    }
    
    .interview-text-flow-content .interview-speaker-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important; /* Gleichmäßiges Padding links und rechts */
        margin: 0 !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        font-size: 1.05rem !important; /* Wie illustration-text */
        line-height: 1.8 !important; /* Wie illustration-text */
        color: #444 !important; /* Wie illustration-text */
    }
    
    /* Sicherstellen, dass alle Elemente innerhalb des Text-Containers das Container-Padding respektieren */
    .interview-text-flow-content * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .interview-text-flow-content .interview-speaker-content p {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        margin-bottom: 15px !important; /* Wie illustration-text p */
    }
    
    .interview-text-flow-content .interview-speaker-content p:last-child {
        margin-bottom: 0 !important;
    }
}

/* Interview Center Gallery Layout */
.interview-center-gallery-container {
    margin-top: 20px;
}

.interview-center-gallery {
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.interview-center-content {
    margin-top: 20px;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-image-container {
        height: 300px;
        min-height: 250px;
        max-height: 400px;
    }
    
    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .gallery-nav.prev {
        left: 15px;
    }
    
    .gallery-nav.next {
        right: 15px;
    }
    
    .zoom-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .gallery-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Interview Text Only Layout */
.interview-text-only-container {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border-right: 5px solid #8B4513;
}

.interview-text-only-container .interview-speaker {
    margin-bottom: 0;
    border-right: none;
    padding-right: 0;
}

.interview-text-only-container .interview-speaker-content {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: justify;
}

/* Interview Content Container */
.interview-content {
    margin-top: 20px;
}

/* Interview Section Content - Abstand zwischen Abschnitten */
.interview-section-content {
    margin-bottom: 50px;
    clear: both;
}

.interview-section-content:last-child {
    margin-bottom: 0;
}

.interview-chapter-content {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.interview-chapter-content:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.interview-chapter-title {
    margin-bottom: 20px;
    text-align: center;
}

.interview-chapter-title h3 {
    color: #8B4513;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-right: 5px solid #8B4513;
}

/* Gallery Container Styles */
.interview-gallery-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.interview-gallery-image-container {
    position: relative;
    flex: 1;
    height: auto;
    min-height: 300px;
    overflow: hidden;
    border-radius: 8px;
}

.interview-gallery-image-container .interview-gallery-image {
    position: static;
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: block;
}

.interview-gallery-image-container .interview-gallery-image.active {
    opacity: 1 !important;
}

.interview-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.interview-gallery-image-container:hover .interview-gallery-overlay {
    opacity: 1;
}

.interview-zoom-icon {
    font-size: 2rem;
    color: white;
}

.interview-gallery-nav {
    background: #8B4513;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.interview-gallery-nav:hover {
    background: #A0522D;
    transform: scale(1.1);
}

.interview-gallery-nav:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.interview-gallery-counter {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.interview-gallery-captions {
    text-align: center;
}

.interview-gallery-captions .interview-image-caption {
    display: none;
}

.interview-gallery-captions .interview-image-caption.active {
    display: block;
}

/* Gallery Thumbnails */
.interview-gallery-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

.interview-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.interview-thumbnail:hover {
    border-color: #8B4513;
    transform: scale(1.05);
}

.interview-thumbnail.active {
    border-color: #8B4513;
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.3);
}

.interview-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

/* Interview Section */
.interview-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.interview-speaker {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    border-right: 5px solid #2c3e50;
    margin-bottom: 15px;
}

.interview-speaker.prof {
    border-right-color: #28a745;
}

.interview-speaker.rpp {
    border-right-color: #2c3e50;
}

.interview-speaker-label {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.interview-speaker.prof .interview-speaker-label {
    color: #28a745;
}

.interview-speech p {
    margin-bottom: 10px;
    line-height: 1.7;
}

.interview-speech strong {
    color: #333;
    font-weight: 600;
}

.interview-speech em {
    color: #2c3e50;
    font-style: italic;
}

.interview-speech a {
    color: #2c3e50;
    text-decoration: none;
}

.interview-speech a:hover {
    text-decoration: underline;
}

/* Lightbox Styles */
.interview-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.interview-lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.interview-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #FFFFFF;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.interview-lightbox-close:hover {
    color: #8B4513;
}

.interview-lightbox-image {
    max-width: 100%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.interview-lightbox-caption {
    color: #FFFFFF;
    text-align: center;
    font-size: 1.2rem;
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(139, 69, 19, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.interview-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #8B4513;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.interview-lightbox-nav:hover {
    background: #A0522D;
    transform: translateY(-50%) scale(1.1);
}

.interview-lightbox-nav.prev {
    left: 30px;
}

.interview-lightbox-nav.next {
    right: 30px;
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .interview-lightbox-content {
        width: 95%;
        height: 95%;
        padding: 10px;
    }
    
    .interview-lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .interview-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .interview-lightbox-nav.prev {
        left: 20px;
    }
    
    .interview-lightbox-nav.next {
        right: 20px;
    }
    
    .interview-lightbox-caption {
        font-size: 1rem;
        margin-top: 15px;
        padding: 8px 15px;
    }
}

/* Mobile Chapter Navigation - Dropdown Style */
@media (max-width: 1024px) {
    /* Chapter Navigation - Dropdown */
    .chapter-nav {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9998 !important;
        background: #f8f9fa !important;
        padding: 10px !important;
        margin: 0 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    /* Hide original chapter markers on mobile */
    .chapter-markers {
        display: none !important;
    }
    
    /* Dropdown Toggle Button */
    .chapter-dropdown-toggle {
        display: block !important;
        width: 100% !important;
        padding: 15px 20px !important;
        background: #8B4513 !important;
        color: #fff !important;
        border: none !important;
        border-radius: 8px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        text-align: left !important;
        position: relative !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }
    
    .chapter-dropdown-toggle:hover {
        background: #A0522D !important;
    }
    
    .chapter-dropdown-toggle::after {
        content: '▼' !important;
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        transition: transform 0.3s ease !important;
        font-size: 0.9rem !important;
    }
    
    .chapter-dropdown-toggle.open::after {
        transform: translateY(-50%) rotate(180deg) !important;
    }
    
    /* Dropdown Menu Container */
    .chapter-dropdown-menu {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #fff !important;
        border-radius: 0 0 8px 8px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        z-index: 2000 !important;
        max-height: 300px !important;
        overflow-y: auto !important;
        border: 1px solid #ddd !important;
    }
    
    .chapter-nav.dropdown-open .chapter-dropdown-menu {
        display: block !important;
    }
    
    /* Dropdown Menu Items */
    .chapter-dropdown-item {
        display: block !important;
        width: 100% !important;
        padding: 15px 20px !important;
        font-size: 0.9rem !important;
        font-weight: 500 !important;
        background: #fff !important;
        color: #333 !important;
        border: none !important;
        border-bottom: 1px solid #eee !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        text-align: left !important;
        line-height: 1.3 !important;
    }
    
    .chapter-dropdown-item:last-child {
        border-bottom: none !important;
        border-radius: 0 0 8px 8px !important;
    }
    
    .chapter-dropdown-item:hover {
        background: #f8f9fa !important;
        color: #8B4513 !important;
    }
    
    .chapter-dropdown-item.active {
        background: #8B4513 !important;
        color: #fff !important;
        font-weight: 600 !important;
    }
    
    /* Hide progress bar on mobile to save space */
    .chapter-progress {
        display: none !important;
    }
    
    /* Interview Chapter Navigation - Dropdown Style */
    .interview-chapter-nav {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9998 !important;
        background: #f8f9fa !important;
        padding: 10px !important;
        margin: 0 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        width: 100% !important;
        border-radius: 0 !important;
        max-width: none !important;
        transform: none !important;
    }
    
    /* Hide original interview chapter markers on mobile */
    .interview-chapter-markers {
        display: none !important;
    }
    
    /* Interview Dropdown Toggle Button */
    .interview-chapter-dropdown-toggle {
        display: block !important;
        width: 100% !important;
        padding: 15px 20px !important;
        background: #8B4513 !important;
        color: #fff !important;
        border: none !important;
        border-radius: 8px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        text-align: left !important;
        position: relative !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }
    
    .interview-chapter-dropdown-toggle:hover {
        background: #A0522D !important;
    }
    
    .interview-chapter-dropdown-toggle::after {
        content: '▼' !important;
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        transition: transform 0.3s ease !important;
        font-size: 0.9rem !important;
    }
    
    .interview-chapter-dropdown-toggle.open::after {
        transform: translateY(-50%) rotate(180deg) !important;
    }
    
    /* Interview Dropdown Menu Container */
    .interview-chapter-dropdown-menu {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #fff !important;
        border-radius: 0 0 8px 8px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        z-index: 2000 !important;
        max-height: 300px !important;
        overflow-y: auto !important;
        border: 1px solid #ddd !important;
    }
    
    .interview-chapter-nav.dropdown-open .interview-chapter-dropdown-menu {
        display: block !important;
    }
    
    /* Interview Dropdown Menu Items */
    .interview-chapter-dropdown-item {
        display: block !important;
        width: 100% !important;
        padding: 15px 20px !important;
        font-size: 0.9rem !important;
        font-weight: 500 !important;
        background: #fff !important;
        color: #333 !important;
        border: none !important;
        border-bottom: 1px solid #eee !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        text-align: left !important;
        line-height: 1.3 !important;
    }
    
    .interview-chapter-dropdown-item:last-child {
        border-bottom: none !important;
        border-radius: 0 0 8px 8px !important;
    }
    
    .interview-chapter-dropdown-item:hover {
        background: #f8f9fa !important;
        color: #8B4513 !important;
    }
    
    .interview-chapter-dropdown-item.active {
        background: #8B4513 !important;
        color: #fff !important;
        font-weight: 600 !important;
    }
    
    /* Hide interview progress bar on mobile */
    .interview-chapter-progress {
        display: none !important;
    }
    
    /* Add top margin to content to prevent overlap with fixed header and dropdown */
    .interview-content,
    .main-content,
    .content,
    body {
        margin-top: 160px !important;
        padding-top: 20px !important;
    }
}

@media (max-width: 480px) {
    .interview-container {
        padding: 10px;
    }
    
    /* Extra small screens - Single column chapter markers */
    .chapter-markers {
        flex-direction: column !important;
        gap: 3px !important;
    }
    
    .chapter-marker {
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 10px 8px !important;
        font-size: 0.75rem !important;
    }
    
    .chapter-nav {
        padding: 8px !important;
    }
}

/* Fix for submenu links */
.submenu-item {
    display: block;
    padding: 12px 20px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

.submenu-item:hover {
    background: rgba(255,255,255,0.1);
    color: #e9ecef;
    text-decoration: none;
}

.submenu-item:last-child {
    border-bottom: none;
}

/* Hide default Themify menu */
.site-header,
#header,
.header-wrap,
.main-navigation,
.nav-menu,
div.headerwrap,
#headerwrap,
div#headerwrap,
.headerwrap.tf_box {
    display: none !important;
}

/* Force remove any persistent active states */
.header-panel.current-menu-item,
.header-panel.current_page_item,
.header-panel.current,
.header-panel[class*="current"] {
    border: none !important;
    box-shadow: none !important;
    background: #8B4513 !important;
}

.header-panel.current-menu-item .panel-title,
.header-panel.current_page_item .panel-title,
.header-panel.current .panel-title,
.header-panel[class*="current"] .panel-title {
    background: rgba(0, 0, 0, 0.7) !important;
    border-top: none !important;
}

/* Schuchard Adaptive Header Menu */
.schuchard-header-menu {
    background: #2c3e50;
    padding: 20px 0;
    margin-bottom: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
    overflow: visible;
    transition: all 0.4s ease;
}

/* Add top margin to body content to prevent overlap with fixed header */
body {
    padding-top: 100px;
}

/* Ensure main content areas have proper spacing below fixed header */
#pagewrap,
#body,
.page-content,
.entry-content,
.galleries-page,
.interview-container,
.themify_builder_content {
    margin-top: 20px;
}

/* Desktop Menu - Show panels on large screens */
@media screen and (min-width: 1025px) {
    .schuchard-header-menu {
        padding: 20px 0 !important;
    }
    
    .schuchard-header-menu .header-panels {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .schuchard-header-menu .header-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Hide hamburger button on desktop */
    .hamburger-menu-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Show desktop chapter markers */
    .chapter-markers,
    .interview-chapter-markers {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Hide mobile dropdown elements */
    .chapter-dropdown-toggle,
    .chapter-dropdown-menu,
    .interview-chapter-dropdown-toggle,
    .interview-chapter-dropdown-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* Hamburger Button - Hidden by default on desktop */
.hamburger-menu-toggle {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    visibility: hidden;
    opacity: 0;
    padding: 0;
}

.hamburger-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    margin: 4px auto;
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* Mobile Menu - Hamburger Style */
@media screen and (max-width: 1024px) {
    .schuchard-header-menu {
        padding: 10px 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1001 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: #2c3e50 !important;
        min-height: 60px !important;
    }
    
    /* Show hamburger button on smaller screens */
    .hamburger-menu-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        width: 30px !important;
        height: 30px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        z-index: 10000 !important;
        padding: 0 !important;
    }
    
    /* Force hamburger button visibility with maximum specificity */
    .schuchard-header-menu .hamburger-menu-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Hide desktop panels on smaller screens */
    .schuchard-header-menu .header-panels {
        display: none !important;
    }
    
    /* Hide desktop header container on smaller screens */
    .schuchard-header-menu .header-container {
        display: none !important;
    }
    
    /* Show mobile menu when opened - CENTERED 90% SIZE */
    .schuchard-header-menu.mobile-menu-open .header-panels {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 50px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        background: #8B4513 !important;
        z-index: 9999 !important;
        padding: 15px 25px !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
        align-items: center !important;
        justify-content: flex-start !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-height: calc(90vh - 100px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 8px !important;
    }
    
    .schuchard-header-menu.mobile-menu-open .header-container {
        display: block !important;
    }
    
    /* Mobile menu panel styling - COMPACT 90% SIZE */
    .schuchard-header-menu.mobile-menu-open .header-panel {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 20px !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        width: 100% !important;
        text-align: center !important;
        border: 2px solid transparent !important;
        background: rgba(255,255,255,0.1) !important;
        margin: 1px 0 !important;
        flex-direction: column !important;
        border-radius: 6px !important;
        min-height: auto !important;
    }
    
    /* Wenn kein Bild vorhanden ist, Text zentrieren */
    .schuchard-header-menu.mobile-menu-open .header-panel:not(:has(.panel-image)) {
        justify-content: center !important;
    }
    
    .schuchard-header-menu.mobile-menu-open .header-panel:hover {
        background: rgba(255,255,255,0.2) !important;
        border-color: rgba(255,255,255,0.3) !important;
        transform: none !important;
    }
    
    .schuchard-header-menu.mobile-menu-open .header-panel.active {
        background: rgba(255,255,255,0.25) !important;
        border-color: #fff !important;
        box-shadow: 0 0 8px rgba(255,255,255,0.3) !important;
    }
    
    .schuchard-header-menu.mobile-menu-open .panel-title {
        color: #fff !important;
        font-size: 0.9rem !important;
        font-weight: 500 !important;
        margin: 0 !important;
        text-align: center !important;
        line-height: 1.2 !important;
        width: 100% !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }
    
    .schuchard-header-menu.mobile-menu-open .panel-image {
        display: none !important;
    }
    
    /* ULTRA HIGH SPECIFICITY - HIDE IMAGES */
    body .schuchard-header-menu.mobile-menu-open[data-mobile-open="true"] .panel-image {
        display: none !important;
    }
    
    
    /* Disable hover behavior on mobile */
    .schuchard-header-menu.mobile-menu-open {
        pointer-events: auto !important;
    }
    
    .schuchard-header-menu.mobile-menu-open:hover {
        /* Prevent hover from closing mobile menu */
        background: #2c3e50 !important;
    }
    
    .schuchard-header-menu.mobile-menu-open .header-panels:hover {
        /* Prevent hover from affecting mobile menu panels */
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Force mobile menu to stay open - override any desktop behavior */
    .schuchard-header-menu.mobile-menu-open[data-mobile-open="true"] {
        background: #2c3e50 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1001 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .schuchard-header-menu.mobile-menu-open[data-mobile-open="true"] .header-panels {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #8B4513 !important; /* Einheitlicher brauner Hintergrund */
        z-index: 1000 !important;
        padding: 30px 20px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
        align-items: center !important; /* Zentrierte Ausrichtung */
        justify-content: center !important;
    }
    
    /* Force header to be fixed on mobile - float over content */
    .schuchard-header-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 10000 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        background: #2c3e50 !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
        will-change: transform !important;
    }
    
    /* Override collapsed state on mobile */
    .schuchard-header-menu.collapsed {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        position: fixed !important;
        top: 0 !important;
    }
    
    /* Override js-controlled behavior on mobile - keep fixed but disable hover */
    .schuchard-header-menu.js-controlled {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        position: fixed !important;
        top: 0 !important;
    }
    
    /* Disable desktop hover behavior on mobile */
    .schuchard-header-menu.js-controlled:hover {
        /* Prevent hover from affecting mobile menu */
    }
    
    .schuchard-header-menu.js-controlled .header-panels:hover {
        /* Prevent hover from affecting mobile menu panels */
    }
    
    /* Force mobile menu to stay open when mobile-menu-open class is present - REMOVED CONFLICTING RULE */
    
    .schuchard-header-menu.mobile-menu-open .header-container {
        display: block !important;
    }
    
    /* ULTRA HIGH SPECIFICITY - OVERRIDE ALL OTHER RULES */
    body .schuchard-header-menu.mobile-menu-open[data-mobile-open="true"] .header-panels {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 50px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        background: #8B4513 !important;
        z-index: 9999 !important;
        padding: 15px 25px !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
        align-items: center !important;
        justify-content: flex-start !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-height: calc(90vh - 100px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 8px !important;
    }
    
    /* Override any desktop script hiding */
    .schuchard-header-menu.mobile-menu-open {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure header floats over all content */
    .schuchard-header-menu * {
        position: relative !important;
        z-index: 1002 !important;
    }
    
    /* Add top margin to content to prevent overlap with fixed header */
    body {
        margin-top: 70px !important;
    }
    
    .main-content,
    .content,
    .interview-content {
        margin-top: 0 !important;
        padding-top: 20px !important;
    }
    
    /* Disable desktop script behavior on mobile */
    .schuchard-header-menu:not(.js-controlled) {
        /* Desktop script is disabled */
    }
    
    .schuchard-header-menu:not(.js-controlled).mobile-menu-open .header-panels {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #2c3e50 !important;
        z-index: 1000 !important;
        padding: 20px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    }
    
    /* Hamburger Button */
    .hamburger-menu-toggle {
        display: block !important;
        position: fixed !important;
        top: 15px !important;
        right: 15px !important;
        width: 30px !important;
        height: 30px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        z-index: 10001 !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 0 !important;
    }
    
    .hamburger-menu-toggle span {
        display: block !important;
        width: 20px !important;
        height: 2px !important;
        background: #fff !important;
        margin: 4px auto !important;
        transition: all 0.3s ease !important;
        border-radius: 1px !important;
    }
    
    /* Hamburger Animation */
    .hamburger-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px) !important;
    }
    
    .hamburger-menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    .hamburger-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px) !important;
    }
    
    /* Menu Panels - Hidden by default on mobile */
    .schuchard-header-menu .header-panels {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #2c3e50 !important;
        padding: 20px 10px !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
        z-index: 1000 !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    /* Show menu when active - REMOVED conflicting rule */
    /* .schuchard-header-menu.mobile-menu-open .header-panels {
        display: grid !important;
    } */
    
    .schuchard-header-menu .panel-image {
        display: none !important;
    }
    
    /* Show panel images in mobile menu */
    .schuchard-header-menu.mobile-menu-open .panel-image {
        display: block !important;
    }
    
    .schuchard-header-menu .header-panel {
        background: #8B4513 !important;
        padding: 0 !important;
        min-height: 50px !important;
        border-radius: 8px !important;
        margin-bottom: 5px !important;
        cursor: pointer !important;
        z-index: 1001 !important;
        position: relative !important;
    }
    
    .schuchard-header-menu .panel-title {
        padding: 15px 12px !important;
        font-size: 1rem !important;
        background: #A0522D !important;
        text-align: center !important;
        line-height: 1.2 !important;
        border-radius: 8px !important;
        color: #fff !important;
    }
    
    .schuchard-header-menu .header-container {
        padding: 0 10px !important;
    }
    
    /* Submenu styling for mobile - hidden by default */
    .schuchard-header-menu .submenu {
        position: static !important;
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: none !important;
        background: rgba(0, 0, 0, 0.2) !important;
        border-radius: 8px !important;
        margin-top: 5px !important;
        padding: 0 !important;
        box-shadow: none !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease, opacity 0.3s ease !important;
    }
    
    /* Show submenu when active */
    .schuchard-header-menu .submenu.show {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 500px !important;
        padding: 10px 0 !important;
    }
    
    /* Submenu items on mobile */
    .schuchard-header-menu .submenu-item {
        padding: 12px 20px !important;
        color: #FFFFFF !important;
        background: rgba(0, 0, 0, 0.1) !important;
        border-radius: 4px !important;
        margin: 5px 10px !important;
        font-size: 0.9rem !important;
    }
    
    .schuchard-header-menu .submenu-item:hover {
        background: rgba(255, 255, 255, 0.2) !important;
    }
}

/* Ensure hamburger button is visible on all mobile devices */
@media screen and (max-width: 1024px) {
    .hamburger-menu-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* iPhone specific fixes */
@media screen and (max-width: 480px) {
    .hamburger-menu-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        z-index: 9999 !important;
    }
    
    .hamburger-menu-toggle span {
        display: block !important;
        background: #fff !important;
        width: 25px !important;
        height: 3px !important;
        margin: 5px 0 !important;
    }
}

/* Force mobile menu visibility - Emergency fix */
@media screen and (max-width: 1024px) {
    .schuchard-header-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: #2c3e50 !important;
        min-height: 60px !important;
        padding: 10px 0 !important;
        z-index: 9999 !important;
    }
    
    .hamburger-menu-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        width: 30px !important;
        height: 30px !important;
        background: rgba(255,255,255,0.1) !important;
        border: 2px solid #fff !important;
        z-index: 10000 !important;
        border-radius: 4px !important;
    }
    
    .hamburger-menu-toggle span {
        display: block !important;
        width: 20px !important;
        height: 2px !important;
        background: #fff !important;
        margin: 4px auto !important;
    }
}

/* Hide hamburger button on desktop */
@media screen and (min-width: 769px) {
    .hamburger-menu-toggle {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Adaptive Header - Collapsed State (default) */
.schuchard-header-menu.collapsed .panel-image {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.schuchard-header-menu.collapsed .header-panel {
    background: #8B4513;
    padding: 0;
    transition: all 0.4s ease;
}

.schuchard-header-menu.collapsed .panel-title {
    padding: 12px 10px;
    font-size: 1rem;
    background: transparent;
    border-radius: 15px;
    transition: all 0.4s ease;
}

/* Adaptive Header - Expanded State (on hover) */
.schuchard-header-menu.expanded .panel-image {
    height: 150px;
    opacity: 1;
    transition: all 0.4s ease;
}

.schuchard-header-menu.expanded .header-panel {
    background: #8B4513;
    transition: all 0.4s ease;
}

.schuchard-header-menu.expanded .panel-title {
    padding: 8px 10px;
    font-size: 0.95rem;
    background: transparent;
    border-radius: 0 0 15px 15px;
    transition: all 0.4s ease;
}

/* Fallback: CSS-only behavior (for when JS is disabled) - Default to collapsed */
.schuchard-header-menu:not(.js-controlled) .panel-image {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.schuchard-header-menu:not(.js-controlled) .header-panel {
    background: #8B4513;
    padding: 0;
    transition: all 0.4s ease;
}

.schuchard-header-menu:not(.js-controlled) .panel-title {
    padding: 12px 10px;
    font-size: 1rem;
    background: transparent;
    border-radius: 15px;
    transition: all 0.4s ease;
}

.schuchard-header-menu:not(.js-controlled):hover .panel-image {
    height: 150px;
    opacity: 1;
    transition: all 0.4s ease;
}

.schuchard-header-menu:not(.js-controlled):hover .header-panel {
    background: #8B4513;
    transition: all 0.4s ease;
}

.schuchard-header-menu:not(.js-controlled):hover .panel-title {
    padding: 8px 10px;
    font-size: 0.95rem;
    background: transparent;
    border-radius: 0 0 15px 15px;
    transition: all 0.4s ease;
}

.header-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible;
}

.header-panels {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    align-items: stretch;
    overflow: visible;
    width: 100%;
    justify-content: space-between;
}

.header-panel {
    background: #8B4513;
    border-radius: 15px;
    overflow: visible;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    width: 100%;
    min-width: 0;
}

/* Show submenu on hover (desktop only) */
@media (min-width: 1025px) {
    .header-panel:hover .submenu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        display: block !important;
    }
}

/* Panel Hover nur wenn Header erweitert ist */
.schuchard-header-menu.expanded .header-panel:hover,
.schuchard-header-menu:not(.js-controlled):hover .header-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
    background: #A0522D;
}

/* Panel Hover im collapsed state */
.schuchard-header-menu.collapsed .header-panel:hover,
.schuchard-header-menu:not(.js-controlled):not(:hover) .header-panel:hover {
    background: #a0522d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(160, 82, 45, 0.3);
}

.header-panel.active {
    border: 3px solid #fbbf24;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

/* Active Panel im collapsed state */
.schuchard-header-menu.collapsed .header-panel.active,
.schuchard-header-menu:not(.js-controlled):not(:hover) .header-panel.active {
    border: 2px solid #fbbf24;
    background: #a0522d;
}

.schuchard-header-menu.collapsed .header-panel.active .panel-title,
.schuchard-header-menu:not(.js-controlled):not(:hover) .header-panel.active .panel-title {
    background: transparent;
    border-top: 2px solid #fbbf24;
    border-radius: 15px;
}

/* Submenu Styles */
.header-panel {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2c3e50;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2000;
    min-width: 200px;
    display: block;
}

.submenu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
}

.submenu-item {
    padding: 12px 20px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    font-weight: 500;
}

.submenu-item:last-child {
    border-bottom: none;
}

.submenu-item:hover {
    background: rgba(255,255,255,0.1);
    color: #e9ecef;
}

.panel-image {
    height: 150px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    width: 100%;
}

.panel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.panel-content {
    text-align: center;
    padding: 10px;
    width: 100%;
    background: transparent;
    border-radius: 0;
    box-sizing: border-box;
}

.panel-content h3 {
    font-size: 0.9rem;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.panel-content p {
    font-size: 0.7rem;
    color: #f4f1eb;
    margin: 2px 0;
    line-height: 1.2;
}

.logo-small {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 0.6rem;
    color: #dc2626;
    font-weight: bold;
}

.panel-title {
    background: transparent;
    color: white;
    padding: 8px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    border-radius: 0 0 15px 15px;
    margin: 0;
    transition: all 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    word-wrap: break-word;
    hyphens: auto;
    overflow: visible;
    white-space: normal;
}

/* Färbe das "&" Zeichen rot in Menünamen */
.panel-title .ampersand-red {
    color: #dc2626;
    font-weight: 600;
}

/* Färbe das "&" Zeichen schwarz in Menünamen (außer der ersten Kachel) */
.panel-title .ampersand-black {
    color: #000000;
}

/* Panel-specific styles */
.portrait-split {
    display: flex;
    gap: 5px;
    width: 100%;
}

.portrait-left, .portrait-right {
    flex: 1;
}

.portrait-placeholder-small {
    width: 40px;
    height: 40px;
    background: #2c3e50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    margin: 0 auto;
}

.portrait-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
}

.book-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.book-top, .book-bottom {
    width: 50px;
    height: 35px;
    border-radius: 3px;
    position: relative;
}

.book-cover {
    width: 100%;
    height: 100%;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: white;
    text-align: center;
    padding: 2px;
}

.book-cover.colorful {
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #2c3e50, #10b981);
}

.book-cover.dark {
    background: #374151;
}

.book-cover.ornate {
    background: linear-gradient(45deg, #7c2d12, #dc2626, #fbbf24);
}

.family-tree {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cross-diagram {
    width: 60px;
    height: 60px;
    position: relative;
}

.cross-horizontal, .cross-vertical {
    background: #2c3e50;
    position: absolute;
}

.cross-horizontal {
    width: 60px;
    height: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.cross-vertical {
    width: 8px;
    height: 60px;
    left: 50%;
    transform: translateX(-50%);
}

.church-illustration {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.church-building {
    width: 40px;
    height: 30px;
    position: relative;
}

.church-tower {
    width: 15px;
    height: 20px;
    background: #dc2626;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px 2px 0 0;
}

.church-roof {
    width: 40px;
    height: 15px;
    background: #6b7280;
    border-radius: 0 0 20px 20px;
    position: absolute;
    bottom: 0;
}

.rainbow-arch {
    width: 50px;
    height: 25px;
    border: 3px solid transparent;
    border-top-color: #fbbf24;
    border-radius: 50px 50px 0 0;
    position: absolute;
    top: 10px;
}

.church-text {
    position: absolute;
    bottom: 5px;
    font-size: 0.5rem;
    color: #2c3e50;
    text-align: center;
}

.user-echo-diagram {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.wifi-symbol {
    width: 20px;
    height: 15px;
    background: #2c3e50;
    border-radius: 0 0 10px 10px;
    position: relative;
}

.wifi-symbol::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 10px;
    background: transparent;
    border: 2px solid #2c3e50;
    border-radius: 0 0 8px 8px;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.globe-structure {
    width: 25px;
    height: 25px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
}

.vortex-diagram {
    width: 30px;
    height: 20px;
    background: linear-gradient(45deg, #dc2626, #fbbf24);
    border-radius: 50%;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header-panels {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

@media (max-width: 900px) {
    .header-panels {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .panel-image {
        height: 100px;
    }
    
    .panel-content h3 {
        font-size: 0.8rem;
    }
    
    .panel-content p {
        font-size: 0.65rem;
    }
    
    .panel-title {
        font-size: 0.7rem;
        padding: 6px 8px;
    }
}

@media (max-width: 768px) {
    .header-panels {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .panel-image {
        height: 80px;
    }
    
    .panel-content h3 {
        font-size: 0.75rem;
    }
    
    .panel-content p {
        font-size: 0.6rem;
    }
    
    .panel-title {
        font-size: 0.65rem;
        padding: 5px 6px;
    }
    
    .portrait-placeholder-small {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .book-top, .book-bottom {
        width: 40px;
        height: 28px;
    }
    
    .cross-diagram {
        width: 40px;
        height: 40px;
    }
    
    .cross-horizontal {
        width: 40px;
        height: 6px;
    }
    
    .cross-vertical {
        width: 6px;
        height: 40px;
    }
}

/* Gallery Counter Overlay - Kompakter Counter unten rechts */
.gallery-counter-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 10;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.gallery-counter-overlay:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

/* Responsive Counter Overlay */
@media (max-width: 768px) {
    .gallery-counter-overlay {
        bottom: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 0.75rem;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .header-panels {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .header-container {
        padding: 0 10px;
    }
    
    .schuchard-header-menu {
        padding: 15px 0;
    }
}

/* ========================================
   130-j-inklusion Page Layout Styles
   ======================================== */

/* Ensure proper font loading for the book layout */
.book-layout-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.book-layout-page .book-title,
.book-layout-page .pdf-title {
    font-family: 'Playfair Display', serif;
}

/* Override any conflicting styles from parent theme */
.book-layout-page * {
    box-sizing: border-box;
}

.book-layout-page .book-sidebar,
.book-layout-page .book-main-content {
    background: white !important;
    border: none !important;
}

/* Ensure PDF viewer takes full height */
.book-layout-page .pdf-viewer-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* Fix any potential z-index issues */
.book-layout-page .book-cover-lightbox {
    z-index: 999999 !important;
}

/* Ensure proper spacing on mobile */
@media (max-width: 768px) {
    .book-layout-page {
        padding: 20px 15px !important;
    }
    
    .book-layout-page .book-sidebar {
        margin-bottom: 0 !important;
    }
}

/* ========================================
   3D Flipbook Integration Styles
   ======================================== */

/* 3D Flipbook Container */
.book-layout-page #flipbook-container {
    width: 100% !important;
    height: 100% !important;
    min-height: 600px;
}

/* 3D Flipbook Element */
.book-layout-page .fb3d-fullscreen-mode {
    width: 100% !important;
    height: 100% !important;
    min-height: 600px !important;
}

/* Override any conflicting styles */
.book-layout-page .fb3d-fullscreen-mode * {
    box-sizing: border-box !important;
}

/* Ensure flipbook takes full container height */
.book-layout-page .pdf-viewer-container {
    position: relative;
    overflow: hidden;
}

.book-layout-page .pdf-viewer-container .fb3d-fullscreen-mode {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

/* Mobile adjustments for flipbook */
@media (max-width: 768px) {
    .book-layout-page #flipbook-container {
        min-height: 400px;
    }
    
    .book-layout-page .fb3d-fullscreen-mode {
        min-height: 400px !important;
    }
}

/* Echo & Rezensionen Seite - Kompakteres Layout und Download-Buttons verstecken */
body:has([href*="user-echo"]) a[href*="download"],
body.page-id-user-echo a[href*="download"],
body[class*="user-echo"] a[href*="download"],
body:has([href*="user-echo"]) button[onclick*="download"],
body.page-id-user-echo button[onclick*="download"],
body[class*="user-echo"] button[onclick*="download"],
body:has([href*="user-echo"]) .download-button,
body.page-id-user-echo .download-button,
body[class*="user-echo"] .download-button,
body:has([href*="user-echo"]) a[download],
body.page-id-user-echo a[download],
body[class*="user-echo"] a[download] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Kompakteres Layout für Echo-Seite */
body:has([href*="user-echo"]) .module,
body.page-id-user-echo .module,
body[class*="user-echo"] .module {
    margin-bottom: 12px !important;
}

body:has([href*="user-echo"]) .module-accordion,
body.page-id-user-echo .module-accordion,
body[class*="user-echo"] .module-accordion {
    margin-bottom: 15px !important;
}

body:has([href*="user-echo"]) .module_row,
body.page-id-user-echo .module_row,
body[class*="user-echo"] .module_row {
    margin-bottom: 12px !important;
}

body:has([href*="user-echo"]) .tb_text_wrap,
body.page-id-user-echo .tb_text_wrap,
body[class*="user-echo"] .tb_text_wrap {
    padding: 10px 0 !important;
}

body:has([href*="user-echo"]) .tb_text_wrap p,
body.page-id-user-echo .tb_text_wrap p,
body[class*="user-echo"] .tb_text_wrap p {
    margin-bottom: 8px !important;
    line-height: 1.5 !important;
}

body:has([href*="user-echo"]) .tb_text_wrap h1,
body.page-id-user-echo .tb_text_wrap h1,
body[class*="user-echo"] .tb_text_wrap h1,
body:has([href*="user-echo"]) .tb_text_wrap h2,
body.page-id-user-echo .tb_text_wrap h2,
body[class*="user-echo"] .tb_text_wrap h2,
body:has([href*="user-echo"]) .tb_text_wrap h3,
body.page-id-user-echo .tb_text_wrap h3,
body[class*="user-echo"] .tb_text_wrap h3 {
    margin-top: 12px !important;
    margin-bottom: 8px !important;
}

body:has([href*="user-echo"]) .tb_row,
body.page-id-user-echo .tb_row,
body[class*="user-echo"] .tb_row {
    margin-bottom: 15px !important;
}
