/* NexusMarketing - Dark Nexus-Anknüpfung */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --nexus-red: #e53935;
    --nexus-red-light: #ff6659;
    --nexus-dark: #0a0a0a;
    --nexus-dark-2: #141414;
    --nexus-dark-3: #1a1a1a;
    --nexus-surface: #232323;
    --nexus-border: #333333;
    --nexus-text: #e0e0e0;
    --nexus-text-muted: #9e9e9e;
    --nexus-success: #43a047;
    --nexus-warning: #fb8c00;
    --nexus-danger: #e53935;
    --nexus-info: #1e88e5;
    --radius: 8px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    background: var(--nexus-dark);
    color: var(--nexus-text);
    line-height: 1.5;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.015) 2px, rgba(255,255,255,0.015) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.015) 2px, rgba(255,255,255,0.015) 4px);
    pointer-events: none;
    z-index: 0;
}

.nm-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nm-header {
    background: var(--nexus-dark-3);
    border-bottom: 2px solid var(--nexus-red);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nm-logo {
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--nexus-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nm-logo span {
    background: linear-gradient(135deg, var(--nexus-red) 0%, var(--nexus-red-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nm-main {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.nm-card {
    background: var(--nexus-dark-3);
    border: 1px solid var(--nexus-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.nm-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--nexus-text);
    border-bottom: 1px solid var(--nexus-border);
    padding-bottom: 0.75rem;
}

.nm-form-group {
    margin-bottom: 1.25rem;
}

.nm-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--nexus-text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nm-form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--nexus-surface);
    border: 1px solid var(--nexus-border);
    border-radius: var(--radius);
    color: var(--nexus-text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nm-form-input:focus {
    outline: none;
    border-color: var(--nexus-red);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
}

.nm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.nm-btn-primary {
    background: linear-gradient(135deg, var(--nexus-red) 0%, var(--nexus-red-light) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.35);
}

.nm-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.45);
}

.nm-btn-secondary {
    background: var(--nexus-surface);
    color: var(--nexus-text);
    border: 1px solid var(--nexus-border);
}

.nm-btn-secondary:hover {
    background: var(--nexus-border);
}

.nm-btn-danger {
    background: var(--nexus-danger);
    color: #fff;
}

.nm-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-weight: 500;
    border-left: 4px solid transparent;
}

.nm-alert-error { background: rgba(229, 57, 53, 0.12); border-color: var(--nexus-danger); color: var(--nexus-red-light); }
.nm-alert-success { background: rgba(67, 160, 71, 0.12); border-color: var(--nexus-success); color: #66bb6a; }
.nm-alert-warning { background: rgba(251, 140, 0, 0.12); border-color: var(--nexus-warning); color: #ffb74d; }
.nm-alert-info { background: rgba(30, 136, 229, 0.12); border-color: var(--nexus-info); color: #64b5f6; }

.nm-login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 2rem;
}

.nm-login-box {
    width: 100%;
    max-width: 420px;
}

.nm-login-box .nm-card {
    text-align: center;
}

.nm-login-box .nm-logo {
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.nm-login-subtitle {
    color: var(--nexus-text-muted);
    margin-bottom: 2rem;
}

.nm-footer {
    background: var(--nexus-dark-2);
    border-top: 1px solid var(--nexus-border);
    padding: 1rem 2rem;
    text-align: center;
    color: var(--nexus-text-muted);
    font-size: 0.875rem;
}

.nm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.nm-table th, .nm-table td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--nexus-border);
}

.nm-table th {
    color: var(--nexus-text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    background: rgba(0,0,0,0.2);
}

.nm-table tr:hover td {
    background: rgba(255,255,255,0.03);
}

.nm-badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nm-badge-info { background: rgba(30, 136, 229, 0.18); color: #64b5f6; }
.nm-badge-success { background: rgba(67, 160, 71, 0.18); color: #66bb6a; }
.nm-badge-warning { background: rgba(251, 140, 0, 0.18); color: #ffb74d; }
.nm-badge-danger { background: rgba(229, 57, 53, 0.18); color: var(--nexus-red-light); }
.nm-badge-secondary { background: rgba(255,255,255,0.08); color: var(--nexus-text-muted); }

.nm-link {
    color: var(--nexus-red-light);
    text-decoration: none;
    font-weight: 600;
}

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

.nm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.nm-stat-card {
    background: linear-gradient(135deg, var(--nexus-dark-3) 0%, var(--nexus-surface) 100%);
    border: 1px solid var(--nexus-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.nm-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--nexus-text);
}

.nm-stat-label {
    color: var(--nexus-text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nm-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nm-nav a {
    color: var(--nexus-text);
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: background 0.15s ease;
}

.nm-nav a:hover, .nm-nav a.active {
    background: rgba(229, 57, 53, 0.15);
    color: var(--nexus-red-light);
}

@media (max-width: 768px) {
    .nm-main { padding: 1rem; }
    .nm-header { flex-direction: column; gap: 1rem; padding: 1rem; }
    .nm-nav { flex-wrap: wrap; justify-content: center; }
    .nm-table { font-size: 0.85rem; }
    .nm-table th, .nm-table td { padding: 0.6rem; }
}
