:root {
    --primary-color: #0a192f; /* Dunkelblau */
    --secondary-color: #64ffda; /* Mintgrün/Türkis Akzent */
    --light-slate: #ccd6f6;
    --slate: #8892b0;
    --dark-slate: #495670;
    --background-color: #0a192f;
    --card-background: #112240; /* Etwas helleres Blau für Karten */
    --text-color: var(--light-slate);
    --heading-font: 'Orbitron', sans-serif;
    --body-font: 'Roboto', sans-serif;
    --box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
    --repo-language-color: var(--secondary-color); /* Standardfarbe für Sprache */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    min-height: 70vh;
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.85)), url('https://source.unsplash.com/random/1600x900/?technology,code,abstract') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    color: #fff;
    position: relative;
}

.hero .logo {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero h1 {
    font-family: var(--heading-font);
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #fff;
}

.hero .subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin-bottom: 2rem;
    color: var(--light-slate);
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-size: 1.1rem;
}

.cta-button:hover {
    transform: translateY(-5px);
    background-color: #52d8bc;
}

/* Sections allgemein */
main section {
    padding: 60px 0;
}

main section h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

main section h2 .fas,
main section h2 .fab { /* Fab für GitHub Icon */
    margin-right: 15px;
    font-size: 2.2rem;
}

/* Ladeanzeige (falls noch manuell im HTML für PHP-Feed-Laden genutzt) */
.loading-message { /* Wird derzeit vom Loader-Container abgelöst, kann aber als Fallback bleiben */
    color: var(--slate);
    text-align: center;
    padding: 20px;
    font-style: italic;
    font-size: 1.1rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-content: center; /* NEU: Zentriert die Grid-Tracks, falls sie nicht die volle Breite ausfüllen */
}

.project-card {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    /* Animation wird weiter unten zusammen mit .blog-teaser definiert */
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px rgba(2,12,27,0.9);
}

.project-card h3 {
    font-family: var(--heading-font);
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.project-card p.project-description {
    font-size: 0.9rem;
    color: var(--slate);
    flex-grow: 1;
    margin-bottom: 15px;
    line-height: 1.5;
}

.project-meta {
    font-size: 0.85rem; 
    color: var(--dark-slate);
    margin-bottom: 20px; 
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px; 
}

.project-meta span {
    display: flex;
    align-items: center;
    color: var(--slate); 
}

.project-meta .fas,
.project-meta .fab {
    margin-right: 6px; 
    color: var(--secondary-color); 
    font-size: 0.9rem;
}

.language-color-indicator {
    width: 12px; 
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
    border: 1px solid var(--dark-slate);
}

.project-links a {
    color: var(--secondary-color);
    text-decoration: none;
    margin-right: 15px;
    font-weight: bold;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.project-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.project-links .fab,
.project-links .fas {
    margin-right: 5px;
}

/* Blog Section */
.blog-section {
    background-color: #0f1a30; /* Behält den Hintergrund für die gesamte Sektion */
}

/* Stile für dynamisch geladenen Blog-Feed (via PHP) */
/* Diese werden aktiv, wenn deine index.html <div id="blog-feed"> verwendet */
.blog-feed .blog-post {
    background-color: var(--card-background);
    padding: 25px; 
    margin-bottom: 25px; 
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Animation wird weiter unten zusammen mit .project-card, .blog-teaser definiert */
}
.blog-feed .blog-post:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px -15px rgba(2,12,27,0.8);
}

.blog-post h3 a { /* Gilt für Titel in dynamischen Posts */
    color: var(--secondary-color);
    text-decoration: none;
    font-family: var(--heading-font);
    font-size: 1.4rem;
}

.blog-post h3 a:hover {
    text-decoration: underline;
}

.blog-post .post-meta { /* Gilt für Metadaten in dynamischen Posts */
    font-size: 0.8rem;
    color: var(--slate);
    margin-bottom: 10px;
}

.blog-post .post-summary { /* Gilt für Zusammenfassung in dynamischen Posts */
    font-size: 0.95rem; 
    color: var(--light-slate);
    line-height: 1.6;
}

/* Stile für statischen Blog Teaser (aus deiner aktuellen index.html) */
.blog-section h2 .fas.fa-newspaper { /* Icon für die statische Sektion */
    margin-right: 15px;
    font-size: 2.2rem;
}

.blog-teaser { /* Container für den statischen Teaser-Text */
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    margin-bottom: 30px; 
    /* Animation wird weiter unten zusammen mit .project-card definiert */
}

.blog-teaser .blog-intro {
    font-size: 1.1rem;
    color: var(--light-slate);
    line-height: 1.7;
    margin-bottom: 25px;
}

.blog-teaser .blog-intro a {
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: none;
}

.blog-teaser .blog-intro a:hover {
    text-decoration: underline;
}

.featured-posts-placeholder {
    margin-top: 20px;
    color: var(--slate);
}

.featured-posts-placeholder p {
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--light-slate);
}

.featured-posts-placeholder ul {
    list-style: none;
    padding: 0;
}

.featured-posts-placeholder ul li {
    margin-bottom: 10px;
}

.featured-posts-placeholder ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    display: inline-block; 
}

.featured-posts-placeholder ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

.featured-posts-placeholder ul li .fas { 
    margin-right: 8px;
    color: var(--secondary-color);
}

.more-posts-button { /* Gilt für beide Blog-Varianten */
    display: block;
    width: fit-content;
    margin: 30px auto 0;
    background-color: transparent;
    color: var(--secondary-color);
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    border: 2px solid var(--secondary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.more-posts-button:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background-color: #081221;
    color: var(--slate);
    padding: 40px 0; /* Die Version mit mehr Padding beibehalten */
    text-align: center;
}

.site-footer p {
    margin-bottom: 15px; 
}

.footer-nav a {
    color: var(--slate);
    text-decoration: none;
    margin: 0 12px; 
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--secondary-color);
}

/* Responsive Design (konsolidiert) */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero .subtitle {
        font-size: 1.1rem;
    }
    main section h2 { /* Gilt für alle Sektionsüberschriften */
        font-size: 2rem;
    }
    main section h2 .fas,
    main section h2 .fab,
    .blog-section h2 .fas.fa-newspaper { /* Stellt sicher, dass alle relevanten Icons angepasst werden */
        font-size: 1.8rem;
    }
    .projects-grid {
        grid-template-columns: 1fr; /* Einspaltig für Projekte */
    }
    .blog-teaser { /* Anpassung für den statischen Teaser */
        padding: 20px;
    }
    .blog-teaser .blog-intro {
        font-size: 1rem;
    }
    .blog-feed .blog-post { /* Anpassung falls dynamischer Feed doch genutzt wird */
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero .logo {
        font-size: 2rem;
    }
    .footer-nav {
        display: flex;
        flex-direction: column;
    }
    .footer-nav a {
        margin-bottom: 10px;
        margin-left: 0;
        margin-right: 0;
    }
    .project-card, 
    .blog-teaser, /* Anpassung für den statischen Teaser */
    .blog-feed .blog-post { /* Anpassung falls dynamischer Feed doch genutzt wird */
        padding: 20px;
    }
    .project-meta {
        gap: 8px 15px;
    }
}

/* Animationen (einmal definiert) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Anwendung der Animation auf relevante Elemente */
.project-card, 
.blog-teaser,
.blog-feed .blog-post { /* .blog-post hier auch animieren, falls es doch genutzt wird */
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0; /* Startet unsichtbar, bis Animation greift */
}

/* Ladeanimation (einmal definiert) */
.loader-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: 200px; 
    width: 100%; 
    grid-column: 1 / -1; /* Wichtig: Stellt sicher, dass der Loader alle Grid-Spalten einnimmt */
    color: var(--slate);
}

.loader {
    border: 5px solid var(--dark-slate); 
    border-top: 5px solid var(--secondary-color); 
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loader-container p {
    font-style: italic;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}