/* =====================================================
   Homepagina — Stap-Brug 2.0
===================================================== */

:root {
    --stap-header-bg: rgba(38, 50, 70, 0.92);
    --stap-footer-bg: #1c1c1c;
    --stap-accent: #ffffff;      /*  +/-rode tekstkleur #d65050 vervangen door witte kleur #ffffff  */
    --stap-text: #47425d;
}

/* =====================================================
   Header en navigatie
===================================================== */

.site-header {
    z-index: 1030;
}

.stap-navbar {
    min-height: 92px;
    background-color: var(--stap-header-bg);
    backdrop-filter: blur(4px);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-size: 2rem;
    font-weight: 600;
}

.brand-subtitle {
    margin-top: 0.25rem;
    font-size: 0.95rem;
    font-weight: 400;
}

.stap-navbar .nav-link {
    font-size: 0.95rem;
}

.stap-navbar .nav-link:hover,
.stap-navbar .nav-link:focus,
.stap-navbar .nav-link.active {
    color: var(--stap-accent);
}

/* =====================================================
   Carousel
===================================================== */

.home-carousel {
    margin-top: 0;
}


/* .home-carousel .carousel-item {
    position: relative;
	
                     /* min(82vh, 780px): verwijderd voor minder bijsnijden foto */
     
	                 /* min-height: 520px; verwijderd voor minder bijsnijden foto */
}  */


/* Grote schermen */
.home-carousel .carousel-item {
    height: 70vh;
    max-height: 650px;
}

/* Laptop */
@media (max-width: 1200px) {
    .home-carousel .carousel-item {
        height: 65vh;                      /* height: 60vh; gewijzigd */
        max-height: 620px;                 /* max-height: 550px; gewijzigd */
    }
}

/* Tablet */
@media (max-width: 992px) {
    .home-carousel .carousel-item {
        height: 60vh;                      /* height: 50vh; gewijzigd */
        max-height: 610px;                 /* max-height: 450px; gewijzigd */
    }
}

/* Smartphone */
@media (max-width: 576px) {
    .home-carousel .carousel-item {
        height: 55vh;                     /* height: 40vh; gewijzigd */
        max-height: 420px;                /* max-height: 320px;  gewijzigd  */
    }
}

.home-carousel .carousel-item img {
    width: 100%;                      /* Later toegevoegd ter verbetering afbeelden. */
	height: 100%;
    object-fit: cover;
    object-position: center;             /* center: vervangen door "top center" voor tonen bovenzijde foto */ 
     /* animation: zoom 8s ease-in-out forwards; */  /*animation toegevoegd (raad van chatgpt) en verder nog @keyframes zoon */
}

/*=============
  De overlay haal ik weg na overleg met chatpgt
  .carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.08) 0%,
        rgba(0, 0, 0, 0.15) 100%
    );
}
En volgende 2 lijnen voeg ik toe om geen overlay te bekomen, zoals chatgpt aangeeft. 
============= */
.carousel-overlay {
    display: none;
}

.home-carousel .carousel-caption {
    top: 50%;
    right: 12%;
    bottom: auto;
    left: 12%;
    transform: translateY(-42%);
}

.home-carousel .carousel-caption h1,
.home-carousel .carousel-caption h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 5vw, 4.25rem);
    font-weight: 600;
    text-shadow:
        0 0 8px rgba(0,0,0,0.55),
        0 2px 4px rgba(0,0,0,0.45);
}

.home-carousel .carousel-caption p {
    margin-bottom: 1.5rem;
    font-size: clamp(1.1rem, 2.2vw, 1.7rem);
    text-shadow:  0 0 6px rgba(0,0,0,0.50);
}

.home-carousel .btn {
    min-width: 120px;
    padding: 0.7rem 1.4rem;
    border-width: 2px;
}

/* =====================================================
   Welkomstinhoud
===================================================== */

.home-content {
    padding: 1.5rem 0;                /* padding: 3.5rem 0; vervangen voor verkleinen hoogte witte balk */
    color: var(--stap-text);
}

.welcome-card {
    max-width: 960px;
    margin: 0 auto;
}

.welcome-card h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.welcome-card p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* =====================================================
   Footer
===================================================== */

.site-footer {
    padding: 1.5rem 0;
    color: #9b9b9b;
    background-color: var(--stap-footer-bg);
}

/* =====================================================
   Responsive
===================================================== */

@media (max-width: 991.98px) {
    .stap-navbar {
        min-height: 78px;
        background-color: #000;
    }

    .brand-title {
        font-size: 1.65rem;
    }

    .brand-subtitle {
        font-size: 0.82rem;
    }

    .navbar-collapse {
        padding-top: 1rem;
        padding-bottom: 0.75rem;
    }

    .home-carousel .carousel-item {
        height: 68vh;
        min-height: 460px;
    }
}

@media (max-width: 575.98px) {
    .brand-subtitle {
        max-width: 210px;
        white-space: normal;
    }

    .home-carousel .carousel-item {
        height: 62vh;
        min-height: 420px;
    }

    .home-carousel .carousel-caption {
        right: 8%;
        left: 8%;
    }

    .home-content {
        padding: 2.5rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .carousel-item {
        transition: none;
    }
}

/* Toegevoegd op aanraden van chatgpt om een licht zoom tijdens het 
   tonen van een een afbeelding. (het zogenaamde Ken Burns-effect). 
   De bezoeker merkt dat nauwelijks bewust, maar de website krijgt 
   een rustig en modern gevoel.
 */
@keyframes zoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}
