/* ==========================================================================
   Hilfe & Support (public/support.php) und Feedback (public/feedback.php). Präfix .hf-
   ========================================================================== */

/* Kopf mit Suche */
.hf-kopf { position: relative; isolation: isolate; text-align: center; padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 6vw, 64px); }
.hf-kopf::before {
  content: ""; position: absolute; inset: -84px 0 0; z-index: -1; pointer-events: none;
  background: radial-gradient(720px 420px at 50% 0%, color-mix(in oklab, var(--rf-akzent-hell) 18%, transparent), transparent 70%);
}
.hf-kopf h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.03; letter-spacing: -.045em; font-weight: 800; margin: 18px 0 28px; }
.hf-kopf .pr-lead { margin-inline: auto; }
.hf-suche { position: relative; display: block; max-width: 640px; margin: 0 auto; }
.hf-suche i { position: absolute; left: 22px; top: 50%; translate: 0 -50%; color: var(--rf-text-3); font-size: 18px; pointer-events: none; }
.hf-suche input { width: 100%; height: 64px; padding: 0 22px 0 56px; border-radius: 20px; border: 1.5px solid var(--rf-rand-stark); background: var(--rf-flaeche); box-shadow: var(--rf-schatten-lg); font: 500 17px/1 var(--rf-schrift-text); color: var(--rf-text); transition: border-color .2s, box-shadow .2s; }
.hf-suche input:focus { outline: none; border-color: var(--rf-akzent); box-shadow: 0 0 0 4px var(--rf-akzent-weich), var(--rf-schatten-lg); }
.hf-schnell { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.hf-schnell a { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; background: var(--rf-flaeche); border: 1px solid var(--rf-rand); color: var(--rf-text-2); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s; }
.hf-schnell a:hover { color: var(--rf-text); border-color: var(--rf-rand-stark); }
.hf-schnell i { color: var(--rf-akzent); }
.hf-statuspunkt { width: 9px; height: 9px; border-radius: 50%; }
.hf-statuspunkt--ok { background: var(--rf-erfolg); box-shadow: 0 0 0 3px var(--rf-erfolg-weich); }
.hf-statuspunkt--warn { background: var(--rf-warnung); box-shadow: 0 0 0 3px var(--rf-warnung-weich); }

/* FAQ nach Themen */
.hf-faq__raster { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; max-width: 1080px; }
.hf-themen { position: sticky; top: calc(var(--header-h, 84px) + 28px); display: grid; gap: 4px; }
.hf-themen a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 13px; color: var(--rf-text-2); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s, color .2s; }
.hf-themen a:hover { background: var(--rf-flaeche); color: var(--rf-text); }
.hf-themen i { width: 18px; text-align: center; color: var(--rf-akzent); }
.hf-gruppen { display: grid; gap: 44px; }
.hf-gruppe { display: block; scroll-margin-top: calc(var(--header-h, 84px) + 20px); }
.hf-gruppe h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; font-weight: 800; }
.hf-gruppe h2 i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: 16px; background: var(--rf-akzent-weich); color: var(--rf-akzent); }
.hf-gruppe summary { font-size: 17px; padding: 20px 0; }
.hf-nichts { margin: 0; padding: 22px; border-radius: 20px; background: var(--rf-flaeche); border: 1.5px dashed var(--rf-rand-stark); color: var(--rf-text-2); text-align: center; }
.hf-nichts i { color: var(--rf-text-3); margin-right: 6px; }

/* Kontakt */
.hf-kontakt { background: var(--rf-flaeche); border-block: 1px solid var(--rf-rand); scroll-margin-top: var(--header-h, 84px); }
.hf-kontakt__raster { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.hf-hinweise { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.hf-hinweise li { display: flex; gap: 14px; color: var(--rf-text-2); font-size: 15px; line-height: 1.5; }
.hf-hinweise i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; flex: none; background: var(--pr-papier); border: 1px solid var(--rf-rand); color: var(--rf-akzent); }
.hf-hinweise a { color: var(--rf-akzent); font-weight: 600; }

/* Formulare (auch Feedback) */
.hf-formular { display: grid; gap: 16px; padding: clamp(24px, 3vw, 34px); border-radius: 28px; background: var(--pr-papier); border: 1px solid var(--rf-rand); box-shadow: var(--rf-schatten-lg); }
.hf-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hf-formular label { display: grid; gap: 7px; font-size: 14px; font-weight: 650; color: var(--rf-text-2); }
.hf-formular input, .hf-formular select, .hf-formular textarea {
  width: 100%; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--rf-rand-stark); background: var(--rf-flaeche);
  font: 400 16px/1.45 var(--rf-schrift-text); color: var(--rf-text); transition: border-color .2s, box-shadow .2s;
}
.hf-formular textarea { resize: vertical; min-height: 140px; }
.hf-formular input:focus, .hf-formular select:focus, .hf-formular textarea:focus { outline: none; border-color: var(--rf-akzent); box-shadow: 0 0 0 4px var(--rf-akzent-weich); }
.hf-formular input[readonly] { color: var(--rf-text-3); background: var(--rf-flaeche-2); }
.hf-formular .pr-knopf { width: 100%; }
.hf-formular .pr-knopf:disabled { opacity: .6; cursor: progress; transform: none; }
.hf-klein { margin: -4px 0 0; font-size: 13px; color: var(--rf-text-3); }
.hf-klein a { color: inherit; }
.hf-meldung { margin: 0; min-height: 1.4em; text-align: center; font-size: 14.5px; color: var(--rf-text-3); }
.hf-meldung--ok { color: var(--rf-erfolg); font-weight: 650; }
.hf-meldung--fehler { color: var(--rf-fehler); font-weight: 650; }

/* Feedback: Art als Karten */
.hf-arten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; border: 0; margin: 0; padding: 0; }
.hf-arten legend { padding: 0; margin-bottom: 7px; font-size: 14px; font-weight: 650; color: var(--rf-text-2); }
.hf-art { position: relative; display: grid !important; justify-items: center; gap: 8px !important; padding: 16px 8px; border-radius: 16px; border: 1.5px solid var(--rf-rand-stark); background: var(--rf-flaeche); cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.hf-art input { position: absolute; opacity: 0; pointer-events: none; }
.hf-art i { font-size: 20px; color: var(--rf-text-3); transition: color .2s; }
.hf-art span { font-size: 13.5px; color: var(--rf-text); }
.hf-art:hover { border-color: var(--rf-text-3); }
.hf-art:has(input:checked) { border-color: var(--rf-akzent); background: color-mix(in oklab, var(--rf-akzent) 7%, var(--rf-flaeche)); }
.hf-art:has(input:checked) i { color: var(--rf-akzent); }
.hf-art:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--rf-akzent-weich); }

/* Feedback-Seite */
.hf-fb { padding: clamp(32px, 5vw, 72px) 0 clamp(64px, 8vw, 110px); }
.hf-fb__raster { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.hf-fb h1 { font-size: clamp(36px, 4.8vw, 60px); line-height: 1.04; letter-spacing: -.045em; font-weight: 800; margin: 18px 0 18px; }
.hf-fb .pr-lead { margin-bottom: 30px; }
.hf-weg { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.hf-weg li { counter-increment: s; position: relative; padding-left: 52px; color: var(--rf-text-2); font-size: 15px; line-height: 1.55; }
.hf-weg li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; font: 800 15px/1 var(--rf-schrift-titel); background: var(--rf-akzent-weich); color: var(--rf-akzent); }
.hf-weg b { display: block; color: var(--rf-text); font-size: 16px; }
.hf-weg a { color: var(--rf-akzent); font-weight: 600; }
.hf-sperre { display: grid; gap: 14px; justify-items: start; }
.hf-sperre i.hf-sperre__symbol { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 20px; background: var(--rf-akzent-weich); color: var(--rf-akzent); }
.hf-sperre h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; font-weight: 800; }
.hf-sperre p { margin: 0; color: var(--rf-text-2); font-size: 15.5px; line-height: 1.6; }
.hf-sperre .pr-knoepfe { width: 100%; }

@media (max-width: 900px) {
  .hf-faq__raster, .hf-kontakt__raster, .hf-fb__raster { grid-template-columns: 1fr; }
  .hf-themen { position: static; grid-auto-flow: column; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--rf-seitenrand)); padding-inline: var(--rf-seitenrand); }
  .hf-themen a { white-space: nowrap; background: var(--rf-flaeche); border: 1px solid var(--rf-rand); }
}
@media (max-width: 600px) {
  .hf-zeile { grid-template-columns: 1fr; }
  .hf-arten { grid-template-columns: 1fr 1fr; }
  .hf-suche input { height: 58px; font-size: 16px; }
}

/* Suche: ausgeblendete Fragen und leere Themen wirklich verstecken */
.hf-gruppe[hidden], .hf-gruppe details[hidden], .hf-nichts[hidden] { display: none; }
