/* =================================== */
/* ============ ALLGEMEIN ============ */
/* =================================== */

.background-cover {
    background-size: cover;
}

.background-contain {
    background-size: contain;
}

.background-inherit{
    background-size: inherit;
}

.background-no-repeat {
    background-repeat: no-repeat;
}

.background-center-center {
    background-position: center center;
}

.background-center-top {
    background-position: center top;
}

.background-right-top {
    background-position: right top;
}

.background-center-right{
    background-position: center right;
}

.background-center-left{
    background-position: center left;
}

.object-position-left{
    object-position: left;
}

.object-position-center{
    object-position: center;
}

.max-width {
    max-width: 1440px;
}

.max-width-lg {
    max-width: 1920px;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-default {
    cursor: default;
}

.image-hover .image-scale{
    transition: all 0.3s;
}

.image-hover:hover .image-scale{
    transform: scale(1.05);
}

.hyphens{
    hyphens: auto;
}

.invert-filter{
    filter: invert(1);
}

.no-margin p, .no-margin h1, .no-margin h2, .no-margin h3, .no-margin h4, .no-margin h5, .no-margin h6, .no-margin a{
    margin-bottom: 0px !important;
}

.vh-35{
    min-height: 35vh;
}

.vh-50{
    height: 50vh;
}

.min-vh-50{
    min-height: 50vh;
}

.max-vh-50{
    max-height: 50vh;
}

.max-vh-60{
    max-height: 60vh;
}

.max-vh-70{
    max-height: 70vh;
}

.vh-80{
    min-height: 80vh;
}

.ellipsis p{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
}

::selection {
    color: #fff;
    background-color: var(--color-kp);
}

.mt-n1{
    margin-top: -5rem !important;
}

html, body {
    margin: 0; 
    padding: 0;
  }
  
#splashscreen {
    position: fixed;          /* so it stays in one place, covers everything */
    top: 0; left: 0;          /* edges */
    right: 0; bottom: 0;
    z-index: 99999;           /* large enough to be on top of everything */
    background: #fff;         /* or any fallback color you like */
    opacity: 1;
    animation: fadeinout 4s linear forwards;  /* your existing animation if desired */
}

@keyframes fadeinout {
    80% {
        opacity: 1;
    }
    100% {
     opacity: 0;
        visibility: hidden;  /* stops user interaction, even if display is not animatable */
    }
}

.no-splash #splashscreen {
    display: none !important;
}

.formie-message p{
    margin-bottom: 0px !important;
}

/* Navigation */

.hamburger-menu{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24.535' height='7' viewBox='0 0 24.535 7'%3E%3Cg id='Hamburger' transform='translate(-254 -48)'%3E%3Cline id='Line_1' data-name='Line 1' x2='24.535' transform='translate(254 48.5)' fill='none' stroke='%235c5743' stroke-width='1'/%3E%3Cline id='Line_2' data-name='Line 2' x2='24.535' transform='translate(254 54.5)' fill='none' stroke='%235c5743' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E%0A");
    height: 10px;
    width: 32.5px;
}

.header-logo{
    width: 125px;
}

header {
    /* The key to smooth changes is defining a transition here */
    transition: padding 0.5s ease, background-color 0.5s ease;
}

.header-opacity{
    background-color: #ffffffd7;
}

#ueber-uns, #team {
    scroll-margin-top: 5rem;
}

#kontakt{
    scroll-margin-top: 3rem;
}

/* Hero */

.hero-left-container{
    padding-left: calc((100% - 1440px + 6rem) / 2);
    padding-right: 3rem;
}

/* Kompetenzen */

.kp-sticky.pinned {
    padding-top: 3rem;
}

.kompetenzen-sticky{
    top: 12rem !important;
    transition: all 0.3s;
}

.accordion-button:not(.collapsed){
    background-color: transparent !important;
}

.accordion-item{
    border-bottom: 0px !important;
}

.accordion-button:focus{
    box-shadow: none !important;
}


.accordion-button::after{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24.535' height='23.74' viewBox='0 0 24.535 23.74'%3E%3Cg id='Plus' transform='translate(-254 -36.63)'%3E%3Cline id='Line_1' data-name='Line 1' x2='24.535' transform='translate(254 48.5)' fill='none' stroke='%23add2d8' stroke-width='1'/%3E%3Cline id='Line_2' data-name='Line 2' y2='23.74' transform='translate(266.267 36.63)' fill='none' stroke='%23add2d8' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E%0A");
    width: 24px;
    height: 24px;
    background-position: center center;
    background-size: cover;
}

.accordion-button:not(.collapsed)::after{
    background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='0 0 24.5 23.7'%3E%3C!-- Generator: Adobe Illustrator 29.2.1, SVG Export Plug-In . SVG Version: 2.1.0 Build 116) --%3E%3Cdefs%3E%3Cstyle%3E .st0 %7B fill: none; stroke: %23add2d8; %7D .st1 %7B display: none; %7D .st2 %7B fill: %23add2d8; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1' class='st1'%3E%3Cg id='Plus'%3E%3Cline id='Line_1' class='st0' y1='11.9' x2='24.5' y2='11.9'/%3E%3Cline id='Line_2' class='st0' x1='12.3' x2='12.3' y2='23.7'/%3E%3C/g%3E%3C/g%3E%3Cg id='Layer_2'%3E%3Crect class='st2' y='11.4' width='24.5' height='1'/%3E%3C/g%3E%3C/svg%3E");
    width: 24px;
    height: 24px;
    background-position: center center;
    background-size: cover;
}

/* Team */

.team-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
}

.dm-flip-card {
    height: 400px;
    background:transparent;
    transform-style: preserve-3d;
}
  
.dm-front-card { 
    backface-visibility: hidden;
    transition: transform 1s;
}
  
.dm-front-card:after {
    content:'';
    position:absolute;
    height:100%;
    width:100%;
    top:0;
    left:0;
    opacity:0.5;
}
    
.dm-back-card {
    backface-visibility: hidden;
    transform:rotateY(180deg);
    transition: transform 1s;
}
  
.dm-flip-card:hover .dm-front-card {
    transform: rotateY(-180deg);
}
      
.dm-flip-card:hover .dm-back-card {
    transform:rotateY(0deg);
}

/* Team 2026 */

.team-grid-2026 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.dm-flip-card-2026 {
    position: relative;
    height: 400px;
    background: transparent;
    transform-style: preserve-3d;
}

.dm-front-card-2026,
.dm-back-card-2026 {
    position: absolute;
    inset: 0;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform 1s;
}

.dm-front-card-2026 img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dm-back-card-2026 {
    background-size: cover;
    background-repeat: no-repeat;
    transform: rotateY(180deg);
}

.dm-back-overlay-2026 {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    background-color: rgba(0, 0, 0, 0.75);
}

.ellipsis-team {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dm-flip-card-2026:hover .dm-front-card-2026 {
    transform: rotateY(-180deg);
}

.dm-flip-card-2026:hover .dm-back-card-2026 {
    transform: rotateY(0deg);
}

/* Kontakt */

.formie-input,
.formie-textarea{
    border-radius: 0px !important;
    border: 1px solid var(--color-kp) !important;
    font-family: 'Helvetica Neue Italic';
    color: var(--color-kp) !important; 
    font-size: 1.25rem !important;
    line-height: 1.375rem !important;
}

.formie-input::placeholder,
.formie-textarea::placeholder{
    font-family: 'Helvetica Neue Italic'; 
    color: var(--color-kp) !important; 
    font-size: 1.25rem !important;
    line-height: 1.375rem !important;
}

.formie-page-container{
    width: 75% !important;
}

.formie-page-buttons{
    width: 25% !important;
    justify-content: center !important;
}

.formie-page{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: end;
}

.formie-textarea{
    min-height: 120px !important;
}

.formie-button-submit{
    background-color: transparent !important;
    border: 0px !important;
    font-family: 'Helvetica Neue Medium' !important;
    color: var(--color-kp) !important; 
    font-size: 1.25rem !important;
    line-height: 1.375rem !important;
    padding: 0px !important;
    text-decoration: underline 1px !important
}

@media only screen and (max-width: 1500px) and (min-width: 1400px)  {

}

@media (max-width: 1600px) {


}

@media (max-width: 1440px) {

    .hero-left-container{
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .team-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-column-gap: 1rem;
        grid-row-gap: 1rem;
    }

    .team-grid-2026 {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {

    .team-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-column-gap: 1rem;
        grid-row-gap: 1rem;
    }

    .team-grid-2026 {
        grid-template-columns: repeat(4, 1fr);
    }

}

@media (max-width: 992px) {

    header{
        background-color: white;
    }

    .header-logo{
        width: 95px;
    }

    .hero-left-container{
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .team-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-column-gap: 1rem;
        grid-row-gap: 1rem;
    }

    .dm-flip-card {
        height: 350px;
        background:transparent;
        transform-style: preserve-3d;
    }

    .mt-n1{
        margin-top: 0px !important;
    }

    .geschichte-container .geschichte-headline{
        display: none;
    }

    .geschichte-container:first-child .geschichte-headline{
        display: block;
    }

    .formie-page-container{
        width: 100% !important;
    }
    
    .formie-page-buttons{
        width: 100% !important;
        justify-content: start !important;
    }

    .dm-flip-card {
        height: 400px;
    }

    .team-grid-2026 {
        grid-template-columns: repeat(1, 1fr);
    }

    #kompetenzen{
        scroll-margin-top: 6rem;
    }

    #ueber-uns, #team, #kontakt{
        scroll-margin-top: 4rem;
    }

    .kompetenzen-sticky{
        position: relative !important;
        top: 0rem !important;
    }

    .start-screen-image{
        background-position: 0px 80px !important;
    }

}

@media (max-width: 768px) {

}

@media (max-width: 576px) {
 
}