/* Import Roboto font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap');

/* Base styles */
* {
    font-family: 'Roboto', Arial, sans-serif;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.logo-container {
    max-width: 400px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    width: 300px;
}

.construction-icon {
    margin: 30px 0;
    position: relative;
    width: 120px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.film-bg {
    opacity: 0.3;
}

.film-strip {
    animation: progress 4s ease-in-out infinite;
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
}

.perforation {
    animation: fade 4s ease-in-out infinite;
}

/* Zeitlich versetzte Animation für die Perforationen */
.perforation:nth-child(3),
.perforation:nth-child(4) { 
    animation-delay: 0.5s; 
}

.perforation:nth-child(5),
.perforation:nth-child(6) { 
    animation-delay: 1s; 
}

.perforation:nth-child(7),
.perforation:nth-child(8) { 
    animation-delay: 1.5s; 
}

.perforation:nth-child(9),
.perforation:nth-child(10) { 
    animation-delay: 2s; 
}

.wave {
    animation: wave 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes progress {
    0% {
        stroke-dashoffset: 260;
    }
    40%, 60% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -260;
    }
}

@keyframes fade {
    0%, 100% {
        opacity: 0.2;
    }
    40%, 60% {
        opacity: 1;
    }
}

@keyframes wave {
    0%, 100% {
        transform: scaleY(0.8);
    }
    50% {
        transform: scaleY(1.2);
    }
}

h1 {
    color: #333;
    font-size: 32px;
    text-align: center;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.message {
    font-size: 20px;
    color: #666;
    text-align: center;
    line-height: 1.6;
    max-width: 600px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

/* Animation states */
.main-content.active .logo-container,
.main-content.active h1,
.main-content.active .message {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-container {
        max-width: 300px;
        margin-bottom: 30px;
    }

    h1 {
        font-size: 28px;
    }

    .message {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        max-width: 250px;
        margin-bottom: 25px;
    }

    h1 {
        font-size: 24px;
    }

    .message {
        font-size: 16px;
    }
}

.loading-container {
    margin: 30px 0;
    position: relative;
    width: 120px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    background: black;
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Logo Styling */
.logo {
    width: 300px;  /* Deutlich größer */
    height: auto;
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 1000;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo-link {
    display: block;
    width: 100%;
}

/* Flyout Menu */
.dropdown-content {
    width: 300px;  /* Exakt gleiche Breite wie Logo */
}

/* Container für Logo und Dropdown */
.dropdown {
    width: 300px;  /* Gleiche Breite */
}

/* Optional: Hover-Menu Position anpassen */
.flyout-nav {
    position: fixed;
    top: 40px;    /* Gleicher Abstand wie Logo */
    left: 40px;   /* Gleicher Abstand wie Logo */
}

/* Navigation Logo */
.dropdown .logo,
.dropdown .logo-link img {
    width: 300px;
    height: auto;
}

/* Dropdown Menu entsprechend anpassen */
.dropdown,
.dropdown-content {
    width: 300px;
} 