@font-face {
    font-family: "Roboto";
    src: url("../fonts/roboto-300.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/roboto-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/roboto-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --teal: #036463;
    --teal-light: #099190;
    --ink: #020202;
    --muted: #707070;
    --white: #ffffff;
    --soft: #f5f7f7;
    --container: min(1180px, calc(100vw - 40px));
    --header-h: 94px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Roboto", Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
}

img,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--teal);
}

:focus-visible {
    outline: 3px solid var(--teal-light);
    outline-offset: 4px;
}

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    transform: translateY(-140%);
    background: var(--teal);
    color: var(--white);
    padding: 12px 16px;
    font-weight: 500;
}

.skip-link:focus {
    transform: translateY(0);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 13px 23px;
    border: 0;
    background: var(--teal);
    color: var(--white);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
    background: var(--teal-light);
    color: var(--white);
}

.button:active {
    transform: translateY(1px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 4px 2px -3px rgba(0, 0, 0, 0.11);
}

.header-bar {
    min-height: var(--header-h);
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(210px, 20%) 1fr minmax(210px, 19%);
    align-items: center;
    gap: 12px;
}

.brand img {
    width: min(100%, 286px);
    height: auto;
}

.primary-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 2vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 500;
    line-height: 1;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    color: var(--teal);
}

.phone-link {
    min-height: 79px;
    padding: 0 24px 0 46px;
    margin-right: -20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 3px;
    background: url("../img/tel-button.svg") center right / contain no-repeat;
}

.phone-link:hover,
.phone-link:focus-visible {
    color: var(--white);
    background-image: url("../img/tel-button-1.svg");
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    justify-self: end;
    cursor: pointer;
}

.nav-toggle__line,
.nav-toggle__line::before,
.nav-toggle__line::after {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--teal);
    content: "";
}

.nav-toggle__line::before {
    transform: translateY(-8px);
}

.nav-toggle__line::after {
    transform: translateY(5px);
}

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h) + 105px);
    margin-top: -105px;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-video {
    position: absolute;
    inset: 0;
    z-index: -4;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.95);
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0.82) 46%, rgba(3, 100, 99, 0.66) 100%),
        rgba(255, 255, 255, 0.2);
}

.hero-circuit {
    position: absolute;
    inset: auto 0 0;
    z-index: -2;
    height: 43%;
    background: url("../img/Schaltplan-Kopie-1.svg") bottom center / 100% auto no-repeat;
    mix-blend-mode: lighten;
    opacity: 0.82;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-top: var(--header-h);
    text-align: center;
}

.hero h1 {
    margin: 0;
    color: var(--teal);
    font-size: clamp(46px, 6.2vw, 90px);
    font-weight: 500;
    letter-spacing: 0;
}

.hero p {
    margin: 2px 0 18px;
    color: var(--ink);
    font-size: clamp(18px, 2.4vw, 32px);
    font-weight: 300;
}

.hero .button {
    font-size: 18px;
}

.hero-down {
    position: absolute;
    right: 4vw;
    bottom: 5vh;
    width: clamp(64px, 9vw, 126px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: clamp(32px, 6vw, 70px);
    background: rgba(255, 255, 255, 0.08);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.welcome-section {
    min-height: 52vh;
    display: grid;
    align-items: center;
    background: url("../img/content1-parallax.png") center / contain no-repeat fixed;
}

.welcome-inner {
    width: var(--container);
    margin: 0 auto;
    padding: clamp(48px, 8vw, 120px) 0;
}

.welcome-kicker {
    margin: 0 0 -8px;
    color: #c6c6c6;
    font-size: clamp(36px, 6vw, 87px);
    font-weight: 700;
    line-height: 0.8;
}

.welcome-section h2 {
    margin: 0;
    color: var(--teal);
    font-size: clamp(36px, 6vw, 87px);
    font-weight: 700;
    line-height: 1.05;
}

.welcome-copy {
    max-width: 760px;
    margin: 12px 0 0;
    font-size: 20px;
    font-weight: 500;
}

.company-section {
    position: relative;
    min-height: 80vh;
    display: grid;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(rgba(3, 100, 99, 0.88), rgba(3, 100, 99, 0.9)),
        url("../img/content-area2_bg-1.jpg") center / cover no-repeat;
    color: var(--white);
}

.company-grid {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 48.5% 51.5%;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 2;
}

.company-heading {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 18px;
    align-items: start;
}

.slash-mark {
    width: 34px;
    height: 34px;
    margin-top: 12px;
    display: block;
    background: var(--white);
    position: relative;
}

.slash-mark::after {
    position: absolute;
    inset: 7px auto auto 7px;
    width: 28px;
    height: 8px;
    background: var(--teal);
    transform: rotate(-45deg);
    content: "";
}

.company-section h2 {
    margin: 0;
    max-width: 540px;
    color: var(--white);
    font-size: clamp(28px, 4vw, 55px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0;
}

.company-text {
    font-size: 16px;
    line-height: 2.35;
}

.company-text p {
    margin: 0 0 18px;
}

.company-video {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: -3px 1px 6px rgba(50, 50, 50, 0.75);
    opacity: 0.96;
}

.company-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-video--a {
    width: 9vw;
    left: -1.5vw;
    top: 9%;
}

.company-video--b {
    width: 18vw;
    left: 17vw;
    top: 19%;
}

.company-video--c {
    width: 12vw;
    left: 3vw;
    bottom: 12%;
}

.company-video--d {
    width: 17vw;
    left: 23vw;
    bottom: 5%;
}

.services-slider {
    position: relative;
    background: var(--ink);
}

.slides {
    position: relative;
    min-height: 85vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    background: var(--slide-bg) center / cover no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 500ms ease, visibility 500ms ease;
}

.slide::before {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    content: "";
}

.slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    width: min(520px, calc(100vw - 40px));
    margin: 0 0 13vh 5vw;
    color: var(--white);
}

.slide-content h3 {
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 55px);
    line-height: 1.05;
    font-weight: 700;
}

.slide-content p {
    margin: 0 0 22px;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 500;
    letter-spacing: 0;
}

.service-tabs {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 3;
    transform: translateX(-50%);
    display: flex;
    gap: 28px;
    align-items: end;
}

.service-tab {
    width: 130px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #d3d3d3;
    font: inherit;
    text-align: center;
    cursor: pointer;
    opacity: 0.78;
}

.service-tab img {
    width: 90px;
    height: 76px;
    margin: 0 auto 8px;
    object-fit: contain;
}

.service-tab span {
    display: block;
    font-size: 12px;
    line-height: 1.1;
}

.service-tab.is-active,
.service-tab:hover,
.service-tab:focus-visible {
    color: var(--white);
    opacity: 1;
}

.statement-section {
    min-height: 80vh;
    display: grid;
    place-items: center;
    margin-top: -52px;
    background:
        url("../img/bg-verlauf.svg") bottom center / cover no-repeat,
        url("../img/fourth-content_image-overlay.svg") center / cover no-repeat,
        rgba(132, 132, 132, 0.08);
}

.statement-inner {
    width: min(920px, calc(100vw - 40px));
    margin: 0 auto;
    text-align: center;
    font-size: clamp(19px, 2.1vw, 28px);
    font-weight: 700;
    line-height: 1.55;
}

.statement-inner p {
    margin: 0 0 16px;
}

.statement-inner strong {
    color: var(--teal);
    font-weight: 700;
}

.slash-mark--center {
    margin: 0 auto 30px;
    background: transparent;
}

.slash-mark--center::after {
    background: var(--teal);
}

.posts-section {
    padding: clamp(70px, 9vw, 150px) 0 clamp(120px, 12vw, 220px);
    background: var(--white);
}

.posts-inner {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 68px;
}

.info-card {
    display: grid;
    grid-template-rows: auto 1fr;
    background: var(--white);
    box-shadow: 12px 12px 0 1px var(--teal);
}

.info-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.42);
}

.info-card div {
    padding: clamp(28px, 4vw, 60px);
}

.info-card h3 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.2;
}

.info-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 300;
}

.contact-banner {
    min-height: 72vh;
    display: grid;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.05)), url("../img/kontakt-banner-bg.jpg") center right / cover no-repeat;
    color: var(--white);
}

.contact-banner__content {
    width: var(--container);
    margin: 0 auto;
}

.contact-banner h2 {
    max-width: 680px;
    margin: 0 0 22px;
    color: var(--white);
    font-size: clamp(32px, 5vw, 55px);
    line-height: 1;
}

.contact-banner h2 span {
    font-size: 0.72em;
}

.site-footer {
    position: relative;
    margin-top: 50px;
    padding: 105px 150px 40px;
    background: var(--white);
}

.footer-mark {
    position: absolute;
    top: 0;
    left: 35px;
    width: 55px;
    height: 51px;
    background: url("../img/statement-bildlogo.svg") center / contain no-repeat;
}

.footer-grid {
    max-width: 1930px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 22% 1fr 19%;
    gap: 44px;
    align-items: center;
}

.site-footer h2 {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: 28px;
    letter-spacing: 1px;
}

.site-footer address,
.site-footer p,
.site-footer a,
.footer-sitemap li {
    font-size: 16px;
    line-height: 1.8;
    font-style: normal;
}

.footer-contact a {
    color: var(--teal);
    font-weight: 500;
}

.footer-sitemap ul {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 3;
}

.footer-sitemap a:hover {
    color: var(--teal);
}

.footer-badge {
    display: grid;
    justify-items: center;
}

.footer-badge img {
    max-width: 150px;
    height: auto;
}

.to-top {
    position: fixed;
    right: 2.5vw;
    bottom: 3vh;
    z-index: 20;
    width: 94px;
    min-height: 120px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    color: var(--teal);
    font-size: 15px;
    text-align: center;
    writing-mode: vertical-rl;
    background: url("../img/nach-oben.svg") bottom right / contain no-repeat;
}

.to-top span:first-child {
    font-size: 28px;
    writing-mode: horizontal-tb;
}

.page-hero {
    min-height: 42vh;
    display: grid;
    align-items: end;
    padding: calc(var(--header-h) + 70px) 0 70px;
    background: linear-gradient(rgba(3, 100, 99, 0.78), rgba(3, 100, 99, 0.78)), url("../img/content-area2_bg-1.jpg") center / cover no-repeat;
    color: var(--white);
}

.page-hero > div,
.contact-layout {
    width: var(--container);
    margin: 0 auto;
}

.page-hero p {
    margin: 0 0 8px;
    font-size: 20px;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 90px);
    line-height: 1;
}

.contact-layout {
    padding: clamp(60px, 9vw, 120px) 0;
    display: grid;
    grid-template-columns: 34% 1fr;
    gap: clamp(40px, 8vw, 110px);
    align-items: start;
}

.contact-details h2,
.contact-form h2 {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: clamp(28px, 3.2vw, 44px);
}

.contact-details address,
.contact-details p {
    font-style: normal;
    line-height: 1.9;
}

.contact-details a {
    color: var(--teal);
    font-weight: 500;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.form-intro {
    margin: 0 0 10px;
    line-height: 1.7;
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    font-weight: 500;
}

.field input,
.field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #c8d0d0;
    padding: 12px 14px;
    font: inherit;
    background: var(--white);
}

.field textarea {
    resize: vertical;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: #a00000;
}

.field--checkbox {
    grid-template-columns: 22px 1fr;
    align-items: start;
}

.field--checkbox input {
    width: 20px;
    min-height: 20px;
    margin: 3px 0 0;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.form-message {
    min-height: 1.4em;
    color: var(--teal);
    font-weight: 500;
}

.form-message.is-error {
    color: #a00000;
}

.required-note {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 1190px) {
    .header-bar {
        grid-template-columns: minmax(200px, 24%) 1fr minmax(185px, 24%);
    }

    .primary-nav ul {
        gap: 12px;
    }

    .primary-nav a {
        font-size: 15px;
    }

    .phone-link {
        font-size: 13px;
        letter-spacing: 2px;
        padding-left: 36px;
    }
}

@media (max-width: 1024px) {
    :root {
        --header-h: 86px;
    }

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

    .nav-toggle {
        display: grid;
        place-items: center;
        order: 2;
    }

    .primary-nav {
        grid-column: 1 / -1;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 220ms ease;
    }

    .primary-nav.is-open {
        max-height: 420px;
    }

    .primary-nav ul {
        display: grid;
        gap: 0;
        padding: 12px 0 20px;
    }

    .primary-nav a {
        justify-content: center;
        min-height: 42px;
        font-size: 18px;
    }

    .phone-link {
        grid-column: 1 / -1;
        order: 3;
        width: min(100%, 290px);
        min-height: 62px;
        margin: 0 0 0 auto;
        font-size: 15px;
    }

    .hero {
        margin-top: -155px;
        min-height: 88vh;
    }

    .company-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .company-section {
        min-height: 84vh;
        padding: 90px 0;
    }

    .company-text {
        line-height: 2;
    }

    .slides {
        min-height: 70vh;
    }

    .slide-content {
        width: min(680px, calc(100vw - 40px));
        margin-bottom: 15vh;
    }

    .statement-section {
        min-height: 50vh;
    }

    .posts-inner {
        grid-template-columns: 1fr 1fr;
        gap: 44px;
    }

    .site-footer {
        padding: 50px 0 40px 80px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-sitemap ul {
        columns: 2;
    }
}

@media (max-width: 767px) {
    :root {
        --container: min(100% - 30px, 520px);
        --header-h: 78px;
    }

    .header-bar {
        min-height: var(--header-h);
        padding: 0 0 0 6px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0;
    }

    .brand img {
        width: 186px;
    }

    .nav-toggle {
        width: 42px;
        height: 42px;
    }

    .phone-link {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 50px;
        padding-right: 14px;
        margin: 0;
        font-size: 13px;
        justify-content: flex-end;
    }

    .hero {
        min-height: 74vh;
        margin-top: -128px;
    }

    .hero-content {
        margin-top: 110px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero .button,
    .button {
        font-size: 16px;
    }

    .hero-down {
        right: -2vw;
        bottom: -1vh;
    }

    .welcome-section {
        min-height: auto;
        background-attachment: scroll;
        background-position: top center;
    }

    .welcome-kicker,
    .welcome-section h2 {
        font-size: 36px;
    }

    .welcome-copy {
        font-size: 15px;
        line-height: 1.5;
    }

    .company-section {
        min-height: 95vh;
        padding: 70px 0 120px;
    }

    .company-grid {
        gap: 24px;
    }

    .company-heading {
        grid-template-columns: 1fr;
    }

    .company-section h2 {
        font-size: 28px;
    }

    .company-text {
        font-size: 14px;
        line-height: 2;
    }

    .company-video--a,
    .company-video--c {
        width: 45%;
        left: 0;
    }

    .company-video--a {
        top: 3%;
    }

    .company-video--b,
    .company-video--d {
        width: 62%;
        left: 34%;
    }

    .company-video--b {
        top: 19%;
    }

    .company-video--c {
        bottom: 7%;
    }

    .company-video--d {
        bottom: 1%;
    }

    .slides {
        min-height: 90vh;
    }

    .slide-content {
        width: calc(100vw - 32px);
        margin: 0 auto 18vh;
    }

    .slide-content h3 {
        font-size: 30px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .service-tabs {
        width: calc(100vw - 20px);
        gap: 4px;
        bottom: 18px;
        justify-content: center;
    }

    .service-tab {
        width: 31%;
    }

    .service-tab img {
        width: 72px;
        height: 62px;
    }

    .statement-section {
        min-height: 64vh;
        margin-top: -38px;
    }

    .statement-inner {
        font-size: 19px;
    }

    .posts-section {
        padding: 80px 0 120px;
    }

    .posts-inner {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .info-card {
        box-shadow: 8px 8px 0 1px var(--teal);
    }

    .contact-banner {
        min-height: 85vh;
        background-position: 68% -70px;
        align-items: end;
        padding-bottom: 76px;
    }

    .contact-banner h2 {
        font-size: 30px;
    }

    .site-footer {
        padding: 35px 0 70px 55px;
    }

    .footer-mark {
        left: 0;
    }

    .site-footer h2 {
        font-size: 21px;
    }

    .footer-sitemap ul {
        columns: 1;
    }

    .footer-badge {
        justify-items: start;
    }

    .footer-badge img {
        max-width: 120px;
    }

    .to-top {
        position: static;
        width: auto;
        min-height: auto;
        margin: 30px 0 0;
        writing-mode: horizontal-tb;
        justify-content: start;
    }

    .page-hero {
        min-height: 36vh;
        padding-bottom: 42px;
    }

    .contact-layout {
        padding: 60px 0 80px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    video {
        animation: none;
    }
}
