/* =========================================
   Netwise IT – IT-Sicherheitscheck Styling
   Dark Theme
========================================= */

/* PAGE */

body {
    background: var(--surface);
    color: var(--text);
}

/* HERO */

.itcheck-hero {
    padding: 60px 0 20px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.itcheck-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.itcheck-hero-kicker {
    font-size: 0.95rem;
    color: #60A5FA;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.itcheck-hero-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin: 10px 0 10px;
    color: var(--text);
    line-height: 1.2;
}

.itcheck-hero-sub {
    color: var(--text-mid);
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto 10px;
}

/* WRAPPER */

.itcheck-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* PROGRESSBAR */

.itcheck-progress {
    background: var(--surface-2);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 16px 20px 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 24px;
}

.itcheck-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.itcheck-progress-step {
    font-weight: 600;
    color: var(--text);
}

.itcheck-progress-status {
    font-size: 0.9rem;
    color: var(--text-mid);
}

.itcheck-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(48, 54, 61, 0.8);
    border-radius: 999px;
    overflow: hidden;
}

.itcheck-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    border-radius: 999px;
    transition: width 0.25s ease-out;
}

/* STEPS & CARDS */

.itcheck-form {
    margin-top: 20px;
}

.itcheck-step {
    margin-top: 28px;
    display: none;
}

.itcheck-step.active {
    display: block;
}

.itcheck-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60A5FA;
    margin-bottom: 6px;
}

.itcheck-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.itcheck-step h3 {
    margin-top: 2px;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 1.28rem;
    font-weight: 700;
}

.itcheck-card {
    background: var(--surface-2);
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    margin-top: 4px;
    display: grid;
    gap: 18px;
}

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

.itcheck-card label {
    font-weight: 600;
    color: var(--text);
}

/* Inputs */

.itcheck-card input,
.itcheck-card select,
.itcheck-card textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    font-size: 1rem;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.itcheck-card select option {
    background: var(--surface-2);
    color: var(--text);
}

.itcheck-card textarea {
    resize: vertical;
}

.itcheck-card input:focus,
.itcheck-card select:focus,
.itcheck-card textarea:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* DSGVO Checkbox */

.itcheck-dsgvo {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.itcheck-dsgvo input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    padding: 0;
    margin-top: 2px;
    border-radius: 5px;
    cursor: pointer;
    accent-color: #3B82F6;
}

.itcheck-dsgvo label {
    font-weight: 400;
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.5;
    cursor: pointer;
}

.itcheck-dsgvo label a {
    color: #60A5FA;
    text-decoration: underline;
}

.itcheck-dsgvo input[type="checkbox"].itcheck-error {
    outline: 2px solid #F87171;
    outline-offset: 1px;
    box-shadow: none !important;
}

/* Fehlermarkierung */

.itcheck-error {
    border-color: #F87171 !important;
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.15) !important;
}

/* NAVIGATION */

.itcheck-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.itcheck-btn {
    flex: 1;
    text-align: center;
}

.itcheck-btn-submit {
    flex: 2;
}

/* Ergebnisbereich */

.itcheck-result {
    margin-top: 40px;
    display: none;
}

.itcheck-result.visible {
    display: block;
}

.itcheck-result-inner {
    background: var(--surface-2);
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 24px 24px 26px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.itcheck-result-label {
    font-size: 0.9rem;
    color: var(--text-mid);
    margin-bottom: 6px;
}

.itcheck-result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Badge-Farben */
.itcheck-risk-low {
    background: rgba(34, 197, 94, 0.12);
    color: #4ADE80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.itcheck-risk-medium {
    background: rgba(251, 191, 36, 0.12);
    color: #FCD34D;
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.itcheck-risk-high {
    background: rgba(239, 68, 68, 0.12);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.itcheck-result-text {
    color: var(--text);
    margin-bottom: 12px;
}

.itcheck-result-list {
    list-style: disc;
    padding-left: 20px;
    color: var(--text-mid);
    margin-bottom: 18px;
}

.itcheck-result-cta {
    border-top: 1px solid var(--border);
    padding-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.itcheck-result-cta p {
    margin: 0;
    color: var(--text-mid);
    font-size: 0.95rem;
}

/* Back Button */

.itcheck-btn-secondary {
    background: var(--surface-3);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.itcheck-btn-secondary:hover {
    background: rgba(48, 54, 61, 0.8);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60A5FA;
}

.itcheck-btn-secondary:active {
    background: rgba(48, 54, 61, 0.6);
}

/* Responsive */

@media (max-width: 768px) {
    .itcheck-card-grid {
        grid-template-columns: 1fr;
    }

    .itcheck-progress-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .itcheck-nav {
        flex-direction: column-reverse;
    }

    .itcheck-btn {
        width: 100%;
    }
}
