/* General Font */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
button,
input,
textarea,
select,
label {
    font-family: 'Inter', sans-serif !important;
}

/* Banner Text */
.banner__content-headline,
.banner__content-text,
.banner__content-text p {
    font-family: 'Inter', sans-serif !important;
}

/* Counter */
.count__number,
.count__name,
.count__progress,
.count__progress span,
.count__progress::before {
    font-family: 'Inter', sans-serif !important;
}

/* Flip Cards */
.flip-card-back {
    font-family: 'Inter', sans-serif !important;
}

/* Banner Zoom*/
.banner__visual img {
    transform: none !important;
}

/* Banner Text*/
.banner__content-headline,
.banner__content-text,
.banner__content-text p {
    font-family: Helvetica !important;
}

/*Contact Button Banner */
.btn-white {
    color:#fff !important;
    background-color:#000 !important;
}
.btn-white:hover {
    color:#000 !important;
    background-color:#fff !important;
}

/*Divider Image height */
.section-divider-image,
.section-divider-image__visual {
    min-height: 350px !important;
}

.section-divider-image {
    margin-bottom: 100px;
}

/*Leistungen */
#leistungen .ce_headline {
    color: #1f1f1f;
}

#leistungen .section-list__item span {
    color: #1f1f1f;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.7;
}
/* Counter*/
#article-15 .count__progress svg path {
    stroke: #244a91 !important;
}¨

.count__number,
.count__name,
.count__progress,
.count__progress span,
.count__progress::before {
    font-family: 'Inter', sans-serif !important;
}

/*News cards Title*/
#neu .listing-card__name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

/*Whitespace Bottom*/
#neu {
    margin-bottom: 100px;
}

/* Global content width */
.container,
.container-md,
.container-lg {
    width: min(1200px, 100%);
    max-width: 1200px !important;
    padding-left: 40px;
    padding-right: 40px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Tablet */
@media (max-width: 991px) {
    .container,
    .container-md,
    .container-lg {
        padding-left: 25px;
        padding-right: 25px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .container,
    .container-md,
    .container-lg {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Footer colour */
.layout-footer {
	background-color:#244a91 !important;
}

input[type="submit"],
button[type="submit"] {
	margin-top: 40px;
    background-color: #fff !important;
    color: #000 !important;

    border: none !important;
    box-shadow: none !important;
    outline: none !important;

    padding: 14px 30px;
    transition: 0.2s ease;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: #555555 !important;
    color: #fff !important;
}


/* Changes for Mobile */
@media (max-width: 575.98px) {
    .banner-text {
        margin-top: 40px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .section-divider-image {
        margin-bottom: 20px;
    }
}

/* Gallery Updates*/
.flip-gallery {
    display: grid !important;
    grid-template-columns: repeat(5, 450px) !important;
    justify-content: center !important;
    justify-items: center !important;
    align-items: start !important;
    gap: 25px !important;
    margin: 60px auto !important;
    width: 100% !important;
    box-sizing: border-box;
}

.flip-card {
    width: 450px !important;
    height: 450px !important;
}
/*.flip-gallery {
    display: grid !important;
    grid-template-columns: repeat(5, 450px) !important;
    justify-content: center !important;
    justify-items: center !important;
    gap: 25px !important;
    margin: 60px auto !important;
    width: 100% !important;
    box-sizing: border-box;
}

.flip-card {
    width: 450px !important;
    height: 450px !important;
}*/

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    overflow: hidden;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flip-card-back {
    background: #f5f5f7ff;
    color: #000000;
    transform: rotateY(180deg);

    display: flex;
    flex-direction: column;
    justify-content: center;   /* vertical centering */
    align-items: center;       /* horizontal centering */

    padding: 25px;
    text-align: center;
    box-sizing: border-box;

    font-family: 'Inter', sans-serif !important;
}

.flip-card-back h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Inter', sans-serif !important;
}

.flip-card-back p {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.4;
    font-family: 'Inter', sans-serif !important;
}

.flip-card-back p:last-child {
    margin-bottom: 0;
}

.flip-gallery {
    justify-content: center !important;
}

@media (max-width: 2400px) {
    .flip-gallery {
        grid-template-columns: repeat(4, 450px) !important;
    }
}

/* Small laptop / iPad landscape */
@media (max-width: 1900px) {
    .flip-gallery {
        grid-template-columns: repeat(3, 450px) !important;
    }
}

/* iPad Portrait */
@media (min-width: 768px) and (max-width: 1023px) {
    .flip-gallery {
        grid-template-columns: repeat(2, 350px) !important;
    }

    .flip-card {
        width: 350px !important;
        height: 350px !important;
    }
}

/* iPad Landscape */
@media (min-width: 1024px) and (max-width: 1366px) {
    .flip-gallery {
        grid-template-columns: repeat(3, 350px) !important;
    }

    .flip-card {
        width: 350px !important;
        height: 350px !important;
    }
}

/* Phone */
/* Phone landscape */
@media (min-width: 650px) and (max-width: 900px) {
    .flip-gallery {
        grid-template-columns: repeat(2, 330px) !important;
    }

    .flip-card {
        width: 330px !important;
        height: 330px !important;
    }
}

/* Phone portrait */
@media (max-width: 649px) {
    .flip-gallery {
        grid-template-columns: 330px !important;
    }

    .flip-card {
        width: 330px !important;
        height: 330px !important;
    }
}
