/* RESET */

body, html, * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    scroll-padding: 8rem;

    @media(max-width: 600px) {
        scroll-padding: 4rem;
    }
}

img {
    display: block;
    max-width: 100%;
    width: 100%;
}


ul, ol {
    margin-top: 1em;
    margin-bottom: 1em;
    padding-left: 1em;
}
li {
    margin-left: .75em;
    padding-left: .75em;
    margin-bottom: 0 !important;
    &::marker {
        margin-left: 1em;;
    }
}

#maintenanceVideo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: auto;
}

#maintenance {
    width: 100%;
    max-width: 1600px;
    margin: auto;
    margin-top: 4rem;
    text-align: center;
    
    & h1 {
        font-size: 1.2rem;
        font-style: italic;
        font-weight: 200;
        margin-bottom: 6rem;
        display: block;
    }
}

hr {
    margin: 3rem 0;
}

.m-auto {
    margin: auto;
}

.mw-100 { max-width: 100px; }
.mw-200 { max-width: 200px; }
.mw-300 { max-width: 300px; }
.mw-400 { max-width: 400px; }
.mw-500 { max-width: 500px; }
.mw-600 { max-width: 600px; }
.mw-700 { max-width: 700px; }
.mw-800 { max-width: 800px; }
.mw-900 { max-width: 900px; }

.fw-100 { font-weight: 100 !important; }
.fw-200 { font-weight: 200 !important; }
.fw-300 { font-weight: 300 !important; }
.fw-400 { font-weight: 400 !important; }
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }

/* --- */

:root {
    --primary: #96c11e;
    --dark: #000;
    --gray: #f3f3f3;
    --light: #fff;
}

.light {
    background-color: var(--light);
}
.dark {
    background-color: var(--dark);
}
.primary {
    background-color: var(--primary);
}
.gray {
    background-color: var(--gray);
}

.text-light {
    color: var(--light);
}
.text-dark {
    color: var(--dark);
}
.text-primary {
    color: var(--primary);
}

.text-center {
    text-align: center;
}

h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5, h6,.h6, .h7, .h8, .h9 {
    font-family: "neue-haas-grotesk-display", sans-serif;
    text-wrap: balance;
    width: fit-content;
    max-width: 100%;
    &:has(+ p) {
        margin-bottom: 1em;
    }
}

h1, .h1 {
    font-size: 110px;
    font-weight: 900;
    line-height: 100%;
    @media(max-width: 600px) { font-size: 64px; }
}
h2, .h2 {
    font-size: 62px;
    font-weight: 700;
    line-height: 120%;
    @media(max-width: 600px) { font-size: 40px; }
}
h3, .h3 {
    font-size: 48px;
    font-weight: 500;
    line-height: 120%;
    @media(max-width: 600px) { font-size: 32px; }
}
h4, .h4 {
    font-size: 48px;
    font-weight: 600;
    line-height: 120%;
    @media(max-width: 600px) { font-size: 32px; }
}

h5, .h5 {
    font-size: 40px;
    font-weight: 600;
    line-height: 120%;
    @media(max-width: 600px) { font-size: 32px; }
}

h6, .h6 {
    font-size: 40px;
    font-weight: 500;
    line-height: 120%;
    @media(max-width: 600px) { font-size: 32px; }
}
.h7 {
    font-size: 32px;
    font-weight: 600;
    line-height: 120%;
    @media(max-width: 600px) { font-size: 24px; }
}
.h8 {
    font-size: 32px;
    font-weight: 500;
    line-height: 120%;
    @media(max-width: 600px) { font-size: 24px; }
}
.h9 {
    font-size: 24px;
    font-weight: 600;
    line-height: 120%;
}

body, html {
    font-size: 1rem;
    font-family: "neue-haas-grotesk-text", sans-serif;
    font-weight: 400;
}

p, li {
    font-size: 1.25rem;
    font-family: inherit;
    font-weight: 400;
    line-height: 160%;
    margin-bottom: 1.25em;

    &:last-child {
        margin-bottom: 0;
    }

    & a {
        color: inherit;
        text-decoration: underline;
    }

    &.bold {
        font-weight: 500;
    }

    @media(max-width: 600px) {
        font-size: 1rem;
    }
}

a:has(p, li, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .h7, .h8, .h9) {
    text-decoration: none;
    color: inherit;
}

.p1 {
    font-size: 24px;
    font-weight: 400;
    @media(max-width: 600px) { font-size: 18px; }
}
.p2 {
    font-size: 20px;
    font-weight: 400;
    @media(max-width: 600px) { font-size: 16px; }
}
.p3 {
    font-size: 18px;
    font-weight: 400;
    @media(max-width: 600px) { font-size: 14px; }
}
.p4 {
    font-size: 14px;
    font-weight: 400;
}
.p5 {
    font-size: 12px;
    font-weight: 600;
}

.menu1 {
    font-size: 32px;
    font-weight: 600;
    transition: .1s ease-in-out;
    @media(max-width: 600px) { font-size: 24px; }
    
    &:hover {
        color: var(--primary) !important;
    }
}
.menu2 {
    font-size: 20px;
    font-weight: 600;
    transition: .1s ease-in-out;
    @media(max-width: 600px) { font-size: 16px; }

    &:hover {
        color: var(--primary) !important;
    }
}

.upper,.uppercase {
    text-transform: uppercase;
}

.hide-mobile {
    @media(max-width: 600px) {
        display: none !important;
    }
}

.gap {
    padding-top: var(--gap, 1rem);

    @media(max-width: 600px) {
        padding-top: calc(var(--gap, 1rem) / 2);
    }
}

.btn {
    font-size: 1.125rem;
    padding: .66em 1.25em;
    background-color: var(--primary);
    color: var(--light);
    border-radius: 9999px;
    text-align: center;
    display: flex;
    text-decoration: none;
    width: fit-content;
    max-width: 100%;
    transition: .2s ease-in-out;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    text-transform: uppercase;

    &.icon-only {
        aspect-ratio: 1 / 1;
        position: relative;
        & > .inner {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
    }

    &:hover,
    a:hover & {
        background-color: var(--primary) !important;
        filter: brightness(110%);
        border-color: var(--primary) !important;
        color: var(--light) !important;

    }
    
    & > .inner {
        gap: .5em;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .text-light &.outline {
        border-color: var(--light);
        color: var(--light);

        &:hover,
        a:hover & {
            filter: none;
        }
    }

    &.outline {
        background-color: transparent;
        border: 1.5px solid var(--dark);
        color: var(--dark);

        &:hover,
        a:hover & {
            filter: none;
        }
    }
}

.container {
    width: 100%;
    max-width: calc(1280px + 4rem);
    padding: 0 2rem;
    margin: auto;

    &.small {
        max-width: calc(860px + 2rem);
    }

    @media(max-width: 600px) {
        padding: 0 1rem;
        &.small {
            max-width: calc(100% - 2rem);
        }
    }
}

.hero {
    display: flex;
    padding: 2rem;
    min-height: calc(100vh - 2rem);

    & > * {
        margin: auto;
    }


}



.number-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}






footer {
    display: flex;
    flex-direction: column;
    color: rgba(255,255,255, 0.6);


    & .footer-top {
        background-color: var(--light);
        color: black;
        padding: 1rem;
        display: flex;
        gap: 2rem;
        justify-content: center;
        align-items: center;
        text-align: center;

        * {
            color: inherit !important;
        }
        
    }
    
    & .footer-bottom {
        padding: 4rem;  
        background-color: var(--dark);
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: space-between;
        align-items: center;
        color: inherit;
        font-size: .75rem;

        & a {
            color: var(--light);
            text-decoration: none;
        }

        @media(max-width: 600px) {
            flex-direction: column;
            text-align: center;
        }
    }

    & .footer-image-copyright {
        background-color: var(--dark);
        color: inherit;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding:1rem;
        
        & > p {
            font-size: 10px !important;
            margin: 0;
        }

        @media(max-width: 600px) {
            flex-direction: column;
            text-align: center;
            gap: .5rem;

            & > p:nth-child(even) {
                display: none;
            }
        }
    }

    
}

.header-padding {
    background-color: var(--dark);
    height: 6rem;
    @media(max-width: 600px) {
        height: 4rem;
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    /* background-color: transparent; */
    background-color: var(--dark);
    color: var(--light);
    text-transform: uppercase;
    transition: .5s ease-in-out;

    /* body.scrolled & {
        background-color: var(--dark);
    } */

    & > .inner {
        display: flex;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        width: 100%;
        max-width: 1280px;
        margin: auto;
        height: 6rem;

        @media(max-width: 600px) {
            gap: 1rem;
            padding: 1rem;
            height: 4rem;
        }
    }

    & a {
        color: inherit;
        text-decoration: none;
        font-size: 1.25rem;
        font-weight: 600;
        display: flex;
        gap: 1em;
        align-items: center;

        @media(max-width: 600px) {
            font-size: 1rem;
        }
    }
}


#kontakt {
    position: relative;
    display: flex;
    padding: 2rem;
    background-image: url("/img/k2_firma_frontansicht_vario2.jpg");
    background-size: cover;
    background-position: 50% 75%;
    min-height: min(75vh, 700px);

    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 9, 19, 0.638);
    }

    & > .inner {
        position: relative;
        width: fit-content;
        max-width: 100%;
        margin: auto;
    }
}

#menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    color: var(--light);
    display: flex;
    flex-direction: column;
    pointer-events: none;
    opacity: 0;
    transition: .3s ease-in-out;
    z-index: 100;

    &.show {
        pointer-events: auto;
        opacity: 1;
    }

    & > .top-bar {
        display: flex;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        height: 6rem;
        border-bottom: 1px solid var(--light);
        width: 100%;
        max-width: 1280px;
        margin: 0 auto;
    }

    & > .content {
        width: 100%;
        height: 100%;
        max-width: 800px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        overflow-y: auto;
        padding: 2rem;
        padding-top: 4rem;
        padding-bottom: 4rem;
        
    }

    /* @media(max-width: 600px) {
        & .btn {
            font-size: .8rem !important;
        }
    } */
}


.tripple-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    justify-items: center;
    
    @media(max-width: 1000px) { grid-template-columns: 1fr 1fr; }
    @media(max-width: 700px) { grid-template-columns: 1fr; }
}

.duo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    gap: 2rem;

    @media(max-width: 700px) { grid-template-columns: 1fr; }
}


.marken-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 2rem;

    @media(max-width: 700px) { 
        grid-template-columns: 1fr 1fr 1fr; 
        gap: 1rem;
        & * {
            & > * {
                width: 100%;
            }
        }
    }

    & > * {
        display: flex;
        background-color: var(--gray);
        aspect-ratio: 1 / 1;
        
        & > * {
            width: 90%;
            aspect-ratio: 1 / 1;
            margin: auto;
            object-fit: contain;
            object-position: 50% 50%;
        }
    }
}



.icon {
    /* padding: max(.2em, 4px); */
    & svg {
        width: 100%;
        height: 100%;
        line-height: 0;
        display: block;
    }
    & rect {
        fill: transparent !important;
    }

    & path {
        fill: transparent !important;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: max(.2em, 3px) !important;
    }
}


.dropdown-area {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 3rem;

    @media(max-width: 900px) {
        grid-template-columns: 1fr !important;
    }

    & .dropdown-title,
    & .preview-content {
        cursor: pointer;
    }

    & .dropdown-content {
        & > .inner {
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows .3s ease;
        }

        & > .inner > .inner2 {
            overflow: hidden;
            min-height: 0;
        }

        /* expanded */
        &.open > .inner {
            grid-template-rows: 1fr;
        }
    }
}

.dropdown {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 3rem;
    align-items: center;

    @media(max-width: 900px) {
        grid-template-columns: 1fr;
    }

    & > .dropdown-title {
        cursor: pointer;
    }

    & > .dropdown-content {
        grid-column: 1 / 3;
        & > .inner {
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows .3s ease;
        }

        & > .inner > .inner2 {
            overflow: hidden;
            min-height: 0;
        }

        /* expanded */
        &.open > .inner {
            grid-template-rows: 1fr;
        }
    }
}

#insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 4rem;
    @media(max-width: 900px) {
        grid-template-columns: 1fr;
    }

    & > .left {
        background-image: url("/img/pizza.jpg");
        background-color: black;
        background-size: cover;
        background-position: center;
        aspect-ratio: 1 / 1.5;
    }

    & > .right {
        display: flex;
        flex-direction: column;

        & > * {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 2rem;
        }
    }
        
}

.todo {
    color: hotpink;
}


.text-image-pair {
    display: grid;
    grid-template-columns: .8fr 1fr;
    gap: 1rem;

    @media(max-width: 800px) {
        grid-template-columns: 1fr !important;
    }

    &.alternative {
        grid-template-columns: 1fr .8fr;
    }

    & > .left {
        display: flex;
        align-items: center;

        .text-image-pair.alternative & {
            order: 2;
        }

        @media(max-width: 800px) {
            order: 0 !important;
        }
    }

    & > .right {
        display: flex;

        & > .inner {
            padding-left: min(6rem, 7vw);
            padding-right: min(6rem, 7vw);
            margin: auto;
        }
    }
}

.mobile-1fr-grid {
    @media(max-width: 800px) {
        grid-template-columns: 1fr !important;
    }
}

.mobile-aspect-1x1 {
    @media(max-width: 800px) {
        aspect-ratio: 1 / 1 !important;
    }
}

.text-right {
    text-align: right;
}

.mobile-text-align-reset {
    @media(max-width: 800px) {
        text-align: initial !important;
    }
}


.before-after-image {
    display: flex;
    padding: 2rem;
    background-size: cover;

    & > .inner {
        margin-top: auto;
        margin-right: auto;
        width: auto;
        
    }
}

#portfolio-slider {
    & .swiper-slide {
        height: 800px !important;
    }
    @media(max-width: 600px) {
        & .swiper-slide {
            height: 560px !important;
        }
    }
}

.portfolio-slide {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    background-color: black;
    cursor: pointer;

    & > img:nth-child(1) {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 50%;
        z-index: 0;
    } 

    & > img:nth-child(2) {
        position: absolute;
        top: 8rem;
        right: 8rem;
        width: 8rem;
        height: auto;
        z-index: 1;
        @media(max-width: 600px) {
            display: none;
        }
    }

    &  > .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(180deg,rgba(0, 0, 0, 0) 44%, rgba(0, 0, 0, 1) 100%);
        z-index: 2;
    }

    & > .content {
        position: relative;
        z-index: 3;
        margin-top: auto;
        margin-right: auto;
        padding: 4rem;
        width: 100%;
        max-width: 450px;
        color: var(--light);

        @media(max-width: 600px) {
            padding: 2rem;
        }
    }
}


 /* --- */
 /* --- */
 /* --- */
 /* --- */


:root {
    --swiper-theme-color: var(--dark) !important;
}

.icom-slider.swiper-container {
    --swiper-navigation-sides-offset: 0px;
    --swiper-navigation-size: 1.2rem;
    z-index: 1;
    position: relative;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: var(--icom-default-border-radius);
    min-width: 0;
    /* &::after,
    &::before {
        @media(max-width: 768px) {
            display: none;
        }
        content: "";
        position: absolute;
        top: 1rem;
        right: 1rem;
        bottom: 1rem;
        left: 1rem;
        background-image: linear-gradient(to right, white 2rem, transparent 8rem);
        z-index: 3;
        pointer-events: none;
    } */
    
    &::before {
        background-image: linear-gradient(to left, white 2rem, transparent 8rem);
    }

    &:has(.swiper-wrapper:empty){
        display: none;
    }

    &.free-sliding {
        & .swiper-slide {
            width: auto! important;
        }
    }

    &.slider-style-Default {
        --swiper-navigation-size: 2rem;
        --swiper-navigation-sides-offset: 0.5rem;
    }

    &.slider-style-Filled {
        & .swiper-button-prev,
        & .swiper-button-next {
            width: 3em;
            height: 3em;
            font-size: 1rem;
            padding: .5em;
            background-color: var(--dark);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            &::after {
            }
        }
    }

    & .swiper-slide {
        height: var(--icom-slider-slide-height, error);
        aspect-ratio: var(--aspect-ratio, error);
        display: flex;
        justify-content: center;
        align-items: center;
        background-size: cover;
        background-repeat: no-repeat;
        min-width: 0;
    }

    &.has-navigation {
        /* padding-left: 2rem;
        padding-right: 2rem; */
    }

    & .swiper-button-next,
    & .swiper-button-prev {
        color: white;
        top: 50% !important;
        margin-top: 0 !important;
        transform: translateY(-50%) !important;
    }

    &.has-pagination {
        padding-bottom: 2rem;
    }

    & .swiper-pagination {
        width: max-content;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        /* background-color: white; */
        border-radius: .25rem;
        height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}


/* --------- */
/* --------- */
/* --------- */
/* --------- */
/* --------- */
/* --------- */


.logo-marquee {
  display: flex;
  overflow: hidden;
  width: 100%;
  gap: 0;
}

.logo-track {
  display: flex;
  flex-shrink: 0;
  gap: 1rem;
  min-width: max-content;
  animation: logoMarquee 45s linear infinite;
}

.logo-marquee:hover .logo-track {
  animation-play-state: paused; /* optional */
}

.logo-track .marke {
  width: 170px;   /* square tiles */
  height: 170px;
  display: grid;
  place-items: center;
}

.logo-track .marke img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@keyframes logoMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}


#body .weitere-arbeiten-slider {
    width: 100%;
    & .swiper-slide {
        height: 500px !important;
        width: auto !important;
        max-width: 100% !important;
        
        & img {
            display: block;
            width: auto;
            max-width: 100%;
            height: 100%;
            object-fit: contain;
        }
    }
}


.phone-row {
    width: 100%;
    max-width: 800px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: clamp(1rem, 3vw, 2rem);
    margin: auto;

    & > *:nth-child(2) {
        padding-top: 8rem;
        padding-top: clamp(4rem, 10vw, 8rem);
    }
    
    & > *:nth-child(3) {
        padding-top: clamp(2rem, 5vw, 4rem);
    }
    

    /* @media(max-width: 600px) {
        grid-template-columns: 1fr;
        & > *:nth-child(2) {
            padding-top: 0rem;
        }
        & > *:nth-child(3) {
            padding-top: 0rem;
        }
    } */
}