/* ═══════════ Emrah – Reiseassistent ═══════════ */
.emrah { --em-ink: #1D1D1F; --em-muted: #6E6E73; --em-blue: #0A84FF; --em-sky: #5AC8FA; --em-ease: cubic-bezier(.2,.8,.2,1); --em-spring: cubic-bezier(.34,1.56,.64,1); font: 15px/1.5 inherit; }
.emrah, .emrah * { box-sizing: border-box; }
/* WhatsApp-Button sitzt über Emrah */
.fab-wa { bottom: calc(max(18px, env(safe-area-inset-bottom)) + 82px) !important; width: 52px !important; height: 52px !important; }

.emrah-launcher { position: fixed; z-index: 61; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 68px; height: 68px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: conic-gradient(from 210deg, #5AC8FA, #0A84FF, #F5C451, #5AC8FA); box-shadow: 0 16px 34px -12px rgba(10,132,255,.55), 0 4px 14px rgba(0,0,0,.14); opacity: 0; translate: 0 24px; scale: .8; transition: opacity .4s var(--em-ease), translate .6s var(--em-spring), scale .6s var(--em-spring), box-shadow .3s; }
.emrah.is-ready .emrah-launcher { opacity: 1; translate: 0 0; scale: 1; }
.emrah-launcher:hover { scale: 1.06; }
.emrah-launcher:focus-visible { outline: 3px solid #0A84FF; outline-offset: 3px; }
.emrah-launcher-img { position: absolute; inset: 3px; border-radius: 999px; overflow: hidden; background: #fff; border: 2px solid #fff; }
.emrah-launcher-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.emrah-launcher::before { content: ""; position: absolute; inset: -6px; border-radius: 999px; border: 2px solid rgba(10,132,255,.35); animation: emrah-pulse 2.8s var(--em-ease) infinite; pointer-events: none; }
.emrah.is-open .emrah-launcher::before { animation: none; opacity: 0; }
@keyframes emrah-pulse { 0% { transform: scale(.92); opacity: .9; } 70%, 100% { transform: scale(1.25); opacity: 0; } }
.emrah-online { position: absolute; right: 3px; bottom: 4px; width: 15px; height: 15px; border-radius: 999px; background: #34C759; border: 3px solid #fff; }
.emrah-launcher-label { position: absolute; right: calc(100% + 12px); top: 50%; translate: 6px -50%; padding: 9px 14px; border-radius: 999px; background: var(--em-ink); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s, translate .3s var(--em-ease); }
.emrah-launcher:hover .emrah-launcher-label { opacity: 1; translate: 0 -50%; }
.emrah.is-open .emrah-launcher-label { display: none; }

.emrah-teaser { position: fixed; z-index: 61; right: calc(max(16px, env(safe-area-inset-right)) + 80px); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 14px); max-width: min(270px, calc(100vw - 120px)); padding: 12px 34px 12px 16px; border-radius: 18px 18px 6px 18px; background: #fff; color: var(--em-ink); font-size: 14px; font-weight: 600; line-height: 1.4; box-shadow: 0 18px 40px -18px rgba(15,23,42,.45), 0 0 0 1px rgba(0,0,0,.05); cursor: pointer; opacity: 0; translate: 10px 6px; scale: .96; transform-origin: bottom right; transition: opacity .35s var(--em-ease), translate .5s var(--em-spring), scale .5s var(--em-spring); }
.emrah-teaser.is-in { opacity: 1; translate: 0 0; scale: 1; }
.emrah-teaser-x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: 0; border-radius: 999px; background: #F2F2F7; color: var(--em-muted); font-size: 16px; line-height: 1; cursor: pointer; }

.emrah-panel { position: fixed; z-index: 62; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 82px); width: 390px; height: min(640px, calc(100dvh - 120px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: 0 40px 80px -30px rgba(15,23,42,.5), 0 0 0 1px rgba(0,0,0,.06); color: var(--em-ink); opacity: 0; translate: 0 18px; scale: .96; transform-origin: bottom right; transition: opacity .25s var(--em-ease), translate .45s var(--em-spring), scale .45s var(--em-spring); }
.emrah.is-open .emrah-panel { opacity: 1; translate: 0 0; scale: 1; }
.emrah-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; background: linear-gradient(135deg, #0B1B33, #0A3D7A 60%, #0A84FF); color: #fff; }
.emrah-head-img { position: relative; flex: none; width: 46px; height: 46px; border-radius: 999px; overflow: hidden; border: 2px solid rgba(255,255,255,.85); background: #fff; }
.emrah-head-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.emrah-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.emrah-head-text strong { font-size: 17px; font-weight: 800; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 7px; }
.emrah-head-text strong::after { content: ""; width: 8px; height: 8px; border-radius: 99px; background: #34C759; box-shadow: 0 0 0 3px rgba(52,199,89,.25); }
.emrah-head-text small { font-size: 12px; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emrah-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background .2s; }
.emrah-icon:hover { background: rgba(255,255,255,.24); }

.emrah-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 14px 8px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(180deg, #F5F8FC, #FFFFFF 140px); }
.emrah-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.emrah-msg.is-new { animation: emrah-in .45s var(--em-spring) both; }
@keyframes emrah-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.emrah-msg--user { justify-content: flex-end; animation: emrah-in .35s var(--em-ease) both; }
.emrah-msg-img { flex: none; width: 28px; height: 28px; border-radius: 999px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.emrah-msg-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.emrah-msg-body { min-width: 0; max-width: calc(100% - 40px); display: flex; flex-direction: column; gap: 8px; }
.emrah-bubble { padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 0 0 1px rgba(0,0,0,.05); font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.emrah-bubble a { color: #0A66C2; text-decoration: underline; }
.emrah-msg--user .emrah-bubble { max-width: 82%; border-radius: 18px 18px 6px 18px; background: linear-gradient(135deg, #0A84FF, #0A66D9); color: #fff; box-shadow: none; }
.emrah-typing .emrah-bubble { display: inline-flex; gap: 5px; padding: 14px 16px; }
.emrah-typing i { width: 7px; height: 7px; border-radius: 99px; background: #A1A1AA; animation: emrah-dot 1.2s infinite ease-in-out; }
.emrah-typing i:nth-child(2) { animation-delay: .15s; } .emrah-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes emrah-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.emrah-cards { display: grid; gap: 6px; }
.emrah-card { display: block; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid rgba(10,132,255,.18); color: var(--em-ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.emrah-card:hover { border-color: #0A84FF; transform: translateX(2px); }
.emrah-card strong { display: block; font-size: 13.5px; line-height: 1.35; }
.emrah-card span { display: block; margin-top: 2px; font-size: 12px; color: var(--em-muted); line-height: 1.35; }
.emrah-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.emrah-act { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #EEF5FF; color: #0A5BC4; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .2s; }
.emrah-act:hover { background: #DCEBFF; }
.emrah-act--wa { background: #E9F9EF; color: #13853E; }
.emrah-act--wa:hover { background: #D5F3E0; }
.emrah-act--wa svg { fill: currentColor; }

.emrah-chips { display: flex; gap: 6px; padding: 8px 14px 4px; overflow-x: auto; scrollbar-width: none; }
.emrah-chips::-webkit-scrollbar { display: none; }
.emrah-chips[hidden] { display: none; }
.emrah-chip { flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(0,0,0,.1); background: #fff; color: var(--em-ink); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s; }
.emrah-chip:hover { border-color: #0A84FF; background: #F3F8FF; }
.emrah-form { display: flex; gap: 8px; align-items: center; padding: 10px 12px 6px; }
.emrah-input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(0,0,0,.1); background: #F5F5F7; color: var(--em-ink); font: inherit; font-size: 16px; outline: none; transition: border-color .2s, background .2s, box-shadow .2s; }
.emrah-input:focus { border-color: #0A84FF; background: #fff; box-shadow: 0 0 0 4px rgba(10,132,255,.15); }
.emrah-send { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #0A84FF, #0A66D9); color: #fff; cursor: pointer; transition: transform .2s var(--em-spring); }
.emrah-send:hover { transform: scale(1.06); }
.emrah-note { margin: 0; padding: 2px 16px 12px; font-size: 11px; line-height: 1.4; color: var(--em-muted); text-align: center; }

@media (max-width: 639.98px) {
  .emrah-launcher { width: 60px; height: 60px; }
  .fab-wa { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 72px) !important; width: 48px !important; height: 48px !important; }
  .emrah-teaser { right: calc(max(16px, env(safe-area-inset-right)) + 70px); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 10px); }
  .emrah-panel { left: 8px; right: 8px; bottom: 8px; top: max(8px, env(safe-area-inset-top)); width: auto; height: auto; border-radius: 24px; }
  .emrah.is-open .emrah-launcher { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .emrah-launcher, .emrah-panel, .emrah-teaser, .emrah-msg { transition: none !important; animation: none !important; }
  .emrah-launcher::before { animation: none; }
}
@media print { .emrah { display: none; } }
