/* Tresörchen – Chat-Assistent (Website). Markenfarben: Rot #9a2e30, Schwarz, Weiß; Überschriften Bebas. */
.tas-launch, .tas-panel { --tas-red: #9a2e30; --tas-red-d: #7d2426; --tas-ink: #000; --tas-text: #1a1a1a; --tas-muted: #6b6b6b; --tas-line: #e4e4e4; --tas-soft: #f5f4f2; box-sizing: border-box; }
.tas-launch *, .tas-panel *, .tas-panel *::before, .tas-panel *::after { box-sizing: border-box; }

.tas-launch { position: fixed; right: 20px; bottom: 20px; z-index: 9990; display: grid; place-items: center; width: 58px; height: 58px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--tas-red); color: #fff; box-shadow: 0 6px 22px rgba(0,0,0,.28); cursor: pointer; transition: transform .2s ease, background-color .2s ease, bottom .25s ease; }
.tas-launch:hover { background: var(--tas-red-d); transform: translateY(-2px); }
.tas-launch:focus-visible { outline: 3px solid #000; outline-offset: 3px; }
.tas-launch svg { width: 27px; height: 27px; }
.tas-launch-dot { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; background: #2fbf71; }
.tas-launch-dot[hidden] { display: none; }
body:has(.tb-mcta.is-on) .tas-launch { bottom: calc(82px + env(safe-area-inset-bottom)) !important; } /* über der Buchungsleiste (mobil) */
/* „Nach oben“-Knopf des Themes über den Chat-Knopf setzen (sonst liegen beide übereinander) */
#go-to-top { right: 26px !important; bottom: 90px !important; }
body:has(.tb-mcta.is-on) #go-to-top { bottom: calc(150px + env(safe-area-inset-bottom)) !important; }
body.tb-dn-open .tas-launch, html.tas-open .tas-launch { opacity: 0; pointer-events: none; }

.tas-panel { position: fixed; right: 20px; bottom: 20px; z-index: 10000; display: flex; flex-direction: column; width: 400px; height: min(660px, calc(100vh - 40px)); height: min(660px, calc(100dvh - 40px)); background: #fff; color: var(--tas-text); border: 1px solid #000; box-shadow: 0 18px 50px rgba(0,0,0,.25); font: 15px/1.45 Figtree, "Helvetica Neue", Arial, sans-serif; text-align: left; }
.tas-panel[hidden] { display: none; }
.tas-panel button { font: inherit; letter-spacing: normal; text-transform: none; }
.tas-panel p { margin: 0; padding: 0; }
.tas-panel a { color: var(--tas-red); text-decoration: underline; }

.tas-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 12px 18px; background: #000; color: #fff; }
.tas-head > div { flex: 1; min-width: 0; }
.tas-title { font-family: bebas_neuebold, "Bebas Neue", sans-serif; font-size: 26px !important; line-height: 1 !important; letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.tas-sub { margin-top: 3px !important; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; opacity: .75; }
.tas-new, .tas-x { display: grid; place-items: center; height: 36px; margin: 0; padding: 0 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 0; background: transparent; color: #fff; font-size: 13px !important; cursor: pointer; }
.tas-x { width: 36px; padding: 0; }
.tas-x svg { width: 18px; height: 18px; }
.tas-new:hover, .tas-x:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.tas-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 8px; background: var(--tas-soft); }
.tas-msg { display: flex; flex-direction: column; align-items: flex-start; margin: 0 0 12px; }
.tas-msg.is-user { align-items: flex-end; }
.tas-bubble { max-width: 88%; padding: 10px 13px; background: #fff; border: 1px solid var(--tas-line); overflow-wrap: anywhere; }
.is-user .tas-bubble { background: #000; border-color: #000; color: #fff; }
.is-user .tas-bubble a { color: #fff; }
.is-team .tas-bubble { border-color: var(--tas-red); border-left-width: 3px; }
.tas-who { margin: 0 0 4px !important; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--tas-red); }

.tas-typing .tas-bubble { display: flex; gap: 4px; padding: 14px 16px; }
.tas-typing i { width: 7px; height: 7px; border-radius: 50%; background: #999; animation: tasDot 1.2s infinite ease-in-out; }
.tas-typing i:nth-child(2) { animation-delay: .15s; } .tas-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tasDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .tas-typing i { animation: none; } .tas-launch { transition: none; } }

.tas-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tas-chips button { margin: 0; padding: 8px 12px; border: 1px solid #000; border-radius: 999px; background: #fff; color: #000; font-size: 14px !important; line-height: 1.2; cursor: pointer; }
.tas-chips button:hover { background: #000; color: #fff; }

.tas-cards, .tas-actions { display: grid; gap: 8px; width: 88%; margin-top: 8px; }
.tas-card, .tas-box { padding: 12px 14px; background: #fff; border: 1px solid var(--tas-line); }
.tas-card p { font-size: 14px; }
.tas-card-t, .tas-box-t { margin-bottom: 4px !important; font-weight: 700; }
.tas-card-meta { margin-top: 4px !important; color: var(--tas-muted); font-size: 13px !important; }
.tas-tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border: 1px solid currentColor; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--tas-muted); vertical-align: 1px; }

.tas-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 10px 16px; border: 1px solid #000; border-radius: 0; background: #fff; color: #000 !important; font-weight: 600; text-align: center; text-decoration: none !important; cursor: pointer; }
.tas-btn:hover { background: #000; color: #fff !important; }
.tas-btn.is-primary { border-color: var(--tas-red); background: var(--tas-red); color: #fff !important; }
.tas-btn.is-primary:hover { border-color: var(--tas-red-d); background: var(--tas-red-d); }
.tas-btn[disabled] { opacity: .55; cursor: wait; }
.tas-actions > .tas-btn { width: 100%; }
.tas-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tas-row .tas-btn { flex: 1 1 auto; }
.tas-done { padding: 8px 12px; border-left: 3px solid var(--tas-red); background: #fff; color: var(--tas-muted); font-size: 14px; }

.tas-form { display: grid; gap: 10px; }
.tas-dl { display: grid; gap: 2px; margin: 0 0 4px; padding: 8px 10px; background: var(--tas-soft); font-size: 14px; }
.tas-dl div { display: flex; justify-content: space-between; gap: 10px; }
.tas-dl dt { margin: 0; color: var(--tas-muted); }
.tas-dl dd { margin: 0; font-weight: 600; text-align: right; }
.tas-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tas-f { display: grid; gap: 3px; margin: 0; font-size: 13px; color: var(--tas-muted); }
.tas-panel input[type="text"], .tas-panel input[type="email"], .tas-panel input[type="tel"], .tas-panel input:not([type]), .tas-panel input[name="code"], .tas-f textarea {
	width: 100%; min-height: 42px; margin: 0; padding: 9px 10px; border: 1px solid #bdbdbd; border-radius: 0; background: #fff; color: #000; font: 16px/1.3 Figtree, "Helvetica Neue", Arial, sans-serif; box-shadow: none; }
.tas-f select { width: 100%; min-height: 42px; margin: 0; padding: 9px 10px; border: 1px solid #bdbdbd; border-radius: 0; background: #fff; color: #000; font: 16px/1.3 Figtree, "Helvetica Neue", Arial, sans-serif; }
.tas-panel input:focus, .tas-f textarea:focus, .tas-f select:focus { border-color: #000; outline: 2px solid #000; outline-offset: 0; }
.tas-panel .is-bad { border-color: var(--tas-red) !important; }
.tas-f textarea { min-height: 70px; resize: vertical; }
.tas-check { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13px; line-height: 1.4; color: var(--tas-text); }
.tas-check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--tas-red); }
.tas-err { padding: 8px 10px; background: #fbeaea; color: var(--tas-red); font-size: 14px; }
.tas-err[hidden] { display: none; }
.tas-small { font-size: 13px; color: var(--tas-muted); }
.tas-code .tas-row { margin-top: 6px; }
.tas-code input { flex: 1 1 120px; width: auto !important; font-size: 20px !important; letter-spacing: 6px; text-align: center; }

.tas-mode { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--tas-line); background: #fff4f4; font-size: 13px; color: var(--tas-red); }
.tas-mode[hidden] { display: none; }
.tas-mode button { margin: 0; padding: 0; border: 0; background: none; color: #000; font-size: 13px !important; text-decoration: underline; cursor: pointer; }

.tas-input { display: flex; align-items: flex-end; gap: 8px; margin: 0; padding: 10px 12px; border-top: 1px solid #000; background: #fff; }
.tas-input textarea { flex: 1; min-height: 44px; max-height: 120px; margin: 0; padding: 11px 12px; border: 1px solid #bdbdbd; border-radius: 0; background: #fff; color: #000; font: 16px/1.35 Figtree, "Helvetica Neue", Arial, sans-serif; resize: none; box-shadow: none; }
.tas-input textarea:focus { border-color: #000; outline: none; }
.tas-input button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--tas-red); color: #fff; cursor: pointer; }
.tas-input button:hover { background: var(--tas-red-d); }
.tas-input button svg { width: 22px; height: 22px; }
.tas-foot { padding: 0 12px 10px !important; background: #fff; color: var(--tas-muted); font-size: 11.5px; line-height: 1.4; }
.tas-foot a, .tas-foot button { margin: 0; padding: 0; border: 0; background: none; color: var(--tas-muted) !important; font-size: 11.5px !important; text-decoration: underline; cursor: pointer; }
.tas-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 600px) {
	body:not(:has(.tb-mcta.is-on)) #go-to-top { right: 18px !important; bottom: calc(78px + env(safe-area-inset-bottom)) !important; }
	body:has(.tb-mcta.is-on) #go-to-top { right: 18px !important; bottom: calc(146px + env(safe-area-inset-bottom)) !important; }
	.tas-launch { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 54px; height: 54px; }
	.tas-panel { inset: 0; top: var(--tas-top, 0); bottom: auto; width: 100%; height: 100%; height: var(--tas-vh, 100dvh); border: 0; box-shadow: none; padding-bottom: env(safe-area-inset-bottom); overscroll-behavior: contain; }
	.tas-head { padding-top: calc(12px + env(safe-area-inset-top)); }
	.tas-panel.is-kb { padding-bottom: 0; }
	.tas-cards, .tas-actions { width: 100%; }
	.tas-bubble { max-width: 92%; }
	html.tas-open, html.tas-open body { overflow: hidden; }
}
@media (max-width: 360px) { .tas-2 { grid-template-columns: 1fr; } }
.tas-pays { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.tas-pays legend { margin: 0 0 2px; padding: 0; font-size: 13px; color: var(--tas-muted); }
