/* ==========================================================================
   ALGEMENE RESET
   Zet standaard marges/padding op 0 en stelt het standaard lettertype in
   zodat elke browser dezelfde basisstijl gebruikt.
   ========================================================================== */
* {
    margin: 0px;
    padding: 0px;
    font-family: "Caacupe One", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Basisopmaak van de hele pagina: donkergroene achtergrond en voorkomt
   horizontaal scrollen. */
body {
    max-width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    background-color: #0B2B26;

}

/* ==========================================================================
   HEADER / BANNER (bovenaan elke pagina, met achtergrondfoto)
   ========================================================================== */
header {
    width: 100vw;
    height: 100vh;
    text-align: center;
}

/* Titel in de header (bijv. paginanaam of "Tegelen") */
header h1 {
    color: #eeeeee;
    font-size: 100px;
}

/* Subtitel/slogan in de header */
header h2 {
    font-size: 40px;
    color: #eeeeee;
}

/* Ronde "Bekijk ..." knop onderaan de header */
.bekijk-menu {
  width: 200px;
  height: 50px;
  border: none;
  border-radius: 25px;
  background-color: #eeeeee;
  color: black;
  font-size: 150%;;
  margin-top: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* ==========================================================================
   NAVIGATIEBALK
   ========================================================================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #051F20;
    font-size: larger;
    padding: 0 20px; /* Zorgt voor wat ademruimte aan de zijkanten */
}

/* Logo links in de navigatiebalk */
nav img {
    width: 5%;
    min-width: 50px; /* Voorkomt dat het logo te klein wordt op kleinere schermen */
    margin-right: 0;
}

/* Lijst met menu-items, gecentreerd tussen logo en taalwissel-knop */
nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    margin-right: 0; /* Verwijderd, de space-between regelt de verdeling */
}

/* ==========================================================================
   BEZIENSWAARDIGHEDEN (index.php)
   Blokken met een afbeelding naast een stuk tekst.
   ========================================================================== */
.bezienswaardigheid {
    background-color: #163832;
    margin-top: 8px;
    display: flex;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    gap: 20px;
}

/* Afbeelding binnen een bezienswaardigheid-blok, vaste vierkante afmeting */
.bezienswaardigheid img {
    width: 400px;
    height: 400px;
    min-width: 400px;
    object-fit: cover;
    display: block;
}

/* Titel van een bezienswaardigheid-blok */
.bezienswaardigheid h2 {
    display: flex;
    padding: 0 0 10px 0;
}

/* Tekstgedeelte (kop + paragrafen) naast de afbeelding */
.inhoud {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
  font-size: 20px;
  line-height: 1.5;
}

.inhoud h2 {
  text-align: left;
}

.inhoud p {
  margin-bottom: 10px;
}

/* Achtergrondkleur voor de hele sectie met bezienswaardigheden */
.bezienswaardigheden {
    background-color: #163832;
}

/* ==========================================================================
   TAALWISSEL-KNOP (NL/EN toggle switch)
   ========================================================================== */
.switch {
  position: relative;
  display: inline-block;
  margin: 0 5px;
}

/* Positionering van de "NL" en "EN" labels op de toggle */
.switch > span {
  position: absolute;
  top: 14px;
  pointer-events: none;
  font-family: 'Helvetica', Arial, sans-serif;
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .06);
  width: 50%;
  text-align: center;
}

/* Kleurwissel van de labels afhankelijk van de stand van de toggle */
input.check-toggle-round-flat:checked ~ .off {
  color: black;
}

input.check-toggle-round-flat:checked ~ .on {
  color: #fff;
}

.switch > span.on {
  left: 0;
  padding-left: 2px;
  color: black;
}

.switch > span.off {
  right: 0;
  padding-right: 4px;
  color: #fff;
}

/* Verbergt de eigenlijke checkbox-input (alleen het gestylede label is zichtbaar) */
.check-toggle {
  position: absolute;
  margin-left: -9999px;
  visibility: hidden;
}
.check-toggle + label {
  display: block;
  position: relative;
  cursor: pointer;
  outline: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Vormgeving van de "pil" achter de schuifknop */
input.check-toggle-round-flat + label {
  padding: 2px;
  width: 97px;
  height: 35px;
  background-color: #163832;
  -webkit-border-radius: 60px;
  -moz-border-radius: 60px;
  -ms-border-radius: 60px;
  -o-border-radius: 60px;
  border-radius: 60px;
}
input.check-toggle-round-flat + label:before, input.check-toggle-round-flat + label:after {
  display: block;
  position: absolute;
  content: "";
}

input.check-toggle-round-flat + label:before {
  top: 2px;
  left: 2px;
  bottom: 2px;
  right: 2px;
  background-color: #163832;
  -moz-border-radius: 60px;
  -ms-border-radius: 60px;
  -o-border-radius: 60px;
  border-radius: 60px;
}

/* Het witte, ronde schuifknopje zelf */
input.check-toggle-round-flat + label:after {
  top: 4px;
  left: 4px;
  bottom: 4px;
  width: 48px;
  background-color: #fff;
  -webkit-border-radius: 52px;
  -moz-border-radius: 52px;
  -ms-border-radius: 52px;
  -o-border-radius: 52px;
  border-radius: 52px;
  -webkit-transition: margin 0.2s;
  -moz-transition: margin 0.2s;
  -o-transition: margin 0.2s;
  transition: margin 0.2s;
}

/* Schuift het knopje naar rechts wanneer de checkbox aangevinkt is (EN-stand) */
input.check-toggle-round-flat:checked + label:after {
  margin-left: 44px;
}

/* ==========================================================================
   ALGEMENE LINK- EN LIJST-STIJLEN IN DE NAV
   ========================================================================== */
nav li, a {
    color: #eeeeee;
    list-style-type: none;
    margin-left: 10px;
    text-decoration: none;
}

nav a:hover {
    color: #aaaaaa
}

/* Slogan-tekst onderin de header */
.slogan {
    margin-top: 30vh;
    color: #dddddd;
}

/* ==========================================================================
   HOOFDINHOUD (main)
   ========================================================================== */
main {
    color: #eeeeee;
    font-size: 25px;
    text-align: center;
    margin-top: 8px;
    background-color: #0B2B26;
}

/* Alle grote inhoudsblokken krijgen dezelfde max-breedte en worden gecentreerd */
.info,
.bezienswaardigheden,
.informatie {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Rij met de "Tegelse Weetjes"-blokjes */
.info {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Losse weetje-blokjes (vakjes) binnen .info */
.vakjes {
    background-color: #163832;

    width: 28%;
    height: 300px;
    border-radius: 6px;
    margin: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   TABBLADEN (gebruikt op ict.php en sport.php)
   ========================================================================== */
/* Rij met knoppen om tussen tabbladen te wisselen */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Losse tabblad-knop */
.tab-button {
  padding: 10px 20px;
  border: none;
  background-color: #eee;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Actieve (geselecteerde) tabblad-knop */
.tab-button.active {
  background-color: #051F20;
  color: white;
}

/* Inhoud van een tabblad, standaard verborgen */
.tab {
  margin-top: 30px;
  display: none;
}

/* Actieve (zichtbare) tabblad-inhoud */
.tab.active {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Kaart met info + afbeelding binnen een tabblad */
.item {
  background: #f3f3f3;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  text-align: center;
  color: black;
  margin-bottom: 30px;
  display: flex;
}

.item p {
  margin: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.item img {
  width: 40%;
}

/* ==========================================================================
   INFORMATIE-SECTIE (index.php, geschiedenis van Tegelen)
   ========================================================================== */
.informatie {
  display: flex;
  flex-direction: column;
  padding: 40px;
  box-sizing: border-box;
  text-align: left;
  font-size: 20px;
  line-height: 1.5;
}

.informatie h2 {
  text-align: center;
}

.informatie p {
  margin-bottom: 10px;
}

/* ==========================================================================
   LUNCHPAGINA (lunch.php)
   ========================================================================== */
#lunch-page {
    text-align: center;
    padding-bottom: 40px;
}

/* Container voor de zigzag-rijen met lunchlocaties */
.zigzag-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 30px;
    padding: 0 8%;
}

/* Eén rij: afbeelding + tekst naast elkaar */
.zigzag-row {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #f3f3f3;
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    color: black;
}

/* Om en om spiegelen van de rijen (afbeelding links/rechts) voor een zigzag-effect */
.zigzag-row.reverse {
    flex-direction: row-reverse;
}

/* Breedte van het afbeeldingsgedeelte binnen een rij */
.zigzag-media {
    flex: 0 0 42%;
}

.zigzag-media img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

/* Tekstgedeelte binnen een zigzag-rij */
.zigzag-text {
    flex: 1;
    padding: 20px 30px;
}

.zigzag-text h2 {
    margin-bottom: 12px;
    color: #0B2B26;
    font-size: 1.6rem;
}

.zigzag-text p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    color: #eeeeee;
    background-color: #051F20;
    text-align: center;
    padding: 20px;
}