:root {
    --ink: #102033;
    --ink-soft: #536174;
    --night: #0b1726;
    --night-soft: #142a40;
    --accent: #16a6a0;
    --accent-dark: #087a78;
    --accent-pale: #dff5f2;
    --paper: #ffffff;
    --surface: #f4f7f8;
    --line: #dce4e8;
    --shadow: 0 18px 50px rgba(9, 26, 42, 0.10);
    --radius: 18px;
    --container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 10px 16px;
    color: var(--paper);
    background: var(--night);
    border-radius: 8px;
    transform: translateY(-150%);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(16, 32, 51, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--night);
    font-size: 15px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.brand img {
    width: 72px;
    height: 28px;
    object-fit: contain;
}

.brand span {
    display: grid;
}

.brand strong,
.footer-brand strong {
    color: var(--accent-dark);
    font-weight: 700;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.main-nav a {
    color: var(--ink);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--accent-dark);
}

.main-nav .nav-contact {
    padding: 10px 18px;
    color: var(--paper);
    background: var(--night);
    border-radius: 999px;
}

.main-nav .nav-contact:hover,
.main-nav .nav-contact:focus-visible {
    color: var(--paper);
    background: var(--accent-dark);
}

.menu-button {
    display: none;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    width: 19px;
    height: 2px;
    display: block;
    background: currentColor;
    transition: transform 180ms ease;
}

.menu-icon {
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

.menu-button[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-button[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }

.hero {
    position: relative;
    min-height: 700px;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: var(--paper);
    background: var(--night);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 100px;
    background: linear-gradient(to top, rgba(11, 23, 38, 0.45), transparent);
    pointer-events: none;
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 18, 30, 0.97) 0%, rgba(7, 18, 30, 0.88) 42%, rgba(7, 18, 30, 0.28) 72%, rgba(7, 18, 30, 0.18) 100%),
        url("automatisierung.jpg") center / cover no-repeat;
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding-block: 110px;
}

.hero-content {
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero .eyebrow,
.contact-section .eyebrow {
    color: #63ded6;
}

h1,
h2,
h3,
h4,
h5,
p {
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5 {
    margin-top: 0;
    line-height: 1.16;
}

h1 {
    max-width: 700px;
    margin-bottom: 24px;
    font-size: clamp(44px, 6vw, 76px);
    font-weight: 750;
    letter-spacing: -0.048em;
}

h2 {
    margin-bottom: 22px;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 740;
    letter-spacing: -0.035em;
}

h3 {
    font-size: 25px;
    letter-spacing: -0.02em;
}

.hero-copy {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 750;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(22, 166, 160, 0.42);
    outline-offset: 3px;
}

.button-primary {
    color: #06201f;
    background: #56d7cf;
}

.button-primary:hover {
    background: #76e3dc;
}

.button-secondary {
    color: var(--paper);
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.05);
}

.button-secondary:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
}

.button-dark {
    color: var(--paper);
    background: var(--night);
}

.button-dark:hover {
    background: var(--night-soft);
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 45px 0 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    list-style: none;
}

.hero-facts li {
    position: relative;
    padding-left: 18px;
}

.hero-facts li::before {
    content: "";
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 6px;
    height: 6px;
    background: #56d7cf;
    border-radius: 50%;
}

.section {
    padding-block: 110px;
}

.intro-section {
    border-bottom: 1px solid var(--line);
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(48px, 8vw, 110px);
    align-items: end;
}

.intro-grid h2 {
    max-width: 560px;
    margin-bottom: 0;
}

.lead {
    margin: 0;
    color: var(--ink-soft);
    font-size: 20px;
}

.services-section {
    background: var(--surface);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 50px;
}

.section-heading > p:last-child,
.process-intro > p:last-child,
.profile-copy > p,
.contact-copy > p {
    color: var(--ink-soft);
    font-size: 18px;
}

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

.service-card {
    min-width: 0;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(9, 26, 42, 0.035);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.service-card > img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    filter: saturate(0.72) contrast(1.03);
}

.service-card:nth-child(1) > img { object-position: center 58%; }
.service-card:nth-child(2) > img { object-position: center 52%; }

.service-content {
    position: relative;
    padding: 34px;
}

.service-number {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.service-content h3 {
    margin-bottom: 15px;
}

.service-content p {
    margin: 0 0 18px;
    color: var(--ink-soft);
}

.service-content ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    color: #33465a;
    font-size: 15px;
    list-style: none;
}

.service-content li {
    position: relative;
    padding-left: 18px;
}

.service-content li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.service-card-accent .service-content {
    background: var(--night);
    color: var(--paper);
}

.service-card-accent .service-content p {
    color: rgba(255, 255, 255, 0.72);
}

.service-card-accent .service-number {
    color: #63ded6;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: #63ded6;
    font-weight: 750;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.process-section {
    color: var(--paper);
    background: var(--night);
}

.process-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(60px, 9vw, 130px);
}

.process-intro {
    position: sticky;
    top: 120px;
    align-self: start;
}

.process-intro > p:last-child {
    color: rgba(255, 255, 255, 0.66);
}

.process-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-list li {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 22px;
    padding: 34px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.process-list li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.process-list > li > span {
    color: #63ded6;
    font-size: 13px;
    font-weight: 800;
}

.process-list h3 {
    margin-bottom: 10px;
}

.process-list p {
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
}

.profile-section {
    background: var(--paper);
}

.profile-card {
    min-height: 400px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    align-items: center;
    overflow: hidden;
    background: var(--accent-pale);
    border-radius: 24px;
}

.profile-copy {
    max-width: 650px;
    padding: clamp(40px, 7vw, 80px);
}

.profile-copy .button {
    margin-top: 18px;
}

.profile-mark {
    align-self: stretch;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.9);
    background:
        linear-gradient(145deg, rgba(11, 23, 38, 0.98), rgba(20, 42, 64, 0.90)),
        url("konstruktion.jpg") center / cover;
    font-size: clamp(72px, 11vw, 150px);
    font-weight: 850;
    letter-spacing: -0.09em;
}

.contact-section {
    color: var(--paper);
    background: var(--night-soft);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(56px, 9vw, 120px);
    align-items: start;
}

.contact-copy > p {
    color: rgba(255, 255, 255, 0.68);
}

.contact-details {
    display: grid;
    gap: 20px;
    margin-top: 42px;
    font-style: normal;
}

.contact-details a {
    width: fit-content;
    color: var(--paper);
    font-weight: 650;
    text-decoration: none;
}

.contact-details a:hover {
    color: #63ded6;
}

.contact-details span {
    display: block;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-form {
    padding: clamp(28px, 5vw, 48px);
    color: var(--ink);
    background: var(--paper);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.form-row label {
    font-size: 14px;
    font-weight: 750;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 13px 15px;
    color: var(--ink);
    background: #fbfcfc;
    border: 1px solid #c8d3d8;
    border-radius: 8px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--accent-dark);
    box-shadow: 0 0 0 4px rgba(22, 166, 160, 0.10);
    outline: none;
}

.form-row textarea {
    min-height: 150px;
    resize: vertical;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.submit-button {
    border: 0;
    cursor: pointer;
}

.form-note {
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.55;
}

.form-message {
    margin-bottom: 22px;
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 650;
}

.form-message.is-success {
    color: #175d48;
    background: #ddf7ed;
    border: 1px solid #9cddc8;
}

.form-message.is-error {
    color: #8b2c28;
    background: #fff0ee;
    border: 1px solid #efb8b2;
}

.legal-section {
    padding-block: 70px;
    background: var(--surface);
}

.legal-grid {
    display: grid;
    gap: 14px;
}

.legal-grid details {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.legal-grid summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
    font-weight: 750;
    cursor: pointer;
    list-style: none;
}

.legal-grid summary::-webkit-details-marker {
    display: none;
}

.legal-grid summary span {
    color: var(--accent-dark);
    font-size: 25px;
    line-height: 1;
    transition: transform 160ms ease;
}

.legal-grid details[open] summary span {
    transform: rotate(45deg);
}

.legal-content {
    max-width: 900px;
    padding: 0 26px 34px;
    color: #46576a;
    font-size: 14px;
}

.legal-content h2 {
    margin-top: 18px;
    color: var(--ink);
    font-size: 30px;
}

.legal-content h3 {
    margin: 32px 0 12px;
    color: var(--ink);
    font-size: 20px;
}

.legal-content h4 {
    margin: 25px 0 8px;
    color: var(--ink);
    font-size: 17px;
}

.legal-content h5 {
    margin: 22px 0 8px;
    color: var(--ink);
    font-size: 15px;
}

.legal-content p,
.legal-content ul {
    margin-block: 8px 14px;
}

.legal-content a {
    color: var(--accent-dark);
}

.legal-emphasis {
    font-weight: 700;
}

.legal-version {
    margin-top: 32px !important;
    color: var(--ink-soft);
    font-size: 12px;
}

.site-footer {
    color: rgba(255, 255, 255, 0.68);
    background: #07111d;
}

.footer-inner {
    min-height: 110px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
    font-size: 13px;
}

.footer-brand {
    color: var(--paper);
}

.footer-inner p {
    margin: 0;
    text-align: center;
}

.footer-inner nav {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.footer-inner nav a {
    text-decoration: none;
}

.footer-inner nav a:hover {
    color: var(--paper);
}

@media (max-width: 900px) {
    .container {
        width: min(calc(100% - 36px), var(--container));
    }

    .menu-button {
        display: inline-flex;
    }

    .main-nav {
        position: fixed;
        top: 78px;
        right: 0;
        left: 0;
        height: calc(100vh - 78px);
        display: none;
        align-items: stretch;
        padding: 24px 18px;
        background: var(--paper);
        border-top: 1px solid var(--line);
    }

    .main-nav.is-open {
        display: grid;
        align-content: start;
        gap: 0;
    }

    .main-nav a {
        padding: 18px 8px;
        font-size: 18px;
        border-bottom: 1px solid var(--line);
    }

    .main-nav .nav-contact {
        margin-top: 18px;
        text-align: center;
        border-bottom: 0;
        border-radius: 8px;
    }

    .hero {
        min-height: 660px;
    }

    .hero-media {
        background:
            linear-gradient(90deg, rgba(7, 18, 30, 0.96), rgba(7, 18, 30, 0.68)),
            url("automatisierung.jpg") 58% center / cover no-repeat;
    }

    .intro-grid,
    .process-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .process-intro {
        position: static;
    }

    .profile-card {
        grid-template-columns: 1fr;
    }

    .profile-mark {
        min-height: 240px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        padding-block: 30px;
    }

    .footer-inner nav {
        justify-content: center;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 16px;
    }

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .brand span {
        display: none;
    }

    .hero {
        min-height: 680px;
    }

    .hero-inner {
        padding-block: 86px;
    }

    h1 {
        font-size: clamp(41px, 13vw, 58px);
    }

    h2 {
        font-size: 34px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-facts {
        display: grid;
    }

    .section {
        padding-block: 76px;
    }

    .intro-grid {
        gap: 28px;
    }

    .lead {
        font-size: 18px;
    }

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

    .service-card > img {
        height: 220px;
    }

    .service-content {
        padding: 26px;
    }

    .process-grid,
    .contact-grid {
        gap: 46px;
    }

    .process-list li {
        grid-template-columns: 46px 1fr;
        gap: 10px;
    }

    .profile-copy {
        padding: 36px 28px;
    }

    .profile-mark {
        min-height: 190px;
    }

    .contact-form {
        margin-inline: -4px;
        padding: 26px 20px;
    }

    .contact-details a {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .legal-grid summary {
        padding: 19px 20px;
    }

    .legal-content {
        padding: 0 20px 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
