/* ==========================================================
   VIEW SWITCHER
   ========================================================== */
.view-switcher-container {
    background-color: var(--primary-color-light, #f8f8f8);
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 20;
}

.view-switcher {
    display: inline-flex;
    background-color: #e0e0e0;
    border-radius: 20px;
    padding: 5px;
}

.view-switcher button {
    border: none;
    padding: 0.5rem 1.5rem;
    background-color: transparent;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.view-switcher button.active {
    background-color: #fff;
    color: #111;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.view-switcher i {
    margin-right: 0.5rem;
}


/* ==========================================================
   SLIDER GRUNDSTRUKTUR & SICHTBARKEIT
   ========================================================== */
#feature-slider {
    width: 100%;
    height: calc(100vh - 85px); 
    min-height: 700px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 5%;
    box-sizing: border-box;
    background-color: var(--primary-color-light, #f8f8f8);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

#feature-slider.show-phone .desktop-container { display: none; }
#feature-slider.show-desktop .phone-container { display: none; }


/* ==========================================================
   TEXT-SLIDES & ANIMATIONEN
   ========================================================== */
.feature-slides-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-step {
    position: absolute;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    pointer-events: none; 
}

.feature-step.is-active {
    opacity: 1;
    transform: translateY(0);
    z-index: 2;
    pointer-events: auto;
}

.feature-step.is-exiting-up {
    opacity: 0;
    transform: translateY(-30px);
}
.feature-step.is-exiting-down {
    opacity: 0;
    transform: translateY(30px);
}

.feature-step .slide-title, .feature-step h3, .feature-step p {
    color: var(--text-dark);
    transition: color 0.3s ease;
}
.feature-step p { color: var(--text-light); }
.slide-title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 2rem; }
h3 { font-size: clamp(1.8rem, 4vw, 2.2rem); margin-bottom: 1rem; }
p { font-size: 1.15rem; line-height: 1.7; }


/* ==========================================================
   PHONE MOCKUP
   ========================================================== */
.phone-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    z-index: 5;
}
.phone-mockup {
    width: 320px;
    height: 650px;
    background: #1e1e1e;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}
#scrolly-image-phone {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 25px;
    transition: opacity 0.4s ease-in-out, transform 0.3s ease-in-out;
    cursor: grab;
}


/* ==========================================================
   DESKTOP MOCKUP
   ========================================================== */
.desktop-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    z-index: 5;
}
.desktop-mockup {
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16 / 10;
    background: #e0e0e0;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}
.desktop-header {
    width: 100%;
    height: 25px;
    background: #d1d1d1;
    border-radius: 6px 6px 0 0;
    flex-shrink: 0;
    position: relative;
}
.desktop-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #ff5f57;
    border-radius: 50%;
    box-shadow: 18px 0 0 #ffbd2e, 36px 0 0 #28ca41;
}
.desktop-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    position: relative;
}
#scrolly-image-desktop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: opacity 0.4s ease-in-out, transform 0.3s ease-in-out;
    cursor: crosshair;
}

/* ==========================================================
   MOCKUP CONTROLS (ZOOM/FULLSCREEN) - NEUES DESIGN
   ========================================================== */
.mockup-controls {
    position: absolute;
    z-index: 15;
    bottom: 3rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, right 0.4s ease;
    
    display: flex;
    gap: 8px;
    background-color: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 99px; /* Pill shape */
    padding: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

#feature-slider:hover .mockup-controls {
    opacity: 1;
    visibility: visible;
}

/* Positionierung je nach Ansicht */
#feature-slider.show-desktop .mockup-controls { right: 10%; }
#feature-slider.show-phone .mockup-controls { right: 14%; }


.mockup-controls button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 50%;
}

.mockup-controls button:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ==========================================================
   MAGNIFIER GLASS
   ========================================================== */
.magnifier-glass {
    position: absolute;
    border: 3px solid var(--accent-color, #007aff);
    border-radius: 50%;
    cursor: none;
    width: 150px;
    height: 150px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: none;
    pointer-events: none;
    z-index: 20;
}

/* ==========================================================
   FULLSCREEN VIEW - ÜBERARBEITET
   ========================================================== */
.fullscreen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.fullscreen-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 95%;
    max-height: 95%;
}

.fullscreen-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: crosshair;
}

.fullscreen-magnifier {
    display: none;
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    pointer-events: none;
    background-repeat: no-repeat;
}

.fullscreen-container .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 45px;
    font-weight: 300;
    color: white;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}
.fullscreen-container .close-btn:hover {
    color: #ccc;
    transform: scale(1.1);
}

/* ==========================================================
   IMAGE PAGINATION
   ========================================================== */
.image-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    height: 20px;
}
.pagination-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 6px;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
}
.pagination-dot.is-active {
    background-color: var(--accent-color, #007aff);
    transform: scale(1.25);
}


/* ==========================================================
   DARK MODE
   ========================================================== */
body.dark-mode {
    --primary-color-light: #1a1a1a;
    --text-dark: #f5f5f5;
    --text-light: #a0a0a0;
}
body.dark-mode .view-switcher-container { background-color: var(--primary-color-light, #1a1a1a); }
body.dark-mode .view-switcher { background-color: #333; }
body.dark-mode .view-switcher button { color: #aaa; }
body.dark-mode .view-switcher button.active { background-color: #444; color: #fff; }
body.dark-mode .phone-mockup { background: #e0e0e0; }
body.dark-mode .desktop-mockup { background: #1e1e1e; box-shadow: 0 30px 60px -15px rgba(0,0,0,0.5); }
body.dark-mode .desktop-header { background: #333; }
body.dark-mode .pagination-dot { background-color: #444; }
body.dark-mode .pagination-dot.is-active { background-color: var(--accent-color, #0a84ff); }
body.dark-mode .magnifier-glass { border-color: var(--accent-color, #0a84ff); }


/* ==========================================================
   RESPONSIVE (MOBILE)
   ========================================================== */
@media (max-width: 900px) {
    .view-switcher-container {
        padding-top: 1rem;
    }
    #feature-slider {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 70px);
        padding: 2rem 1rem;
    }
    .phone-container, .desktop-container {
        order: 1;
        margin-bottom: 3rem;
        width: 100%;
    }
    .phone-mockup {
        width: 260px;
        height: 531px;
    }
    .desktop-mockup {
        padding: 8px;
    }
    .feature-slides-container {
        order: 2;
        width: 100%;
        height: auto;
        min-height: 250px;
    }
    .feature-step {
        text-align: center;
        padding: 0;
        max-width: 100%;
    }
    .mockup-controls {
        opacity: 1;
        visibility: visible;
        bottom: -50px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}