html {
    scroll-behavior: smooth;
}

body {
    background-color: #121212;
    font-family: 'Outfit', sans-serif;
    font-weight: 200;
    color: #e2e8f0;
    margin: 0;
    box-sizing: border-box;
}

/* HEADER OPTIMIERUNG */
.header {
    display: flex;
    justify-content: space-between; /* Logo ganz links, Menü ganz rechts */
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari-Support */
    padding: 15px 8%; /* 8% Abstand nach links und rechts für einen edlen Look */
}

/* --- LOGO: Sauber links ausgerichtet --- */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 95px; /* Perfekte Größe: nicht zu winzig, nicht zu riesig */
    width: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease; /* Sanfte Animation beim Hover */
}

.logo img:hover {
    transform: scale(1.2);
}

/* --- NAVIGATION: Rechtsbündig mit deinen Original-Buttons --- */
.header ul {
    display: flex;
    list-style: none;
    gap: 2rem; /* Perfekter Abstand zwischen deinen Buttons */
    align-items: center;
    margin: 0;
    padding: 0;
}

.header ul li a {
    text-decoration: none;
    font-weight: 300;
    color: white;
    font-size: 1.2rem;
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.header ul li a.contact-btn {
    background-color: #2563EB; 
}

.header ul li a:hover {
    transform: scale(1.05);
    background-color: #2d2d2d;
}

.header ul li a.contact-btn:hover {
    background-color: #174ab9;
}

/* MAIN HERO SECTION */

.main {
    display: flex;
    flex-direction: column;    
    justify-content: center;   
    align-items: flex-start; 
    min-height: calc(100vh - 60px); 
    padding-left: 10%;         
    background-color: #121212; 
}

.main h1 {
    font-size: 3.5rem;         
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: white;
    margin-bottom: 2rem;
}

h1 .special-font {
    font-family: 'Alex Brush', cursive;
    font-weight: 400;
    font-size: 4.5rem;
    text-transform: none;
    letter-spacing: normal;
    display: inline-block;
    color: #2563EB; /* Ein subtiler Farbakzent für das "line by line" */
}

/* SCROLL PFEIL */
.scroll-arrow {
    display: block;          
    width: fit-content;      
    color: #94a3b8;          
    transition: color 0.3s ease;
    animation: bounce 2s infinite; 
    margin-top: 2rem;
}

.scroll-arrow svg {
    width: 45px;
    height: 45px;
}

.scroll-arrow:hover {
    color: #ffffff;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-12px); }
    60% { transform: translateY(-6px); }
}

/* ABOUT SECTION BEHOBEN */
.about-section {
    min-height: 100vh;
    background-color: #161616; /* Leicht helleres Schwarz für Sektions-Trennung */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 10%;
}

.about-container {
    max-width: 700px;          
    text-align: left; /* Linksbündig wirkt bei langen Texten oft professioneller als zentriert */
}

.about-section h2 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
    color: white;
}

.about-section p {
    margin-bottom: 1.5rem;
    line-height: 1.7;  
    font-size: 1.15rem;
    color: #cbd5e1; /* Etwas weicheres Weiß für bessere Lesbarkeit */
}

.about-section .lead-text {
    font-size: 1.4rem;
    color: white;
}

/* TECH STACK AS BADGES */
.tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.badge {
    background-color: #262626;
    color: #2563EB; /* Blau akzent passend zum Vibe */
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid #333;
}

/* PROJEKTE SECTION */
.project-section {
    padding: 100px 10%;
    background-color: #121212;
}

.project-section h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
}

.projects-grid {
    display: grid;
    /* Erstellt automatisch 3 Spalten, wenn Platz ist, sonst bricht es responsive um */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #161616;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #232323;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    /* Ein subtiler blauer Glüheffekt, der perfekt zu deinem Farbschema passt */
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.08); 
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.project-card img {
    width: 100%;
    /* Entferne das max-width: 350px, damit das Bild die ganze Karte sauber ausfüllt */
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    transition: opacity 0.3s ease;
}

/* CONTACT SECTION */

.contact-section {
    padding: 100px 10%;
    background-color: #161616; /* Passt zur Wechsel-Optik der About-Section */
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriert die komplette Sektion */
    text-align: center;
}

.contact-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.contact-section p {
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 600px; /* Begrenzt die Textbreite für edlere Optik */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 550px; /* Etwas breiter für komfortableres Tippen */
    text-align: left; /* Eingabefelder bleiben linksbündig */
}

/* Eingabefelder und Textarea */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid #282828;
    background-color: #1e1e1e;
    color: #e2e8f0;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* Platzhalter-Farbe anpassen */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #64748b;
}

/* Focus-Effekt passend zu deinem Blau (#2563EB) */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #2563EB;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.25);
    outline: none;
}

/* DATENSCHUTZ CHECKBOX BOX */
.privacy-box {
    margin-top: 5px;
    margin-bottom: 5px;
}

.privacy-note {
    font-size: 0.9rem;
    color: #94a3b8;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    line-height: 1.4;
}

.privacy-note input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: #2563EB; /* Färbt das Häkchen in deinem Blau */
    cursor: pointer;
    flex-shrink: 0;
}

/* SUBMIT BUTTON */
.contact-form button {
    padding: 14px 24px;
    border-radius: 8px;
    border: none;
    background-color: #2563EB;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 5px;
}

.contact-form button:hover {
    background-color: #174ab9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.contact-form button:active {
    transform: translateY(0);
}

/* FOOTER */
.site-footer {
    background-color: #121212;
    padding: 30px 10%;
    text-align: center;
    border-top: 1px solid #1e1e1e;
    color: #64748b;
    font-size: 0.9rem;
}

.site-footer p {
    margin-bottom: 8px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-links .divider {
    margin: 0 10px;
    color: #334155;
}

/* MODAL STYLING */
.modal {
    display: none; /* Standarmäßig unsichtbar */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Dunkler Hintergrund */
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1e1e1e;
    color: #e2e8f0;
    padding: 40px;
    border: 1px solid #333;
    border-radius: 16px;
    max-width: 650px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto; /* Scrollbar, falls der Text lang ist */
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #ffffff;
}

.legal-text h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.legal-text p {
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 15px;
}

/* ==========================================
   RESPONSIVE DESIGN (Für Smartphones & Tablets)
   ========================================== */

@media (max-width: 768px) {
    /* 1. Header & Navigation */
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 5%;
    }

    .logo img {
        height: 70px; /* Logo auf mobilen Geräten etwas kleiner */
    }

    .header ul {
        gap: 0.8rem;
    }

    .header ul li a {
        font-size: 0.95rem;
        padding: 6px 12px;
    }

    /* 2. Hero Section (Startseite) */
    .main {
        padding-left: 5%;
        padding-right: 5%;
        justify-content: center;
    }

    .main h1 {
        font-size: 2.2rem;
    }

    h1 .special-font {
        font-size: 3rem;
    }

    /* 3. About, Projekte & Kontakt Sektionen */
    .about-section, 
    .project-section, 
    .contact-section {
        padding: 60px 5%;
    }

    .about-section h2, 
    .project-section h2, 
    .contact-section h2 {
        font-size: 2.2rem;
    }

    /* 4. Modal (Impressum / Datenschutz) */
    .modal-content {
        padding: 25px 20px;
        width: 95%;
    }
}
