/* V-0097: homepage Deurengigant met kaart (deur en vanaf-prijs) en keuzetegels opdek, stomp en Svedex.
   Zelfde opbouw als de homepage van Kastengigant (kast-hero, kast-keuzes, kast-kaart). Alleen geladen als in
   Heartcore het veld deurkeuze is ingevuld. */

#homePage .dg-hero {
    position: relative;
    z-index: 1;
    background-color: #fff;
}

#homePage .dg-hero__foto img {
    display: block;
    width: 100%;
    height: 600px;
    object-fit: cover;
}

#homePage .dg-hero__binnen {
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
}

#homePage .dg-hero__kaart {
    max-width: 600px;
    padding: 36px 40px;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(46, 33, 80, .12);
}

#homePage .dg-label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: #f4991a;
    color: #2b2140;
    font-size: 13px;
    font-weight: 700;
}

#homePage .dg-hero .dg-hero__titel {
    margin: 16px 0 12px;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    color: #2b2140;
}

#homePage .dg-hero__tekst {
    margin-bottom: 18px;
    font-size: 18px;
    line-height: 1.5;
    color: #464c58;
}

#homePage .dg-hero__onder {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.4;
    color: #6b6f86;
}

#homePage .dg-hero__voorwaarden {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: #5e4897;
    text-decoration: underline;
}

/* Prijs */
#homePage .dg-prijs {
    margin-bottom: 18px;
}

#homePage .dg-prijs > span {
    display: block;
}

#homePage .dg-prijs__vanaf,
#homePage .dg-prijs__extra {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: #6b6f86;
}

#homePage .dg-prijs__bedrag {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    color: #2b2140;
}

#homePage .dg-prijs--tegel {
    margin: auto 0 4px;
}

#homePage .dg-prijs--tegel .dg-prijs__bedrag {
    font-size: 24px;
}

/* Knoppen */
#homePage .dg-knoppen {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

#homePage .dg-knop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border: 2px solid #5e4897;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s;
}

#homePage .dg-knop:focus-visible {
    outline: 3px solid rgba(94, 72, 151, .35);
    outline-offset: 2px;
}

#homePage .dg-knop--primair {
    background-color: #5e4897;
    color: #fff;
}

#homePage .dg-knop--primair:hover,
#homePage .dg-knop--primair:focus {
    background-color: #4a3878;
    border-color: #4a3878;
    color: #fff;
}

#homePage .dg-knop--secundair {
    background-color: #fff;
    color: #5e4897;
}

#homePage .dg-knop--secundair:hover,
#homePage .dg-knop--secundair:focus {
    background-color: #f0eff9;
    color: #5e4897;
}

#homePage .dg-knop--blok {
    display: flex;
    width: 100%;
    margin-top: 10px;
}

/* Keuzetegels */
/* Onderaan ruimte voor het busje van "Leer ons beter kennen", dat in het blok erboven uitsteekt */
#homePage .dg-keuzes {
    padding: 36px 0 140px;
    background-color: #f0eff9;
}

#homePage .dg-keuzes .dg-keuzes__kop {
    margin: 0 0 16px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: #2b2140;
}

#homePage .dg-beloften {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

#homePage .dg-belofte {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    color: #2b2140;
}

#homePage .dg-belofte__vink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 50%;
    background-color: #68b43e;
    color: #fff;
}

#homePage .dg-keuzes__raster {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

#homePage .dg-keuzes__raster--1 {
    grid-template-columns: minmax(0, 420px);
}

#homePage .dg-keuzes__raster--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#homePage .dg-tegel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(46, 33, 80, .08);
}

#homePage .dg-tegel__foto img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

#homePage .dg-tegel__in {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 18px 18px 20px;
}

#homePage .dg-tegel .dg-tegel__naam {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

#homePage .dg-tegel__naam a {
    color: #2b2140;
    text-decoration: none;
}

#homePage .dg-tegel__naam a:hover {
    text-decoration: underline;
}

#homePage .dg-tegel__omschrijving {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.45;
    color: #464c58;
}

#homePage .dg-tegel__link {
    margin-top: 6px;
    font-size: 15px;
    text-align: center;
    color: #5e4897;
}

#homePage .dg-keuzes__ook {
    margin: 22px 0 0;
    font-size: 15px;
    color: #6b6f86;
}

#homePage .dg-keuzes__ook a {
    margin: 0 4px;
    color: #5e4897;
}

/* De oude titel "Deurengigant, zorgeloos maatwerk" is bij de nieuwe opbouw een h2, met dezelfde ruimte als de h1 had */
#homePage .USPContainer > h2.h1 {
    padding-top: 32px;
    padding-bottom: 32px;
}

/* Tablet: tegels in twee kolommen */
@media screen and (max-width: 1199.6px) {
    #homePage .dg-keuzes__raster {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Telefoon */
@media screen and (max-width: 767.6px) {
    #homePage .dg-hero__foto img {
        height: 220px;
    }

    #homePage .dg-hero__binnen {
        position: static;
    }

    #homePage .dg-hero__kaart {
        max-width: none;
        padding: 18px 0 24px;
        border-radius: 0;
        box-shadow: none;
    }

    #homePage .dg-hero .dg-hero__titel {
        margin: 10px 0 8px;
        font-size: 30px;
    }

    #homePage .dg-hero__tekst {
        margin-bottom: 12px;
        font-size: 16px;
    }

    #homePage .dg-prijs__bedrag {
        font-size: 28px;
    }

    #homePage .dg-knoppen {
        flex-direction: column;
    }

    #homePage .dg-knop {
        width: 100%;
    }

    #homePage .dg-keuzes {
        padding: 26px 0 32px;
    }

    #homePage .dg-keuzes .dg-keuzes__kop {
        font-size: 24px;
    }

    #homePage .dg-beloften {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-right: -16px;
        padding-right: 16px;
        scrollbar-width: none;
    }

    #homePage .dg-belofte {
        flex: none;
        font-size: 13px;
    }

    #homePage .dg-keuzes__raster,
    #homePage .dg-keuzes__raster--1,
    #homePage .dg-keuzes__raster--2 {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    #homePage .dg-tegel__foto img {
        aspect-ratio: 16 / 9;
    }

    #homePage .USPContainer > h2.h1 {
        padding-top: 16px;
        padding-bottom: 16px;
    }
}
