/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a; /* Improved contrast for better readability */
    background-color: #ffffff;
}

/* Skip Links for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2563eb;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
}

.nav-logo:hover {
    color: #2563eb;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #4b5563; /* Improved contrast */
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: #2563eb;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle i {
    font-size: 1.5rem;
    color: #1f2937;
    transition: transform 0.3s ease;
}

.nav-toggle.active i {
    transform: rotate(90deg);
}

/* Hero Section */
.hero {
    padding: 100px 0 40px;
    background: #ffffff;
}

.hero-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-image {
    text-align: center;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 100%;
    object-fit: fill;
    border: 2px solid #e5e7eb;
}

.hero-text h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.hero-text h2 {
    font-size: 1.1rem;
    color: #374151; /* Improved contrast */
    font-weight: 400;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 0.95rem;
    color: #4b5563; /* Improved contrast */
    line-height: 1.5;
}

/* Section Headers */
section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.4rem;
}

/* Simple Tables */
.simple-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 2rem 0;
    background: white;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.simple-table th {
    background-color: #f8fafc;
    color: #374151;
    padding: 10px 12px;
    text-align: left;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    font-size: 0.85rem;
}

.simple-table td {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    vertical-align: top;
    color: #374151;
}

.simple-table tr:nth-child(even) {
    background-color: #fafbfc;
}

.simple-table tr:hover {
    background-color: #f3f4f6;
}

.simple-table tbody tr:last-child td {
    border-bottom: none;
}

.simple-table td:first-child {
    font-weight: 500;
}

.simple-table i {
    margin-right: 6px;
    color: #6b7280; /* Kept as is for visual hierarchy, but ensure overall contrast */
    font-size: 0.9rem;
}

.simple-table a {
    color: #2563eb;
    text-decoration: none;
}

.simple-table a:hover {
    text-decoration: underline;
}

.private {
    color: #6b7280; /* Improved contrast for secondary text */
    font-style: italic;
}



/* Footer */
.footer {
    background-color: #f8fafc;
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #4b5563; /* Improved contrast for footer text */
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #4b5563; /* Improved contrast */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2563eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .simple-table th:nth-child(3),
    .simple-table td:nth-child(3),
    .simple-table th:nth-child(4),
    .simple-table td:nth-child(4) {
        display: none;
    }

    section {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 20px 0;
    }

    section h2 {
        font-size: 1.3rem;
    }

    .hero {
        padding: 80px 0 30px;
    }

    .hero-text h1 {
        font-size: 1.6rem;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    .simple-table th:nth-child(3),
    .simple-table td:nth-child(3),
    .simple-table th:nth-child(4),
    .simple-table td:nth-child(4) {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Enhanced focus for table elements */
.simple-table th:focus,
.simple-table td:focus,
.simple-table a:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Progress Bars */
.progress-container {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  height: 20px;
}

.progress-bar {
  height: 100%;
  background-color: #2563eb;
  border-radius: 10px 0 0 10px;
  transition: width 0.3s ease;
  width: 0%; /* Standard, wird überschrieben */
}

/* Skills Tables */
.skills-table {
  table-layout: fixed;
}

.skills-table th:nth-child(1), .skills-table td:nth-child(1) {
  width: 50%;
}

.skills-table th:nth-child(2), .skills-table td:nth-child(2) {
  width: 50%;
}
