/* ArtiVoy Starthilfe – Elfenbein #F8F6F1, Marineblau #163A5F, Gold #B88A2A (Text: #86621A), Tinte #111 */
body.av-help-on { padding-bottom: 76px; }
#av-help { position: fixed; right: 18px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 900; font: 14px/1.55 Inter, system-ui, sans-serif; color: #111; max-width: calc(100vw - 24px); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
#av-help > * { pointer-events: auto; }
#av-help button, #av-help summary { font: inherit; }
#av-help button { min-height: 44px; padding: 9px 16px; border: 1px solid #163A5F; border-radius: 10px; background: #fff; color: #163A5F; cursor: pointer; font-weight: 500; }
#av-help button:hover { background: #EFEBE1; }
#av-help button:focus-visible, #av-help summary:focus-visible, #av-help a:focus-visible, #av-help pre:focus-visible { outline: 3px solid #B88A2A; outline-offset: 2px; }
#av-help .av-main { background: #163A5F; color: #fff; border-color: #163A5F; border-bottom: 3px solid #B88A2A; }
#av-help .av-main:hover { background: #1F4B78; }
#av-help .av-link { border: 0; background: transparent; text-decoration: underline; color: #163A5F; padding: 8px 10px; min-height: 44px; }
#av-help .av-x { position: static; min-width: 44px; padding: 0; font-size: 24px; line-height: 1; background: transparent; border: 0; color: inherit; }
#av-help .av-launch { display: inline-flex; align-items: center; gap: 9px; background: #163A5F; color: #fff; border: 1px solid #B88A2A; border-bottom: 3px solid #B88A2A; border-radius: 999px; padding: 10px 18px; box-shadow: 0 6px 22px rgba(22,58,95,.35); }
#av-help .av-launch:hover { background: #1F4B78; }
.av-welcome, .av-panel { width: 380px; max-width: calc(100vw - 24px); background: #F8F6F1; border: 1px solid #B88A2A; border-radius: 16px; box-shadow: 0 10px 36px rgba(22,58,95,.28); overflow: hidden; }
.av-welcome { position: relative; padding: 18px 18px 14px; }
.av-welcome p { margin: 0 34px 12px 0; font-size: 15px; color: #163A5F; }
.av-welcome .av-x { position: absolute !important; right: 2px; top: 2px; color: #163A5F !important; }
.av-panel header { display: flex; align-items: center; justify-content: space-between; background: #163A5F; color: #fff; padding: 4px 6px 4px 16px; border-bottom: 2px solid #B88A2A; }
.av-body { padding: 16px 18px 18px; max-height: min(66vh, 600px); overflow: auto; overscroll-behavior: contain; }
.av-body h2 { font-family: "Cormorant Garamond", "EB Garamond", Garamond, Georgia, serif; font-weight: 600; font-size: 25px; line-height: 1.15; margin: 4px 0 10px; color: #163A5F; }
.av-body h2:focus { outline: none; }
.av-body h3 { font-size: 15px; margin: 14px 0 6px; color: #163A5F; }
.av-body h3.av-grp { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #86621A; margin-top: 18px; }
.av-body p { margin: 0 0 12px; }
.av-count { display: block; color: #86621A; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.av-note { font-size: 12.5px; color: #55606B; margin-top: 14px !important; }
.av-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; margin: 0 0 10px; border: 1px solid; }
.av-tag-ready { color: #1f6b35; border-color: #1f6b35; background: #eaf5ee; }
.av-tag-demo { color: #86621A; border-color: #B88A2A; background: #fbf3df; }
.av-tag-server { color: #163A5F; border-color: #163A5F; background: #e8eef5; }
.av-paths { display: grid; gap: 8px; margin: 8px 0 12px; }
#av-help .av-path { display: block; text-align: left; width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(22,58,95,.25); background: #fff; }
#av-help .av-path:hover { border-color: #B88A2A; }
.av-path strong { display: block; font-size: 15px; color: #163A5F; }
.av-path span { display: block; font-size: 12.5px; color: #55606B; font-weight: 400; }
.av-row, .av-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.av-actions { justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid #d8c9a6; }
.av-body > button { margin: 2px 6px 6px 0; }
.av-acc { border: 1px solid rgba(22,58,95,.2); border-radius: 10px; background: #fff; margin: 0 0 8px; }
.av-acc > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; color: #163A5F; list-style-position: inside; min-height: 44px; display: flex; align-items: center; }
.av-acc > p, .av-acc > .av-up { margin: 0; padding: 0 14px 12px; }
.av-up dl, .av-store dl { margin: 0; }
.av-up dt, .av-store dt { font-weight: 600; color: #163A5F; margin-top: 8px; font-size: 13px; }
.av-up dd, .av-store dd { margin: 2px 0 0; font-size: 13.5px; }
.av-up h3 { margin-top: 0; }
.av-ex-title { font-size: 12px; font-weight: 600; color: #86621A; margin: 12px 0 4px !important; }
.av-ex { background: #111; color: #F8F6F1; border-radius: 8px; padding: 10px 12px; font: 12px/1.45 ui-monospace, Menlo, Consolas, monospace; overflow: auto; max-height: 190px; margin: 0 0 8px; white-space: pre; }
/* Feldhilfe */
#av-help-fields, .av-info { }
.av-info { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; min-height: 28px; margin: 0 6px; padding: 0; border-radius: 50%; border: 1px solid #B88A2A; background: #163A5F; color: #D2A94A; font: 600 15px/1 Inter, system-ui, sans-serif; cursor: pointer; vertical-align: middle; position: relative; }
.av-info::after { content: ""; position: absolute; inset: -9px; }
.av-info:hover { background: #1F4B78; }
.av-info:focus-visible { outline: 3px solid #B88A2A; outline-offset: 2px; }
.av-field-help { flex-basis: 100%; width: 100%; max-width: 640px; margin: 8px 0 12px; padding: 12px 14px; background: #F8F6F1; border: 1px solid #B88A2A; border-left-width: 4px; border-radius: 10px; font: 13.5px/1.5 Inter, system-ui, sans-serif; color: #111; }
.av-field-help[hidden] { display: none; }
.av-field-help dt { font-weight: 600; color: #163A5F; margin-top: 8px; font-size: 13px; }
.av-field-help dd { margin: 2px 0 0; }
.av-field-help .av-link { border: 0; background: transparent; text-decoration: underline; color: #163A5F; padding: 8px 4px; min-height: 44px; font: inherit; cursor: pointer; }
.av-field-help .av-sec { border: 1px solid #163A5F; background: #fff; color: #163A5F; border-radius: 10px; padding: 9px 14px; min-height: 44px; font: 500 13.5px Inter, system-ui, sans-serif; cursor: pointer; }
.av-field-help .av-ex { background: #111; color: #F8F6F1; border-radius: 8px; padding: 10px 12px; font: 12px/1.45 ui-monospace, Menlo, Consolas, monospace; overflow: auto; max-height: 190px; margin: 0 0 8px; white-space: pre; }
.av-field-help .av-ex-title { font-size: 12px; font-weight: 600; color: #86621A; margin: 12px 0 4px; }
/* Hervorhebung */
.av-help-target { outline: 3px solid #B88A2A !important; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(184,138,42,.22) !important; border-radius: 10px; scroll-margin-top: 80px; }
@media (max-width: 600px) {
  #av-help { right: 10px; }
  .av-panel { width: calc(100vw - 20px); }
  .av-welcome { width: min(250px, calc(100vw - 20px)); padding: 12px 12px 10px; }
  .av-welcome p { font-size: 14px; margin-right: 30px; }
  #av-help .av-launch { padding: 0; width: 48px; height: 48px; justify-content: center; border-radius: 50%; }
  #av-help .av-launch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .av-body { max-height: 50dvh; padding: 14px; }
  .av-body h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: no-preference) { .av-panel, .av-welcome { animation: avin .18s ease-out; } @keyframes avin { from { opacity: 0; transform: translateY(8px); } } }
@media print { #av-help, .av-info, .av-field-help { display: none !important; } }
