* {
    box-sizing: border-box;
}
:root{
    --bronse: #5d4f3d;
    --dark:#3c3838;
    --gold-dark: #b88f23;
    --gold-light: #f7edd4;
    --beige: #ddd3ba;
    --black: #000000;
    --white: #ffffff;
    --background-white: #fffdfb;
    --dark-gray: #ccc;
    --green: #4dbd74;
    --fontSizes-0: 10px;
    --fontSizes-1: 12px;
    --fontSizes-2: 13px;
    --fontSizes-3: 16px;
    --fontSizes-4: 18px;
    --max-width: 990px;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'DM Sans', Inter,sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--bronse);
    background: var(--background-white);
}

input,
textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid var(--dark-gray);
    border-radius: 4px;
    font-size: .8rem;
    font-family: inherit;
    box-sizing: border-box;
    background-color: var(--white);
    color: var(--dark);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: var(--box-shadow);
}


h1, h2, h3, .number {
    font-family: "Libre Baskerville";
    word-break: break-word;
}

h1, h2, h3 {
    margin: 0;
}

h1 {
    font-size: 3.82rem;
    line-height: 1.3;
    font-weight: 400;
    color: var(--white);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

h2 {
    font-family: "Libre Baskerville";
    font-size: 2.5rem;
    letter-spacing: 2px;
    line-height: 1.1;
    font-weight: 400;
    color: var(--bronse);
    margin-top: 0;
    margin-bottom: 1.5rem;
}
h3 {
    font-weight: 400;
    font-size: 1.4rem;
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

p {
    font-size: 1.1rem;
}
.container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4.75em 3.75em;
}

.services, .solutions, .urgent-help, .why-afpedia, .portfolio, .contact, .learn-more {
    padding: 40px 0;
}

.hero, .urgent-help {
    position: relative;
    background-image: url('../images/AFP-JOEL_3.jpg');
    background-size: cover;
    background-position-x: 50%;
    background-position-y: 50%;
    background-repeat: no-repeat;
    color: var(--white);
}
.urgent-help {
    background-image: url('../images/AFP-Team-.jpg');
    background-size: cover;
    background-position-x: 50%;
    background-position-y: 50%;
    background-repeat: no-repeat;
}

.hero::before, .urgent-help::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Black color with 50% opacity */
}

.hero .container p {
    /*font-size: 1.14rem;*/
    line-height: 1.53;
    font-weight: 300;
    color: var(--white);
}
.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 1.2rem;
    font-weight: 500;
    background: var(--gold-dark);
    color: var(--black);
    text-decoration: none;
    border-radius: 5px;
}

.hero .cta-buttons {
    margin-top: 20px;
}

.button.revers {
    color: var(--gold-dark);
    background: var(--black);
    border: 2px solid var(--gold-dark);
}

.hero .cta-buttons .button:first-of-type {
    margin-left: 0;
}

.service-card-container{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.service-card-container h3{
    /*font-size: 1.35rem;*/
    font-weight: 400;
    margin: 0;
}

.service-card-container .number{
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    background-color: var(--gold-light);
    border-radius: 5px;
    border: 1px solid var(--beige);
}

.service-card-container .number::after{
    content: "";
    height: 4px;
    left: 0;
    width: 14%;
    background-color: var(--beige);
    border-radius: 5px;
    position: absolute;
    z-index: -1;
}
.service-cards{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    padding: 1.5rem 0;
}

.service-cards::before{
    content: "";
    width: 4px;
    background-color: var(--beige);
    border-radius: 2px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 22px;
    z-index: -1;

}
.service-card{
    width: 85%;
    margin-top: .5rem;
    margin-bottom: 1.5rem;
}
.service-card p{
    /*font-size: 1.1rem;*/
}
.service-card:last-of-type{
    margin-bottom: 0;
}
.solution-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 -15px;
}
.solution-card {
    flex: 1 1 calc(33% - 20px);
    padding: 0 15px;
}

.solution-card h3 {
    /*font-size: 22.5px;*/
    line-height: 1.5;
    font-weight: 300;
    color: var(--bronse);
    margin: 0;
    height: 60px;
}
.solution-card p {
    line-height: 1.6;
    /*font-size: 1.13rem;*/
}

.urgent-help h2{
    color: var(--white);

}
.why-afpedia{
    background-color: var(--gold-dark);
    color: var(--black);
}
.why-afpedia h2{
    color: var(--black);
    margin-bottom: 3rem;
}

.why-afpedia .reasons{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: -15px;

}

.why-afpedia .reasons .reason{
    display: flex;
    flex: 1 1 calc(50%);
    padding: 15px;
}
.why-afpedia .reasons .reason h3{
    margin-top: 0;
    /*font-size: 1.4rem;*/
    font-weight: 400;
}

.why-afpedia .reasons .reason p{
    /*font-size: 1.1rem;*/
}

.why-afpedia .reasons .reason .number{
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    font-size: 1.5rem;
    margin-right: 1rem;
    background-color: var(--gold-light);
    border-radius: 5px;
    border: 1px solid var(--beige);
}

.portfolio,  .learn-more{
    /*background-color:var(--bronse);*/
    padding: 8rem 0 ;
}
.portfolio .container, .learn-more .container {
    /*background-color: var(--white);*/
    border-radius: 10px;
    /*box-shadow: 0 0.25em 0.375em -0.0625em rgba(0, 0, 0, 0.1),0 0.125em 0.25em -0.0625em rgba(0, 0, 0, 0.06), 0 0 0 0.0625em #e5e0df;*/
    padding: 2.75em 3.75em;
}
.portfolio .container:first-of-type{
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.portfolio .container:last-of-type{
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.portfolio .container h2 {
    margin-bottom: 6rem;
}
.portfolio-cards {
    display: flex;
}


.portfolio-card p{
    /*font-size: 1.1rem;*/
}
.learn-more .container  {
    background-color: var(--background-white);
}
.learn-more .container h2 {
    margin-top: 4rem;
}
.learn-more-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.learn-more-card {
    flex: 1 1 calc(50% - 20px);
    margin: 10px;
    padding: 15px;
    background-color: var(--gold-light);
    border: 1px solid var(--beige);
    border-radius: 10px;
}

.learn-more-card h3 {
    margin: 0;
    font-weight: 400;
    /*font-size: 1.4rem;*/
}

.learn-more-card p {
    /*font-size: 1.1rem;*/
}
.contact .container{
    display: flex;
    padding: unset;
}
.contact .container .contact-container{
    padding: 4.75em 3.75em;

}
.contact .container .img{
    width: 500px;
    background: url('../images/1iJKdLeoOXxX0maH.jpg') no-repeat center center/cover;

}
.contact-info {
}

.contact-method {
    display: flex;

}
.contact-method .number {
    position: relative;
    width: 91px;
    margin-right: 2rem;

}
.contact-method .number > div {
    position: absolute;
    margin-left: 40px;
    margin-top: 50px;
    font-size: 1.5rem;
}
.contact-method .number svg .css-1o0bl34 {
    fill: var(--gold-light);
    stroke-width: 1;
    stroke: var(--beige);
}
.contact-method .number svg {
    position: relative;
    z-index: -1;
}
.contact-info .info  {
    margin-top: 20px;
}
.contact-info .info h3 {
    /*font-size: 1.4rem;*/
    font-weight: 400;
    margin-bottom: 0;
}
.contact-container  p {
    /*font-size: 1.1rem;*/
}
.contact-info .info p a {
    color: var(--gold-dark);
}
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #e0c080;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
}


section#contact {
    position: relative;
    background-image: url("../images/layer01.png");
    background-size: 87%;
    background-repeat: no-repeat;
    background-position: 180% center;
    background-color: var(--bronse);
    margin-bottom: 100px;
}

section#contact .svgContactCurve {
    position: absolute;
    bottom: -1px;
    fill: var(--background-white);
}

section .contactContainer {
    display: flex;
    justify-content: space-between;
    padding: 4rem 0;
    position: relative;
}

section .contactContainer .edataInfo {
    width: 40%;
}

section .contactContainer .contactForm {
    width: 55%;
    background-color: var(--background-white);
    border-radius: .5rem;
    padding: 1rem 2rem;
    box-shadow: -0.0625rem 0 .625rem 0 rgba(0, 0, 0, .07), .3125rem 1.25rem 2.5rem 0 rgba(0, 0, 0, .04);
    margin-bottom: -130px;

}

section .contactContainer .contactForm .form {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}
section .contactContainer .contactForm #notify {
    color:var(--green);
    font-size: .91rem;
}

section .contactContainer .contactForm .form label {
    width: 100%;
}


section .contactContainer .contactForm .form label input {
    width: 100%;
    margin: .5rem 0;
    border: 1px solid var(--bronse);
    border-radius: 10px;
    height: 30px;
    padding-left: .8rem;
}

section .contactContainer .contactForm .form label textarea {
    width: 100%;
    margin: .5rem 0;
    border: 1px solid var(--bronse);
    border-radius: 10px;
    padding: .3rem .8rem;
}

section .contactContainer .contactForm .form .button {
    background-color: var(--bronse);
    color: var(--gold-light);
}

section .contactContainer .edataInfo .addressContainer ul {
    margin: 0;
    padding: 1rem;
    list-style-type: none;

}

section .contactContainer .edataInfo .addressContainer ul li {
    padding-bottom: .8rem;
    color: rgba(255, 255, 255, .7);
}

section .contactContainer .edataInfo .addressContainer ul li .icon {
    width: 15px;
    fill: rgba(255, 255, 255, .7);
    margin-right: .4rem;
}

section .contactContainer .edataInfo .addressContainer ul li a {
    color: rgba(255, 255, 255, .7);;
    text-decoration: none;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
}

footer .containerSection{
    position: relative;
    text-align: center;
    width: 90%;
    max-width: var(--max-width);
}

footer .containerSection .impressum{
    position: absolute;
    right: 0;
    top: 1.1rem;
}
footer .containerSection .impressum a{
    text-decoration: none;
    color: var(--bronse);
}
@media screen and (max-width: 1000px) {

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }
    h3 {
        font-weight: 400;
        font-size: 1.4rem;
    }

    h4 {
        font-size: 1rem;
        margin-bottom: 0;
    }

    p {
        font-size: 1rem;
    }

    .solution-card {
        flex: 1 1 calc(100% - 20px);
    }
    .solution-card h3{
        height: unset;
    }

    .why-afpedia .reasons .reason {
        flex: 1 1 calc(100%);
        padding: 15px;
    }
    .portfolio .portfolio-cards {
        flex-wrap: wrap;
    }
    .portfolio .portfolio-cards .portfolio-card {
        flex: 1 1 calc(50% - 20px);
        padding: 10px;
    }

    .learn-more-cards .learn-more-card {
        flex: 1 1 calc(100%);
    }
    section .contactContainer {
        flex-direction: column;
        padding-top: 5rem ;
        align-items: center;
    }
    section .contactContainer .edataInfo {
        width: unset;

    }

    section .contactContainer .contactForm {
        width: 90%
    }
}

@media screen and (max-width: 750px) {
    .portfolio .portfolio-cards .portfolio-card {
        flex: 1 1 calc(100%);
    }
}

@media screen and (max-width: 650px) {
    .container{
        width: 96%;
    }
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-weight: 400;
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1rem;
        margin-bottom: 0;
    }

    p {
        font-size: 1rem;
    }

    .hero .cta-buttons{
        display: flex;
        flex-direction: column;
    }
    .hero .cta-buttons .button{
        margin: 1rem 0 0 0;
    }
    .portfolio .portfolio-cards .portfolio-card {
        flex: 1 1 calc(100%);
    }

    .contact .container .img{
        display: none;
    }
    section .contactContainer .contactForm {
        width: 92%
    }
}
@media screen and (min-width: 750px)  {
    .services {
        margin-bottom: 10rem;
    }
    .service-cards{
        flex-wrap: nowrap;
    }
    .service-cards::before{
        height: 4px;
        width: unset;
        bottom: 45px;
        top: unset;
        left: 0;
        right: 0;
    }
    .service-card-container{
        flex-direction: column-reverse;
        align-items: center;
    }
    .service-card-container .number {
        position: relative;
        margin-top: 52px;
    }
    .service-card-container .number::after {
        content: "";
        width: 4px;
        left: unset;
        height: 100%;
        top: -89%;
    }
    .service-card{
        text-align: center;
    }

    .service-card-container.middle{
        flex-direction: column;
        position: absolute;
        top: 100%;
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
    }
    .service-card-container.middle .number {
        margin-top: -69px;
        margin-bottom: 44px;
    }
    .service-card-container.middle .number::after {
        top: unset;
        bottom: -89%;
    }
}
