@font-face {
    font-family: 'Proxima-Nova-Regular';
    src: url("../font/proximanova-regular.woff") format("woff"), url("../font/proximanova-regular.ttf") format("truetype");
}
@font-face {
    font-family: 'Proxima-Nova-Bold';
    src: url("../font/proximanova-bold.woff") format("woff"), url("../font/proximanova-bold.ttf") format("truetype");
}
@font-face {
    font-family: 'Sofia';
    src: url("../font/sofia.woff2") format("woff2");
}

@-webkit-keyframes bounce {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
}
@keyframes bounce whereupon {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
}
.bounce {
    animation-name: bounce;
    animation-duration: 2s;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
}

body {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    font-family: "Proxima-Nova-Regular";
    font-size: 18px;
    color: #2d2d2d;
}

.wrapper {
    padding: 60px;
    margin: 0 auto;
}
@media screen and (max-width: 767px) {
    .wrapper { padding: 10px; }
}

.wrapper-960 {
    max-width: 960px;
    padding: 40px;
    margin: 0 auto;
}
@media screen and (max-width: 767px) {
    .wrapper-960 { padding: 20px; }
}
section#content .wrapper-960 {
    padding-top: 20px;
    padding-bottom: 20px;
}
section#contact .wrapper-960 {
    padding-bottom: 20px;
}

section {
    position: relative;
    background-color: #f7f7f7;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
section.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: var(--delay);
}
section img:hover {
    cursor: pointer;
}
section img {
    width: 100%;
    height: 100%;
}
section#wallpaper {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    opacity: 1;
    transform: none;
    transition: none;
}
section#wallpaper #swiper-container {
    width: 100%;
    height: 100%;
}
section#wallpaper .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
section#wallpaper .swiper-slide img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
}

.section-title {
    font-size: 32px;
    font-family: "Sofia";
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #2d2d2d;
    margin-bottom: 20px;
}
@media screen and (max-width: 767px) {
    .section-title { font-size: 28px; }
}

section#content {
    margin-top: 100vh;
    background-color: #f7f7f7;
}
section#content { --delay: 0.2s; }
.service-block {
    display: flex;
    flex-flow: row nowrap; /* Explizit nowrap für Desktop */
    margin-bottom: 30px;
    align-items: center;
}
@media screen and (min-width: 768px) {
    .service-block {
        min-width: 0;
    }
    .flex-60 {
        margin-right: 40px;
        flex-basis: calc(60% - 40px);
        box-sizing: border-box;
        min-width: 0;
    }
    .flex-40 {
        flex-basis: 40%;
        box-sizing: border-box;
        min-width: 0;
    }
    .service-block > .flex-40:first-child {
        margin-right: 40px;
    }
}
@media screen and (max-width: 767px) {
    .service-block {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
        width: 100%;
    }
    .flex-60, .flex-40 {
        flex: 0 0 100%;
        width: 100%;
        margin: 0;
        padding: 0 10px;
        box-sizing: border-box;
    }
    .flex-60 {
        order: 1;
        text-align: left;
    }
    .flex-40 {
        order: 2;
    }
    .service-block .flex-60 h1 {
        text-align: left !important;
    }
    .service-block .flex-60 .justified {
        text-align: justify;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .image-container {
        margin: 10px 0;
    }
    .image-container img {
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: contain;
    }
    section#project,
    section#partner {
        margin-top: 20px;
    }
    section#project .wrapper,
    section#partner .wrapper-960 {
        padding-top: 20px;
    }
    nav#main-nav {
        position: relative;
    }
    nav#main-nav #menu-toggler {
        display: block !important;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: linear-gradient(to bottom, #0580ff 0%, #0580ff 20%, transparent 20%, transparent 40%, #0580ff 40%, #0580ff 60%, transparent 60%, transparent 80%, #0580ff 80%, #0580ff 100%);
    }
    nav#main-nav #menu-list {
        display: none;
        flex-direction: row !important;
        justify-content: space-around;
        flex-wrap: nowrap;
        padding: 10px 0;
        width: 100%;
    }
    nav#main-nav #menu-list.open {
        display: flex !important;
    }
    nav#main-nav #menu-list li a {
        font-size: 14px;
        padding: 0.5em;
    }
    #logo {
        max-width: calc(100% - 40px); /* Angepasst von 60px auf 40px */
    }
    .logo-img, .baumeister-img {
        width: 70px; /* Nochmals reduziert von 80px auf 70px */
        height: auto; /* Höhe automatisch für Proportionen */
    }
    .window-overlay-content {
        margin-top: 20px;
    }
    .swiper-slide .swiper-image-cnt {
        height: auto;
        max-height: 70vh;
    }
    .swiper-slide .swiper-image {
        width: 100%;
        height: auto;
        max-height: 70vh;
    }
    .image-wrapper {
        height: auto;
    }
    .swiper-button-next, .swiper-button-prev {
        width: 40px;
        height: 40px;
        background-size: 24px;
        margin-top: -20px;
    }
    .swiper-slide .header {
        font-size: 1rem;
        padding: 10px;
    }
    section#contact .self {
        display: block;
        margin: 0 auto;
        width: 100%;
        max-width: 300px;
    }
}
.service-group {
    margin-bottom: 0;
}

section#project {
    margin-top: 5vh;
    background-color: #e6ecef;
}
section#project img:hover {
    transform: scale(1.2);
}
section#project article {
    display: flex;
    flex-flow: wrap;
}
section#project .wrapper {
    padding-top: 20px;
}

section#partner {
    margin-top: 5vh;
    background-color: #e6ecef;
    opacity: 1;
    transform: none;
    transition: none;
}
section#partner .wrapper-960 {
    padding-top: 20px;
}

section#contact {
    background-color: rgba(0, 0, 0, 0.4);
}
section#contact .self {
    width: 500px;
    height: auto;
}
section#contact .uppercase {
    color: white;
    margin-bottom: 30px;
}
.contact-content {
    text-align: center;
    color: white;
    font-family: "Sofia";
    margin-bottom: 30px;
}
.contact-content p {
    margin-bottom: 10px;
}
.contact-content .uppercase {
    text-transform: uppercase;
    letter-spacing: 0.5em;
    margin-bottom: 30px;
    font-size: 26px;
}
.contact-content .social_facebook {
    color: #0580ff;
}

h1 {
    font-size: 28px !important;
    font-family: "Sofia";
    margin-bottom: 15px;
}
section h1 a {
    font-family: "Sofia";
    font-size: 24px;
    color: #0580ff;
    position: relative;
}
section h1 a.border-effect:before {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    content: "";
    background-color: #0580ff;
    transition: width 0.3s ease-in-out 0s;
}
section h1 a.border-effect:hover:before {
    width: 100%;
}

p {
    margin-bottom: 30px;
}
.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.5em;
    margin-bottom: 30px;
    font-size: 26px;
}
.justified {
    text-align: justify;
    line-height: 1.5rem;
}
.justified strong {
    font-weight: bold;
}
.outline {
    text-shadow: -1px 0 #2d2d2d, 0 1px #2d2d2d, 1px 0 #2d2d2d, 0 -1px #2d2d2d;
}
.no-link {
    cursor: default !important;
}

.flex-40 {
    flex: 0 1 100%;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media screen and (min-width: 768px) {
    .flex-40 {
        margin-right: 0;
        flex-basis: 40%;
    }
}

.flex-60 {
    flex: 0 1 100%;
    margin-bottom: 0;
}
@media screen and (min-width: 768px) {
    .flex-60 {
        margin-right: 40px;
        flex-basis: calc(60% - 40px);
    }
}

.flex-33 {
    flex: 0 1 100%;
    margin-bottom: 25px;
}
@media screen and (min-width: 768px) {
    .flex-33 {
        margin-right: 20px;
        flex-basis: calc(33% - 20px);
    }
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.image-container img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
}

.partner {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
}
@media screen and (max-width: 767px) {
    .partner {
        flex-wrap: wrap;
        justify-content: center;
    }
}
.partner-box {
    flex: 0 0 calc(25% - 10px);
    padding-bottom: 25%;
    margin: 0 5px;
    position: relative;
}
@media screen and (max-width: 767px) {
    .partner-box {
        flex: 0 0 calc(50% - 10px);
        margin: 5px;
    }
}
.partner-box img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.center {
    text-align: center;
    margin-bottom: 40px;
}
.footer {
    text-align: center;
    margin-top: 20px;
}
.footer p {
    margin: 0;
    color: white;
    font-family: "Sofia";
    font-size: 16px;
}
.footer p .impressum-link {
    color: white !important;
    font-family: "Sofia";
    font-size: 16px;
    text-decoration: none;
    margin-left: 10px;
    transition: color 0.3s ease;
}

.footer p .impressum-link:hover {
    color: #0580ff; /* Blau bei Hover */
}

.row {
    display: flex;
}
.row-wrap {
    display: flex;
    flex-wrap: wrap;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    width: 100%;
    opacity: 0.8;
    transition: 0.5s ease;
    background-color: #2d2d2d;
    pointer-events: none;
}
@media screen and (min-width: 768px) {
    .overlay {
        top: 0;
        opacity: 0;
        height: 100%;
    }
}
.overlay-container:hover .overlay {
    opacity: 0.8;
}
@media screen and (max-width: 767px) {
    .overlay-container:hover .overlay {
        height: 50%;
    }
}
.overlay-container {
    position: relative;
    overflow: hidden;
}
.overlay div {
    position: absolute;
    top: 50%;
    left: 3%;
    right: 0;
    text-align: left;
    font-size: 1.8vw;
    color: white;
    transform: translateY(-50%);
}
@media screen and (max-width: 767px) {
    .overlay div {
        top: 55%;
        font-size: 4vw;
    }
}
.overlay-container p {
    margin-bottom: 7px !important;
}
@media screen and (max-width: 767px) {
    .overlay-container p {
        margin-bottom: 5px;
    }
}

#bouncer {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Proxima-Nova-Bold";
    font-size: 36px;
    color: whitesmoke;
    white-space: nowrap;
    cursor: pointer;
    z-index: 1;
}
@media screen and (min-width: 768px) {
    #bouncer {
        font-size: 56px;
        bottom: 7%;
    }
}

nav#main-nav {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: calc(100% - 60px); /* Unverändert */
    padding: 5px 30px; /* Nochmals reduziert von 10px auf 5px oben/unten */
    background-color: white;
    z-index: 1;
}

#logo {
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo-link, .baumeister-link {
    display: flex;
    align-items: center;
}
.baumeister-link {
    margin-left: 10px; /* Reduziert von 20px auf 10px */
}
.logo-img, .baumeister-img {
    width: 100px; /* Nochmals reduziert von 120px auf 100px */
    height: 60px; /* Nochmals reduziert von 80px auf 60px */
    object-fit: contain;
}
@media screen and (min-width: 768px) {
    nav#main-nav #menu-toggler { display: none; }
}
nav#main-nav #menu-list.open {
    display: flex;
}
nav#main-nav #menu-list a {
    font-size: 24px;
    padding: 5px 10px;
    transition: color 0.3s ease;
}
nav#main-nav #menu-list a:hover {
    color: #0580ff;
}
.footer a {
    color: white !important;
}
nav#main-nav #menu-list a.border-effect:before {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    content: "";
    background-color: #2d2d2d;
    transition: width 0.3s ease-in-out 0s;
}
nav#main-nav #menu-list a.border-effect:hover:before {
    width: 100%;
}
@media screen and (min-width: 768px) {
    nav#main-nav #menu-list {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        flex-basis: 33.3%;
    }
    nav#main-nav #menu-list li {
        padding: 0 10px;
    }
}

/* Mobile Anpassungen */
@media screen and (max-width: 767px) {
    nav#main-nav {
        padding: 2px 10px; /* Nochmals reduziert von 5px auf 2px oben/unten */
        width: calc(100% - 20px); /* Unverändert */
    }
    .logo-img, .baumeister-img {
        width: 70px; /* Nochmals reduziert von 80px auf 70px */
        height: auto; /* Höhe automatisch für Proportionen */
    }
    .baumeister-link {
        margin-left: 5px; /* Reduziert von 20px auf 5px */
    }
}

.window-overlay {
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: 2;
    top: 0;
    left: -100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
    transition: 0.5s;
}
.window-overlay-content {
    position: relative;
    margin-top: 50px;
    width: 100%;
    height: 100%;
    text-align: center;
    overflow: hidden;
}
.window-overlay a {
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block;
}
.swiper-slide .header {
    max-height: 1.8rem;
    font-size: 1.2rem;
    line-height: 1.2rem;
    padding: 13px;
    background-color: #fafada;
}
@media screen and (min-width: 768px) {
    .swiper-slide .header {
        font-size: 1.8rem;
        line-height: 1.8rem;
    }
}
.swiper-slide .swiper-image-cnt {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}
.swiper-slide .swiper-image {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.image-wrapper {
    position: relative;
    width: 100%;
    height: calc(100% - 100px);
}
.window-overlay .closebtn {
    position: absolute;
    top: 15px;
    right: 12px;
    font-size: 40px;
}
@media screen and (min-width: 768px) {
    .window-overlay .closebtn {
        top: 15px;
        right: 45px;
        font-size: 60px;
    }
}
@media screen and (max-height: 450px) {
    .window-overlay a { font-size: 20px; }
    .window-overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}
.full-height {
    height: 100%;
}
.swiper-button-next, .swiper-button-prev {
    width: 40px;
    height: 40px;
    background-size: 24px;
}
@media screen and (max-width: 767px) {
    .swiper-button-next, .swiper-button-prev {
        width: 30px;
        height: 30px;
        background-size: 20px;
    }
}
section#empty {
    height: 0;
    margin: 0;
    padding: 0;
}

section#impressum {
    background-color: #f7f7f7;
    padding: 60px 0;
    min-height: 100vh;
}

.impressum-content {
    text-align: left;
    color: #2d2d2d;
    font-family: "Proxima-Nova-Regular";
    font-size: 18px;
    line-height: 1.5;
}

.impressum-content p {
    margin-bottom: 15px;
}

.impressum-content a {
    color: #0580ff;
    text-decoration: none;
}

.impressum-content a:hover {
    text-decoration: underline;
}