/* Globale Stile & moderne Schriftart */
:root {
    /* Dark Mode Farbpalette */
    --background-color: #121212;
    --card-background: #1e1e1e;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --subtle-text: #a0a0a0;
    --accent-color: #3b9dff;
    --accent-hover: #6bbaff;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --tag-bg: #2c3e50;
    --tag-color: #9cc4e4;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
}

/* Die "Visitenkarte" selbst */
.card {
    background-color: var(--card-background);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
    max-width: 800px;
    width: 100%;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

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

/* --- Profil-Header --- */
.profile {
    padding: 2.5rem;
    text-align: center;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--card-background);
    box-shadow: 0 4px 12px var(--shadow-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.profile h1 {
    margin: 0.5rem 0 0.25rem;
    font-size: 2.25rem;
    color: var(--heading-color);
    font-weight: 700;
}

.profile .subtitle {
    font-size: 1.1rem;
    color: var(--subtle-text);
    font-weight: 500;
    margin-bottom: 1rem;
}

.profile .bio {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* Social Media Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--subtle-text);
    font-size: 1.75rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Trennlinie */
hr {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    margin: 0;
}

/* --- Projekt-Sektion --- */
.projects {
    padding: 2.5rem;
}

.projects h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

/* Modernes Grid für die Projekte */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background-color: #252525;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.project-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1; /* Sorgt dafür, dass die Karte die gleiche Höhe hat */
    color: var(--subtle-text);
}

.tags-container {
    margin-top: auto; /* Platziert die Tags am unteren Rand */
}

.project-tag {
    display: inline-block;
    background-color: var(--tag-bg);
    color: var(--tag-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}

#loader {
    text-align: center;
    padding: 2rem;
    font-size: 1rem;
    color: var(--subtle-text);
}

/* Responsives Design für Handys */
@media (max-width: 600px) {
    body {
        padding: 0;
    }
    
    .card {
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    
    .profile, .projects {
        padding: 1.5rem;
    }

    .profile h1 {
        font-size: 1.75rem;
    }
}
