/* ═══════════════════════════════════════════════════════
   VSG Mitgliederportal – Hilfe-Styles
   VSG Primärfarben: #66dab5 (Grün) / #3d7cc9 (Blau)
   ══════════════════════════════════════════════════════ */

:root {
    --vsg-gruen:   #66dab5;
    --vsg-blau:    #3d7cc9;
    --vsg-dunkel:  #1e3a5f;
    --vsg-hell:    #f0faf6;
    --vsg-grau:    #6c757d;
}

/* Reset & Basis */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #212529;
    background: #f8f9fa;
}

/* ── Navbar ──────────────────────────────────────────── */
.help-navbar {
    background: var(--vsg-dunkel);
    color: #fff;
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.help-navbar img {
    height: 36px;
    width: auto;
}

.help-navbar-title {
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.help-navbar a {
    color: var(--vsg-gruen);
    text-decoration: none;
    font-size: .9rem;
}

.help-navbar a:hover { text-decoration: underline; }

/* ── Hero-Banner ─────────────────────────────────────── */
.help-hero {
    background: linear-gradient(135deg, var(--vsg-dunkel) 0%, var(--vsg-blau) 100%);
    color: #fff;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
}

.help-hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: .5rem; }
.help-hero p  { font-size: 1.1rem; opacity: .85; margin: 0; }

/* ── Rollen-Karten (Übersicht) ───────────────────────── */
.role-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    padding: 2.5rem 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.role-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    padding: 1.75rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
    border-top: 4px solid var(--vsg-gruen);
}

.role-card:hover  { box-shadow: 0 6px 20px rgba(0,0,0,.15); transform: translateY(-3px); }
.role-card:focus  { outline: 2px solid var(--vsg-blau); }
.role-card .icon  { font-size: 2.5rem; margin-bottom: .75rem; display: block; }
.role-card h2     { font-size: 1.2rem; margin: 0 0 .5rem; color: var(--vsg-dunkel); }
.role-card p      { font-size: .9rem; color: var(--vsg-grau); margin: 0; }

/* ── Artikel-Layout ─────────────────────────────────── */
.help-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    max-width: 1160px;
    margin: 0 auto;
    gap: 0;
    min-height: calc(100vh - 180px);
}

/* Sidebar */
.help-sidebar {
    background: #fff;
    border-right: 1px solid #dee2e6;
    padding: 1.5rem 1rem;
    position: sticky;
    top: 63px;
    align-self: start;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.help-sidebar h3 {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--vsg-grau);
    margin: 1.25rem 0 .5rem;
    padding-left: .5rem;
}

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

.help-sidebar a {
    display: block;
    padding: .35rem .5rem;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: .9rem;
    transition: background .15s;
}

.help-sidebar a:hover,
.help-sidebar a.active { background: var(--vsg-hell); color: var(--vsg-blau); }

/* Inhalt */
.help-content {
    padding: 2rem 2.5rem;
    background: #f8f9fa;
}

.help-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vsg-dunkel);
    border-bottom: 2px solid var(--vsg-gruen);
    padding-bottom: .4rem;
    margin: 2.5rem 0 1rem;
    scroll-margin-top: 80px;
}

.help-content h2:first-of-type { margin-top: 0; }

.help-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--vsg-blau);
    margin: 1.5rem 0 .5rem;
    scroll-margin-top: 80px;
}

.help-content p  { margin-bottom: .75rem; }
.help-content ul { padding-left: 1.25rem; margin-bottom: .75rem; }
.help-content li { margin-bottom: .3rem; }

/* ── Info-Box ────────────────────────────────────────── */
.info-box {
    background: var(--vsg-hell);
    border-left: 4px solid var(--vsg-gruen);
    border-radius: 0 8px 8px 0;
    padding: .9rem 1rem;
    margin: 1rem 0;
    font-size: .93rem;
}

.info-box.warn  { background: #fff8e6; border-color: #ffc107; }
.info-box.hint  { background: #e8f0fe; border-color: var(--vsg-blau); }

/* ── Demo-Elemente (UI-Vorschau) ─────────────────────── */
.ui-demo {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin: .5rem 0;
}

.badge-demo {
    display: inline-block;
    padding: .25em .6em;
    border-radius: 6px;
    font-size: .82em;
    font-weight: 600;
    line-height: 1;
}

.badge-zugesagt   { background: #d1fae5; color: #065f46; }
.badge-abgesagt   { background: #fee2e2; color: #991b1b; }
.badge-offen      { background: #dbeafe; color: #1e40af; }
.badge-warteliste { background: #fef3c7; color: #92400e; }
.badge-voll       { background: #fee2e2; color: #991b1b; }
.badge-frei       { background: #d1fae5; color: #065f46; }

.btn-demo {
    display: inline-block;
    padding: .3em .8em;
    border-radius: 6px;
    font-size: .86em;
    font-weight: 500;
    cursor: default;
    border: 1px solid transparent;
}

.btn-demo-primary   { background: var(--vsg-blau);  color: #fff; }
.btn-demo-success   { background: var(--vsg-gruen); color: #fff; }
.btn-demo-secondary { background: #6c757d; color: #fff; }
.btn-demo-outline   { background: #fff; color: var(--vsg-blau); border-color: var(--vsg-blau); }

/* Auslastungsbalken */
.progress-demo {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    width: 160px;
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
}

.progress-demo-bar {
    height: 100%;
    border-radius: 4px;
    background: var(--vsg-gruen);
    transition: width .3s;
}

.progress-demo-bar.voll   { background: #dc3545; }
.progress-demo-bar.mittel { background: #ffc107; }

/* ── Schritt-Liste ───────────────────────────────────── */
.steps {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.steps li {
    counter-increment: step-counter;
    padding: .6rem .6rem .6rem 2.8rem;
    position: relative;
    margin-bottom: .5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: .7rem;
    top: .6rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--vsg-gruen);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Tabellen ────────────────────────────────────────── */
.help-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: .92rem;
}

.help-table th {
    background: var(--vsg-dunkel);
    color: #fff;
    padding: .6rem .9rem;
    text-align: left;
    font-weight: 600;
}

.help-table td { padding: .55rem .9rem; border-bottom: 1px solid #dee2e6; }
.help-table tr:nth-child(even) td { background: #f8f9fa; }
.help-table tr:hover td { background: var(--vsg-hell); }

/* ── Rollenbadge Seiten-Header ───────────────────────── */
.role-badge {
    display: inline-block;
    padding: .3em .9em;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 1rem;
}

.role-badge-mitglied  { background: var(--vsg-hell);  color: var(--vsg-dunkel); }
.role-badge-trainer   { background: #e8f0fe;           color: var(--vsg-blau);   }
.role-badge-admin     { background: #fff3e0;           color: #e65100;           }

/* ── Footer ─────────────────────────────────────────── */
.help-footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: .85rem;
    color: var(--vsg-grau);
    border-top: 1px solid #dee2e6;
    background: #fff;
    margin-top: 3rem;
}

/* ── Screenshot-Platzhalter ─────────────────────────── */
.screenshot-placeholder {
    background: #f0f4f8;
    border: 2px dashed #adb5bd;
    border-radius: 10px;
    padding: 2rem 1.25rem 1.5rem;
    text-align: center;
    color: var(--vsg-grau);
    font-size: .9rem;
    margin: 1.25rem 0;
}

.screenshot-placeholder::before {
    content: '📷';
    display: block;
    font-size: 2.2rem;
    margin-bottom: .4rem;
}

.screenshot-placeholder .sc-caption {
    font-weight: 600;
    display: block;
    margin-bottom: .2rem;
    color: #495057;
}

.screenshot-placeholder .sc-hint {
    font-size: .8rem;
    color: #adb5bd;
}

/* ── Echte Screenshots ───────────────────────────────── */
.screenshot {
    display: block;
    width: 100%;
    max-width: 860px;
    height: auto;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
    margin: 1.25rem 0;
}

.screenshot-wrap {
    margin: 1.25rem 0;
}

.screenshot-wrap figcaption {
    font-size: .82rem;
    color: var(--vsg-grau);
    margin-top: .4rem;
    padding-left: .2rem;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
    .help-layout {
        grid-template-columns: 1fr;
    }

    .help-sidebar {
        position: static;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }

    .help-content {
        padding: 1.25rem 1rem;
    }

    .help-hero h1 { font-size: 1.5rem; }
}
