 .ki-agent-one .chatbot-container {
position: fixed;
bottom: 30px;
right: 30px;
z-index: 9999;
pointer-events: all;
}

.ki-agent-one .chatbot-toggle {
width: 60px;
height: 60px;
background: linear-gradient(45deg, #00d4ff, #0099cc);
border-radius: 50%;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
color: white;
box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
transition: all 0.3s ease;
}

.ki-agent-one .chatbot-toggle:hover {
transform: scale(1.12);
box-shadow: 0 0 18px rgba(0, 212, 255, 0.8), 0 0 32px rgba(0, 212, 255, 0.5);
background: linear-gradient(45deg, #00e0ff, #00aaff);
}

.ki-agent-one .chatbot-window {
position: absolute;
bottom: 20px;
right: 20px;
width: 40vw;
height: 50vh;
min-height: 500px;
background: rgba(10, 10, 10, 0.95);
backdrop-filter: blur(20px);
border-radius: 20px;
display: none;
flex-direction: column;
overflow: hidden;
max-width: 95vw;
max-height: 95vh;
}


.ki-agent-one .chatbot-header {
background: linear-gradient(45deg, #004c80, #0077b6);
padding: 20px;
color: white;
font-weight: 600;
display: flex;
justify-content: space-between;
align-items: center;
}

.ki-agent-one .chatbot-close {
background: rgba(255, 255, 255, 0.2);
border: none;
color: white;
font-size: 20px;
cursor: pointer;
padding: 0;
width: 30px;
height: 30px;
border-radius: 50%;
transition: background 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
filter: invert(1);
}

.ki-agent-one .chatbot-messages {
flex: 1;
/*padding: 20px;*/
padding: 50px 25px 0 45px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 15px;
}

.ki-agent-one .chatbot-input-area {
padding: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
gap: 10px;
}

.ki-agent-one .chatbot-input {
flex: 1;
padding: 12px 15px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 25px;
color: #ffffff;
outline: none;
}

.ki-agent-one .chatbot-input:focus {
border-color: #00d4ff;
box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.ki-agent-one .chatbot-send {
background: linear-gradient(135deg, #004c80, #0077b6);
border: none;
color: white;
width: 48px;
height: 48px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ki-agent-one .chatbot-send:hover {
animation: subtleWobble 0.6s ease-in-out;
box-shadow: 0 12px 32px rgba(0, 136, 204, 0.6);
}

.ki-agent-one .message {
max-width: 80%;
padding: 12px 18px;
border-radius: 20px;
word-wrap: break-word;
}

.ki-agent-one .message.user {
background: linear-gradient(135deg, #004c80, #0077b6);
color: white;
align-self: flex-end;
border-bottom-right-radius: 5px;
font-size: 16px;
border: 0 solid black;
}

.ki-agent-one .message.bot {
color: #ffffff !important;
align-self: flex-start !important;
border-bottom-left-radius: 5px !important;
text-align: left !important;
line-height: 1.6 !important;
font-size: 16px !important;
background-color: transparent !important;
border: 0 solid black;
}


@media (max-width: 768px) {
.ki-agent-one .chatbot-window {
width: calc(100vw - 40px);
height: 70vh;
right: -10px;
}

.ki-agent-one .chatbot-container {
right: 20px;
bottom: 20px;
}
}

/* Responsive Design */
@media (max-width: 768px) {
.nav-links {
display: none;
}

.about-content {
grid-template-columns: 1fr;
gap: 40px;
}

.contact-info {
flex-direction: column;
align-items: center;
}

.services-grid {
grid-template-columns: 1fr;
}
}


.ki-agent-one .message.system {
background-color: #f0f0f0;
color: #444;
font-style: italic;
padding: 6px 10px;
border-radius: 4px;
margin-bottom: 6px;
}

/* Blue Glow Animation for .chatbot-window */
@keyframes blueGlow {
0% {
box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
}
50% {
box-shadow: 0 0 20px rgba(0, 170, 255, 0.7);
}
100% {
box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
}
}

.version-label {
font-size: 12px;
color: #ffffff;
margin-left: 8px;
font-weight: 400;
text-shadow: 0 0 4px rgba(0, 212, 255, 0.8);
opacity: 1;
}

.bot-avatar {
position: absolute;
top: -40px;
left: -35px;
width: 50px;
height: 50px;
border-radius: 50%;
border: 2px solid #00d4ff;
box-shadow:
0 0 12px rgba(0, 212, 255, 0.6),
0 0 24px rgba(0, 212, 255, 0.4),
inset 0 0 6px rgba(0, 212, 255, 0.3);
background-color: rgba(0, 212, 255, 0.05);
transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
margin: 10px;
opacity: 0.85;
}

.bot-avatar img{
    background-color: #fff;
}

img.bot-avatar {
    background-color: #fff;
}

.bot-avatar:hover {
transform: scale(1.05);
opacity: 1;
box-shadow:
0 0 16px rgba(0, 212, 255, 0.9),
0 0 32px rgba(0, 212, 255, 0.6),
inset 0 0 8px rgba(0, 212, 255, 0.4);
}

@media (max-width: 480px) {
.bot-avatar {
width: 50px;
height: 50px;
}
}

.ki-agent-one .message.bot {
display: flex;
align-items: flex-start;
gap: 12px;
padding-left: 27px;
position: relative;
min-width: 100%;
color: #ffffff;
}

.ki-agent-one #chatbotMessages > .message.bot > div > p {
color: #fff;/* hier deine Styles */
}
/* Glow-Effekt für Links in Bot-Nachrichten */
.ki-agent-one .message.bot a {
color: #00d4ff;
text-decoration: none;
font-weight: 500;
text-shadow: 0 0 6px rgba(0, 212, 255, 0.7);
transition: all 0.3s ease;
}

.ki-agent-one .message.bot a:hover {
color: #ffffff;
text-shadow: 0 0 10px rgba(0, 212, 255, 1);
}
@keyframes subtleWobble {
0%, 100% {
transform: scale(1.1) rotate(0deg);
}
20% {
transform: scale(1.1) rotate(5deg);
}
40% {
transform: scale(1.1) rotate(-4deg);
}
60% {
transform: scale(1.1) rotate(3deg);
}
80% {
transform: scale(1.1) rotate(-2deg);
}
}

.br-fix::after {
content: "\A";
white-space: pre;
}

.hidden {
display: none !important;
}

.white {
color: #ffffff !important;
}


/* Chatbot Styles (consolidated) */
/* Loading helper */
.ki-agent-one .is-loading{
    opacity:0.6;
}
/* Pulsing animations */
@keyframes pulseGreen {
0%   { transform: scale(1);   box-shadow: 0 0 0 rgba(40,167,69,0.0); }
50%  { transform: scale(1.02); box-shadow: 0 0 12px rgba(40,167,69,0.9); }
100% { transform: scale(1);   box-shadow: 0 0 0 rgba(40,167,69,0.0); }
}
@keyframes pulseRed {
0%   { transform: scale(1);   box-shadow: 0 0 0 rgba(220,53,69,0.0); }
50%  { transform: scale(1.02); box-shadow: 0 0 12px rgba(220,53,69,0.9); }
100% { transform: scale(1);   box-shadow: 0 0 0 rgba(220,53,69,0.0); }
}
.ki-agent-one .loading-green{
animation: pulseGreen 0.8s infinite alternate;
background:#28a745 !important;
color:#fff !important;
border-color:#28a745 !important;
}
.ki-agent-one .loading-error{
animation: pulseRed 0.6s 3 alternate;
background:#dc3545 !important;
color:#fff !important;
border-color:#dc3545 !important;
}


/* (bubble, bubbleShrink keyframes and bubble pseudo/spans removed) */

/* Responsive Chatbot Window for Mobile */
@media (max-width: 768px) {
    .ki-agent-one .chatbot-window {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        z-index: 9999 !important;
        box-shadow: none !important;
        bottom: 0px !important;
        min-height: 100vH !important;
    }

    .ki-agent-one .chatbot-container .ki-agent-one .chatbot-window,
    .ki-agent-one .chatbot-container .chatbot-window {
    max-width: none !important;
    }

    .bot-avatar {
    position: relative;
    top: 0;
    left: 0;
    }          

    .ki-agent-one .message.bot {
    padding-left: 0 !important;
    }

    .ki-agent-one .chatbot-messages {
        padding: 0 !important;
    }
}

/* Smart Suggestions (chatbot) */
.ki-agent-one .suggestion-pills{
margin-top: 8px;
padding: 10px 0;
padding: 10px 10px 25px 25px;
background-color: transparent;
}

.ki-agent-one .suggestions-header{
font-weight: 600;
margin-bottom: 6px;
font-size: 0.9rem;
color: #aaa;
}

.ki-agent-one .suggestions-container{
display: flex;
flex-wrap: wrap;
gap: 8px;
}


.ki-agent-one .suggestion-pill:hover,
.ki-agent-one .suggestion-pill:focus{
background: #00d4ff;
color: #000;
transform: translateY(-1px);
}

.ki-agent-one .suggestion-pill:active{
transform: translateY(0);
}


.ki-agent-one .chatbot-header {
background: linear-gradient(45deg, #004c80, #0077b6);
padding: 20px;
color: white;
font-weight: 600;
display: flex;
justify-content: space-between;
align-items: center;
}

/* Tabellen nur im Chatfenster stylen */
.ki-agent-one #chatbotMessages table {
width: 100%;
border-collapse: collapse;
margin-top: 1em;
font-size: 0.95rem;
}

.ki-agent-one #chatbotMessages th,
.ki-agent-one #chatbotMessages td {
border: 1px solid #ccc;
padding: 8px 12px;
text-align: left;
}

.ki-agent-one #chatbotMessages thead {
background-color: #28677b;
font-weight: bold;
}

.ki-agent-one #chatbotMessages tr:nth-child(even) {
background-color: #454545;
}

/* Listenstruktur im Chatfenster */
.ki-agent-one #chatbotMessages ul {
margin: 0.5em 0 1em 1.2em;
padding-left: 1em;
list-style-type: disc;
}

.ki-agent-one #chatbotMessages ul ul {
list-style-type: circle;
margin-top: 0.2em;
}

.ki-agent-one #chatbotMessages li p {
margin: 0;
font-weight: bold;
}

.ki-agent-one #chatbotMessages p {
margin: 0.5em 0;
}




.hero .subtitle,
h1, h2, h3, h4, h5, h6,
.h2, .h3 {
    font-weight: 100;
}


.pulsing {
  animation: pulseButton 1.5s ease-out infinite;
}


.bot-waiting-glow {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background-color: #001a00; /* dunkles Grün als Hintergrund */
  color: #cceeff;
}

/* Animierter grüner Balken als Pseudoelement */
.bot-waiting-glow::before {
  content: 'working...';
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 4px; /* Höhe des Balkens */
  background: linear-gradient(90deg, transparent, #00ff00, transparent);
  animation: blueGlow 2s linear infinite;
  border-radius: 2px;
  z-index: 10;
}

@keyframes greenBarMove {
  0% {
    left: -50%;
  }
  100% {
    left: 100%;
  }
}
/* ===== Footer Meta Layout ===== */
.footer-meta {
    display: flex;
    flex-direction: row;      /* desktop/tablet: side‑by‑side */
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;  /* top‑align children */
    gap: 2rem;
    width: 100%;
}

.footer-meta > .footer-imprint,
.footer-meta > .footer-hinweis {
    flex: 1 1 300px;
}

.footer-hinweis {
    font-size: 14px;
    color: #aab4d4;
    line-height: 1.7;
}


/* Mobile: stack Impressum & Hinweis untereinander */
@media (max-width: 600px) {
    .footer-meta {
        flex-direction: column;
        gap: 1.5rem;
    }
}
/* Add top padding to all but the first .upper h3 in .contentblock-inner */
.contentblock-inner .h3 {
    padding-top: 65px;
}

.h100, .vh100 {
    height: 100%;
    margin-bottom: 100px;
}

p.form-disclaimer {
    font-size: 0.8rem;
}

.form-disclaimer {
  font-size: 0.8rem;
  color: #aab4d4;
  margin-top: 1rem;
  line-height: 1.5;
}


/* Chatbot Readability Tweaks */
.ki-agent-one .chatbot-header h1 {
    font-size: 1.5rem; /* larger header */
    color: #ffffff;
}

.ki-agent-one .message,
.ki-agent-one .typing-indicator {
    font-size: 1rem; /* increase message text size */
}

.ki-agent-one .message.user,
.ki-agent-one .message.bot {
    line-height: 1.4;
}

.ki-agent-one .message.user {
    font-weight: 500;
}

.ki-agent-one .chatbot-input,
.ki-agent-one .chatbot-input::placeholder {
    font-size: 1rem; /* larger input text */
    color: #ffffff;
    font-size: 16px;
}

.ki-agent-one .suggestion-pill { /* slightly larger pills */
    background: #0077b6;
    color: #ffffff;
}

.ki-agent-one .chatbot-send {
    font-size: 1.2rem; /* larger send icon/button */
}

.ki-agent-one .chatbot-header .export-btn,
.ki-agent-one .chatbot-header .clear-btn {
    font-size: 0.9rem; /* readable header buttons */
    color: #ffffff;
}

/* Export and delete buttons: black text on white background */
.ki-agent-one .chatbot-header .export-btn,
.ki-agent-one .chatbot-header .clear-btn {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #007acc !important;
}

/* Layout for chat controls (buttons, inputs, etc.) */
.ki-agent-one .chatbot-controls {
    display: flex;
    gap: 10px;
}

/* Smaller buttons under chat controls */
.ki-agent-one .chatbot-controls button {
    font-size: 0.9rem;
    padding: 6px 10px;
    min-width: auto;
    background-color: #fff;
    color: #000;
}

/* Ensure valid input text is white */
.ki-agent-one .chatbot-input:valid {
    color: #ffffff !important;
}

.ki-agent-one message.bot p{
    color: #fff;
}

.ki-agent-one strong, .ki-agent-one p{
    color: #fff;
}

/* ==== Custom Chatbot Fine-Tuning ==== */
.ki-agent-one .chatbot-container {
    bottom: 20px !important;
    right: 20px !important;
}

.ki-agent-one .chatbot-window {
    background-color: rgba(0, 0, 0, 0.75) !important;
}

.ki-agent-one .suggestion-pill {
    font-size: 1.5rem !important;
    padding: 0.75em 1.5em !important;
    background: #007acc !important;
    color: #fff !important;
    border-radius: 0.5em !important;
    margin-bottom: 0.5em !important;
    transition: background 0.3s ease, transform 0.15s ease !important;
}

.ki-agent-one .suggestion-pill:hover,
.ki-agent-one .suggestion-pill:focus {
    background: #005b99 !important;
    transform: translateY(-1px) !important;
}



/* Animate header action buttons on hover like send button */

.ki-agent-one .chatbot-header .chatbot-close:hover,
.ki-agent-one .chatbot-header .export-btn:hover,
.ki-agent-one .chatbot-header .clear-btn:hover {
    box-shadow: 0 12px 32px rgba(0, 136, 204, 0.6) !important;
    transform: translateY(-1px) !important;
}

/* Polished blue-white loading bar */
/* Typing Indicator Spinner SVG */
.ki-agent-one .typing-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.ki-agent-one .typing-indicator svg {
  width: 80px;
  height: 80px;
}

/* Prevent close button from moving on hover */
.ki-agent-one .chatbot-header .chatbot-close:hover {
    transform: none !important;
}

#chatbot-description small {
    font-size: 0.8em;
}

.pointer {
    cursor: pointer;
}   