@font-face {
    font-family: 'RobotoSlab';
    src: url('../fonts/RobotoSlab-Regular.woff2') format('woff2'), 
         url('../fonts/RobotoSlab-Regular.woff') format('woff'), 
         url('../fonts/RobotoSlab-Regular.ttf')  format('truetype');
    font-weight: normal;
}
@font-face {
    font-family: 'RobotoSlab';
    src: url('../fonts/RobotoSlab-Bold.woff2') format('woff2'), 
         url('../fonts/RobotoSlab-Bold.woff') format('woff'), 
         url('../fonts/RobotoSlab-Bold.ttf')  format('truetype');
    font-weight: bold;
}

body {
    font-family: 'RobotoSlab', sans-serif;
    font-weight: normal;
    font-size: 18px;
    color: #081025;
    margin: 0;
    padding: 0;
}

h2 { font-size: 1.8rem; }
h3 { font-size: 1.35rem; }

.container { 
    width: 1560px;
    max-width: 100%;
    margin: 0 auto;
 }
header {
    background: url('../images/header-bgr.webp') no-repeat top right;
    background-size: 1560px;
    min-height: 714px;
    position: relative;
    padding-left: 4.5rem;
    margin-top: -3px;
}
header img { 
    width: 220px;
    margin-top: 3.5rem;
}
header h1 {
    width: 55%;
    text-transform: uppercase;
    color: #ffffff;
    font-size: 3rem;
}
#benefits {
    list-style: none;
    margin-top: -200px;
    margin-bottom: 0;
    font-size: 1.35rem;
    color: #223867;
    padding-left: 4.5rem;
}
#benefits li { 
    display: flex; 
    align-items: center; 
    padding: 0.35rem 0;
}
#benefits li::before {
    content: "";
    width: 12px;
    height: 12px;
    background: #FECC03;
    border-radius: 6px;
    margin-right: 0.75rem;
}
#benefits li span { padding: 0 0.4rem; }

#book-appointment {
    display: grid;
    grid-template-columns: 55% 1fr;
    column-gap: 5rem;
}
#book-appointment .webform, #contact-info {
    padding-left: 4.5rem;
    margin-top: 2rem;
}
#contact-info { width: 55%; }
.infobox {
    position: relative;
    border-radius: 8px;
    width: 460px;
    max-width: 100%;
    height: 460px;
    max-height: auto;
    margin-top: 3.5rem;
    padding: 1rem 2rem;
    background: url('../images/bgr-infobox.webp') repeat 0 0;
}
.infobox img {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 260px;
    z-index: 1;
}
.infobox p { 
    margin: 0.4rem 0; 
    font-weight: bold;
}
.infobox ul {
    list-style: none;
    margin: -0.2rem 0 -0.75rem 0;
    padding: 0 0 1rem 0;
}
.infobox li {
    display: flex; 
    align-items: center; 
    padding: 0.2rem 0;
}
.infobox li::before {
    content: "";
    width: 10px;
    height: 10px;
    background: #FECC03;
    border-radius: 5px;
    margin-right: 0.75rem;
}

form, #contact-info ul  {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 14px;
    margin-top: -0.5rem;
}
.field-group { font-size: 1rem; }
.field-group input[type="text"]{
    border: 1px solid rgba(112,112,112, 0.5);
    width: calc(100% - 1.5rem);
    font-size: 1rem;
    font-family: "RobotoSlab", sans-serif;
    font-weight: bold;
    color: #223867;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    transition: all 0.25s ease-in-out;
}
.field-group input[type="text"]:focus, form button:hover {
    border-color: #23376C;
    box-shadow: 0px 1px 4px rgba(35, 55, 108, 0.35);
    outline: none;
}
.field-group input[type="text"]:hover { box-shadow: 0px 1px 4px rgba(35, 55, 108, 0.25); }
.radio-group {
    display: flex;
    flex-flow: column;
    gap: 0.5rem;
}
.radio-group p:first-child { margin: 0 0 0.25rem 0; }
form button {
    background: #FECC03;
    color: #081025;
    font-family: "RobotoSlab", sans-serif;
    font-size: 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0.85rem;
    cursor: pointer;
    display: inline;
    width: 140px;
    transition: all 0.25s ease-in-out;
    margin-top: 0.85rem;
}
#contact-info { margin: 3.25rem 0 4rem 0; }
#contact-info ul {
    list-style: none;
    padding-left: 0;
}
#contact-info ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

footer {
    background-color: #081024;
    padding: 1rem 50px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

footer a { transition: all 0.25s ease-in-out; }
footer span {
    font-size: 0.8rem;
    opacity: 0.85;
    line-height: 1.5;
}
footer ul.nav, footer .social-media ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}
footer ul.nav { align-self: center; }
footer ul.nav a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
footer ul.nav a:hover { border-bottom: 1px solid #FECC03; }
footer .social-media { 
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
footer .social-media a { opacity: 0.85; }
footer .social-media a:hover { opacity: 1; }
footer .bayernliga { width: 80px; }
footer .social-media ul, footer ul.nav { padding-left: 0; }

.message-wrapper { 
    height: 100vh;
    /* This part is important for centering the content */
    display: flex;
    align-items: center;
    justify-content: center;
    /* End center */
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #23376C99;
}
.message { 
    border-radius: 8px;
    position: relative;
    width: 500px;
    max-width: 90%;
    background: #fff;
    padding: 1em 2em;
    box-shadow: 0px 4px 28px 6px #23376C99;
}
.message button {
    border: 1px solid #23376C;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    background: transparent;
}
button.message-close { 
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border-radius: 12px;
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 1rem;
}

@media screen and (max-width: 1420px) {
    header h1 { width: 70%; }
    #benefits { margin-top: -170px; }
    footer .goolie { right: 30px; }
    .infobox {width: 80%; }
}
@media screen and (max-width: 1320px) {
    footer { flex-flow: column; }
    .bayernliga { 
        position: absolute; bottom: 1rem; right: 1rem; }
}
@media screen and (max-width: 1280px) {
    header {
        background-size: 1320px;
        min-height: 604px;
    }
    header h1 { 
        width: 65%;
        font-size: 2.5rem;
    }
    #benefits { margin-top: -150px; }
    .infobox { 
        width: 75%;
        height: 510px; 
    }
    .infobox img { bottom: -4rem; }
    footer .goolie { display: none; }
}
@media screen and (max-width: 1180px) {
    header { 
        background-size: 1140px;
        min-height: 524px;
    }
    header img { 
        width: 180px;
        margin-top: 2.5rem;
    }
    header h1 { font-size: 2.25rem; }
    #benefits { margin-top: -110px; }
    #book-appointment .webform, #contact-info { 
        width: auto;
        padding: 0 4.5rem; 
    }
    #book-appointment {
        grid-template-columns: 1fr;
        row-gap: 3rem; 
        max-width: 100%; 
    }
    .infobox {
        background-size: 100%;
        width: calc(90% - 6.75rem);
        margin: 0 4.5rem 1.5rem 4.5rem;
        height: min-content;
        padding-bottom: 2.5rem;
    }
}
@media screen and (max-width: 880px) {
    header, #benefits, #book-appointment .webform, #contact-info, footer { 
        padding-left: 30px; 
        padding-right: 30px;
    }
    header {
        background-size: 920px;
        min-height: 422px;
    }
    header h1 { 
        margin-top: 220px; 
        color: #081025; 
    }
    #benefits { 
        margin-top: 0rem;
    }
    .infobox { 
        width: calc(90% - 60px);
        margin-left: 30px;
        margin-right: 30px;
    }
}
@media screen and (max-width: 720px) {
    header { 
        background-size: 770px;
        min-height: 320px;
    }
    header img { margin-top: 2rem; }
    header h1 { 
        width: 100%; 
        margin-top: 215px;
        margin-bottom: 0.5rem;
    }
    .infobox { 
        width: calc(90% - 80px);
    }
    #contact-info ul { 
        margin-top: 1rem;
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }
    footer ul.nav { 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 0;
    }
    footer ul.nav li { margin: 0.5rem 1rem; }
}
@media screen and (max-width: 560px) {
    header {
        background-size: 680px;
        min-height: 260px;
    }
    header img { width: 170px; }
    header h1 { 
        font-size: 2.2rem; 
        margin-top: 175px;
        margin-bottom: 0.85rem;
    }
    #benefits li {
        display: block;
        position: relative;
        padding: 0.35rem 0 0.35rem 1.4rem
    }
    #benefits li:before {
        display: block;
        position: absolute;
        top: 14px;
        left: 0;
    }
    #benefits li span { padding: 0; }
    form, #contact-info ul {
        grid-template-columns: 1fr; 
    }
}
@media screen and (max-width: 480px) {
    header, #benefits, #book-appointment .webform, #contact-info, footer { 
        padding-left: 16px; 
        padding-right: 16px;
    }
    header { background-size: 560px; }
    header img { 
        width: 150px; 
        margin-top: 1.25rem; 
    }
    header h1 { 
        margin-top: 165px; 
        font-size: 2rem;
    }
    #contact-info li { word-break: break-all; }
    footer .social-media { align-self: flex-start; }
    .infobox { 
        width: auto; 
        margin: 0 16px 0.5rem 16px; 
    }
    .infobox img { display: none; }
}