/* ==================================================
   Netrax Base CSS
   Lesbares Grundsystem fuer WordPress-Projekte
================================================== */

/* 1. Designbasis
-------------------------------------------------- */
:root {
    --nx-color-dark: #120d09;
    --nx-color-ink: #1d2327;
    --nx-color-muted: #667085;
    --nx-color-line: #d9dee7;
    --nx-color-soft: #f5f6f8;
    --nx-color-light: #ffffff;
    --nx-color-accent: #ffcc00;

    --nx-font-base: Arial, Helvetica, sans-serif;
    --nx-radius: 6px;
    --nx-shadow: 0 16px 44px rgba(18, 13, 9, 0.12);

    --nx-container: 1180px;
    --nx-container-wide: 1380px;
    --nx-space-section: clamp(72px, 9vw, 120px);
    --nx-space-section-small: clamp(48px, 6vw, 78px);
}

/* 2. Reset und Grundelemente
-------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--nx-color-light);
    color: var(--nx-color-ink);
    font-family: var(--nx-font-base);
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
    min-width: 320px;
}

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

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* 3. Layout
-------------------------------------------------- */
.nx-main {
    min-height: 70vh;
}

.nx-container,
.nx-wrap {
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(20px, 4vw, 40px);
    padding-right: clamp(20px, 4vw, 40px);
    width: 100%;
}

.nx-container {
    max-width: var(--nx-container);
}

/* Container-Varianten fuer bewusst schmalere oder breitere Inhaltsbereiche. */
.nx-container--small {
    max-width: var(--nx-container-small);
}

.nx-container--wide,
.nx-wrap-full {
    max-width: var(--nx-container-wide);
}

.nx-wrap-60 { max-width: 760px; }
.nx-wrap-70 { max-width: 900px; }
.nx-wrap-80 { max-width: 1040px; }
.nx-wrap-90 { max-width: var(--nx-container); }

.nx-section {
    padding-bottom: var(--nx-space-section);
    padding-top: var(--nx-space-section);
}

.nx-section--small {
    padding-bottom: var(--nx-space-section-small);
    padding-top: var(--nx-space-section-small);
}

.nx-grid {
    display: grid;
    gap: clamp(24px, 4vw, 44px);
}

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

.nx-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nx-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 4. Typografie
-------------------------------------------------- */
.nx-kicker,
.nx-head__sub {
    color: var(--nx-color-accent);
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.nx-head {
    margin-bottom: clamp(32px, 5vw, 60px);
}

.nx-head--center {
    text-align: center;
}

.nx-head__title,
.nx-title {
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.06;
    margin: 0 0 18px;
}

.nx-head__text,
.nx-text {
    color: var(--nx-color-muted);
    max-width: 70ch;
}

.nx-head--center .nx-head__text {
    margin-left: auto;
    margin-right: auto;
}

.nx-head--light,
.nx-head--light .nx-head__title,
.nx-head--light .nx-head__text {
    color: var(--nx-color-light);
}

/* 5. Header und Navigation
-------------------------------------------------- */
.nx-header {
    background: var(--nx-color-dark);
    color: var(--nx-color-light);
    position: relative;
    z-index: 50;
}

.nx-header__inner {
    align-items: center;
    display: flex;
    gap: 32px;
    justify-content: space-between;
    min-height: 82px;
}

.nx-logo {
    align-items: center;
    color: var(--nx-color-light);
    display: inline-flex;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.nx-logo img {
    max-height: 58px;
    width: auto;
}

.nx-nav__list {
    align-items: center;
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nx-nav__list a {
    color: var(--nx-color-light);
    font-weight: 600;
    text-decoration: none;
}

.nx-nav__list a:hover,
.nx-nav__list .current-menu-item > a {
    color: var(--nx-color-accent);
}

.nx-nav-toggle {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    cursor: pointer;
    display: none;
    height: 46px;
    justify-content: center;
    padding: 0;
    position: relative;
    width: 46px;
    z-index: 1001;
}

.nx-nav-toggle span {
    background: var(--nx-color-light);
    display: block;
    height: 2px;
    position: absolute;
    transition: transform 0.2s ease, opacity 0.2s ease;
    width: 24px;
}

.nx-nav-toggle span:nth-child(1) { transform: translateY(-7px); }
.nx-nav-toggle span:nth-child(3) { transform: translateY(7px); }

.nx-nav-toggle.is-active span:nth-child(1) { transform: rotate(45deg); }
.nx-nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nx-nav-toggle.is-active span:nth-child(3) { transform: rotate(-45deg); }

/* 6. Buttons und Karten
-------------------------------------------------- */
.nx-btn,
.nx-button {
    align-items: center;
    background: var(--nx-color-dark);
    border: 1px solid var(--nx-color-dark);
    color: var(--nx-color-light);
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nx-btn:hover,
.nx-button:hover {
    background: var(--nx-color-accent);
    border-color: var(--nx-color-accent);
    color: var(--nx-color-dark);
    transform: translateY(-1px);
}

.nx-btn--light,
.nx-button--light {
    background: var(--nx-color-light);
    border-color: var(--nx-color-light);
    color: var(--nx-color-dark);
}

.nx-btn--outline,
.nx-button--outline {
    background: transparent;
    border-color: currentColor;
    color: var(--nx-color-dark);
}

.nx-card {
    background: var(--nx-color-light);
    border: 1px solid var(--nx-color-line);
    box-shadow: var(--nx-shadow);
    padding: clamp(24px, 4vw, 34px);
}

/* 7. Footer
-------------------------------------------------- */
.nx-footer {
    background: var(--nx-color-dark);
    color: var(--nx-color-light);
    padding: 52px 0 34px;
}

.nx-footer-grid {
    display: grid;
    gap: 34px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nx-footer-box__title {
    color: var(--nx-color-accent);
    font-size: 1rem;
    margin: 0 0 12px;
}

.nx-footer a {
    color: var(--nx-color-light);
}

.nx-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.92rem;
    margin-top: 38px;
    padding-top: 20px;
}

.nx-footer-bottom p {
    margin: 0;
}

/* 8. Animationen
-------------------------------------------------- */
.nx-io {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.nx-io.is-in {
    opacity: 1;
    transform: none;
}

.nx-fade-left {
    opacity: 0;
    transform: translateX(-36px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.nx-fade-left.is-visible {
    opacity: 1;
    transform: none;
}

/* 9. Hintergruende und Accordion
-------------------------------------------------- */
.nx-bg-dark,
.nx-bg-tech {
    background: linear-gradient(120deg, #120d09 0%, #20160f 100%);
    color: var(--nx-color-light);
    position: relative;
}

.nx-bg-soft {
    background: var(--nx-color-soft);
}

.nx-accordion {
    margin: 0 auto;
    max-width: 980px;
}

.nx-acc-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding: 14px 0;
}

.nx-acc-toggle {
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 700;
    list-style: none;
    padding: 8px 46px 8px 0;
    position: relative;
}

.nx-acc-toggle::-webkit-details-marker {
    display: none;
}

.nx-acc-toggle::after {
    align-items: center;
    background: rgba(0, 0, 0, 0.06);
    color: var(--nx-color-accent);
    content: "+";
    display: flex;
    height: 32px;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
}

.nx-acc-item[open] .nx-acc-toggle::after {
    content: "-";
}

.nx-acc-content {
    color: var(--nx-color-muted);
    padding: 0 0 18px;
}

/* 10. Responsive
-------------------------------------------------- */
@media (max-width: 1024px) {
    .nx-grid--3,
    .nx-grid--4,
    .nx-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .nx-nav-toggle {
        display: inline-flex;
    }

    .nx-nav {
        background: var(--nx-color-dark);
        box-shadow: -24px 0 60px rgba(0, 0, 0, 0.28);
        height: 100vh;
        padding: 116px 32px 32px;
        position: fixed;
        right: 0;
        top: 0;
        transform: translateX(100%);
        transition: transform 0.24s ease;
        width: min(330px, 86vw);
        z-index: 1000;
    }

    .nx-nav.is-open {
        transform: translateX(0);
    }

    .nx-nav__list {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }
}

@media (max-width: 700px) {
    .nx-grid--2,
    .nx-grid--3,
    .nx-grid--4,
    .nx-footer-grid {
        grid-template-columns: 1fr;
    }

    .nx-header__inner {
        min-height: 72px;
    }

    .nx-footer {
        padding-top: 42px;
    }
}
