
body {
    font-family: "TASA Explorer", sans-serif;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    padding-top: 60px; /* Space for fixed header */
    background-color: #ffffff;
    color: #000000;
    font-size: 14px;
}

/* Navigation - Dark, transparent, matte, natural green */
.top-nav {
    background-color: rgba(34, 79, 44, 0.85); /* Dark natural green with transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(34, 79, 44, 0.6);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.top-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34, 79, 44, 0.1) 0%, rgba(46, 92, 57, 0.1) 100%);
    pointer-events: none;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.nav-menu {
    display: flex;
    flex: 1;
}

.nav-item {
    flex: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.nav-item:last-child {
    border-right: none;
}

.nav-item a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-item a:hover {
    background-color: rgba(255, 255, 255, 0.699);
    color: #e8f5e8;
}

.nav-item.active a {
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Main content */
.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    border: 2px solid #000000;
    padding: 20px;
    margin-bottom: 30px;
    background-color: #ffffff;
}

.header h1 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: bold;
    color: #000000;
}

.header .subtitle {
    font-size: 16px;
    margin-bottom: 15px;
    color: #000000;
}

.contact-info {
    display: table;
    width: 100%;
}

.contact-row {
    display: table-row;
}

.contact-label {
    display: table-cell;
    font-weight: bold;
    padding-right: 15px;
    width: 80px;
    vertical-align: top;
}

.contact-value {
    display: table-cell;
    vertical-align: top;
}

/* Sections */
.section {
    border: 1px solid #cccccc;
    margin: 20px 0;
    background-color: #ffffff;
}

.section h2 {
    background-color: #f5f5f5;
    margin: 0;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    border-bottom: 1px solid #cccccc;
}

.section-content {
    padding: 20px;
}

/* CV Table */
.cv-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.cv-table td {
    border: 1px solid #cccccc;
    padding: 12px;
    vertical-align: top;
}

.cv-table .category-col {
    background-color: #f5f5f5;
    font-weight: bold;
    width: 30%;
}

/* Tables (for compatibility) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}

table th {
    background: #f3f3f3;
    font-weight: bold;
}

table tr:nth-child(even) {
    background: #fafafa;
}

table tr:hover {
    background: #fcfcfc;
}

/* Project styles */
.project {
    border: 1px solid #cccccc;
    margin: 20px 0;
    background-color: #ffffff;
}

.project h3 {
    background-color: #f5f5f5;
    margin: 0;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    border-bottom: 1px solid #cccccc;
}

.project-content {
    padding: 20px;
}

.project-meta {
    background-color: #f9f9f9;
    padding: 10px 20px;
    border-top: 1px solid #cccccc;
    font-size: 12px;
    color: #666666;
}

.project-tags {
    margin-top: 10px;
}

.tag {
    display: inline-block;
    background-color: #e0e0e0;
    color: #333333;
    padding: 4px 8px;
    margin: 2px;
    font-size: 11px;
    border-radius: 3px;
}

/* Contact form styles */
.contact-form {
    max-width: 600px;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #000000;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    font-family: "TASA Explorer", sans-serif;
    font-size: 14px;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background-color: #000000;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-family: "TASA Explorer", sans-serif;
}

.submit-btn:hover {
    background-color: #333333;
}

/* Paragraph rows (for content without tables) */
.section-content p {
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
    margin: 0;
}

.section-content p:last-child {
    border-bottom: none;
}

/* Footer */
.footer-links {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid #cccccc;
    font-size: 12px;
    color: #666666;
}

.footer-links a {
    color: #000000;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Language Toggle Button */
.lang-toggle {
    display: flex;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 3px;
    margin-left: auto;
    margin-right: 15px;
    align-self: center;
}

.lang-btn {
    padding: 5px 12px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-family: "TASA Explorer", sans-serif;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 13px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.lang-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}
[data-lang-en] {
    display: none;
}

[data-lang-de] {
    display: inline;
}

html[lang="en"] [data-lang-en] {
    display: inline;
}

html[lang="en"] [data-lang-de] {
    display: none;
}

/* For block elements */
.lang-block[data-lang-en] {
    display: none;
}

.lang-block[data-lang-de] {
    display: block;
}

html[lang="en"] .lang-block[data-lang-en] {
    display: block;
}

html[lang="en"] .lang-block[data-lang-de] {
    display: none;
}

/* For table rows */
tr[data-lang-en] {
    display: none;
}

tr[data-lang-de] {
    display: table-row;
}

html[lang="en"] tr[data-lang-en] {
    display: table-row;
}

html[lang="en"] tr[data-lang-de] {
    display: none;
}

/* For list items */
li[data-lang-en] {
    display: none;
}

li[data-lang-de] {
    display: list-item;
}

html[lang="en"] li[data-lang-en] {
    display: list-item;
}

html[lang="en"] li[data-lang-de] {
    display: none;
}

@media (max-width: 768px) {
    .lang-toggle {
        margin-right: 10px;
        padding: 2px;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .main-container {
        padding: 10px;
    }
    
    .header {
        padding: 15px;
    }
    
    .section-content {
        padding: 15px;
    }
    
    .cv-table {
        font-size: 12px;
    }
    
    .cv-table .category-col {
        width: 35%;
    }
    
    .nav-item a {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    /* Projects table responsive */
    .projects-table {
        font-size: 12px;
    }
    
    .projects-table th,
    .projects-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 20px;
    }
    
    .header .subtitle {
        font-size: 14px;
    }
    
    .contact-info {
        display: block;
    }
    
    .contact-row {
        display: block;
        margin-bottom: 8px;
    }
    
    .contact-label {
        display: inline;
        width: auto;
    }
    
    .contact-value {
        display: inline;
    }
    
    .cv-table {
        font-size: 11px;
    }
    
    .cv-table td {
        padding: 8px;
    }
    
    .nav-item a {
        padding: 8px 5px;
        font-size: 12px;
    }
    
    /* Projects table mobile optimization */
    .projects-table {
        border: none;
        font-size: 11px;
    }
    
    .projects-table thead {
        display: none;
    }
    
    .projects-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #cccccc;
        padding: 10px;
        background-color: #ffffff;
        border-radius: 5px;
    }
    
    .projects-table td {
        display: block;
        text-align: left;
        padding: 5px 0;
        border: none;
        border-bottom: 1px solid #eeeeee;
    }
    
    .projects-table td:last-child {
        border-bottom: none;
    }
    
    .projects-table td:before {
        content: attr(data-label);
        font-weight: bold;
        display: inline-block;
        width: 100px;
        color: #666666;
        margin-right: 10px;
    }
}
