/* ==========================================================================
   Cosamirai Home Intro Block Styles
   ========================================================================== */

.cosamirai-home-intro {
    position: relative;
    width: 100vw;
    height: var(--app-height, 100vh);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}

.scrollmagic-pin-spacer .cosamirai-home-intro {
    position: fixed !important;
    left: 0 !important;
    width: 100% !important;
    margin-left: 0 !important;
}

/* Video Overlay */
.video-overlay:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    background: #0000007d;
}

.video-overlay .video-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #00000080;
}

.video-overlay {
    overflow: hidden;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 11'%3E%3Cpath d='M0.604004 5.19525C0.604004 6.7054 9.44117 10.3409 12.7411 10.3409C16.0411 10.3409 24.8782 6.7054 24.8782 5.19525C24.8782 3.6851 16.0411 0.0495605 12.7411 0.0495605C9.38524 0.0495605 0.604004 3.6851 0.604004 5.19525Z' fill='white'/%3E%3C/svg%3E") 50% 50% / 0% 0% no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 11'%3E%3Cpath d='M0.604004 5.19525C0.604004 6.7054 9.44117 10.3409 12.7411 10.3409C16.0411 10.3409 24.8782 6.7054 24.8782 5.19525C24.8782 3.6851 16.0411 0.0495605 12.7411 0.0495605C9.38524 0.0495605 0.604004 3.6851 0.604004 5.19525Z' fill='white'/%3E%3C/svg%3E") 50% 50% / 0% 0% no-repeat;
}

.overlay-video {
    width: 100vw;
    height: var(--app-height, 100vh);
    object-fit: cover;
    object-position: center;
    max-width: none;
}


/* Content */
.home-intro-content {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.home-intro-texts {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 1ch;
    position: relative;
}

.home-intro-text {
    font-family: "PP Fragment Glare", sans-serif;
    font-size: var(--fs-L-H1-M);
    text-align: center;
    color: var(--c-oak-text);
    font-weight: 300;
    opacity: 0;
    transform: translateY(30px);
}

.home-intro-text:first-child {
    text-align: right;
}

.home-intro-text:last-child {
    text-align: left;
}


.home-intro-text-3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "PP Fragment Glare", serif;
    font-weight: 300;
    font-size: var(--fs-L-H2-XL);
    text-align: center;
    color: var(--c-light-stone);
    width: 100%;
    opacity: 0;
    z-index: 11;
}

html[lang="DE-de"] .home-intro-text-3 {
    font-size: var(--fs-90);
}

/* Backend Preview Styles */
.cosamirai-home-intro-preview {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.home-intro-preview-content h4 {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 1.1rem;
}

.preview-simple {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.preview-texts-simple {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.preview-text-simple {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #495057;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-video-simple {
    background: var(--c-moss, #4a5d23);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.preview-text-bottom {
    background: #fff;
    color: #6c757d;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-style: italic;
    border: 1px solid #e9ecef;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Animation improvements */
@media (prefers-reduced-motion: reduce) {
    .home-intro-text {
        transition: none;
    }
}

@media (max-width: 1200px) {
    .home-intro-text-3 {
        font-size: var(--fs-80);
    }

    html[lang="DE-de"] .home-intro-text-3 {
        font-size: var(--fs-70);
    }
}

@media (max-width: 768px) {
    .home-intro-texts {
        grid-template-columns: 1fr;
        gap: 9.875rem;
    }

    /*.home-intro-content,
    .video-overlay {
        max-width: 400px;
    }*/

    .home-intro-text {
        font-size: var(--fs-S-H1-M);
    }

    .home-intro-text:is(:first-child, :last-child) {
        text-align: center;
    }

    .home-intro-text-3 {
        font-size: var(--fs-S-H1-L);
    }

    html[lang="DE-de"] .home-intro-text-3 {
        font-size: var(--fs-50);
    }
}