/* ===== Hilfe-Center (09.10.2026) =====
   Seiten: hilfe.php (Übersicht) und hilfe-artikel.php (eine Anleitung).
   Inhalte: includes/hilfe-artikel.php. Verhalten: assets/js/hilfe.js.
   Geladen NACH main.css, aufwertung.css und themenseiten.css und nutzt
   deren Formensprache: Creme, Navy-Schrift, Gold. Keine eigene Palette. */

.hilfe { --hi-rand: rgba(184,134,43,.16); --hi-leise: #6E6259; --hi-navy: #0F1B2D; --hi-gold: #8A6318; }

/* ── Kopf ────────────────────────────────────────────────────────── */
.hilfe-kopf { padding: 128px 0 56px; }
.hilfe-kopf .hero-content { max-width: 760px; margin: 0 auto; text-align: center; }
.hilfe-kopf h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.hilfe-kopf .hero-subtitle { max-width: 600px; margin: 0 auto 32px; color: var(--hi-leise); }

/* ── Suche und Rollenfilter ──────────────────────────────────────── */
.hilfe-suche { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.hilfe-zeile { display: flex; gap: 10px; align-items: stretch; }
.hilfe-feld { position: relative; flex: 1; min-width: 0; }
.hilfe-feld svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--hi-gold); pointer-events: none; }
.hilfe-feld input {
    width: 100%; box-sizing: border-box; padding: 16px 18px 16px 50px; border-radius: 14px;
    border: 1px solid rgba(184,134,43,.32); background: #fff; color: var(--hi-navy);
    font: inherit; font-size: 1rem; box-shadow: 0 14px 32px -24px rgba(138,99,24,.5);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.hilfe-feld input::placeholder { color: #8B7E74; }
.hilfe-feld input:focus { border-color: #B8862B; outline: none; box-shadow: 0 0 0 3px rgba(184,134,43,.18); }
.hilfe-rollen { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; border: 0; margin: 0; padding: 0; }
.hilfe-rollen legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hilfe-rolle {
    padding: 8px 16px; border-radius: 99px; border: 1px solid var(--hi-rand); background: #fff;
    color: var(--hi-navy); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.hilfe-rolle:hover { border-color: #B8862B; }
.hilfe-rolle[aria-pressed="true"] { background: linear-gradient(135deg, #8A6318, #C9973A); border-color: transparent; color: #fff; }
.hilfe-suchknopf { flex-shrink: 0; border-radius: 14px; }
.hilfe-js .hilfe-suchknopf { display: none; }

/* ── Übersicht: Gruppen und Karten ───────────────────────────────── */
.hilfe-gruppen { padding: 24px 0 96px; }
.hilfe-gruppe + .hilfe-gruppe { margin-top: 64px; }
.hilfe-gruppe[hidden], .hilfe-karte-li[hidden] { display: none; }
.hilfe-gruppe-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--hi-rand); }
.hilfe-gruppe-kopf h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--hi-navy); margin: 0; }
.hilfe-gruppe-kopf p { margin: 0; font-size: .9rem; color: var(--hi-leise); }
.hilfe-karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.hilfe-karte {
    display: flex; flex-direction: column; gap: 8px; height: 100%; box-sizing: border-box;
    padding: 20px 22px; border-radius: 14px; border: 1px solid var(--hi-rand); background: #fff;
    color: var(--hi-navy); text-decoration: none;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.2,.7,.2,1);
}
.hilfe-karte:hover { border-color: rgba(184,134,43,.5); box-shadow: 0 18px 36px -26px rgba(138,99,24,.55); transform: translateY(-2px); }
.hilfe-karte b { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.35; }
.hilfe-karte span { font-size: .86rem; line-height: 1.6; color: var(--hi-leise); }
.hilfe-karte .hilfe-weiter { margin-top: auto; padding-top: 6px; font-size: .8rem; font-weight: 600; color: var(--hi-gold); }
.hilfe-leer { text-align: center; padding: 32px 0 0; color: var(--hi-leise); }
.hilfe-leer[hidden] { display: none; }
.hilfe-intern { max-width: 640px; margin: 8px auto 0; padding: 14px 18px; text-align: center; color: var(--hi-leise); border: 1px dashed currentColor; border-radius: 12px; }
.hilfe-intern a { font-weight: 600; }
.hilfe-zaehler { text-align: center; font-size: .82rem; color: var(--hi-leise); margin: 18px 0 0; min-height: 1.2em; }

/* ── Artikel ─────────────────────────────────────────────────────── */
.hilfe-artikel-kopf { padding: 120px 0 36px; text-align: left; }
.hilfe-pfad { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; list-style: none; margin: 0 0 22px; padding: 0; font-size: .84rem; color: var(--hi-leise); }
.hilfe-pfad li + li::before { content: '\203A'; margin-right: 6px; color: #B8862B; }
.hilfe-pfad a { color: var(--hi-gold); text-decoration: none; }
.hilfe-pfad a:hover { text-decoration: underline; }
.hilfe-schmal { max-width: 760px; margin: 0 auto; }
.hilfe-artikel-kopf h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.2; margin: 14px 0 14px; color: var(--hi-navy); }
.hilfe-artikel-kopf .hilfe-vorspann { font-size: 1.06rem; line-height: 1.7; color: var(--hi-leise); margin: 0; }
.hilfe-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; background: rgba(184,134,43,.12); color: #7A5514; }

.hilfe-text { padding: 8px 0 72px; }
.hilfe-text p, .hilfe-text li { font-size: 1rem; line-height: 1.75; color: #3F3A33; }
.hilfe-text p { margin: 0 0 18px; }
.hilfe-text h2 { font-size: 1.25rem; color: var(--hi-navy); margin: 36px 0 14px; }
.hilfe-text strong { color: var(--hi-navy); font-weight: 600; }
.hilfe-text a { color: var(--hi-gold); text-decoration: underline; text-decoration-color: rgba(138,99,24,.4); text-underline-offset: 2px; }
.hilfe-text ul { margin: 0 0 20px; padding-left: 22px; }
.hilfe-text ul li { margin-bottom: 6px; }
.hilfe-schritte { list-style: none; counter-reset: hs; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hilfe-schritte li {
    counter-increment: hs; position: relative; padding: 14px 18px 14px 60px; border-radius: 12px;
    border: 1px solid var(--hi-rand); background: #fff;
}
.hilfe-schritte li::before {
    content: counter(hs); position: absolute; left: 16px; top: 13px; width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #8A6318, #C9973A); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .9rem;
}
.hilfe-hinweis {
    display: flex; gap: 12px; align-items: flex-start; margin: 0 0 22px; padding: 16px 18px; border-radius: 12px;
    background: #FBF5E6; border: 1px solid rgba(184,134,43,.26);
}
.hilfe-hinweis svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; color: var(--hi-gold); }
.hilfe-hinweis p { margin: 0; font-size: .94rem; }

.hilfe-verwandt { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--hi-rand); }
.hilfe-verwandt h2 { margin-top: 0; }
.hilfe-verwandt .hilfe-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hilfe-zurueck { display: inline-flex; margin-top: 36px; }

/* ── Breiten ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hilfe-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .hilfe-kopf { padding: 96px 0 40px; }
    .hilfe-artikel-kopf { padding: 96px 0 28px; }
    .hilfe-gruppen { padding: 16px 0 72px; }
    .hilfe-gruppe + .hilfe-gruppe { margin-top: 48px; }
}
@media (max-width: 640px) {
    .hilfe-kopf { padding: 80px 0 32px; }
    .hilfe-karten, .hilfe-verwandt .hilfe-karten { grid-template-columns: minmax(0, 1fr); }
    .hilfe-karte { padding: 18px; }
    .hilfe-rolle { padding: 7px 13px; font-size: .82rem; }
    .hilfe-schritte li { padding: 12px 14px 12px 52px; }
    .hilfe-schritte li::before { left: 12px; top: 11px; width: 28px; height: 28px; }
    .hilfe-text p, .hilfe-text li { font-size: .96rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hilfe-karte, .hilfe-karte:hover { transition: none; transform: none; }
}
