/* IMERAJ: targeted corrections to the supplied design.
   Original colors, typography, section layout and slider styling are retained. */

/* Long German hero titles must remain wholly visible at every breakpoint. */
.hero-2 .hero-content .imeraj-hero-kicker {
    color: var(--white);
    font-family: Barlow, sans-serif;
    font-size: 88px;
    font-weight: 900;
    line-height: 1.23;
    margin-bottom: 5px;
}
.hero-2 .hero-content .imeraj-hero-title {
    color: transparent;
    -webkit-text-stroke: 1px var(--white);
    background: transparent;
    font-weight: 900;
    line-height: 1;
    margin: 0;
}
.hero-2 .hero-content h1,
.hero-2 .hero-content .imeraj-hero-title {
    font-size: min(160px, calc((100vw - 180px) / 9));
}

/* Center the visible logo in the header, including the SVG's uneven inner margins. */
#header-sticky .header-main {
    padding: 5px 0 !important;
}
#header-sticky .header-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
#header-sticky .header-logo img {
    display: block;
    /* The visible SVG midpoint is 187 rather than 180 in a 360-unit canvas. */
    transform: translateY(-1.944444%);
}

/* A real button replaces the original non-keyboard-operable menu div. */
.header-main .sidebar__toggle {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.offcanvas__info {
    max-width: 100%;
    height: 100dvh;
}
.offcanvas__close button {
    width: 45px;
    height: 45px;
}
.offcanvas__content .offcanvas__contact a {
    overflow-wrap: anywhere;
}
body.imeraj-menu-open {
    overflow: hidden;
}

/* Keep the sticky navigation below the original Bootstrap dialogs. */
.modal-backdrop {
    z-index: 1000000;
}
.modal {
    z-index: 1000001;
}
.impressum-modal-body {
    overflow-wrap: anywhere;
}
.modal-header {
    gap: 12px;
}
.modal-close-top {
    flex-shrink: 0;
    min-height: 44px;
}
section[id] {
    scroll-margin-top: 118px;
}

/* Restore a visible keyboard focus without altering the normal appearance. */
a:focus-visible,
button:focus-visible,
select:focus-visible {
    outline: 3px solid #F45B1E;
    outline-offset: 4px;
}
.contact-content-style-2 .contact-form-items .form-clt textarea {
    resize: vertical;
}
.luxury-contact-form input:disabled,
.luxury-contact-form textarea:disabled,
.luxury-contact-form button:disabled {
    cursor: wait;
    opacity: .65;
}

/* Center the copyright across the whole bar while keeping the logo on the left. */
.footer-bottom-4 .footer-bottom-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 24px;
}
.footer-bottom-4 .footer-logo-image {
    justify-self: start;
}
.footer-bottom-4 .footer-bottom-wrapper .text-1 {
    margin: 0;
    text-align: center;
}
@media (max-width: 1199px) {
    .footer-bottom-4 .footer-bottom-wrapper {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .footer-bottom-4 .footer-logo-image {
        justify-self: center;
    }
}
@media (max-width: 767px) {
    .footer-bottom-4 .footer-bottom-wrapper .text-1 {
        padding-inline: 56px;
    }
}

@media (max-width: 1399px) {
    .hero-2 .hero-content .imeraj-hero-kicker {
        font-size: 50px;
    }
    .hero-2 .hero-content h1,
    .hero-2 .hero-content .imeraj-hero-title {
        font-size: min(130px, calc((100vw - 80px) / 9));
    }
}
@media (max-width: 1199px) {
    .hero-2 .hero-content h1,
    .hero-2 .hero-content .imeraj-hero-title {
        font-size: min(130px, calc((100vw - 60px) / 9));
    }
}
@media (max-width: 991px) {
    .hero-2 .hero-content .imeraj-hero-kicker {
        font-size: 40px;
    }
    .hero-2 .hero-content h1,
    .hero-2 .hero-content .imeraj-hero-title {
        font-size: min(110px, calc((100vw - 60px) / 9));
    }
}
@media (max-width: 767px) {
    /* Move the complete hero copy and buttons up together on phones.
       Keep the total padding unchanged so the image framing stays the same. */
    .hero-section-2 .hero-2 {
        padding-top: 110px;
        padding-bottom: 160px;
    }
    .hero-2 .hero-content h1,
    .hero-2 .hero-content .imeraj-hero-title {
        font-size: min(80px, calc((100vw - 60px) / 9));
    }
    .contact-content-style-2 .contact-form-items .form-clt input,
    .contact-content-style-2 .contact-form-items .form-clt textarea,
    .contact-content-style-2 .contact-form-items .form-clt select {
        font-size: 16px;
    }
}
@media (max-width: 575px) {
    .hero-2 .hero-content .imeraj-hero-kicker {
        font-size: 35px;
    }
    .hero-2 .hero-content h1,
    .hero-2 .hero-content .imeraj-hero-title {
        font-size: min(72px, calc((100vw - 30px) / 9));
    }
    .hero-box .client-items,
    .hero-box .client-items .text {
        min-width: 0;
        max-width: 100%;
    }
    .hero-box .client-items .text span {
        overflow-wrap: anywhere;
    }
    .offcanvas__wrapper .offcanvas-title {
        font-size: 28px;
    }
    .impressum-modal-header {
        flex-wrap: wrap;
        padding-inline: 20px;
    }
}
@media (max-width: 470px) {
    .hero-2 .hero-content h1,
    .hero-2 .hero-content .imeraj-hero-title {
        font-size: min(59px, calc((100vw - 30px) / 9));
    }
}

@media (hover: none), (pointer: coarse) {
    .mouseCursor {
        display: none !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0ms !important;
    }
    .mouseCursor {
        display: none !important;
    }
    .wow, .reveal {
        visibility: visible !important;
        opacity: 1 !important;
        clip-path: none !important;
    }
    .hero-content, .hero-button {
        transform: none !important;
    }
    .hero-section-2 .swiper-slide.swiper-slide-active .hero-bg {
        transform: none;
    }
}


/* Service and reference photos retain the proportions of the original cards. */
.imeraj-service-intro {
    max-width: 760px;
    margin: 22px 0 0;
    color: #e5e5e5;
    font-size: 18px;
    line-height: 1.6;
}
.service-card-items-style-2 .imeraj-service-description {
    margin: 18px 0 0;
    color: #e5e5e5;
    font-size: 16px;
    line-height: 1.65;
}
.service-card-items-style-2 .service-image {
    aspect-ratio: 392 / 539;
}
.project-box-items-style-2 .project-image {
    aspect-ratio: 600 / 712;
}
.service-card-items-style-2 .service-image > .hover-img,
.project-box-items-style-2 .project-image > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-card-items-style-2 .service-image .service-content {
    right: 24px;
}
.service-image[data-service-photo="kernbohren"] > .hover-img {
    object-position: 65% center;
}
.service-image[data-service-photo="seilsaegen"] > .hover-img {
    object-position: left center;
}
.service-image[data-service-photo="entkernung"] > .hover-img {
    object-position: right center;
}
.service-image[data-service-photo="spezialloesungen"] > .hover-img {
    object-position: 55% center;
}
.project-image[data-reference-photo="cancom"] > img {
    object-position: 65% center;
}
.project-image[data-reference-photo="rolls-royce"] > img {
    object-position: 55% center;
}
.imeraj-reference-photo-label {
    position: absolute;
    z-index: 1000;
    top: 16px;
    left: 16px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 3px;
    background: rgba(25, 25, 25, .78);
    color: #fff;
    font-family: Barlow, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    pointer-events: none;
}
.hero-section-2 .hero-box {
    padding-top: 36px;
}
.hero-section-2 .hero-box .client-items .text {
    margin-top: 0;
}
.hero-section-2 .hero-box .client-items .text .sign-image img {
    width: 130px;
    max-width: 100%;
    height: auto;
}

/* The feature logo also opens the construction special on three quick clicks. */
.feature-list-bottom .imeraj-construction-trigger {
    position: relative;
    left: -20px;
    display: block;
    flex: 0 0 auto;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
    line-height: 0;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.feature-list-bottom .imeraj-construction-trigger img {
    display: block;
}
/* Align the logo beneath the crane where the full desktop layout is shown. */
@media (min-width: 1400px) {
    .feature-list-bottom .imeraj-construction-trigger {
        left: -96px;
    }
}
.feature-list-bottom .imeraj-construction-trigger:focus-visible {
    outline: 2px solid #F45B1E;
    outline-offset: 4px;
    border-radius: 4px;
}
.imeraj-construction-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 999990;
    pointer-events: none;
    user-select: none;
    contain: strict;
}
@media (max-width: 767px) {
    .feature-list-bottom .imeraj-construction-trigger {
        left: -6px;
    }
}

.imeraj-photo-credits details {
    margin: 18px 0 0;
}
.imeraj-photo-credits summary {
    cursor: pointer;
    font-weight: 600;
}
.imeraj-photo-credits ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}
.imeraj-photo-credits li {
    padding: 15px 0;
    border-top: 1px solid #e2e2e2;
    font-size: 15px;
    line-height: 1.7;
}
@media (max-width: 767px), (hover: none), (pointer: coarse) {
    .project-box-items-style-2 .project-image::before {
        opacity: 1;
        visibility: visible;
        z-index: 2;
    }
    .project-box-items-style-2 .project-image .content {
        left: 24px;
        right: 24px;
        opacity: 1;
        visibility: visible;
        z-index: 3;
    }
    .project-box-items-style-2 .project-image .arrow {
        right: 24px;
        opacity: 1;
        visibility: visible;
        z-index: 3;
    }
}
