/* --- style.css (FINAL FIXED VERSION) --- */

:root {
    --primary: #3b82f6;      /* Modernes Tech-Blau */
    --primary-hover: #2563eb;
    --bg: #0f172a;           /* Dunkler Hintergrund */
    --card-bg: #1e293b;      /* Boxen */
    --text: #f1f5f9;         /* Weißer Text */
    --text-muted: #94a3b8;   /* Grauer Text */
    --border: #334155;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
    padding-bottom: 60px; /* Platz für die Status-Leiste unten */
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* --- HEADER --- */
header {
    text-align: center;
    padding: 60px 20px 40px;
}

.header-container {
    position: relative;
}

/* --- LOGO & BRANDING DESIGN (Desktop) --- */

.branding-box {
    display: flex;             
    align-items: center;       
    justify-content: flex-start; /* Alles nach LINKS */
    gap: 25px;                 
    margin-bottom: 40px;       
    text-align: left;          
    
    /* HIER PASSIERT DIE VERSCHIEBUNG NACH LINKS: */
    margin-left: -60px;        
}

.main-logo {
    /* HIER PASSIERT DIE VERGRÖSSERUNG: */
    max-height: 160px;       /* 160px statt 120px */
    
    width: auto;             /* Wichtig: auto lassen, damit es nicht breitgezogen wird */
    max-width: 100%;         
    object-fit: contain;     
    
    /* Da dein PNG jetzt passt, brauchen wir keinen Blend-Mode mehr */
    /* mix-blend-mode: screen; */ 
}

/* Der Text-Block daneben */
.title-text h1 {
    font-size: 3.8rem;
    margin: 0;
    line-height: 1.1;
    color: #f1f5f9;
    text-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
    letter-spacing: -1px;
    font-weight: 800;
}

.title-text .subtitle {
    font-size: 1.2rem;
    margin: 10px 0 0 0;
    color: var(--text-muted);
}


/* --- BUTTONS --- */
.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center; 
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: var(--text);
    border: 2px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

.btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.45);
    transform: translateY(-2px);
}

.btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Kleiner Button für Projekte */
.btn-small {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 15px;
    transition: all 0.2s;
    font-weight: 600;
}
.btn-small:hover {
    background: var(--primary);
    color: white;
}

/* --- GRID LAYOUT (Karten) --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.2s;
    position: relative;
}
.card:hover { transform: translateY(-5px); border-color: var(--primary); }

.card h3 {
    color: var(--primary);
    margin-top: 10px;
    font-size: 1.4rem;
}

/* --- TECH STACK SECTION --- */
.tech-section {
    margin-top: 80px;
    text-align: center;
}

.code-comment {
    color: #60a5fa; 
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    margin-bottom: 20px;
    display: block;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.tech-badge {
    background-color: rgba(30, 41, 59, 0.8);
    border: 1px solid #334155;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    cursor: default;
}
.tech-badge i { color: var(--primary); }

.tech-badge:hover {
    border-color: var(--primary);
    background-color: rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
    color: white;
}
.tech-badge:hover i { color: white; }


/* --- FOOTER --- */
footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 60px;
}

.impressum-box {
    background-color: rgba(255,255,255,0.03);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.impressum-box h4 { color: var(--text); margin-top: 0; }

/* --- STATUS LEISTE (Unten fixiert) --- */
.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--primary);
    color: var(--text);
    text-align: center;
    padding: 10px 0;
    z-index: 2000;
    font-size: 0.9rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}


/* --- MODALS / POPUPS --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1e1e1e;
    margin: 10% auto; 
    border: 1px solid #444;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: #252526;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}
.modal-header h3 { margin: 0; color: white; font-size: 1.1rem; }

.close { color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; }
.close:hover { color: white; }

.modal-body { padding: 20px; }

pre {
    background: #000;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    border: 1px solid #333;
}
code {
    font-family: 'Consolas', 'Courier New', monospace;
    color: #9cdcfe;
    font-size: 0.9rem;
}
.keyword { color: #569cd6; }
.string { color: #ce9178; }
.comment { color: #6a9955; }


/* --- RESPONSIVE / HANDY ANSICHT --- */
@media (max-width: 650px) {
    /* Mobil: Alles zentrieren und untereinander */
    .branding-box {
        flex-direction: column; /* Untereinander */
        align-items: center;    /* Mittig */
        justify-content: center;
        text-align: center;
        margin-left: 0;         /* WICHTIG: Auf dem Handy NICHT verschieben */
    }

    .main-logo {
        max-height: 100px;     /* Auf dem Handy etwas kleiner */
        width: auto;           /* Seitenverhältnis beibehalten */
    }

    .title-text h1 {
        font-size: 2.5rem;
    }
    
    .btn { 
        width: 100%;
        justify-content: center; 
    }
}