
:root {
    --fontFamily: 'Recoleta Bold';
    --primaryColor: #004236;
}

body {
    padding: 50px 50px;
}

.text-center {
    text-align: center;
}



.header img {
    width: 200px;
}


.header {
    position: relative; /* WICHTIG: Das ist der Anker für den Button! */
    display: flex;
    justify-content: center; /* Zentriert das Logo perfekt */
    align-items: center;     /* Zentriert die Elemente in der Höhe */
    margin-bottom: 40px;
    width: 100%;
    min-height: 60px;        /* Gibt dem Header eine feste Grundhöhe */
}



table thead {
    background-color: #f5ece6;
}

h1, h2, h3, h4, h5 {
    font-family: var(--fontFamily);
}

/* Globale Resets für den Vollbild-App-Look */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    width: 100%;
    font-family: Arial, sans-serif;
    background-color: #f4f7f6;
    overflow: hidden; /* Verhindert das Scrollen der gesamten Seite */
}

/* Chat Container nimmt den gesamten Bildschirm ein */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 150px);
    width: 100%;
    background: transparent; /* Entfernt den weißen Kasten-Hintergrund */
    border: none;            /* Entfernt den Rahmen komplett */
    box-shadow: none;        /* Entfernt den Schatten */
    margin-bottom: 40px; 
}

.chat-header {
    background-color: #004236; 
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    
    border-radius: 12px;
    margin-bottom: 20px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
}
/* .chat-header {
    background-color: white; 
    color: #004236;
    padding: 15px 20px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    
    border-radius: 12px; 
    margin-bottom: 20px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
} */
/* 
.chat-header {
    padding: 15px 20px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    

    color: var(--primaryColor); 
   
    background-color: transparent; 
    border: none;
    box-shadow: none; 
} */

/* Der Bereich mit den Blasen wächst dynamisch und bekommt einen eigenen Scrollbalken */
.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #f4f7f6;
}

.message {
    max-width: 75%;
    padding: 12px 18px;
    border-radius: 20px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message.user {
    align-self: flex-end;
    background-color: #004236;
    color: white;
    border-bottom-right-radius: 4px;
}

.message.bot {
    align-self: flex-start;
    background-color: #ffffff;
    color: #333;
    border-bottom-left-radius: 4px;
    border: 1px solid #e0e0e0;
}

.loading {
    font-style: italic;
    color: #888;
    font-size: 0.9em;
    background: transparent;
    border: none;
    padding: 5px 18px;
}

/* Das Eingabefeld ist immer fixiert am unteren Rand */
.chat-input-container {
    display: flex;
    padding: 15px 20px;
    background: #fff;
    
    border-radius: 12px; /* Macht auch hier ALLE vier Ecken rund */
    border: 1px solid #e0e0e0; /* Ganz feiner, unaufdringlicher Rahmen */
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); /* Leichter Schatten */
}

#chatInput {
    flex-grow: 1;
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 25px;
    outline: none;
    font-size: 16px;
    transition: border-color 0.2s;
}

#chatInput:focus {
    border-color: #004236;
}

#sendBtn {
    background-color: #004236;
    color: white;
    border: none;
    padding: 10px 25px;
    margin-left: 15px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.2s;
}

#sendBtn:hover {
    background-color: #00423656;
}

#sendBtn:disabled {
    background-color: #a0c4ff;
    cursor: not-allowed;
}



.logout-btn-global {
    position: absolute;
    right: 0;             /* Klebt den Button ganz an den rechten Rand */
    top: 50%;
    transform: translateY(-50%); /* Zieht den Button exakt auf die Mitte der Logo-Höhe */
    
    color: var(--primaryColor);
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease-in-out;
}

.logout-btn-global:hover {
    opacity: 0.5;
}



/* 1. Der Wrapper steuert das Hintergrundbild und zentriert die Karte */
.login-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Hier den Pfad zu deinem Hintergrundbild eintragen */
    background-size: cover;
    background-position: center;
}

/* 2. Ein dunkles Overlay, damit die Karte besser wirkt (wie im Screenshot) */
.login-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Dunkelt den Hintergrund ab */
    z-index: 1;
}

/* 3. Die Login-Karte selbst */
.login-card {
    position: relative;
    z-index: 2; /* Hebt die Karte über das Overlay */
    display: flex;
    width: 800px; /* Feste maximale Breite */
    max-width: 95%; /* Verhindert Abschneiden auf Handys */
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    overflow: hidden; /* Verhindert, dass Ecken überstehen */
}

/* 4. Linke Seite (50%) */
.login-left {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-left img {
    max-width: 60%; /* Skaliert das Logo sauber */
    height: auto;
}

/* 5. Rechte Seite (50%) */
.login-right {
    flex: 1;
    background-color: var(--primaryColor, #004236);
    color: #ffffff;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.login-right h2, .login-right h3 {
    margin: 0;
    color: #ffffff; /* Überschreibt eventuelle Bootstrap-Farben */
}

.login-right h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.login-right h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.login-right p {
    font-size: 0.85rem;
    margin-bottom: 30px;
}

/* 6. Formular-Elemente */
.login-right form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Abstand zwischen den Inputs */
}

.login-right input {
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

.login-right button {
    margin-top: 10px;
    padding: 12px 15px;
    background-color: #ffffff;
    color: var(--primaryColor, #004236);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-right button:hover {
    background-color: #e0e0e0;
}

/* 7. Responsive Design (für Handys wird die Karte untereinander angezeigt) */
@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
        max-width: 400px;
    }
    .login-left, .login-right {
        width: 100%;
    }
    .login-right {
        padding: 40px 30px;
    }
}