/* Benutzerfreundlichkeit im Poker-Analyzer (Version 7): Suche, Ansicht, Tour, Fachbegriffe, Feedback */
.ux-tools { max-width: 1100px; margin: 0 auto 10px; display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; font-size: 14px; }
.ux-search { position: relative; flex: 1 1 280px; max-width: 460px; }
.ux-search input { width: 100%; box-sizing: border-box; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line, #1f5544); background: var(--deep, #0d2e25); color: var(--ink, #f2ede0); font: inherit; }
.ux-search input:focus { outline: 2px solid var(--gold, #d4af37); border-color: var(--gold, #d4af37); }
.ux-search ul { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1400; margin: 0; padding: 4px; list-style: none; background: var(--panel, #123d31);
  border: 1px solid var(--gold-dim, #8f7a2e); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); max-height: 340px; overflow-y: auto; }
.ux-search li { padding: 7px 10px; border-radius: 7px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.ux-search li span { color: var(--ink-dim, #b9b09a); font-size: 12px; white-space: nowrap; }
.ux-search li.on, .ux-search li:hover { background: rgba(212, 175, 55, .16); }
.ux-search li.none { cursor: default; color: var(--ink-dim, #b9b09a); }
.panel.ux-flash { box-shadow: 0 0 0 3px var(--gold, #d4af37), 0 0 28px rgba(212, 175, 55, .55) !important; transition: box-shadow .3s; }

.ux-mode { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line, #1f5544); border-radius: 999px; overflow: hidden; }
.ux-mode span { padding: 0 8px 0 12px; color: var(--ink-dim, #b9b09a); font-size: 13px; }
.ux-mode button { border: 0; background: none; color: var(--ink, #f2ede0); font: inherit; font-size: 13px; padding: 6px 12px; cursor: pointer; }
.ux-mode button.on { background: var(--gold, #d4af37); color: #1b1b1b; font-weight: 700; }
.ux-tourlink { font-size: 13px; }
/* Ansicht «Einfach»: Werkzeuge, Profi und Fortgeschrittenen-Fenster ausblenden */
.ka-simple .tabbar .tab.ux-adv-tab { display: none; }
.ka-simple .panel.ux-adv { display: none !important; }

/* Tour */
.ux-tour { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }
.ux-tour-box { position: absolute; width: 340px; max-width: calc(100vw - 24px); pointer-events: auto; background: var(--panel, #123d31); color: var(--ink, #f2ede0);
  border: 2px solid var(--gold, #d4af37); border-radius: 12px; padding: 14px 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .7); }
.ux-tour-box::before { content: ''; position: absolute; top: -10px; left: var(--ax, 26px); border: 9px solid transparent; border-top: 0; border-bottom-color: var(--gold, #d4af37); }
.ux-tour-step { font-size: 12px; color: var(--ink-dim, #b9b09a); }
.ux-tour-box h3 { margin: 2px 0 6px; color: var(--gold, #d4af37); font-size: 17px; }
.ux-tour-box p { margin: 0 0 10px; line-height: 1.5; font-size: 14px; }
.ux-tour-row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.tabbar .tab.ux-tour-target { box-shadow: 0 0 0 3px var(--gold, #d4af37), 0 0 22px rgba(212, 175, 55, .8); position: relative; z-index: 2001; }

/* Fachbegriffe */
.ux-term { border-bottom: 1px dotted var(--gold, #d4af37); cursor: help; }
.ux-term:focus { outline: 2px solid var(--gold, #d4af37); outline-offset: 1px; }
.ux-tip { position: absolute; z-index: 2100; max-width: 290px; background: #0a2018; color: var(--ink, #f2ede0); border: 1px solid var(--gold-dim, #8f7a2e); border-radius: 8px;
  padding: 8px 10px; font-size: 13px; line-height: 1.45; box-shadow: 0 6px 18px rgba(0, 0, 0, .55); pointer-events: none; }
.ux-tip b { display: block; color: var(--gold, #d4af37); margin-bottom: 2px; }
.ux-tip[hidden] { display: none; }

/* Feedback */
.ux-fb { position: fixed; right: 16px; bottom: 16px; z-index: 50; background: var(--panel, #123d31); color: var(--gold, #d4af37); border: 1px solid var(--gold, #d4af37);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.ux-fb:hover { background: var(--gold, #d4af37); color: #1b1b1b; }
.ka-dlg textarea, .ka-dlg input[type=email] { width: 100%; box-sizing: border-box; margin: 4px 0; padding: 8px; border-radius: 6px; border: 1px solid var(--line, #1f5544); background: var(--deep, #0d2e25); color: var(--ink, #f2ede0); font: inherit; }
.ux-fb-out { min-height: 1.2em; color: var(--gold, #d4af37); }

/* Vorschau gesperrter Reiter */
.ka-dlg .ka-preview { width: 100%; border-radius: 8px; border: 1px solid var(--line, #1f5544); margin: 4px 0 10px; display: block; }

@media (max-width: 600px) {
  .ux-tools { gap: 8px; }
  .ux-search { flex-basis: 100%; max-width: none; }
  .ux-fb { right: 10px; bottom: 10px; width: 40px; height: 40px; padding: 0; font-size: 18px; }
  .ux-fb span { display: none; } /* auf dem Handy nur das Symbol, damit der Knopf nichts verdeckt */
}
