:root {
    --bg: #f7fafc;
    --bg-soft: #fff;
    --card: #fff;
    --text: #0d1720;
    --muted: #456;
    --navburger: #ffffff;
    --brand: #085ac43b; /* Akzent */
    --brand-2: #00a8e8; /* Zweitakzent */
    --ring: 0 0 0 3px rgb(29 209 161 / 0.2);
}

* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}
body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
        "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
        "Segoe UI Emoji";
    color: var(--text);
    background: linear-gradient(-45deg, #aaaaaa 30%, #bbbbbb 50%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 2rem;
    height: 8rem;
    background: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
}
.c-arc {
    fill: none;
    stroke: var(--brand-2);
    stroke-width: 5;
    stroke-linecap: round;
}
.pin {
    fill: var(--brand-2);
}
.d-protractor {
    fill: linear-gradient(#fff, #fff);
}
.d-protractor {
    fill: rgba(0, 168, 232, 0.14);
    stroke: var(--brand);
    stroke-width: 2;
}
.ticks {
    fill: none;
    stroke: var(--brand);
    stroke-width: 2;
    stroke-linecap: round;
}
.brand-text {
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* Basis: am Desktop ausblenden */
.nav-burger {
    display: none;
    background: none;
    border: 0;
    font-size: 2rem;
    color: var(--text);
}

.nav {
    display: flex;
    gap: 1rem;
}

/* Filter für Simplify-CAD Logo */
.filter-simplifycad {
    filter: brightness(0) saturate(100%) invert(99%) sepia(86%) saturate(135%)
        hue-rotate(221deg) brightness(115%) contrast(100%);
    width: 100%;
    max-width: 380px; /* Passe nach Bedarf an */
    height: auto;
    display: block;
}
.nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.6rem;
}
.nav a:hover {
    color: var(--text);
    background: rgba(214, 214, 214, 1);
}

.hero {
    position: relative;
    padding: 8rem 1.5rem 5rem;
}
.hero::before {
    content: "";
    position: absolute;
    height: 60%; /* inset:-5% -5% auto -5%; */
    background: radial-gradient(
            60% 60% at 20% 20%,
            rgba(0, 168, 232, 0.25),
            transparent 60%
        ),
        radial-gradient(
            50% 50% at 80% 10%,
            rgba(29, 209, 161, 0.22),
            transparent 70%
        );
    filter: blur(40px);
}
.hero__content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.hero h1 {
    font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem);
    margin: 0.5rem 0 1rem;
}
.lead {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 70ch;
    margin: 0 auto 1.5rem;
}

.cta {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.btn2 {
    --_bg: var(--brand);
    --_fg: #0a1218;
    appearance: none;
    border: 0;
    border-radius: 0.9rem;
    padding: 0.85rem 1.1rem;
    font-weight: 700;
    color: var(--_fg);
    background: var(--_bg);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 12px 30px -12px rgba(29, 209, 161, 0.5);
}

.btn {
    --_bg: var(--brand);
    --_fg: #0a1218;
    font-weight: 700;
    color: var(--_fg);
    background: var(--_bg);
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    box-shadow: rgba(213, 217, 217, 0.5) 0 2px 5px 0;
    box-sizing: border-box;
    color: #0f1111;
    cursor: pointer;
    display: inline-block;
    font-weight: 700;
    line-height: 29px;
    padding: 0 10px 0 11px;
    position: relative;
    text-align: center;
    text-decoration: none;
    --webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: middle;
    width: auto;
}

#leistungen.section > * {
    position: relative;
    z-index: 2;
}

#kontakt form {
    max-width: 90%; /* Or your desired maximum width */
    margin: 0 auto;
}

.btn:hover {
    transform: translateY(-1px);
}
.btn:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}
.btn--ghost {
    --_bg: transparent;
    --_fg: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
}
.btn--sm {
    padding: 0.55rem 0.8rem;
    font-weight: 600;
}

.badges {
    padding: 0 1.25rem 2rem;
}
.badge-list {
    max-width: 1100px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.badge-list li {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--muted);
    padding: 0.45rem 0.7rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.03);
}

.section {
    padding: 4rem 1.25rem;
}
.section h2 {
    font-size: clamp(1.5rem, 2vw + 0.5rem, 2.1rem);
    margin: 0 0 1.25rem;
}
.section--alt {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.02),
        rgba(255, 255, 255, 0)
    );
}

.cards {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}
.card {
    grid-column: span 12;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.25rem;
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.6);
}
.card h3 {
    margin: 0.25rem 0 0.5rem;
}
.card p {
    color: var(--muted);
}
.card ul {
    margin: 0.75rem 0 0 1.1rem;
}

@media (min-width: 720px) {
    .card {
        grid-column: span 4;
    }
}

.grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}
.feature {
    grid-column: span 12;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1.2rem;
    padding: 1rem;
}

@media (min-width: 720px) {
    .feature {
        grid-column: span 6;
    }
}

.stack {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}
.stack li {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--muted);
    padding: 0.5rem 0.7rem;
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
}

.section--cta {
    background: linear-gradient(
        180deg,
        rgba(0, 168, 232, 0.08),
        rgba(29, 209, 161, 0.06)
    );
    border-block: 1px solid rgba(255, 255, 255, 0.06);
}
.contact {
    max-width: 760px;
    margin: 0 auto;
}
.field {
    display: grid;
    gap: 0.4rem;
    margin: 0 0 1rem;
}
label {
    color: var(--muted);
}
input,
textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: #fff;
    color: var(--text);
}

input:focus,
textarea:focus {
    outline: none;
    box-shadow: var(--ring);
    border-color: rgba(29, 209, 161, 0.6);
}
.actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text);
    position: relative;
    text-align: center;
    gap: 0.5rem;
    border-top-color: rgba(0, 0, 0, 0.08);
}

.site-footer nav {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--text);
}

.site-footer .footer-top-link {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

@media (max-width: 700px) {
    .nav {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        background: var(--card, #fff);
        /* width: 70vw; */
        max-width: 320px;
        height: 100vh;
        color: #000;
        padding: 5rem 2rem 2rem 2rem;
        box-shadow: -2px 0 16px rgba(0, 0, 0, 0.12);
        transform: translateX(100%);
        transition: transform 0.3s;
        align-items: flex-start;
        gap: 2rem;
        z-index: 1780; /* deutlich höher als .site-header */
        display: flex;
    }
    .nav a {
        color: #000;
        text-decoration: none;
        padding: 0.5rem 0.75rem;
        border-radius: 0.6rem;
        z-index: 2200;
    }
    .nav--open {
        transform: translateX(0);
    }
    .nav-burger {
        display: block;
        top: 1.5rem;
        right: 1rem;
        z-index: 2100;
        cursor: pointer;
        color: var(--navburger);
    }
}

.form-status {
    margin-top: 1rem;
    color: var(--brand);
    font-weight: 600;
    text-align: center;
}
