/* ==========================================================================
   1. FONTS & RESET
   ========================================================================== */
@font-face {
    font-family: 'Nunito';
    src: url('/assets/font/nunito.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

/* ==========================================================================
   2. BASIS & SCROLL-SNAPPING
   ========================================================================== */
html, body {
    font-family: 'Nunito', sans-serif;
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
    height: 100%;
    overflow: hidden; 
}

.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.snap-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    scroll-snap-align: start;
}

/* ==========================================================================
   3. HEADER COMPONENT (Floating Style)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 1.5rem; /* Abstand nach oben auf Desktop */
    left: 50%;
    transform: translateX(-50%); /* Zentriert den schwebenden Header */
    width: 90%;
    max-width: 1000px; /* Beschränkt die Länge */
    padding: 0.8rem 2rem; /* Etwas kompakteres Padding für die Pillenform */
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08); /* Rand rundherum */
    border-radius: 50px; /* Stark abgerundete Ecken */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); /* Eleganter Schatten */
}

.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 35px; /* Größe des neuen Logos anpassen */
    width: auto;
    display: block;
}

.site-header nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.site-header nav a {
    color: #cccccc;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.site-header nav a:hover {
    color: #00adb5;
}

/* ==========================================================================
   4. INTRO OVERLAY (Reines CSS)
   ========================================================================== */
.intro-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: #121212;
    display: flex;
    align-items: center; 
    justify-content: center;
    z-index: 9999;
    animation: fadeOutOverlay 0.5s ease 1.5s forwards;
}

@keyframes fadeOutOverlay {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.intro-text {
    font-size: 4rem;
    font-weight: 700;
    color: #333333;
    background: linear-gradient(120deg, #333333 30%, #ffffff 50%, #333333 70%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 1.5s linear forwards;
}

@keyframes shine {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* ==========================================================================
   5. SESSION-STORAGE KLASSEN (Wenn User schon da war)
   ========================================================================== */
body.skip-intro .intro-overlay {
    display: none !important;
    animation: none;
}

/* Alle Start-Animationen sollen ohne Intro sofort (0.1s) abspielen */
body.skip-intro .blur-fade-in,
body.skip-intro .hero-fade-right,
body.skip-intro .hero-text-bounce {
    animation-delay: 0.1s;
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
.hero {
    background-color: #121212;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
}

.hero-image-wrapper {
    position: relative;
    max-width: 400px;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   7. HERO TEXT & FADE-IN (Reines CSS)
   ========================================================================== */

.hero-text-container {
    font-size: 1.2rem;
    max-width: 600px;
    color: #cccccc;
    line-height: 1.6;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-text h2 {
    font-size: 2rem;
    color: #00adb5;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-text p {
    font-size: 1.2rem;
    max-width: 600px;
    color: #cccccc;
}

/* -- Alte Animation (bleibt für 404 und Datenschutz) -- */
.blur-fade-in {
    opacity: 0;
    filter: blur(15px);
    transform: translateX(20px); 
    animation: showHeroText 1.2s ease-out 1.8s forwards;
}

@keyframes showHeroText {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translate(0, 0);
    }
}

/* -- NEU: Fade In von Rechts (für Bild & Titel) -- */
.hero-fade-right {
    opacity: 0;
    transform: translateX(40px); /* Startet leicht nach rechts versetzt */
    /* Startet nach dem Intro (1.8s) */
    animation: fadeInRight 1s ease-out 1.8s forwards;
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* -- NEU: Double Bounce (für Text) -- */
.hero-text-bounce {
    opacity: 0;
    /* Etwas längere Dauer (1.2s), damit es smooth wirkt */
    animation: blurRevealDoubleBounce 1.2s ease-out 1.8s forwards;
}

@keyframes blurRevealDoubleBounce { 
    0% { 
        opacity: 0; 
        filter: blur(12px); 
        transform: translateY(-12px); 
    } 
    100% { 
        opacity: 1; 
        filter: blur(0); 
        transform: translateY(0); 
    } 
}

/* ==========================================================================
   8. PROJEKTE SECTION
   ========================================================================== */
.projects {
    background-color: #1a1a1a;
}

.projects-content {
    max-width: 1200px;
    width: 100%;
}

.projects-content h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #ffffff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: #252525;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #333333;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777777;
    margin-bottom: 1rem;
    font-weight: bold;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #00adb5;
}

.project-card p {
    font-size: 1rem;
    color: #bbbbbb;
}

/* ==========================================================================
   9. KONTAKT SECTION
   ========================================================================== */
.contact {
    background-color: #121212;
}

.contact-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.contact-content h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 3rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    padding: 1.5rem;
    background-color: #252525;
    border-radius: 15px;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-card:hover {
    transform: translateY(-5px);
    background-color: #333333;
}

.contact-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00adb5;
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 1.2rem;
    font-weight: bold;
}

.linkedin-card:hover .contact-label { color: #0077b5; }
.discord-card:hover .contact-label { color: #5865F2; }

/* ==========================================================================
   10. FOOTER COMPONENT
   ========================================================================== */
.site-footer {
    background-color: #0a0a0a;
    padding: 2rem;
    text-align: center;
    width: 100%;
}

.snap-footer {
    scroll-snap-align: end;
}

.footer-content p {
    color: #888888;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: #00adb5;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

/* ==========================================================================
   11. 404 ERROR PAGE
   ========================================================================== */
body.error-body {
    overflow-y: auto; 
}

.error-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1;
    background: linear-gradient(120deg, #00adb5, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.error-content p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 2rem;
}

.back-home-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #252525;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.back-home-btn:hover {
    background-color: #00adb5;
    transform: translateY(-3px);
}

/* ==========================================================================
   12. DATENSCHUTZ / LEGAL PAGE
   ========================================================================== */
body.legal-body {
    overflow-y: auto; 
    background-color: #121212;
    padding: 2rem;
}

.legal-container {
    max-width: 800px;
    margin: 6rem auto 2rem; 
    padding: 4rem;
    background-color: #1a1a1a;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.legal-container .back-home-btn {
    margin-bottom: 3rem;
}

.legal-container h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
    border-bottom: 2px solid #333333;
    padding-bottom: 1rem;
}

.legal-section { margin-bottom: 2.5rem; }
.legal-section h2 { font-size: 1.5rem; color: #00adb5; margin-bottom: 1rem; }
.legal-section p { color: #cccccc; margin-bottom: 1rem; line-height: 1.8; }
.legal-section ul { list-style-type: disc; margin-left: 2rem; color: #cccccc; line-height: 1.8; }
.legal-section ul li { margin-bottom: 0.8rem; }
.legal-section strong { color: #ffffff; }
.legal-section a { color: #00adb5; text-decoration: none; transition: color 0.3s ease; }
.legal-section a:hover { color: #ffffff; }

/* ==========================================================================
   13. RESPONSIVE DESIGN (Tablets & Smartphones)
   ========================================================================== */
@media (max-width: 900px) {
    /* Header Responsive - Setzt ihn zurück auf volle Breite */
    .site-header { 
        top: 0;
        width: 100%;
        max-width: none;
        border-radius: 0; /* Entfernt die Pillenform */
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transform: none; /* Entfernt die Zentrierungs-Verschiebung */
        left: 0;
        padding: 1rem 1.5rem;
    }
    
    .site-header nav { gap: 1rem; }

    /* Intro Responsive */
    .intro-text { font-size: 2.5rem; }
    
    /* Hero Responsive */
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding-top: 4rem; 
    }
    .hero-image-wrapper { max-width: 250px; }
    .blur-fade-in { transform: translateY(20px); }
    .hero-text h1 { font-size: 3rem; }
    .hero-text h2 { font-size: 1.5rem; }

    /* Projekte & Kontakt Responsive */
    .projects-content h2, .contact-content h2 { font-size: 2.2rem; margin-bottom: 1.5rem; }

    /* Legal Page Responsive */
    body.legal-body { padding: 1rem; }
    .legal-container { padding: 2rem; margin: 4rem auto 1rem; }
    .legal-container h1 { font-size: 2rem; }
}