/* === Additions/Modifications to previous style.css === */

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px; /* Space between flags */
    z-index: 10; /* Ensure it's above other content if needed */
}

.language-switcher .lang-flag {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    opacity: 0.6; /* Default opacity for flags */
    transition: opacity 0.3s ease, transform 0.2s ease;
    border-radius: 3px; /* Slightly rounded corners */
}
.language-switcher .lang-flag:hover {
    opacity: 1;
    transform: scale(1.1);
}
.language-switcher .lang-flag.active {
    opacity: 1; /* Full opacity for the active language */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* Highlight active flag */
}
.language-switcher .lang-flag svg {
    display: block; /* Prevents extra space below SVG */
    border: 1px solid #ccc; /* Subtle border around flags */
}

/* Language Visibility Rules */
/* Hide Dutch text when English is active */
.lang-en [data-lang="nl"] {
    display: none;
}
/* Hide English text when Dutch is active */
.lang-nl [data-lang="en"] {
    display: none;
}

/* Ensure the correct language text is displayed (inline works for most spans) */
.lang-en [data-lang="en"],
.lang-nl [data-lang="nl"] {
    display: inline; /* Or block/inline-block if needed for specific elements */
}

/* Adjust display for block elements if needed */
body.lang-en .status h2 [data-lang="en"],
body.lang-nl .status h2 [data-lang="nl"],
body.lang-en .teaser p [data-lang="en"],
body.lang-nl .teaser p [data-lang="nl"],
body.lang-en .details p [data-lang="en"],
body.lang-nl .details p [data-lang="nl"],
body.lang-en .signup p [data-lang="en"],
body.lang-nl .signup p [data-lang="nl"],
body.lang-en footer p [data-lang="en"],
body.lang-nl footer p [data-lang="nl"] {
    display: inline; /* Keep as inline spans */
}

/* Specific override for the placeholder (handled by JS) */
/* And submit button text */
body.lang-en #notify-form button [data-lang="en"],
body.lang-nl #notify-form button [data-lang="nl"] {
     display: inline;
}

/* Hide template messages */
.form-message-template {
    display: none; /* These are only used by JS */
}

/* === Keep all previous CSS rules from the earlier version below this line === */

/* Basic Reset & Defaults */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px; /* Base font size */
}

body {
    font-family: 'Open Sans', sans-serif; /* Fallback sans-serif font */
    line-height: 1.6;
    color: #333; /* Dark grey text */
    background-color: #f4f1eb; /* Warm off-white/beige background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px; /* Add padding for smaller screens */
    position: relative; /* Needed for absolute positioning of switcher */
}

/* Main container */
.container {
    background-color: #ffffff; /* White container background */
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 650px;
    width: 100%;
    text-align: center;
    margin-top: 40px; /* Add margin to prevent overlap with fixed switcher */
}

/* Header */
header h1 {
    font-family: 'Merriweather', serif; /* More distinct font for the brand */
    font-size: 3rem; /* Large headline */
    font-weight: 700;
    color: #8B4513; /* Saddle Brown color */
    margin-bottom: 15px;
}

/* Teaser Section */
.teaser p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px; /* Space after teaser */
}
/* No need for specific .lang-nl class styling here anymore */


/* Status Section */
.status h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #c06014; /* A warm orange/brown */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px; /* Space after status */
}
/* No need for specific .lang-nl class styling here anymore */


/* Details Section */
.details p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 30px; /* Space after details */
    max-width: 550px; /* Limit line length for readability */
    margin-left: auto;
    margin-right: auto;
}
/* No need for specific .lang-nl class styling here anymore */


/* Signup Section */
.signup {
    margin-top: 20px;
}

.signup .signup-intro {
    font-size: 1rem;
    color: #333;
    margin-bottom: 15px; /* Space before form */
}
/* No need for specific .lang-nl class styling here anymore */


/* Form Styles */
#notify-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Space between input and button */
    margin-bottom: 15px; /* Space before potential message */
}

#notify-form input[type="email"] {
    font-family: 'Open Sans', sans-serif;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    max-width: 400px; /* Limit input width */
}

#notify-form button[type="submit"] {
    font-family: 'Open Sans', sans-serif;
    background-color: #8B4513; /* Saddle Brown */
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#notify-form button[type="submit"]:hover {
    background-color: #A0522D; /* Sienna (darker brown) on hover */
}

/* Form feedback message */
.form-message {
    margin-top: 10px;
    font-size: 0.95rem;
    color: green; /* Success color */
    font-weight: 600;
    min-height: 1.5em; /* Reserve space */
}

/* Footer */
footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #777;
}

/* Screen Reader Only Class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* Basic Responsive Adjustments */
@media (max-width: 600px) {
    html {
        font-size: 14px; /* Slightly smaller base font on mobile */
    }

    .container {
        padding: 30px 20px;
        margin-top: 60px; /* More space needed below switcher */
    }

    header h1 {
        font-size: 2.5rem;
    }

    .status h2 {
        font-size: 1.5rem;
    }

    .language-switcher {
        top: 10px;
        right: 10px;
        gap: 5px;
    }
    .language-switcher .lang-flag svg {
        width: 24px; /* Slightly smaller flags */
        height: auto;
    }
}

