html {
    scroll-behavior: smooth;
}

a:link {
   
    text-decoration: none;
}

.section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}


:root {
    --bg-light: #f4f4f4;
    --bg-dark: #1f1f1f;
    --text-light: #fff;
    --text-dark: #333;
    --accent: #3498db;
    --transition: 0.3s ease;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition);
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.header {
    background-color: var(--accent);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    position: relative;
    padding: 0.3rem 0.5rem;

    transition: color var(--transition), border-bottom var(--transition);
    box-sizing: border-box;
    display: inline-block;
    border-bottom: 2px solid transparent; /* Reserve space */
}

.logo:hover {
    border-bottom: 2px solid white;
}
.logo:hover 
.nav-links {
    display: flex;
    gap: 1rem;
    
}

.nav-link {
    text-decoration: none;
    color: white;
    position: relative;
    padding: 0.3rem 0.5rem;
    transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
        font-weight: bold;
    border-bottom: 2px solid white;
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .nav-link.active {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }
}

.btn {
    background-color: white;
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color var(--transition);
}
/* Filter für Projekte */
.project-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #eee;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.filter-btn:hover {
    background: #ddd;
}

.filter-btn.active {
    background: var(--accent);
    color: white;
}

/* Dark-Mode-Anpassung */
body.dark-mode .filter-btn {
    background: #333;
    color: white;
}

body.dark-mode .filter-btn:hover {
    background: #444;
}
/* Filter fertig */

.btn:hover {
    background-color: #e0e0e0;
}

.main-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 80%;
    margin: 0 auto;
}
.main-container {
    width: 70%;
    max-width: 10000px;
    margin: 0 auto;
}

.section {
    max-width: 100%;
    margin: auto;
    padding: 0 20px
}
.links:link {
    text-decoration: none;
}

.links {
   display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem; 
}
.github-links {
    background: #598392;
  color: white;
}
.demo-links {
    background-color: #124559;
    color: white
}
.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.info-grid > div {
    flex: 1 1 45%;
    background: #fff;
    padding: 0.8rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

body.dark-mode .info-grid > div {
    background: #2a2a2a;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.footer {
    text-align: center;
    padding: 1rem;
    background-color: #ddd;
    margin-top: 3rem;
}

body.dark-mode .footer {
    background-color: #333;
}
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    width: 4px;
    height: 100%;
    background-color: var(--accent);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 7px;
    width: 15px;
    height: 15px;
    background-color: var(--accent);
    border-radius: 50%;
}

.timeline-content {
    background-color: #fff;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

body.dark-mode .timeline-content {
    background-color: #2a2a2a;
}

.timeline-content:hover {
    transform: translateX(5px);
}
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.skill label {
     display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}
.skill-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.skill-bar {
    background-color: #ccc;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.3rem;
}

.skill-level {
    background-color: var(--accent);
    height: 100%;
    width: 0;
    transition: width 1s ease-in-out;
}

body.dark-mode .skill-bar {
    background-color: #444;
}

.skills-chart-container {
    margin-top: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Für besseres Mobile Erlebnis */

@media (max-width: 768px) {
    .pdf-container iframe {
        height: 500px;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }
}


