/* Frag Dana – DERMAMEDICAL Chat im Look der Website (Poppins, Schwarz, Beige #F2EEE9) */
.fdsh{--fdsh-b:24px;position:fixed;right:24px;bottom:var(--fdsh-b);z-index:99989;font-family:Poppins,"Helvetica Neue",Arial,sans-serif;color:#000;transition:bottom .25s}
.fdsh.is-open{z-index:1000001}
.fdsh *{box-sizing:border-box}
.fdsh-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Runder Button mit Danas Foto */
.fdsh-btn,.fdsh-btn:hover,.fdsh-btn:focus{all:unset;box-sizing:border-box;position:relative;display:block;width:68px;height:68px;border-radius:50%!important;cursor:pointer;background:#F2EEE9!important;border:3px solid #fff!important;box-shadow:0 10px 30px rgba(0,0,0,.28)!important;transform:scale(.6);opacity:0;transition:transform .35s cubic-bezier(.2,.7,.2,1),opacity .3s}
.fdsh.is-in .fdsh-btn{transform:scale(1);opacity:1}
.fdsh-btn:hover{transform:scale(1.06)!important}
.fdsh-btn:focus-visible{outline:3px solid #0B57D0!important;outline-offset:3px}
.fdsh-btn img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
.fdsh-badge{position:absolute;left:-3px;bottom:-1px;width:24px;height:24px;border-radius:50%;background:#000;color:#fff;border:2px solid #fff;display:flex;align-items:center;justify-content:center}
.fdsh.is-open .fdsh-badge{display:none}

/* Sprechblase „Frag Dana“ */
.fdsh-bubble{position:absolute;right:82px;bottom:16px;background:#fff;color:#000;border:1.5px solid #000;border-radius:20px 20px 4px 20px;padding:10px 36px 10px 18px;white-space:nowrap;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.16);font-family:Poppins,"Helvetica Neue",Arial,sans-serif;font-size:17px;font-weight:600;line-height:1.1;letter-spacing:.01em;opacity:0;transform:translateX(10px);transition:opacity .3s,transform .3s}
.fdsh-bubble.is-in{opacity:1;transform:none;animation:fdshWiggle 1.2s ease-in-out .4s 2}
.fdsh-bubble[hidden]{display:none}
.fdsh-bubble-x,.fdsh-bubble-x:hover,.fdsh-bubble-x:focus{all:unset;position:absolute;right:9px;top:50%;transform:translateY(-50%);width:20px;height:20px;line-height:20px;text-align:center;font-size:18px;color:#6B7280!important;cursor:pointer;background:transparent!important}
@keyframes fdshWiggle{0%,100%{transform:none}25%{transform:rotate(-3deg)}75%{transform:rotate(3deg)}}

/* Panel */
.fdsh-panel{position:absolute;right:0;bottom:84px;width:390px;max-width:calc(100vw - 32px);height:min(640px,calc(100vh - var(--fdsh-b) - 110px));display:flex;flex-direction:column;background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.25);border:1.5px solid #000;opacity:0;transform:translateY(14px) scale(.98);transform-origin:bottom right;transition:opacity .22s,transform .25s cubic-bezier(.2,.7,.2,1)}
.fdsh-panel.is-open{opacity:1;transform:none}
.fdsh-panel[hidden]{display:none}
.admin-bar .fdsh-panel{height:min(640px,calc(100vh - var(--fdsh-b) - 142px))}
.fdsh-head{display:flex;align-items:center;gap:10px;background:#000;color:#fff;padding:12px 8px 12px 14px;flex:0 0 auto}
.fdsh-head img{width:42px;height:42px;border-radius:50%;border:2px solid #F2EEE9;flex:0 0 42px;object-fit:cover}
.fdsh-head-t{flex:1;min-width:0}
.fdsh-title{min-width:0;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:15.5px;line-height:1.2;font-weight:600;letter-spacing:.07em;color:#fff}
.fdsh-sub{font-size:12px;line-height:1.3;color:#cfcfcf;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fdsh-x,.fdsh-restart,.fdsh-x:hover,.fdsh-restart:hover,.fdsh-x:focus,.fdsh-restart:focus{all:unset;box-sizing:border-box;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff!important;background:transparent!important;font-size:26px;line-height:1;flex:0 0 34px}
.fdsh-x:hover,.fdsh-restart:hover{background:#2a2a2a!important}
.fdsh-x:focus-visible,.fdsh-restart:focus-visible{outline:3px solid #F2EEE9;outline-offset:1px}

.fdsh-list{position:relative;flex:1;min-width:0;overflow-x:hidden;overflow-y:auto;padding:18px 14px 18px;background:#F2EEE9;scroll-behavior:smooth;overscroll-behavior:contain}
.fdsh-row{min-width:0;max-width:100%;display:flex;gap:8px;align-items:flex-end;margin:0 0 10px}
.fdsh-av{width:30px;height:30px;border-radius:50%;flex:0 0 30px;object-fit:cover}
.fdsh-msg{max-width:86%;background:#fff;border-radius:18px 18px 18px 4px;padding:11px 14px;font-size:14.5px;line-height:1.55;color:#000;box-shadow:0 1px 2px rgba(0,0,0,.06);animation:fdshIn .25s ease-out;min-width:0;overflow-wrap:anywhere!important;word-break:break-word!important;hyphens:auto}
.fdsh-msg p{margin:0 0 8px}.fdsh-msg p:last-child{margin:0}
.fdsh-msg ul,.fdsh-msg ol{margin:4px 0 6px 18px;padding:0}.fdsh-msg li{margin:0 0 3px}
.fdsh-msg strong{font-weight:600}
.fdsh-msg a{color:#000;text-decoration:underline;text-underline-offset:2px}
.fdsh-user{justify-content:flex-end}
.fdsh-user .fdsh-msg{background:#000;color:#fff;border-radius:18px 18px 4px 18px}
@keyframes fdshIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.fdsh-typing .fdsh-msg{display:flex;gap:5px;padding:14px 16px}
.fdsh-typing span{width:7px;height:7px;border-radius:50%;background:#9a948c;animation:fdshDot 1s infinite}
.fdsh-typing span:nth-child(2){animation-delay:.15s}.fdsh-typing span:nth-child(3){animation-delay:.3s}
@keyframes fdshDot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}

/* Antwortknöpfe */
.fdsh-opts{display:flex;flex-wrap:wrap;gap:7px;margin:2px 0 14px 38px;max-width:calc(100% - 38px);min-width:0}
.fdsh-opt,.fdsh-opt:focus{all:unset;box-sizing:border-box;cursor:pointer;background:#fff!important;color:#000!important;border:1.5px solid #000!important;border-radius:20px;padding:8px 14px;font-family:Poppins,"Helvetica Neue",Arial,sans-serif;font-size:13.5px;line-height:1.3;font-weight:500;text-align:left;max-width:100%;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;transition:background .15s,color .15s}
.fdsh-opt:hover{background:#000!important;color:#fff!important}
.fdsh-opt:focus-visible{outline:3px solid #0B57D0;outline-offset:2px}
.fdsh-opts.is-used{display:none}
.fdsh-cta,.fdsh-cta:hover{display:inline-block;background:#000!important;color:#fff!important;text-decoration:none!important;border-radius:94px;padding:9px 18px;font-size:14px;font-weight:500;letter-spacing:.02em}
.fdsh-cta:hover{background:#333!important}
.fdsh-tel{list-style:none!important;margin:6px 0 0!important;padding:0!important}
.fdsh-tel li{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 7px!important}
.fdsh-tel li span{font-weight:600;font-size:13.5px}

/* Suchfeld */
.fdsh-ask{min-width:0;display:flex;gap:8px;align-items:center;padding:10px 12px 6px;background:#fff;border-top:1px solid #e6e1d9;flex:0 0 auto;margin:0}
.fdsh-ask input[type=text]{flex:1;min-width:0;display:block!important;width:auto!important;max-width:none!important;background:#fff!important;background-image:none!important;color:#000!important;border:1.5px solid #000!important;border-radius:24px!important;padding:10px 16px!important;font:inherit!important;font-size:15px!important;line-height:1.3!important;height:auto!important;margin:0!important;box-shadow:none!important;-webkit-appearance:none;appearance:none}
.fdsh-ask input::placeholder{color:#7a746c!important;opacity:1}
.fdsh-ask input:focus{outline:3px solid #0B57D0!important;outline-offset:1px!important}
.fdsh-go,.fdsh-go:hover,.fdsh-go:focus{all:unset;box-sizing:border-box;flex:0 0 42px;width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;background:#000!important;color:#fff!important}
.fdsh-go:hover{background:#333!important}
.fdsh-go:focus-visible{outline:3px solid #0B57D0;outline-offset:2px}
.fdsh-note{background:#fff;color:#6b665f;font-size:11px;line-height:1.3;text-align:center;padding:2px 12px 9px;flex:0 0 auto}

/* Formular (nur wenn Kurzanfrage aktiv) */
.fdsh-formrow .fdsh-msg{max-width:100%;flex:1}
.fdsh-form{margin:8px 0 0}
.fdsh-form label{display:block;font-weight:600;font-size:13.5px;margin:10px 0 4px}
.fdsh-form label em{font-weight:400;font-style:normal;color:#6B7280}
.fdsh-form input[type=text],.fdsh-form input[type=email],.fdsh-form input[type=tel],.fdsh-form textarea{display:block!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;background:#fff!important;background-image:none!important;color:#000!important;border:1.5px solid #000!important;border-radius:12px!important;padding:10px 12px!important;font:inherit!important;font-size:16px!important;line-height:1.3!important;height:auto!important;margin:0!important;box-shadow:none!important;-webkit-appearance:none;appearance:none}
.fdsh-form textarea{resize:vertical;min-height:90px}
.fdsh-form input:focus,.fdsh-form textarea:focus{outline:3px solid #0B57D0!important;outline-offset:1px!important}
.fdsh-form [aria-invalid="true"]{border-color:#B42318!important}
.fdsh-form .fdsh-check{display:flex;gap:8px;align-items:flex-start;font-weight:400;font-size:13px;line-height:1.4;margin:12px 0 0;cursor:pointer}
.fdsh-check input{width:18px;height:18px;flex:0 0 18px;margin:1px 0 0;accent-color:#000}
.fdsh-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.fdsh-ts{margin-top:12px;min-height:65px}
.fdsh-send,.fdsh-send:focus{all:unset;box-sizing:border-box;display:block;width:100%;text-align:center;margin-top:12px;cursor:pointer;background:#000!important;color:#fff!important;border:1.5px solid #000!important;border-radius:94px;padding:12px 18px;font-size:15px;font-weight:500;letter-spacing:.02em}
.fdsh-send:hover{background:#fff!important;color:#000!important}
.fdsh-send[disabled]{opacity:.6;cursor:wait}
.fdsh-fmsg{font-size:13.5px;margin-top:8px}
.fdsh-fmsg.is-err{color:#B42318;font-weight:600}

.fdsh-prev{display:inline-block;flex:0 0 auto;background:#F2EEE9;color:#000;border-radius:10px;padding:2px 7px;font:600 10px/1.3 Poppins,Arial,sans-serif;letter-spacing:.04em}

/* Handy: Chat als Sheet von unten */
@media (max-width:767px){
	.fdsh{right:16px;bottom:var(--fdsh-b,16px)}
	.fdsh.fdsh-no-mobile{display:none}
	.fdsh-btn,.fdsh-btn:hover{width:60px;height:60px;border-width:2px!important}
	.fdsh-badge{width:21px;height:21px}
	.fdsh-bubble{right:72px;bottom:13px;font-size:15px;padding:9px 32px 9px 14px;border-radius:18px 18px 4px 18px}
	.fdsh-panel{position:fixed;left:0;right:0;bottom:0;top:auto;width:100%;max-width:100vw;height:90vh;height:90dvh;border-radius:22px 22px 0 0;border:0;border-top:1.5px solid #000;transform:translateY(30px);transform-origin:bottom center}
	.admin-bar .fdsh-panel{height:90vh;height:90dvh}
	.fdsh.is-open .fdsh-btn,.fdsh.is-open .fdsh-btn:hover{opacity:0;pointer-events:none}
	.fdsh.is-open .fdsh-bubble{display:none}
	html.fdsh-lock,html.fdsh-lock body{overflow:hidden}
	.fdsh-msg{font-size:15px}
	.fdsh-ask input[type=text]{font-size:16px!important}
	.fdsh-head{padding:10px 6px 10px 12px;gap:8px}
	.fdsh-title{font-size:14.5px;letter-spacing:.05em}
	.fdsh-ask{padding-bottom:4px}
	.fdsh-note{padding-bottom:max(9px,env(safe-area-inset-bottom))}
}
@media (min-width:768px){.fdsh.fdsh-no-desktop{display:none}}
@media (prefers-reduced-motion:reduce){.fdsh-btn,.fdsh-panel,.fdsh-bubble,.fdsh-msg,.fdsh{transition:none;animation:none}}
