@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0; 
}

body {
    min-height: 100vh;
    background-color: #fff;
    font-size: 12pt;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
}

a {
    color: #1b69b2;
    font-weight: normal;
}

/*
***********************
* Helper  *
***********************
*/

.pt-0 {padding-top: 0px !important;}
.pb-100 {padding-bottom: 100px}
.pb-150 {padding-bottom: 150px} 

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*
***********************
* Navbar and sidebar  *
***********************
*/

nav {
    background-color: white;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.1);
    padding-right: 20px;
}

nav ul {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav li {
    height: 90px;
}

nav a  {
    width: max-content;
    margin: 35px 20px 15px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #555;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    padding-bottom: 7px;
}

nav li.active a::after:not(.sidebar li.active a::after){
    width: 60px;
    background-color: #ddd;
}

nav li a::after {
    content: '';
    height: 2px;
    width: 0;
    background-color: #1B69B2;
    position: absolute;
    bottom: 0px;
    left: 0px;
    transition: width 0.25s ease-in-out;
}

nav li:first-child a:hover::after {
    width: 0; 
}

nav li:not(:first-child, :last-child) a:hover::after {
    width: 60px; 
}

nav li:first-child {
    margin-right: auto;
}

nav li:first-child a {
    margin-top: 30px;
}

nav li.contact-link a {
    width: max-content;
    background-color: #1B69B2;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    margin-top: 27px;
    margin-left: 30px;
    transition: 0.3s;
}

nav li.contact-link a:hover {
    background-color: #207fd8;
}

nav li.mainlogo img {
    width: 400px;
    height: 31px;
}

nav li.hamburger-menu  {
    display: none;
}

nav li.close-menu {
    margin-bottom: 40px;
}

nav li.hamburger-menu a {
    margin-top: 25px;
}

nav li.close-menu a {
    margin-top: 10px;
}



.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.sidebar li {
    width: 100%;
    height: 60px;
}

.sidebar li a {
    width: 100%;
}


@media (max-width: 1200px) {

    /* Top Navigation */
    .hide-on-mobile {
        display: none;
    }

    nav li.hamburger-menu  {
        display: block;
    }

    nav a {
        margin: 0px 20px;
    }

    .sidebar li.active a {
       font-weight: bold;
       color: #1B69B2
    } 

}

@media (max-width: 768px) {
	nav {
		padding-right: 0;
	}
	nav li.mainlogo img {
		width: 220px;
		height: 17px;
		padding-top: 10px;
	}
}



/*
***********************
*    Hero Section     *
***********************
*/
.hero {
    position: relative;
    height: calc(100vh - 90px); /* subtract height of navigation */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(to bottom right, #1b69b2, #ddd);
    overflow: hidden;
}

.hero-content {
    position: absolute;
    left: 7%;
    color: white;
    max-width: 900px;
    opacity: 0;
    animation: fadeIn 3s forwards 0.5s;
}

.hero-content :is(h1, h2) {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
}

.hero-content p.subheadline{
    margin-bottom: 50px;
    font-size: 1.5rem;
}

.hero-content a {
    font-size: 1rem;
    text-decoration: none;
    color: #fff;
    background-color: #1b69b2;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: 0.3s;
}

.hero-content a:hover {
    color: #1b69b2;
    background-color: #fff;
}

.hero-image {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 95%;
    opacity: 0;
    animation: fadeIn 2s forwards 1s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1600px) {
    .hero-content :is(h1, h2) {
        font-size: 4rem;
    }

}

@media (max-width: 1200px) {
    .hero-content :is(h1, h2) {
        font-size: 3rem;
    }
}

@media (max-width: 1400px) and (orientation:portrait) {
    .hero {
        height: calc(50vh - 90px);
    }
}

@media (max-width: 1024px) {
    .hero-content :is(h1, h2) {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        align-items: flex-start;
        padding-top:40px;
    }
	.hero-content :is(h1, h2) {
		font-size: 1.8rem;
		margin-bottom: 5px;
	}
	.hero-content p, .hero-content p.subheadline {
		font-size: 1.0rem;
	}
    .hero-image {
        height: 60%;
    }
	
}




/* General */
.divider {
    border-top: solid 1px #e6e6e6;
    height: 1px;
    padding: 0px;
    margin-bottom: 30px;
}

/* Section mainsection */
.mainsection {
    background-color: #fff;
    padding: 100px 0;
}

.mainsection .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.mainsection-header {
    text-align: left;
    margin-bottom: 20px;
}

.mainsection-header p.section-tag {
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1rem;
    position: relative;
    padding-left: 24px;
}

.mainsection-header p.section-tag::before {
    content: '';
    background-color: #1b69b2;
    height: 15px;
    width: 15px;
    position: absolute;
    top:0;
    left:0;
}

.mainsection-header h2 {
    font-size: 3.5rem;
    line-height: 1.25;
    margin-bottom: 15px;
    color: #888;
    font-weight: 400;
}

.mainsection-content-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
}

.mainsection-content {
    flex: 1 1 50%;
    color: #888;
    font-size: 1.4rem;
    line-height: 1.7;
}

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

.mainsection-content .about-link {
    display: inline-block;
    margin-top: 20px;
    color: #1b69b2;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.4rem;
    position: relative;
}

.about-link::after {
    padding-left: 10px;
    content: "»";
    transition: padding-left 0.4s;
}

.about-link:hover::after {
    padding-left: 20px; 
}

.mainsection-map {
    flex: 1 1 50%;
    text-align: center;
}

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

@media (max-width: 1600px) {
    .mainsection {
        padding: 100px 30px;
    } 
}

@media (max-width: 1400px) {
    .mainsection-header h2{
        margin-top: 10px;
    }
}

@media (max-width: 1024px) {
    .mainsection-content-wrapper {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
	.mainsection {
        padding: 40px 5px;
    }
	.mainsection-header h2 {
		font-size: 2rem;
		line-height: 2.5rem;
	}
    .mainsection-header p.section-tag {
        font-size: 1.2rem;
    }
    .mainsection-content {
        font-size: 1.2rem;
        hyphens: auto;
    }

    .mainsection-content .about-link {

    }

}

/* Wind Big Picture */
.mainsection.mission {
    margin: 100px 0 70px; 
    background-image: url('../images/misc/wind_energy_poland.jpg'); 
    background-repeat: no-repeat; 
    background-size: cover; 
    padding: 600px 0 50px 0
}

.mission p {
    color: #fff;
    line-height: 2.2rem;    
}

.mission h2 {
    color: #fff;
    line-height: 4rem
}

.mainsection.mission .mainsection-header p {
    color: #fff;
    padding-bottom: 10px;
}

@media (max-width: 1600px) {
    .mainsection.mission .container {
        padding: 0px 50px;
    } 
}

@media (max-width: 768px) {
    .mainsection.mission  {
		padding: 0;
		
    } 
    .mainsection.mission .container {
		padding: 60px 20px 40px 30px;
		background-color: rgba(0,0,0,0.4);
	}
	.mission h2 {
		font-size: 1.5rem;
		line-height: 2.2rem;
	}
	.mission p {
		line-height: 1.6rem;
		font-size: 1rem;
	}

}

/* Teaser Start */
.teaser {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
}

.teaser-item {
    text-align: left;
    position: relative;
    overflow: hidden; /* Ensures the slide effect stays within bounds */
}

.teaser-item img {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0 auto;
    border: 1px solid #e6e6e6;
}

.teaser-item h3 {
    margin-bottom: 10px;
    font-size: 1.45rem;
    color: #888;
    text-transform: uppercase;
    font-weight: normal;
    letter-spacing: 0.14rem;
    position: relative;
}

.teaser-item h3::before {
    content: '|';
    padding-right: 6px;
    color: #888;
    transition: color 0.3s;
}

.teaser-item:hover h3::before {
    color: #1b69b2; /* Blue color on hover */
}

.teaser-item::after {
    content: '';
    position: absolute;
    bottom: 2px; /* Positioned at the bottom of the image */
    left: 1px;
    width: 0%;
    height: 4px;
    background-color: #1b69b2; /* Blue color */
    transition: width 0.35s ease-in-out;
    box-sizing: border-box; /* Ensures proper sizing */
}

.teaser-item:hover::after {
    width: calc(100% - 2px); /* Matches the image width minus the border */
}


.teaser-item:hover {
    cursor: pointer;
}

.marketsegments .teaser-item h3 {
    text-transform: none;
}

.marketsegments .teaser-item img {
    aspect-ratio: auto;
}

@media (max-width: 1650px) {
	.marketsegments .teaser {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
    .marketsegments .teaser-item h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 1200px) {
    .teaser-item h3 {
        font-size: 1.3rem;
    }

    .teaser-item img {
        max-width: 450px;
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .teaser {
       
    }
    .teaser-item h3 {
        font-size: 1.3rem;
    }
    .teaser-item img {
        max-width: 1000px;
    }
}


.footer {
    padding: 60px 0 40px 0;
    background-color: #888;
    color: #fff;
    display: flex;
    justify-content: center;
}

.footer > div {
    min-width: 25%;
}


.footer h2 {
    font-weight: 400;
    font-size: 1.5rem;
}

.footer ul {
    margin-top: 18px;
    list-style: none;
}

.footer ul li a {
    color: #fff;
    text-decoration: none;
    line-height: 2.6rem;
    font-size: 1.2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .footer:nth-child(2) {
        display: none;
    }
}


@media (max-width: 577px) {
    .footer {
        display: block;
    }
    .footer-legal, .footer-navigation {
        margin: 50px 10px;
        width: 40%;
        padding-left: 30px;
        display: inline-block;
        vertical-align: top;
    }
    .footer-legal h2, .footer-navigation h2 {
        font-size: 1.5rem;
    }
}
/* HCE Standard Template: Hero Section */
.hce-standard-page {
    width: 100%;
}

.hce-section {
    position: relative;
}

.hce-hero-section {
    position: relative;
    width: 100%;
    height: 500px;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
}

.hce-hero-section__image-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hce-hero-section__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hce-hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
    z-index: 1;
}

.hce-hero-section__content {
    position: relative;
    z-index: 2;
    width: min(100% - 40px, 1200px);
    margin: 0 auto;
    text-align: center;
}

.hce-hero-section__title {
    margin: 0;
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 1.1;
    font-weight: 500;
    text-wrap: balance;
}

@media (max-width: 768px) {
    .hce-hero-section {
        height: 360px;
        max-height: 360px;
    }

    .hce-hero-section__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}


/* Text/Bild Section */
@media (min-width: 1025px) {
    .hce-text-image-section .mainsection-content {
        flex: 0 1 calc((100% - 40px) / 2);
        max-width: calc((100% - 40px) / 2);
    }

    .hce-text-image-section .mainsection-map {
        flex: 0 1 calc((100% - 40px) / 2);
        max-width: calc((100% - 40px) / 2);
    }
}

/*
***********************
* Services & Projects *
***********************
*/

.hce-archive-content,
.hce-service-single__content-section,
.hce-service-single__projects-section,
.hce-project-single__content-section {
    padding: 90px 0;
}

.hce-services-overview-section__header,
.hce-service-single__projects-header,
.hce-archive-header .container {
    margin-bottom: 34px;
}

.hce-services-overview-section__header h2,
.hce-service-single__projects-header h2,
.hce-archive-header h1 {
    color: #888;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.15;
    margin: 0 0 26px;
}

.hce-services-overview-section__text {
    color: #777;
    font-size: 1.1rem;
    line-height: 1.75;
    max-width: 760px;
}

.hce-services-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 26px;
}

.hce-service-card__link,
.hce-project-card__link {
    color: inherit;
    display: block;
    text-decoration: none;
}

.hce-service-card__title {
    border-left: 2px solid #1B69B2;
    color: #777;
    font-size: clamp(1rem, 1.7vw, 1.45rem);
    font-weight: 300;
    letter-spacing: 0.18em;
    line-height: 1.2;
    margin: 0 0 12px;
    padding-left: 12px;
    text-transform: uppercase;
}

.hce-service-card__image-wrap {
    aspect-ratio: 4 / 3;
    border-bottom: 4px solid #1B69B2;
    overflow: hidden;
    position: relative;
}

.hce-service-card__image,
.hce-project-card__image {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    width: 100%;
}

.hce-service-card__image-placeholder {
    background: linear-gradient(135deg, #e9eef4, #f7f9fb);
    height: 100%;
    width: 100%;
}

.hce-service-card__link:hover .hce-service-card__image,
.hce-project-card__link:hover .hce-project-card__image {
    transform: scale(1.04);
}

.hce-cpt-hero {
    align-items: center;
    display: flex;
    height: 500px;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.hce-cpt-hero--no-image {
    background: #1B69B2;
    height: auto;
    min-height: 280px;
}

.hce-cpt-hero__image {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
    z-index: 1;
}

.hce-cpt-hero::after {
    background: rgba(0, 0, 0, 0.28);
    content: '';
    inset: 0;
    position: absolute;
    z-index: 2;
}

.hce-cpt-hero__content {
    padding: 40px 20px;
    position: relative;
    text-align: center;
    z-index: 3;
}

.hce-cpt-hero__title {
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    margin: 0;
}

.hce-service-single__content,
.hce-project-single__content {
    color: #777;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 860px;
}

.hce-service-single__content p,
.hce-project-single__content p {
    margin-bottom: 1.4em;
}

.hce-service-single__projects-section {
    border-top: 1px solid #e5e5e5;
}

.hce-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.hce-project-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hce-project-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.hce-project-card__image-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.hce-project-card__content {
    padding: 24px;
}

.hce-project-card__title {
    color: #666;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.25;
    margin: 0 0 12px;
}

.hce-project-card__meta {
    color: #1B69B2;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.95rem;
    gap: 8px 16px;
    margin-bottom: 14px;
}

.hce-project-card__excerpt {
    color: #777;
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
}

.hce-project-single__meta {
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 42px;
    padding-bottom: 28px;
}

.hce-project-single__meta-item span {
    color: #999;
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.14em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.hce-project-single__meta-item strong {
    color: #666;
    font-size: 1.15rem;
    font-weight: 500;
}

.hce-archive-header {
    background: #f7f8fa;
    padding: 80px 0 50px;
}

@media (max-width: 1280px) {
    .hce-services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .hce-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hce-archive-content,
    .hce-service-single__content-section,
    .hce-service-single__projects-section,
    .hce-project-single__content-section {
        padding: 60px 0;
    }

    .hce-services-grid,
    .hce-projects-grid {
        grid-template-columns: 1fr;
    }

    .hce-cpt-hero {
        height: 360px;
    }
}


/* Leistungsübersicht: Startseiten-Markup wiederverwenden */
.hce-services-overview-section .hce-service-card__link {
    color: inherit;
    display: block;
    text-decoration: none;
}

.hce-services-overview-section .hce-services-overview-section__text {
    max-width: none;
}

.hce-services-overview-section .hce-service-card__image-placeholder {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #e9eef4, #f7f9fb);
    border: 1px solid #e6e6e6;
    border-bottom: 4px solid #1b69b2;
    display: block;
    max-width: 300px;
    width: 100%;
}

@media (max-width: 1200px) {
    .hce-services-overview-section .hce-service-card__image-placeholder {
        max-width: 450px;
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .hce-services-overview-section .hce-service-card__image-placeholder {
        max-width: 1000px;
    }
}


/*
***********************
* Pagebuilder Master  *
***********************
*/
.hce-standard-page .mainsection {
    padding-top: 100px;
    padding-bottom: 100px;
}

.hce-standard-page .teaserarea {
    margin-top: 0;
    padding-top: 0;
}

.hce-standard-page .teaserarea .teaser {
    margin-top: 0;
}

.hce-standard-page .mainsection-content-wrapper + .teaserarea {
    margin-top: 60px;
}

@media (min-width: 1025px) {
    .hce-standard-page .hce-section-intro .mainsection-content {
        flex: 0 1 calc((100% - 40px) / 2);
        max-width: calc((100% - 40px) / 2);
    }
}

@media (max-width: 1600px) {
    .hce-standard-page .mainsection {
        padding-right: 30px;
        padding-left: 30px;
    }
}

@media (max-width: 768px) {
    .hce-standard-page .mainsection {
        padding: 40px 5px;
    }

    .hce-standard-page .mainsection-content-wrapper + .teaserarea {
        margin-top: 40px;
    }
}

/* Leistungsübersicht im Pagebuilder: nutzt die Startseiten-Teaseroptik,
   aber ohne leere Dummy-Spalte rechts. */
.hce-services-overview-section .mainsection-content-wrapper {
    justify-content: flex-start;
}

.hce-services-overview-section .mainsection-content {
    flex-grow: 0;
}

/*
***********************
* Service Detail Page  *
***********************
*/
.hce-hero-section--image-only::after {
    display: none;
}

.mainsection-header h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #888;
    font-weight: 400;
    line-height: 1.15;
}

.hce-service-single .hce-service-single__intro-section {
    padding-bottom: 60px;
}

.hce-service-single .hce-service-single__projects-section {
    border-top: 1px solid #e5e5e5;
    padding-top: 80px;
}

.hce-service-single .mainsection-content.hce-service-single__content {
    font-size: 1.4rem;
    line-height: 1.7;
    max-width: calc((100% - 40px) / 2);
}

.hce-service-single .mainsection-content.hce-service-single__content p {
    margin-bottom: 15px;
}

.hce-service-single .hce-service-single__projects-header {
    margin-bottom: 40px;
}

@media (max-width: 1400px) {
    .mainsection-header h1 {
        line-height: 4rem;
        margin-top: 15px;
    }
}

@media (max-width: 1024px) {
    .hce-service-single .mainsection-content.hce-service-single__content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .mainsection-header h1 {
        font-size: 2rem;
        line-height: 2.5rem;
    }

    .hce-service-single .mainsection-content.hce-service-single__content {
        font-size: 1.2rem;
        hyphens: auto;
    }
}

/* Pagebuilder: optionale Trennlinie oberhalb einzelner Sections */
.hce-standard-page .hce-section--has-top-divider {
    border-top: 1px solid #e6e6e6;
}

/* Text/Bild Section: Ausrichtung & Hintergrundfarbe */
.hce-text-image-section {
    background-color: var(--hce-section-bg-color, #fff);
}

.hce-text-image-section__text ul,
.hce-text-image-section__text ol {
    padding-left: 1.25em;
}

.hce-text-image-section__text li {
    padding-left: 0.15em;
}

@media (min-width: 1025px) {
    .hce-text-image-section--image-left .mainsection-content-wrapper {
        flex-direction: row-reverse;
    }
}

/*
***********************
* Project Carousel     *
***********************
*/
.hce-service-single .hce-service-single__projects-section--carousel {
    background-color: var(--hce-project-carousel-bg, #eeeeee);
    border-top: 0;
    padding: 50px 0 70px;
}

.hce-project-carousel {
    position: relative;
}

.hce-project-carousel__topline {
    height: 44px;
    margin: -50px auto 35px;
    max-width: 260px;
    position: relative;
}

.hce-project-carousel__topline::before,
.hce-project-carousel__topline::after {
    background: #fff;
    content: '';
    height: 1px;
    position: absolute;
    top: 0;
    width: calc(50% - 28px);
}

.hce-project-carousel__topline::before {
    left: 0;
}

.hce-project-carousel__topline::after {
    right: 0;
}

.hce-project-carousel__topline::after {
    box-shadow: -28px 22px 0 22px var(--hce-project-carousel-bg, #eeeeee);
    transform: skewX(-42deg);
    transform-origin: left top;
}

.hce-project-carousel__viewport {
    overflow: hidden;
    width: 100%;
}

.hce-project-carousel__track {
    display: flex;
    gap: 40px;
    transform: translateX(0);
    transition: transform 0.45s ease;
    will-change: transform;
}

.hce-project-carousel__item {
    flex: 0 0 calc((100% - (40px * (var(--hce-carousel-columns, 4) - 1))) / var(--hce-carousel-columns, 4));
    min-width: 0;
}

.hce-project-carousel[data-columns="3"] {
    --hce-carousel-columns: 3;
}

.hce-project-carousel[data-columns="4"] {
    --hce-carousel-columns: 4;
}

.hce-project-carousel[data-columns="5"] {
    --hce-carousel-columns: 5;
}

.hce-project-carousel__controls {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 34px;
}

.hce-project-carousel__button {
    align-items: center;
    background: #fff;
    border: 1px solid #d8d8d8;
    color: #777;
    cursor: pointer;
    display: inline-flex;
    font-size: 2rem;
    height: 44px;
    justify-content: center;
    line-height: 1;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
    width: 44px;
}

.hce-project-carousel__button:hover:not(:disabled) {
    background: #1b69b2;
    border-color: #1b69b2;
    color: #fff;
}

.hce-project-carousel__button:disabled {
    cursor: default;
    opacity: 0.35;
}

.hce-project-card--carousel {
    background: transparent;
    border: 0;
    box-shadow: none;
    height: 100%;
    transform: none;
}

.hce-project-card--carousel:hover {
    box-shadow: none;
    transform: none;
}

.hce-project-card--carousel .hce-project-card__image-wrap {
    aspect-ratio: 16 / 9;
    margin-bottom: 24px;
}

.hce-project-card--carousel .hce-project-card__image-wrap a {
    display: block;
    height: 100%;
}

.hce-project-card--carousel .hce-project-card__image-wrap a:hover .hce-project-card__image {
    transform: scale(1.04);
}

.hce-project-card--carousel .hce-project-card__content {
    padding: 0;
}

.hce-project-card--carousel .hce-project-card__title {
    color: #555;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.hce-project-card--carousel .hce-project-card__title a {
    color: inherit;
    text-decoration: none;
}

.hce-project-card--carousel .hce-project-card__title a:hover {
    color: #1b69b2;
}

.hce-project-card--carousel .hce-project-card__meta {
    color: #555;
    display: block;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 22px;
}

.hce-project-card--carousel .hce-project-card__meta span {
    display: block;
}

.hce-project-card--carousel .hce-project-card__fulltext {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
}

.hce-project-card--carousel .hce-project-card__fulltext p {
    margin-bottom: 1.35em;
}

.hce-project-card--carousel .hce-project-card__fulltext ul,
.hce-project-card--carousel .hce-project-card__fulltext ol {
    margin: 0 0 1.35em 1.2em;
}

@media (max-width: 1280px) {
    .hce-project-carousel {
        --hce-carousel-columns: 3;
    }
}

@media (max-width: 1024px) {
    .hce-project-carousel {
        --hce-carousel-columns: 2;
    }

    .hce-project-carousel__track {
        gap: 28px;
    }

    .hce-project-carousel__item {
        flex-basis: calc((100% - (28px * (var(--hce-carousel-columns, 2) - 1))) / var(--hce-carousel-columns, 2));
    }
}

@media (max-width: 640px) {
    .hce-project-carousel {
        --hce-carousel-columns: 1;
    }

    .hce-project-carousel__track {
        gap: 20px;
    }

    .hce-project-carousel__item {
        flex-basis: 100%;
    }

    .hce-project-carousel__controls {
        justify-content: center;
    }
}

/*
***********************
* Startseite: Hero Slider *
***********************
*/
.hce-hero-slider {
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - 90px);
    height: calc(100vh - 90px);
    background: #1b69b2;
    overflow: hidden;
}

.hce-hero-slider__track {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hce-hero-slider__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.025);
    transition: opacity 0.9s ease-in-out, transform 4.5s ease;
}

.hce-hero-slider__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hce-hero-slider__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--hce-hero-slider-overlay-color, #000);
    opacity: var(--hce-hero-slider-overlay-opacity, 0.42);
    pointer-events: none;
}

.hce-hero-slider__slide--no-overlay .hce-hero-slider__overlay {
    display: none;
}

.hce-hero-slider__content {
    position: relative;
    z-index: 2;
    left: auto;
    width: min(86%, 900px);
    max-width: 900px;
    margin-left: 7%;
    color: #fff;
    opacity: 0;
    transform: translateY(24px);
    animation: none;
}

.hce-hero-slider__slide.is-active .hce-hero-slider__content {
    animation: hceHeroContentIn 0.9s ease forwards 0.18s;
}

.hce-hero-slider__kicker,
.hce-hero-slider__content > p:first-child:not(.subheadline) {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hce-hero-slider__content :is(h1, h2) {
    margin-bottom: 14px;
    color: #fff;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 700;
    line-height: 1.05;
    text-wrap: balance;
}

.hce-hero-slider__content .subheadline {
    margin-bottom: 46px;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    line-height: 1.45;
}

.hce-hero-slider__content a {
    display: inline-flex;
    align-items: center;
    color: #fff;
    background-color: #1b69b2;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.hce-hero-slider__content a:hover {
    color: #1b69b2;
    background-color: #fff;
}

.hce-hero-slider__controls {
    position: absolute;
    right: 40px;
    bottom: 34px;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hce-hero-slider__button,
.hce-hero-slider__dot {
    appearance: none;
    border: 0;
    cursor: pointer;
}

.hce-hero-slider__button {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #1b69b2;
    font-size: 2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.hce-hero-slider__button:hover {
    background: #1b69b2;
    color: #fff;
}

.hce-hero-slider__dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hce-hero-slider__dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.hce-hero-slider__dot.is-active {
    background: #1b69b2;
    transform: scale(1.18);
}

@keyframes hceHeroContentIn {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1400px) and (orientation: portrait) {
    .hce-hero-slider {
        min-height: calc(70vh - 90px);
        height: calc(70vh - 90px);
    }
}

@media (max-width: 1024px) {
    .hce-hero-slider__overlay {
        background: var(--hce-hero-slider-overlay-color, #000);
    }
}

@media (max-width: 768px) {
    .hce-hero-slider {
        min-height: 560px;
        height: 70vh;
        padding-top: 0;
        align-items: center;
    }

    .hce-hero-slider__slide {
        align-items: flex-end;
        background-position: center center;
    }

    .hce-hero-slider__overlay {
        background: var(--hce-hero-slider-overlay-color, #000);
    }

    .hce-hero-slider__content {
        width: calc(100% - 40px);
        margin: 0 20px 96px;
    }

    .hce-hero-slider__content :is(h1, h2) {
        font-size: clamp(2.4rem, 11vw, 3.6rem);
    }

    .hce-hero-slider__content .subheadline {
        margin-bottom: 28px;
        font-size: 1.1rem;
    }

    .hce-hero-slider__controls {
        right: 20px;
        bottom: 20px;
        gap: 10px;
    }

    .hce-hero-slider__button {
        width: 36px;
        height: 36px;
        font-size: 1.7rem;
    }
}

/* Mission / großes Hintergrundbild Section */
.hce-mission-section {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    display: flex;
    align-items: flex-end;
    background-color: var(--hce-mission-bg-color, #888888);
    background-image: var(--hce-mission-bg-image);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    padding: 140px 0 90px;
}

.hce-mission-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--hce-mission-overlay-color, #000000);
    opacity: var(--hce-mission-overlay-opacity, 0.25);
    z-index: 1;
    pointer-events: none;
}

.hce-mission-section .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hce-mission-section .mainsection-content-wrapper {
    justify-content: flex-start;
}

.hce-mission-section__content {
    flex: 0 1 min(960px, 65%);
    max-width: min(960px, 65%);
    color: #fff;
}

.hce-mission-section .mainsection-header p.section-tag,
.hce-mission-section .mainsection-header h2,
.hce-mission-section__text,
.hce-mission-section__text p {
    color: #fff;
}

.hce-mission-section .mainsection-header h2 {
    font-size: clamp(2.4rem, 4.2vw, 4.2rem);
    line-height: 1.15;
    margin-bottom: 22px;
}

.hce-mission-section__text {
    font-size: 1.35rem;
    line-height: 1.7;
}

.hce-mission-section__text p:last-child {
    margin-bottom: 0;
}

.hce-mission-section__link {
    display: inline-block;
    margin-top: 30px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.85);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.hce-mission-section__link::after {
    content: '»';
    padding-left: 10px;
    transition: padding-left 0.3s ease;
}

.hce-mission-section__link:hover {
    color: #dfeeff;
    border-color: #dfeeff;
}

.hce-mission-section__link:hover::after {
    padding-left: 18px;
}

@media (min-width: 1025px) {
    .hce-mission-section--parallax {
        background-attachment: fixed;
    }
}

@media (max-width: 1600px) {
    .hce-mission-section {
        padding-right: 30px;
        padding-left: 30px;
    }
}

@media (max-width: 1024px) {
    .hce-mission-section {
        min-height: 620px;
        background-attachment: scroll;
    }

    .hce-mission-section__content {
        flex-basis: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hce-mission-section {
        min-height: 520px;
        padding: 80px 5px 60px;
    }

    .hce-mission-section .mainsection-header h2 {
        font-size: 2rem;
        line-height: 2.5rem;
    }

    .hce-mission-section__text {
        font-size: 1.1rem;
        line-height: 1.6;
    }
}

/*
***********************
* Teaser Grid Section  *
***********************
*/
.hce-teaser-grid-section .mainsection-content-wrapper {
    justify-content: flex-start;
}

.hce-teaser-grid-section .mainsection-content {
    flex-grow: 0;
}

.hce-teaser-grid-section__text {
    color: #888;
}

.hce-teaser-grid-section .hce-teaser-grid-card__link {
    color: inherit;
    display: block;
    text-decoration: none;
}

.hce-teaser-grid-section .teaser {
    grid-template-columns: repeat(var(--hce-teaser-grid-columns, 5), minmax(0, 1fr));
}

.hce-teaser-grid-section .teaser-item img {
    aspect-ratio: auto;
    display: block;
}

@media (min-width: 1025px) {
    .hce-teaser-grid-section .hce-section-intro .mainsection-content {
        flex: 0 1 calc((100% - 40px) / 2);
        max-width: calc((100% - 40px) / 2);
    }
}

@media (max-width: 1280px) {
    .hce-teaser-grid-section .teaser {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hce-teaser-grid-section .teaser {
        grid-template-columns: 1fr;
    }
}

/*
***********************
* Sticky Header        *
***********************
*/
nav {
    position: sticky;
    top: 0;
    z-index: 900;
}

.admin-bar nav {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar nav {
        top: 46px;
    }
}

@media (max-width: 600px) {
    .admin-bar nav {
        top: 0;
    }
}

/*
***********************
* Scroll To Top        *
***********************
*/
.hce-scroll-top {
    align-items: center;
    background-color: #1B69B2;
    border: 0;
    border-radius: 999px;
    bottom: 28px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    color: #fff;
    cursor: pointer;
    display: flex;
    height: 52px;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 28px;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
    width: 52px;
    z-index: 850;
}

.hce-scroll-top:hover,
.hce-scroll-top:focus-visible {
    background-color: #207fd8;
}

.hce-scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hce-scroll-top svg {
    display: block;
    height: 28px;
    width: 28px;
}

@media (max-width: 768px) {
    .hce-scroll-top {
        bottom: 18px;
        height: 46px;
        right: 18px;
        width: 46px;
    }
}

/*
***********************
* Navigation Active    *
***********************
*/
nav > ul:not(.sidebar) li.active:not(.contact-link) > a::after {
    width: 60px;
    background-color: #b8b8b8;
}

.sidebar li.active > a {
    color: #1B69B2;
    font-weight: 700;
}

/*
***********************
* Project Detail Page  *
***********************
*/
.hce-project-single .hce-project-single__content-section {
    padding-top: 80px;
    padding-bottom: 100px;
}

.hce-project-single .hce-project-single__content-section .container {
    max-width: 1600px;
    margin: 0 auto;
    padding-right: 20px;
    padding-left: 20px;
}

.hce-project-single .hce-project-single__meta {
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    flex-wrap: wrap;
    gap: 34px 70px;
    margin-bottom: 42px;
    padding-bottom: 28px;
}

.hce-project-single .hce-project-single__meta-item {
    align-items: center;
    display: flex;
    gap: 14px;
}

.hce-project-single .hce-project-single__meta-icon {
    align-items: center;
    background-color: rgba(27, 105, 178, 0.08);
    border-radius: 999px;
    color: #1B69B2;
    display: inline-flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.hce-project-single .hce-project-single__meta-icon svg {
    display: block;
    fill: currentColor;
    height: 22px;
    width: 22px;
}

.hce-project-single .hce-project-single__meta-text > span {
    color: #999;
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.14em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.hce-project-single .hce-project-single__meta-text > strong {
    color: #666;
    display: block;
    font-size: 1.15rem;
    font-weight: 500;
}

.hce-project-single .hce-project-single__content {
    max-width: calc((100% - 40px) / 2);
}

@media (max-width: 1600px) {
    .hce-project-single .hce-project-single__content-section .container {
        padding-right: 50px;
        padding-left: 50px;
    }
}

@media (max-width: 1024px) {
    .hce-project-single .hce-project-single__content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hce-project-single .hce-project-single__content-section {
        padding-top: 50px;
        padding-bottom: 60px;
    }

    .hce-project-single .hce-project-single__content-section .container {
        padding-right: 25px;
        padding-left: 25px;
    }

    .hce-project-single .hce-project-single__meta {
        display: block;
    }

    .hce-project-single .hce-project-single__meta-item + .hce-project-single__meta-item {
        margin-top: 22px;
    }
}

/* Customer adjustments: default more links */
.about-link.hce-link--default-more::after,
.hce-mission-section__link.hce-link--default-more::after {
    content: '';
    padding-left: 0;
}

/* Projekt-Referenzen: statische Ausgabe ohne Link-Optik */
.hce-project-card {
    cursor: default;
}

.hce-project-card:hover {
    box-shadow: none;
    transform: none;
}

.hce-project-card:hover .hce-project-card__image {
    transform: none;
}

.hce-project-card--carousel .hce-project-card__image-wrap {
    display: block;
}

/* Leistungsdetailseite: optionale Leistungsnavigation rechts */
.hce-service-single__intro-wrapper--with-nav {
    align-items: flex-start;
}

.hce-service-single__service-nav {
    color: #888;
    flex: 0 1 calc((100% - 40px) / 2);
    max-width: calc((100% - 40px) / 2);
}

.hce-service-nav__grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(var(--hce-service-nav-columns, 3), minmax(0, 1fr));
}

.hce-service-nav__link {
    color: inherit;
    display: block;
    text-decoration: none;
}

.hce-service-nav__image-wrap {
    aspect-ratio: 4 / 3;
    background: #f3f3f3;
    border: 1px solid #e6e6e6;
    display: block;
    overflow: hidden;
    position: relative;
}

.hce-service-nav__image {
    display: block;
    filter: grayscale(1);
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease, transform 0.3s ease;
    width: 100%;
}

.hce-service-nav__link:hover .hce-service-nav__image,
.hce-service-nav__item.is-active .hce-service-nav__image {
    filter: grayscale(0);
    transform: scale(1.035);
}

.hce-service-nav__title {
    color: #888;
    display: block;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.14rem;
    line-height: 1.25;
    margin-top: 10px;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.hce-service-nav__title::before {
    color: #888;
    content: '|';
    padding-right: 6px;
    transition: color 0.25s ease;
}

.hce-service-nav__link:hover .hce-service-nav__title::before,
.hce-service-nav__item.is-active .hce-service-nav__title::before {
    color: #1b69b2;
}

.hce-service-nav__link:hover .hce-service-nav__title,
.hce-service-nav__item.is-active .hce-service-nav__title {
    color: #666;
}

@media (max-width: 1280px) {
    .hce-service-nav__grid {
        gap: 18px;
    }

    .hce-service-nav--columns-4,
    .hce-service-nav--columns-5 {
        --hce-service-nav-columns: 3;
    }

    .hce-service-nav__title {
        font-size: 0.85rem;
        letter-spacing: 0.1rem;
    }
}

@media (max-width: 1024px) {
    .hce-service-single__service-nav {
        flex-basis: 100%;
        max-width: 100%;
    }

    .hce-service-nav {
        --hce-service-nav-columns: 2;
    }
}

@media (max-width: 640px) {
    .hce-service-nav {
        --hce-service-nav-columns: 1;
    }
}
