html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

.warum_wir_cont {
    overflow: clip;
}

.warum_wir_cont .hacken_liste li {
    border-radius: 6px;
    transition: background-color .2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .warum_wir_cont .hacken_liste li:hover {
        font-weight: inherit;
        background-color: #163f5026;
    }
}

main:has(.hero_content) {
    overflow-x: clip;
}

.navbar {
    transition: box-shadow .25s ease, background-color .25s ease;
}

.navbar.is-scrolled {
    background-color: #286c7c;
    box-shadow: 0 5px 24px #102e3d30;
}

.navbar nav a {
    position: relative;
    padding-block: 10px;
}

.navbar nav a::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.navbar nav a:hover::after,
.navbar nav a[aria-current="page"]::after,
.navbar nav a:focus-visible::after {
    transform: scaleX(1);
}

:is(a, button, input, textarea):focus-visible {
    outline: 3px solid #082f49;
    outline-offset: 4px;
}

.navbar :is(a, button):focus-visible {
    outline-color: white;
}

.hero_content {
    min-height: 640px;
    height: calc(100svh - 60px);
    background-size: cover;
    background-position: center;
    gap: 30px;
    padding: 48px 24px;
}

.hero_content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #082f4914, #082f4930);
    pointer-events: none;
}

.hero_content > * {
    position: relative;
}

.hero_content h1 {
    margin: 0 0 15px;
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.8rem);
    max-width: 950px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #123d50ed, #286c7ced);
    border: 1px solid #ffffff66;
    border-radius: 18px;
    box-shadow: 0 16px 40px #082f4940;
    line-height: 1.15;
    letter-spacing: -.025em;
    animation: hero-title-enter .9s cubic-bezier(.2, .7, .3, 1) both;
    text-shadow: 0 2px 8px #00000030;
    -webkit-text-stroke: 0;
}

.hero_content h1 span {
    position: relative;
    display: inline-block;
    color: #a7f3e8;
}

.hero_content h1 span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.08em;
    height: 2px;
    border-radius: 2px;
    background: #75d8e3;
    transform-origin: left center;
    animation: hero-underline-draw .85s .65s cubic-bezier(.2, .7, .3, 1) both;
}

@keyframes hero-underline-draw {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes hero-title-enter {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero_icons {
    max-width: 800px;
}

.hero_icons .img_wrap {
    min-width: 0;
    flex: 1;
    gap: 12px;
}

.hero_icons .img_wrap .hero_icon_tile {
    display: grid;
    place-items: center;
    width: clamp(76px, 24vw, 104px);
    aspect-ratio: 1;
    padding: 20px;
    border-radius: 28px;
    border: 1px solid #ffffffb3;
    background-color: #ffffffe6;
    background-image: linear-gradient(145deg, #ffffff66 0%, #ffffff00 55%);
    box-shadow: 0 10px 28px #082f4959, inset 0 1px 0 #ffffff;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background-color .3s ease,
        box-shadow .3s ease, border-color .3s ease;
}

.hero_icon {
    width: 100%;
    height: 100%;
    overflow: visible;
    color: #0b3440;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: color .3s ease;
}

.hero_icon .icon_fill {
    fill: currentColor;
    stroke: none;
}

.hero_icon .icon_dashed {
    stroke-dasharray: 3 3;
}

.hero_icon .icon_default,
.hero_icon .icon_hover {
    transform-box: fill-box;
    transform-origin: center;
    transition: opacity .3s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1);
}

.hero_icon .icon_hover {
    opacity: 0;
    transform: scale(.6);
}

.hero_icon .icon_bulb {
    fill: #ffd54a;
    filter: drop-shadow(0 0 4px #ffd54a);
}

.hero_icons .img_wrap p {
    margin: 0;
    padding: 6px 14px;
    border: 1px solid #ffffff40;
    border-radius: 999px;
    background: #082f498c;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: clamp(.85rem, 3.5vw, 1rem);
    letter-spacing: .03em;
    transition: background-color .3s ease, transform .3s ease, border-color .3s ease;
}

@keyframes hero-icon-pulse {
    0% { box-shadow: 0 16px 32px #082f4973, 0 0 0 0 #4fc3ff99; }
    100% { box-shadow: 0 16px 32px #082f4973, 0 0 0 16px #4fc3ff00; }
}

@media (hover: hover) and (pointer: fine) {
    .hero_icons .img_wrap:hover .hero_icon_tile {
        transform: translateY(-8px) scale(1.06) rotate(-4deg);
        border-color: #4fc3ff;
        background-color: #388a9c;
        animation: hero-icon-pulse 1.2s ease-out infinite;
    }

    .hero_icons .img_wrap:hover .hero_icon {
        color: white;
    }

    .hero_icons .img_wrap:hover .icon_default {
        opacity: 0;
        transform: scale(.6);
    }

    .hero_icons .img_wrap:hover .icon_hover {
        opacity: 1;
        transform: scale(1);
    }

    .hero_icons .img_wrap:hover p {
        transform: translateY(-3px);
        border-color: #4fc3ff;
        background-color: #388a9c;
    }
}

.footer-bottom .impressum-link {
    display: inline-block;
    margin: 4px 8px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 68px;
    padding: 10px 22px;
    border: 1px solid white;
    border-radius: 8px;
    color: white;
    background: #163f50b3;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.hero-action-primary {
    color: #205a6a;
    background: white;
}

.hero-call {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 68px;
    padding: 10px 20px;
    flex: 0 1 auto;
    border: 1px solid #ffffffa6;
    border-radius: 8px;
    background: #163f50;
    color: white;
    text-decoration: none;
    animation: phone-float 4s ease-in-out infinite, phone-pulse 4s ease-out infinite;
}

.hero-call-label {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.4;
}

.hero-call-label small {
    display: block;
    font-size: .85rem;
    font-weight: normal;
}

.hero-call:is(:hover, :focus-visible) {
    background: #245c6b;
}

.hero-call:is(:hover, :focus-visible) .hero-call-icon {
    animation-duration: 1.5s;
}

.hero-call-icon {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    animation: phone-ring 4s ease-in-out infinite;
}

@keyframes phone-pulse {
    0%, 60%, 100% { box-shadow: 0 0 0 0 #9defff00; }
    10% { box-shadow: 0 0 0 0 #9defff80; }
    40% { box-shadow: 0 0 0 12px #9defff00; }
}

@keyframes phone-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes phone-ring {
    0%, 35%, 100% { transform: rotate(0); }
    7%, 21% { transform: rotate(-12deg); }
    14%, 28% { transform: rotate(12deg); }
}

.hero-actions a:focus-visible {
    outline-color: white;
}

.dienstleistung_typ,
.objektart_elt,
.team-member2,
.hero-action,
form button[type="submit"] {
    transition: transform .25s ease, box-shadow .25s ease;
}

:is(.beratung, .planung, .ausführung, .dienstleistung_typ, .objektart_elt) {
    overflow-anchor: none;
}

.img_wrapper img,
:is(.beratung_img_cont, .planung_img_cont, .ausführung_img_cont) img {
    transition: transform .5s ease;
}

form :is(input, textarea) {
    transition: border-color .2s ease, box-shadow .2s ease;
}

form :is(input, textarea):focus {
    border-color: #388a9c;
    box-shadow: 0 0 0 3px #388a9c20;
}

.back-to-top {
    position: fixed;
    right: 22px;
    top: 88px;
    z-index: 1900;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #ffffff80;
    border-radius: 50%;
    background: #286c7c;
    color: white;
    box-shadow: 0 4px 16px #082f4930;
    cursor: pointer;
    font-size: 24px;
}

.back-to-top[hidden] {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .hero-action:hover,
    .dienstleistung_typ:hover,
    .objektart_elt:hover,
    form button[type="submit"]:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px #082f4926;
    }

    .img_wrapper:hover img,
    :is(.beratung_img_cont, .planung_img_cont, .ausführung_img_cont):hover img {
        transform: scale(1.035);
    }
}

@media (max-width: 576px) {
    .hero_content {
        min-height: 600px;
        height: auto;
        gap: 24px;
        padding-inline: 16px;
    }

    .hero_content h1 {
        margin: 0;
        padding-inline: 12px;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-action {
        width: 100%;
        max-width: 340px;
    }
}

@media (max-width: 900px) {
    .navbar .hamburger-menu {
        width: 44px;
        height: 44px;
        padding: 8px;
        margin-left: 12px;
        border: 0;
        border-radius: 6px;
        color: white;
        background: transparent;
        font-size: 28px;
    }

    .navbar .nav {
        top: 100%;
        bottom: auto;
        right: 0;
        padding: 20px;
        flex-direction: column;
        gap: 12px;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
        box-shadow: 0 14px 20px #082f4926;
    }

    .navbar .nav.active {
        padding: 20px;
        gap: 12px;
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero_content h1,
    .hero_content h1 span::after,
    .hero-call,
    .hero-call::before,
    .hero-call-icon,
    .hero-call:is(:hover, :focus-visible) .hero-call-icon,
    .hero_icons .img_wrap:hover .hero_icon_tile {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }

    .navbar,
    .warum_wir_cont .hacken_liste li,
    .navbar .nav,
    .navbar nav a::after,
    .dienstleistung_typ,
    .objektart_elt,
    .team-member2,
    .hero_icons .img_wrap .hero_icon_tile,
    .hero_icon,
    .hero_icon .icon_default,
    .hero_icon .icon_hover,
    .hero_icons .img_wrap p,
    .img_wrapper img,
    :is(.beratung_img_cont, .planung_img_cont, .ausführung_img_cont) img,
    .hero-action,
    form :is(input, textarea, button) {
        transition: none;
    }

    .hero-action:hover,
    .hero_icons .img_wrap:hover .hero_icon_tile,
    .hero_icons .img_wrap:hover .icon_default,
    .hero_icons .img_wrap:hover .icon_hover,
    .hero_icons .img_wrap:hover p,
    .dienstleistung_typ:hover,
    .objektart_elt:hover,
    form button[type="submit"]:hover,
    .img_wrapper:hover img,
    :is(.beratung_img_cont, .planung_img_cont, .ausführung_img_cont):hover img {
        transform: none;
    }
}
