/* Nordblick24 – KI-Chat (2026-10-15). Fenster unten rechts, auf dem Handy bildschirmfüllend.
   Farben fest (weiß/Nachtblau), damit es im Tag- und Nachtmodus gleich gut lesbar ist. */
.nbc-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 120;
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #2f86d4, #1f6fb5); color: #fff; font: 600 .95rem/1 Inter, system-ui, sans-serif; letter-spacing: .01em;
  box-shadow: 0 10px 28px rgba(16, 32, 56, .38); transition: transform .25s cubic-bezier(.22, .61, .36, 1), box-shadow .25s;
}
.nbc-launch:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(16, 32, 56, .45); }
.nbc-launch:focus-visible { outline: 3px solid #8fc4f0; outline-offset: 3px; }
.nbc-launch svg { width: 24px; height: 24px; flex: none; }
.nbc-launch[aria-expanded="true"] { opacity: 0; pointer-events: none; transform: scale(.9); }
@media (max-width: 640px) { .nbc-launch { right: 14px; bottom: 14px; width: 56px; padding: 0; justify-content: center; } .nbc-launch span { display: none; } }

.nbc-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 130; width: min(390px, calc(100vw - 40px)); height: min(600px, calc(100vh - 120px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; color: #1b2430;
  font: 400 .95rem/1.5 Inter, system-ui, sans-serif; box-shadow: 0 24px 70px rgba(10, 20, 36, .45);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98); transform-origin: 100% 100%;
  transition: opacity .25s, transform .3s cubic-bezier(.22, .61, .36, 1), visibility 0s linear .3s;
}
.nbc-panel.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s cubic-bezier(.22, .61, .36, 1); }
@media (max-width: 640px) {
  .nbc-panel { right: 0; bottom: auto; top: 0; width: 100%; height: 100dvh; border-radius: 0; transform: translateY(20px); }
  body.nbc-lock { overflow: hidden; }
}
.nbc-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; background: #182230; color: #fff; flex: none; }
.nbc-ava { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; background: linear-gradient(135deg, #4a9be0, #1f6fb5); }
.nbc-ava svg { width: 20px; height: 20px; }
.nbc-title { flex: 1; min-width: 0; }
.nbc-title b { display: block; font: 700 1rem/1.2 Manrope, Inter, sans-serif; }
.nbc-title small { display: block; font-size: .78rem; color: #aab6c4; }
.nbc-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nbc-x:hover { background: rgba(255, 255, 255, .16); }
.nbc-x svg { width: 20px; height: 20px; }

.nbc-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; background: #f4f6f9; }
.nbc-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; white-space: pre-line; overflow-wrap: anywhere; }
.nbc-msg--bot { align-self: flex-start; background: #fff; border: 1px solid #e3e8ef; border-bottom-left-radius: 6px; }
.nbc-msg--me { align-self: flex-end; background: #1f6fb5; color: #fff; border-bottom-right-radius: 6px; }
.nbc-msg--err { align-self: flex-start; background: #fff4e5; border: 1px solid #f3d3a5; color: #6b4a12; }
.nbc-msg a { color: #1f6fb5; font-weight: 600; }
.nbc-msg--me a { color: #fff; }
.nbc-typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; background: #fff; border: 1px solid #e3e8ef; border-radius: 16px; border-bottom-left-radius: 6px; }
.nbc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8a97a6; animation: nbc-dot 1s infinite ease-in-out; }
.nbc-typing i:nth-child(2) { animation-delay: .15s; } .nbc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes nbc-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }

.nbc-intro { padding: 16px; border-radius: 16px; background: #fff; border: 1px solid #e3e8ef; }
.nbc-intro p + p { margin-top: 10px; }
.nbc-note { font-size: .8rem; color: #5b6875; }
.nbc-note a { color: #1f6fb5; }
.nbc-start { margin-top: 14px; width: 100%; height: 46px; border: 0; border-radius: 12px; background: #1f6fb5; color: #fff; font: 600 .95rem Inter, sans-serif; cursor: pointer; }
.nbc-start:hover { background: #1a5f9c; }
.nbc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 2px; }
.nbc-chip { padding: 8px 12px; border-radius: 999px; border: 1px solid #c9d6e5; background: #fff; color: #1f6fb5; font: 500 .84rem Inter, sans-serif; cursor: pointer; text-align: left; }
.nbc-chip:hover { border-color: #1f6fb5; background: #eef5fc; }

.nbc-form { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #e3e8ef; background: #fff; }
.nbc-input { flex: 1; min-height: 44px; max-height: 120px; resize: none; overflow-y: hidden; padding: 11px 14px; border-radius: 14px; border: 1px solid #c9d3de; font: 400 16px/1.4 Inter, sans-serif; color: #1b2430; background: #fff; }
.nbc-input:focus { outline: none; border-color: #1f6fb5; box-shadow: 0 0 0 3px rgba(31, 111, 181, .15); }
.nbc-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: #1f6fb5; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nbc-send:disabled { background: #b8c4d1; cursor: default; }
.nbc-send svg { width: 20px; height: 20px; }
.nbc-foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 0 14px 10px; background: #fff; font-size: .74rem; color: #6b7785; }
.nbc-foot a { color: #1f6fb5; font-weight: 600; text-decoration: none; }
.nbc-foot a + a { margin-left: 10px; }
.nbc-hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) { .nbc-panel, .nbc-launch { transition: none; } .nbc-typing i { animation: none; } }
