/*
 * help.css — Styles fuer Hilfe-Hauptseite (page-hilfe.php) und
 * Anleitungs-Seiten (z.B. page-anleitung-noah-import.php).
 *
 * Convention: nutzt die globalen home-v2-Variables (--hv2-accent etc.) und
 * baut auf .home-v2-section--light auf. Eigene Block-Praefixe:
 *   .page-hilfe          — Index-Seite "Hilfe & Support"
 *   .page-help-article   — generische Anleitungs-Seite
 *   .help-step           — einzelner Schritt-Block
 *   .help-note           — Hinweis-Card
 */

/* ===== page-hilfe (Index) ===== */

.page-hilfe__intro {
    padding-top: 60px;
    padding-bottom: 0;
}

.page-hilfe__articles {
    padding-top: 60px;
    padding-bottom: 80px;
}

.page-hilfe__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.page-hilfe__card {
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    background: var(--hv2-section-card-bg, #ffffff);
    border: 1px solid var(--hv2-section-card-border, rgba(15, 23, 42, 0.08));
    border-radius: 18px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 32px -16px rgba(15, 23, 42, 0.12);
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.page-hilfe__card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hv2-accent, #2196f3), var(--hv2-accent-strong, #1976d2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.page-hilfe__card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 24px 48px -20px rgba(15, 23, 42, 0.20);
    border-color: var(--hv2-accent, #2196f3);
}

.page-hilfe__card:hover::before {
    transform: scaleX(1);
}

.page-hilfe__card.is-disabled {
    cursor: default;
    pointer-events: none;
    opacity: 0.7;
}

.page-hilfe__card-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.12), rgba(33, 150, 243, 0.04));
    color: var(--hv2-accent-strong, #1976d2);
    font-size: 26px;
    margin-bottom: 20px;
}

.page-hilfe__card-eyebrow {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--hv2-accent-strong, #1976d2);
    margin-bottom: 8px;
}

.page-hilfe__card-title {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--hv2-section-text, #1a1a1a);
    margin: 0 0 12px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.page-hilfe__card-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--hv2-section-text-muted, #4a5566);
    margin: 0 0 20px;
}

.page-hilfe__card-meta {
    font-size: 13px;
    color: var(--hv2-section-text-subtle, #6b7280);
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.page-hilfe__card-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--hv2-accent-strong, #1976d2);
}

.page-hilfe__card-cta i {
    transition: transform 0.25s ease;
}

.page-hilfe__card:hover .page-hilfe__card-cta i {
    transform: translateX(4px);
}

.page-hilfe__card-cta--soon {
    color: var(--hv2-section-text-subtle, #6b7280);
}

/* ===== page-hilfe contact box ===== */

.page-hilfe__contact {
    padding-top: 0;
    padding-bottom: 100px;
}

.page-hilfe__contact-box,
.help-support__box {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 36px;
    background: linear-gradient(135deg, #0f3a8a 0%, #1976d2 100%);
    border-radius: 20px;
    color: #ffffff;
    box-shadow: 0 25px 60px -25px rgba(15, 58, 138, 0.5);
}

.page-hilfe__contact-icon,
.help-support__icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 28px;
}

.page-hilfe__contact-text h3,
.help-support__text h3 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
}

.page-hilfe__contact-text p,
.help-support__text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.55;
}

.page-hilfe__contact-text a,
.help-support__text a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    text-underline-offset: 3px;
}

.page-hilfe__contact-text a:hover,
.help-support__text a:hover {
    text-decoration-color: #ffffff;
}

@media (max-width: 600px) {
    .page-hilfe__contact-box,
    .help-support__box {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }
}

/* ===== help-article (Anleitungs-Seite) ===== */

.help-breadcrumb {
    margin-bottom: 24px;
}

.help-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-bottom: none !important;
    transition: color 0.2s ease;
}

.help-breadcrumb a:hover {
    color: #ffffff;
}

.help-breadcrumb i {
    font-size: 18px;
}

/* Intro-Box mit Schema-Hinweis */

.help-intro {
    padding-top: 60px;
    padding-bottom: 0;
}

.help-intro__box {
    display: flex;
    gap: 16px;
    padding: 22px 24px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.08), rgba(33, 150, 243, 0.02));
    border-left: 4px solid var(--hv2-accent, #2196f3);
    border-radius: 0 12px 12px 0;
    margin-bottom: 36px;
}

.help-intro__icon {
    flex-shrink: 0;
    color: var(--hv2-accent-strong, #1976d2);
    font-size: 22px;
    line-height: 1.5;
}

.help-intro__box p {
    margin: 0;
    color: var(--hv2-section-text, #1a1a1a);
    line-height: 1.65;
    font-size: 15.5px;
}

.help-intro__box strong {
    color: var(--hv2-section-text, #1a1a1a);
}

/* TOC */

.help-toc {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.help-toc li {
    margin: 0;
}

.help-toc a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid var(--hv2-section-card-border, rgba(15, 23, 42, 0.08));
    border-radius: 12px;
    text-decoration: none !important;
    color: var(--hv2-section-text, #1a1a1a);
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.help-toc a:hover {
    border-color: var(--hv2-accent, #2196f3);
    background: rgba(33, 150, 243, 0.03);
}

.help-toc__num {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--hv2-accent, #2196f3);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.help-toc__count {
    margin-left: auto;
    font-weight: 500;
    color: var(--hv2-section-text-subtle, #6b7280);
    font-size: 13px;
}

/* Part-Header (Teil 1, Teil 2 ...) */

.help-part {
    padding-top: 60px;
    padding-bottom: 60px;
}

.help-part--alt {
    background: linear-gradient(180deg, #f9fafc 0%, #ffffff 100%);
}

.help-part__header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--hv2-section-card-border, rgba(15, 23, 42, 0.08));
}

.help-part__chapter {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(33, 150, 243, 0.10);
    color: var(--hv2-accent-strong, #1976d2);
    border-radius: 999px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.help-part__title {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    color: var(--hv2-section-text, #1a1a1a);
    margin: 0;
    letter-spacing: -0.5px;
}

/* Step-Blocks */

.help-step-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.help-step {
    display: flex;
    gap: 24px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--hv2-section-card-border, rgba(15, 23, 42, 0.08));
    border-radius: 18px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03),
        0 8px 24px -16px rgba(15, 23, 42, 0.10);
}

.help-step__num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hv2-accent, #2196f3), var(--hv2-accent-strong, #1976d2));
    color: #ffffff;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 8px 20px -8px rgba(25, 118, 210, 0.5);
}

.help-step__body {
    flex: 1;
    min-width: 0;
}

.help-step__title {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--hv2-section-text, #1a1a1a);
    margin: 0 0 12px;
    line-height: 1.35;
    letter-spacing: -0.3px;
}

.help-step__text {
    margin: 0 0 14px;
    color: var(--hv2-section-text-muted, #4a5566);
    font-size: 16px;
    line-height: 1.7;
}

.help-step__text strong {
    color: var(--hv2-section-text, #1a1a1a);
    font-weight: 600;
}

.help-step__text code {
    background: #f1f3f7;
    padding: 2px 7px;
    border-radius: 5px;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 13.5px;
    color: var(--hv2-accent-strong, #1976d2);
    word-break: break-all;
}

.help-step__list {
    margin: 0 0 18px;
    padding-left: 20px;
    color: var(--hv2-section-text-muted, #4a5566);
}

.help-step__list li {
    margin-bottom: 8px;
    line-height: 1.65;
    font-size: 15.5px;
}

.help-step__list li::marker {
    color: var(--hv2-accent-strong, #1976d2);
}

.help-step__list li strong {
    color: var(--hv2-section-text, #1a1a1a);
    font-weight: 600;
}

.help-step__figure {
    margin: 18px 0 0;
    padding: 0;
}

.help-step__figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--hv2-section-card-border, rgba(15, 23, 42, 0.08));
    border-radius: 12px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 16px 40px -20px rgba(15, 23, 42, 0.18);
}

.help-step__figure figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: var(--hv2-section-text-subtle, #6b7280);
    text-align: center;
    font-style: italic;
}

@media (max-width: 720px) {
    .help-step {
        flex-direction: column;
        gap: 16px;
        padding: 24px 20px;
    }
    .help-step__num {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }
}

/* Hinweise-Grid */

.help-notes {
    padding-top: 60px;
    padding-bottom: 60px;
}

.help-notes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.help-note {
    padding: 26px 24px;
    background: #ffffff;
    border: 1px solid var(--hv2-section-card-border, rgba(15, 23, 42, 0.08));
    border-radius: 14px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.help-note:hover {
    transform: translateY(-2px);
    border-color: var(--hv2-accent, #2196f3);
}

.help-note > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(33, 150, 243, 0.10);
    color: var(--hv2-accent-strong, #1976d2);
    font-size: 22px;
    margin-bottom: 14px;
}

.help-note h3 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--hv2-section-text, #1a1a1a);
    margin: 0 0 8px;
    letter-spacing: -0.2px;
}

.help-note p {
    margin: 0;
    color: var(--hv2-section-text-muted, #4a5566);
    font-size: 14.5px;
    line-height: 1.6;
}

/* Help-Support-CTA */

.help-support {
    padding-top: 0;
    padding-bottom: 100px;
}
