/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', 'Arial', sans-serif;
}

body {
    background-color: #000000;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===================
   PRELOADER
   =================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    width: 0%;
    background: #ffffff;
    border-radius: 1px;
    transition: width 0.1s ease-out;
}

/* ===================
   PAGE TRANSITION
   =================== */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 8000;
    transform: translateY(100%);
    pointer-events: none;
}

.page-transition.active {
    animation: pageSlide 0.8s ease-in-out;
}

@keyframes pageSlide {
    0% { transform: translateY(100%); }
    50% { transform: translateY(0%); }
    100% { transform: translateY(-100%); }
}

/* ===================
   MAIN CONTAINER
   =================== */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
}

/* ===================
   LOGO WRAPPER
   =================== */
.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* ===================
   LOGO
   =================== */
.logo {
    width: 300px;
    max-width: 70vw;
    height: auto;
}

.logo-wrapper {
    perspective: 800px;
}

.logo-parallax {
    will-change: transform;
    transform-style: preserve-3d;
}

/* ===================
   SLOGAN
   =================== */
.slogan {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
}

/* ===================
   FOOTER
   =================== */
.footer {
    padding: 1.5rem 2rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-top {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ===================
   DIGITAL CLOCK
   =================== */
.clock {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0;
}

.clock-digit {
    display: inline-block;
    position: relative;
    overflow: hidden;
    height: 1.3em;
    width: 0.85em;
    text-align: center;
}

.clock-digit-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.clock-colon {
    width: auto;
    margin: 0 0.1em;
}

/* ===================
   IMPRESSUM
   =================== */
.impressum-toggle {
    font-family: 'Space Grotesk', sans-serif;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.impressum-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.2em;
}

.impressum-toggle.active {
    color: rgba(255, 255, 255, 0.8);
}

.impressum-reveal {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease,
                padding 0.4s ease;
    opacity: 0;
    width: 100%;
    max-width: 400px;
}

.impressum-reveal.open {
    max-height: 300px;
    opacity: 1;
    padding-top: 1rem;
}

.impressum-content {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.impressum-content p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.impressum-content p strong {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.impressum-content .copyright {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
}

/* ===================
   RESPONSIVE
   =================== */
@media (max-width: 768px) {
    .logo {
        width: 220px;
    }

    .slogan {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
    }

    .impressum-content {
        padding: 1rem;
    }

    .clock {
        font-size: 0.9rem;
    }

    .preloader-logo {
        font-size: 3rem;
    }
}
