:root {
    --green: #83c51f;
    --green-light: #a0dc37;
    --green-dark: #619d10;
    --black: #080a09;
    --charcoal: #131614;
    --white: #ffffff;
    --offwhite: #f4f5f2;
    --text: #191c1a;
    --muted: #636a65;
    --line: #dfe2df;
    --content-width: 1220px;
    --header-height: 112px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

body.menu-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 4px;
}

.container {
    width: min(calc(100% - 48px), var(--content-width));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    padding: 10px 16px;
    color: var(--black);
    background: var(--green);
    border-radius: 4px;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    min-height: var(--header-height);
    color: var(--white);
    background: rgba(5, 7, 6, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

/* Logo */

.brand-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    overflow: visible;
}

.brand-logo-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.brand-logo-header {
    width: 390px;
    min-width: 390px;
}

.brand-logo-header .brand-logo-image {
    max-height: 94px;
}

.brand-logo-footer {
    width: 300px;
}

.brand-logo-footer .brand-logo-image {
    max-height: 82px;
}

/* Navigation */

.main-navigation {
    display: flex;
    align-items: center;
    gap: 44px;
    margin-left: auto;
}

.main-navigation a {
    position: relative;
    padding: 8px 0;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.main-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -3px;
    height: 3px;
    background: var(--green);
    transition: right 180ms ease;
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    right: 0;
}

.main-navigation a.active {
    color: var(--green);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 11px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--white);
    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

/* Hero */

.hero {
    position: relative;
    min-height: 760px;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background: var(--black);
}

.hero-image {
    position: absolute;
    inset: 0;
    background:
        url("pics/hero-3d-printer.png")
        center right / cover
        no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.98) 0%,
            rgba(0, 0, 0, 0.94) 30%,
            rgba(0, 0, 0, 0.56) 56%,
            rgba(0, 0, 0, 0.08) 82%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.22),
            rgba(0, 0, 0, 0.12)
        );
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    width: min(590px, 54%);
    margin-left: 50px;
    padding: 84px 0 76px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3.2rem, 6.2vw, 5.9rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-transform: uppercase;
}

.hero h1 span {
    display: block;
    margin: 8px 0;
    color: var(--green);
}

.slogan {
    display: flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    margin: 30px 0;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.slogan i {
    width: 60px;
    height: 2px;
    background: var(--green);
}

.slogan strong {
    color: var(--green);
}

.hero p {
    margin: 0 0 34px;
    color: rgba(255, 255, 255, 0.83);
    font-size: 1.08rem;
}

/* Buttons */

.button {
    display: inline-flex;
    min-height: 52px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    gap: 24px;
    border: 0;
    border-radius: 2px;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 160ms ease,
        background-color 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--white);
    background: linear-gradient(
        90deg,
        var(--green-dark),
        var(--green)
    );
}

.button-primary:hover {
    background: linear-gradient(
        90deg,
        var(--green),
        var(--green-light)
    );
}

/* Leistungen */

.section-light {
    background: var(--white);
}

.services {
    padding: 50px 0 42px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.3rem);
    line-height: 1;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.section-heading h2 span {
    color: var(--green-dark);
}

.section-heading-centered {
    text-align: center;
}

.heading-line {
    width: 52px;
    height: 3px;
    margin-top: 16px;
    background: var(--green);
}

.section-heading-centered .heading-line {
    margin-inline: auto;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 42px;
}

.service-card {
    min-height: 260px;
    padding: 10px 34px 26px;
    text-align: center;
}

.service-card + .service-card {
    border-left: 1px solid var(--line);
}

.service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    color: var(--green-dark);
}

.service-card h3 {
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
}

.service-card p {
    max-width: 230px;
    margin: 14px auto 0;
    color: #4f5651;
    font-size: 0.9rem;
    line-height: 1.65;
}

/* Über uns */

.about {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    min-height: 510px;
    background: #f4f5f3;
}

.about-image {
    min-height: 510px;
    background:
        url("pics/about-3d-parts.png")
        center / cover
        no-repeat;
}

.about-content {
    display: flex;
    align-items: center;
    padding: 62px 48px;
}

.about-content-inner {
    max-width: 650px;
}

.about-content p {
    margin: 24px 0 0;
    color: #3d433f;
}

.about-values {
    font-weight: 900;
}

.about-hashtag {
    color: var(--green-dark) !important;
    font-weight: 700;
}

/* Kontakt */

.contact {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--charcoal);
}

.contact-background {
    position: absolute;
    inset: 0 0 0 66%;
    background:
        linear-gradient(
            90deg,
            rgba(19, 22, 20, 1) 0%,
            rgba(19, 22, 20, 0.3) 48%,
            rgba(19, 22, 20, 0.1) 100%
        ),
        url("pics/contact-printed-part.png")
        center / cover
        no-repeat;
    opacity: 0.9;
}

.contact-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.6fr 1.15fr;
    gap: 48px;
    padding-top: 54px;
    padding-bottom: 54px;
}

.section-heading-dark h2 {
    color: var(--white);
}

.contact-details {
    padding-right: 44px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-list {
    display: grid;
    gap: 22px;
    margin-top: 30px;
    font-style: normal;
}

.contact-item {
    display: grid;
    grid-template-columns: 33px 1fr;
    align-items: start;
    gap: 16px;
    font-size: 0.92rem;
}

.contact-item svg {
    width: 28px;
    height: 28px;
    color: var(--green);
}

.contact-item span,
.contact-item a {
    color: rgba(255, 255, 255, 0.88);
}

.contact-item a:hover {
    color: var(--green-light);
}

.contact-form {
    max-width: 650px;
    display: grid;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field input,
.field textarea {
    width: 100%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1px;
}

.field input {
    height: 51px;
    padding: 0 16px;
}

.field textarea {
    min-height: 142px;
    padding: 15px 16px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.field input:focus,
.field textarea:focus {
    border-color: var(--green);
    outline: none;
}

.privacy-checkbox {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    align-items: start;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    cursor: pointer;
}

.privacy-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-box {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 1px solid rgba(255, 255, 255, 0.48);
}

.privacy-checkbox input:checked + .checkbox-box {
    background:
        var(--green)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23080a09' stroke-width='3' d='m4 10 4 4 8-9'/%3E%3C/svg%3E")
        center / 14px
        no-repeat;
}

.privacy-checkbox a {
    color: var(--green-light);
    text-decoration: underline;
}

.contact-form .button {
    justify-self: start;
    min-width: 240px;
}

.form-message {
    padding: 12px 15px;
    font-size: 0.88rem;
    font-weight: 700;
}

.form-message-success {
    color: #e9ffd1;
    background: rgba(131, 197, 31, 0.15);
    border: 1px solid rgba(131, 197, 31, 0.4);
}

.form-message-error {
    color: #ffdada;
    background: rgba(210, 55, 55, 0.15);
    border: 1px solid rgba(255, 110, 110, 0.35);
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Rechtliches */

.legal {
    padding: 50px 0;
    color: var(--white);
    background: linear-gradient(
        90deg,
        #171a18,
        #111311
    );
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 68px;
}

.legal-column + .legal-column {
    padding-left: 68px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.legal-column p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.84rem;
}

.legal-column strong {
    color: #ffe49b;
}

.privacy-details {
    margin-top: 25px;
}

.privacy-details summary {
    display: inline-flex;
    min-height: 48px;
    padding: 0 22px;
    align-items: center;
    color: var(--green);
    border: 1px solid var(--green-dark);
    font-size: 0.83rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}

.privacy-details summary::-webkit-details-marker {
    display: none;
}

.privacy-details[open] summary {
    color: var(--black);
    background: var(--green);
}

.privacy-content {
    margin-top: 25px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
}

.privacy-content h3 {
    margin: 28px 0 8px;
    color: var(--white);
    font-size: 1rem;
}

.privacy-content h3:first-child {
    margin-top: 0;
}

/* Footer */

.site-footer {
    padding: 18px 0;
    color: rgba(255, 255, 255, 0.68);
    background: var(--black);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    min-height: 96px;
    display: grid;
    grid-template-columns: minmax(300px, 1fr) auto 1fr;
    align-items: center;
    gap: 30px;
}

.footer-inner p {
    margin: 0;
    font-size: 0.8rem;
    text-align: center;
}

.back-to-top {
    justify-self: end;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--green);
    border: 1px solid var(--green-dark);
    font-size: 1.2rem;
}

.back-to-top:hover {
    color: var(--black);
    background: var(--green);
}

/* Tablet */

@media (max-width: 1050px) {
    .main-navigation {
        position: fixed;
        inset: var(--header-height) 0 0;
        display: none;
        padding: 46px 28px;
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        background: rgba(5, 7, 6, 0.98);
    }

    .main-navigation.open {
        display: flex;
    }

    .main-navigation a {
        font-size: 1.25rem;
    }

    .nav-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .brand-logo-header {
        width: 330px;
        min-width: 330px;
    }

    .brand-logo-header .brand-logo-image {
        max-height: 86px;
    }

    .hero-content {
        width: 64%;
        margin-left: 30px;
    }

    .service-card {
        padding-inline: 20px;
    }

    .contact-background {
        opacity: 0.5;
    }

    .legal-grid {
        gap: 40px;
    }

    .legal-column + .legal-column {
        padding-left: 40px;
    }
}

/* Kleine Tablets */

@media (max-width: 820px) {
    :root {
        --header-height: 96px;
    }

    .container {
        width: min(calc(100% - 30px), var(--content-width));
    }

    .brand-logo-header {
        width: 270px;
        min-width: 270px;
    }

    .brand-logo-header .brand-logo-image {
        max-height: 76px;
    }

    .brand-logo-footer {
        width: 250px;
    }

    .hero {
        min-height: 700px;
        align-items: flex-end;
    }

    .hero-image {
        background-position: 62% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.28) 0%,
                rgba(0, 0, 0, 0.5) 32%,
                rgba(0, 0, 0, 0.98) 74%
            );
    }

    .hero-content {
        width: 100%;
        margin-left: 0;
        padding: 260px 18px 60px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .service-card:nth-child(4) {
        border-top: 1px solid var(--line);
    }

    .about {
        grid-template-columns: 1fr;
    }

    .about-image {
        min-height: 430px;
    }

    .about-content {
        padding: 55px 30px;
    }

    .contact-background {
        display: none;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-details {
        padding-right: 0;
        padding-bottom: 36px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

    .contact-form {
        max-width: none;
    }

    .legal-grid {
        grid-template-columns: 1fr;
    }

    .legal-column + .legal-column {
        padding-top: 42px;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        border-left: 0;
    }

    .footer-inner {
        grid-template-columns: 1fr auto;
    }

    .footer-inner p {
        grid-column: 1 / -1;
        grid-row: 2;
        text-align: left;
    }
}

/* Smartphone */

@media (max-width: 560px) {
    :root {
        --header-height: 82px;
    }

    .brand-logo-header {
        width: 205px;
        min-width: 205px;
    }

    .brand-logo-header .brand-logo-image {
        max-height: 64px;
    }

    .brand-logo-footer {
        width: 205px;
    }

    .brand-logo-footer .brand-logo-image {
        max-height: 64px;
    }

    .hero {
        min-height: 660px;
    }

    .hero-content {
        padding: 230px 12px 60px;
    }

    .hero h1 {
        font-size: clamp(2.75rem, 14vw, 4.3rem);
    }

    .slogan {
        gap: 9px;
        font-size: 0.84rem;
        letter-spacing: 0.09em;
    }

    .slogan i {
        width: 36px;
    }

    .hero p br {
        display: none;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card + .service-card {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .about-image {
        min-height: 340px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form .button {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}