/* Hilfe-Center. Baut auf website.css (Farben, Kopf, Fuss) und minimal.css auf.
   Kontrast: Fliesstext #e8eefb und #aab7cc auf #0a1630 bzw. #020b1f, Links #8db6ff,
   Hervorhebung dunkel auf Gold. Der Fokusrahmen ist durchgehend Gold. */

.hilfe { --h-flaeche: #0a1630; --h-flaeche-2: #10203f; --h-rand: #7d91b3; --h-link: #8db6ff; --h-gold: #f2c14e; }
.hilfe .eyebrow { color: var(--h-gold); }

/* Fokus sichtbar, auch in der Kopf- und Fusszeile dieser Seite */
.hilfe :is(a, button, input, summary, [tabindex]):focus-visible,
.kopf :is(a, button):focus-visible,
.fuss a:focus-visible {
  outline: 3px solid var(--h-gold);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Tippflaechen mindestens 44 px */
.kopf nav a { min-height: 44px; display: inline-flex; align-items: center; }
.kopf nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.fuss a { display: inline-block; padding: 12px 6px; }
.fuss .marke { padding: 0; }

.sprunglink { position: absolute; left: 16px; top: -80px; z-index: 20; padding: 12px 18px; border-radius: 10px; background: var(--h-gold); color: #1a1300; font-weight: 700; text-decoration: none; }
.sprunglink:focus { top: 12px; }

/* Kopfbereich mit Suche */
.h-kopf { padding: 56px 0 8px; }
.h-kopf h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.1; margin: 0 0 12px; }
.h-kopf .lead { margin: 0 0 28px; max-width: 46em; }

.h-suche { margin: 0; }
.h-suche-label { display: block; margin: 0 0 10px; font-family: var(--titel); font-size: 1.25rem; font-weight: 700; }
.h-suche-feld { position: relative; display: flex; align-items: center; }
.h-suche-lupe { position: absolute; left: 20px; width: 24px; height: 24px; color: var(--text-leise); pointer-events: none; }
.h-suche-feld input {
  width: 100%; min-height: 64px; padding: 0 124px 0 58px; font: inherit; font-size: 1.25rem; color: var(--text);
  background: var(--h-flaeche); border: 2px solid var(--h-rand); border-radius: 16px;
  -webkit-appearance: none; appearance: none;
}
.h-suche-feld input::placeholder { color: #9fb0cc; opacity: 1; }
.h-suche-feld input::-webkit-search-cancel-button { display: none; }
.h-suche-feld input:focus-visible { outline: 3px solid var(--h-gold); outline-offset: 3px; border-color: var(--h-gold); }
.h-suche-ende { position: absolute; right: 12px; display: flex; align-items: center; gap: 8px; }
.h-leeren {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--text); font-size: 1.6rem; line-height: 1;
}
.h-leeren:hover { background: rgba(255, 255, 255, 0.1); }
.hat-text .h-leeren { display: inline-grid; place-items: center; }
.h-taste {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px;
  border: 1px solid var(--h-rand); color: var(--text-leise); font: 0.95rem/1 ui-monospace, "SFMono-Regular", Consolas, monospace; background: transparent;
}
.hat-text .h-taste, .nur-touch .h-taste { display: none; }
.h-status { min-height: 1.4em; margin: 10px 0 4px; color: var(--text-leise); }
.h-status strong { color: var(--text); }

/* Kacheln der Bereiche */
.h-bereiche { padding: 24px 0 8px; }
.h-bereiche h2 { font-size: 1.4rem; margin: 0 0 16px; }
.h-kacheln { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.h-kacheln a {
  display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 88px; padding: 16px 18px; text-decoration: none;
  background: var(--h-flaeche); border: 1px solid var(--linie); border-radius: 14px; color: var(--text);
  transition: border-color 150ms ease, background-color 150ms ease;
}
.h-kacheln a:hover { border-color: var(--h-gold); background: var(--h-flaeche-2); }
.h-kachel-titel { font-family: var(--titel); font-weight: 700; font-size: 1.05rem; }
.h-kachel-text { color: var(--text-leise); font-size: 0.93rem; line-height: 1.45; }
.h-kachel-zahl { margin-top: auto; padding-top: 6px; color: var(--h-gold); font-size: 0.85rem; font-weight: 700; }

/* Bereiche und Eintraege */
.h-inhalt { padding: 24px 0 16px; }
.h-bereich { margin: 0 0 48px; scroll-margin-top: 92px; }
.h-bereich > h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 0 0 8px; }
.h-einleitung { margin: 0 0 16px; color: var(--text-leise); max-width: 46em; }
.h-eintrag {
  scroll-margin-top: 92px; margin: 0 0 8px; background: var(--h-flaeche); border: 1px solid var(--linie); border-radius: 14px;
}
.h-eintrag[open] { border-color: rgba(141, 182, 255, 0.45); }
.h-eintrag > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 10px 18px;
  cursor: pointer; list-style: none; border-radius: 14px;
}
.h-eintrag > summary::-webkit-details-marker { display: none; }
.h-eintrag > summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--h-gold); border-bottom: 2px solid var(--h-gold); transform: rotate(45deg); transition: transform 150ms ease;
}
.h-eintrag[open] > summary::after { transform: rotate(-135deg); }
.h-eintrag > summary:hover { background: var(--h-flaeche-2); }
.h-eintrag > summary h3 { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; }

.h-text { padding: 4px 18px 20px; max-width: 52em; color: var(--text); line-height: 1.65; }
.h-text > :first-child { margin-top: 0; }
.h-text p { margin: 0 0 12px; }
.h-text h4 { margin: 20px 0 8px; font-family: var(--titel); font-size: 1rem; color: var(--h-gold); }
.h-text ol, .h-text ul { margin: 0 0 12px; padding-left: 1.5em; }
.h-text li { margin: 0 0 6px; padding-left: 4px; }
.h-text li::marker { color: var(--h-gold); font-weight: 700; }
.h-text a { color: var(--h-link); text-underline-offset: 3px; }
.h-text a:hover { color: #fff; }
.h-text .leise { color: var(--text-leise); }
.pfad { display: inline-block; padding: 1px 8px; border-radius: 8px; background: rgba(242, 193, 78, 0.12); color: #f7d98a; font-weight: 700; font-size: 0.95em; }
.h-text code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); font: 0.92em ui-monospace, "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; }
.h-text pre {
  margin: 0 0 14px; padding: 14px 16px; overflow-x: auto; border-radius: 10px; background: #050d20; border: 1px solid var(--linie);
  font: 0.9rem/1.55 ui-monospace, "SFMono-Regular", Consolas, monospace;
}
.h-text pre code { padding: 0; background: none; font: inherit; overflow-wrap: normal; }
.h-text dl { margin: 0 0 12px; display: grid; grid-template-columns: minmax(130px, 0.28fr) 1fr; gap: 8px 18px; }
.h-text dt { font-weight: 700; }
.h-text dd { margin: 0; color: var(--text-leise); }
.h-tabelle { margin: 0 0 14px; overflow-x: auto; }
.h-tabelle table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.h-tabelle th, .h-tabelle td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linie); }
.h-tabelle th { color: var(--h-gold); font-weight: 700; white-space: nowrap; }
.h-hinweis { margin: 0 0 12px; padding: 12px 14px; border-left: 4px solid var(--h-gold); border-radius: 0 10px 10px 0; background: rgba(242, 193, 78, 0.08); }
.h-problem { display: grid; gap: 4px; }
.h-problem p { margin: 0 0 8px; }
.h-problem strong { color: var(--h-gold); }

/* Treffer */
mark.h-m { padding: 0 2px; border-radius: 3px; background: var(--h-gold); color: #1a1300; }
[hidden] { display: none !important; }
.suchend .h-bereiche { display: none; }
.suchend .h-bereich > .h-einleitung { display: none; }

.h-leer { margin: 8px 0 48px; padding: 28px; border-radius: 16px; background: var(--h-flaeche); border: 1px solid var(--linie); }
.h-leer h2 { font-size: 1.5rem; margin: 0 0 10px; }
.h-leer p { margin: 0 0 12px; max-width: 44em; }
.h-leer a { color: var(--h-link); }
.h-leer .knopf { margin-top: 4px; }

.h-kontakt { margin: 16px 0 72px; padding: 28px; border-radius: 16px; background: var(--h-flaeche-2); border: 1px solid var(--linie); display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.h-kontakt h2 { font-size: 1.4rem; margin: 0 0 6px; }
.h-kontakt p { margin: 0; color: var(--text-leise); max-width: 40em; }
.h-kontakt .knopf { background: #fff; color: #17122b; border-color: transparent; }

.noscript-hinweis { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: rgba(242, 193, 78, 0.12); }

@media (max-width: 900px) {
  .h-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-kopf { padding-top: 36px; }
}
@media (max-width: 640px) {
  .h-kacheln { grid-template-columns: 1fr; }
  .h-suche-feld input { min-height: 60px; padding-left: 52px; padding-right: 64px; font-size: 1.1rem; }
  .h-suche-lupe { left: 16px; }
  .h-text dl { grid-template-columns: 1fr; gap: 2px; }
  .h-text dd { margin-bottom: 10px; }
  .h-eintrag > summary { padding: 10px 14px; }
  .h-text { padding: 4px 14px 18px; }
  .h-kontakt { padding: 22px; }
  .h-kontakt .knopf { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .h-eintrag > summary::after, .h-kacheln a { transition: none; }
  html { scroll-behavior: auto; }
}
