/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #FFFFFF;
    color: #000000;
    height: 100vh;
    opacity: 0;
    transition: opacity 1s ease;
}

body.loaded {
    opacity: 1;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Red Bar */
.red-bar {
    width: 25%;
    max-width: 350px;
    min-width: 150px;
    background-color: #E52427;
    position: relative;
    transform: translateX(-100%);
    animation: slideIn 1.2s forwards cubic-bezier(0.23, 1, 0.32, 1) 0.5s;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

/* Main Content */
.content {
    flex: 1;
    padding: 4rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    animation: fadeIn 1s forwards ease 1.5s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Logo and Header */
.logo h1 {
    font-family: 'Europa-Grotesk', sans-serif;
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.9;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 1.2s forwards cubic-bezier(0.23, 1, 0.32, 1) 1.8s;
    margin-left: -240px; 
    position: relative;
    z-index: 2;
}

.logo h1 sup {
    font-family: Europa-Grotesk, sans-serif;
    font-size: 1.5rem;
    vertical-align: top;
    position: relative;
    top: 1rem;

}

.slogan {
    font-family: Europa-Grotesk, sans-serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    margin-bottom: 3rem;
    opacity: 0;
    animation: slideUp 1.2s forwards cubic-bezier(0.23, 1, 0.32, 1) 2s;
    margin-left: -240px; 

}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Main Section */
main {
    margin-bottom: 4rem;
}

.description {
    max-width: 700px;
    margin-bottom: 3rem;
    margin-left: -240px; 

}

.description p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 1s forwards ease 2.2s;
}

.description p:nth-child(2) {
    animation-delay: 2.4s;
}

/* CTA Button */
.cta-container {
    margin-top: 3rem;
    opacity: 0;
    animation: fadeIn 1s forwards ease 2.6s;
    margin-left: -240px; 
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    text-decoration: none;
    background-color: #000000;
    color: #FFFFFF;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #000000;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #E52427;
    border-color: #E52427;
    transform: translateY(-3px);
}

/* Footer */
footer {
    margin-top: auto;
    opacity: 0;
    animation: fadeIn 1s forwards ease 2.8s;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #E52427;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 0;
    }
    .red-bar {
        width: 100%;
        height: 60px;
        max-width: none;
        min-width: 0;
        min-height: 40px;
        transform: translateY(-100%);
        animation: slideDown 1.2s forwards cubic-bezier(0.23, 1, 0.32, 1) 0.5s;
    }
    @keyframes slideDown {
        to {
            transform: translateY(0);
        }
    }
    .content {
        padding: 1.5rem 0.5rem 1rem;
    }
    .logo h1,
    .slogan,
    .description,
    .cta-container {
        margin-left: 0 !important;
    }
    .logo h1 {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
    .slogan {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    .description {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    .description p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    .cta-container {
        margin-top: 1.2rem;
        text-align: center;
    }
    .cta-button {
        font-size: 1rem;
        padding: 0.8em 1.2em;
        width: 100%;
        box-sizing: border-box;
        display: block;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 0.5em;
    }
    .social-links {
        margin-top: 0.5em;
        flex-direction: row;
        gap: 1em;
        justify-content: center;
        width: 100%;
    }
}

/* Perfektes Mobile Layout */
@media (max-width: 600px) {
    .container {
        flex-direction: column;
        padding: 0;
        min-height: 100vh;
    }
    .red-bar {
        width: 100vw;
        height: 48px;
        min-width: 0;
        max-width: none;
        min-height: 0;
        position: static;
        transform: none;
        animation: none;
        border-radius: 0 0 12px 12px;
    }
    .content {
        padding: 1.2rem 0.8rem 0.8rem 0.8rem;
        flex: 1;
        min-width: 0;
    }
    .logo h1,
    .slogan,
    .description,
    .cta-container {
        margin-left: 0 !important;
    }
    .logo h1 {
        font-size: 2rem;
        margin-bottom: 0.3rem;
        line-height: 1.05;
        text-align: left;
        word-break: break-word;
    }
    .logo h1 sup {
        font-size: 0.9rem;
        top: 0.2rem;
    }
    .slogan {
        font-size: 1.05rem;
        margin-bottom: 1.2rem;
        text-align: left;
    }
    .description {
        max-width: 100%;
        margin-bottom: 1.2rem;
    }
    .description p {
        font-size: 1rem;
        margin-bottom: 0.8rem;
        line-height: 1.5;
    }
    .cta-container {
        margin-top: 1.2rem;
        text-align: center;
    }
    .cta-button {
        font-size: 1.05rem;
        padding: 1em 0;
        width: 100%;
        box-sizing: border-box;
        display: block;
        border-radius: 8px;
        margin: 0 auto;
    }
    footer {
        margin-top: 2.5rem;
        width: 100%;
    }
    .footer-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 0.7em;
        padding: 0.8em 0;
    }
    .footer-content p {
        font-size: 0.95rem;
        margin-bottom: 0.2em;
    }
    .social-links {
        flex-direction: row;
        gap: 1em;
        justify-content: center;
        margin-top: 0.3em;
        width: 100%;
    }
    .social-link {
        font-size: 1rem;
        padding: 0.2em 0.5em;
        touch-action: manipulation;
    }
}

/* Extra kleine Screens */
@media (max-width: 400px) {
    .content {
        padding: 0.7rem 0.2rem 0.5rem 0.2rem;
    }
    .logo h1 {
        font-size: 1.3rem;
    }
    .slogan {
        font-size: 0.95rem;
    }
    .cta-button {
        font-size: 0.95rem;
        padding: 0.8em 0;
    }
    .footer-content p {
        font-size: 0.85rem;
    }
}

/* Optional: Make sure footer uses flex for mobile stacking */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
}

/* Parallax Effect */
@media (min-width: 769px) {
    .logo h1 {
        transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    }
    
    .slogan {
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }
}

@font-face {
    font-family: Europa-Grotesk;
    src: url("europa-grotesk-sh-bold.otf") format("opentype");
}

