/* =========================================================
   Grundfarben / Design-System
   ========================================================= */

:root {
    --bg-light: #f7f9fa;
    --surface: #ffffff;

    --bg-dark: #0d1b24;
    --bg-dark-secondary: #132934;

    --text: #111b24;
    --text-muted: #64717a;
    --text-light: #edf4f6;
    --text-dark-muted: #aab9c0;

    --accent: #087a91;
    --accent-light: #22a6c1;

    --border: #dce3e7;

    --container-width: 1240px;
}


/* =========================================================
   Basis
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
    background: var(--bg-light);

    line-height: 1.5;
}

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

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


/* =========================================================
   Header
   ========================================================= */

.site-header {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 66px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}


/* Marke */

.brand {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    line-height: 1.15;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.header-chip {
    width: 31px;
    height: 31px;

    flex: 0 0 31px;

    fill: none;

    stroke: var(--accent);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    margin-top: 3px;

    font-size: 11px;
    font-weight: 500;

    color: var(--text-muted);

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* Navigation */

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

.main-nav a {
    position: relative;

    padding: 22px 0 19px;

    font-size: 14px;
    font-weight: 500;

    color: #3b474e;

    transition:
        color 160ms ease;
}

.main-nav a:hover {
    color: var(--accent);
}

.main-nav a.active {
    color: var(--accent);
}

.main-nav a.active::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;

    height: 3px;

    background: var(--accent);
}


/* =========================================================
   Hero
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 78% 35%,
            rgba(34, 166, 193, 0.13),
            transparent 35%
        ),
        linear-gradient(
            120deg,
            #0b1820 0%,
            #10232d 58%,
            #0c1b23 100%
        );

    color: var(--text-light);
}

.hero-inner {
    min-height: 540px;

    display: grid;
    grid-template-columns: 1.15fr 0.85fr;

    align-items: center;

    gap: 55px;

    padding-top: 68px;
    padding-bottom: 56px;
}


/* Inhalt links */

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-label {
    margin: 0 0 20px;

    color: var(--accent-light);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.18em;
}

.hero h1 {
    max-width: 760px;

    margin: 0;

    font-size: clamp(40px, 4vw, 54px);
    line-height: 1.06;

    letter-spacing: -0.04em;
}

.hero h1 span {
    display: block;

    color: #7ed4e4;
}

.hero-text {
    max-width: 640px;

    margin: 28px 0 0;

    color: var(--text-dark-muted);

    font-size: 18px;
    line-height: 1.55;
}


/* Buttons */

.hero-actions {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-top: 38px;
}

/* Hero – Kompetenzpunkte */

.hero-strengths {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 24px;

    margin-top: 38px;
    padding-top: 0;
}

.hero-strength {
    display: flex;
    align-items: flex-start;

    gap: 9px;
}

.hero-strength-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    margin-top: -2px;

    color: #70cedf;
}

.hero-strength-icon svg {
    width: 34px;
    height: 34px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-strength div {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.hero-strength strong {
    color: var(--text-light);

    font-size: 11px;
    font-weight: 650;

    line-height: 1.3;
}

.hero-strength div > span {
    color: var(--text-dark-muted);

    font-size: 10px;
    line-height: 1.4;
}

.button {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 0 23px;

    border: 1px solid transparent;
    border-radius: 7px;

    font-size: 14px;
    font-weight: 600;

    transition:
        background 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

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

.button-primary {
    background: var(--accent);
    color: white;
}

.button-primary:hover {
    background: #096d80;
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.25);

    color: var(--text-light);

    background: rgba(255, 255, 255, 0.03);
}

.button-secondary:hover {
    border-color: rgba(255, 255, 255, 0.5);

    background: rgba(255, 255, 255, 0.06);
}


/* =========================================================
   Technische Grafik rechts
   ========================================================= */

.hero-visual {
    position: relative;

    width: calc(
        100% + max(24px, calc(50vw - 620px))
    );

    margin-right: min(
        -24px,
        calc(620px - 50vw)
    );

    align-self: stretch;

    height: auto;

    margin-top: -68px;
    margin-bottom: -56px;

    overflow: hidden;
}

.hero-visual-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* technische Stichworte */

.technical-list {
    position: absolute;

    top: 70px;
    right: 28px;
    bottom: auto;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 7px;

    padding-left: 14px;

    border-left: 1px solid rgba(126, 212, 228, 0.35);

    text-align: left;
}

.technical-list span {
    color: rgba(237, 244, 246, 0.55);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.13em;
}

/* =========================================================
   Leistungen – Startseite
   ========================================================= */

.services-preview {
    padding: 36px 0 39px;

    background: var(--bg-light);
}


/* Überschrift */

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;

    margin-bottom: 34px;
}

.section-label {
    margin: 0 0 8px;

    color: var(--accent);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.16em;
}

.section-heading h2 {
    margin: 0;

    font-size: 32px;
    line-height: 1.15;

    letter-spacing: -0.025em;
}

.section-intro {
    max-width: 340px;

    margin: 0 0 3px;

    color: var(--text-muted);

    font-size: 14px;
    line-height: 1.5;

    text-align: right;
}

.section-heading-link {
    margin-left: auto;
    margin-bottom: 3px;

    color: var(--accent);

    font-size: 13px;
    font-weight: 650;
    line-height: 1.3;

    text-align: right;
    white-space: nowrap;
}

.section-heading-link:hover {
    color: #096d80;
}


/* Karten */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.service-card {
    position: relative;

    min-width: 0;

    display: flex;
    flex-direction: column;

    padding: 18px 26px 14px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--surface);

    transition:
        transform 160ms ease,
        border-color 160ms ease;
}

.service-card:hover {
    transform: translateY(-3px);

    border-color: rgba(8, 122, 145, 0.35);
}


/* Symbol */

.service-icon {
    min-height: 34px;

    display: flex;
    align-items: center;

    margin-bottom: 10px;

    color: var(--accent);
}

.service-icon-svg {
    width: 34px;
    height: 34px;

    display: block;
}

.service-icon-outline {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-icon-team {
    fill: currentColor;
    stroke: none;
}


/* Inhalt */

.service-card h3 {
    margin: 0 0 8px;

    font-size: 18px;
    line-height: 1.25;

    letter-spacing: -0.015em;
}

.service-card p {
    margin: 0;

    color: var(--text-muted);

    font-size: 14px;
    line-height: 1.45;
}

.service-card .service-arrow {
    position: absolute;
    right: 26px;
    bottom: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--accent);

    font-size: 24px;
    font-weight: 500;
    line-height: 1;

    transition: transform 160ms ease;
}

.service-card .service-arrow:hover {
    transform: translateX(3px);
}

.section-link a {
    color: var(--accent);

    font-size: 13px;
    font-weight: 650;
}


/* Link unter den Karten */

.section-link {
    margin-top: 14px;

    text-align: right;
}

/* =========================================================
   Technologien – Startseite
   ========================================================= */

.technologies-preview {
    padding: 29px 0 31px;

    background: var(--bg-light);
}

.technologies-heading {
    margin-bottom: 27px;
}

.technologies-intro {
    text-align: left;
}

.technology-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 11px;
}

.technology-tags span {
    display: inline-flex;
    align-items: center;

    min-height: 34px;

    padding: 0 15px;

    border: 1px solid #dbe7eb;
    border-radius: 20px;

    background: #eaf3f6;

    color: #31515d;

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;
}

/* =========================================================
   Projekte – Startseite
   ========================================================= */

.projects-preview {
    padding: 72px 0 76px;

    background:
        linear-gradient(
            120deg,
            #0b1820 0%,
            #10232d 60%,
            #0c1b23 100%
        );

    color: var(--text-light);
}


/* Überschrift */

.section-heading-dark h2 {
    color: var(--text-light);
}

.section-heading-dark .section-intro {
    color: var(--text-dark-muted);
}


/* Grid */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}


/* Karte */

.project-card {
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;

    background: #f8fafb;
    color: var(--text);
}

.project-card-dark {
    background: #142833;
    color: var(--text-light);
}


/* Bild-Platzhalter */

.project-visual {
    position: relative;

    height: 180px;

    display: flex;
    align-items: flex-end;

    padding: 18px 20px;

    overflow: hidden;
}

.project-visual::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0.38;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.13) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.13) 1px,
            transparent 1px
        );

    background-size: 28px 28px;
}

.project-visual span {
    position: relative;
    z-index: 1;

    color: rgba(255, 255, 255, 0.72);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.18em;
}


/* unterschiedliche Platzhalter */

.project-visual-measurement {
    background:
        linear-gradient(
            145deg,
            #1d5968,
            #102631
        );
}

.project-visual-monitoring {
    background:
        linear-gradient(
            145deg,
            #314552,
            #101d24
        );
}

.project-visual-magnetic {
    background:
        linear-gradient(
            145deg,
            #31525a,
            #13262c
        );
}


/* Inhalt */

.project-content {
    padding: 25px 24px 27px;
}

.project-content h3 {
    margin: 0 0 14px;

    font-size: 19px;
    line-height: 1.28;

    letter-spacing: -0.015em;
}

.project-content p {
    margin: 0 0 20px;

    color: var(--text-muted);

    font-size: 14px;
    line-height: 1.58;
}

.project-card-dark .project-content p {
    color: var(--text-dark-muted);
}


/* Tags */

.project-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 22px;
}

.project-tags span {
    display: inline-flex;
    align-items: center;

    min-height: 27px;

    padding: 0 10px;

    border-radius: 14px;

    background: #e7f1f4;

    color: #31515d;

    font-size: 11px;
    font-weight: 600;
}

.project-card-dark .project-tags span {
    background: rgba(126, 212, 228, 0.10);

    color: #a9dce6;
}


/* Link */

.project-content a {
    color: var(--accent);

    font-size: 13px;
    font-weight: 650;
}

.project-card-dark .project-content a {
    color: #70cedf;
}


/* Alle Projekte */

.section-link-dark a {
    color: #70cedf;
}

/* =========================================================
   Über mich – Startseite
   ========================================================= */

.about-preview {
    padding: 76px 0;

    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;

    align-items: center;

    gap: 72px;
}


/* Text */

.about-content h2 {
    max-width: 620px;

    margin: 0 0 24px;

    font-size: 36px;
    line-height: 1.12;

    letter-spacing: -0.03em;
}

.about-content p:not(.section-label) {
    max-width: 680px;

    margin: 0 0 16px;

    color: var(--text-muted);

    font-size: 15px;
    line-height: 1.65;
}

.about-link {
    display: inline-block;

    margin-top: 14px;

    color: var(--accent);

    font-size: 14px;
    font-weight: 650;
}


/* rechte Grafik */

.about-visual {
    position: relative;

    min-height: 320px;

    overflow: hidden;

    border-left: 1px solid var(--border);
}

.about-grid-background {
    position: absolute;
    inset: 0;

    opacity: 0.45;

    background-image:
        linear-gradient(
            rgba(8, 122, 145, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(8, 122, 145, 0.08) 1px,
            transparent 1px
        );

    background-size: 34px 34px;

    mask-image:
        linear-gradient(
            to right,
            transparent,
            black 35%
        );
}

.about-keywords {
    position: absolute;

    right: 30px;
    bottom: 34px;

    display: flex;
    flex-direction: column;

    gap: 8px;

    padding-left: 15px;

    border-left: 1px solid rgba(8, 122, 145, 0.35);
}

.about-keywords span {
    color: #71828b;

    font-size: 11px;
    font-weight: 650;

    letter-spacing: 0.15em;
}

/* =========================================================
   Kontakt CTA – Startseite
   ========================================================= */

.contact-cta {
    padding: 24px 0;

    background:
        linear-gradient(
            120deg,
            #10232d 0%,
            #132934 100%
        );

    color: var(--text-light);

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-cta-inner {
    display: grid;
    grid-template-columns: 1.15fr auto auto;

    align-items: center;

    gap: 42px;
}


/* Text */

.contact-cta-text h2 {
    margin: 0 0 5px;

    font-size: 20px;
    line-height: 1.25;

    letter-spacing: -0.015em;
}

.contact-cta-text p {
    margin: 0;

    color: var(--text-dark-muted);

    font-size: 13px;
}


/* Kontaktdaten */

.contact-cta-details {
    display: flex;
    align-items: center;

    gap: 30px;
}

.contact-cta-details a {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: #dce8ec;

    font-size: 13px;
    font-weight: 500;

    white-space: nowrap;
}

.contact-cta-details a:hover {
    color: #ffffff;
}

.contact-cta-symbol {
    color: var(--accent-light);

    font-size: 18px;
}


/* Button */

.contact-cta-button {
    min-width: 175px;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    padding: 27px 0;

    background: #ffffff;

    border-top: 1px solid var(--border);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 40px;
}


/* Marke */

.footer-brand {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    width: fit-content;
}

.footer-chip {
    width: 31px;
    height: 31px;

    fill: none;

    stroke: var(--accent);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1.15;
}

.footer-brand-text strong {
    font-size: 17px;
    font-weight: 700;
}

.footer-brand-text span {
    margin-top: 3px;

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 500;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* Links */

.footer-links {
    display: flex;
    align-items: center;

    gap: 30px;
}

.footer-links a {
    color: #48565e;

    font-size: 12px;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent);
}


/* Claim */

.footer-claim {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 12px;

    color: var(--text-muted);

    font-size: 11px;

    letter-spacing: 0.04em;
}

.footer-claim-line {
    width: 24px;
    height: 2px;

    background: var(--accent);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {

    .hero-strengths {
        grid-template-columns: 1fr;
        gap: 14px;

        max-width: 520px;
    }

    .footer-inner {
        grid-template-columns: 1fr auto;
    }

    .footer-claim {
        grid-column: 1 / -1;

        justify-content: flex-start;
    }

    .contact-cta-inner {
        grid-template-columns: 1fr;

        align-items: flex-start;

        gap: 22px;
    }

    .contact-cta-details {
        flex-wrap: wrap;

        gap: 18px 28px;
    }

    .contact-cta-button {
        width: fit-content;
    }

    .about-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .about-visual {
        min-height: 260px;

        border-left: none;
        border-top: 1px solid var(--border);
    }

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

    .project-card {
        display: grid;
        grid-template-columns: 260px 1fr;
    }

    .project-visual {
        height: 100%;
        min-height: 260px;
    }

    .main-nav {
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr;

        min-height: auto;

        gap: 60px;

        padding-top: 70px;
        padding-bottom: 70px;
    }

    .hero-visual {
        align-self: auto;

        height: 340px;

        margin-top: 0;
        margin-bottom: 0;
    }

    .services-grid {
    grid-template-columns: repeat(2, 1fr);
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .section-heading-link {
        margin-left: 0;
        margin-bottom: 0;

        text-align: left;
    }

    .section-heading-side {
        flex-basis: auto;
        width: 100%;
    }

    .section-intro {
        text-align: left;
    }
}


@media (max-width: 600px) {

    .hero-strengths {
        margin-top: 30px;
        padding-top: 20px;
    }

    .site-footer {
        padding: 26px 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;

        gap: 22px;
    }

    .footer-links {
        gap: 22px;
    }

    .footer-claim {
        grid-column: auto;
    }

    .contact-cta {
        padding: 28px 0;
    }

    .contact-cta-details {
        align-items: flex-start;
        flex-direction: column;

        gap: 12px;
    }

    .contact-cta-button {
        width: 100%;
    }

    .about-preview {
        padding: 56px 0;
    }

    .about-content h2 {
        font-size: 30px;
    }

    .projects-preview {
        padding: 56px 0;
    }

    .project-card {
        display: block;
    }

    .project-visual {
        height: 170px;
        min-height: 0;
    }

    .technologies-preview {
        padding: 48px 0;
    }

    .technology-tags {
        gap: 8px;
    }

    .technology-tags span {
        padding: 0 12px;
        font-size: 12px;
    }
    
    .container {
        width: min(calc(100% - 32px), var(--container-width));
    }

    .header-inner {
        min-height: 72px;
    }

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

    .hero-text {
        font-size: 16px;
    }

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

    .button {
        width: 100%;
    }

    .services-preview {
    padding: 56px 0;
    }

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

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

}