@font-face {
    font-family: "AvenirNextProBold";
    src: url('../webFonts/AvenirNextProBold/font.woff2') format('woff2'), url('webFonts/AvenirNextProBold/font.woff') format('woff');
}

@font-face {
    font-family: "AvenirNextProMedium";
    src: url('../webFonts/AvenirNextProMedium/font.woff2') format('woff2'), url('webFonts/AvenirNextProMedium/font.woff') format('woff');
}


html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    background-color: #fff;
}

body {
    font-family: "AvenirNextProMedium";
    color: #03142d !important;
    font-size: 1.3rem;
}

#row-after-nav {
    height: 6rem;
}

h1, h2, h3 {
    font-family: "AvenirNextProBold";
}

.bg-blue {
    background-color: #00437a;
}

.nav-full-white {
    background-color: white!important;
}

.color-blue {
    color: #00437a;
}

.color-red {
    color: #d11d48;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

#ueber-uns, #kompetenzen, #portfolio, #referenzen, #team, #kontakt {
    scroll-margin-top: 80px;
}

#row-before-footer {
    height: 10vh;
}

.link-text {
    color: #d11d48;
}

#header {
    width: 100%;
    display: block;
    text-align: center;
    background-image: url(../img/header_opacity.jpg);
    background-size: cover;
    background-position: center;
    padding-top: 9rem;
    padding-bottom: 4rem;
}

#header h2 {
    font-family: AvenirNextProMedium;
}

#header h4 {
    font-size: 2rem;
}

#header img {
    max-width: 30px;
    margin-bottom: 10px;
    margin-right: 10px;
}


hr {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgb(36, 36, 39), rgba(0, 0, 0, 0));
    height: 1px;
    border: 0;
}

.back-btn {
    text-transform: uppercase;
    background-color: #242427;
    width: fit-content;
    min-width: 200px;
    padding-inline: 25px !important;
    border-radius: 0;
    color: white;
    padding: 15px;
    background: linear-gradient(to top, #242427 51%, #d11d48 49%);
    background-position-x: 0%;
    background-position-y: 0%;
    background-size: auto;
    background-size: 100% 200%;
    background-position: right top;
    transition: all 0.3s ease-in-out;
    background-repeat: no-repeat;
}

.back-btn:hover {
    color: white;
    background-position: left bottom;
}

/* +--- Navbar ---+ */
.navbar {
    background-color: rgba(255, 255, 255, 0.3);
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 200;
    transition: all 0.3s ease-in-out;
}

/* +--- Eingefügte Elemente ---+ */

#progress-bar {
    width: 100%;
    height: 4px;
    background: lightgray;
    bottom: 0;
    position: absolute;
}

#progress-line {
    z-index: 2;
    width: 0%;
    height: 4px;
    background: #d11d48;
    bottom: 0;
    position: absolute;
}

#scroll-buttons {
    position: fixed;
    z-index: 2;
    right: 2%;
    bottom: 5%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#scroll-buttons>div {
    border-radius: 5px;
    height: 50px;
    width: 50px;
    background-color: #d11d48;
    opacity: 0.5;
    transition: all 0.3s ease-in-out;
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: 50%;
    outline: 2px solid white;
}

#scroll-buttons>div:hover {
    cursor: pointer;
    opacity: 1;
}

#up-arrow {
    background-image: url(../img/side-btn-pfeil-up.png);
}

#down-arrow {
    background-image: url(../img/side-btn-pfeil-down.png);
}

.scroll-target {
    scroll-margin-top: 100px;
}

/* +--- Ende Eingefügte Elemente ---+ */

.navbar-brand {
    align-items: center;
    display: flex;
    width: 400px;
}

.navbar-toggler {
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: none;
    position: relative;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.nav-item {
    margin-top: 5px;
}

.nav-link {
    width: fit-content;
    text-transform: uppercase;
    margin-inline: auto;
    position: relative;
    padding-bottom: 0;
    color: #00437a!important;
}

.nav-link:hover {
    color: #d11d48!important;
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background-color: #d11d48;
    bottom: 0;
    left: 0;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .3s ease-in-out;
}

.nav-link:hover::before {
    transform-origin: left;
    transform: scaleX(1);
}

.nav-toggler-line {
    position: absolute;
    width: 70%;
    height: 7px;
    background-color: #00437a;
    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;
}

/* +--- Begrüssung ---+ */

#begruessung {
    position: relative;
    margin-top: 2rem;
}

#ueber-uns {
    position: absolute;
    top: 5%;
    width: fit-content;
    height: fit-content;
    background-color: white;
    text-align: center;
    padding: 3rem 3rem 4rem 1.5rem;
}

#termin-btn {
    text-transform: uppercase;
    color: white;
    width: fit-content;
    padding: 10px 20px;
    background: linear-gradient(to right, #080721 50%, #d11d48 50%);
    background-position-x: 0%;
    background-position-y: 0%;
    background-size: auto;
    background-size: 200% 100%;
    background-position: right bottom;
    transition: all 0.3s ease;
    font-weight:bold;
}

#termin-btn:hover {
    color: white;
    cursor: pointer;
    background-position: left bottom;
}

#coworkingCarousel {
    padding: 0;
    position: absolute;
    width: 40%;
    top: -16%;
    right: 7%;
}

/* +--- kompetenzen ---+ */

#kompetenzen {
    background-color: #080721;
    color: white;
}

#kompetenzen h1, #kompetenzen h3 {
    text-transform: uppercase;
}

#kompetenzen h1 {
    color: white;
}

#kompetenzen li {
    margin-top: 20px;
    width: fit-content;
    position: relative;
    text-transform: uppercase;
}

#kompetenzen li:not(.branchen-item) {
    text-decoration: underline;
}

#kompetenzen li:hover:not(.branchen-item) {
    cursor: pointer;
}

#kompetenzen .link-text {
    color: white;
    font-weight: bold;
}

/* +--- Modale ---+ */

.modal-trigger {
    background: linear-gradient(0deg, #d11d48, #d11d48) no-repeat right bottom / 0 100%;
    transition: background-size 350ms;
    background-size: 0%;
}

.modal-trigger:hover, .modal-trigger:focus-visible {
    background-size: 100%;
    background-position-x: left;
    box-shadow: none;
}

.modal-content {
    border-radius: 0;
}

.modal-body {
    background-color: #00437a;
}

.modal-body p {
    text-align: start;
}

.modal-body img:not(.grosses-bild) {
    width: 150px;
}

.modal-footer {
    justify-content: center;
}

.modal-footer .btn-secondary {
    padding-inline: 30px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 0;
    background-color: #d11d48;
    color: white;
    border: none;
}

.modal-footer .btn-secondary:focus, .modal-footer .btn-secondary:hover {
    background-color: #242427;
    box-shadow: none;
}

/* +--- Portfolio ---+ */

#portfolio {
    background: linear-gradient(to bottom, #080721 20%, #d11d48 20.1%);
    color: #00437a;
}

#portfolio h1 {
    color: #00437a;
}

/* +--- Referenzen ---+ */

#referenzen {
    background-color: #00437a;
    color: white;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

#referenzen h1 {
    color: white;
}

#referenzen a {
    width: fit-content; 
    display: block; 
    text-decoration: none;
}

#refenzen-btn {
    color: #00437a;
    width: fit-content;
    padding: 10px 70px;
    background: linear-gradient(to right, #d11d48 50%, white 50%);
    background-size: 200% 100%;
    background-position: right bottom;
    transition: all 0.3s ease;
}

#refenzen-btn:hover {
    color: white;
    background-position: left bottom;
}

.carousel-indicators {
    bottom: -60px;
    font-size: 0;
}

.carousel-indicators li {
    background: #999;
    border-color: transparent;
    box-shadow: inset 0 2px 1px rgba(0,0,0,0.2);
    width: 20px!important;
    height: 20px!important;
    margin: 1px 3px;
    border-radius: 50%;
    border: none;
}

/* +--- Unser Team ---+ */

#team {
    background-color: #080721;
    color: white;
}

#team a {
    text-decoration: none;
}

#team h1 {
    color: white;
}

#team-bilder img {
    border: 3px solid transparent;
}

#team-bilder .fotorahmen:hover img:not(#hier-klicken-icon) {
    border: 3px solid #d11d48;
}

#team-bilder .fotorahmen:hover img {
    cursor: cell;
}

#team-bilder .name {
    font-weight: bold;
}

#team-bilder .beruf {
    font-size: 80%;
}

#hier-klicken-icon {
    position: absolute;
    top: 4%;
    width: 24%;
    right: 11%;
}

.social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social .xing, .social .linkedIn {
    width: 30px;
    display: block;
    height: 30px;
    background-size: contain;
}

.social .xing {
    background-image: url(../img/xing_logo.png);
}

.social .xing:hover, .social .xing:focus-visible {
    background-image: url(../img/xing_logo_hover.png);
}

.social .linkedIn {
    background-image: url(../img/linkedIn_logo.png);
}

.social .linkedIn:hover, .social .linkedIn:focus-visible {
    background-image: url(../img/linkedIn_logo_hover.png);
}

#bewerbung-btn {
    display: flex;
    text-transform: uppercase;
    color: white;
    width: 100%;
    padding: 10px 20px 5px 50px;
    background: linear-gradient(to right, white 50%, #d11d48 50%);
    background-size: 200% 100%;
    background-position: right bottom;
    transition: all 0.3s ease-in-out;
}

#bewerbung-btn:hover, #bewerbung-btn:focus-visible {
    color: #d11d48;
    background-position: left bottom;
}

#bewerbung-btn .pfeil {
    fill: white;
    width: 30px;
    height: 30px;
    margin-left: 20px;
    transform: translateX(0);
    transition: all 0.3s ease-in-out;
    padding-bottom: 5px;
}

#bewerbung-btn:hover .pfeil {
    fill: #d11d48;
    transform: translateX(9vw);
}

/* +--- Kontakt ---+ */

#kontakt {
    background: linear-gradient(to bottom, #080721 20%, #d11d48 20.1%);
    color: #00437a;
}

#kontakt h1 {
    color: white;
}

.form-control {
    border-radius: 0;
    margin-bottom: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.form-control::placeholder {
    text-transform: uppercase;
    color: #d11d48;
}

.form-control:focus{
    box-shadow: white 0px 0px 0px 0.1rem, rgb(0, 67, 122) 0px 0px 0px 0.25rem;
}

#kontakt-btn {
    text-transform: uppercase;
    background-color: #242427;
    width: 100%;
    border-radius: 0;
    color: white;
    padding: 15px;
    background: linear-gradient(to top, white 51%, #080721 49%);
    background-position-x: 0%;
    background-position-y: 0%;
    background-size: auto;
    background-size: 100% 200%;
    background-position: right top;
    transition: all 0.3s ease-in-out;
    background-repeat: no-repeat;
}

#kontakt-btn:hover, #kontakt-btn:focus-visible {
    color: #d11d48;
    background-position: left bottom;
}

.kontakt-zeile {
    padding-top: 7rem;
    width: fit-content;
    margin: auto;
}

#kontakt .kontakt-zeile > a {
    position: relative;
    text-transform: uppercase;
    width: fit-content;
    margin-top: 20px;
    color: #242427;
    text-decoration: none;
}

#kontakt .kontakt-zeile > a:hover path:not(.location-path), #kontakt .kontakt-zeile > a:focus-visible path:not(.location-path) {
    fill: #d11d48;
}

#kontakt .kontakt-zeile svg {
    width: 30px;
    margin-right: 10px;
    align-self: baseline;
    transition: all 0.3s ease-in-out;
}

/* +--- Footer ---+ */

footer {
    background-color: white;
    position: relative!important;
}

footer > * {
    color: #242427!important;
}

.footer-link {
    position: relative;
    color: #242427 !important;
    text-decoration: none;
}

.footer-link:hover {
    color: #d11d48!important;
}

.footer-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    border-radius: 4px;
    background-color: #d11d48;
    bottom: 0;
    left: 0;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .3s ease-in-out;
}

.footer-link:hover::before {
    transform-origin: left;
    transform: scaleX(1);
}

/*News*/
#news video {
    max-width: 100%;
    border: 3px solid #d11d48;
}

/* +--- Media-Queries ---+ */

@media (max-width: 1400px) {
    #header {
        top: 18%;
    }
}

@media (max-width: 1200px) {
    #coworkingCarousel {
        right: 2%;
    }
    #header h4 {
        font-size: 1.7rem;
    }
}

@media (max-width: 992px) {
    #header {
        top: 24%;
    }

    #scroll-buttons {
        bottom: 50%;
    }

    #begruessung {
        height: auto;
    }

    #ueber-uns {
        width: 80%;
        left: 50%;
        transform: translateX(-50%);
        padding: 3rem 1.5rem 4rem 1.5rem;
    }

    #coworkingCarousel {
        width: 80%;
        margin: auto;
        position: relative;
        top: 0;
        right: auto;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    #begruessung {
        margin-top: 2rem;
    }

    #begruessung #promo-img {
        width: 80%;
        padding: 0;
        margin: auto;
    }
    #header h4 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }
    #bewerbung-btn {
        padding: 10px 20px 5px 20px;
    }
    #referenzen > .container > .row {
        flex-direction: column-reverse;
    }
    #team {
        padding-bottom: 3rem;
    }
    #kontakt {
        background: #d11d48;
        padding-top: 2rem;
    }
    #header h1 {
        font-size: 1.8rem;
    }
    #header h2 {
        font-size: 1.2rem;
    }
    #header h3 {
        font-size: 1.2rem;
    }
    #header h4 {
        font-size: 1.3rem;
    }

    #header img {
        max-width: 20px;
        margin-bottom: 5px;
    }
    #termin-btn {
        font-size: 1rem;
    }
}
@media (max-width: 576px) {
    #header {
        top: 30%;
    }
    #scroll-buttons > div {
        width: 40px;
        height: 40px;
    }
    nav .container {
        padding-inline: 2rem;
    }
    .navbar-brand {
        width: 300px;
    }
    #ueber-uns {
        width: 94%;
    }
    #coworkingCarousel {
        width: 94%;
    }
    #begruessung #promo-img {
        width: 94%;
    }
    #header h1 {
        font-size: 1.5rem;
    }

    #header h2 {
        font-size: 1.2rem;
    }

    #header h3 {
        font-size: 1.2rem;
    }

    #header h4 {
        font-size: 1.3rem;
    }
}

@media (max-width: 420px) {
    .navbar-brand {
        width: 250px;
    }
}

@media (max-width: 400px) {
    #coworkingCarousel {
        top: 66%;
    }
}

@media (max-width: 380px) {
    .navbar-brand {
        width: 200px;
    }
    .nav-toggler-line {
        width: 60%;
        height: 5px;
    }
    .navbar-toggler {
        width: 3rem;
        height: 3rem;
    }
}