:root {
    --nav-height: 80px;
    --footer-height: 80px;
    --clr-primary: #00184c;
    --clr-secondary: rgb(0, 207, 203);
}

@font-face {
    font-family: "Titillum-Web-Rg";
    src: url('../fonts/TitilliumWeb-Regular.woff') format('woff'), url('../fonts/TitilliumWeb-Regular.woff2') format('woff2');
}

html {
    scroll-behavior: smooth;
    position: relative;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding-bottom: var(--footer-height);
    min-height: 100vh;
    background-color: var(--clr-primary);
    color: white;
    line-height: 1.7em;
    font-weight: 500;
    font-family: 'Source Sans Pro',sans-serif;
    box-sizing: border-box;
    position: relative;
    height: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.col-12, .col-11, .col-10, .col-9, .col-8, .col-7, .col-6, .col-5, .col-4, .col-3, .col-2, .col-1, .col-auto {
    z-index: 1;
}

hr {
    background-color: var(--clr-secondary);
}

.back-btn {
    width: fit-content;
    display: block;
    margin-inline: auto;
}

.particles-js-canvas-el {
    cursor: cell !important;
}

.custom-button {
    border-radius: 10px;
    padding: .7rem 2rem;
    font-weight: 600;
    filter: drop-shadow(3px 3px 7px #00CFCB);
    inset: 2px;
    line-height: 1.7em !important;
    position: relative;
    overflow: hidden;
    display: flex;
    width: fit-content;
    height: fit-content;
}

    .custom-button > span {
        color: var(--clr-primary) !important;
        z-index: 1;
    }

    .custom-button:before {
        content: '';
        border-radius: 10px;
        position: absolute;
        background: var(--clr-secondary);
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
    }

    .custom-button:after {
        content: '';
        border-radius: 10px;
        position: absolute;
        inset: 2px;
        background-color: white;
    }

    .custom-button:hover > span {
        color: white !important;
    }

    .custom-button:hover::before {
        content: '';
        position: absolute;
        width: 105%;
        height: 80%;
        background: var(--clr-secondary);
        animation: rotate 2.5s linear infinite;
        left: 0%;
    }

    .custom-button:hover::after {
        content: '';
        position: absolute;
        inset: 2px;
        background-color: var(--clr-primary);
    }

#scrollDownBtn {
    position: absolute;
    width: 50px;
    height: 50px;
    bottom: 5%;
    left: calc(50% - 25px);
    background-image: url(../elements/arrow_down.svg);
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: 50%;
    animation: 1s up-and-down ease-in-out infinite;
}

#start-der-seite {
    scroll-margin-top: calc(var(--nav-height) - 5px);
}

@keyframes up-and-down {
    0% {
        transform: translateY(0%);
    }

    25% {
        transform: translateY(10%);
    }

    50% {
        transform: translateY(0%);
    }

    75% {
        transform: translateY(-10%);
    }

    100% {
        transform: translateY(0%);
    }
}

#scrollDownBtn:hover {
    cursor: pointer;
}

#scrollToTop {
    visibility: hidden;
    right: 5%;
    width: 50px;
    background-color: var(--clr-secondary);
    height: 50px;
    position: fixed;
    bottom: 10%;
    border-radius: 10px;
    opacity: 0;
    background-image: url(../elements/arrow_up.svg);
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: 50%;
    transition: all .3s ease-in-out;
    z-index: 2;
    border: 2px solid transparent;
}

    #scrollToTop:hover {
        opacity: 1 !important;
        cursor: pointer;
        border: 2px solid white;
    }

    #scrollToTop.scrollTop-show {
        visibility: visible;
        opacity: 0.8;
    }

.w-fit-c {
    width: fit-content !important;
}

.h-fit-c {
    height: fit-content !important;
}

.bg-box {
    height: 100%;
    border-radius: 10px;
    background-color: rgba(12, 31, 101, 0.8);
    color: white;
    border: none;
    box-shadow: 0 0 1rem .1rem rgba(0, 207, 203,.5) !important;
}

/* --- Navigation --- */
.navbar {
    background-color: white;
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 3;
    transition: all 0.3s ease-in-out;
    height: auto;
    visibility: hidden;
    opacity: 0;
}

.navbar-hidden {
    background-color: white;
    width: 100%;
    position: fixed;
    transition: all .3s ease-in-out;
    z-index: 2;
    visibility: hidden;
    transform: translateY(-65%);
    border-bottom: 3px solid rgba(0, 207, 203,.5) !important;
    display: block;
    top: 0;
}

.navbar-visible {
    visibility: visible;
    transform: translateY(40%);
}

.nav-show {
    visibility: visible;
    opacity: 1;
    display: block;
}

.navbar-collapse.show {
    top: 220%;
}

.navbar-nav {
    flex-direction: row;
}

#logo {
    height: 60px;
}

#progress-bar {
    width: 100%;
    height: 4px;
    background: lightgray;
    bottom: 0;
    position: absolute;
}

#progress-line {
    z-index: 2;
    width: 0%;
    height: 4px;
    background: var(--clr-secondary);
    bottom: 0;
    position: absolute;
}

.navbar-toggler {
    padding: 0;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: none;
    position: relative;
    margin-right: -1rem;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

.nav-toggler-line {
    position: absolute;
    width: 70%;
    height: 7px;
    background-color: #103f73;
    transform: translateX(-50%);
    transition: all 0.4s;
}

#navTogglerLine1 {
    top: 24%;
}

    #navTogglerLine1.selected {
        top: 8%;
        transform: rotate(-45deg) translateX(-70%);
        height: 7px;
    }

#navTogglerLine2 {
    top: 44%;
}

    #navTogglerLine2.selected {
        opacity: 0;
    }

#navTogglerLine3 {
    top: 64%;
}

    #navTogglerLine3.selected {
        top: 77%;
        transform: rotate(45deg) translateX(-70%);
        height: 7px;
    }

/* --- Verlinkungen --- */
.linkText {
    text-decoration: underline;
    color: white !important;
    box-shadow: inset 0 0 0 0 var(--clr-secondary);
    color: #54b3d6;
    padding: 0 .25rem;
    margin: 0 -.25rem;
    transition: color .5s ease-in-out, box-shadow .5s ease-in-out;
    width: fit-content;
}

    .linkText:hover, .linkText:focus, .linkText:active {
        color: black !important;
        box-shadow: inset 500px 0 0 0 var(--clr-secondary)
    }

.scroll-element {
    scroll-margin-top: 100px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Titillum-Web-Rg',sans-serif;
}

h2 {
    font-size: 2.5rem;
}

.text {
    font-size: 1.2rem;
    line-height: 1.4rem;
}

.heading {
    display: block;
    padding-bottom: 40px;
    position: relative;
    width: fit-content;
}

    .heading::after {
        height: 10px;
        width: 10000px;
        bottom: 29px;
        content: "";
        background-color: rgba(0, 207, 203, .6);
        position: absolute;
        right: 0;
        z-index: 1;
    }

.heading-right:after {
    left: 0;
}

.heading-center {
    text-align: center;
}

    .heading-center:after {
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: 50%;
    }

.heading-unterseite {
    margin-inline: auto;
    display: block;
    padding-bottom: 10px;
    position: relative;
    width: fit-content;
}

    .heading-unterseite:after {
        height: 10px;
        content: "";
        background-color: rgba(0, 207, 203, .6);
        position: absolute;
        right: 0;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: 50%;
    }

/* +--- Header ---+ */

#header {
    z-index: 1;
    height: 800px;
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(circle at top,rgba(0,53,114,0.77) 25%,rgba(16,21,53,0) 100%);
    background-color: rgba(0,0,0,0);
    border: 2px var(--clr-secondary) solid;
}

    #header::after {
        content: '';
        background-image: radial-gradient(circle at top,rgba(0,53,114,0.77) 25%,rgba(16,21,53,0) 100%);
        background-color: rgba(0,0,0,0);
        height: 100%;
        position: absolute;
        width: 100%;
        top: 0;
        z-index: -1;
    }

    #header video {
        position: absolute;
        bottom: 0;
        transform: translate(-50%);
        height: 100%;
        z-index: -100;
        left: 50%;
    }

    #header h1 {
        font-size: 5rem;
    }

.header-nav {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

#statistik h1 {
    color: var(--clr-secondary);
    font-weight: bold;
}

/* +--- Button ---+ */
/* +--- btn-border-animate ---+ */

.btn-border-animate {
    inset: 2px;
    color: white !important;
    padding: .3em 1em;
    line-height: 1.7em !important;
    border-radius: 0;
    background-color: #103f73;
    position: relative;
    overflow: hidden;
    display: flex;
    width: fit-content;
    height: fit-content;
}

    .btn-border-animate:after {
        content: '';
        position: absolute;
        inset: 2px;
        background-color: #103f73;
    }

    .btn-border-animate:before {
        content: '';
        position: absolute;
        background: var(--clr-secondary);
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
    }

    .btn-border-animate span {
        z-index: 1;
    }

    .btn-border-animate:hover:after {
        content: '';
        position: absolute;
        inset: 2px;
        background-color: var(--clr-primary)
    }

    .btn-border-animate:hover:before {
        content: '';
        position: absolute;
        width: 105%;
        height: 80%;
        background: var(--clr-secondary);
        animation: rotate 2.5s linear infinite;
        left: 0%;
    }

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

    to {
        transform: rotate(360deg);
    }
}

/* +--- Styling Card ---+ */
.card-content > * {
    text-decoration: none;
    color: black;
    font-size: .875rem;
    line-height: 1.3rem;
    color: #333f48;
}


/* +--- GPT ---+ */
.card-content {
    perspective: 1000px;
}

.card {
    transform-style: preserve-3d;
    transform: rotateY(0deg);
}

    .card .front, .card .back {
        position: absolute;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 24px;
        color: white;
    }

    .card .back {
        background-color: #1e90ff;
        transform: rotateY(180deg);
    }

    .card.show {
        transform: rotateY(0deg);
    }

.fade-up-element {
    transform: translateY(100px);
    opacity: 0;
    transition: opacity 1s, transform 1s;
}

    .fade-up-element.show {
        opacity: 1;
        transform: translateY(0);
    }

/* +--- GPT ---+ */

.card {
    height: 100%;
    border-radius: 10px;
    background-color: rgba(12, 31, 101, 0.8);
    color: white;
    border: none;
    box-shadow: 0 0 1rem .1rem rgba(0, 207, 203,.5) !important;
    transition: all .5s ease-in-out;
    padding-top: 1rem;
    padding-bottom: 1rem;
    transform: rotateY(-40deg);
}

.card-header {
    font-weight: bold;
    padding-bottom: 0.4rem;
    text-align: center;
    text-transform: uppercase;
    background-color: transparent !important;
    border-bottom: 0;
}

.card-description {
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8rem;
}

.card:before {
    content: '';
    background: linear-gradient(45deg, #00ffd5, #002bff, #fff);
    background-size: auto;
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(10px);
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
}

.card:hover:before {
    opacity: 1;
}

.card:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 10px;
}

.card svg {
    width: 50px;
    height: 50px;
    fill: var(--clr-secondary);
}

@keyframes glowing {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

#iso-img {
    filter: drop-shadow(3px 3px 7px #00CFCB);
}

/* --- Kontakt --- */
#kontakt svg {
    fill: var(--clr-secondary);
    height: 40px;
    margin-right: 10px;
    /*transition: all .3s ease-in-out;*/
}

.k-linkText {
    width: fit-content;
}

    .k-linkText:hover svg {
        animation: 1s shiver ease-in-out infinite;
    }

#k-logo {
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid var(--clr-secondary);
    filter: drop-shadow(3px 3px 7px #00CFCB);
    height: fit-content;
    width: 40%;
}

.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem var(--clr-secondary), 0 0 0 0.1rem #258cfb;
    filter: drop-shadow(3px 3px 7px #00CFCB);
}

.checkbox-style:hover, .checkbox-style + label:hover {
    cursor: pointer;
}

.checkbox-style {
    width: 25px;
    height: 25px;
    vertical-align: middle;
    border: 2px solid var(--clr-secondary);
    -webkit-appearance: none;
    border-radius: 5px;
    outline: none;
    background-size: contain;
    margin-right: 10px;
    min-width: 25px;
    min-height: 25px;
    background-repeat: no-repeat;
    background-position-x: 50%;
    background-position-y: 50%;
    transition: all .3s ease-in-out;
    background-size: 95%;
}

    .checkbox-style:checked {
        background-image: url(../elements/check.svg);
        transition: 1000ms ease all;
        background-size: 80%;
        background-color: var(--clr-secondary);
        border: 2px solid var(--clr-secondary);
    }

    .checkbox-style:empty {
        transition: 500ms ease all;
    }

.validation-summary-errors {
    color: #fdcf51;
}

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

    12.5% {
        transform: rotate(5deg);
    }

    25% {
        transform: rotate(10deg);
    }

    37.5% {
        transform: rotate(5deg);
    }

    50% {
        transform: rotate(0deg);
    }

    62.5% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(-10deg);
    }

    85.5% {
        transform: rotate(-5deg);
    }

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

.k-linkText div {
    text-decoration: underline;
    color: white !important;
    box-shadow: inset 0 0 0 0 var(--clr-secondary);
    color: #54b3d6;
    padding: 0 .25rem;
    margin: 0 -.25rem;
    transition: color .3s ease-in-out, box-shadow .3s ease-in-out;
}

.k-linkText:hover div, .linkText:focus div, .linkText:active div {
    color: black !important;
    box-shadow: inset 300px 0 0 0 var(--clr-secondary);
}

/* +--- Footer ---+ */

footer {
    position: absolute;
    bottom: 0;
    height: var(--footer-height);
    width: 100vw;
    background-color: white;
    font-size: 1.3rem;
    color: var(--clr-primary);
}

.footer-link {
    color: var(--clr-primary);
    text-decoration: none;
    display: inline-block;
}

    .footer-link:after {
        content: '';
        width: 0px;
        height: 2px;
        display: block;
        background: var(--clr-primary);
        transition: 300ms;
    }

    .footer-link:hover {
        color: var(--clr-primary);
    }

        .footer-link:hover:after {
            width: 100%;
        }

@media screen and (min-width: 1450px) {
    #header video {
        width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 992px) {
    #header h1 {
        font-size: 3.5rem;
    }

    #k-logo {
        width: 50%;
    }

    #logo {
        height: 50px;
    }
}

@media screen and (max-width: 768px) {
    #scrollToTop {
        bottom: 8%;
    }

    #k-logo {
        width: 30%;
        margin-top: 3rem !important;
    }
}

@media screen and (max-width: 576px) {
    #header h1 {
        font-size: 2.7rem;
    }

    .header-nav {
        flex-direction: column;
        margin-top: 3rem !important;
    }

        .header-nav > div {
            margin: auto;
        }

    h2 {
        font-size: 2rem;
    }

    #scrollToTop {
        width: 40px;
        height: 40px;
    }

    #logo {
        height: 40px;
    }

    .navbar-toggler {
        width: 3rem;
        height: 3rem;
    }

    .nav-toggler-line {
        height: 6px;
    }

    #navTogglerLine1 {
        top: 23%;
    }

    .navbar-visible {
        transform: translateY(25%);
    }

    .scroll-element {
        scroll-margin-top: 80px;
    }
}

@media screen and (max-width: 480px) {
    #k-logo {
        width: 40%;
    }

    h2 {
        font-size: 1.7rem;
    }
}

@media screen and (max-width: 400px) {
    #header h1 {
        font-size: 2.3rem;
    }
}
