/*  Author:   Martin Stettler (https://dieweberei.ch/)
    Version:  08/06/2026 // based on BS v5.3.8
*/

/* ==========================================================================
   DESIGN STYLING
   ========================================================================== */

:root {

    /* Brand */
    --color-primary: #9a8700;

    /* Text */
    --color-text: #000000;
    --color-text-inverse: #fff;

    /* Backgrounds */
    --color-bg-primary: rgba(154, 135, 0, 0.6);
    --color-accent-brown: #623412;
    --color-accent-blue: #28939c;
    --color-accent-orange: #e35205;
    --color-bg-grey: #505759;
    --color-bg: #fff;

    /* Borders */
    --color-border: #000;

    /* States */
    --color-hover: #004A73;
    --color-focus: #004A73;

    /* Layout */
    --content-max-width: 1600px;
    --page-padding: 20px;

    /* Typography */
    --font-body: "Montserrat", sans-serif;
    --fs-body: clamp(1rem, 1vw, 1.125rem);

    --fs-small: clamp(.875rem, .9vw, 1rem);

    --fs-h1: clamp(2.25rem, 4vw, 3.75rem);
    --fs-h2: clamp(1.75rem, 2.5vw, 2.5rem);
    --fs-h3: clamp(1.375rem, 2vw, 1.875rem);
    --fs-h4: clamp(1.25rem, 1.5vw, 1.75rem);
    --fs-h5: clamp(1rem, 1vw, 1.125rem);
    --fs-project-title: clamp(1.375rem, 2vw, 2rem);

    --lh-body: 1.5;
    --lh-heading: 1.1;

    /* Header */
    --header-height: 160px;
    --header-padding: 20px;
    --header-height-scrolled: 80px;

    /* Logo */
    --logo-height: 120px;
    --logo-mark-height: 40px;
    --logo-mark-width: 160px;

    /* Hero */
    --hero-title-size: clamp(1.5rem, 3.5vw, 3.75rem);
    --hero-graphic-width: clamp(100px, 18vw, 312px);

    /* Navigation */
    --nav-width: 50%;
    --nav-transition: .4s ease;

    /* Spacing */
    --section-space: 60px;
    --section-title-gap: 3rem;
    --content-gap: 2rem;
    --teaser-gap: 3rem;

}

h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
    hyphens: auto;
}

h2,
h3,
h4 {
    margin-bottom: 2rem;
}

h1 {
    font-size: var(--fs-h1);
    line-height: var(--lh-heading);
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

h2 {
    font-size: var(--fs-h2);
    line-height: var(--lh-heading);
    font-weight: 600;
    text-transform: uppercase;
}

h3 {
    font-size: var(--fs-h3);
    line-height: var(--lh-heading);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

h2 span,
h3 span {
    font-weight: 400;
}

.home-section h2 {
    font-size: var(--fs-h1);
}

.home-section h3 {
    font-size: var(--fs-h2);
}

h5 {
    font-weight: 600;
}

h6 {
    font-weight: 600;
    font-size: var(--fs-body);
}

p,
ul,
ol {
    font-size: var(--fs-body);
    margin-bottom: 3rem;
}

strong {
    font-weight: 600;
}

/* Lists */
section ul {
    margin-bottom: 3rem;
    padding-left: 0;

    list-style: none;
}


section ul.compact-list {
    margin-bottom: 1rem;
}

p + ul.compact-list  {
    margin-top: -2rem;
}

section ul li {
    position: relative;
    padding-left: 1rem;
}

section ul li::before {
    content: "–";
    position: absolute;
    left: 0;
}

section ul li + li {
    margin-top: .25rem;
}

section ul li.list-group-gap {
    margin-top: 2rem;
}

section p a,
section li a,
section dd a {
    color: inherit;
    text-decoration: none;

    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 100% 100%;
    background-size: 100% 1px;

    transition: background-size .25s ease;
}

section p a:hover,
section li a:hover,
section dd a:hover {
    background-size: 0 1px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: var(--lh-body);
    color: var(--color-text);
    background: var(--color-bg);
    overflow-wrap: break-word;
    hyphens: auto;
}

img {
    max-width: 100%;
    height: auto;
}

a,
button {
    transition: color .3s ease;
}

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* ==========================================================================
   LAYOUT BASE STYLES
   ========================================================================== */
.container-custom {
    padding-inline: 20px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1200;

    background: #fff;

    padding: var(--header-padding) 0;

    transition:
        background-color .3s ease,
        box-shadow .3s ease;
}

.site-header.scrolled {
    background: rgba(255,255,255,.95);
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.header-grid {
    display: grid;
    grid-template-columns:
        minmax(120px, 1fr)
        auto
        minmax(120px, 1fr);

    align-items: end;
}

.site-header.scrolled .header-grid {
    grid-template-columns:
        auto
        1fr
        auto;
}

.site-logo {
    position: relative;
}

a.site-logo {
    text-decoration: none;
}

.logo-full,
.logo-mark {
    transition: opacity .3s ease;
}

.logo-full {
    height: var(--logo-height);
    width: auto;
}
.logo-mark {
    height: 0;
    width: 0;
    opacity: 0;
}

.site-header.scrolled .site-logo {
    justify-self: start;
}

.site-header.scrolled .logo-full {
    height: 0;
    opacity: 0;
    width: 0;
}

.site-header.scrolled .logo-mark {
    width: var(--logo-mark-width);
    height: auto;
    opacity: 1;
}


@media (max-width: 575.98px) {

    :root {
        --header-height: 160px;
        --nav-width: 280px;
    }

    .header-grid {
        grid-template-columns:
            auto
            1fr
            auto;
    }

    .site-logo {
        justify-self: start;
    }

    .header-actions {
        justify-self: end;
    }

}

/* Logo solution detail pages */
@media (max-width: 575.98px) {

    .page-service-detail .logo-full {
        height: 0;
        width: 0;
        opacity: 0;
    }

    .page-service-detail .logo-mark {
        width: var(--logo-mark-width);
        height: auto;
        opacity: 1;
    }

    .page-service-detail .site-header.scrolled .logo-full {
        height: 0;
        width: 0;
        opacity: 0;
    }

    .page-service-detail .site-header.scrolled .logo-mark {
        width: var(--logo-mark-width);
        height: auto;
        opacity: 1;
    }

}

.header-actions {
    justify-self: end;
    display: flex;
    align-items: flex-end;
    gap: 30px;
}

a.service-link {
    color: #000;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
}

a.service-link:hover {
    color: var(--color-primary);
}

.menu-toggle {
    width: 50px;
    height: 25px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    justify-self: end;
    align-self: flex-end;

    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 5px;
    background: var(--color-primary);

    transition: transform .3s ease, opacity .3s ease;
    transform-origin: center;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.side-nav {
    position: fixed;

    top: var(--header-height);
    right: 0;

    width: var(--nav-width);
    transition: var(--nav-transition);
    
    height: calc(100vh - var(--header-height));

    transform: translateX(100%);

    background: rgba(255, 255, 255, 0.9);

    padding: 25px 30px;

    z-index: 1010;
}

.side-nav.show {
    transform: translateX(0);
}

.site-header.scrolled ~ .side-nav {
    top: var(--header-height-scrolled);
    height: calc(100vh - var(--header-height-scrolled));
}

.side-nav > ul {
    list-style: none;

    margin: 0;
    padding: 0 25px 30px 0;

    border-bottom: 1px solid var(--color-border);
}

.side-nav > ul > li + li {
    margin-top: 1.5rem;
}

.side-nav a {
    display: block;
    font-size: var(--fs-h4);
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text);
}

.side-nav a:hover {
    color: var(--color-primary);
}

.side-nav a.is-active {
    color: var(--color-primary);
}

.sub-nav {
    list-style: none;

    margin: 1rem 0 0 30px;
    padding: 0;
}

.sub-nav li + li {
    margin-top: .25rem;
}

.sub-nav a {
    font-size: var(--fs-body);
    font-weight: 400;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    opacity: 0;
    visibility: hidden;
    transition: .4s;
    z-index: 1000;
}

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

.hero {
    position: relative;
    overflow-x: hidden;
    margin-bottom: var(--section-space);
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding-left: var(--page-padding);
}

.hero-text {
    width: 35%;
    font-size: var(--hero-title-size);
    line-height: .95;
    color: #fff;
    font-weight: 400;
    text-transform: uppercase;
}

.hero-graphic {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.hero-graphic img {
    display: block;
    width: var(--hero-graphic-width);
    height: auto;
}


@media (max-width: 575.98px) {

    .hero {
        min-height: 0;
    }

    /*.hero-image {
        height: 65vh;
        width: 100%;
        object-fit: cover;
    }*/

    .hero-image {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

    .hero-content {
        position: absolute;
        inset: 0;

        display: flex;
        flex-direction: column;

        justify-content: center;
        align-items: center;

        gap: 2rem;

        padding: 2rem;
    }

    .hero-graphic {
        position: static;
        transform: none;
    }

    .hero-text {
        max-width: 100%;
        width: 100%;

        text-align: center;
    }

}

.page-hero {
    overflow: hidden;
}

.page-hero-image {
    display: block;
    width: 100%;
    height: auto;
}

.breadcrumb-nav ol {
    display: flex;
    align-items: center;
    gap: .75rem;

    margin: 0;
    padding: 1rem 0;

    font-size: 0.875rem;
    list-style: none;
}

.breadcrumb-nav li + li::before {
    content: "→";

    margin-right: .75rem;

    color: var(--color-bg-grey);
}

.breadcrumb-nav a {
    color: var(--color-bg-grey);
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    color: var(--color-primary);
}

.breadcrumb-nav li[aria-current="page"] {
    font-weight: 600;
}

/* ==========================================================================
   HOME
   ========================================================================== */
/* Layout */

.section {
    padding-block: var(--section-space);
}

.intro-page .intro-content {
    padding-top: var(--section-space);
}

.container-custom {
    padding-inline: var(--page-padding);
}

/* Sections */
.services,
.content-teaser {
    padding-block: var(--section-space);
}

.content-group > * + * {
    margin-top: var(--section-space);
}

@media (max-width: 991.98px) {

    .mobile-stack > * + * {
        margin-top: 4rem;
    }

}

/* Intro */
.intro-quote {
    margin-bottom: .75rem;
    color: var(--color-primary);
}

.intro-source {
    margin-bottom: 6rem;

    font-size: var(--fs-body);
    font-style: normal;
    color: var(--color-primary);
}

.intro-divider {
    margin-top: var(--section-space);
    border-bottom: 1px solid var(--color-border);
}

.lead {
    margin-inline: auto;

    font-size: var(--fs-body);
    line-height: 1.6;
    font-weight: 400;
}

/* Services */
.services h2 {
    margin-bottom: 3rem;
}

/* Content Teaser */
.services h2,
.content-teaser h2 {
    margin-bottom: var(--section-title-gap);
}

/* Image Grid */
.image-grid img {
    display: block;
    width: 100%;
    height: auto;
}

.image-grid picture,
.image-grid img {
    display: block;
    width: 100%;
    height: 100%;
}

.image-grid img {
    object-fit: cover;
}

.image-figure {
    margin: 0;
}

.image-figure {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.image-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.figure-caption {
    margin-top: 1rem;

    font-size: var(--fs-small);
    line-height: 1.4;

    color: var(--color-text-light);
}

.figure-caption:empty {
    visibility: hidden;
}
/* ==========================================================================
   SERVICES
   ========================================================================== */

.service-teaser {
    text-align: center;
}

.services .row {
    row-gap: var(--teaser-gap);
}

.services .row:last-child > [class*="col-"] {
    display: flex;
}

.service-teaser {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.service-teaser .service-link {
    margin-top: auto;
}

.service-teaser:last-child {
    margin-bottom: 0;
}

img.service-icon {
    width: 98px;
    height: auto;

    margin-bottom: 3rem;
}

.service-teaser h3 {
    margin-bottom: 2rem;
}

.service-teaser p {
    margin-bottom: 3rem;
}

/* Content teaser */

.content-teaser-content {
    margin-bottom: var(--teaser-gap);
}

.teaser-projects {
    background: var(--color-bg-primary);
}

.content-teaser-item + .content-teaser-item {
    margin-top: var(--section-space);
}

.teaser-image img {
    display: block;
    width: 100%;
    height: auto;
}

.teaser-image a {
    display: block;
    overflow: hidden;
}

.teaser-image a img {
    transition: transform .5s ease;
}

.teaser-image a:hover img {
    transform: scale(1.03);
}

/* Links */

.service-link {
    display: inline-flex;
    align-items: baseline;
    gap: 1.5rem;

    color: var(--color-text);
    text-decoration: none;
    font-weight: 700;
}

.service-link span {
    line-height: 1;
}

.service-link img {
    width: 55px;
    height: 21px;

    transform: translateY(5px);
    transition: transform .3s ease;
}

.service-link:hover img {
    transform: translateY(5px) translateX(5px);
}

/* responsive */

@media (max-width: 991.98px) {

    .teaser-image-portrait {
        max-width: none;
        aspect-ratio: auto;
    }

    .teaser-image-portrait img {
        width: 100%;
        height: auto;
    }

}
/* ==========================================================================
   COLLAPSE
   ========================================================================== */

/* Collapse #1 headline */
.collapse-module {
    /*margin-top: 2rem;*/
    border-bottom: 1px solid var(--color-border);
}

p + .collapse-module {
    margin-top: -3rem;
}

.collapse-trigger {
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-top: 2rem;
    padding-bottom: 1.5rem;
    padding-inline: 0;

    border: 0;

    background: transparent;

    font-size: var(--fs-body);
    font-weight: 700;

    text-align: left;
    cursor: pointer;
}

.collapse-trigger:focus,
.collapse-trigger:focus-visible {
    outline: none;
    box-shadow: none;
}

.collapse-trigger {
    color: inherit !important;
}

.collapse-trigger img {
    width: 26px;
    height: auto;

    transition: transform .3s ease;
}

.collapse-trigger[aria-expanded="true"] img {
    transform: rotate(180deg);
}

.collapse-content {
    overflow: hidden;
}

.collapse-content > *:first-child {
    padding-top: 2rem;
}

.collapse-content > :last-child {
    margin-bottom: 0;
}

.collapse-content p {
    margin-bottom: 3rem;
}

.collapse-content ul {
    margin: 0;
    margin-bottom: 3rem;
    padding-left: 1.5rem;
}

.collapse-content .content-block {
    opacity: 0;
    transform: translateY(-16px);

    transition:
        opacity .4s ease,
        transform .4s cubic-bezier(.2,.8,.2,1);
}

.collapse-content.show .content-block {
    opacity: 1;
    transform: translateY(0);
}

/* Gestaffelte Animation */
.collapse-content.show .content-block:nth-child(1) {
    transition-delay: 0s;
}

.collapse-content.show .content-block:nth-child(2) {
    transition-delay: .05s;
}

.collapse-content.show .content-block:nth-child(3) {
    transition-delay: .15s;
}

.collapse-content.show .content-block:nth-child(4) {
    transition-delay: .25s;
}

.collapse-content.show .content-block:nth-child(5) {
    transition-delay: .35s;
}

.collapse-content.show .content-block:nth-child(6) {
    transition-delay: .45s;
}

.collapse-content.show .content-block:nth-child(7) {
    transition-delay: .55s;
}

.collapse-content > *:last-child {
    margin-bottom: 0;
}

.collapse-label {
    transition:
        opacity .15s ease,
        transform .15s ease;
}

.collapse-label.is-changing {
    opacity: .6;
}

.content-block + .content-block {
    margin-top: var(--content-gap);
}

.divider {
    border-bottom: 1px solid var(--color-border);
}

.project-slider {
    margin-bottom: 3rem;
}

.project-slider img {
    display: block;
    width: 100%;
}

.carousel-arrow {
    width: 28px;
    height: 22px;
}

.carousel-arrow-prev {
    transform: rotate(180deg);
}

.project-card {
    display: flex;
    flex-direction: column;
    /*height: 100%;*/
}

.project-card h2 {
    font-size: var(--fs-project-title);
}

.project-item {
    display: flex;
    align-items: flex-start;
}

.project-item .project-card {
    width: 100%;
}

.project-card-slider .carousel-control-prev,
.project-card-slider .carousel-control-next {
    opacity: 1;
}

.project-card-slider .carousel-control-prev img,
.project-card-slider .carousel-control-next img {
    width: 28px;
    height: 22px;

    filter: brightness(0) invert(1);

    transition: transform .3s ease;
}

.project-card-slider .carousel-control-prev:hover img {
    transform: translateX(-10px) rotate(180deg);
}

.project-card-slider .carousel-control-next:hover img {
    transform: translateX(10px);
}

.project-filter-empty {
    display: none;
    text-align: center;
}

/* ==========================================================================
   OVERVIEW SECTIONS
   ========================================================================== */
.service-overview {
    padding-block: var(--section-space);

    color: white;
}

.service-overview-bau {
    background: var(--color-accent-brown);
}

.service-overview-natur {
    background: var(--color-accent-blue);
}

.service-overview-technik {
    background: var(--color-accent-orange);
}

/* Reference links */

.section-reference-link {
    padding-block: var(--section-space);
}

.reference-link {
    display: inline-flex;
    align-items: center;
    gap: 4rem;

    color: var(--color-text);
    text-decoration: none;
}
.reference-link h2 {
    margin-bottom: 0;
}
.reference-link img {
    transform: none;
}
.reference-link:hover img {
    transform: translateX(5px);
}

@media (max-width: 480px) {
    .reference-link h2 {
        font-size: 1.5rem;
        line-height: 1.1;
    }

    .reference-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .reference-link img {
        align-self: flex-end;
    }
}
/* ==========================================================================
   PROJECTS
   ========================================================================== */
.project-filter {
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
}

.project-filter-title {
    margin-bottom: 2rem;

    font-size: var(--fs-body);
    text-align: center;
}

.project-filter-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.project-filter-nav button {
    padding: 0;
    border: 0;
    background: none;

    font-size: var(--fs-body);
    font-weight: 400;
    color: var(--color-text);
    text-transform: uppercase;

    cursor: pointer;
}

.project-filter-nav button:hover {
    color: var(--color-primary);
}

.project-filter-nav button.is-active {
    font-weight: 700;
}

.project-item.is-hidden {
    display: none;
}

.project-card-image {
    margin-bottom: 2rem;
}

.project-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: .25rem 0;

    font-size: var(--fs-body);
    line-height: var(--lh-body);
}

.project-intro {
    margin: 0;
}

.project-meta dt {
    margin-top: 1.25rem;
    font-weight: 600;
}

.project-meta dt:first-child {
    margin-top: 0;
}

.project-meta dd {
    margin: 0;
    line-height: inherit;
    font-weight: 400;
}


/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-competence .row {
    align-items: start;
}   
.about-competence h2,
.team-section h2 {
    margin-bottom: 2rem;
}
.team-grid {
    row-gap: var(--section-space);
    align-items: flex-start;
}

.team-card {
    display: flex;
    flex-direction: column;
}

.team-card-image {
    margin-bottom: 2rem;
}

.team-card-role {
    margin-bottom: 1.5rem;
}
.team-card-contact {
    font-weight: 600;
}

.team-card-contact a {
    color: inherit;
    text-decoration: none;
}

.team-card-contact a:hover {
    color: var(--color-primary);
    cursor: pointer;
}

.bilingual-text .original-text {
    margin-bottom: 1rem;
}

.bilingual-text .translation {
    color: #777;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-locations h2 {
    margin-bottom: 1rem;
}

.contact-locations p {
    margin-bottom: 2rem;
}

.contact-locations a {
    color: inherit;
    text-decoration: none;
}

.contact-locations a:hover {
    color: var(--color-primary);
    cursor: pointer;
}

.contact-map-row {
    margin-top: var(--section-title-gap);
}
/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer-main {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    padding-block: 4rem;
}

.footer-address {
    justify-self: start;
}

.footer-address .fn.org {
    font-weight: 700;
    text-transform: uppercase;
}

.footer-address-line {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-separator {
    width: 1px;
    height: 1rem;
    background: var(--color-border);
}

.footer-address .email {
    color: var(--color-text);
    text-decoration: none;
}

.footer-address .email:hover {
    color: var(--color-primary);
}

.footer-address-line a {
    display: flex;
    align-items: center;
    gap: 1rem;

    color: inherit;
    text-decoration: none;
}

.footer-address-line a:hover {
    color: var(--color-primary);
    cursor: pointer;
}

.footer-logo img {
    width: 75px;
    height: auto;
}

.footer-social {
    justify-self: end;
}

.footer-social img {
    width: 45px;
    height: auto;
}

.footer-meta {
    padding: 1rem 0;
    background: var(--color-bg-grey);
}

.footer-meta ul {
    display: flex;
    gap: 1rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-meta li + li::before {
    content: "|";
    margin-right: 1rem;
    color: var(--color-text-inverse);
}

.footer-meta a {
    color: var(--color-text-inverse);
    text-decoration: none;
}

.footer-meta a:hover {
    color: var(--color-primary);
}

@media (max-width: 991.98px) {

    .footer-main {
        grid-template-columns: 1fr;

        text-align: center;

        gap: 3rem;
    }

    .footer-address,
    .footer-logo,
    .footer-social {
        justify-self: center;
    }

}
/* ==========================================================================
   SELECTION
   ========================================================================== */

::-moz-selection {
    text-shadow: none;
    background: #333;
    color: #FFF;
}

::selection {
    text-shadow: none;
    background: #333;
    color: #FFF;
}

img::selection {
    background: 0 0;
}

img::-moz-selection {
    background: 0 0;
}

body {
    -webkit-tap-highlight-color: #333;
}

a[href^="tel"],
a[href^="sms"] {
    color: inherit;
    cursor: default;
    text-decoration: none;
}