/* Algemene instellingen */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    background-image: linear-gradient(rgba(86, 84, 65, 0.5), rgba(86, 84, 65, 0.5)), url('img/achtergrond2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* FIX: iPad ondersteunt fixed niet goed */
}

/* Container voor de gesplitste achtergrond - Desktop en Tablet */
.split-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.achtergrond1, .achtergrond2 {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
}

.achtergrond1 {
    background-image: linear-gradient(rgba(0, 84, 142, 0.5), rgba(0, 84, 142, 0.5)), url('img/achtergrond1.jpg');
}

.achtergrond2 {
    background-image: linear-gradient(rgba(86, 84, 65, 0.5), rgba(86, 84, 65, 0.5)), url('img/achtergrond2.jpg');
}

/* Container voor alle inhoud (tekst en logo's) */
.main-content-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 1600px;
}

/* Container voor de tekst */
.header-text-container {
    text-align: center;
    color: #ffffff;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-text-container h1 {
    font-size: 3em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.header-text-container h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.header-text-container p {
    font-size: 1em;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Styling voor de logo-vlakken */
.logo-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    align-items: stretch;
}

.logo-square {
    max-width: 350px; /* FIX: iPad zoom probleem */
    width: 100%;      /* flexibel i.p.v. vaste breedte */
    height: auto;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 30px;
    box-sizing: border-box;
}

/* Styling voor de logo-wrapper */
.logo-wrapper {
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.logo-square img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Specifieke styling voor de content-vlakken met knoppen en lijsten */
.content-square {
    justify-content: space-between;
}

.content-square ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.content-square li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #000;
    line-height: 1.4;
}

.content-square li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    font-size: 1.2em;
    font-weight: bold;
}

/* Styling voor de gekleurde vinkjes */
.content-square ul li::before {
    color: #00548e;
}
.content-square ul.brown-list li::before {
    color: #565441;
}
.content-square ul.ceraton-list li::before {
    color: #00797c;
}
.content-square ul.pvcera-list li::before {
    color: #706e68;
}

/* Styling voor de knoppen */
.button {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 15px 0;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-align: center;
}

/* Gekleurde knoppen */
.button {
    background-color: #00548e;
}
.button:hover {
    background-color: #003a62;
}
.brown-button {
    background-color: #565441;
}
.brown-button:hover {
    background-color: #434133;
}
.ceraton-button {
    background-color: #00797c;
}
.ceraton-button:hover {
    background-color: #005f61;
}
.pvcera-button {
    background-color: #706e68;
}
.pvcera-button:hover {
    background-color: #5a5853;
}

/* ------------------------------------------- */
/* RESPONSIVE DESIGN - MEDIA QUERIES */
/* ------------------------------------------- */

/* Mobiele apparaten (standaard: mobiel-eerst) */
.main-content-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 20px;
    max-width: 100%;
}

.header-text-container {
    margin-bottom: 30px;
}

.header-text-container h1 {
    font-size: 2em;
}

.header-text-container h2 {
    font-size: 1.2em;
}

.logo-grid-container {
    grid-template-columns: 1fr;
    gap: 30px;
}

.logo-square {
    width: 100%;
    padding: 20px;
}

/* De achtergronden nu op mobiel onder elkaar zetten */
.split-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
}

.achtergrond1 {
    background-image: linear-gradient(rgba(0, 84, 142, 0.5), rgba(0, 84, 142, 0.5)), url('img/achtergrond1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    height: auto;
}
.achtergrond2 {
    display: none;
}

/* Tablet-apparaten (vanaf 768px breedte) */
@media (min-width: 768px) {
    .main-content-container {
        top: 50%;
        transform: translate(-50%, -50%);
        padding: 0;
    }

    .header-text-container h1 {
        font-size: 2.5em;
    }

    .header-text-container h2 {
        font-size: 1.3em;
    }

    .logo-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .logo-square {
        width: auto;
    }

    /* Achtergronden onder elkaar op tablet */
    .split-container {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }
    .achtergrond1 {
        display: block;
        min-height: 50vh;
        height: auto;
    }
    .achtergrond2 {
        display: block;
        min-height: 50vh;
        height: auto;
    }
}

/* Desktop-apparaten (vanaf 1024px breedte) */
@media (min-width: 1024px) and (max-width: 1500px) {
    .header-text-container h1 {
        font-size: 3em;
    }

    .header-text-container h2 {
        font-size: 1.5em;
    }

    .logo-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
    }

    .logo-square {
        max-width: 350px;
    }
    
    .split-container {
        flex-direction: row;
        min-height: 100vh;
        height: 100vh;
    }
    .achtergrond1, .achtergrond2 {
        display: block;
        height: 100%;
        min-height: 0;
    }
}

/* Desktop-apparaten (vanaf 1501px breedte) */
@media (min-width: 1501px) {
    .header-text-container h1 {
        font-size: 3em;
    }

    .header-text-container h2 {
        font-size: 1.5em;
    }

    .logo-grid-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 60px;
    }

    .logo-square {
        max-width: 350px;
    }
    
    .split-container {
        flex-direction: row;
        min-height: 100vh;
        height: 100vh;
    }
    .achtergrond1, .achtergrond2 {
        display: block;
        height: 100%;
        min-height: 0;
    }
}

/* Desktop-apparaten (1024px - 1500px) */
@media (min-width: 1024px) and (max-width: 1500px) {
    .split-container {
        flex-direction: row;
        min-height: 100vh;
        height: 100vh;
    }

    .achtergrond1, .achtergrond2 {
        display: block;
        height: 100%;
        min-height: 0;
    }

    .main-content-container {
        position: relative; /* FIX: voorkomt zoom */
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }

    .header-text-container h1 {
        font-size: 2.5em;
    }

    .header-text-container h2 {
        font-size: 1.3em;
    }

    .logo-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .logo-square {
        max-width: 350px; /* flexibel i.p.v. vaste breedte */
        width: 100%;
    }
}

/* Desktop-apparaten (vanaf 1501px) */
@media (min-width: 1501px) {
    .split-container {
        flex-direction: row;
        min-height: 100vh;
        height: 100vh;
    }

    .achtergrond1, .achtergrond2 {
        display: block;
        height: 100%;
        min-height: 0;
    }

    .main-content-container {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10; /* altijd boven achtergronden */
    }

    .header-text-container h1 {
        font-size: 3em;
    }

    .header-text-container h2 {
        font-size: 1.5em;
    }

    .logo-grid-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 60px;
    }

    .logo-square {
        max-width: 350px;
        width: 100%;
    }
}

/* Tablets & desktop tot 1500px breed (incl. iPad Pro) */
@media (min-width: 768px) and (max-width: 1500px) {

    .main-content-container {
        position: absolute;  /* altijd absolute zodat het boven achtergronden blijft */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        width: 90%;
        max-width: 1200px;
    }

    .split-container {
        flex-direction: column; /* achtergronden onder elkaar */
    }

    .logo-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .logo-square {
        max-width: 350px;
        width: 100%;
    }

    .header-text-container h1 {
        font-size: 2.5em;
    }

    .header-text-container h2 {
        font-size: 1.3em;
    }
}

/* Zeer kleine schermen (mobiel + kleine tablets) */
@media (max-width: 768px) {
    .main-content-container {
        position: absolute;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -45%);
        max-height: 90vh;
        overflow-y: auto;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .logo-grid-container {
        gap: 20px;
    }

    .logo-square {
        padding: 15px;
    }

    .header-text-container h1 {
        font-size: 1.8em;
    }

    .header-text-container h2 {
        font-size: 1.1em;
    }
}

/* Mobiel en zeer kleine schermen */
@media (max-width: 768px), (max-height: 900px) {
    .main-content-container {
        position: relative;         /* flexbox centrering */
        top: auto;
        left: auto;
        transform: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;           /* scrollbaar */
    }

    .logo-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .logo-square {
        width: 100%;
        max-width: 350px;
        padding: 15px;
    }

    .header-text-container h1 { font-size: 1.8em; }
    .header-text-container h2 { font-size: 1.1em; }
}

/* Mobiel & kleine tablets (iPad Mini) */
@media (max-width: 767px) {
    .main-content-container {
        position: absolute;
        top: 20%; /* iets naar beneden zodat content zichtbaar blijft */
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 350px;
        z-index: 10;
        max-height: 75vh; /* voorkomt dat content uit beeld gaat */
        overflow-y: auto;  /* scroll indien nodig */
        padding: 0 15px;
        box-sizing: border-box;
    }

    .logo-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .logo-square {
        width: 100%;
        padding: 15px;
    }

    .header-text-container h1 { font-size: 1.8em; }
    .header-text-container h2 { font-size: 1.1em; }
}

/* Tablets en kleine desktops (iPad Pro en 1024–1500px) */
@media (min-width: 768px) and (max-width: 1500px) {
    .main-content-container {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 1200px;
        z-index: 10;
    }

    .split-container { flex-direction: column; }

    .logo-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .logo-square {
        width: 100%;
        max-width: 350px;
    }

    .header-text-container h1 { font-size: 2.5em; }
    .header-text-container h2 { font-size: 1.3em; }
}

/* Desktop >1500px */
@media (min-width: 1501px) {
    .main-content-container {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        max-width: 1600px;
        z-index: 10;
    }

    .logo-grid-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 60px;
    }

    .logo-square {
        width: 350px;
        max-width: 350px;
    }

    .header-text-container h1 { font-size: 3em; }
    .header-text-container h2 { font-size: 1.5em; }

    .split-container {
        flex-direction: row;
        min-height: 100vh;
        height: 100vh;
    }
}

/* Container headertekst */
.header-text-container {
  text-align: center;    /* centreren van de kop en paragraaf */
  max-width: 800px;
  margin: 0 auto;
  color: #fff;
  margin-bottom: 20px;
}

/* Lijst onder de intro */
.header-text-container .header-list {
  list-style: none;         /* standaard bullets uit */
  padding: 0;
  margin: 15px auto 0 auto; /* netjes centreren */
  display: inline-block;    /* lijst als blok centreren */
  text-align: left;         /* tekst in de lijst links uitlijnen */
}

/* Lijst-items */
.header-text-container .header-list li {
  position: relative;
  padding-left: 25px;       /* ruimte voor vinkje */
  margin-bottom: 8px;
  font-weight: bold;
  color: #fff;
  line-height: 1.5;
}

/* Vinkjes */
.header-text-container .header-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #fff;           /* accentkleur */
  font-weight: bold;
}