:root {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.65);
    --card-border: rgba(255, 255, 255, 0.8);
    --text-color: #1e293b;
    --text-muted: #64748b;
    --blob-1: #a5b4fc;
    --blob-2: #fbcfe8;
    --blob-3: #c4b5fd;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden; /* Wichtig für Background Blobs */
    position: relative;
}

/* --- Hintergrund Animation (Aurora) --- */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--blob-1);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--blob-2);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: var(--blob-3);
    animation-delay: -10s;
}

header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    width: 100%;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

/* --- Profil Sektion --- */
.profile-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: left;
}

.profile-container {
    position: relative;
    flex-shrink: 0;
}

/* Link Wrapper für Profilbild */
.profile-link {
    display: block;
    position: relative;
    text-decoration: none;
    cursor: pointer;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-bg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Hover Effekt für Profilbild */
.profile-link:hover .profile-img {
    transform: scale(1.02);
    border-color: #5865F2; /* Discord Farbe */
}

/* Das kleine Discord Logo Badge */
.discord-brand-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 32px;
    height: 32px;
    background-color: #5865F2; /* Discord Blurple */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-color);
    color: white;
    box-shadow: 0 4px 10px rgba(88, 101, 242, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.profile-link:hover .discord-brand-badge {
    transform: scale(1.2) rotate(-10deg);
}

/* Pulsierender Status Punkt */
.status-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background-color: #2ecc71; /* Grün für Verfügbar */
    border: 3px solid var(--bg-color);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Status: Beschäftigt (Rot) */
.status-badge.busy {
    background-color: #ef4444; /* Rot */
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Status: Abwesend (Mond wie bei Discord) */
.status-badge.idle {
    background-color: var(--bg-color); /* Hintergrund maskiert das Profilbild */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f1c40f'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E");
    background-size: 15px;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: none;
    animation: none;
    transform: scaleX(-1) rotate(-15deg); /* Gespiegelt und gedreht */
}

@keyframes pulse-yellow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(241, 196, 15, 0.7); }
    50% { transform: scale(1); box-shadow: 0 0 0 5px rgba(241, 196, 15, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(241, 196, 15, 0); }
}

/* Status: Offline (Grau) */
.status-badge.offline {
    background-color: #95a5a6;
    box-shadow: none;
    animation: none;
    border-color: var(--card-border);
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.social-links a {
    color: var(--text-muted);
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255,255,255,0.3);
}

.social-links a:hover {
    color: var(--primary);
    background: rgba(255,255,255,0.8);
    transform: translateY(-3px);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-color);
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1100px;
    position: relative;
}

.project-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px); /* Der Glass-Effekt */
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0; /* Für Animation */
    animation: slideUp 0.6s ease-out forwards;
}

.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.4s; }
.project-card:nth-child(3) { animation-delay: 0.6s; }
.project-card:nth-child(4) { animation-delay: 0.8s; }
.project-card:nth-child(5) { animation-delay: 1.0s; }

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px var(--primary-glow), 0 0 0 1px var(--primary);
    background: rgba(255, 255, 255, 0.8);
}

.card-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5); /* Transparenter Hintergrund im Icon */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.project-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-icon svg {
    color: var(--text-muted);
}

.card-content h2 {
    margin: 0 0 10px 0;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.card-content p {
    margin: 0 0 25px 0;
    line-height: 1.6;
    font-size: 1rem;
    color: var(--text-muted);
}

.btn-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
    margin-top: auto; /* Drückt den Link nach unten */
}

.project-card:hover .btn-link {
    gap: 12px;
}

.placeholder {
    cursor: default;
}

.placeholder .card-icon,
.placeholder .card-content {
    opacity: 0.6;
}

.placeholder:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: transparent;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 
    0% { transform: translate(0, 0) rotate(0deg); } 
    100% { transform: translate(30px, 50px) rotate(10deg); } 
}

/* Dark Mode Support (System-Einstellung) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0f172a;
        --card-bg: rgba(30, 41, 59, 0.6);
        --card-border: rgba(255, 255, 255, 0.1);
        --text-color: #f1f5f9;
        --text-muted: #94a3b8;
        --blob-1: #312e81;
        --blob-2: #4c1d95;
        --blob-3: #1e3a8a;
    }
    
    .project-card:hover {
        background: rgba(30, 41, 59, 0.8);
        box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--primary);
    }
}

/* Mobile Optimierungen */
@media (max-width: 600px) {
    body {
        padding: 40px 20px;
        align-items: stretch; /* Nutzt die volle Breite */
    }

    header {
        margin-bottom: 30px;
        text-align: left; /* Wirkt auf Mobile oft aufgeräumter */
    }

    h1 {
        font-size: 2rem;
    }

    .project-grid {
        gap: 20px;
    }

    .project-card {
        padding: 24px;
        /* Besseres Touch-Feedback */
        transition: transform 0.1s;
    }
    .project-card:active {
        transform: scale(0.98);
    }
}

/* --- EASTER EGG: PARTY MODE STYLES --- */
.party-mode {
    --bg-color: #050505;
    --text-color: #ffffff;
    --card-bg: rgba(20, 20, 20, 0.8);
    --card-border: rgba(255, 255, 255, 0.2);
}

.party-mode .blob {
    animation: partyBlobs 2s infinite alternate; /* Viel schneller */
    opacity: 0.8;
    filter: hue-rotate(0deg) blur(60px);
}

@keyframes partyBlobs {
    0% { filter: hue-rotate(0deg) blur(60px); transform: scale(1); }
    100% { filter: hue-rotate(360deg) blur(80px); transform: scale(1.2); }
}

.party-mode h1 {
    background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
    background-size: 400%;
    animation: rainbowText 3s linear infinite;
    -webkit-background-clip: text;
}

@keyframes rainbowText {
    0% { background-position: 0%; }
    100% { background-position: 400%; }
}

/* Footer */
footer {
    margin-top: auto;
    padding-top: 60px;
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Mobile Anpassung für Profil */
@media (max-width: 600px) {
    .profile-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .social-links {
        justify-content: center;
    }
}