/* Reset en basis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body en html standaard */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* BODY is flex container */
/* Op index.html (offerte) gebruiken we overflow hidden en centering */
/* Op info.html willen we scroll dus flex en overflow zijn iets anders */
body.index-body {
    overflow: hidden; /* voorkomt scroll */
    display: flex;
    align-items: center;  /* verticaal centreren */
    justify-content: center; /* horizontaal centreren */
    flex-direction: column;
    background: #f0f0f0;
    color: rgba(68, 68, 68, 0.7);
}

body.info-body {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f0f0f0;
    color: #333;
    opacity: 0; /* onzichtbaar vooraf */
    animation: fadeIn 2s ease forwards 1s;
}

/* Navigatiebalk (common voor beide pagina's) */
nav {
    background: rgba(215, 215, 215, 0.7);;
    padding: 0.7rem 1.5rem;
    display: flex;
    gap: 1.5rem;
    font-weight: bold;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1.5;
}

nav a:hover,
nav a:focus {
    text-decoration: underline;
}

nav a[aria-current="page"] {
    text-decoration: underline;
    cursor: default;
}

/* Video achtergrond (alleen index) */
#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
    transition: filter 0.3s ease;
}

/* Fallback afbeelding binnen video */
#bg-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Form container */
.form-container {
    background: rgba(215, 215, 215, 0.4);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%; /* responsief */
    opacity: 0;
    animation: fadeIn 2s ease forwards;
    animation-delay: 1s;
    z-index: 1;
}

/* Inputs en knoppen */
input, textarea, button {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}

input, textarea {
    background: rgba(215, 215, 215, 0.7);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    resize: vertical;
}

/* Knop */
button {
    background-color: rgba(215, 215, 215, 0.85);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover,
button:focus {
    background-color: rgba(233, 233, 233, 0.95);
    color:#333;
}

/* Tekenteller */
#charCount {
    font-size: 12px;
    color: #5f5f5f;
    text-align: right;
    margin-top: -5px;
    margin-bottom: 10px;
}

/* Fade-in animatie */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Achtergrond fallback afbeelding als full screen achtergrond */
body.info-body {
    background: url('media/fallback.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
}


/* Hover effect formulier op index: video dof maken */
body.index-body .form-container:hover ~ #bg-video {
    filter: brightness(0.5) blur(21px);
}

/* Achtergrond fallback afbeelding als full screen achtergrond */
body.info-body {
background: url('media/fallback.jpg') no-repeat center center fixed;
background-size: cover;
color: white;
}

/* Overlay om tekst beter leesbaar te maken */
body.info-body::before {
content: "";
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(68, 68, 68, 0.7);
z-index: -1;
opacity: 0; /* onzichtbaar vooraf */
animation: fadeIn 2s ease forwards 1s;
}

/* Content container */
main {
max-width: 700px;
margin: 3rem auto;
padding: 1rem 2rem;
background: rgba(245, 245, 245, 0.85);
border-radius: 20px;
box-shadow: 0 4px 20px rgba(0,0,0,0.2);
color: #333;
}

/* Koppen in accent kleur */
h1, h2 {
color: rgba(39, 39, 39, 0.7);;
}

/* Links stijl */
a {
color: rgba(68, 68, 68, 0.7);;
text-decoration: none;
}

a:hover, a:focus {
text-decoration: none;
}

.info-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: rgba(215, 215, 215, 0.85);
    color: white;
    font-weight: bold;
    border-radius: 9999px;
    text-decoration: none;
    opacity: 0;
    animation: fadeIn 2s ease forwards 1s;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.info-button:hover,
.info-button:focus {
    background-color: rgba(233, 233, 233, 0.95);
    color: #333;
}

.lang-switch {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.main-links a {
    margin-right: 15px;
    color: white;
    text-decoration: none;
}

/* Mobiel styling */
@media (max-width: 600px) {
    nav {
        flex-direction: column; /* alles onder elkaar */
        align-items: flex-start;
    }
    .lang-switch {
        margin-top: 8px; /* beetje ruimte */
    }
}
.lang-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 0 auto; /* marge boven + centreren */
  padding: 12px 25px;
  background-color: rgba(215, 215, 215, 0.85);
  color: white;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  max-width: 300px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.lang-button:hover,
.lang-button:focus {
  background-color: rgba(233, 233, 233, 0.95);
  color: #333;
}