html {
    scroll-padding-top: 100px;
}

button,
button:hover,
button:focus {
    background-color: #5AB031;
    color: white;
    border: none;
}

a,
a.elementor-button:hover,
li.menu-item a:hover {
    text-decoration: none !important;
}

a:hover {
    text-decoration: underline !important;
}

.buttonStyle,
.buttonStyle:hover,
.buttonStyle:focus,
input[type="submit"],
input[type="submit"]:hover,
input[type="submit"]:focus {
    background-color: #5AB031;
    color: white !important;
    border: none;
    border-radius: 3px;
    display: inline-block;
    font-size: 1rem;
    font-weight: 400;
    padding: .5rem 1rem;
    text-align: center;
    text-decoration: none !important;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    border: 0;
    background-color: rgba(80, 83, 90, 0.1);
}

input::placeholder {
    color: rgba(80, 83, 90, 1);
    opacity: 1;
}

input+span {
    margin-top: 5px;
}

.entry-title {
    padding-left: 0px !important;
}

.newsletterDiv form {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    column-gap: 20px;
    row-gap: 10px;
}

.newsletterMailDiv {
    flex-basis: 100%;
}

@media only screen and (max-width: 768px) {
    .newsletterDiv form {
        flex-direction: column;
    }

    .newsletterMailDiv {
        width: 100%;
    }
}

.kontaktformularDiv label {
    width: 100%;
}

.maxWidth1920 {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
}

#subMenuItem {
    position: absolute;
    background-color: rgba(90, 176, 49, 0.7);
    width: max-content;
    height: 80%;
    display: flex;
    align-items: center;
}

#subMenuItem a {
    color: white;
    line-height: 1.5em;
    padding: 10px 20px;
}

@media only screen and (max-width: 768px) {
    li.menu-item {
        width: 100%;
        text-align: center;
    }

    #subMenuItem {
        height: auto;
        max-width: 100%;
    }
}

/* Move Title of posts on Homepage over the image */
.eael-grid-post-holder-inner {
    position: relative;
}

.eael-entry-wrapper,
.overlappingTextBottom {
    padding: 5px 10px !important;
    position: absolute;
    bottom: 0;
    background-color: rgba(80, 83, 90, 0.9);
    width: 100%;
}

.overlappingTextBottom {
    padding: 10px !important;
}

.overlappingTextTop {
    padding: 10px;
    position: absolute;
    top: 0;
    background-color: rgba(80, 83, 90, 0.9);
    width: 100%;
}

.eael-entry-title {
    font-size: 1.4em !important;
    margin: 0px;
}

.eael-post-grid-container .eael-post-grid {
    margin: 0px !important;
}

.eael-grid-post-link {
    color: white !important;
}

@media only screen and (max-width: 768px) {
    /* Reduce padding for smaller screens */
    .eael-post-grid-container .eael-post-grid .eael-grid-post {
        padding: 5px !important;
    }
}

/* Formatting for text blocks in posts */
.wp-block-media-text {
    grid-gap: 20px;
}
.wp-block-media-text>.wp-block-media-text__content {
    padding: 0px;
    align-self: start;
}


.wpka_tooltip {
    display: inline-block;
    position: relative;
    text-align: center;
    background-color: #5AB031;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    font-size: 14px;
    line-height: 17px;
    top: -9px;
    left: 3px;
    cursor: default;
}

.wpka_quizTooltipWrapper {
    white-space: nowrap;
}

.wpka_quizTooltip {
    white-space: normal;
    top: -12px;
}

.wpka_tooltip:before {
    content: '?';
    font-family: "QuboBold";
    color: #fff;
}

@media (hover: hover) {

    /* Show tooltip on hover if the screen is not a touchscreen */
    .wpka_tooltip:hover div {
        display: block;
        transform-origin: 100% 0%;

        -webkit-animation: fadeIn 0.3s ease-in-out;
        animation: fadeIn 0.3s ease-in-out;
    }
}

@media (hover: none) {

    /* Toggle tooltip on click if the screen is a touchscreen (function to toggle is defined in courseTable.js) */
    .wpka_tooltip div.active {
        display: block;
        transform-origin: 100% 0%;

        -webkit-animation: fadeIn 0.3s ease-in-out;
        animation: fadeIn 0.3s ease-in-out;
    }
}

.wpka_tooltip div {
    display: none;
    text-align: left;
    background-color: #5AB031;
    padding: 10px;
    width: 400px;
    position: absolute;
    bottom: 21px;
    left: -5px;
    border-radius: 3px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    color: #FFF;
    font-size: 15px;
    line-height: 1.4;
    z-index: 99;
}

.wpka_tooltip div:before {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-top-color: #5AB031;
    left: 7px;
    bottom: -12px;
}

.wpka_quizTooltip div {
    left: auto;
    right: -5px;
    width: 340px;
}

.wpka_quizTooltip div::before {
    left: auto;
    right: 6px;
}

.wpka_tooltip div:after {
    width: 100%;
    height: 40px;
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0;
}

@media only screen and (max-width: 545px) {
    .wpka_tooltip div {
        width: 250px;
    }

    .wpka_tooltip:not(.wpka_quizTooltip) div {
        left: -79px;
    }

    .wpka_tooltip:not(.wpka_quizTooltip) div:before {
        left: 81px;
    }
}

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }

    100% {
        opacity: 100%;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 100%;
    }
}

.wpka_loadingSpinner {
    border: 8px solid rgba(80, 83, 90, 0.3);
    border-top: 8px solid #5AB031;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: auto;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.margin-right-auto {
    margin-right: auto;
}

@media screen and (max-width: 768px) {
    #wpka_headerLogo {
        width: 100px;
    }
}

/* Fix counter element being wider than needed */
#ctrbCounters-1 {
    margin-inline: auto;
}

@media screen and (max-width: 600px) {
    .wp-block-media-text__content {
        padding: 15px 0px !important;
    }
}

.homepageVideo video {
    height: calc(100vh - 220px) !important;
}

@media screen and (max-width: 767px) {
    .homepageVideo {
        top: 100px !important;
    }

    .homepageVideo video {
        height: calc(100vh - 100px) !important;
    }
}