:root {
    --nm-bg: #fff7ed;          /* warmes Creme / Apricot */
    --nm-bg-alt: #ffedd5;      /* etwas kräftiger */
    --nm-bg-light: #ffffff;

    --nm-text: #1f2933;        /* dunkles Grau-Blau für Lesbarkeit */
    --nm-text-muted: #6b7280;

    --nm-accent: #ea580c;      /* warmes Orange */
    --nm-accent-soft: rgba(234, 88, 12, 0.08);

    --nm-border: #fed7aa;

    --nm-radius: 14px;
    --nm-shadow-soft: 0 18px 45px rgba(148, 92, 46, 0.16);

    --nm-max-width: 1120px;
}

/* Reset */

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

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #ffedd5 0, #fff7ed 40%, #fef3c7 100%);
    color: var(--nm-text);
    line-height: 1.6;
}
/* Globale Links im Seiten-Design */
a {
    color: #c2410c; /* warmes Braun-Orange */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
    color: #ea580c; /* Akzentfarbe */
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

/* Utility */

.nm-container {
    width: 100%;
    max-width: var(--nm-max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* Abstand unter dem Header – STEUERT ALLES */
.nm-main {
    padding-top: 16px;   /* kleiner globaler Abstand zum Menü */
}

/* Header */

.nm-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 251, 235, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(248, 171, 84, 0.4);
    box-shadow: 0 8px 20px rgba(248, 171, 84, 0.23);
}

.nm-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nm-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--nm-text);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 14px;
}

.nm-logo img {
    height: 75px;
    width: auto;
}

/* Navigation */

.nm-nav {
    display: flex;
}

.nm-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.nm-nav a {
    text-decoration: none;
    font-size: 14px;
    color: var(--nm-text-muted);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.nm-nav a:hover {
    color: var(--nm-text);
    text-decoration: none;
}

.nm-nav a.active {
    color: var(--nm-accent);
    border-bottom-color: var(--nm-accent);
}

.nm-header-cta {
    margin-left: 12px;
}

/* Buttons */

.nm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}
.nm-btn,
.nm-btn:hover {
    text-decoration: none;
}

.nm-btn-primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    box-shadow: var(--nm-shadow-soft);
}

.nm-btn-primary:hover {
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.3);
}

.nm-btn-secondary {
    background: #fed7aa;
    color: #7c2d12;
    border-color: rgba(248, 171, 84, 0.8);
}

.nm-btn-secondary:hover {
    background: #fdba74;
}

.nm-btn-outline {
    background: transparent;
    color: var(--nm-text);
    border-color: rgba(148, 115, 80, 0.7);
}

.nm-btn-outline:hover {
    border-color: var(--nm-accent);
}

/* Mobile Navigation */

.nm-mobile-toggle {
    position: relative;
    display: none;  /* <-- neu: standardmäßig versteckt (Desktop) */
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(234, 88, 12, 0.8);
    background: #fffaf0;
    cursor: pointer;
}

/* Die Linien GENAU in die Mitte setzen */
.nm-mobile-toggle span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: #7c2d12;
    border-radius: 999px;
    transition: 0.2s ease;
}

/* Positionen für die drei Linien */
.nm-mobile-toggle span:nth-child(1) {
    transform: translateY(-6px);
}

.nm-mobile-toggle span:nth-child(2) {
    transform: translateY(0);
}

.nm-mobile-toggle span:nth-child(3) {
    transform: translateY(6px);
}

/* Animation beim Öffnen */
.nm-mobile-toggle.active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.nm-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nm-mobile-toggle.active span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

.nm-nav-mobile {
    display: none;
    background: #fffbeb;
    border-bottom: 1px solid rgba(248,171,84,0.4);
}

.nm-nav-mobile ul {
    list-style: none;
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nm-nav-mobile a {
    text-decoration: none;
    color: var(--nm-text-muted);
    font-size: 15px;
}

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

/* Hero */

.nm-hero {
    padding: 16px 0 32px; /* dichter am Header */
}

.nm-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 32px;
    align-items: center;
}

.nm-hero-text h1 {
    font-size: 34px;
    line-height: 1.1;
    margin: 0 0 18px;
}

.nm-hero-text p {
    margin: 0 0 16px;
    color: var(--nm-text-muted);
}

.nm-hero-meta {
    font-size: 13px;
    color: var(--nm-text-muted);
}

.nm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

/* Hero Visual */

.nm-hero-visual {
    display: flex;
    justify-content: flex-end;
}

.nm-hero-card {
    background: radial-gradient(circle at top left, rgba(248, 171, 84, 0.26), #fff7ed);
    border-radius: 18px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(248, 171, 84, 0.9);
    box-shadow: var(--nm-shadow-soft);
}

.nm-hero-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #1f2933;
}

.nm-hero-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--nm-text-muted);
}

.nm-hero-card li::before {
    content: "• ";
    color: #f97316;
}

/* Links */

.nm-link {
    font-size: 13px;
    text-decoration: none;
    color: #c2410c;
}

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

/* Sections */

.nm-section {
    padding: 8px 0 32px;  /* kleiner Abstand oben, normal unten */
}

.nm-section-alt {
    background: linear-gradient(180deg, #ffedd5, #fff7ed);
}

.nm-section h1 {
    margin-top: 0;  /* kein extra Abstand oben */
}

.nm-section h2 {
    font-size: 24px;
    margin: 0 0 12px;
    color: #1f2933;
}

.nm-section-intro {
    margin: 0 0 24px;
    color: var(--nm-text-muted);
}

/* Grids */

.nm-grid {
    display: grid;
    gap: 20px;
}

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

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

/* Cards */

.nm-card {
    background: #fffaf0;
    border-radius: var(--nm-radius);
    padding: 18px 18px 16px;
    border: 1px solid var(--nm-border);
    box-shadow: 0 10px 30px rgba(248, 171, 84, 0.28);
}

.nm-card-compact {
    padding: 14px 14px 12px;
}

.nm-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    color: #1f2933;
}

.nm-card p {
    margin: 0 0 10px;
    color: var(--nm-text-muted);
}

/* Listen */

.nm-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    color: var(--nm-text-muted);
}

.nm-list li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 18px;
}

.nm-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--nm-accent);
}

/* Highlight Box */

.nm-highlight-box {
    background: var(--nm-accent-soft);
    border-radius: var(--nm-radius);
    border: 1px solid rgba(248, 171, 84, 0.9);
    padding: 16px 16px 14px;
}

/* CTA Sektionen */

.nm-section-cta {
    text-align: center;
}

.nm-cta-inner {
    text-align: center;
}

.nm-section-cta h2 {
    margin-bottom: 8px;
    color: #1f2933;
}

.nm-section-cta p {
    margin-bottom: 16px;
    color: var(--nm-text-muted);
}

/* Projektkarten Hover */

.nm-project-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nm-project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(248, 171, 84, 0.45);
}

/* Footer */

.nm-footer {
    background: #fff7ed;
    border-top: 1px solid rgba(248, 171, 84, 0.7);
    margin-top: 40px;
}

.nm-footer-inner {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 20px;
    padding: 22px 0 10px;
    font-size: 14px;
}

.nm-footer h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #7c2d12;
}

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

.nm-footer a:hover {
    color: var(--nm-accent);
    text-decoration: none;
}

.nm-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nm-footer li {
    margin-bottom: 4px;
}

.nm-footer-bottom {
    border-top: 1px solid rgba(248, 171, 84, 0.7);
    padding: 10px 0;
    font-size: 12px;
    color: var(--nm-text-muted);
    background: #fffbeb;
}

.nm-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===========================
   Formulare – warmes Light-Theme
   =========================== */

.nm-form {
    margin-top: 10px;
    max-width: 760px;
}

.nm-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 12px;
}

.nm-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.nm-form-group label {
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--nm-text);
}

.nm-form-group input,
.nm-form-group select,
.nm-form-group textarea {
    border-radius: 10px;
    border: 1px solid rgba(248, 171, 84, 0.7);
    background: #fffaf0;
    color: var(--nm-text);
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nm-form-group input:focus,
.nm-form-group select:focus,
.nm-form-group textarea:focus {
    border-color: var(--nm-accent);
    box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.5);
    background: #fffbeb;
}

.nm-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.nm-form-group-checkbox {
    margin-top: 4px;
    font-size: 13px;
    color: var(--nm-text-muted);
}

.nm-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.nm-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
}

.nm-checkbox a {
    color: #c2410c;
    text-decoration: none;
}

.nm-checkbox a:hover {
    text-decoration: underline;
}

.nm-form-actions {
    margin-top: 12px;
}

/* Formular-Meldungen */

.nm-form-msg {
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.nm-form-msg-error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #7f1d1d;
}

.nm-form-msg-error ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.nm-form-msg-success {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.6);
    color: #065f46;
}

/* Responsive */

@media (max-width: 900px) {
    .nm-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .nm-hero-visual {
        justify-content: flex-start;
    }

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

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

@media (max-width: 720px) {
    .nm-header-inner {
        gap: 10px;
    }

    .nm-nav { display: none; }
    .nm-header-cta { display: none; }
    .nm-mobile-toggle { display: flex; }

    /* kein anderer padding-top Wert mehr für .nm-main! */

    .nm-hero {
        padding-top: 16px;
    }

    .nm-hero-text h1 {
        font-size: 26px;
    }

    .nm-grid-2,
    .nm-grid-3 {
        grid-template-columns: 1fr;
    }

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

    .nm-footer-bottom-inner {
        display: grid;
        grid-template-columns: 2fr 1.5fr 1.5fr;
        gap: 20px;
        padding: 22px 0 10px;
        font-size: 14px;
}

    .nm-form-row {
        grid-template-columns: 1fr;
    }

    .nm-form {
        max-width: 100%;
    }
}

/* ===========================
   Cookie-Banner
   =========================== */

.nm-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: none; /* wird per JS ein-/ausgeblendet */
}

.nm-cookie-inner {
    max-width: 960px;
    margin: 16px auto;
    padding: 16px;
    border-radius: 16px;
    background: var(--nm-bg-light, #ffffff);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.29);
    display: grid;
    gap: 12px;
}

.nm-cookie-main h2 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #1f2933;
}

.nm-cookie-main p {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--nm-text-muted);
}

.nm-cookie-main a {
    color: var(--nm-accent);
    text-decoration: none;
}

.nm-cookie-main a:hover {
    text-decoration: underline;
}

.nm-cookie-toggle {
    padding: 4px 0;
    border: none;
    background: transparent;
    color: var(--nm-accent);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

.nm-cookie-settings {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 10px;
    margin-top: 4px;
    display: none; /* standardmäßig eingeklappt */
}

.nm-cookie-group {
    margin-bottom: 6px;
}

.nm-cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--nm-text-muted);
}

.nm-cookie-option input[type="checkbox"] {
    margin-top: 3px;
}

.nm-cookie-option strong {
    color: var(--nm-text);
}

.nm-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* kleine Anpassung für Buttons im Banner */
.nm-cookie-actions .nm-btn {
    font-size: 13px;
    padding: 8px 14px;
}

/* Responsive */

@media (max-width: 720px) {
    .nm-cookie-inner {
        margin: 10px;
        padding: 12px;
    }

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

    .nm-cookie-actions .nm-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =====================================
   Footer speziell einrücken (Desktop + Mobile)
   ===================================== */

/* Standard: etwas mehr Abstand links/rechts nur im Footer */
.nm-footer .nm-container {
    padding-left: 20px;
    padding-right: 20px;
}

/* Mobil: noch etwas mehr, damit nichts geklebt wirkt */
@media (max-width: 720px) {
    .nm-footer .nm-container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

.nm-nav-icon-feed {
    margin-right: 4px;
    font-size: 14px;
    display: inline-block;
    transform: translateY(1px); /* minimal optische Zentrierung */
}
.nm-github-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 18px;
    vertical-align: middle;
}

.nm-github-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(234, 88, 12, 0.08); /* leichter Hintergrundkreis */
}

.nm-github-icon svg {
    width: 25px;
    height: 25px;
    fill: #ea580c; /* deine Akzentfarbe */
}

