/**
 * Coach Modal Shortcode Styles
 * Akzentfarbe: #ff6b0c
 * Textfarbe: schwarz
 */

/* Modal Trigger Button */
.coach-modal-trigger {
    /* Farben und Hintergrund */
    color: #ff6b0c !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    
    /* Border und Outline */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    
    /* Schrift */
    font-family: 'Josefin Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-align: center !important;
    
    /* Spacing */
    padding: 0 !important;
    margin: 0 auto !important;
    
    /* Display */
    display: block !important;
    cursor: pointer !important;
    
    /* Transitions */
    transition: all 0.3s ease !important;
    
    /* Weitere Resets */
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

.coach-modal-trigger:hover {
    color: #e05500 !important;
    background: transparent !important;
    background-color: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

.coach-modal-trigger:focus {
    outline: 1px dotted #ff6b0c !important;
    outline-offset: 2px !important;
}

.coach-modal-trigger:active {
    color: #e05500 !important;
    background: transparent !important;
}

/* Modal Container */
.coach-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Overlay */
.coach-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

/* Modal Content */
.coach-modal-content {
    position: relative;
    background: #ffffff;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: modalFadeIn 0.3s ease;
}

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

/* Close Button */
.coach-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: #ff6b0c !important;
    background-color: #ff6b0c !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 40px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 10001;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    font-weight: 300 !important;
    box-shadow: none !important;
    outline: none !important;
}

.coach-modal-close:hover {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #ff6b0c !important;
    border: 2px solid #ff6b0c !important;
}

.coach-modal-close:focus {
    outline: 2px solid #ff6b0c !important;
    outline-offset: 2px !important;
}

/* Modal Inner Container */
.coach-modal-inner {
    padding: 0;
}

/* Modal Top Section (Portrait + Header Text) */
.coach-modal-top {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    padding: 50px 40px 30px 40px;
    background: #ffffff;
    align-items: start;
}

/* Portrait Section */
.coach-modal-portrait {
    width: 100%;
    overflow: hidden;
    border-radius: 50%;
    aspect-ratio: 1;
}

.coach-modal-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Header Text Section */
.coach-modal-header-text {
    padding-top: 20px;
}

/* Name Styling - Extra spezifisch für Elementor Override */
.coach-modal .coach-modal-content .coach-modal-inner .coach-modal-header-text .coach-modal-name,
.coach-modal-content .coach-modal-inner .coach-modal-header-text .coach-modal-name,
.coach-modal-inner .coach-modal-header-text .coach-modal-name,
.coach-modal-header-text .coach-modal-name,
.coach-modal-name {
    font-size: 28px !important;
    font-weight: 400 !important;
    color: #ff6b0c !important;
    margin: 0 0 20px 0 !important;
    text-align: left !important;
    letter-spacing: 0 !important;
    line-height: 1.3 !important;
}

/* Slogan-Text (Zitat) */
.coach-modal-slogan-text {
    font-size: 16px;
    font-style: italic;
    color: #ff6b0c;
    text-align: left;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

/* Modal Body */
.coach-modal-body {
    padding: 0 40px 40px;
    color: #000000;
}

/* Alle Überschriften im Modal in Akzentfarbe - Extra spezifisch */
.coach-modal .coach-modal-content .coach-modal-inner h1,
.coach-modal .coach-modal-content .coach-modal-inner h2,
.coach-modal .coach-modal-content .coach-modal-inner h3,
.coach-modal .coach-modal-content .coach-modal-inner h4,
.coach-modal .coach-modal-content .coach-modal-inner h5,
.coach-modal .coach-modal-content .coach-modal-inner h6,
.coach-modal .coach-modal-content h1,
.coach-modal .coach-modal-content h2,
.coach-modal .coach-modal-content h3,
.coach-modal .coach-modal-content h4,
.coach-modal .coach-modal-content h5,
.coach-modal .coach-modal-content h6,
.coach-modal h1,
.coach-modal h2,
.coach-modal h3,
.coach-modal h4,
.coach-modal h5,
.coach-modal h6 {
    color: #ff6b0c !important;
}

/* Sections */
.coach-modal-section {
    margin: 30px 0;
}

.coach-modal-section:first-child {
    margin-top: 0;
}

/* Section h3 Überschriften - Extra spezifisch für Elementor Override */
.coach-modal .coach-modal-content .coach-modal-inner .coach-modal-body .coach-modal-section h3,
.coach-modal-content .coach-modal-inner .coach-modal-body .coach-modal-section h3,
.coach-modal-inner .coach-modal-body .coach-modal-section h3,
.coach-modal-body .coach-modal-section h3,
.coach-modal-section h3 {
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #ff6b0c !important;
    margin: 0 0 15px 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* WYSIWYG Content Styling */
.coach-modal-wysiwyg {
    color: #000000;
    line-height: 1.7;
    font-size: 15px;
}

.coach-modal-wysiwyg p {
    margin: 0 0 15px 0;
}

.coach-modal-wysiwyg p:last-child {
    margin-bottom: 0;
}

.coach-modal-wysiwyg ul,
.coach-modal-wysiwyg ol {
    margin: 0 0 15px 0;
    padding-left: 20px;
}

.coach-modal-wysiwyg li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.coach-modal-wysiwyg ul li {
    list-style-type: disc;
}

/* WYSIWYG Überschriften - Extra spezifisch für Elementor Override */
.coach-modal .coach-modal-content .coach-modal-wysiwyg h1,
.coach-modal .coach-modal-content .coach-modal-wysiwyg h2,
.coach-modal .coach-modal-content .coach-modal-wysiwyg h3,
.coach-modal .coach-modal-content .coach-modal-wysiwyg h4,
.coach-modal .coach-modal-content .coach-modal-wysiwyg h5,
.coach-modal .coach-modal-content .coach-modal-wysiwyg h6,
.coach-modal-content .coach-modal-wysiwyg h1,
.coach-modal-content .coach-modal-wysiwyg h2,
.coach-modal-content .coach-modal-wysiwyg h3,
.coach-modal-content .coach-modal-wysiwyg h4,
.coach-modal-content .coach-modal-wysiwyg h5,
.coach-modal-content .coach-modal-wysiwyg h6,
.coach-modal-wysiwyg h1,
.coach-modal-wysiwyg h2,
.coach-modal-wysiwyg h3,
.coach-modal-wysiwyg h4,
.coach-modal-wysiwyg h5,
.coach-modal-wysiwyg h6 {
    color: #ff6b0c !important;
    font-weight: 400 !important;
    margin: 20px 0 10px 0 !important;
}

.coach-modal-wysiwyg h1 {
    font-size: 24px !important;
}

.coach-modal-wysiwyg h2 {
    font-size: 20px !important;
}

.coach-modal-wysiwyg h3 {
    font-size: 18px !important;
}

.coach-modal-wysiwyg h4 {
    font-size: 16px !important;
}

.coach-modal-wysiwyg h5 {
    font-size: 15px !important;
}

.coach-modal-wysiwyg h6 {
    font-size: 14px !important;
}

.coach-modal-wysiwyg strong,
.coach-modal-wysiwyg b {
    color: #000000;
    font-weight: 600;
}

.coach-modal-wysiwyg a {
    color: #ff6b0c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.coach-modal-wysiwyg a:hover {
    color: #e05500;
    text-decoration: underline;
}

/* Scrollbar Styling */
.coach-modal-content::-webkit-scrollbar {
    width: 10px;
}

.coach-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.coach-modal-content::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 0;
}

.coach-modal-content::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

/* Responsive Design */
@media (max-width: 900px) {
    .coach-modal-top {
        grid-template-columns: 250px 1fr;
        gap: 30px;
        padding: 50px 30px 25px 30px;
    }
    
    .coach-modal-body {
        padding: 0 30px 30px;
    }
}

@media (max-width: 768px) {
    .coach-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .coach-modal-top {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 50px 25px 20px 25px;
        text-align: center;
    }
    
    .coach-modal-portrait {
        width: 200px;
        margin: 0 auto;
    }
    
    .coach-modal-header-text {
        padding-top: 0;
    }
    
    .coach-modal-name {
        font-size: 24px;
        text-align: center;
    }
    
    .coach-modal-slogan-text {
        font-size: 15px;
        text-align: center;
    }
    
    .coach-modal-body {
        padding: 0 25px 30px;
    }
    
    .coach-modal-section h3 {
        font-size: 17px;
    }
    
    .coach-modal-wysiwyg {
        font-size: 14px;
    }
    
    .coach-modal-close {
        width: 50px !important;
        height: 50px !important;
        font-size: 32px !important;
    }
}

@media (max-width: 480px) {
    .coach-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .coach-modal-top {
        padding: 50px 20px 15px 20px;
    }
    
    .coach-modal-portrait {
        width: 150px;
    }
    
    .coach-modal-name {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .coach-modal-slogan-text {
        font-size: 14px;
    }
    
    .coach-modal-body {
        padding: 0 20px 25px;
    }
    
    .coach-modal-close {
        width: 45px !important;
        height: 45px !important;
        font-size: 28px !important;
    }
}

/* Body Lock beim Öffnen des Modals */
body.coach-modal-open {
    overflow: hidden;
}
