/* true_drive Assistent: ein Feld für Suche und Fragen */
.td-qwrap:has(.tda-inline:not(:empty)) input[type="search"] { padding-right: 126px !important; }
.tda-inline { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: flex; gap: 4px; }
.tda-inline:empty { display: none; }
.tda-in-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 10px; border: none; border-radius: 9px; cursor: pointer; font-family: Manrope, system-ui, sans-serif; font-size: 14px; font-weight: 800; transition: background .2s, color .2s; }
.tda-in-mic { background: #EEF0F3; color: #0E1A2B; padding: 0; }
.tda-in-mic.is-on { background: #D14343; color: #FFFFFF; animation: tdaPulse 1.2s infinite; }
.tda-in-ask { background: #EEF0F3; color: #4A5568; }
.tda-in-ask span[aria-hidden] { color: #FF7A3D; }
.tda-in-ask.is-ready { background: #FF7A3D; color: #0E1A2B; }
.tda-in-ask.is-ready span[aria-hidden] { color: #0E1A2B; }
@keyframes tdaPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(209, 67, 67, .5); } 50% { box-shadow: 0 0 0 8px rgba(209, 67, 67, 0); } }
.tda-slot { font-family: Manrope, system-ui, sans-serif; color: #0E1A2B; }
.tda-hint { margin: 8px 2px 0; font-size: 12px; color: #4A5568; }
.tda-hint span { color: #FF7A3D; }
.tda-hint kbd { font: inherit; font-weight: 700; background: #FFFFFF; border: 1px solid #D3D8E0; border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; }
.tda-hint[hidden], .tda-askrow[hidden], .tda-panel[hidden] { display: none !important; }
.tda-askrow { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 8px; box-sizing: border-box; font: inherit; font-size: 14px; text-align: left; color: #0E1A2B; background: #FFF1EA; border: 1.5px solid #FFD8C4; border-radius: 12px; padding: 9px 12px; cursor: pointer; animation: tdaIn .25s ease-out both; }
.tda-askrow:hover { border-color: #FF7A3D; }
.tda-askrow-ico { flex: none; display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: #FF7A3D; color: #0E1A2B; align-items: center; justify-content: center; font-size: 12px; }
.tda-askrow-text { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tda-askrow-key { flex: none; font-size: 12px; color: #4A5568; font-weight: 600; }
/* Gespräch */
.tda-panel { display: flex; flex-direction: column; animation: tdaUp .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tdaUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tdaIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.td-find .tda-panel { position: absolute; left: 0; right: 0; bottom: 100%; z-index: 7; box-sizing: border-box; background: #F7F8FA; border-radius: 28px 28px 0 0; padding: 20px 28px 8px; box-shadow: 0 -18px 30px rgba(14, 26, 43, .06); }
.td-find .tda-slot.is-chat ~ * { }
.td-find:has(.tda-slot.is-chat) { box-shadow: 0 -1px 0 #F7F8FA; }
.tda-slot:not(.is-chat) .tda-panel { }
.td-mobile .tda-panel, .tda-slot:not(.td-find .tda-slot) .tda-panel { margin-top: 10px; background: #F7F8FA; border-radius: 16px; padding: 12px; }
.tda-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tda-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FF7A3D; }
.tda-title::before { content: "✦ "; }
.tda-back { font: inherit; font-size: 13px; font-weight: 700; background: none; border: none; color: #0E1A2B; cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.tda-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 2px 2px 8px; }
.td-mobile .tda-log { max-height: 360px; }
.tda-msg { max-width: 90%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.5; animation: tdaIn .25s ease-out both; white-space: pre-wrap; }
.tda-user { align-self: flex-end; background: #0E1A2B; color: #FFFFFF; border-bottom-right-radius: 4px; }
.tda-assistant { align-self: flex-start; background: #FFFFFF; border: 1px solid #E3E7ED; border-bottom-left-radius: 4px; }
.tda-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.tda-typing span { width: 6px; height: 6px; border-radius: 50%; background: #8FA6C8; animation: tdaDot 1s infinite ease-in-out; }
.tda-typing span:nth-child(2) { animation-delay: .15s; } .tda-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes tdaDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.tda-log, .tda-mods, .tda-mod { min-width: 0; }
.tda-mods { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-self: stretch; animation: tdaIn .3s ease-out both; }
.tda-mod { display: flex; align-items: center; gap: 8px; background: #FFFFFF; border: 1px solid #E3E7ED; border-radius: 12px; padding: 7px 8px 7px 12px; font-size: 14px; }
.tda-mod b { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tda-mod button { font: inherit; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 9px; cursor: pointer; white-space: nowrap; flex: none; }
.tda-mod-view { background: #FFFFFF; border: 1.5px solid #0E1A2B; color: #0E1A2B; }
.tda-mod-add { background: #FF7A3D; border: none; color: #0E1A2B; }
.tda-mod-add:disabled { background: #0E1A2B; color: #FFFFFF; cursor: default; }
.tda-cta { font-size: 13px; font-weight: 700; color: #0E1A2B; padding: 4px 2px; }
.tda-note { margin: 0; padding: 6px 0 4px; font-size: 11px; line-height: 1.45; color: #8A94A6; border-top: 1px solid #E3E7ED; }
.tda-note a { color: #4A5568; }
@media (max-width: 760px) { .tda-in-label { display: none; } .td-qwrap:has(.tda-inline:not(:empty)) input[type="search"] { padding-right: 92px !important; } }
@media (max-width: 420px) { .tda-mod { padding: 7px 6px 7px 10px; gap: 6px; } .tda-mod button { padding: 6px 8px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .tda-panel, .tda-msg, .tda-mods, .tda-askrow, .tda-typing span, .tda-in-mic.is-on { animation: none !important; } }
.tda-resume { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 8px; box-sizing: border-box; font: inherit; font-size: 13px; font-weight: 700; text-align: left; color: #FFFFFF; background: #0E1A2B; border: none; border-radius: 12px; padding: 10px 12px; cursor: pointer; animation: tdaIn .25s ease-out both; }
.tda-resume[hidden] { display: none !important; }
.tda-resume span[aria-hidden] { color: #FF7A3D; }
.tda-resume-n { margin-left: auto; font-weight: 600; color: #B7C3D6; }
.tda-resume:hover { background: #16243A; }
