/* ---------- Grundlayout ---------- */

:root {
	--nc-bg-page: radial-gradient(circle at top, #101a2f 0, #020714 55%, #000000 100%);
    --nc-panel-bg: rgba(8, 12, 26, 0.93);
    --nc-card-bg: rgba(9, 14, 32, 0.98);
    --nc-border-soft: rgba(255, 255, 255, 0.01);
    --nc-text-main: #f5f7ff;
    --nc-text-muted: #9ca6c7;
    --nc-accent: #1fd6ff;
    --nc-accent-soft: #4fd4ff;
    --nc-accent-strong: #2f8bff;
    --nc-bad: #ff4f5a;
    --nc-warn: #f0b44b;
    --nc-good: #38d996;
    --nc-radius-card: 0;         /* eckig */
    --nc-radius-btn: 2px;
    --nc-shadow-soft: 0 24px 40px rgba(0, 0, 0, 0.7);
    --nc-font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    color: var(--nc-text-main);
    font-family: var(--nc-font-main);
    background: #000;
}

.nc-page-bg {
    min-height: 100vh;
    background: var(--nc-bg-page);
    color: var(--nc-text-main);
}

/* ---------- Shell / Header ---------- */

.nc-shell {
    max-width: 1600px;
    margin: 0px auto 48px;
    padding: 24px 32px 32px;
    background: var(--nc-panel-bg);
    border: 1px solid var(--nc-border-soft);
    box-shadow: var(--nc-shadow-soft);
}

.nc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.nc-title-block h1 {
    margin: 0 0 4px;
    font-size: 1.8rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.nc-title-block p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--nc-text-muted);
}

.nc-header-actions {
    min-width: 260px;
    text-align: right;
}

/* ---------- Button / Progress ---------- */

.nc-btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--nc-radius-btn);
    background-image: linear-gradient(135deg, var(--nc-accent-strong), var(--nc-accent));
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7);
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.nc-btn-primary:hover:not(:disabled) {
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.8);
}

.nc-btn-primary:disabled {
    opacity: 0.7;
    cursor: default;
}

.nc-btn-primary.btn-running::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.35),
        rgba(255, 255, 255, 0.15)
    );
    mix-blend-mode: screen;
    animation: buttonShimmer 1.4s infinite;
    border-radius: inherit;
    pointer-events: none;
}


.hidden {
    display: none;
}

.nc-progress {
    margin-top: 10px;
}

.nc-progress-label {
    font-size: 0.75rem;
    color: var(--nc-text-muted);
    margin-bottom: 4px;
}

.nc-progress-bar {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.nc-progress-bar-inner {
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--nc-accent-strong), var(--nc-accent-soft), var(--nc-accent-strong));
    animation: progressIndeterminate 1.2s infinite linear;
}

@keyframes progressIndeterminate {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

/* ---------- Layout: 3 Spalten ---------- */

.nc-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.nc-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nc-col-left,
.nc-col-right {
    flex: 0 0 360px;
}

.nc-col-center {
    flex: 1 1 auto;
}

/* ---------- Cards ---------- */

.nc-card {
    background: var(--nc-card-bg);
    border-radius: var(--nc-radius-card);
    border: 1px solid var(--nc-border-soft);
    padding: 14px 16px 14px;
}

.nc-card-title {
    margin: 0 0 16px;
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nc-card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
}

/* ---------- Metriken links ---------- */

.nc-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1rem;
    margin-bottom: 12px;
}

.nc-metric-row-secondary {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.nc-metric-row .label {
    color: var(--nc-text-muted);
}

.nc-metric-row .value {
    font-weight: 500;
}

/* ---------- Pingchart ---------- */

.ping-chart {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    width: 120px;
    height: 24px;
}

.ping-bar {
    flex: 1;
    min-width: 2px;
    border-radius: 2px 2px 0 0;
    background: rgba(47, 139, 255, 0.9);
}

.ping-bar.bad {
    background: rgba(255, 99, 132, 0.95);
}

/* ---------- NAT Tags ---------- */

.nc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 0 6px;
}

.nc-tags .tag {
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1.0rem;
    color: var(--nc-accent-soft);
}

.nc-note {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--nc-text-muted);
    margin: 40px 0 0;
}

.nat-details div {
    margin-bottom: 8px;      /* angenehmer, kompakter Abstand */
    line-height: 1.35;       /* bessere Lesbarkeit */
}

/* NAT-Analyse-Card */
.nc-card.nat-extra {
    margin-top: 12px;
    font-size: 0.9rem;
}

.nat-extra p {
    margin-bottom: 6px;
}

.nat-impacts {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
}

.nat-impacts li {
    margin-bottom: 4px;
}

/* NAT-Analyse: Bullet-List standardmäßig verstecken */
.nat-impacts {
    display: none;
}

/* ---------- Service-Listen Mitte ---------- */

.service-list {
    margin-top: 10px;
}

.service-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.0rem;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
}

.service-row:last-child {
    border-bottom: none;
}

.service-name {
    color: var(--nc-text-main);
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--nc-text-muted);
}

.status-ok {
    color: var(--nc-good);
}

.status-warn {
    color: var(--nc-warn);
}

.status-bad {
    color: var(--nc-bad);
}

/* Summary-Zeilen + Qualitäts-Balken */

.summary-line {
    font-size: 0.82rem;
    color: var(--nc-text-muted);
    text-align: right;
}

.nc-quality-bar {
    margin-top: 4px;
    margin-bottom: 4px;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    overflow: hidden;
}

.nc-quality-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--nc-bad), var(--nc-warn), var(--nc-good));
    transition: width 0.25s ease;
}

/* Ping-Färbung nach Qualität */
.lat-good {
    color: #38d996;   /* grün */
    font-weight: 600;
}

.lat-mid {
    color: #f0b44b;   /* gelb */
    font-weight: 600;
}

.lat-bad {
    color: #ff4f5a;   /* rot */
    font-weight: 600;
}

/* Ping-Farben */
.ping-val {
    font-weight: 600;
    margin-right: 6px;
}

.ping-good { color: #3cff99; }
.ping-mid  { color: #ffd66b; }
.ping-bad  { color: #ff6464; }
.ping-unknown { color: #888; }

/* Statuscode-Farben */
.status-val {
    margin-left: 6px;
    font-weight: 500;
}

.status-ok    { color: #3cff99; }
.status-warn  { color: #ffd66b; }
.status-bad   { color: #ff6464; }
.status-unknown { color: #666; }

/* Category-Balken breiter */
.nc-cat-bar {
    height: 8px;     /* vorher ~3px */
    border-radius: 4px;
}
.nat-type-box {
    padding: 8px 10px;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 10px;
    text-align: center;
}

.nat-good { background: #198754; }
.nat-mid  { background: #b28a00; }
.nat-bad  { background: #8b1e1e; }

/* ---------- FAQ rechts ---------- */

.faq-item {
    border-top: 2px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
    margin-top: 12px;
}

.faq-item:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.faq-item > summary {
    list-style: none;
    cursor: pointer;
    font-size: 1.0rem;
    font-weight: 500;
    color: var(--nc-text-main);
    position: relative;
}

.faq-item > summary::-webkit-details-marker {
    display: none;
}

.faq-item > summary::after {
    content: "▾";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 0.7rem;
    color: var(--nc-text-muted);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.faq-item[open] > summary::after {
    transform: rotate(-180deg);
}

.faq-body {
    margin-top: 12px;
    font-size: 1rem;
    color: var(--nc-text-muted);
    line-height: 1.6;
}

.faq-body p {
    margin: 0 0 6px;
}

.faq-body ul {
    margin: 0 0 6px 16px;
    padding: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .nc-layout {
        flex-direction: column;
    }

    .nc-col-left,
    .nc-col-right {
        flex: 1 1 auto;
    }

    .nc-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .nc-header-actions {
        width: 100%;
        text-align: left;
    }
}

