/* ========================================
   HILFESEITE
   Baut auf den Design-Tokens aus styles.css auf.
   ======================================== */

.help-page {
    padding: calc(var(--space-24) + var(--space-8)) 0 var(--space-24);
    background: var(--color-neutral-50);
}

/* Kopfbereich */

.help-hero {
    max-width: 46rem;
    margin-bottom: var(--space-12);
}

.help-hero__title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    line-height: 1.15;
    color: var(--color-neutral-900);
    margin-bottom: var(--space-4);
}

.help-hero__lead {
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--color-neutral-600);
}

/* Inhaltsverzeichnis */

.help-toc {
    background: #ffffff;
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-bottom: var(--space-16);
    box-shadow: var(--shadow-sm);
}

.help-toc__heading {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-neutral-500);
    margin-bottom: var(--space-6);
}

.help-toc__groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: var(--space-8);
}

.help-toc__title {
    font-size: var(--text-base);
    color: var(--color-neutral-900);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.help-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.help-toc__list a {
    color: var(--color-neutral-600);
    text-decoration: none;
    font-size: var(--text-sm);
    line-height: 1.5;
    border-left: 2px solid var(--color-neutral-200);
    padding-left: var(--space-3);
    display: block;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.help-toc__list a:hover,
.help-toc__list a:focus-visible {
    color: var(--color-primary-600);
    border-left-color: var(--color-primary-500);
}

/* Artikel */

.help-content {
    max-width: 46rem;
}

.help-section__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--color-neutral-900);
    margin: var(--space-16) 0 var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-primary-100);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.help-section__title:first-child {
    margin-top: 0;
}

.help-article {
    background: #ffffff;
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-6);
    scroll-margin-top: var(--space-24);
    box-shadow: var(--shadow-sm);
}

.help-article__title {
    font-size: var(--text-xl);
    color: var(--color-neutral-900);
    margin-bottom: var(--space-2);
}

.help-article__summary {
    color: var(--color-neutral-500);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-neutral-100);
}

.help-article__body > * + * {
    margin-top: var(--space-4);
}

.help-article__body p {
    color: var(--color-neutral-700);
    line-height: 1.7;
}

.help-article__subtitle {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-neutral-900);
    margin-top: var(--space-8);
}

.help-article__link {
    color: var(--color-primary-600);
    font-weight: 500;
}

/* Schritte und Aufzählungen */

.help-steps {
    counter-reset: help-step;
    list-style: none;
    margin: 0;
    padding: 0;
}

.help-steps li {
    counter-increment: help-step;
    position: relative;
    padding-left: var(--space-10);
    margin-bottom: var(--space-4);
    color: var(--color-neutral-700);
    line-height: 1.7;
}

.help-steps li::before {
    content: counter(help-step);
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: var(--radius-full);
    background: var(--color-primary-500);
    color: #ffffff;
    font-size: var(--text-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
}

.help-bullets li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-3);
    color: var(--color-neutral-700);
    line-height: 1.7;
}

.help-bullets li::before {
    content: "";
    position: absolute;
    left: var(--space-2);
    top: 0.65em;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: var(--radius-full);
    background: var(--color-neutral-400);
}

/* Hinweiskästen */

.help-callout {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    line-height: 1.6;
}

.help-callout p {
    margin: 0;
    font-size: var(--text-sm);
}

.help-callout__icon {
    flex-shrink: 0;
    line-height: 1.4;
}

.help-callout--note {
    background: var(--color-secondary-50);
    border: 1px solid var(--color-secondary-100);
}

.help-callout--note p {
    color: var(--color-secondary-700);
}

.help-callout--warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.help-callout--warning p {
    color: #92400e;
}

/* Abschluss */

.help-support {
    max-width: 46rem;
    margin-top: var(--space-16);
    padding: var(--space-10);
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-800));
    color: #ffffff;
    text-align: center;
}

.help-support__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
}

.help-support__text {
    line-height: 1.7;
    margin-bottom: var(--space-6);
    opacity: 0.92;
}

.help-support__button {
    display: inline-block;
    padding: var(--space-3) var(--space-8);
    border-radius: var(--radius-full);
    background: #ffffff;
    color: var(--color-primary-700);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.help-support__button:hover,
.help-support__button:focus-visible {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.help-back {
    max-width: 46rem;
    margin-top: var(--space-10);
    text-align: center;
}

.help-back a {
    color: var(--color-neutral-500);
    text-decoration: none;
    font-size: var(--text-sm);
}

.help-back a:hover {
    color: var(--color-primary-600);
}

@media (max-width: 640px) {
    .help-page {
        padding-top: calc(var(--space-20) + var(--space-4));
    }

    .help-toc,
    .help-article {
        padding: var(--space-6);
    }

    .help-support {
        padding: var(--space-8) var(--space-6);
    }
}

/* Aktiver Menüpunkt auf der Hilfeseite */

.header__nav-link--active {
    color: var(--color-primary-600);
    font-weight: 600;
}
