/* Grundlegende Layout- und Style-Einstellungen */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Hintergrundbild und Verlauf (inaktiviert, um Ladezeiten zu reduzieren) */

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.jpeg');
    background-size: cover;
    background-position: center;
    z-index: -2;
}
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(0,64,0,0.3) 0%, 
        rgba(0,64,0,0.6) 50%, 
        rgba(0,64,0,0.8) 100%);
    z-index: -1;
}


/* Header und Navigation */
header {
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.logo-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-link::before,
.logo-link:hover::before,
.logo-link::after,
.logo-link:hover::after {
    /* Tooltip und Hover-Effekt */
}

/* Navigation-Links */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav ul li {
    margin-left: 15px;
}

nav ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

nav ul li a:hover {
    /* Hover-Effekte */
}

nav ul li a img {
    max-width: 30px;
    max-height: 30px;
    transition: filter 0.3s;
}

/* Hauptbereich */
main {
    flex-grow: 1;
    padding: 80px 40px 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    text-align: right;
    position: relative;
    min-height: calc(100vh - 60px);
    overflow-y: auto;
}

/* Abschnitt für Home */
#home {
    width: 100%;
    max-width: 80%;
    margin-top: 30px;
    text-align: right;
}

#home h1 {
    font-size: 5vw;
    margin-bottom: 5px;
    white-space: nowrap;
}

/* Deaktivierte Subtitle-Klasse */
/*
.subtitle {
    font-size: 1.5vw;
    line-height: 1.2;
    text-align: right;
    opacity: 0;
}
*/

/* Deaktivierter Abschnitt für Meilensteine */
/*
#milestones {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: left;
    width: auto;
    margin-bottom: 20px;
    font-size: 1.5vw;
}

#milestones h2 {
    font-size: 2.5vw;
    color: #ffffff;
}

#milestones ul {
    list-style-type: none;
    padding: 0;
}

#milestones li {
    margin-bottom: 10px;
    color: #ffffff;
}
*/

/* Chat-Link und Bot-Bild */
#chat-link {
    position: relative;
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
    align-self: flex-end;
}

#botai-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

#botai-image:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* Overlay und Container für Chat- und Login-Funktionen */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-container, .chat-container, .qa-container {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
}

/* Login-Overlay und Container für das Login-Fenster */
#login-overlay {
    display: none; /* Startet als ausgeblendet */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    max-width: 90%;
    box-sizing: border-box;
}

.login-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.login-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.button-group {
    display: flex;
    justify-content: space-between;
}

.button-group button {
    width: 48%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.button-group button:last-child {
    background-color: #f44336;
}

.button-group button:hover {
    opacity: 0.8;
}

/* Zusätzliche responsive Anpassungen */
@media (max-width: 768px) {
    main {
        padding: 80px 15px 20px;
    }

    #home h1 {
        font-size: 8vw;
        text-align: left;
        margin-left: 0;
    }

    #chat-link {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

/* Chat-Fenster und Container */
.chat-container {
    background-color: white;
    border-radius: 10px;
    width: 720px;
    height: 750px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.chat-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
    background-color: #e0f0e0; /* Hintergrundfarbe des Headers */
    border-bottom: 2px solid #fff;
}

#fullscreen-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.chat-content {
    flex-grow: 1;
    overflow: hidden;
}

#chat-iframe {
    width: 100%;
    height: calc(100% - 40px);
    border: none;
}

/* Chat-Footer und Button-Styling */
.chat-footer {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 10px; /* Vergrößert den Abstand für eine bessere Darstellung */
    background-color: #f1f1f1;
}

#open-qa-button, #use-case-creator-button, #close-chat-button {
    flex: 1;
    padding: 15px; /* Erhöht die Höhe der Buttons für bessere Sichtbarkeit */
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s;
}

#open-qa-button {
    background-color: #4CAF50;
    margin-right: 10px; /* Fügt Abstand zwischen den Buttons hinzu */
}

#use-case-creator-button {
    background-color: #2E8B57;
    margin-right: 10px;
}

#close-chat-button {
    background-color: #f44336;
}

#open-qa-button:hover {
    background-color: #45a049;
}

#use-case-creator-button:hover {
    background-color: #3CB371;
}

#close-chat-button:hover {
    background-color: #d32f2f;
}

/* Q&A-Formular und Use-Case-Creator Overlay */
#qa-overlay, #use-case-overlay {
    display: none;
}

.qa-container, .chat-container {
    background-color: white;
    border-radius: 10px;
    width: 600px;
    max-width: 90%;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.qa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.qa-header h2 {
    margin: 0;
    color: #333;
}

#close-qa-button, #close-use-case-button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

#qa-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;
}

#qa-form textarea#question {
    height: 100px;
}

#qa-form textarea#answer {
    height: 150px;
}

#qa-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

#qa-form button[type="submit"]:hover {
    background-color: #45a049;
}

/* Anpassungen für das Vollbild */
.fullscreen {
    width: 80% !important;
    height: 80vh !important;
}

/* Toggle für Vollbild und Use Case */
.fullscreen-toggle,
#fullscreen-toggle,
#use-case-fullscreen-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease, transform 0.3s ease;
    width: 30px;
    height: 30px;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-toggle:hover,
#fullscreen-toggle:hover,
#use-case-fullscreen-toggle:hover {
    color: #007bff;
    transform: scale(1.1);
}

/* UseCase-Overlay und Container */
#use-case-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dunklerer Hintergrund für bessere Sichtbarkeit */
    justify-content: center;
    align-items: center;
    z-index: 1100; /* Stellt sicher, dass es über dem Chatfenster liegt */
}

.use-case-container {
    background-color: white;
    border-radius: 10px;
    width: 720px;
    height: 750px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    padding: 20px;
    box-sizing: border-box;
    z-index: 1101; /* Über dem Chatfenster */
}

/* UseCase-Header und Schließen-Button */
.use-case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #e0f0e0; /* Hintergrundfarbe des Headers */
    border-bottom: 2px solid #fff;
}

#use-case-iframe {
    width: 100%;
    height: calc(100% - 40px);
    border: none;
}

/*.use-case-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}*/

#close-use-case-button {
    width: 100%;
    padding: 10px;
    background-color: #f44336;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#close-use-case-button:hover {
    background-color: #d32f2f;
}

/* Fullscreen Toggle for Use Case */
#use-case-fullscreen-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease, transform 0.3s ease;
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#use-case-fullscreen-toggle:hover {
    color: #007bff;
    transform: scale(1.1);
}

/* Responsive Anpassung für das UseCase-Fenster */
@media (max-width: 768px) {
    .use-case-container {
        width: 90%;
        height: 80vh;
    }
}

/* Responsive Anpassungen für kleinere Bildschirme */
@media (max-width: 768px) {
    main {
        padding: 80px 15px 20px;
    }

    #home h1 {
        font-size: 8vw;
        text-align: left;
        margin-left: 0;
    }

    #chat-link {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .chat-container, .qa-container, .use-case-container {
        width: 90%;
        height: 80vh;
    }

    #botai-image {
        width: auto;
        max-width: 70%;
        height: auto;
        margin: 0 auto;
    }
}

/* Ausgeblendete Elemente */
.subtitle, #milestones {
    display: none;
}