        :root {
            --bg-dark: #0B0F19;
            --bg-section: #0F1420;
            --bg-card: #151A27;
            --text-main: #F3F4F6;
            --text-muted: #9CA3AF;
            --accent-gradient: linear-gradient(135deg, #00F2FE 0%, #4FACFE 100%);
            --accent-color: #00F2FE;
            --accentdark-color: #00bfc9;
            --border-color: rgba(255, 255, 255, 0.1);
        }

        html, body { 
            scroll-behavior: smooth; 
            overflow-x: hidden;
            width: 100%;
            max-width: 100vw;
            margin: 0;
            padding: 0;
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-dark);
            color: var(--text-main);
            line-height: 1.6;
        }

        ::-webkit-scrollbar {
  width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey; 
  border-radius: 10px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--accent-color); 
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--accentdark-color); 
}

        .bg-glow {
            position: absolute;
            width: 100vw; height: 100vh;
            background: radial-gradient(circle at top right, rgba(0, 242, 254, 0.05) 0%, rgba(11, 15, 25, 0) 50%);
            top: 0; left: 0; z-index: -1; pointer-events: none;
        }

        .logo:hover {
            color: #fff;
        }

        nav {
            background-color: rgba(11, 15, 25, 0.9);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            position: fixed;
            top: 0; left: 0; right: 0; width: 100%;
            z-index: 9999; display: flex; justify-content: space-between;
            align-items: center; padding: 15px 5%; box-sizing: border-box;
            border-bottom: 1px solid var(--border-color);
        }

        nav .logo, .footer-logo {
            font-size: 1.3em; font-weight: 900; color: #fff !important; text-decoration: none; letter-spacing: 1px;
        }
        nav .logo span, .footer-logo span {
            background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        }
        nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
        nav a { text-decoration: none; color: var(--text-main); font-weight: 500; transition: color 0.3s; font-size: 0.95rem; }
        nav a:hover { color: var(--accent-color); }

        .footer-a {
            color: var(--accent-color);
            text-decoration: none;
        }

       .hamburger {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 10000;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-main);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

/* Position der 3 Linien */
.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

/* Animation wenn aktiv (Klasse 'open' wird via JS hinzugefügt) */
.hamburger.open span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.open span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

        .hero-container { max-width: 1200px; margin: 100px auto 40px auto; padding: 0 20px; box-sizing: border-box; }
        
        .hero { 
            display: flex; 
            align-items: center; 
            justify-content: space-between; 
            gap: 50px; 
            min-height: 80vh;
        }

        .login-nav-btn {
            background: var(--accent-gradient);
            padding: 8px 20px;
            border-radius: 50px;
            color: #fff !important;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-nav-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

        .hero-text { flex: 1; max-width: 600px; z-index: 10; }
        .hero h1 { font-size: 3.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 20px; color: #fff; }
        .hero p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; }
        
        .skills { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
        .skills li { background: rgba(0, 242, 254, 0.05); border: 1px solid rgba(0, 242, 254, 0.3); color: var(--accent-color); padding: 8px 16px; border-radius: 8px; font-size: 0.85rem; font-weight: 500; }

        .hero-visual { position: relative; flex-shrink: 0; width: 100%; max-width: 450px; display: flex; justify-content: center; align-items: center; animation: fadeIn 1.2s ease-out forwards; }
        .hero-blob { width: 100%; filter: drop-shadow(0 0 40px rgba(0, 242, 254, 0.2)); }
        .hero-blob svg { width: 100%; height: auto; display: block; }
        .hero-image { position: absolute; bottom: 5%; left: 50%; transform: translateX(-50%); width: 75%; height: auto; z-index: 2; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, black 98%, transparent 100%); mask-image: linear-gradient(to bottom, black 98%, transparent 100%); }

        main {
            background-color: var(--bg-section);
            width: 100%;
            padding: 60px 0;
            border-top: 1px solid var(--border-color);
        }

        .section-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

        #projects { margin-bottom: 80px; }
        .section-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 35px; color: #fff; text-align: center; }
        
        /* HOVER EFFEKT FILTER BUTTONS */
        .filter-buttons { display: flex; justify-content: center; gap: 12px; margin-bottom: 35px; flex-wrap: wrap; }
        .filter-btn { 
            background-color: var(--bg-card); 
            border: 1px solid var(--border-color); 
            color: var(--text-main); 
            padding: 8px 20px; 
            border-radius: 50px; 
            cursor: pointer; 
            font-size: 0.9rem; 
            transition: all 0.3s ease; 
        }
        .filter-btn:hover {
            border-color: var(--accent-color);
            color: #fff;
            transform: translateY(-2px);
        }
        .filter-btn.active { 
            background: var(--accent-gradient); 
            border-color: transparent; 
            color: #fff;
            box-shadow: 0 4px 12px rgba(0, 242, 254, 0.2); 
        }
        .filter-btn.active:hover {
            transform: translateY(0); /* Kein Lift-up für bereits aktive Buttons */
        }
        
        .project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
        .project-card { 
            background-color: var(--bg-card); 
            border: 1px solid var(--border-color); 
            padding: 30px; 
            border-radius: 16px; 
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
        }
        .project-card:hover { 
            transform: translateY(-10px); 
            border-color: var(--accent-color);
            box-shadow: 0 15px 35px rgba(0, 242, 254, 0.15);
        }
        
        .project-card.hide { display: none; }
        .project-card h3 { margin-top: 0; font-size: 1.25rem; color: #fff; margin-bottom: 12px; }

        #contact { text-align: center; background: var(--bg-card); padding: 60px 20px; border-radius: 24px; border: 1px solid var(--border-color); }
        .contact-btn { 
            display: inline-block; 
            background: var(--accent-gradient); 
            color: #fff; 
            padding: 14px 35px; 
            border-radius: 50px; 
            text-decoration: none; 
            font-weight: 700; 
            font-size: 1rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
        }
        .contact-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 25px rgba(0, 242, 254, 0.4);
        }

        footer { background-color: var(--bg-dark); border-top: 1px solid var(--border-color); padding: 50px 5% 30px 5%; }
        .footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; }
        .footer-links ul { list-style: none; padding: 0; margin: 0; }
        .footer-links li { margin-bottom: 10px; }
        .footer-links a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; transition: color 0.3s ease; }
        .footer-links a:hover { color: var(--accent-color); }
        .footer-bottom { border-top: 1px solid var(--border-color); padding-top: 25px; display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.8rem; }

        .cursor { display: inline; border-left: 3px solid var(--accent-color); margin-left: 5px; animation: blink-caret 0.75s step-end infinite; }
        .name-highlight { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        @keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: var(--accent-color); } }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0px); } }

        @media (max-width: 768px) {
            nav { padding: 10px 5%; }
            .hamburger { display: block; }
            /* --- Mobiles Menü Container --- */
        nav ul { 
            display: flex; 
            flex-direction: column; 
            position: absolute; 
            top: 100%; 
            left: 0; 
            width: 100%; 
            
            /* --- NEU: Transparenz & Blur exakt wie bei der Navbar --- */
            background-color: rgba(11, 15, 25, 0.95); /* Etwas dunkler für bessere Lesbarkeit der Links */
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            
            border-bottom: 1px solid var(--border-color); 
            padding: 20px 0; 
            text-align: center; 
            margin-top: -1px;
            
            /* Die obere Trennlinie farblich anpassen, damit sie unsichtbar bleibt */
            border-top: 1px solid transparent; 
            
            opacity: 0;
            visibility: hidden; 
            transform: translateY(-20px); 
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
        }

        nav ul.show { 
            opacity: 1;
            visibility: visible;
            transform: translateY(0); 
        }
            nav ul.show { display: flex; }
            .hero-container { margin-top: 80px; }
            .hero { flex-direction: column-reverse; text-align: center; min-height: auto; padding: 20px 0 60px 0; gap: 30px; }
            .hero h1 { font-size: 2.2rem; }
            .hero p { font-size: 1rem; padding: 0 10px; }
            .skills { justify-content: center; }
            .hero-visual { max-width: 320px; margin: 0 auto; }
            .section-title { font-size: 1.8rem; }
            .project-grid { grid-template-columns: 1fr; }
            .footer-content { grid-template-columns: 1fr; text-align: center; gap: 30px; }
            .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
        }
        
        .container {
            max-width: 1000px;
            margin: 140px auto 60px auto;
            padding: 0 20px;
            box-sizing: border-box;
        }

        .legal-box {
            background-color: var(--bg-card);
            padding: 60px 40px;
            border-radius: 24px;
            border: 1px solid var(--border-color);
        }

        .legal-box h1 {
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-size: 2.5rem;
            font-weight: 900;
            margin-bottom: 30px;
            margin-top: 0;
        }

        .legal-content {
            color: var(--text-muted);
            font-weight: 400;
        }

        .legal-content h4 {
            color: #fff;
            font-size: 1.1rem;
            margin-top: 0;
        }

        .legal-content p {
            margin-bottom: 1.5rem;
        }

        .legal-content strong {
            color: #fff;
        }

        .legal-content a {
            color: var(--accent-color);
            text-decoration: none;
        }

        .back-link {
            display: inline-block;
            margin-top: 40px;
            color: var(--accent-color);
            text-decoration: none;
            font-weight: 600;
        }


        @media (max-width: 900px) {
            .legal-box { padding: 40px 20px; }
        }

/* --- Projekt Icons (Extra Groß & Thematisch) --- */
/* --- Projekt Icons (Etwas kleiner, aber präsent) --- */
.project-card .card-icon {
    font-size: 3rem; /* Etwas kleiner (vorher 5rem) */
    color: var(--accent-color); 
    margin-bottom: 25px; 
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 75px;  /* Container entsprechend verkleinert */
    height: 75px; /* Container entsprechend verkleinert */
    background: rgba(0, 242, 254, 0.05); 
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 18px; /* Etwas weicherer Rahmen passend zur neuen Größe */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
}

.project-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg); 
    background: rgba(0, 242, 254, 0.15);
}

/* --- Projekt Card Link-Styling reparieren --- */
/* --- Projekt Card Startzustand (Unsichtbar) --- */
a.project-card { 
    background-color: var(--bg-card); 
    border: 1px solid var(--border-color); 
    padding: 30px; 
    border-radius: 16px; 
    
    display: block; 
    text-decoration: none !important; 
    color: inherit; 
    
    /* NEU: Startzustand für die Scroll-Animation */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease;
}

/* --- Projekt Card Endzustand (Sichtbar) --- */
a.project-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Hover-Effekt (Greift nur, wenn die Karte eingeblendet ist) */
a.project-card.fade-in:hover { 
    transform: translateY(-10px); 
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.15);
}

/* ... Die H3 und P Styling-Regeln bleiben genau wie sie waren ... */
a.project-card h3 { 
    margin-top: 0; 
    font-size: 1.25rem; 
    color: #fff !important; 
    margin-bottom: 12px; 
    text-decoration: none !important;
}

a.project-card p { 
    color: var(--text-muted) !important; 
    font-size: 1rem; 
    margin: 0; 
    text-decoration: none !important;
}

/* --- Organische Wasser-Animation für den Hero-Blob --- */

.hero-blob {
    animation: floatBlob 8s ease-in-out infinite;
}

.hero-blob svg g path:nth-child(1) {
    animation: waterFluid1 10s ease-in-out infinite alternate;
}

.hero-blob svg g path:nth-child(2) {
    animation: waterFluid2 12s ease-in-out infinite alternate;
}

/*@keyframes floatBlob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes waterFluid1 {
    0% { transform: scale(1) translate(0, 0) skew(0deg, 0deg) rotate(0deg); }
    50% { transform: scale(1.06) translate(3px, -4px) skew(3deg, 1deg) rotate(4deg); }
    100% { transform: scale(0.96) translate(-3px, 4px) skew(-2deg, -3deg) rotate(-3deg); }
}

@keyframes waterFluid2 {
    0% { transform: scale(1) translate(0, 0) skew(0deg, 0deg) rotate(0deg); }
    50% { transform: scale(0.94) translate(-4px, 3px) skew(-3deg, -2deg) rotate(-4deg); }
    100% { transform: scale(1.04) translate(4px, -3px) skew(2deg, 3deg) rotate(3deg); }
} */

/* --- Kontaktbereich Startzustand --- */
#contact { 
    text-align: center; 
    background: var(--bg-card); 
    padding: 60px 20px; 
    border-radius: 24px; 
    border: 1px solid var(--border-color); 
    
    /* NEU: Startzustand für die Animation */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Kontaktbereich Endzustand (Sichtbar) --- */
#contact.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stellt sicher, dass ausgeblendete Filter-Karten wirklich verschwinden */
a.project-card.hide {
    display: none !important;
}

/* --- Zentrierter Indikator (Text & Pfeil bewegen sich zusammen) --- */
.projects-pointer-center {
    margin-top: -35px; /* Ganz nah an die Skills gerückt */
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
    pointer-events: none; /* Verhindert, dass man den Pfeil versehentlich anklickt */
}

.pointer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    /* Die Animation liegt jetzt auf dem gesamten Container! */
    animation: combinedFloat 3s ease-in-out infinite;
}

.pointer-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    font-style: italic;
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    white-space: nowrap;
}

.arrow-svg {
    width: 55px;
    height: auto;
    color: var(--accent-color);
    filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.3));
}

/* Gemeinsame Schwebe-Animation für Text und Pfeil */
@keyframes combinedFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    50% { 
        /* Bewegt sich sanft nach unten und neigt sich leicht */
        transform: translateY(12px) rotate(-2deg); 
    }
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .projects-pointer-center {
        margin-top: -10px;
    }
    .pointer-text {
        font-size: 0.95rem;
    }
    .arrow-svg {
        width: 45px;
    }
}

/* --- Schwebender Zahnrad-Button --- */
.floating-settings {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    font-size: 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
    
    /* Startzustand für Fade-In */
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
}

/* Sichtbarer Zustand durch Observer */
.floating-settings.fade-in {
    opacity: 1;
    transform: scale(1);
}

/* Hover-Effekt: Zahnrad dreht sich */
.floating-settings:hover {
    background: rgba(0, 242, 254, 0.15);
}

.floating-settings:hover i {
    animation: spinGear 2s linear infinite;
}

@keyframes spinGear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Modal Design --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: none; /* Standardmäßig versteckt */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    color: var(--accent-color);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #fff;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sperrt das Scrollen der Hauptseite */
body.modal-open {
    overflow: hidden;
    height: 100vh;
}

.setting-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.setting-info small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Checkbox Styling passend zum Cyan */
input[type="checkbox"] {
    accent-color: var(--accent-color);
    width: 18px;
    height: 18px;
}

/* --- Modernes Portfolio-Logo --- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px; /* Abstand zwischen Icon und Text */
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 900; /* Wie im Footer: Extra fett */
    letter-spacing: 1px; /* Wie im Footer: Etwas breiterer Abstand */
    color: #fff;
    transition: transform 0.3s ease;
}

.logo span {
    /* Den dünnen Schriftschnitt (300) entfernen wir, damit es fett bleibt */
    background: var(--accent-gradient); /* Farbverlauf statt einfarbig */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon-wrapper {
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.5));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-svg {
    width: 100%;
    height: 100%;
}

/* --- Hover-Effekte --- */
.logo:hover {
    transform: translateY(-2px); /* Hebt sich leicht an */
}

.logo:hover .logo-icon-wrapper {
    transform: rotate(15deg) scale(1.1); /* Dreht und vergrößert das Icon */
}

/* Subtiles Pulsieren des Sechsecks im Hintergrund */
.logo-svg polygon {
    animation: pulseLogo 3s infinite alternate ease-in-out;
}

@keyframes pulseLogo {
    0% { fill: rgba(0, 242, 254, 0.05); }
    100% { fill: rgba(0, 242, 254, 0.25); }
}

/* Mobile Anpassung: Icon etwas kleiner, damit es neben den Hamburger-Button passt */
@media (max-width: 768px) {
    .logo {
        font-size: 1.2rem;
        gap: 8px;
    }
    .logo-icon-wrapper {
        width: 32px;
        height: 32px;
    }
}

#projects-link {
    text-decoration: none;
}