/* BiteFresh Hilfe-Wiki (/hilfe/) — baut auf style.css des Themes auf (Tokens, .legal-hero, .btn, .alexa-say).
   Wird nur auf Hilfeseiten geladen (hilfe/hilfe.php). Stand 28.09.2026. */

.bf-hilfe .screen-reader-text, .hilfe-preview .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Kopfbereich ── */
.hilfe-hero { padding-bottom: 40px; }
.hilfe-hero h1 { max-width: 820px; }
.hilfe-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.hilfe-crumbs a { color: rgba(255,255,255,.86); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.hilfe-crumbs a:hover { color: #fff; text-decoration-color: #fff; }
.legal-hero .hilfe-lead { font-size: clamp(17px, 2.1vw, 19px); line-height: 1.55; color: rgba(255,255,255,.9); max-width: 760px; margin-top: 14px; }
.hilfe-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.hilfe-tiernote { font-size: 14px; color: rgba(255,255,255,.78); }
.legal-hero .hilfe-ui { color: #fff; }

.hilfe-hero--index { padding-bottom: 56px; }
.hilfe-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hilfe-hero-grid > :only-child { grid-column: 1 / -1; } /* ohne Freshy-Bild keine leere rechte Spalte */
.hilfe-hero-copy p { max-width: 560px; }
.hilfe-hero-freshy { margin: 0; }
.hilfe-hero-freshy img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.28); }

/* Suche */
.hilfe-search {
  position: relative; display: flex; align-items: center; gap: 8px; margin-top: 26px; max-width: 580px;
  background: #fff; border-radius: 16px; padding: 6px 6px 6px 48px; box-shadow: 0 14px 40px rgba(0,0,0,.22);
}
.hilfe-search-ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.hilfe-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16.5px;
  color: var(--ink); padding: 12px 4px;
}
.hilfe-search input::placeholder { color: var(--faint); }
.hilfe-search input::-webkit-search-cancel-button { cursor: pointer; }
.hilfe-search:focus-within { box-shadow: 0 0 0 3px var(--amber), 0 14px 40px rgba(0,0,0,.22); }
.hilfe-search .btn { padding: 12px 20px; border-radius: 12px; }

/* ── Inhaltsbreite ── */
.hilfe-wrap { max-width: 880px; margin: 0 auto; padding: 48px 24px 80px; }
.hilfe-wrap--wide { max-width: var(--wrap); }
.hilfe-h2 { font-family: var(--display); font-size: clamp(24px, 3vw, 30px); font-weight: 600; letter-spacing: -.01em; margin: 0 0 18px; color: var(--ink); }
.hilfe-wrap section + section { margin-top: 56px; }
.hilfe-article > .hilfe-tips, .hilfe-article > .hilfe-related, .hilfe-article > .hilfe-terms { margin-top: 52px; }

/* Exakte App-Begriffe und Beispielsätze */
.hilfe-ui { font-weight: 700; color: var(--ink); }
.hilfe-say-inline { font-style: italic; color: var(--accent-deep); font-weight: 600; }

/* ── Kennzeichen ── */
.hilfe-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.hilfe-badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; letter-spacing: .03em;
  padding: 4px 10px; border-radius: 999px; line-height: 1.2; white-space: nowrap; border: 1px solid transparent;
}
.hilfe-badges--sm .hilfe-badge { font-size: 11px; padding: 2px 8px; }
.hilfe-badge--gratis { background: #e3f3e8; color: #1f6b3d; border-color: #c8e6d2; }
.hilfe-badge--premium { background: #14211e; color: #fff; }
.hilfe-badge--premium::before { content: "✦"; font-size: .9em; }
.hilfe-badge--ki { background: #e2f0fa; color: #185f8c; border-color: #c6e1f3; }
.hilfe-badge--neu { background: #fff1cc; color: #7a5600; border-color: #f0d98a; }
.legal-hero .hilfe-badge--gratis { background: rgba(147,209,111,.18); color: #d9f5c8; border-color: rgba(147,209,111,.35); }
.legal-hero .hilfe-badge--premium { background: #fff; color: var(--dark); }
.legal-hero .hilfe-badge--ki { background: rgba(124,196,236,.18); color: #d6efff; border-color: rgba(124,196,236,.35); }
.legal-hero .hilfe-badge--neu { background: #ffd966; color: #3d2c00; }

/* ── Karten ── */
.hilfe-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.hilfe-card-grid--3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.hilfe-card {
  display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px 18px 14px; box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.hilfe-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-tint-2); }
.hilfe-card-q { font-weight: 800; font-size: 16px; line-height: 1.35; }
.hilfe-card-a { color: var(--muted); font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hilfe-card-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hilfe-card-go { color: var(--accent); display: flex; transition: transform .2s var(--ease); }
.hilfe-card:hover .hilfe-card-go { transform: translateX(3px); }
.hilfe-ic { flex-shrink: 0; }

.hilfe-popular .hilfe-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Suchtreffer */
.hilfe-results { margin-bottom: 8px; }
.hilfe-results[hidden] { display: none; }
.hilfe-results-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.hilfe-empty { color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 16px; padding: 18px 20px; }

/* ── Kapitel ── */
.hilfe-chapter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hilfe-chapter {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 14px;
  box-shadow: var(--shadow-sm); scroll-margin-top: 92px;
}
.hilfe-chapter-head { display: flex; align-items: center; gap: 14px; }
.hilfe-chapter-ic {
  width: 48px; height: 48px; border-radius: 14px; background: var(--accent-tint); color: var(--accent-deep);
  display: grid; place-items: center; flex-shrink: 0;
}
.hilfe-chapter-num { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--accent); }
.hilfe-chapter h3 { font-size: 22px; margin: 0; }
.hilfe-chapter-desc { color: var(--muted); font-size: 15px; margin: 12px 0 8px; }
.hilfe-chapter-list { list-style: none; margin: 0; padding: 0; }
.hilfe-chapter-list li + li { border-top: 1px solid var(--line); }
.hilfe-chapter-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px;
  font-weight: 600; font-size: 15px; color: var(--ink);
}
.hilfe-chapter-list a:hover span:first-child { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.hilfe-chapter-list .is-expired a { color: var(--faint); }
.hilfe-chapter-list .hilfe-badges { flex-wrap: nowrap; flex-shrink: 0; }

/* Legende + Mehr */
.hilfe-legend dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.hilfe-legend dl > div { display: flex; gap: 12px; align-items: flex-start; background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.hilfe-legend dd { color: var(--muted); font-size: 14.5px; }
.hilfe-more {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--accent-tint); border: 1px solid var(--accent-tint-2); border-radius: var(--radius); padding: 26px 28px;
}
.hilfe-more p { color: var(--muted); max-width: 560px; }
.hilfe-more .hilfe-h2 { margin-bottom: 8px; }
.hilfe-more-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hilfe-more-cta .btn { padding: 13px 20px; }

/* ── Artikel ── */
.hilfe-freshy { margin: 0 0 40px; }
.hilfe-freshy img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-md); background: #fff; }

.hilfe-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.hilfe-step {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow-sm);
  scroll-margin-top: 92px;
}
.hilfe-step.has-shot { grid-template-columns: minmax(0, 1fr) 250px; }
.hilfe-step-body { display: flex; gap: 14px; align-items: flex-start; }
.hilfe-step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 17px;
  box-shadow: 0 4px 12px rgba(15,160,146,.3);
}
.hilfe-step-text { min-width: 0; padding-top: 4px; }
.hilfe-step-text p { font-size: 16.5px; line-height: 1.65; color: var(--ink); }
.hilfe-step-text a, .hilfe-tip a, .hilfe-gloss a, .hilfe-lead a { color: var(--accent-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-hero .hilfe-lead a { color: #fff; }
.hilfe-say { margin: 14px 0 2px; }
.hilfe-say li::before { content: "🎙️ "; }

/* Handy-Screenshot mit CSS-Rahmen */
.hilfe-shot { margin: 0; justify-self: center; width: 100%; max-width: 250px; }
.hilfe-shot img {
  width: 100%; height: auto; display: block; border-radius: 30px; border: 6px solid #10201d; background: #fff;
  box-shadow: 0 18px 40px rgba(12,45,40,.18), 0 2px 6px rgba(12,45,40,.08);
}

/* Platzhalter (nur Redaktion / Vorschau) */
.hilfe-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  border: 2px dashed #c9a93a; background: repeating-linear-gradient(135deg, #fffaf0, #fffaf0 12px, #fff4dc 12px, #fff4dc 24px);
  color: #6a4e0d; border-radius: 26px; padding: 18px 14px; aspect-ratio: 1206 / 2622;
}
.hilfe-ph--freshy { aspect-ratio: 3 / 2; border-radius: var(--radius); }
.hilfe-article .hilfe-ph--freshy { aspect-ratio: auto; min-height: 150px; }
.hilfe-ph-label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hilfe-ph code { font-size: 13px; font-weight: 700; background: #fff; border: 1px solid #f0dca6; border-radius: 8px; padding: 3px 8px; word-break: break-all; color: #4d3909; }
.hilfe-ph-alt { font-size: 12.5px; line-height: 1.45; color: #7a5b12; }
.hilfe-hero .hilfe-ph { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); }
.hilfe-hero .hilfe-ph code { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; }
.hilfe-hero .hilfe-ph-alt { color: rgba(255,255,255,.75); }

/* Tipps */
.hilfe-tips { display: grid; gap: 12px; }
.hilfe-tips .hilfe-h2 { margin-bottom: 6px; }
.hilfe-tip { display: flex; gap: 12px; align-items: flex-start; border-radius: 16px; padding: 15px 18px; font-size: 15.5px; line-height: 1.6; border: 1px solid; }
.hilfe-tip-ic { flex-shrink: 0; line-height: 1.6; }
.hilfe-tip--tip { background: var(--accent-tint); border-color: var(--accent-tint-2); color: var(--dark); }
.hilfe-tip--hinweis { background: #fff7e6; border-color: #f0dca6; color: #6a4e0d; }
.hilfe-tip--premium { background: #14211e; border-color: #14211e; color: rgba(255,255,255,.9); }
.hilfe-tip--premium .hilfe-ui, .hilfe-tip--premium a { color: #fff; }
.hilfe-tip--premium .hilfe-tip-ic { color: #7fe3d6; }

/* Begriffe + Blättern */
.hilfe-terms p { display: flex; flex-wrap: wrap; gap: 8px; }
.hilfe-term {
  display: inline-flex; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: 14px; font-weight: 700; color: var(--accent-deep); transition: background .15s, border-color .15s;
}
.hilfe-term:hover { background: var(--accent-tint); border-color: var(--accent-tint-2); }
.hilfe-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; margin-top: 56px; }
.hilfe-pager a {
  display: flex; flex-direction: column; gap: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; font-weight: 700; font-size: 14.5px; color: var(--ink); line-height: 1.35;
}
.hilfe-pager a:hover { border-color: var(--accent-tint-2); box-shadow: var(--shadow-sm); }
.hilfe-pager small { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.hilfe-pager-next { text-align: right; }
.hilfe-pager-all { justify-content: center; align-items: center; color: var(--accent-deep) !important; }

/* ── Glossar ── */
.hilfe-letters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 36px; position: sticky; top: 76px; z-index: 5; background: var(--bg); padding: 10px 0; }
.hilfe-letters a {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--card);
  border: 1px solid var(--line); font-weight: 800; color: var(--accent-deep);
}
.hilfe-letters a:hover { background: var(--accent-tint); }
.hilfe-letter { scroll-margin-top: 140px; }
.hilfe-letter + .hilfe-letter { margin-top: 36px; }
.hilfe-letter dl { display: grid; gap: 12px; }
.hilfe-gloss { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; scroll-margin-top: 140px; }
.hilfe-gloss:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint-2); }
.hilfe-gloss dt { font-weight: 800; font-size: 16.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hilfe-gloss dd p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }
.hilfe-gloss-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; }
.hilfe-gloss-link .hilfe-ic { width: 16px; height: 16px; }

/* ── Mobil ── */
@media (max-width: 940px) {
  .hilfe-popular .hilfe-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hilfe-hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hilfe-hero-freshy { max-width: 420px; }
  .hilfe-chapter-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hilfe-popular .hilfe-card-grid { grid-template-columns: 1fr; }
  .hilfe-step.has-shot { grid-template-columns: 1fr; }
  .hilfe-shot { max-width: 230px; }
  .hilfe-pager { grid-template-columns: 1fr; }
  .hilfe-pager-next { text-align: left; }
  .hilfe-letters { top: 72px; }
}
@media (max-width: 520px) {
  .hilfe-wrap { padding: 36px 18px 64px; }
  .hilfe-search { padding-left: 42px; }
  .hilfe-search .btn { padding: 12px 14px; }
  .hilfe-search-ic { left: 13px; }
  .hilfe-step { padding: 16px; }
  .hilfe-step-text p { font-size: 16px; }
  .hilfe-chapter { padding: 20px 18px 10px; }
  .hilfe-more { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hilfe-card, .hilfe-card-go { transition: none; }
  .hilfe-card:hover { transform: none; }
}
