/* Shared styles voor Richard modules */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

.richard-container {
    max-width: 1440px;
    padding: 0 40px;
    margin: 0 auto;
}

.richard-container-small {
    max-width: 1240px;
    padding: 0 40px;
    margin: 0 auto;
}

/* Achtergrond stijlen */
.richard-background {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: transparent;
    max-width: 100vw;
    overflow: hidden;
}

/* Geen achtergrond (standaard) */
.richard-background.none {
    background-color: transparent;
    padding: 0;
}

/* Achtergrond bovenaan */
.richard-background.top {
    background-color: #171717;
    padding-top: 160px;
    padding-bottom: 80px;
    margin-top: 160px;
    border-radius: 50% 50% 0 0 / 100px 100px 0 0;
}

.richard-background.top:before {
    content: '';
    position: absolute;
    top: -160px;
    left: -25%;
    right: -25%;
    width: 150%;
    height: 160px;
    background-color: #171717;
    border-radius: 100% 100% 0 0 / 100% 100% 0 0;
}

/* Achtergrond in het midden */
.richard-background.middle {
    background-color: #171717;
    padding: 80px 0;
}

/* Achtergrond onderaan */
.richard-background.bottom {
    background-color: #171717;
    padding-top: 80px;
    padding-bottom: 160px;
    margin-bottom: 160px;
    border-radius: 0 0 50% 50% / 0 0 100px 100px;
}

.richard-background.bottom:after {
    content: '';
    position: absolute;
    bottom: -160px;
    left: -25%;
    right: -25%;
    width: 150%;
    height: 160px;
    background-color: #171717;
    border-radius: 0 0 100% 100% / 0 0 100px 100px;
}

/* Aanpassingen voor tekst op donkere achtergrond */
.richard-background.top .richard-subtitel,
.richard-background.middle .richard-subtitel,
.richard-background.bottom .richard-subtitel {
    color: #45AC34;
}

.richard-background.top .richard-titel:not(.white),
.richard-background.middle .richard-titel:not(.white),
.richard-background.bottom .richard-titel:not(.white) {
    color: white;
}

.richard-background.top .richard-description:not(.white),
.richard-background.middle .richard-description:not(.white),
.richard-background.bottom .richard-description:not(.white) {
    color: white;
}

/* Responsieve aanpassingen voor achtergrond */
@media screen and (max-width: 768px) {
    .richard-background.top {
        margin-top: 80px;
        padding-top: 80px;
    }

    .richard-background.top:before {
        top: -80px;
        height: 80px;
    }

    .richard-background.bottom {
        margin-bottom: 80px;
        padding-bottom: 80px;
    }

    .richard-background.bottom:after {
        bottom: -80px;
        height: 80px;
    }
}

.richard-subtitel {
    font-size: 20px;
    font-weight: bold;
    color: #45AC34;
    margin-bottom: 10px;
}

.richard-titel{
    font-size: 30px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 25px;
    line-height: 1.1;
    margin-top: 0px;
}

.richard-titel.white{
    color: white!important;
}

.richard-description{
    font-size: 16px;
    color: #000000;
    line-height: 1.5;
    margin-top: 0px;
    margin-bottom: 15px;
}

.richard-description.white{
    color: white!important;
}

@media screen and (max-width: 768px) {
    .richard-subtitel{
        font-size: 18px;
    }
    .richard-titel {
        font-size: 24px;
    }
    .richard-description{
        font-size: 14px;
    }
}

/* Richard Button styling */
.richard-button {
    position: relative;
    color: white !important;
    padding: 10px 25px;
    border-radius: 25px;
    overflow: hidden;
    z-index: 1;
    display: inline-block;
    text-decoration: none !important;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    background-color: rgb(28, 70, 21);
}

.richard-button::before,
.richard-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease-in-out;
}

.richard-button::before {
    background: linear-gradient(90deg, rgb(69, 172, 52) 0%, rgb(28, 70, 21) 100%);
    opacity: 1;
    z-index: -2;
}

.richard-button::after {
    background: linear-gradient(270deg, rgb(69, 172, 52) 0%, rgb(28, 70, 21) 100%);
    opacity: 0;
    z-index: -1;
}

.richard-button:hover::before {
    opacity: 0;
}

.richard-button:hover::after {
    opacity: 1;
}

p a{
    color: #45AC34;
    text-decoration: none;
}

p a:hover{
    color: #45AC34;
    opacity: 0.8;
    text-decoration: none;
}

@media (max-width: 1980px){
    .richard-background.top{
        margin-top:50px;
    }
}
