﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

/* Chatbot-Fenster */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    font-family: sans-serif;
    z-index: 9999;
}

#chatbot-header {
    background-color: #f8f9fa;
    color: black;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    text-align: center;
}

#chatbot-window {
    display: none;
    flex-direction: column;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 10px 10px;
    height: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease;
}

    #chatbot-window.open {
        display: flex;
        animation: slideUp 0.3s forwards;
    }

    #chatbot-window.closing {
        animation: slideDown 0.3s forwards;
    }

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(30px);
        opacity: 0;
    }
}

/* Nachrichtenbereich */
#chatbot-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Eingabebereich */
#chatbot-input {
    display: flex;
    border-top: 1px solid #ddd;
}

    #chatbot-input input {
        flex-grow: 1;
        border: none;
        padding: 10px;
        outline: none;
    }

    #chatbot-input button {
        border: none;
        background: #0078D7;
        color: white;
        padding: 10px 15px;
        cursor: pointer;
    }

/* Nachrichten */
.message {
    padding: 8px;
    border-radius: 8px;
    max-width: 80%;
}

    .message.user {
        background: #DCF8C6;
        align-self: flex-end;
    }

    .message.bot {
        background: #EEE;
        align-self: flex-start;
    }

/* Typing-Animation */
#typing-indicator {
    display: inline-block;
}

    #typing-indicator::after {
        content: '...';
        animation: blink 1s infinite;
    }

@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }

    25%, 75% {
        opacity: 0;
    }
}
