:root {
    --primary-green: #4CAF50;
    --soft-green: #81C784;
    --dark-green: #2E7D32;
    --bg-light: #f9fff9;
    --text-dark: #2c3e50;
    --white: #ffffff;
    --accent: #FF80AB; /* A hint of pink for that Nova touch */
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Animation */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--soft-green) 0%, transparent 70%);
    filter: blur(50px);
    opacity: 0.4;
    animation: move 20s infinite alternate;
}

.blob-1 { top: -100px; left: -100px; }
.blob-2 { bottom: -100px; right: -100px; background: radial-gradient(circle, var(--primary-green) 0%, transparent 70%); }

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 50px) scale(1.2); }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
}

.logo span { color: var(--text-dark); }

nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 2rem; }
nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    transition: color 0.3s;
}
nav ul li a:hover { color: var(--primary-green); }

header {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
}

h1 { font-size: 4rem; margin-bottom: 1rem; }
.highlight { color: var(--primary-green); }

.subtitle { font-size: 1.5rem; color: #666; margin-bottom: 2rem; }

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin: 0 0.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.btn.primary { background: var(--primary-green); color: var(--white); box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3); }
.btn.secondary { background: var(--white); color: var(--primary-green); border: 2px solid var(--primary-green); }

.btn:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

.project-link.btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
}

section { padding: 5rem 10%; text-align: center; }

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

.project-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: transform 0.3s, border 0.3s;
    border: 2px solid transparent;
}

.project-card:hover { transform: scale(1.05); border-color: var(--primary-green); }

.project-icon { font-size: 3rem; color: var(--primary-green); margin-bottom: 1.5rem; }

footer {
    padding: 3rem 5%;
    background: #f1f1f1;
    text-align: center;
}

.footer-links { margin-top: 1rem; }
.footer-links a { margin: 0 1rem; text-decoration: none; color: #666; font-size: 0.9rem; }

/* Animations */
.animate-pop { animation: pop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.animate-fade { animation: fadeIn 1.2s ease-out; }

@keyframes pop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Neue Spielereien & Design Updates */
::-webkit-scrollbar { width: 16px; }
::-webkit-scrollbar-track { 
    background: #e0e0e0; 
    border-left: 2px solid #bbb;
    border-right: 2px solid #bbb;
    position: relative;
}
/* Das Gleis-Bett */
::-webkit-scrollbar-track::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 2px; height: 100%;
    background: #bbb;
    transform: translateX(-50%);
}

::-webkit-scrollbar-thumb { 
    background: var(--primary-green); 
    border-radius: 4px;
    border: 2px solid #e0e0e0;
}
/* Die kleine Tram auf dem Scrollbalken */
::-webkit-scrollbar-thumb:hover { 
    background: var(--dark-green); 
}

body.night-mode ::-webkit-scrollbar-track { background: #1a1a1a; border-color: #333; }
body.night-mode ::-webkit-scrollbar-thumb { border-color: #1a1a1a; }

/* Custom Cursor (Entfernt) */
.highlight {
    background: linear-gradient(45deg, var(--primary-green), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.typing-text::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--primary-green);
}
@keyframes blink { 50% { opacity: 0; } }

.project-icon {
    display: inline-block;
    animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.project-card {
    transform: perspective(1000px) rotateX(0) rotateY(0);
    transform-style: preserve-3d;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}
.project-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) scale(1.05);
    box-shadow: -10px 15px 35px rgba(76, 175, 80, 0.2);
    border-color: var(--soft-green);
}
.btn {
    overflow: hidden;
    position: relative;
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 300%; height: 300%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%) rotate(45deg) translateY(100%);
    transition: transform 0.5s;
}
.btn:hover::after {
    transform: translate(-50%, -50%) rotate(45deg) translateY(-100%);
}

/* --- Easter Eggs --- */
.tram-container {
    position: absolute;
    bottom: 15px;
    left: -50px;
    font-size: 2rem;
    color: var(--primary-green);
    opacity: 0.6;
    animation: drive-tram 15s linear infinite;
    pointer-events: none;
}

@keyframes drive-tram {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(120vw); }
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #ffd700;
    box-shadow: 0 0 10px #ffd700, 0 0 20px #81C784;
    pointer-events: none;
    z-index: 99999;
}

.sakura {
    position: fixed;
    top: -10vh;
    font-size: 1.5rem;
    user-select: none;
    pointer-events: none;
    z-index: 100000;
    animation: fall linear forwards;
}

/* --- Night Mode --- */
body.night-mode {
    --bg-light: #0a0f0a;
    --text-dark: #e0e0e0;
    --white: #1a1a1a;
}

body.night-mode .blob-1 { background: radial-gradient(circle, #1b5e20 0%, transparent 70%); }
body.night-mode .blob-2 { background: radial-gradient(circle, #004d40 0%, transparent 70%); }
body.night-mode nav { background: rgba(10, 15, 10, 0.8); }
body.night-mode .project-card { background: rgba(26, 26, 26, 0.9); color: #e0e0e0; }
body.night-mode footer { background: #050805; color: #888; }
body.night-mode .subtitle { color: #aaa; }
body.night-mode .nav-links { background: rgba(26, 26, 26, 0.95); }

/* --- Bradycat Miau --- */
.brady-popup {
    position: fixed;
    bottom: -150px;
    right: 50px;
    z-index: 2000000;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brady-popup.show {
    bottom: 20px;
}

.miau-bubble {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    margin-bottom: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-weight: bold;
    color: var(--primary-green);
    position: relative;
}

.miau-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.brady-icon {
    font-size: 4rem;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
    }
}

/* --- Instagram --- */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.insta-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.insta-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.2);
}

.insta-consent {
    background: rgba(255, 255, 255, 0.9);
    border: 2px dashed var(--soft-green);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    margin: 2rem auto;
    backdrop-filter: blur(5px);
}

.consent-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(200%);
    width: 90%;
    max-width: 500px;
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 1000000;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--soft-green);
    visibility: hidden;
    opacity: 0;
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    visibility: visible;
    opacity: 1;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- Responsive Design --- */
@media screen and (max-width: 768px) {
    nav {
        padding: 0.8rem 5% !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }

    .logo {
        font-size: 1.3rem !important;
        white-space: nowrap;
    }

    .menu-toggle {
        display: block !important;
        font-size: 1.8rem !important;
        color: var(--primary-green);
        cursor: pointer;
    }

    .nav-links {
        display: none !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white) !important;
        padding: 1.5rem 0 !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
        z-index: 1000;
        border-bottom: 2px solid var(--soft-green);
    }

    .nav-links.active {
        display: flex !important;
    }

    nav ul li {
        margin: 0.8rem 0 !important;
        text-align: center;
        margin-left: 0 !important;
    }

    h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    header {
        height: auto !important;
        padding: 10rem 5% 5rem 5% !important;
    }

    section {
        padding: 4rem 5% !important;
    }

    .project-grid {
        grid-template-columns: 1fr !important;
    }

    .btn {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
        margin: 0.5rem !important;
    }

    .hero {
        width: 100%;
    }
}

.menu-toggle {
    display: none;
}
