/*
 Theme Name:   Hello Biz Child
 Theme URI:    freudbergschule-website
 Description:  Child theme for Hello Biz
 Author:       Webeeline
 Author URI:   freudbergschule-website
 Template:     hello-biz
 Version:      1.0.0
*/
.fixed-header {
    width: 100%;
    background: #333;
    color: white;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease; /* płynne przejścia */
}

/* dodatkowe efekty dopiero po scrollu */
.fixed-header.visible {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 20px; /* opcjonalne zmniejszenie wysokości */
}

.fixed-header .main-logo img {
    max-width: 140px;
    transition: max-width 0.3s ease;
}

.fixed-header.visible .main-logo img {
    max-width: 100px; /* płynnie zmniejsza się logo */
}

/* animacja pojawienia się */
@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.red-triangle {
    position: relative;
    display: inline-block; /* żeby pseudo-element miał punkt odniesienia */
}

.red-triangle::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-right: 50px solid transparent;
    border-bottom: 50px solid #E2001A;

}

.ss-button {
    transition: all 0.3s ease;
}

/* BACK – tekst */
.bg-deep-teal {background-color:#00978F;}
.bg-amber-orange {background-color:#F7A600;}
.bg-lime-green {background-color:#AFCA42;}
.bg-crimson-red {background-color:#E2001A;}
.bg-blue {background-color:#57B7E4;}


.flip-container {
    perspective: 1000px;
    width: 100%;
    max-width: 320px;
    /*height: 300px;*/
    cursor: pointer;
    /*touch-action: manipulation; !* lepsze wykrywanie tap *!*/
}

.flipper {
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
    position: relative;
    cursor: pointer;
    touch-action: manipulation;
}

/* Obrocenie całego flippera */
.flip-container:hover .flipper {
    transform: rotateY(180deg);
}


/* FRONT i BACK jako bloki, bez absolute */
.front, .back {
    width: 100%;
    height: 100%;
    overflow: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* FRONT – grafika jako <img> */
.front {
    transform: rotateY(0deg);
}
.front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.front.person{
    position: relative;
    overflow: hidden;
}

.front.person:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;

    border-right: 50px solid #fff;
    border-bottom: 50px solid #E2001A;
}
/* BACK – tekst */
.back {
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transform: rotateY(180deg);
    position: absolute;
    top: 0;
    left: 0;
}
.front {
    position: relative;
}
.front-content.team {
    position: absolute;
    z-index: 1;
    bottom: 0;
    width: 100%;
    background: #ffffff87;
    padding: 10px 15px;
    text-align: center;
}
.front-content h3{

}
.front-content p{

}
.back-content p {
    font-size: 0.8rem;
    line-height: 1.4;
}
@media (max-width: 1224px) {
    .back-content p {
        font-size: 0.76rem;
        line-height: 1.4;
    }
}


@media (max-width: 1024px) {
    .grid-columns {
        --e-con-grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 1024px) {
    .flip-container.zoomed {
        transform: scale(1.2);
        transition: transform 0.8s ease;
        margin-top:20px;
        margin-bottom:20px;
    }
    .flipper.flipped {
        transform: rotateY(180deg);
        transition: transform 0.8s ease;
    }
    .back-content p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

@media (max-width: 680px) {
    .grid-columns .back-content p {
        font-size: 0.7rem;
    }
    .grid-columns .back {
        padding:10px;
    }
}
@media (max-width: 610px) {
    .grid-columns .back-content p {
        font-size: 0.63rem;
    }
}
@media (max-width: 560px) {
    .grid-columns {
        --e-con-grid-template-columns: repeat(1, 1fr) !important;
    }
   .grid-columns .back-content p {
        font-size: 0.8rem;
        /*word-break: break-all;*/
    }
    .flip-container.zoomed {
        margin-top:20px;
        margin-bottom:20px;
    }
}


.back-content.team p{
    font-size: 1rem;
}
.school-journey-set .flipper {
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);*/
}
.school-journey-set .flipper .front{
    position: relative;
    display: inline-block;
}
.school-journey-set .flipper .front:after{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-right: 30px solid #fff;
    border-bottom: 30px solid #E2001A;
}

.school-journey-set .front-content p.before {
    padding:5px 5px 0px;
    margin:0;
    font-weight:600;
    display: flex;
    align-content: center;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    font-size:13px
}

.school-journey-set .front-content p.after{
    margin:0;
    padding:0px 5px 10px;
    font-weight: 400;
    /*font-style:italic;*/
    font-size:10px;
    text-align: center;

}
.school-journey-set .back {

}
.school-journey-set .back-content p{
    font-size: 0.7rem;
    /*word-break: break-all;*/
    text-align: left;
}
@media (max-width: 767px) {
    .school-journey-set .back-content p {
        font-size: 0.7rem;
        word-break: break-all;
    }
}
.download-file {
  width:300px;
}
@media (min-width: 1600px) {
    .schulleben-img img{
        background-position: top center;
        /*width: 100% !important;*/
    }
}

.schulleben-content {
    max-width: 680px;
}

.arrow-btn .elementor-button-icon svg {
    width: 2em;
}

