:root {
    --accent-color: #E4CEC5;
}

* {
    scroll-behavior: smooth;
}

section [class^="container"] {
    padding: 4rem 2rem
}

@media screen and (min-width: 1024px) {
    section [class^="container"] {
        padding: 4rem
    }

    nav [class^="container"] {
        padding: 0 4rem
    }
}

section:not(:first-of-type) {
    text-align: center;
}

section:nth-child(2n) {
    background-color: #143b1a6f
}

.meineklasse {
    color: blue;
}

a {
    color: black;
    text-decoration: none;
}

a:hover {
    color: var(--accent-color);
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}






/*Navbar*/
.navbar {
    background-color: white;
}



.navbar-nav .nav-link {
    color: black;
    font-size: 1.1rem;
    transition: all 0.5s;
}

section.card,
.btn-outline-dark {
    border: 2px solid black;
    box-shadow: 4px 4px black;
    transition: all 0.4s;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color);
}

@media screen and (min-width: 1024px) {
    .navbar-nav .nav-item {
        padding: 0 1rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }
}


/*Services*/
section.services i {
    font-size: 2rem;
    margin: 1rem auto 0;
    border: 2px solid black;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
}


.btn-outline-dark:hover {
    box-shadow: 4px 4px var(--accent-color);
}

section .card {
    max-width: 22rem;
    margin-inline: auto;
}





/*Testimonials*/

.testimonials-wrap {
    padding: 40px 0;
}

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




.testimonial-box {
    display: block;
    position: relative;
    padding: 30px 20px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .03);
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, .08);
}


.carousel-testimonial .item {
    padding: 30px 10px;
}


.carousel-testimonial .owl-nav {
    text-align: center;
}

.testimonial-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 2rem;
    max-width: 900px;
    margin: auto;
}

.testimonial-box p {
    margin-bottom: 0.75rem;
    text-align: center;
}

.testimonial-box strong {
    display: block;
    text-align: center;
}


/*Contact*/

section.contact .social-media a {
    padding: 0 0.5rem;
    font-size: 1.3rem;
}




.prev-btn {
    margin-right: 0.5rem;
}

.next-btn {
    margin-left: 0.5rem;
}

section.projects .d-flex {
    align-items: center;
    justify-content: center;
}

.projects {
    position: relative;
    z-index: 0;
    overflow: hidden;
}



.portfolio-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 40px 0;
}

.portfolio-section .container,
.portfolio-section .container-lg,
.portfolio-section .container-fluid,
.portfolio-section .row {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}

.portfolio-search {
    display: flex;
    justify-content: center;
    width: min(92vw, 680px);
    margin: 0 auto 16px;
}

#portfolioSearch {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 999px;
    padding: 12px 16px;
    font-size: 1rem;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    width: min(92vw, 1200px);
    margin: 0 auto 22px;
}

.portfolio-filters .btn {
    border-radius: 999px;
    padding: .55rem 1.05rem;
    margin: 0;
}


.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    padding-left: clamp(12px, 3vw, 32px);
    padding-right: clamp(12px, 3vw, 32px);
}


.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    border-radius: 14px;
    background: #e9ecef;
}

.portfolio-item a {
    display: block;
    height: 100%;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease, filter .35s ease;
    filter: brightness(.85);
}


.portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
    opacity: 1;
    transition: opacity .35s ease;
}

.portfolio-overlay h3 {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    margin: 0 0 .4rem 0;
    text-shadow: 0 3px 8px rgba(0, 0, 0, .45);
}

.portfolio-overlay p {
    font-size: clamp(.9rem, 1.5vw, 1.05rem);
    margin: 0;
    text-shadow: 0 3px 8px rgba(0, 0, 0, .45);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 0;
}

.portfolio-item:hover img {
    filter: brightness(1);
    transform: scale(1.02);
}


@media (max-width:768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .portfolio-item {
        border-radius: 10px;
    }
}

.hero-copy {
    max-width: 36rem;
}

.hero-copy .lead {
    line-height: 1.6;
}

.hero-portrait-wrap {
    aspect-ratio: 4/5;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
    isolation: isolate;
}

.hero-portrait-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
    z-index: 1;
}

.hero-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform .35s ease;
}

.hero-portrait-wrap:hover .hero-portrait {
    transform: scale(1.04);
}

@media (max-width:767.98px) {
    .hero-copy {
        text-align: center;
        margin-inline: auto;
    }
}

.hero {
    padding: clamp(2rem, 4vw, 4rem) 0;
}

.hero .row {
    align-items: center;
    row-gap: clamp(1.25rem, 3vw, 2rem);
}

.hero-copy {
    max-width: 40rem;
    margin-inline: auto;
}

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin: 0 0 .75rem;
}

.hero-copy .lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.6;
    margin: 0;
}

.hero-portrait-wrap {
    width: min(100%, 440px);
    aspect-ratio: 4/5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
    margin-inline: auto;
}

.hero-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


@media (min-width:768px) {
    .hero {
        padding: clamp(3rem, 6vw, 5rem) 0;
    }

    .hero-portrait-wrap {
        width: min(100%, 480px);
    }
}


@media (min-width:992px) {
    .hero-copy {
        max-width: 42rem;
    }

    .hero-portrait-wrap {
        width: min(100%, 520px);
    }
}


@media (min-width:1400px) {
    .hero {
        padding: 5rem 0 6rem;
    }

    .hero-portrait-wrap {
        width: 560px;
    }
}




.about-modern {
    padding: clamp(2.5rem, 4vw, 5rem) 0
}

.about-copy {
    max-width: 48rem;
    margin-inline: auto
}

.about-richtext p {
    font-size: 1.125rem;
    line-height: 1.85;
    color: rgba(0, 0, 0, 0.85);
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

.about-richtext p:first-child::first-letter {
    font-size: 2.6rem;
    line-height: 1;
    font-weight: 800;
    float: left;
    margin: .12rem .5rem 0 0;
}


.about-photo {
    position: relative;
    width: min(100%, 520px);
    aspect-ratio: 4/5;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.about-photo::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .35);
    pointer-events: none;
    z-index: 2;
}

.about-photo::after {
    content: "";
    position: absolute;
    right: -8%;
    top: 8%;
    width: 40%;
    height: 20%;
    border-radius: 999px;
    filter: blur(24px);
    background: rgba(255, 255, 255, .18);
    z-index: 1;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform .35s ease
}

.about-photo:hover img {
    transform: scale(1.04)
}


@media (max-width:991.98px) {
    .about-photo {
        width: min(100%, 480px)
    }
}

@media (max-width:767.98px) {
    .about-copy {
        text-align: center
    }

    .about-photo {
        width: min(100%, 440px)
    }
}

@media (min-width:1400px) {
    .about-photo {
        width: 560px
    }
}



.offer-card {
    padding: 2.5rem 2rem;
    background-color: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.offer-card:hover {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-6px);
    border-color: rgba(0, 0, 0, 0.15);
}

.offer-icon {
    font-size: 3.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.offer-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: #111;
}

.offer-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
}



.container,
.container-lg,
.container-fluid {
  width: 100%;
  max-width: 100%; /* Standard überschreiben */
}

@media (min-width: 576px) {   /* SM */
  .container { max-width: 540px; }
}

@media (min-width: 768px) {   /* MD */
  .container { max-width: 720px; }
}

@media (min-width: 992px) {   /* LG */
  .container { max-width: 960px; }
}

@media (min-width: 1200px) {  /* XL */
  .container { max-width: 1140px; }
}

@media (min-width: 1400px) {  /* XXL */
  .container { max-width: 1320px; }
}

/* Eigene große Stufen */
@media (min-width: 1800px) {
  .container { max-width: 1600px; }
}

@media (min-width: 2200px) {
  .container { max-width: 1900px; }
}

@media (min-width: 2600px) {
  .container { max-width: 2200px; }
}

@media (min-width: 3000px) {
  .container { max-width: 2600px; }
}

@media (min-width: 3500px) {
  .container { max-width: 3000px; }
}

@media (min-width: 4000px) {
  .container { max-width: 3400px; }
}