/**
 * Landing Page CSS
 * Fullscreen-Slideshow mit Navigation und Footer
 * Requires: base.css
 */

/* Landing-specific body styles */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #1e293b;
}

/* Container */
.landing-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Slideshow */
.landing-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--slide-transition, 1s) ease-in-out,
                transform var(--slide-transition, 1s) ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

/* Transition Method: Fade (default) - true crossfade */
.slideshow-container[data-method="fade"] .slide {
    transform: none;
}
.slideshow-container[data-method="fade"] .slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
/* Old slide fades out while new one fades in (crossfade) */
.slideshow-container[data-method="fade"] .slide.active.exit {
    opacity: 0;
    visibility: visible;
    z-index: 1;
}

/* Transition Method: Slide Left - new image slides in from right over old image */
.slideshow-container[data-method="slide-left"] .slide {
    transform: translateX(100%);
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
.slideshow-container[data-method="slide-left"] .slide.active {
    transform: translateX(0);
    z-index: 3;
}
/* Old slide stays in place while new one slides over it */
.slideshow-container[data-method="slide-left"] .slide.active.exit {
    transform: translateX(0);
    z-index: 2;
}

/* Transition Method: Slide Right - new image slides in from left over old image */
.slideshow-container[data-method="slide-right"] .slide {
    transform: translateX(-100%);
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
.slideshow-container[data-method="slide-right"] .slide.active {
    transform: translateX(0);
    z-index: 3;
}
/* Old slide stays in place while new one slides over it */
.slideshow-container[data-method="slide-right"] .slide.active.exit {
    transform: translateX(0);
    z-index: 2;
}

/* Transition Method: Zoom In */
.slideshow-container[data-method="zoom-in"] .slide {
    transform: scale(0.8);
}
.slideshow-container[data-method="zoom-in"] .slide.active {
    transform: scale(1);
}

/* Transition Method: Zoom Out */
.slideshow-container[data-method="zoom-out"] .slide {
    transform: scale(1.2);
}
.slideshow-container[data-method="zoom-out"] .slide.active {
    transform: scale(1);
}

/* Transition Method: None (instant) */
.slideshow-container[data-method="none"] .slide {
    transition: none;
}
.slideshow-container[data-method="none"] .slide.active {
    transition: none;
}

/* Dark overlay for better text readability */
.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.1) 70%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

/* Navigation */
/* Left navigation (Startseite link) */
.landing-nav-left {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 20;
}

.landing-nav-left .nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    transition: color 0.2s ease;
}

.landing-nav-left .nav-link:hover {
    color: #FF9900;
    text-decoration: none;
}

/* Right navigation (menu items) */
.landing-nav {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 20;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
    transition: opacity 0.2s;
    cursor: pointer;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-login {
    background: linear-gradient(135deg, #FF9900 0%, #E68A00 100%);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-shadow: none;
}

.nav-login:hover {
    background: linear-gradient(135deg, #E68A00 0%, #CC7A00 100%);
    opacity: 1;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    min-width: 180px;
    border-radius: 6px;
    padding: 0.5rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Text Overlay */
.landing-overlay {
    position: absolute;
    color: white;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    padding: 2rem 4rem;
    box-sizing: border-box;
}

/* Horizontal Position */
.landing-overlay.pos-h-left {
    left: 0;
    text-align: left;
}

.landing-overlay.pos-h-center {
    left: 0;
    text-align: center;
}

.landing-overlay.pos-h-right {
    left: 0;
    text-align: right;
}

/* Vertical Position */
.landing-overlay.pos-v-top {
    top: 15%;
}

.landing-overlay.pos-v-middle {
    top: 50%;
    transform: translateY(-50%);
}

.landing-overlay.pos-v-bottom {
    bottom: 15%;
}

.landing-overlay h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.landing-overlay p {
    font-size: 1.25rem;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
}

/* Footer - Landing-specific overrides */
.public-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: rgba(30, 41, 59, 0.8);
}

/* Slideshow Navigation Dots */
.slideshow-dots {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 15;
}

.slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slideshow-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.slideshow-dot.active {
    background: #FF9900;
    border-color: #FF9900;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .landing-nav-left {
        top: 1rem;
        left: 1rem;
    }

    .landing-nav-left .nav-link {
        font-size: 0.8125rem;
    }

    .landing-nav {
        top: 1rem;
        right: 1rem;
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.8125rem;
    }

    .landing-overlay {
        padding: 1rem 2rem;
    }

    .landing-overlay h1 {
        font-size: 2rem;
    }

    .landing-overlay p {
        font-size: 1rem;
    }

    .landing-container .public-footer {
        padding: 0.75rem 1rem;
    }

    .landing-container .public-footer-inner {
        flex-direction: column;
        gap: 0.75rem;
    }

    .landing-container .public-footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .slideshow-dots {
        bottom: 80px;
    }

    .slideshow-dot {
        width: 10px;
        height: 10px;
    }

}

@media (max-width: 480px) {
    .landing-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.75rem;
    }

    .dropdown-content {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .landing-overlay h1 {
        font-size: 1.5rem;
    }

    .landing-overlay p {
        font-size: 0.875rem;
    }
}
