* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    background-color: transparent; 
    color: #e0e0e0; 
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: transparent;
    pointer-events: none;
}

/* Sektionen */
.panel {
    width: 100%; 
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.panel h1, .panel h2 {
    font-size: 4rem;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
}

/* --- Header / Hero Section --- */
.header-section {
    background-color: transparent; 
    align-items: flex-start;
}

.hero-container {
    width: 100%;
    max-width: 1600px;
    padding: 0 20px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    text-align: left;
    z-index: 10;
    pointer-events: none; 
}

.hero-text-box {
    max-width: 600px;
    pointer-events: auto; 
}

.greeting {
    color: #3b82f6; 
    font-weight: bold;
    letter-spacing: 3px;
    font-size: 1rem;
    margin-bottom: 15px;
}

.hero-text-box h1 {
    font-size: clamp(3rem, 7vw, 7rem); 
    line-height: 1;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 2px;
}

.hero-text-box .accent {
    color: transparent;
    -webkit-text-stroke: 2px #ffffff;
}

.subheadline {
    color: #999999;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-btn-primary, .hero-btn-secondary {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hero-btn-primary {
    background-color: #3b82f6;
    color: #ffffff;
    border: 2px solid #3b82f6;
}

.hero-btn-primary:hover {
    background-color: transparent;
    color: #3b82f6;
}

.hero-btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #444444;
}

.hero-btn-secondary:hover {
    border-color: #ffffff;
}

/* Hamburger Menü */
.menu-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 30px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateZ(0);
    transition: transform 0.3s ease;
}

.menu-btn:hover {
    transform: scale(1.05);
}

.menu-btn .bar {
    width: 100%;
    height: 4px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-btn.open {
    justify-content: center;
}

.menu-btn.open .bar {
    position: absolute; 
    top: 50%; 
}

.menu-btn:hover .bar {
    background-color: #3b82f6; 
}

.menu-btn.open .bar:nth-child(1) {
    transform: translateY(0) rotate(45deg); 
}

.menu-btn.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-btn.open .bar:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

.menu-btn.open:hover .bar {
    background-color: #3b82f6;
}

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.95); 
    backdrop-filter: blur(8px); 
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.nav-overlay ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.nav-overlay ul li {
    margin: 25px 0; 
}

.nav-overlay ul li a {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 3rem; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: inline-block;
    transition: color 0.3s, transform 0.3s;
}

.nav-overlay ul li a:hover {
    color: #3b82f6; 
    transform: scale(1.05);
}

/* About Me */
.about-section {
    background-color: #111111;
    min-height: 100vh;
    height: auto;
    padding: 100px 20px;
}

.about-container {
    display: flex;
    gap: 80px;
    width: 100%;
    max-width: 1100px;
}

.about-left { flex: 1; }

.simple-timeline {
    position: relative;
    padding-left: 50px;
}

.simple-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: #333333;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -38px;
    top: 30px;
    width: 16px;
    height: 16px;
    background-color: #111111;
    border: 3px solid #ff6b6b;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.timeline-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 5px;
    text-align: left;
}

.timeline-box .date {
    color: #3b82f6; 
    font-size: 0.85rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.timeline-box h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.timeline-box p {
    color: #999999;
    font-size: 0.95rem;
    line-height: 1.5;
}

.about-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center; 
    width: 100%;
    max-width: 400px;
}

.profile-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #333333;
    margin-bottom: 30px;
    transition: filter 0.4s ease, border-color 0.4s ease;
}

.profile-img:hover {
    border-color: #3b82f6;
}

.profile-name-box {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    margin-bottom: 15px;
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
}

.profile-name-box h3 {
    color: #ffffff;
    font-size: 1.4rem;
}

.profile-desc-box {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
}

.profile-desc-box p {
    color: #999999;
    line-height: 1.6;
    margin-bottom: 15px;
}

.profile-desc-box p:last-child {
    margin-bottom: 0;
}

/* Projekte Sektion */
.project-section {
    background-color: #1a1a1a;
    min-height: 100vh;
    height: auto;
    padding: 100px 20px; 
}

.project-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
}

.project-card {
    flex: 0 1 350px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px; 
    padding: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #3b82f6; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.img-wrapper {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.img-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover; 
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover .img-wrapper img {
    transform: scale(1.05); 
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
    text-transform: none;
    letter-spacing: normal;
}

.tech-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 1.8rem;
    color: #666666; 
}

.tech-icons i {
    transition: color 0.3s ease, transform 0.3s ease;
}

.tech-icons i:hover {
    color: #3b82f6; 
    transform: scale(1.2);
}


/* ==========================================
   MODAL STYLING (GSAP gesteuert)
   ========================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.93);
    backdrop-filter: blur(8px);
    display: none; /* Flex-Zustand wird vollkommen via GSAP aktiviert */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
}

/* Spezifische Klasse für das Projekt-Modal, um das CSS-Fallback-System zu stützen */
#project-modal.show {
    opacity: 1;
    visibility: visible;
    display: flex;
}

.modal-content {
    background: #111111;
    padding: 40px 30px 30px 30px;
    border-radius: 10px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto; 
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #666666;
    transition: color 0.2s ease;
    z-index: 10;
}

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

/* Modal Inner Content (Project Carousel) */
.carousel-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.carousel-container {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background-color: transparent;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 30px; 
    margin-top: 15px;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.05); 
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 25px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #3b82f6; 
    border-color: #3b82f6;
}

.modal-content h3 {
    font-size: 2rem;
    color: #3b82f6; 
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #aaaaaa;
    margin-bottom: 15px;
    text-align: left;
}

.modal-icons {
    justify-content: flex-start; 
}


/* Kontakt Sektion */
.contact-section {
    background-color: #111111; 
    min-height: 100vh;
    height: auto;
    padding: 100px 20px;
}

.contact-container {
    display: flex;
    gap: 80px; 
    width: 100%;
    max-width: 1100px;
    text-align: left;
}

.contact-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px; 
}

.contact-text h3 {
    color: #3b82f6; 
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-text p {
    color: #999999;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-info p {
    color: #cccccc;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-info p a {
    color: #888888;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info p a:hover {
    color: #3b82f6; 
}

.social-section h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #888888;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.social-links a i {
    font-size: 1.8rem;
    color: #888888;
    transition: color 0.3s;
}

.social-links a:hover,
.social-links a:hover i {
    color: #3b82f6; 
    transform: translateX(5px); 
}

.contact-right {
    flex: 1;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .input-group {
    flex: 1;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    color: #cccccc;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #444444;
    color: #ffffff;
    padding: 8px 0;
    font-size: 1rem;
    outline: none;
    transition: border-bottom-color 0.3s;
}

.input-group input:focus {
    border-bottom-color: #3b82f6; 
}

.input-group textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #444444;
    border-radius: 5px;
    padding: 15px;
    font-size: 1rem;
    color: #ffffff;
    outline: none;
    resize: vertical;
    margin-top: 5px;
    transition: border-color 0.3s;
}

.input-group textarea:focus {
    border-color: #3b82f6; 
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6; 
}

.checkbox-group label {
    color: #999999;
    font-size: 0.9rem;
}

.checkbox-group label a {
    color: #3b82f6;
    text-decoration: underline;
}

.checkbox-group label a:hover {
    color: #ffffff;
}

.submit-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.submit-btn {
    background-color: #3a64a8; 
    color: #ffffff;
    border: none;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background-color: #679ffa; 
    transform: scale(1.02);
}

/* Footer Styling */
.site-footer {
    background-color: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: #666666; 
}

.footer-container p {
    text-align: left;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #666666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

#stars-container {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2; 
    background-color: #050509; /* Hier ist jetzt die eigentliche Hintergrundfarbe der Seite! */
    overflow: hidden;
    pointer-events: none;
    will-change: transform;
}

.star {
    position: absolute;
    border-radius: 50%;
    background-color: #ffffff;
    opacity: 0;
    box-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff; /* Gibt den Sternen das Leuchten */
}

/* GSAP Start-Zustände */
.gsap-fade-left, .gsap-fade-up,
.project-section h2, .project-card,
.contact-section h2, .contact-left, .contact-right {
    visibility: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .panel h1, .panel h2 {
        font-size: 3rem; 
    }
    
    .about-container, .contact-container {
        gap: 40px; 
        padding: 0 20px;
    }

    .hero-container {
        justify-content: center;
        align-items: flex-start;
        padding-top: 15vh;
        text-align: center;
    }
    
    .hero-text-box h1 {
        font-size: 3.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn-primary, .hero-btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .panel h1, .panel h2 {
        font-size: 3rem;
    }

    .hero-container {
        justify-content: center;
        align-items: flex-start;
        padding-top: 15vh;
        text-align: center;
    }
    .hero-text-box h1 {
        font-size: 3.5rem;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .hero-btn-primary, .hero-btn-secondary {
        width: 100%;
        text-align: center;
    }

    .about-section, .project-section, .contact-section {
        padding: 80px 15px 50px 15px; 
    }

    .menu-btn {
        top: 2%;
        right: 5%;
        width: 35px;
        height: 25px;
    }

    .nav-overlay ul li a {
        font-size: 2rem; 
    }

    .subheadline{
        margin: 80px 0;
    }

    .greeting{
        margin: 40px 0 0 0;
    }

    .about-container {
        flex-direction: column; 
        align-items: center;
        gap: 40px;
    }

    .about-right {
        order: -1; 
        width: 100%;
    }

    .simple-timeline {
        padding-left: 30px; 
    }

    .simple-timeline::before {
        left: 0px; 
    }

    .timeline-dot {
        left: -38px; 
    }

    .project-grid {
        gap: 20px;
    }

    .modal-content {
        padding: 20px;
        width: 95%; 
        max-height: 85vh;
    }

    .modal-content h3 {
        font-size: 1.5rem;
    }

    .carousel-btn {
        padding: 10px 15px; 
        font-size: 1.2rem;
    }

    .contact-container {
        flex-direction: column;
        gap: 50px;
    }

    .contact-left {
        text-align: center; 
        align-items: center;
    }

    .social-links {
        align-items: center;
    }

    .form-row {
        flex-direction: column; 
        gap: 25px;
    }

    .submit-container {
        justify-content: stretch;
    }

    .submit-btn {
        width: 100%; 
        padding: 15px;
    }

    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-container p {
        text-align: center;
    }

    #canvas-container {
        display: none !important;
    }

    #stars-container {
        display: block;
    }
}

@media (max-width: 480px) {
    .panel h1 {
        font-size: 3em;
    }
    
    .profile-img {
        width: 180px;
        height: 180px;
    }
}

/* ==========================================
   Individuelle Scrollbar (Für alle Browser)
   ========================================== */

* {
    scrollbar-width: thin;
    scrollbar-color: #007bff #050509;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #050509;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 5px;
    border: 2px solid #050509;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* ==========================================
   Scroll-To-Top Button
   ========================================== */
#scrollToTopBtn {
    display: none; /* Standardmäßig unsichtbar */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99; /* Über allen anderen Inhalten */
    width: 45px;
    height: 45px;
    background-color: #007bff; /* Dein Akzent-Blau */
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Leichter Schatten */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: #0056b3;
    transform: translateY(-3px); /* Hebt sich beim Hover leicht an */
}

/* Auf dem Handy etwas kleiner und näher am Rand */
@media (max-width: 768px) {
    #scrollToTopBtn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}