/* --- 1. GLOBALE STYLES --- */
:root {
    --bg-main: #141417;
    --bg-card: #20202a;
    --accent: #FFC107;
    --text-white: #FFFFFF;
    --text-muted: #8c8c8e;
    --border-light: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-muted);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease-in-out; }
ul { list-style: none; }
.mt-50 { margin-top: 50px; }
.mt-20 { margin-top: 20px; }

/* --- 2. LAYOUT (3-Spalten) --- */
.sidebar-right {
    width: 80px;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-light);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
}

.sidebar-left {
    width: 290px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    background: var(--bg-card);
    border-right: 1px solid var(--border-light);
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.main-content {
    margin-left: 290px;
    margin-right: 80px;
    padding: 30px;
    min-height: 100vh;
}

/* --- 3. RECHTE SIDEBAR (Nav) --- */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.nav-menu a {
    font-size: 16px;
    color: var(--text-muted);
}
.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent);
}
.menu-btn, .theme-toggle {
    cursor: pointer;
    font-size: 18px;
}
.theme-toggle:hover { color: var(--accent); }

/* --- 4. LINKE SIDEBAR (Profil) --- */
.profile-header { padding: 30px; text-align: center; }
.avatar-container { position: relative; display: inline-block; }
.avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}
.name { color: var(--text-white); font-size: 16px; margin-top: 15px; }
.role { font-size: 11px; font-style: italic; }

.profile-content {
    flex-grow: 1; overflow-y: auto; padding: 0 30px;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}
.profile-content::-webkit-scrollbar { display: none; } /* Hide scrollbar Chrome */

.info-item { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; }
.info-item span:last-child { color: var(--text-white); }
.info-item .highlight { color: var(--accent) !important; }

.divider { height: 1px; background: var(--border-light); margin: 20px 0; }

.languages { display: flex; justify-content: space-around; text-align: center; }
.lang-circle { position: relative; width: 60px; }
.circular-chart { display: block; margin: 0 auto; max-width: 80%; max-height: 250px; }
.circle-bg { fill: none; stroke: var(--bg-main); stroke-width: 3.8; }
.circle { fill: none; stroke-width: 2.8; stroke-linecap: round; stroke: var(--accent); }
.percentage { fill: var(--text-muted); font-family: 'Poppins', sans-serif; font-size: 10px; text-anchor: middle; }
.lang-name { font-size: 12px; display: block; margin-top: 5px; }

.skill-item { margin-bottom: 15px; }
.skill-title { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; color: var(--text-white); }
.skill-bar { height: 4px; background: var(--bg-main); border-radius: 2px; }
.skill-fill { height: 100%; background: var(--accent); border-radius: 2px; }

.checklist li { font-size: 12px; margin-bottom: 8px; }
.checklist i { color: var(--accent); margin-right: 8px; }

.profile-footer {
    padding: 20px 30px; border-top: 1px solid var(--border-light);
    display: flex; flex-direction: column; gap: 15px; text-align: center;
}
.download-cv { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.download-cv:hover { color: var(--text-white); }
.social-icons { display: flex; justify-content: center; gap: 15px;  }
.social-icons a { color: var(--text-muted); font-size: 16px; }
.social-icons a:hover { color: var(--accent); }

/* --- 5. HAUPTINHALT & SECTIONS --- */
.section-title { color: var(--text-white); font-size: 18px; margin-bottom: 20px; }
.card { background: var(--bg-card); border-radius: 6px; padding: 30px; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* Hero Banner */
.hero-banner {
    background: var(--bg-card); border-radius: 6px; padding: 0px 40px; margin-bottom: 30px;
    display: flex; justify-content: space-between; align-items: center; position: relative;
}
.hero-text h1 { color: var(--text-white); font-size: 40px; line-height: 1.2; margin-bottom: 15px; }
.code-line { font-family: monospace; color: var(--text-white); margin-bottom: 30px; font-size: 14px; }
#typewriter { color: var(--accent); }
.btn-primary {
    display: inline-block; padding: 12px 28px; background: var(--accent);
    color: var(--bg-card); font-weight: 600; border-radius: 4px; border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,193,7,0.3); }

/* Stats */
.stats-row { display: flex; justify-content: space-between; margin-bottom: 40px; }
.stat-item { display: flex; align-items: center; gap: 10px; }
.stat-num { color: var(--accent); font-size: 24px; font-weight: 700; }
.stat-text { color: var(--text-white); font-size: 12px; line-height: 1.2; }

/* Services */
.service-card { transition: all 0.3s ease-in-out; }
.service-card:hover { transform: translateY(-5px); }
.service-card i { color: var(--accent); font-size: 24px; }
.service-card h4 { color: var(--text-white); font-size: 14px; margin: 15px 0 10px 0; }
.service-card p { font-size: 12px; margin-bottom: 20px; }
.card-link { color: var(--accent); font-size: 12px; font-weight: 600; }

/* History Timeline */
.timeline-column { position: relative; }
.timeline-title { color: var(--text-white); margin-bottom: 20px; padding-left: 20px; }
.timeline-item { position: relative; padding-left: 20px; margin-bottom: 30px; border-left: 1px solid var(--border-light); padding-bottom: 10px; }
.timeline-marker {
    position: absolute; left: -5.5px; top: 0; width: 10px; height: 10px;
    background: var(--accent); border-radius: 50%;
}
.timeline-year {
    display: inline-block; background: var(--bg-main); color: var(--accent);
    padding: 2px 8px; font-size: 10px; border-radius: 10px; margin-bottom: 10px; border: 1px solid var(--border-light);
}
.timeline-item h5 { color: var(--text-white); font-size: 14px; margin-bottom: 5px; }
.timeline-item p { font-size: 12px; }

/* Projects */
.filter-bar { display: flex; gap: 15px; margin-bottom: 20px; }
.filter-btn {
    background: transparent; border: 1px solid var(--border-light); color: var(--text-white);
    padding: 6px 15px; border-radius: 20px; font-size: 12px; cursor: pointer; transition: all 0.3s;
}
.filter-btn.active, .filter-btn:hover { background: var(--accent); color: var(--bg-card); border-color: var(--accent); font-weight: 600; }

/* 1. Die Kachel bekommt eine feste Größe */
.project-card {
    position: relative;
    width: 100%;       /* Immer die volle Spaltenbreite */
    height: 300px;     /* ALLE Kacheln werden exakt 200px hoch */
    border-radius: 6px;
    overflow: hidden;  /* Schneidet alles ab, was über 200px hinausgeht */
    cursor: pointer;
}

/* 2. Das Bild darin zwingen wir dazu, den Raum auszufüllen */
.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Schneidet das Bild mittig zu, ohne es zu verzerren */
    object-position: center; /* Fokus liegt immer auf der Bildmitte */
    transition: transform 0.5s ease;
}
.project-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(32, 32, 42, 0.9); display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; transition: all 0.3s ease-in-out;
}
.projects-grid {
    display: grid;
    /* 1. Wir sagen ihm: Mach 3 Spalten, wenn Platz da ist. 
       Wenn der Platz nicht reicht, springt es automatisch in die nächste Zeile. */
    grid-template-columns: repeat(3, 1fr);
    
    /* 2. Der Abstand zwischen den Kacheln (horizontal und vertikal) */
    gap: 20px; 
    
    /* 3. Das ist wichtig, damit die Seite nach unten wachsen kann */
    margin-bottom: 50px; 
    max-width: 1000px; /* Optional: Breite begrenzen */
}roject-card:hover img { transform: scale(1.05); }
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay h5 { color: var(--text-white); margin-bottom: 10px; transform: translateY(15px); transition: all 0.3s; }
.project-overlay a i { color: var(--accent); font-size: 20px; }
.project-card:hover .project-overlay h5 { transform: translateY(0); }

/* Contact Form */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.contact-form input, .contact-form textarea {
    width: 100%; background: var(--bg-main); border: none; border-bottom: 2px solid var(--border-light);
    color: var(--text-white); padding: 15px; font-family: 'Poppins', sans-serif; font-size: 13px; outline: none; transition: all 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { border-bottom: 2px solid var(--accent); }

/* --- 6. RESPONSIVE (Mobile) --- */
@media (max-width: 992px) {
    .sidebar-left, .sidebar-right { display: none; /* Hier würde das Hamburger-Menü greifen */ }
    .main-content { margin: 0; padding: 20px; }
    .grid-3, .grid-2, .form-row { grid-template-columns: 1fr; }
    .hero-banner { flex-direction: column; text-align: center; }
    .hero-image { display: none; } /* Versteckt das Bild auf Handy für Platz */
    .stats-row { flex-wrap: wrap; gap: 20px; }
}
.profile-image {
    padding-bottom: 0%;
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    max-height: 400px;     
    object-fit: contain;
    
}