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

:root {
    --primary-color: #1a3c2e;
    --accent-brass: #b8935e;
    --text-dark: #1a3c2e;
    --text-medium: #4a5f54;
    --text-light: #7a8c84;
    --bg-warm: #f5f2ed;
    --bg-light: #faf8f5;
    --border-color: #e8e4dd;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Language Switcher */
.language-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background: var(--white);
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-switch button {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-switch button:hover {
    background: var(--bg-light);
}

.language-switch button.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 40px 100px;
}

/* Content Visibility */
.content {
    display: none;
}

.content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header */
header {
    text-align: center;
    margin-bottom: 80px;
    padding-bottom: 60px;
    border-bottom: 3px solid var(--accent-brass);
}

header h1 {
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    letter-spacing: -0.03em;
}

.tagline {
    font-size: 1.375rem;
    color: var(--text-medium);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Sections */
section {
    margin-bottom: 70px;
}

/* Card Sections - visual blocks */
.card-section {
    background: var(--white);
    padding: 45px 50px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(26, 60, 46, 0.08);
    border: 1px solid var(--border-color);
}

.card-section-highlight {
    background: var(--white);
    padding: 50px 55px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(26, 60, 46, 0.12);
    border: 2px solid var(--accent-brass);
}

section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    letter-spacing: -0.01em;
}

section p {
    font-size: 1.125rem;
    color: var(--text-medium);
    line-height: 1.9;
    margin-bottom: 20px;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.feature {
    padding: 30px;
    background: var(--bg-warm);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 60, 46, 0.1);
    border-color: var(--accent-brass);
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Contact Section */
.contact a {
    color: var(--accent-brass);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.25rem;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.contact a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Footer */
footer {
    background: var(--bg-warm);
    padding: 50px 20px;
    margin-top: 100px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.saarland-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--white);
    border: 1px solid var(--accent-brass);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: fit-content;
}

.saarland-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 147, 94, 0.2);
}

.badge-icon {
    font-size: 1rem;
    line-height: 1;
}

.badge-icon-img {
    width: 1em;
    height: 1em;
    object-fit: contain;
    vertical-align: middle;
}

.badge-text {
    line-height: 1;
}

.footer-content p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent-brass);
}

/* Legal Pages Specific Styles */
.legal-page {
    max-width: 850px;
    margin: 0 auto;
    padding: 60px 40px;
}

.legal-page h1 {
    font-size: 2.75rem;
    margin-bottom: 40px;
    color: var(--text-dark);
    font-weight: 600;
}

.legal-page h2 {
    font-size: 1.625rem;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 600;
}

.legal-page h3 {
    font-size: 1.25rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

.legal-page p, .legal-page li {
    color: var(--text-medium);
    line-height: 1.9;
    margin-bottom: 18px;
}

.legal-page ul {
    margin-left: 20px;
    margin-bottom: 25px;
}

.legal-page a {
    color: var(--accent-brass);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.legal-page a:hover {
    border-bottom: 1px solid var(--accent-brass);
}

.back-link {
    display: inline-block;
    margin-bottom: 40px;
    color: var(--accent-brass);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 40px 15px 60px;
    }
    
    .card-section {
        padding: 25px 20px;
        margin-bottom: 40px;
    }
    
    .card-section-highlight {
        padding: 30px 20px;
    }
    
    header {
        margin-bottom: 50px;
        padding-bottom: 40px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 1.5rem;
        margin-bottom: 18px;
    }
    
    section p {
        font-size: 1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
    }
    
    .feature {
        padding: 20px;
    }
    
    .feature h3 {
        font-size: 1.125rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .footer-left {
        align-items: center;
    }
    
    .footer-nav {
        gap: 20px;
    }
    
    .saarland-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .badge-icon-img {
        width: 1em;
        height: 1em;
    }
    
    .badge-icon {
        font-size: 0.9rem;
    }
    
    .language-switch {
        top: 10px;
        right: 10px;
    }
    
    .language-switch button {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .legal-page {
        padding: 30px 15px;
    }
    
    .legal-page h1 {
        font-size: 2rem;
    }
    
    .legal-page h2 {
        font-size: 1.375rem;
    }
}
