/*
Theme Name: Frank Hermes - The Unicorn
Author: Gemini
Description: Minimalistisches Theme für einen Software-Architekten & Business-Übersetzer.
Version: 1.2
*/

:root {
    --bg-dark: #1e1e24; /* Tech side */
    --bg-light: #ffffff; /* Business side */
    --accent: #6c5ce7; /* The "Unicorn" touch - modern purple */
    --text-main: #2d3436;
    --text-light: #dfe6e9;
    --font-main: 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-code: 'Consolas', 'Monaco', monospace;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
}

/* --- Hero Section (Split Screen) --- */
.hero {
    display: flex;
    flex-wrap: wrap;
    min-height: 90vh;
}

.hero-tech {
    flex: 1;
    background-color: var(--bg-dark);
    color: var(--font-code);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: var(--font-code);
}

.hero-biz {
    flex: 1;
    background-color: var(--bg-light);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin: 0 0 1rem 0;
    line-height: 1.1;
}

/* Fix für dunklen Hintergrund: Macht Überschriften weiß */
.hero-tech h1, 
.hero-tech h2, 
.hero-tech h3 {
    color: #ffffff !important;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    font-weight: bold;
}

.hero-tech p { color: var(--text-light); }

/* --- Profilbild (Querformat-Optimierung) --- */
.profile-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 12px;
    border: 4px solid var(--accent);
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    display: block;
}

/* --- Sections --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

h2 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
    margin-bottom: 2rem;
}

/* --- Projects Grid --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    border: 1px solid #eee;
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.2s;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.project-card:hover {
    transform: translateY(-5px);
    border-top: 4px solid var(--accent);
}

.project-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    font-family: var(--font-code);
}

/* --- Kompetenzen (Grid) --- */
.competence-grid {
    column-count: 2;
    column-gap: 4rem;
}

/* --- Footer --- */
footer {
    background: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
    padding: 3rem;
    margin-top: 4rem;
}

footer a { color: var(--accent); text-decoration: none; }

/* =========================================
   MOBILE ANPASSUNGEN (Handy)
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. Layout allgemein */
    .hero { 
        flex-direction: column; 
    }
    .hero-tech, .hero-biz { 
        padding: 2rem 1.5rem; /* Mehr Platz an den Rändern */
    }

    /* 2. Überschriften zähmen */
    h1 { 
        font-size: 2.2rem; 
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.7rem;    /* HIER war das Problem: Kleiner machen */
        line-height: 1.3;
        word-wrap: break-word; /* Lange Wörter dürfen umbrechen */
    }

    /* 3. Profilbild */
    .profile-img {
        width: 100%;
        height: auto;
        margin: 0 0 2rem 0;
    }

    /* 4. WICHTIG: Kompetenz-Listen einspaltig */
    /* Das repariert die gequetschte Ansicht in deinem Screenshot */
    .competence-grid {
        column-count: 1;
        width: 100%;
    }
    
    /* 5. Schrift im dunklen Bereich lesbar machen */
    .hero-tech h1, 
    .hero-tech h2, 
    .hero-tech h3 {
        color: #ffffff !important;
    }
}