/* ===== Avatar-Guide (Louis & Nils) ===== */
.guide { position: fixed; left: 20px; bottom: 20px; z-index: 1500; display: flex; align-items: flex-end; gap: 12px; max-width: 360px; opacity: 0; transform: translateY(18px) scale(.98); pointer-events: none; transition: opacity .45s cubic-bezier(.22,.61,.36,1), transform .45s cubic-bezier(.22,.61,.36,1); }
.guide.show { opacity: 1; transform: none; }
.guide-bubble, .guide-av, .guide-x, .guide-btn { pointer-events: auto; }
.guide-av { width: 62px; height: 62px; border-radius: 50%; background: #f5f5f7; object-fit: cover; flex-shrink: 0; box-shadow: 0 6px 18px rgba(0,0,0,.16); cursor: pointer; position: relative; z-index: 1; }
.guide-av-2 { display: none; width: 46px; height: 46px; border-radius: 50%; background: #f5f5f7; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,.16); border: 2px solid #ffffff; position: absolute; left: -16px; bottom: -4px; z-index: 0; }
.guide.duo .guide-av-2 { display: block; }
.guide-bubble { position: relative; background: #ffffff; border-radius: 18px; padding: 13px 30px 12px 16px; box-shadow: 0 14px 40px rgba(0,0,0,.17); }
.guide-bubble::before { content: ""; position: absolute; left: -7px; bottom: 16px; width: 14px; height: 14px; background: #ffffff; transform: rotate(45deg); border-radius: 3px; box-shadow: -3px 3px 8px rgba(0,0,0,.05); }
.guide-name { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #f07d00 !important; margin-bottom: 4px; font-family: 'Geist Mono', 'Geist', monospace; }
.guide-text { font-size: 13.5px; line-height: 1.5; color: #1d1d1f !important; }
.guide-hint { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: #c7c7cc; margin-top: 8px; }
.guide-x { position: absolute; top: 5px; right: 8px; border: 0 !important; background: none !important; box-shadow: none !important; font-size: 17px !important; line-height: 1 !important; color: #86868b !important; cursor: pointer; padding: 2px !important; }
.guide-x:hover { color: #1d1d1f !important; }
.guide-av { animation: guideBreathe 4.5s ease-in-out infinite, guideWink 8s ease-in-out infinite; }
@keyframes guideBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (max-width: 620px) {
  .guide { left: 12px; right: 12px; bottom: 12px; max-width: none; gap: 10px; }
  .guide-av { width: 52px; height: 52px; }
  .guide-av-2 { width: 38px; height: 38px; left: -13px; }
  .guide-text { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .guide { transition: opacity .2s; transform: none; }
  .guide-av { animation: none; }
}

/* Guide-Launcher (Wieder-Ausklappen) */
.guide-launcher { position: fixed; left: 20px; bottom: 20px; z-index: 1500; width: 56px; height: 56px; border-radius: 50%; border: 0; padding: 0; background: #ffffff; box-shadow: 0 8px 24px rgba(0,0,0,.18); cursor: pointer; animation: guideBob 3.2s ease-in-out infinite; }
.guide-launcher img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #f5f5f7; display: block; }
.guide-launcher-dot { position: absolute; top: -2px; right: -2px; width: 14px; height: 14px; border-radius: 50%; background: #f07d00 !important; border: 2px solid #ffffff; }
.guide-launcher[hidden] { display: none; }
@media (max-width: 620px) { .guide-launcher { left: 12px; bottom: 12px; width: 50px; height: 50px; } }
@media (prefers-reduced-motion: reduce) { .guide-launcher { animation: none; } }

/* ===== Guide: Sprechen & Center-Stage ===== */
.guide-avwrap { position: relative; flex-shrink: 0; align-self: flex-end; }
.guide-av { transform-origin: center bottom; }
.guide.talking .guide-av { animation: guideTalk .18s ease-in-out infinite alternate; }
@keyframes guideTalk { 0% { transform: scaleY(.975); } 100% { transform: scaleY(1.045) translateY(-1px); } }

/* Sprech-Wellen-Indikator */
.guide-wave { position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); display: none; gap: 2.5px; align-items: flex-end; height: 14px; padding: 3px 6px; background: #111113; border-radius: 9px; box-shadow: 0 3px 10px rgba(0,0,0,.22); }
.guide.talking .guide-wave { display: flex; }
.guide-wave i { width: 2.5px; height: 4px; background: #f07d00 !important; border-radius: 2px; animation: guideWave .5s ease-in-out infinite; }
.guide-wave i:nth-child(2) { animation-delay: .15s; }
.guide-wave i:nth-child(3) { animation-delay: .3s; }
@keyframes guideWave { 0%,100% { height: 4px; } 50% { height: 11px; } }

/* Center-Stage */
.guide-backdrop { position: fixed; inset: 0; background: rgba(10,10,12,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); z-index: 1490; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.guide-backdrop.show { opacity: 1; pointer-events: auto; }
.guide.center { left: 50%; top: 50%; right: auto; bottom: auto; max-width: min(460px, 92vw); transform: translate(-50%, -46%) scale(.96); }
.guide.center.show { transform: translate(-50%, -50%) scale(1); }
.guide.center .guide-av { width: 96px; height: 96px; }
.guide.center .guide-bubble { padding: 18px 34px 18px 20px; border-radius: 22px; }
.guide.center .guide-text { font-size: 16px; line-height: 1.55; }
.guide.center .guide-name { font-size: 11.5px; }
@media (max-width: 620px) {
  .guide.center .guide-av { width: 74px; height: 74px; }
  .guide.center .guide-text { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .guide.talking .guide-av { animation: none; }
  .guide-wave i { animation: none; height: 7px; }
  .guide-backdrop { transition: none; }
}

/* Guide: lebendig + Vorschlags-Buttons */
@keyframes guideBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes guideWink { 0%,86%,100% { transform: rotate(0) scale(1); } 90% { transform: rotate(-7deg) scale(1.04); } 94% { transform: rotate(4deg) scale(1.02); } }
.guide-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.guide-actions:empty { display: none; }
.guide-btn { display: inline-flex; align-items: center; gap: 6px; background: #111113 !important; color: #ffffff !important; border: 0 !important; border-radius: 980px !important; padding: 8px 15px !important; font-size: 12.5px !important; font-weight: 600 !important; line-height: 1.4 !important; text-decoration: none !important; box-shadow: none !important; cursor: pointer; transition: transform .15s, background .15s; }
.guide-btn:hover, .guide-btn:focus { transform: translateY(-1px); background: #2c2c2e !important; color: #ffffff !important; }
.guide-btn::after { content: "→"; }
.guide-btn.guide-qr::after { content: none; }
@media (prefers-reduced-motion: reduce) { .guide-av { animation: none; } }

/* Guide: sanfter Auftritt beim Öffnen (Einblenden + kleiner Pop + Winken) */
@keyframes guideIntro {
  0%   { opacity: 0; transform: translateY(26px) scale(.9); }
  60%  { opacity: 1; transform: translateY(-4px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes guideHi {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-13deg); }
  40% { transform: rotate(9deg); }
  60% { transform: rotate(-6deg); }
  80% { transform: rotate(3deg); }
}
.guide.intro.show { animation: guideIntro .6s cubic-bezier(.22,.61,.36,1); }
.guide.intro .guide-av { animation: guideHi .9s ease-in-out .25s 1, guideBreathe 4.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .guide.intro.show { animation: none; }
  .guide.intro .guide-av { animation: none; }
}

/* Guide: KI-Frage-Feld */
.guide-ask { display: flex; gap: 6px; margin-top: 11px; }
.guide-ask-in { flex: 1; min-width: 0; border: 1px solid #d2d2d7 !important; border-radius: 980px !important; padding: 7px 13px !important; font-size: 12.5px !important; color: #1d1d1f !important; outline: none !important; background: #ffffff !important; box-shadow: none !important; margin: 0 !important; height: auto !important; }
.guide-ask-in:focus { border-color: #111113 !important; box-shadow: none !important; }
.guide-ask-send { flex-shrink: 0; width: 30px !important; height: 30px !important; border: 0 !important; border-radius: 50% !important; background: #111113 !important; color: #ffffff !important; cursor: pointer; font-size: 15px !important; line-height: 1 !important; padding: 0 !important; box-shadow: none !important; transition: background .15s ease; }
.guide-ask-send:hover, .guide-ask-send:focus { background: #2c2c2e !important; color: #ffffff !important; }
.guide-ask-note { margin-top: 6px; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #c7c7cc; font-family: 'Geist Mono', 'Geist', monospace; }
