/*
------------------------------------------------------
---------------------SLIDESHOW------------------------
------------------------------------------------------
*/

#referenzen {
    width: 100%;
    background: var(--pink);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0px;
}

.slideshow-container {
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 70px;
    overflow: auto;
}

/* Style the scrollbar track (the part the thumb slides within) */
div::-webkit-scrollbar {
	width: 4px;
    height: 4px; /* If horizontal scrollbar exists, it will also be skinny */
}
  
/* Style the scrollbar handle (the draggable part) */
div::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2); /* color of the handle */
    border-radius: 999px; /* rounded corners */
}
  
/* Style the scrollbar handle when hovering */
div::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0,0,0,0.2); /* color when hovering */
}
  
/* Style the scrollbar track when hovering */
div::-webkit-scrollbar-track {
    background: rgba(0,0,0,0); /* color of the track */
}

.slideshow-element {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: var(--black);
    font-family: roboto-bold;
    text-transform: uppercase;
    font-size: 16pt;
    filter: grayscale(1);
	margin-bottom: 10px;
}

.slideshow-element img {
    height: 50px;
}

/*
------------------------------------------------------
-----------------------CONTENT------------------------
------------------------------------------------------
*/

.dark {
    background: var(--black);
    color: var(--white);
}

.light {
    background: var(--white);
    color: var(--black);
}

.content {
    padding: 80px 0px;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--edge-padding) 0;
}

.content-container {
    max-width: var(--max-width);
    width: 100%;
    padding: 0 var(--edge-padding);
    box-sizing: border-box;
    font-family: roboto;
}

.content-title {    
    margin: 40px 0;
    margin-bottom: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .8em;
}

.content-scroll-container {
    display: flex;
    flex-direction: column;
}

.content-stick {
    opacity: 0;
    transition: opacity 333ms ease-in-out;
    margin-top: 20px;
    margin-bottom: 100px;
}

.content-stick img {
    width: 100%;
}

.content-scroll {
    width: 100%;
}

.content-scroll h2 {
    font-family: velodroma-wide;
    position: relative;
    z-index: 2;
}

.content-scroll .cta {
    margin-top: 20px;
    font-size: var(--font-small);
}

/*.content-scroll:nth-of-type(n) h2::after {
    content: "";
    background: var(--pink-gradient);
    height: 100%;
    aspect-ratio: 1;
    display: block;
    position: absolute;
    top: 5px;
    left: 5px;
    bottom: 0px;
    z-index: -1;
}*/

.content-scroll h3 {
    font-family: roboto-black;
    font-size: var(--font-medium);
    padding: 10px 0 15px 0;
}

.content-scroll p {
    font-family: roboto-medium;
    font-size: var(--font-medium);
    margin: 0;
}

@media screen and (min-width: 721px) {
    .content-scroll-container {
        align-items: center;
        display: grid;
        flex-direction: column;
        grid-template-rows: auto;
        grid-template-columns: repeat(12, 1fr);
        grid-auto-rows: 1fr;
    }

    .dark .content-scroll {
        grid-column: 7 / 13;
        padding-bottom: 400px;
        margin-top: 10px;

        display: flex;
        flex-direction: column;
    }

    .content-scroll {
        grid-column: 1 / 7;
        padding-bottom: 30vh;
        margin-top: 10px;

        display: flex;
        flex-direction: column;
    }
    
    .dark .content-stick {
        grid-area: 1 / 1 / auto / 6;
        position: sticky;
        top: calc(50%);
        transform: translateY(-50%);
        margin: 0; padding: 0;
        margin-top: 175px;
    }

    .content-stick {
        grid-area: 1 / 8 / auto / 13;
        position: sticky;
        top: calc(50%);
        transform: translateY(-50%);
        margin: 0; padding: 0;
        margin-top: 175px;
    }

    .content-stick img {
        max-width: 100%;
        height: 100%;
    }
}


/*
------------------------------------------------------
--------------------CTA-ELEMENT-----------------------
------------------------------------------------------
*/

.cta-element {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 0px;
    transition: .5s ease-in-out;
}

.cta-item {
    width: 10%;
    overflow: hidden;
    height: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    box-sizing: border-box;
    padding: 10px 20px;
    transition: .5s ease-in-out;
    font-family: velodroma-wide;
    flex-grow: 1;
    position: relative;
    color: var(--white);
}

.cta-item .darken {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 80%);
    z-index: 2;
}

.cta-item .image {
    mix-blend-mode: darken;
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s ease-in-out;
}
.cta-item .image {
    filter: blur(0px);
    transform: scale(1);
}
.cta-item:hover .image {
    filter: blur(20px);
    transform: scale(3);
}

.cta-item p {
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 3;
    text-align: right;
}




.cta-item:nth-of-type(1) {
    background: var(--blue-gradient);
}
.cta-item:nth-of-type(2) {
    background: var(--green-gradient);
}
.cta-item:nth-of-type(3) {
    background: var(--pink-gradient);
}

.cta-item:hover {
    width: 80%;
    cursor: pointer;
}

.cta-item:hover .cta-item {
    width: auto;
}.cta-item:hover .cta-item:nth-of-type(1) {
    width: auto;
}


@media screen and (max-width: 870px) {
    .cta-element {
        display: flex;
        flex-direction: column;
    }
    .cta-item {
        width: 100%;
        font-size: var(--font-large);
        white-space: normal; 
    }
    .cta-item:hover {
        width: 100%;
    }
}

@media screen and (max-width: 560px) {
    .cta-item {
        width: 100%;
        font-size: var(--font-medium);
    }
}


/*
------------------------------------------------------
----------------------CONTACT-------------------------
------------------------------------------------------
*/

#kontakt {
    background: var(--white);
    padding: 100px var(--edge-padding);
    text-align: center;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    max-width: (var(--max-width));
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    max-width: var(--max-width);
    gap: 10px;
}

.contact-form h1 {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-form h2 {
    margin-top: .8em;
    margin-bottom: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 5px;
}

.form-group label {
    font-family: velodroma-superwide;
    font-size: var(--font-small);
}

.form-group label::after {
    content: "*";
    color: var(--pink);
}

.form-group input, .form-group textarea {
    font-family: roboto-medium;
    font-size: var(--font-medium);
    padding: 10px;
    border: 1px solid var(--black);
    font-family: roboto;
    background: var(--white);
    color: var(--black);
}

.form-group textarea {
    resize: vertical; /* Allows resizing only in the y-direction */
    overflow: auto;   /* Ensures scrollbars appear if content exceeds height */
    height: 200px;
}

.contact-form button {
    border: none;
    font-variant-ligatures: none;
    font-size: var(--font-medium);
}

.cf-message {
    width: 100%;
    text-align: left;
    padding: 10px;
    box-sizing: border-box;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


@media screen and (max-width: 630px) {
}

/*
------------------------------------------------------
----------------------FOOTER--------------------------
------------------------------------------------------
*/

footer {
    background: var(--pink-gradient);
    color: var(--black);
    padding: 100px;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

footer div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
}

footer img {
    max-height: 50px;
    margin: 0 auto;
}

footer ul {
    padding: 0; margin: 0;
}

footer ul li {
    padding: 0; margin: 0;
    list-style-type: none;
}

footer a::after {
    display: none;
}


@media screen and (max-width: 820px) {
    footer div {
        flex-direction: column;
    }

    footer li {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}