/* ---- 1. Layout & Structuur (De Footer Fix) ---- */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    background-color: #fcfdfe;
    color: #1a202c;
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    /* Flexbox zorgt dat de footer onderaan blijft */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* De container tussen header en footer die alle ruimte vult */
.content-wrapper {
    flex: 1 0 auto;
}

/* ---- 2. Design Tokens ---- */
:root {
    --dinx-dark: #1e2a38;
    --dinx-accent: #2f6f4f;
    --dinx-accent-light: rgba(47,111,79,0.12);
    --dinx-light: #f4f6f8;
    --dinx-text: #111827;
    --dinx-muted: #6b7280;
    --dinx-white: #ffffff;
}

/* ---- 3. Navigatie & Header ---- */
.dinx-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(235, 250, 235, 0.8) !important;
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--dinx-accent);
    transition: all 0.3s ease;
    width: 100%;
}

.dinx-brand {
    color: var(--dinx-dark) !important;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.dinx-navlink {
    color: rgba(15, 23, 42, 0.7) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s;
}

    .dinx-navlink:hover {
        background: var(--dinx-accent-light);
        color: var(--dinx-accent) !important;
    }

/* ---- 4. Hero Sectie (Gecombineerd & Gefilterd) ---- */
.dinx-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e2a38 0%, #111827 100%);
    padding: 100px 0 80px;
    border-bottom: 4px solid var(--dinx-accent);
    color: #ffffff !important; /* Forceert witte tekst in de hero */
}

.dinx-hero-title-dark {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Betere leesbaarheid op achtergrond */
}

.dinx-hero-text-dark {
    color: rgba(255, 255, 255, 0.9) !important;
}

    .dinx-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url('/images/dinxperlo.png');
        background-size: cover;
        background-position: center;
        opacity: 0.15;
        filter: blur(4px) grayscale(30%);
        z-index: 1;
        pointer-events: none;
    }

    .dinx-hero .container {
        position: relative;
        z-index: 5;
    }

.dinx-hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    color: var(--dinx-white) !important;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 25px;
}

.dinx-hero-sub-dark {
    font-size: 1.5rem;
    color: #4ade80;
    font-weight: 700;
    display: block;
    margin-bottom: 20px;
}

/* ---- 5. De Interactieve Illustratie Card ---- */
/* ---- Plaatsnaamborden Slider Fix ---- */
.dinx-hero-illustration {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    height: 380px; /* Iets meer ruimte voor de slider */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.dinx-card-bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    transition: background-image 1.2s ease-in-out;
    z-index: 1;
}

.dinx-board-scene {
    position: relative;
    flex-grow: 1;
    width: 100%;
    z-index: 2;
}

/* Borden moeten absoluut gepositioneerd blijven binnen de scene */
#board-dinxperlo, #board-suderwick {
    position: absolute;
    transition: transform 0.1s ease-out; /* Cruciaal voor soepele slider */
    z-index: 5;
}

#board-dinxperlo {
    top: 40px;
    left: 40px;
    background: #003399;
    color: #fff;
    border: 4px solid #fff;
    padding: 10px 30px;
    font-weight: 900;
}

#board-suderwick {
    bottom: 40px;
    right: 40px;
    background: #ffcc00;
    color: #000;
    border: 3.5px solid #000;
    padding: 10px 30px;
    font-weight: 800;
}

/* Slider styling */
.dinx-slider-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    z-index: 10;
    border-top: 1px solid rgba(0,0,0,0.05);
}

#border-slider {
    width: 100%;
    cursor: pointer;
    accent-color: var(--dinx-accent);
}

/* ---- 6. App Cards & Grid ---- */
.dinx-appcard {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

    .dinx-appcard:hover {
        transform: translateY(-8px);
        border-color: var(--dinx-accent);
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    }

/* Container voor het icoon in de app-card */
.dinx-appicon {
    width: 64px;
    height: 64px;
    min-width: 64px; /* Voorkomt inklappen */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    /* De afbeelding ZELF in het icoon-vakje */
    .dinx-appicon img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain; /* Houdt het logo binnen de lijntjes */
        padding: 8px; /* Geeft het logo wat ademruimte */
    }

/* Alleen kantelen bij HOVER op de kaart, niet bij focus of laden */
.dinx-appcard:hover .dinx-appicon {
    transform: scale(1.1) rotate(6deg);
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(47, 111, 79, 0.15);
}

/* Fix voor algemene afbeeldingen die te groot worden */
.dinx-main img {
    max-width: 100%;
    height: auto;
}

.dinx-appcard:hover .dinx-appicon {
    transform: scale(1.15) rotate(5deg);
}

/* ---- 7. Footer (Hersteld voor Core) ---- */
.dinx-footer {
    background: #0f172a;
    color: rgba(255,255,255,0.6);
    padding: 40px 0;
    flex-shrink: 0; /* Zorgt dat de footer niet inkrimpt */
}

/* ---- 8. Plaatsnaamborden ---- */
#board-dinxperlo, #board-suderwick {
    position: absolute;
    padding: 12px 35px;
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    white-space: nowrap;
    transition: transform 0.1s ease-out;
}

#board-dinxperlo {
    top: 45px;
    left: 45px;
    background: #003399;
    color: white;
    border: 4px solid white;
    border-radius: 8px;
}

#board-suderwick {
    bottom: 45px;
    right: 45px;
    background: #ffcc00;
    color: black;
    border: 3.5px solid black;
    border-radius: 2px;
}
.dinx-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Behoudt verhoudingen zonder te stretchen */
    padding: 2px;
}
