/* ====================================================================
   HILFE & SUPPORT im Kundenkonto (Tickets)
   Design-System „Confident Product Showcase“ (DESIGN.md): Nunito, ein
   Akzent (#0096ff), flache Flächen, Pill-Elemente.
   Tokens nur auf .help-page (nie auf :root).
   ==================================================================== */
.help-page {
    --paper: #ffffff;
    --faint: #f5f5f7;
    --ink: #111113;
    --ink-2: #55555b;
    --ink-3: #6e6e73;
    --line: rgba(0, 0, 0, .09);
    --accent: #0096ff;
    --accent-dark: #0072c2;
    --accent-tint: rgba(0, 150, 255, .08);
    --success: #15803d;
    --success-tint: rgba(34, 197, 94, .12);
    --warning: #92580a;
    --warning-tint: rgba(245, 158, 11, .15);
    --danger: #b91c1c;
    --danger-tint: rgba(239, 68, 68, .1);
    --r-sm: 12px;
    --r-md: 20px;
    --r-pill: 980px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    font-family: 'Nunito Sans', 'Nunito', sans-serif;
    color: var(--ink);
}
.help-page { background: var(--faint); min-height: 60vh; padding: clamp(28px, 4vw, 52px) 0 88px; }
.help-page *, .help-page *::before, .help-page *::after { box-sizing: border-box; }
.help-page :where(h1, h2, h3) { font-family: 'Nunito', 'Nunito Sans', sans-serif; font-weight: 800; letter-spacing: -.02em; margin: 0; color: var(--ink); }
.help-page :where(p, ul, dl, dd) { margin: 0; padding: 0; }
.help-page :where(ul) { list-style: none; }
.help-page a { color: var(--accent-dark); }

.help-eyebrow { font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 8px; }
.help-title { font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.12; }
.help-lead { margin-top: 12px; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); max-width: 64ch; }
.help-intro { max-width: 780px; }

.help-tiles { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.help-tile { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: var(--paper); border-radius: var(--r-md); text-decoration: none; color: var(--ink) !important; box-shadow: 0 1px 3px rgba(17, 17, 19, .06); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.help-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(17, 17, 19, .09); }
.help-tile__icon { width: 42px; height: 42px; border-radius: 13px; background: var(--accent-tint); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.help-tile__title { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.0625rem; }
.help-tile__text { color: var(--ink-2); font-size: .9rem; line-height: 1.45; }

.help-section { margin-top: 44px; }
.help-section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.help-section__head h2 { font-size: 1.4rem; }
.help-chips { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.help-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px; border-radius: var(--r-pill); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2) !important; text-decoration: none; font-weight: 700; font-size: .9rem; }
.help-chip span { background: rgba(0, 0, 0, .06); border-radius: var(--r-pill); padding: 1px 8px; font-size: .78rem; }
.help-chip.is-active { background: var(--accent); color: #fff !important; box-shadow: none; }
.help-chip.is-active span { background: rgba(255, 255, 255, .25); }

.help-list { margin-top: 18px; display: grid; gap: 10px; }
.help-ticket { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: var(--paper); border-radius: var(--r-md); text-decoration: none; color: var(--ink) !important; box-shadow: 0 1px 3px rgba(17, 17, 19, .06); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.help-ticket:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(17, 17, 19, .09); }
.help-ticket__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.help-ticket__nr { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.help-ticket__subject { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.0625rem; overflow-wrap: anywhere; }
.help-ticket__meta { font-size: .85rem; color: var(--ink-3); }
.help-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: middle; }
.help-empty { margin-top: 18px; padding: 36px 24px; background: var(--paper); border-radius: var(--r-md); text-align: center; color: var(--ink-2); display: grid; gap: 14px; justify-items: center; }

.help-status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: var(--r-pill); font-size: .8rem; font-weight: 800; white-space: nowrap; background: rgba(0, 0, 0, .06); color: var(--ink-2); }
.help-status--warning { background: var(--warning-tint); color: var(--warning); }
.help-status--info { background: var(--accent-tint); color: var(--accent-dark); }
.help-status--success { background: var(--success-tint); color: var(--success); }

.help-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: var(--r-pill); font: inherit; font-weight: 800; font-size: .95rem; text-decoration: none !important; cursor: pointer; border: 0; transition: background .2s, transform .2s var(--ease), box-shadow .2s; }
.help-btn--primary { background: var(--accent); color: #fff !important; }
.help-btn--primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.help-btn--ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--line); }
.help-btn--ghost:hover { background: var(--paper); }
.help-btn--block { width: 100%; }

/* Formular */
.help-narrow { max-width: 760px; }
.help-card { margin-top: 24px; background: var(--paper); border-radius: var(--r-md); padding: clamp(20px, 4vw, 32px); box-shadow: 0 1px 3px rgba(17, 17, 19, .06); display: grid; gap: 20px; }
.help-field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.help-field > label, .help-field > legend { font-weight: 800; font-size: .95rem; padding: 0; }
.help-field input[type="text"], .help-field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid rgba(0, 0, 0, .18); border-radius: var(--r-sm); padding: 12px 14px; line-height: 1.5; }
.help-field textarea { resize: vertical; min-height: 140px; }
.help-field input[type="text"]:focus, .help-field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 150, 255, .2); }
.help-field input[type="file"] { font: inherit; font-size: .9rem; }
.help-hint { font-size: .85rem; color: var(--ink-3); line-height: 1.5; }
.help-radios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.help-field .help-radio { font-weight: 700; font-size: .95rem; }
.help-radio { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); cursor: pointer; font-weight: 700; }
.help-radio:hover { background: var(--faint); }
.help-radio input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.help-radio:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-tint); }
.help-details { border-radius: var(--r-sm); background: var(--faint); padding: 12px 16px; }
.help-details summary { cursor: pointer; font-weight: 800; }
.help-details[open] summary { margin-bottom: 14px; }
.help-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.help-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.help-alert { margin-top: 18px; padding: 14px 18px; border-radius: var(--r-sm); line-height: 1.55; }
.help-alert ul { list-style: disc; padding-left: 1.2em; margin-top: 6px; }
.help-alert--danger { background: var(--danger-tint); color: var(--danger); }
.help-alert--info { background: var(--accent-tint); color: var(--accent-dark); }

/* Verlauf */
.help-ticketgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(20px, 3vw, 36px); align-items: start; }
.help-thread__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.help-thread__head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; overflow-wrap: anywhere; }
.help-msg { margin-top: 14px; padding: 18px 22px; border-radius: var(--r-md); background: var(--paper); box-shadow: 0 1px 3px rgba(17, 17, 19, .06); max-width: 92%; }
.help-msg--mine { margin-left: auto; background: var(--accent-tint); box-shadow: none; }
.help-msg--support { border-left: 4px solid var(--accent); }
.help-msg__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: .85rem; color: var(--ink-3); margin-bottom: 8px; }
.help-msg__meta strong { color: var(--ink); }
.help-msg__body { line-height: 1.65; overflow-wrap: anywhere; }
.help-files { margin-top: 12px; display: grid; gap: 6px; }
.help-files a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--paper); border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); font-size: .88rem; font-weight: 700; text-decoration: none; }
.help-files span { color: var(--ink-3); font-weight: 600; }
.help-reply { margin-top: 24px; }
.help-closeform { margin-top: 14px; }
.help-side { position: sticky; top: calc(var(--topbar-h, 0px) + var(--navbar-h, 68px) + 16px); background: var(--paper); border-radius: var(--r-md); padding: 22px; box-shadow: 0 1px 3px rgba(17, 17, 19, .06); display: grid; gap: 18px; }
.help-facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; font-size: .92rem; }
.help-facts dt { color: var(--ink-3); }
.help-facts dd { font-weight: 700; overflow-wrap: anywhere; }

@media (max-width: 860px) {
    .help-tiles { grid-template-columns: 1fr; }
    .help-ticketgrid { grid-template-columns: minmax(0, 1fr); }
    .help-side { position: static; order: -1; }
    .help-msg { max-width: 100%; }
    .help-radios, .help-grid2 { grid-template-columns: 1fr; }
    .help-ticket { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) { .help-page * { transition: none !important; } }

/* Öffentliche Hilfe-Seite */
.help-tiles--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.help-steps { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.help-step { display: flex; gap: 14px; padding: 18px 20px; background: var(--paper); border-radius: var(--r-md); box-shadow: 0 1px 3px rgba(17, 17, 19, .06); }
.help-step__nr { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-dark); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.help-step p { color: var(--ink-2); font-size: .92rem; line-height: 1.5; margin-top: 4px; }
@media (max-width: 991px) { .help-tiles--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .help-steps { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .help-tiles--four { grid-template-columns: 1fr; } }

/* Öffentliche Hilfe-Seite: Kopf, Themen, Fragen, Kontakt */
.help-hero { max-width: 820px; }
.help-search { margin-top: 24px; display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: var(--r-pill); padding: 6px 6px 6px 22px; box-shadow: 0 1px 3px rgba(17, 17, 19, .08), inset 0 0 0 1px var(--line); transition: box-shadow .2s var(--ease); }
.help-search:focus-within { box-shadow: 0 0 0 3px rgba(0, 150, 255, .22), inset 0 0 0 1px var(--accent); }
.help-search i { color: var(--ink-3); }
.help-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.05rem; color: var(--ink); padding: 10px 0; }
.help-meta { margin-top: 16px; }
.help-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 14px; border-radius: var(--r-pill); background: var(--accent-tint); color: var(--accent-dark); font-weight: 700; font-size: .875rem; }
.help-tile em { font-style: normal; color: var(--accent-dark); font-weight: 700; }
.help-topics { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.help-topic { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: var(--paper); border-radius: var(--r-md); text-decoration: none; color: var(--ink) !important; box-shadow: 0 1px 3px rgba(17, 17, 19, .06); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.help-topic:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(17, 17, 19, .09); }
.help-topic__icon { flex: 0 0 44px; height: 44px; border-radius: 14px; background: var(--accent-tint); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.help-topic__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.help-topic__title { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.0625rem; }
.help-topic__text { color: var(--ink-2); font-size: .9rem; line-height: 1.45; }
.help-topic__note { color: var(--accent-dark); font-size: .78rem; font-weight: 800; }
.help-topic__go { color: var(--ink-3); font-size: .8rem; }
.help-faq { margin-top: 16px; display: grid; gap: 10px; }
.help-faq__item { background: var(--paper); border-radius: var(--r-md); box-shadow: 0 1px 3px rgba(17, 17, 19, .06); overflow: hidden; }
.help-faq__item summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-family: 'Nunito', sans-serif; font-weight: 800; position: relative; line-height: 1.4; }
.help-faq__item summary::-webkit-details-marker { display: none; }
.help-faq__item summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.help-faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.help-faq__body { padding: 0 22px 20px; color: var(--ink-2); line-height: 1.65; }
.help-faq__body p { margin: 0 0 .6em; }
.help-contact { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.help-contact__card { background: var(--paper); border-radius: var(--r-md); padding: 24px; box-shadow: 0 1px 3px rgba(17, 17, 19, .06); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.help-contact__card h3 { font-size: 1.15rem; }
.help-contact__card p { color: var(--ink-2); line-height: 1.55; flex: 1; font-size: .95rem; }
.help-contact__mail { font-weight: 800; color: var(--ink) !important; }
.help-checklist { margin-top: 18px; background: var(--accent-tint); border-radius: var(--r-md); padding: 22px 26px; }
.help-checklist h3 { font-size: 1.05rem; margin-bottom: 10px; }
.help-checklist ul { display: grid; gap: 8px; }
.help-checklist li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.help-checklist li i { color: var(--accent); margin-top: 4px; }
@media (max-width: 991px) { .help-topics, .help-contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .help-search { flex-wrap: wrap; border-radius: var(--r-md); padding: 12px 14px; } .help-search input { flex: 1 1 100%; order: 2; } .help-search .help-btn { order: 3; width: 100%; } }
