:root {
    /* Color palette */
    --primary-color: #34495e;
    --secondary-color: #8d1111;
    --accent-color: #e9e9e9;
    --text-color: #333333;
    --bg-color: #f0f4f8;
    --container-bg: #ffffff;
}

html {
    scroll-behavior: smooth;
}

footer {
    background: var(--secondary-color);
    color: #ffffff !important;
    padding: 10px 0; /* Adjusted padding */
    text-align: center;
    position: fixed;
    width: 100%;
    bottom: 0;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100; /* Ensure footer is above other content */
}

header {
    background: linear-gradient(135deg, var(--primary-color), #2c3e50);
    color: #fff;
    padding: 15px 20px; /* Adjusted padding */
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative; /* Needed for z-index context if language selector stays fixed */
}

body {
    font-family: 'Roboto', Arial, sans-serif; /* Apply Roboto */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: var(--bg-color);
    padding-bottom: 80px; /* Add padding to prevent footer overlap */
}

.container {
    padding: 20px;
    max-width: 800px;
    margin: 20px auto; /* Add margin top/bottom */
    background: var(--container-bg); /* Give container a background */
    border-radius: 8px; /* Add rounded corners */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Add subtle shadow */
    border: 1px solid rgba(0,0,0,0.05);
}

h1 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 2.5em; /* Increase heading size */
}

h2 {
    color: #333;
    font-family: 'Playfair Display', serif;
    margin-top: 1.5em; /* Add space above h2 */
    margin-bottom: 0.5em;
    border-bottom: 1px solid #eee; /* Add subtle separator */
    padding-bottom: 5px;
}

ul {
    list-style-type: disc;
    padding-left: 25px; /* Adjust padding */
    margin-bottom: 1em; /* Add space below lists */
}

p {
    color: #444; /* Slightly darker text */
    line-height: 1.7; /* Increase line height */
    margin-bottom: 1em; /* Add space below paragraphs */
}

.language-selector {
    position: absolute; /* Change from fixed to absolute relative to header */
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    z-index: 1000;
}

/* Style for the label */
.language-selector label {
    color: #ffffff; /* White label */
    margin-right: 5px;
    font-size: 0.9em;
}

.language-selector select {
    padding: 8px 12px; /* Adjust padding */
    border: 1px solid #ccc; /* Slightly darker border */
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 0.9em;
}

.translation-status {
    position: fixed;
    top: 80px; /* Adjust position */
    right: 20px;
    padding: 10px 15px;
    background: #e0e0e0; /* Slightly darker background */
    border-radius: 5px;
    display: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1001; /* Ensure it's above other elements */
    font-size: 0.9em;
}

.tabs {
    display: flex;
    gap: 10px;
    margin: 30px auto 20px auto; /* Adjust margins */
    max-width: 800px;
    padding: 0 20px;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 2px solid #ddd; /* Add bottom border to tab container */
    padding-bottom: 10px;
}

.tab-trigger {
    padding: 12px 22px; /* Increase padding */
    border: none;
    background: var(--accent-color); /* Lighter background */
    color: var(--text-color); /* Darker text */
    cursor: pointer;
    border-radius: 6px 6px 0 0; /* Round top corners */
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
    font-size: 0.95em;
}

.tab-trigger:hover {
    background: var(--primary-color); /* Darker background on hover */
    color: #fff;
    transform: translateY(-2px);
}

.tab-trigger.active {
    background: var(--primary-color); /* Use theme color for active tab */
    color: white;
    border-bottom: 2px solid #34495e; /* Match bottom border */
}

.tab-content {
    display: none;
    /* Removed background/padding - now handled by .container */
}

.tab-content.active {
    display: block;
}

/* Ensure MailerLite form blends well */
.ml-embedded {
    margin-top: 30px;
    padding: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    .language-selector {
        position: static; /* Stack below title on small screens */
        transform: none;
        margin-top: 10px;
        text-align: center;
    }
    header {
        padding-bottom: 15px;
    }
    .tabs {
        gap: 5px;
    }
    .tab-trigger {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    body {
        padding-bottom: 100px; /* Adjust for potentially taller footer content */
    }
    footer {
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .tabs {
        justify-content: flex-start; /* Align tabs left */
    }
    .tab-trigger {
        width: calc(50% - 5px); /* Two tabs per row */
        text-align: center;
        margin-bottom: 5px;
        border-radius: 4px; /* Adjust radius for stacked view */
    }
     .tab-trigger.active {
         border-bottom: none; /* Remove bottom border in stacked view */
     }
}

button, select {
    font-family: inherit;
    outline: none;
}

/* Add subtle fade-in on content load */
.container, .tabs, footer {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}
@keyframes fadeIn {
    to { opacity: 1; }
}